[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b6faacac-46f2-7643-7796-b34840fc94f5@quicinc.com>
Date: Wed, 2 Nov 2022 15:30:27 -0600
From: Jeffrey Hugo <quic_jhugo@...cinc.com>
To: Oded Gabbay <ogabbay@...nel.org>, David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>, Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
<linux-kernel@...r.kernel.org>, <dri-devel@...ts.freedesktop.org>,
Jason Gunthorpe <jgg@...dia.com>,
John Hubbard <jhubbard@...dia.com>,
Alex Deucher <alexander.deucher@....com>
CC: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
Yuji Ishikawa <yuji2.ishikawa@...hiba.co.jp>,
Jiho Chu <jiho.chu@...sung.com>,
Daniel Stone <daniel@...ishbar.org>,
Tvrtko Ursulin <tvrtko.ursulin@...ux.intel.com>,
Christoph Hellwig <hch@...radead.org>,
Kevin Hilman <khilman@...libre.com>,
Jagan Teki <jagan@...rulasolutions.com>,
Jacek Lawrynowicz <jacek.lawrynowicz@...ux.intel.com>,
Maciej Kwapulinski <maciej.kwapulinski@...ux.intel.com>
Subject: Re: [RFC PATCH v2 3/3] drm: initialize accel framework
On 11/2/2022 2:34 PM, Oded Gabbay wrote:
> @@ -163,7 +174,11 @@ static int drm_minor_register(struct drm_device *dev, unsigned int type)
>
> ret = drm_debugfs_init(minor, minor->index, drm_debugfs_root);
> if (ret) {
> - DRM_ERROR("DRM: Failed to initialize /sys/kernel/debug/dri.\n");
> + if (minor->type == DRM_MINOR_ACCEL)
> + DRM_ERROR("DRM: Failed to initialize /sys/kernel/debug/accel.\n");
> + else
> + DRM_ERROR("DRM: Failed to initialize /sys/kernel/debug/dri.\n");
> +
> goto err_debugfs;
> }
>
This doesn't look right. Don't you need to call drm_debugfs_init() with
accel_debugfs_root for the case - minor->type == DRM_MINOR_ACCEL?
Unless I fail to understand something, this will put all the accel
devices under /sys/kernel/debug/dri
Powered by blists - more mailing lists