Re: [RFC PATCH v3 3/3] drm: initialize accel framework

2022-11-07 Thread Oded Gabbay
On Mon, Nov 7, 2022 at 6:25 PM Jeffrey Hugo wrote: > > On 11/6/2022 2:02 PM, Oded Gabbay wrote: > > > @@ -603,6 +626,14 @@ static int drm_dev_init(struct drm_device *dev, > > /* no per-device feature limits by default */ > > dev->driver_features = ~0u; > > > > + if (drm_core_check_

Re: [RFC PATCH v3 3/3] drm: initialize accel framework

2022-11-07 Thread Jeffrey Hugo
On 11/6/2022 2:02 PM, Oded Gabbay wrote: @@ -603,6 +626,14 @@ static int drm_dev_init(struct drm_device *dev, /* no per-device feature limits by default */ dev->driver_features = ~0u; + if (drm_core_check_feature(dev, DRIVER_COMPUTE_ACCEL) && +

[RFC PATCH v3 3/3] drm: initialize accel framework

2022-11-06 Thread Oded Gabbay
Now that we have the accel framework code ready, let's call the accel functions from all the appropriate places. These places are the drm module init/exit functions, and all the drm_minor handling functions. Signed-off-by: Oded Gabbay --- Changes in v3: - Call the new accel_debugfs_init() to ini