Skip to contentSkip to conversation

drm: Complain if drivers still use the ->load callback

PATCH In review Daniel Vetter 6 participants 16 messages Jan 28, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 drm: Complain if drivers still use the ->load callback

Kinda time to get this sorted. The locking around this really is not nice.

---
 drivers/gpu/drm/drm_drv.c | 6 ++++++
 include/drm/drm_drv.h     | 3 +++
 2 files changed, 9 insertions(+)
drivers/gpu/drm/drm_drv.c +6 -0
index 7c18a980cd4b..8deff75b484c 100644
@@ -948,6 +948,12 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
 
 	mutex_lock(&drm_global_mutex);
 
+	if (dev->driver->load) {
+		if (!drm_core_check_feature(dev, DRIVER_LEGACY))
+			DRM_INFO("drm driver %s is using deprecated ->load callback\n",
+				 dev->driver->name);
+	}
+
 	ret = drm_minor_register(dev, DRM_MINOR_RENDER);
 	if (ret)
 		goto err_minors;
include/drm/drm_drv.h +3 -0
index 77685ed7aa65..77bc63de0a91 100644
@@ -173,6 +173,9 @@ struct drm_driver {
 	 *
 	 * This is deprecated, do not use!
 	 *
+	 * FIXME: A few non-DRIVER_LEGACY drivers still use this, and should be
+	 * converted.
+	 *
 	 * Returns:
 	 *
 	 * Zero on success, non-zero value on failure.
Signature · 6 lines
2.24.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 2/4 drm/fbdev-helper: don't force restores

Instead check for master status, in case we've raced.

This is the last exception to the general rule that we restore fbcon only when there's no master active. Compositors are supposed to drop their master status before they switch to a different console back to text mode (or just switch to text mode directly, without a vt switch).

This is known to break some subtests of kms_fbcon_fbt in igt, but they're just wrong - it does a graphics/text mode switch for the vt without updating the master status.

Also add a comment to the drm_client->restore hook that this is expected going forward from all clients (there's currently just one).

v2: Also drop the force in pan_display

Cc Noralf Trønnes <[email protected]>
---
 drivers/gpu/drm/drm_fb_helper.c | 14 ++------------
 include/drm/drm_client.h        |  5 +++++
 2 files changed, 7 insertions(+), 12 deletions(-)
drivers/gpu/drm/drm_fb_helper.c +2 -12
index 4c7cbce7bae7..926187a82255 100644
@@ -250,17 +250,7 @@ int drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper *fb_helper)
 		return 0;
 
 	mutex_lock(&fb_helper->lock);
-	/*
-	 * TODO:
-	 * We should bail out here if there is a master by dropping _force.
-	 * Currently these igt tests fail if we do that:
-	 * - kms_fbcon_fbt@psr
-	 * - kms_fbcon_fbt@psr-suspend
-	 *
-	 * So first these tests need to be fixed so they drop master or don't
-	 * have an fd open.
-	 */
-	ret = drm_client_modeset_commit_force(&fb_helper->client);
+	ret = drm_client_modeset_commit(&fb_helper->client);
 
 	do_delayed = fb_helper->delayed_hotplug;
 	if (do_delayed)
@@ -1357,7 +1347,7 @@ static int pan_display_atomic(struct fb_var_screeninfo *var,
 
 	pan_set(fb_helper, var->xoffset, var->yoffset);
 
-	ret = drm_client_modeset_commit_force(&fb_helper->client);
+	ret = drm_client_modeset_commit(&fb_helper->client);
 	if (!ret) {
 		info->var.xoffset = var->xoffset;
 		info->var.yoffset = var->yoffset;
include/drm/drm_client.h +5 -0
index 5cf2c5dd8b1e..d01d311023ac 100644
@@ -44,6 +44,11 @@ struct drm_client_funcs {
 	 * returns zero gets the privilege to restore and no more clients are
 	 * called. This callback is not called after @unregister has been called.
 	 *
+	 * Note that the core does not guarantee exclusion against concurrent
+	 * drm_open(). Clients need to ensure this themselves, for example by
+	 * using drm_master_internal_acquire() and
+	 * drm_master_internal_release().
+	 *
 	 * This callback is optional.
 	 */
 	int (*restore)(struct drm_client_dev *client);
Signature · 6 lines
2.24.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 2/4
#2 lore raw

Re: [PATCH 2/4] drm/fbdev-helper: don't force restores

Den 28.01.2020 11.45, skrev Daniel Vetter:

Quoted 47 lines

Instead check for master status, in case we've raced.

This is the last exception to the general rule that we restore fbcon only when there's no master active. Compositors are supposed to drop their master status before they switch to a different console back to text mode (or just switch to text mode directly, without a vt switch).

This is known to break some subtests of kms_fbcon_fbt in igt, but they're just wrong - it does a graphics/text mode switch for the vt without updating the master status.

Also add a comment to the drm_client->restore hook that this is expected going forward from all clients (there's currently just one).

v2: Also drop the force in pan_display

Cc Noralf Trønnes <[email protected]>
---
 drivers/gpu/drm/drm_fb_helper.c | 14 ++------------
 include/drm/drm_client.h        |  5 +++++
 2 files changed, 7 insertions(+), 12 deletions(-)
drivers/gpu/drm/drm_fb_helper.c +1 -11
index 4c7cbce7bae7..926187a82255 100644
@@ -250,17 +250,7 @@ int drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper *fb_helper)
 		return 0;
 
 	mutex_lock(&fb_helper->lock);
-	/*
-	 * TODO:
-	 * We should bail out here if there is a master by dropping _force.
-	 * Currently these igt tests fail if we do that:
-	 * - kms_fbcon_fbt@psr
-	 * - kms_fbcon_fbt@psr-suspend
-	 *
-	 * So first these tests need to be fixed so they drop master or don't
-	 * have an fd open.
-	 */
-	ret = drm_client_modeset_commit_force(&fb_helper->client);
+	ret = drm_client_modeset_commit(&fb_helper->client);
 
 	do_delayed = fb_helper->delayed_hotplug;
 	if (do_delayed)

drivers/gpu/drm/drm_fb_helper.c static int pan_display_atomic(struct fb_var_screeninfo *var, · line 1350

Quoted 5 lines
drivers/gpu/drm/drm_fb_helper.c +1 -1
@@ -1357,7 +1347,7 @@ static int pan_display_atomic(struct fb_var_screeninfo *var,
 
 	pan_set(fb_helper, var->xoffset, var->yoffset);
 
-	ret = drm_client_modeset_commit_force(&fb_helper->client);
+	ret = drm_client_modeset_commit(&fb_helper->client);

This needs _force because drm_fb_helper_pan_display() already holds the locks.

With that fixed:

Maybe a better and more descriptive name would have been drm_client_modeset_commit_locked().

Noralf.

Quoted 10 lines
drivers/gpu/drm/drm_fb_helper.c +0 -0
 	if (!ret) {
 		info->var.xoffset = var->xoffset;
 		info->var.yoffset = var->yoffset;
include/drm/drm_client.h +0 -0
index 5cf2c5dd8b1e..d01d311023ac 100644
@@ -44,6 +44,11 @@ struct drm_client_funcs {
 	 * returns zero gets the privilege to restore and no more clients are

include/drm/drm_client.h struct drm_client_funcs { · line 54

Quoted 10 lines
include/drm/drm_client.h +5 -0
 	 * called. This callback is not called after @unregister has been called.
 	 *
+	 * Note that the core does not guarantee exclusion against concurrent
+	 * drm_open(). Clients need to ensure this themselves, for example by
+	 * using drm_master_internal_acquire() and
+	 * drm_master_internal_release().
+	 *
 	 * This callback is optional.
 	 */
 	int (*restore)(struct drm_client_dev *client);

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

Re: [PATCH 2/4] drm/fbdev-helper: don't force restores

Quoted 51 lines · Noralf Trønnes

Den 28.01.2020 11.45, skrev Daniel Vetter:

Quoted 48 lines

Instead check for master status, in case we've raced.

This is the last exception to the general rule that we restore fbcon only when there's no master active. Compositors are supposed to drop their master status before they switch to a different console back to text mode (or just switch to text mode directly, without a vt switch).

This is known to break some subtests of kms_fbcon_fbt in igt, but they're just wrong - it does a graphics/text mode switch for the vt without updating the master status.

Also add a comment to the drm_client->restore hook that this is expected going forward from all clients (there's currently just one).

v2: Also drop the force in pan_display

Cc Noralf Trønnes <[email protected]>
---
 drivers/gpu/drm/drm_fb_helper.c | 14 ++------------
 include/drm/drm_client.h        |  5 +++++
 2 files changed, 7 insertions(+), 12 deletions(-)
drivers/gpu/drm/drm_fb_helper.c +1 -11
index 4c7cbce7bae7..926187a82255 100644
@@ -250,17 +250,7 @@ int drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper *fb_helper)
 		return 0;
 
 	mutex_lock(&fb_helper->lock);
-	/*
-	 * TODO:
-	 * We should bail out here if there is a master by dropping _force.
-	 * Currently these igt tests fail if we do that:
-	 * - kms_fbcon_fbt@psr
-	 * - kms_fbcon_fbt@psr-suspend
-	 *
-	 * So first these tests need to be fixed so they drop master or don't
-	 * have an fd open.
-	 */
-	ret = drm_client_modeset_commit_force(&fb_helper->client);
+	ret = drm_client_modeset_commit(&fb_helper->client);
 
 	do_delayed = fb_helper->delayed_hotplug;
 	if (do_delayed)
@@ -1357,7 +1347,7 @@ static int pan_display_atomic(struct fb_var_screeninfo *var,
 
Quoted 7 lines

drivers/gpu/drm/drm_fb_helper.c static int pan_display_atomic(struct fb_var_screeninfo *var, · line 1350

Quoted 4 lines
drivers/gpu/drm/drm_fb_helper.c +1 -1
 	pan_set(fb_helper, var->xoffset, var->yoffset);
 
-	ret = drm_client_modeset_commit_force(&fb_helper->client);
+	ret = drm_client_modeset_commit(&fb_helper->client);

This needs _force because drm_fb_helper_pan_display() already holds the locks.

Geez, now I remember again why I did _not_ include this in v1 :-/

Quoted 5 lines

With that fixed:

Maybe a better and more descriptive name would have been drm_client_modeset_commit_locked().

This sounds like a good idea, I'll do a patch for this. I'll need to resend the series anyway to be able to co-test it with the igt side fix.

Thanks for your review.
-Daniel

Quoted 23 lines

Noralf.

Quoted 20 lines
drivers/gpu/drm/drm_fb_helper.c +0 -0
 	if (!ret) {
 		info->var.xoffset = var->xoffset;
 		info->var.yoffset = var->yoffset;
include/drm/drm_client.h +5 -0
index 5cf2c5dd8b1e..d01d311023ac 100644
@@ -44,6 +44,11 @@ struct drm_client_funcs {
 	 * returns zero gets the privilege to restore and no more clients are
 	 * called. This callback is not called after @unregister has been called.
 	 *
+	 * Note that the core does not guarantee exclusion against concurrent
+	 * drm_open(). Clients need to ensure this themselves, for example by
+	 * using drm_master_internal_acquire() and
+	 * drm_master_internal_release().
+	 *
 	 * This callback is optional.
 	 */
 	int (*restore)(struct drm_client_dev *client);
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#4 lore raw

PATCH 3/4 drm: Push drm_global_mutex locking in drm_open

In reply to Daniel Vetter

We want to only take the BKL on crap drivers, but to know whether we have a crap driver we first need to look it up. Split this shuffle out from the main BKL-disabling patch, for more clarity.

Since the minors are refcounted drm_minor_acquire is purely internal and this does not have a driver visible effect.

v2: Push the locking even further into drm_open(), suggested by Chris. This gives us more symmetry with drm_release(), and maybe a futuer avenue where we make drm_globale_mutex locking (partially) opt-in like with drm_release_noglobal().

---
 drivers/gpu/drm/drm_drv.c  | 14 +++++---------
 drivers/gpu/drm/drm_file.c |  6 ++++++
 2 files changed, 11 insertions(+), 9 deletions(-)
drivers/gpu/drm/drm_drv.c +5 -9
index 8deff75b484c..05bdf0b9d2b3 100644
@@ -1085,17 +1085,14 @@ static int drm_stub_open(struct inode *inode, struct file *filp)
 
 	DRM_DEBUG("\n");
 
-	mutex_lock(&drm_global_mutex);
 	minor = drm_minor_acquire(iminor(inode));
-	if (IS_ERR(minor)) {
-		err = PTR_ERR(minor);
-		goto out_unlock;
-	}
+	if (IS_ERR(minor))
+		return PTR_ERR(minor);
 
 	new_fops = fops_get(minor->dev->driver->fops);
 	if (!new_fops) {
 		err = -ENODEV;
-		goto out_release;
+		goto out;
 	}
 
 	replace_fops(filp, new_fops);
@@ -1104,10 +1101,9 @@ static int drm_stub_open(struct inode *inode, struct file *filp)
 	else
 		err = 0;
 
-out_release:
+out:
 	drm_minor_release(minor);
-out_unlock:
-	mutex_unlock(&drm_global_mutex);
+
 	return err;
 }
 
drivers/gpu/drm/drm_file.c +6 -0
index 1075b3a8b5b1..d36cb74ebe0c 100644
@@ -378,6 +378,8 @@ int drm_open(struct inode *inode, struct file *filp)
 	if (IS_ERR(minor))
 		return PTR_ERR(minor);
 
+	mutex_unlock(&drm_global_mutex);
+
 	dev = minor->dev;
 	if (!atomic_fetch_inc(&dev->open_count))
 		need_setup = 1;
@@ -395,10 +397,14 @@ int drm_open(struct inode *inode, struct file *filp)
 			goto err_undo;
 		}
 	}
+
+	mutex_unlock(&drm_global_mutex);
+
 	return 0;
 
 err_undo:
 	atomic_dec(&dev->open_count);
+	mutex_unlock(&drm_global_mutex);
 	drm_minor_release(minor);
 	return retcode;
 }
Signature · 6 lines
2.24.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 3/4
#5 lore raw

Re: [PATCH 3/4] drm: Push drm_global_mutex locking in drm_open

Quoting Daniel Vetter (2020-01-28 10:46:00)

Quoted 71 lines

We want to only take the BKL on crap drivers, but to know whether we have a crap driver we first need to look it up. Split this shuffle out from the main BKL-disabling patch, for more clarity.

Since the minors are refcounted drm_minor_acquire is purely internal and this does not have a driver visible effect.

v2: Push the locking even further into drm_open(), suggested by Chris. This gives us more symmetry with drm_release(), and maybe a futuer avenue where we make drm_globale_mutex locking (partially) opt-in like with drm_release_noglobal().

---
 drivers/gpu/drm/drm_drv.c  | 14 +++++---------
 drivers/gpu/drm/drm_file.c |  6 ++++++
 2 files changed, 11 insertions(+), 9 deletions(-)
drivers/gpu/drm/drm_drv.c +5 -9
index 8deff75b484c..05bdf0b9d2b3 100644
@@ -1085,17 +1085,14 @@ static int drm_stub_open(struct inode *inode, struct file *filp)
 
        DRM_DEBUG("\n");
 
-       mutex_lock(&drm_global_mutex);
        minor = drm_minor_acquire(iminor(inode));
-       if (IS_ERR(minor)) {
-               err = PTR_ERR(minor);
-               goto out_unlock;
-       }
+       if (IS_ERR(minor))
+               return PTR_ERR(minor);
 
        new_fops = fops_get(minor->dev->driver->fops);
        if (!new_fops) {
                err = -ENODEV;
-               goto out_release;
+               goto out;
        }
 
        replace_fops(filp, new_fops);
@@ -1104,10 +1101,9 @@ static int drm_stub_open(struct inode *inode, struct file *filp)
        else
                err = 0;
 
-out_release:
+out:
        drm_minor_release(minor);
-out_unlock:
-       mutex_unlock(&drm_global_mutex);
+
        return err;
 }
 
drivers/gpu/drm/drm_file.c +2 -0
index 1075b3a8b5b1..d36cb74ebe0c 100644
@@ -378,6 +378,8 @@ int drm_open(struct inode *inode, struct file *filp)
        if (IS_ERR(minor))
                return PTR_ERR(minor);
 
+       mutex_unlock(&drm_global_mutex);
+
        dev = minor->dev;
        if (!atomic_fetch_inc(&dev->open_count))
                need_setup = 1;

drivers/gpu/drm/drm_file.c int drm_open(struct inode *inode, struct file *filp) · line 401

Quoted 5 lines
drivers/gpu/drm/drm_file.c +2 -0
@@ -395,10 +397,14 @@ int drm_open(struct inode *inode, struct file *filp)
                        goto err_undo;
                }
        }
+
+       mutex_unlock(&drm_global_mutex);

The only reason why I could think it was in drm_stub_open() not drm_open() was for the possibility of some driver using a different callback. Such a driver would not be partaking in the drm_global_mutex so...

-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#6 lore raw

PATCH 4/4 drm: Nerv drm_global_mutex BKL for good drivers

In reply to Daniel Vetter

This catches the majority of drivers (unfortunately not if we take users into account, because all the big drivers have at least a lastclose hook).

With the prep patches out of the way all drm state is fully protected and either prevents or can deal with the races from dropping the BKL around open/close. The only thing left to audit are the various driver hooks - by keeping the BKL around if any of them are set we have a very simple cop-out!

Note that one of the biggest prep pieces to get here was making dev->open_count atomic, which was done in

commit 7e13ad896484a0165a68197a2e64091ea28c9602

Author: Chris Wilson <[email protected]>
Date:   Fri Jan 24 13:01:07 2020 +0000
    drm: Avoid drm_global_mutex for simple inc/dec of dev->open_count
---
 drivers/gpu/drm/drm_drv.c      |  6 +++--
 drivers/gpu/drm/drm_file.c     | 46 ++++++++++++++++++++++++++++++----
 drivers/gpu/drm/drm_internal.h |  1 +
 3 files changed, 46 insertions(+), 7 deletions(-)
drivers/gpu/drm/drm_drv.c +4 -2
index 05bdf0b9d2b3..9fcd6ab3c154 100644
@@ -946,7 +946,8 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
 	struct drm_driver *driver = dev->driver;
 	int ret;
 
-	mutex_lock(&drm_global_mutex);
+	if (drm_dev_needs_global_mutex(dev))
+		mutex_lock(&drm_global_mutex);
 
 	if (dev->driver->load) {
 		if (!drm_core_check_feature(dev, DRIVER_LEGACY))
@@ -992,7 +993,8 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
 	drm_minor_unregister(dev, DRM_MINOR_PRIMARY);
 	drm_minor_unregister(dev, DRM_MINOR_RENDER);
 out_unlock:
-	mutex_unlock(&drm_global_mutex);
+	if (drm_dev_needs_global_mutex(dev))
+		mutex_unlock(&drm_global_mutex);
 	return ret;
 }
 EXPORT_SYMBOL(drm_dev_register);
drivers/gpu/drm/drm_file.c +41 -5

82 lines not on this page · raw message

drivers/gpu/drm/drm_internal.h +1 -0
index 6937bf923f05..aeec2e68d772 100644
@@ -41,6 +41,7 @@ struct drm_printer;
 
 /* drm_file.c */
 extern struct mutex drm_global_mutex;
+bool drm_dev_needs_global_mutex(struct drm_device *dev);
 struct drm_file *drm_file_alloc(struct drm_minor *minor);
 void drm_file_free(struct drm_file *file);
 void drm_lastclose(struct drm_device *dev);
Signature · 6 lines
2.24.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 4/4
#7 lore raw

Re: [PATCH 4/4] drm: Nerv drm_global_mutex BKL for good drivers

Quoting Daniel Vetter (2020-01-28 10:46:01)

Quoted 3 lines

This catches the majority of drivers (unfortunately not if we take users into account, because all the big drivers have at least a lastclose hook).

Yeah, that lastclose for switching back to fbcon, and ensuring that switch is started before the next client takes over the console, does nerf the ability of avoiding the global_mutex.

Quoted 75 lines

With the prep patches out of the way all drm state is fully protected and either prevents or can deal with the races from dropping the BKL around open/close. The only thing left to audit are the various driver hooks - by keeping the BKL around if any of them are set we have a very simple cop-out!

Note that one of the biggest prep pieces to get here was making dev->open_count atomic, which was done in

commit 7e13ad896484a0165a68197a2e64091ea28c9602

Author: Chris Wilson <[email protected]>
Date:   Fri Jan 24 13:01:07 2020 +0000
    drm: Avoid drm_global_mutex for simple inc/dec of dev->open_count
---
 drivers/gpu/drm/drm_drv.c      |  6 +++--
 drivers/gpu/drm/drm_file.c     | 46 ++++++++++++++++++++++++++++++----
 drivers/gpu/drm/drm_internal.h |  1 +
 3 files changed, 46 insertions(+), 7 deletions(-)
drivers/gpu/drm/drm_drv.c +4 -2
index 05bdf0b9d2b3..9fcd6ab3c154 100644
@@ -946,7 +946,8 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
        struct drm_driver *driver = dev->driver;
        int ret;
 
-       mutex_lock(&drm_global_mutex);
+       if (drm_dev_needs_global_mutex(dev))
+               mutex_lock(&drm_global_mutex);
 
        if (dev->driver->load) {
                if (!drm_core_check_feature(dev, DRIVER_LEGACY))
@@ -992,7 +993,8 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
        drm_minor_unregister(dev, DRM_MINOR_PRIMARY);
        drm_minor_unregister(dev, DRM_MINOR_RENDER);
 out_unlock:
-       mutex_unlock(&drm_global_mutex);
+       if (drm_dev_needs_global_mutex(dev))
+               mutex_unlock(&drm_global_mutex);
        return ret;
 }
 EXPORT_SYMBOL(drm_dev_register);
drivers/gpu/drm/drm_file.c +19 -0
index d36cb74ebe0c..efd6fe0b6b4f 100644
@@ -51,6 +51,37 @@
 /* from BKL pushdown */
 DEFINE_MUTEX(drm_global_mutex);
 
+bool drm_dev_needs_global_mutex(struct drm_device *dev)
+{
+       /*
+        * Legacy drivers rely on all kinds of BKL locking semantics, don't
+        * bother. They also still need BKL locking for their ioctls, so better
+        * safe than sorry.
+        */
+       if (drm_core_check_feature(dev, DRIVER_LEGACY))
+               return true;
+
+       /*
+        * The deprecated ->load callback must be called after the driver is
+        * already registered. This means such drivers rely on the BKL to make
+        * sure an open can't proceed until the driver is actually fully set up.
+        * Similar hilarity holds for the unload callback.
+        */
+       if (dev->driver->load || dev->driver->unload)
+               return true;
+

drivers/gpu/drm/drm_file.c line 82

Quoted 10 lines
drivers/gpu/drm/drm_file.c +10 -0
+       /*
+        * Drivers with the lastclose callback assume that it's synchronized
+        * against concurrent opens, which again needs the BKL. The proper fix
+        * is to use the drm_client infrastructure with proper locking for each
+        * client.
+        */
+       if (dev->driver->lastclose)
+               return true;
+
+       return false;

I'm not particularly fussed by this patch, maybe a bit too obviously midlayer.

I was wondering if we should have a *dev->global_mutex which drivers can set to be any level they need (with a bit of care on our part to make sure it is not destroyed across dev->driver->lastclose). -Chris
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

Re: [PATCH 4/4] drm: Nerv drm_global_mutex BKL for good drivers

Quoted 97 lines · Chris Wilson

Quoting Daniel Vetter (2020-01-28 10:46:01)

Quoted 3 lines

This catches the majority of drivers (unfortunately not if we take users into account, because all the big drivers have at least a lastclose hook).

Yeah, that lastclose for switching back to fbcon, and ensuring that switch is started before the next client takes over the console, does nerf the ability of avoiding the global_mutex.

Quoted 75 lines

With the prep patches out of the way all drm state is fully protected and either prevents or can deal with the races from dropping the BKL around open/close. The only thing left to audit are the various driver hooks - by keeping the BKL around if any of them are set we have a very simple cop-out!

Note that one of the biggest prep pieces to get here was making dev->open_count atomic, which was done in

commit 7e13ad896484a0165a68197a2e64091ea28c9602

Author: Chris Wilson <[email protected]>
Date:   Fri Jan 24 13:01:07 2020 +0000
    drm: Avoid drm_global_mutex for simple inc/dec of dev->open_count
---
 drivers/gpu/drm/drm_drv.c      |  6 +++--
 drivers/gpu/drm/drm_file.c     | 46 ++++++++++++++++++++++++++++++----
 drivers/gpu/drm/drm_internal.h |  1 +
 3 files changed, 46 insertions(+), 7 deletions(-)
drivers/gpu/drm/drm_drv.c +4 -2
index 05bdf0b9d2b3..9fcd6ab3c154 100644
@@ -946,7 +946,8 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
        struct drm_driver *driver = dev->driver;
        int ret;
 
-       mutex_lock(&drm_global_mutex);
+       if (drm_dev_needs_global_mutex(dev))
+               mutex_lock(&drm_global_mutex);
 
        if (dev->driver->load) {
                if (!drm_core_check_feature(dev, DRIVER_LEGACY))
@@ -992,7 +993,8 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
        drm_minor_unregister(dev, DRM_MINOR_PRIMARY);
        drm_minor_unregister(dev, DRM_MINOR_RENDER);
 out_unlock:
-       mutex_unlock(&drm_global_mutex);
+       if (drm_dev_needs_global_mutex(dev))
+               mutex_unlock(&drm_global_mutex);
        return ret;
 }
 EXPORT_SYMBOL(drm_dev_register);
drivers/gpu/drm/drm_file.c +19 -0
index d36cb74ebe0c..efd6fe0b6b4f 100644
@@ -51,6 +51,37 @@
 /* from BKL pushdown */
 DEFINE_MUTEX(drm_global_mutex);
 
+bool drm_dev_needs_global_mutex(struct drm_device *dev)
+{
+       /*
+        * Legacy drivers rely on all kinds of BKL locking semantics, don't
+        * bother. They also still need BKL locking for their ioctls, so better
+        * safe than sorry.
+        */
+       if (drm_core_check_feature(dev, DRIVER_LEGACY))
+               return true;
+
+       /*
+        * The deprecated ->load callback must be called after the driver is
+        * already registered. This means such drivers rely on the BKL to make
+        * sure an open can't proceed until the driver is actually fully set up.
+        * Similar hilarity holds for the unload callback.
+        */
+       if (dev->driver->load || dev->driver->unload)
+               return true;
+

drivers/gpu/drm/drm_file.c line 82

Quoted 10 lines
drivers/gpu/drm/drm_file.c +10 -0
+       /*
+        * Drivers with the lastclose callback assume that it's synchronized
+        * against concurrent opens, which again needs the BKL. The proper fix
+        * is to use the drm_client infrastructure with proper locking for each
+        * client.
+        */
+       if (dev->driver->lastclose)
+               return true;
+
+       return false;
Quoted 2 lines

I'm not particularly fussed by this patch, maybe a bit too obviously midlayer.

Yeah it's not great. But I think long-term we might have a chance to limit this to DRIVER_LEGACY:
- load/unload is on the way out
- generic fbdev won't need lastclose
- I have an idea for fixing the vgaswitcheroo locking, now that I starred at this wall a bit more. Should be a good undependent cleanup.
- we could perhaps do a ->lastclose_unlocked for reducing that midlayer smell a tad. Same way we slowly managed to get rid of the dev->struct_mutex locking midlayer.

Quoted 3 lines

I was wondering if we should have a *dev->global_mutex which drivers can set to be any level they need (with a bit of care on our part to make sure it is not destroyed across dev->driver->lastclose).

I feel like outside of legacy driver the drm_global_mutex protection is limited enough that there's no need to give driver writers ideas :-) -Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw
In reply to Daniel Vetter

Quoting Daniel Vetter (2020-01-28 10:45:58)

Quoted 14 lines

Kinda time to get this sorted. The locking around this really is not nice.

---
 drivers/gpu/drm/drm_drv.c | 6 ++++++
 include/drm/drm_drv.h     | 3 +++
 2 files changed, 9 insertions(+)
drivers/gpu/drm/drm_drv.c +0 -0
index 7c18a980cd4b..8deff75b484c 100644

drivers/gpu/drm/drm_drv.c int drm_dev_register(struct drm_device *dev, unsigned long flags) · line 954

Quoted 7 lines
drivers/gpu/drm/drm_drv.c +4 -0
@@ -948,6 +948,12 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
 
        mutex_lock(&drm_global_mutex);
 
+       if (dev->driver->load) {
+               if (!drm_core_check_feature(dev, DRIVER_LEGACY))
+                       DRM_INFO("drm driver %s is using deprecated ->load callback\n",
+                                dev->driver->name);

DRM_WARN() if the plan is to remove it?

That should encourage people to complain louder.
-Chris
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by
#10 lore raw

Quoting Chris Wilson (2020-01-28 10:47:59)

Quoted 16 lines

Quoting Daniel Vetter (2020-01-28 10:45:58)

Quoted 15 lines

Kinda time to get this sorted. The locking around this really is not nice.

---
 drivers/gpu/drm/drm_drv.c | 6 ++++++
 include/drm/drm_drv.h     | 3 +++
 2 files changed, 9 insertions(+)
drivers/gpu/drm/drm_drv.c +0 -0
index 7c18a980cd4b..8deff75b484c 100644
@@ -948,6 +948,12 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
 
Quoted 8 lines

drivers/gpu/drm/drm_drv.c int drm_dev_register(struct drm_device *dev, unsigned long flags) · line 954

Quoted 6 lines
drivers/gpu/drm/drm_drv.c +4 -0
        mutex_lock(&drm_global_mutex);
 
+       if (dev->driver->load) {
+               if (!drm_core_check_feature(dev, DRIVER_LEGACY))
+                       DRM_INFO("drm driver %s is using deprecated ->load callback\n",
+                                dev->driver->name);

DRM_WARN() if the plan is to remove it?

Either way though,

-Chris
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to Chris Wilson
Quoted 16 lines · Chris Wilson

Quoting Daniel Vetter (2020-01-28 10:45:58)

Quoted 15 lines

Kinda time to get this sorted. The locking around this really is not nice.

---
 drivers/gpu/drm/drm_drv.c | 6 ++++++
 include/drm/drm_drv.h     | 3 +++
 2 files changed, 9 insertions(+)
drivers/gpu/drm/drm_drv.c +0 -0
index 7c18a980cd4b..8deff75b484c 100644
@@ -948,6 +948,12 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
 
Quoted 8 lines

drivers/gpu/drm/drm_drv.c int drm_dev_register(struct drm_device *dev, unsigned long flags) · line 954

Quoted 6 lines
drivers/gpu/drm/drm_drv.c +4 -0
        mutex_lock(&drm_global_mutex);
 
+       if (dev->driver->load) {
+               if (!drm_core_check_feature(dev, DRIVER_LEGACY))
+                       DRM_INFO("drm driver %s is using deprecated ->load callback\n",
+                                dev->driver->name);

DRM_WARN() if the plan is to remove it?

Consensus from the security check work that Kees Cook is doing seems to be:
- Put new thing in place, convert lots
- Start to do opt-in/informational stuff
- Once you're sure it's all gone, put in the big splat that kills the box/driver. Apparently radeon/amdgpu are the hold-outs, once those are done I think I'll just outright disable ->load/unload for !DRIVER_LEGACY.

Cheers, Daniel

Quoted 6 lines

That should encourage people to complain louder.
-Chris
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Reviewed-by on v1 1/4
#12 lore raw
In reply to Daniel Vetter

Hi

Am 28.01.20 um 11:45 schrieb Daniel Vetter:

Quoted 31 lines

Kinda time to get this sorted. The locking around this really is not nice.

---
 drivers/gpu/drm/drm_drv.c | 6 ++++++
 include/drm/drm_drv.h     | 3 +++
 2 files changed, 9 insertions(+)
drivers/gpu/drm/drm_drv.c +6 -0
index 7c18a980cd4b..8deff75b484c 100644
@@ -948,6 +948,12 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
 
 	mutex_lock(&drm_global_mutex);
 
+	if (dev->driver->load) {
+		if (!drm_core_check_feature(dev, DRIVER_LEGACY))
+			DRM_INFO("drm driver %s is using deprecated ->load callback\n",
+				 dev->driver->name);
+	}
+
 	ret = drm_minor_register(dev, DRM_MINOR_RENDER);
 	if (ret)
 		goto err_minors;
include/drm/drm_drv.h +0 -0
index 77685ed7aa65..77bc63de0a91 100644

include/drm/drm_drv.h struct drm_driver { · line 178

Quoted 6 lines
include/drm/drm_drv.h +3 -0
@@ -173,6 +173,9 @@ struct drm_driver {
 	 *
 	 * This is deprecated, do not use!
 	 *
+	 * FIXME: A few non-DRIVER_LEGACY drivers still use this, and should be
+	 * converted.
+	 *

I recently converted several of them. The status here is that only radeon and amdgpu still use load. I've only not been able to convert them because they do some debugfs registering that relies on the device being registered early. I've not had time to convert the code.

On the patch:

Quoted 4 lines
include/drm/drm_drv.h +0 -0
 	 * Returns:
 	 *
 	 * Zero on success, non-zero value on failure.
Signature · 6 lines
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#13 lore raw
Quoted 37 lines · Thomas Zimmermann

Hi

Am 28.01.20 um 11:45 schrieb Daniel Vetter:

Quoted 34 lines

Kinda time to get this sorted. The locking around this really is not nice.

---
 drivers/gpu/drm/drm_drv.c | 6 ++++++
 include/drm/drm_drv.h     | 3 +++
 2 files changed, 9 insertions(+)
drivers/gpu/drm/drm_drv.c +6 -0
index 7c18a980cd4b..8deff75b484c 100644
@@ -948,6 +948,12 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
 
 	mutex_lock(&drm_global_mutex);
 
+	if (dev->driver->load) {
+		if (!drm_core_check_feature(dev, DRIVER_LEGACY))
+			DRM_INFO("drm driver %s is using deprecated ->load callback\n",
+				 dev->driver->name);
+	}
+
 	ret = drm_minor_register(dev, DRM_MINOR_RENDER);
 	if (ret)
 		goto err_minors;
include/drm/drm_drv.h +0 -0
index 77685ed7aa65..77bc63de0a91 100644
@@ -173,6 +173,9 @@ struct drm_driver {
 	 *
 	 * This is deprecated, do not use!
 	 *
Quoted 8 lines

include/drm/drm_drv.h struct drm_driver { · line 178

Quoted 3 lines
include/drm/drm_drv.h +3 -0
+	 * FIXME: A few non-DRIVER_LEGACY drivers still use this, and should be
+	 * converted.
+	 *

I recently converted several of them. The status here is that only radeon and amdgpu still use load. I've only not been able to convert them because they do some debugfs registering that relies on the device being registered early. I've not had time to convert the code.

Oh nice, this sounds great. We have an outreachy project to helpt simplify the debugfs stuff, so might be worth waiting for that. I guess I'll keep this patch meanwhile (expect if Alex or Harry ack it, they'll see the fallout if we merge this early).
-Daniel

Quoted 18 lines

On the patch:

Quoted 4 lines
include/drm/drm_drv.h +0 -0
 	 * Returns:
 	 *
 	 * Zero on success, non-zero value on failure.
Signature · 6 lines
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#14 lore raw

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/4] drm: Complain if drivers still use the ->load callback

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/4] drm: Complain if drivers still use the ->load callback
URL : https://patchwork.freedesktop.org/series/72652/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
4b3af837d222 drm: Complain if drivers still use the ->load callback
-:42: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 21 lines checked
51b7fc1c6674 drm/fbdev-helper: don't force restores
-:76: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 37 lines checked
b3d3b03017d2 drm: Push drm_global_mutex locking in drm_open
-:87: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 54 lines checked
d229dd0db3a6 drm: Nerv drm_global_mutex BKL for good drivers
-:19: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 7e13ad896484 ("drm: Avoid drm_global_mutex for simple inc/dec of dev->open_count")' #19:
commit 7e13ad896484a0165a68197a2e64091ea28c9602

-:130: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 8) #130: FILE: drivers/gpu/drm/drm_file.c:481:
+ if (drm_dev_needs_global_mutex(dev))
mutex_lock(&drm_global_mutex);

-:155: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 1 errors, 2 warnings, 0 checks, 107 lines checked

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#15 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/4] drm: Complain if drivers still use the ->load callback

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/4] drm: Complain if drivers still use the ->load callback
URL : https://patchwork.freedesktop.org/series/72652/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_7833 -> Patchwork_16292
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_16292 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_16292, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/index.html

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_16292:

### IGT changes ###

#### Possible regressions ####

* igt@core_auth@basic-auth:
- fi-bwr-2160: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7833/fi-bwr-2160/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-bwr-2160/igt@[email protected]
- fi-kbl-guc: [PASS][3] -> [DMESG-WARN][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7833/fi-kbl-guc/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-kbl-guc/igt@[email protected]
- fi-cfl-8700k: [PASS][5] -> [INCOMPLETE][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7833/fi-cfl-8700k/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-cfl-8700k/igt@[email protected]
- fi-blb-e6850: [PASS][7] -> [INCOMPLETE][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7833/fi-blb-e6850/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-blb-e6850/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@runner@aborted:
- {fi-ehl-1}: NOTRUN -> [FAIL][9]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-ehl-1/igt@[email protected]

Known issues
------------

Here are the changes found in Patchwork_16292 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@core_auth@basic-auth:
- fi-icl-u2: [PASS][10] -> [INCOMPLETE][11] ([i915#140])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7833/fi-icl-u2/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-icl-u2/igt@[email protected]
- fi-icl-guc: [PASS][12] -> [INCOMPLETE][13] ([i915#140])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7833/fi-icl-guc/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-icl-guc/igt@[email protected]
- fi-elk-e7500: [PASS][14] -> [INCOMPLETE][15] ([i915#66])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7833/fi-elk-e7500/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-elk-e7500/igt@[email protected]
- fi-cml-s: [PASS][16] -> [INCOMPLETE][17] ([i915#283])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7833/fi-cml-s/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-cml-s/igt@[email protected]
- fi-icl-u3: [PASS][18] -> [INCOMPLETE][19] ([i915#140])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7833/fi-icl-u3/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-icl-u3/igt@[email protected]
- fi-gdg-551: [PASS][20] -> [INCOMPLETE][21] ([i915#172])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7833/fi-gdg-551/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/fi-gdg-551/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[i915#140]: https://gitlab.freedesktop.org/drm/intel/issues/140
[i915#172]: https://gitlab.freedesktop.org/drm/intel/issues/172
[i915#283]: https://gitlab.freedesktop.org/drm/intel/issues/283
[i915#66]: https://gitlab.freedesktop.org/drm/intel/issues/66

Participating hosts (50 -> 13)
------------------------------

ERROR: It appears as if the changes made in Patchwork_16292 prevented too many machines from booting.

Missing (37): fi-apl-guc fi-pnv-d510 fi-icl-y fi-skl-lmem fi-byt-n2820 fi-icl-dsi fi-skl-6600u fi-snb-2600 fi-hsw-4770r fi-cml-u2 fi-bxt-dsi fi-bdw-5557u fi-tgl-u fi-bsw-n3050 fi-byt-j1900 fi-glk-dsi fi-ilk-650 fi-kbl-7500u fi-ctg-p8600 fi-hsw-4770 fi-ivb-3770 fi-kbl-7560u fi-skl-6700k2 fi-kbl-r fi-ilk-m540 fi-skl-guc fi-hsw-peppy fi-byt-squawks fi-bsw-cyan fi-cfl-guc fi-whl-u fi-kbl-x1275 fi-cfl-8109u fi-kbl-8809g fi-bsw-kefka fi-byt-clapper fi-bdw-samus

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_7833 -> Patchwork_16292

CI-20190529: 20190529
CI_DRM_7833: 8210f0f999e2d396a8611e0cabc2f6c6a52468de @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5394: 991fd07bcd7add7a5beca2c95b72a994e62fbb75 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_16292: d229dd0db3a6f3d8c60fed5860754ef1dd765ebb @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

d229dd0db3a6 drm: Nerv drm_global_mutex BKL for good drivers b3d3b03017d2 drm: Push drm_global_mutex locking in drm_open 51b7fc1c6674 drm/fbdev-helper: don't force restores 4b3af837d222 drm: Complain if drivers still use the ->load callback

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16292/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx