drm/probe_helper: warning on poll_enabled for issue catching
Subsystems (2)
PATCH v3 2/2 drm/probe_helper: warning on poll_enabled for issue catching
In order to catch issues in other drivers to ensure proper call sequence of polling function.
v2: drop Fixes tag in commit message
--- drivers/gpu/drm/drm_probe_helper.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/drm_probe_helper.c +2 -0
@@ -852,6 +852,8 @@ EXPORT_SYMBOL(drm_kms_helper_is_poll_worker);*/ void drm_kms_helper_poll_disable (struct drm_device *dev) { +WARN_ON (!dev->mode_config.poll_enabled); +if (dev->mode_config.poll_running)drm_kms_helper_disable_hpd (dev);
Signature · 1 line
2.25.1
[AMD Official Use Only - General]
Series is acked-by: Evan Quan <[email protected]>
Quoted 40 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Guchun Chen
Sent: Friday, March 10, 2023 9:02 AM
To: [email protected]; [email protected]; Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; [email protected]; [email protected]; [email protected]
Cc: Chen, Guchun <[email protected]>
Subject: [PATCH v3 2/2] drm/probe_helper: warning onpoll_enabledfor issue catchingIn order to catch issues in other drivers to ensure proper call sequence of polling function.
v2: drop Fixes tag in commit message
Reported-by Bert Karwatzki <[email protected]>Suggested-by Dmitry Baryshkov <[email protected]>Signed-off-by Guchun Chen <[email protected]>--- drivers/gpu/drm/drm_probe_helper.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/drm_probe_helper.c +2
-1@@ -852,6 +852,8 @@ EXPORT_SYMBOL(drm_kms_helper_is_poll_worker);*/ void drm_kms_helper_poll_disable (struct drm_device *dev) { +WARN_ON (!dev->mode_config.poll_enabled); +if (dev->mode_config.poll_running)drm_kms_helper_disable_hpd (dev); --2.25.1
Quoted 18 lines · Guchun Chen
In order to catch issues in other drivers to ensure proper call sequence of polling function.
v2: drop Fixes tag in commit message
Reported-by Bert Karwatzki <[email protected]>Suggested-by Dmitry Baryshkov <[email protected]>Signed-off-by Guchun Chen <[email protected]>--- drivers/gpu/drm/drm_probe_helper.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/drm_probe_helper.c +0
-0
drivers/gpu/drm/drm_probe_helper.c EXPORT_SYMBOL(drm_kms_helper_is_poll_worker); · line 855
Quoted 4 lines
drivers/gpu/drm/drm_probe_helper.c +1
-0@@ -852,6 +852,8 @@ EXPORT_SYMBOL(drm_kms_helper_is_poll_worker);*/ void drm_kms_helper_poll_disable (struct drm_device *dev) { +WARN_ON (!dev->mode_config.poll_enabled);
Please address all previous review comments [1].
BR,
Jani.
Quoted 3 lines
drivers/gpu/drm/drm_probe_helper.c +1
-0+if (dev->mode_config.poll_running)drm_kms_helper_disable_hpd (dev);
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Quoted 34 lines
-----Original Message-----
From: Jani Nikula <[email protected]>
Sent: Friday, March 10, 2023 8:05 PM
To: Chen, Guchun <[email protected]>; amd- [email protected]; [email protected]; Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; [email protected]; [email protected]; [email protected]
Cc: Chen, Guchun <[email protected]>
Subject: Re: [PATCH v3 2/2] drm/probe_helper: warning onpoll_enabledfor issue catchingdrivers/gpu/drm/drm_probe_helper.c
Quoted 19 lines · Guchun Chen
In order to catch issues in other drivers to ensure proper call sequence of polling function.
v2: drop Fixes tag in commit message
Reported-by Bert Karwatzki <[email protected]>Suggested-by Dmitry Baryshkov <[email protected]>Signed-off-by Guchun Chen <[email protected]>--- drivers/gpu/drm/drm_probe_helper.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/drm_probe_helper.c +0
-0@@ -852,6 +852,8 @@
EXPORT_SYMBOL(drm_kms_helper_is_poll_worker);
Quoted 5 lines
drivers/gpu/drm/drm_probe_helper.c EXPORT_SYMBOL(drm_kms_helper_is_poll_worker); · line 855
Quoted 3 lines
drivers/gpu/drm/drm_probe_helper.c +1
-0*/ void drm_kms_helper_poll_disable (struct drm_device *dev) { +WARN_ON (!dev->mode_config.poll_enabled);Please address all previous review comments [1].
Sorry for missing your previous review email. Will address it in next patch set.
Regards,
Guchun
Quoted 13 lines
BR,
Jani.[1] https://lore.kernel.org/r/[email protected]
drivers/gpu/drm/drm_probe_helper.c EXPORT_SYMBOL(drm_kms_helper_is_poll_worker); · line 858
Quoted 3 lines
drivers/gpu/drm/drm_probe_helper.c +1
-0+if (dev->mode_config.poll_running)drm_kms_helper_disable_hpd (dev);--
Jani Nikula, Intel Open Source Graphics Center