radeon: Add option to disable dpm quirks
Subsystems (2)
PATCH 1/1 radeon: Add option to disable dpm quirks
This allows to test whether a specific quirk is (still) need on a particular hardware combination.
Adel Gadllah (1):
radeon: Add option to disable dpm quirks
drivers/gpu/drm/radeon/radeon.h | 1 + drivers/gpu/drm/radeon/radeon_drv.c | 4 ++++ drivers/gpu/drm/radeon/radeon_pm.c | 2 +- drivers/gpu/drm/radeon/si_dpm.c | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-)
Signature · 6 lines
2.4.3 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/1 radeon: Add option to disable dpm quirks
Allow users to disable hardware specific dpm quirks using a module parameter.
This patch leaves quirks enabled by default.
--- drivers/gpu/drm/radeon/radeon.h | 1 + drivers/gpu/drm/radeon/radeon_drv.c | 4 ++++ drivers/gpu/drm/radeon/radeon_pm.c | 2 +- drivers/gpu/drm/radeon/si_dpm.c | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon.h +1 -0
@@ -102,6 +102,7 @@ extern int radeon_msi;extern int radeon_lockup_timeout;extern int radeon_fastfb;extern int radeon_dpm; +extern int radeon_dpm_quirks;extern int radeon_aspm;extern int radeon_runtime_pm;extern int radeon_hard_reset;
drivers/gpu/drm/radeon/radeon_drv.c +4 -0
@@ -183,6 +183,7 @@ int radeon_msi = -1;int radeon_lockup_timeout =10000 ;int radeon_fastfb =0 ;int radeon_dpm =-1 ; +int radeon_dpm_quirks =1 ;int radeon_aspm =-1 ;int radeon_runtime_pm =-1 ;int radeon_hard_reset =0 ;
@@ -249,6 +250,9 @@ module_param_named(lockup_timeout, radeon_lockup_timeout, int, 0444);MODULE_PARM_DESC (fastfb,"Direct FB access for IGP chips (0 = disable, 1 = enable)" );module_param_named (fastfb, radeon_fastfb, int,0444 ); +MODULE_PARM_DESC (dpm_quirks,"Use hardware specific DPM quirks (1 = enable (default), 0 = disable)" ); +module_param_named (dpm_quirks, radeon_dpm_quirks, int,0444 ); +MODULE_PARM_DESC (dpm,"DPM support (1 = enable, 0 = disable, -1 = auto)" );module_param_named (dpm, radeon_dpm, int,0444 );
drivers/gpu/drm/radeon/radeon_pm.c +1 -1
@@ -1460,7 +1460,7 @@ int radeon_pm_init(struct radeon_device *rdev)bool disable_dpm = false;/* Apply dpm quirks */ -while (p && p->chip_device !=0 ) { +while (radeon_dpm_quirks && p && p->chip_device !=0 ) { if (rdev->pdev->vendor == p->chip_vendor && rdev->pdev->device == p->chip_device && rdev->pdev->subsystem_vendor == p->subsys_vendor &&
drivers/gpu/drm/radeon/si_dpm.c +1 -1
@@ -2995,7 +2995,7 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,struct si_dpm_quirk *p = si_dpm_quirk_list;/* Apply dpm quirks */ -while (p && p->chip_device !=0 ) { +while (radeon_dpm_quirks && p && p->chip_device !=0 ) { if (rdev->pdev->vendor == p->chip_vendor && rdev->pdev->device == p->chip_device && rdev->pdev->subsystem_vendor == p->subsys_vendor &&
Signature · 6 lines
2.4.3 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 4 lines · Adel Gadllah
Allow users to disable hardware specific dpm quirks using a module parameter.
This patch leaves quirks enabled by default.
You should read the code a bit more carefully, you can already override the kernel quirks by specifying radeon.dpm=1 on the kernel command line.
Regards,
Christian.
Quoted 61 lines
Signed-off-by Adel Gadllah <[email protected]>--- drivers/gpu/drm/radeon/radeon.h | 1 + drivers/gpu/drm/radeon/radeon_drv.c | 4 ++++ drivers/gpu/drm/radeon/radeon_pm.c | 2 +- drivers/gpu/drm/radeon/si_dpm.c | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-)drivers/gpu/drm/radeon/radeon.h +1
-0@@ -102,6 +102,7 @@ extern int radeon_msi;extern int radeon_lockup_timeout;extern int radeon_fastfb;extern int radeon_dpm; +extern int radeon_dpm_quirks;extern int radeon_aspm;extern int radeon_runtime_pm;extern int radeon_hard_reset;drivers/gpu/drm/radeon/radeon_drv.c +4
-0@@ -183,6 +183,7 @@ int radeon_msi = -1;int radeon_lockup_timeout =10000 ;int radeon_fastfb =0 ;int radeon_dpm =-1 ; +int radeon_dpm_quirks =1 ;int radeon_aspm =-1 ;int radeon_runtime_pm =-1 ;int radeon_hard_reset =0 ;@@ -249,6 +250,9 @@ module_param_named(lockup_timeout, radeon_lockup_timeout, int, 0444);MODULE_PARM_DESC (fastfb,"Direct FB access for IGP chips (0 = disable, 1 = enable)" );module_param_named (fastfb, radeon_fastfb, int,0444 ); +MODULE_PARM_DESC (dpm_quirks,"Use hardware specific DPM quirks (1 = enable (default), 0 = disable)" ); +module_param_named (dpm_quirks, radeon_dpm_quirks, int,0444 ); +MODULE_PARM_DESC (dpm,"DPM support (1 = enable, 0 = disable, -1 = auto)" );module_param_named (dpm, radeon_dpm, int,0444 );drivers/gpu/drm/radeon/radeon_pm.c +1
-1@@ -1460,7 +1460,7 @@ int radeon_pm_init(struct radeon_device *rdev)bool disable_dpm = false;/* Apply dpm quirks */ -while (p && p->chip_device !=0 ) { +while (radeon_dpm_quirks && p && p->chip_device !=0 ) { if (rdev->pdev->vendor == p->chip_vendor && rdev->pdev->device == p->chip_device && rdev->pdev->subsystem_vendor == p->subsys_vendor &&drivers/gpu/drm/radeon/si_dpm.c +0
-0
drivers/gpu/drm/radeon/si_dpm.c static void si_apply_state_adjust_rules(struct radeon_device *rdev, · line 3001
Quoted 8 lines
drivers/gpu/drm/radeon/si_dpm.c +1
-1@@ -2995,7 +2995,7 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,struct si_dpm_quirk *p = si_dpm_quirk_list;/* Apply dpm quirks */ -while (p && p->chip_device !=0 ) { +while (radeon_dpm_quirks && p && p->chip_device !=0 ) { if (rdev->pdev->vendor == p->chip_vendor && rdev->pdev->device == p->chip_device && rdev->pdev->subsystem_vendor == p->subsys_vendor &&
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Am 08.08.2015 um 21:10 schrieb Christian König:
Quoted 7 lines · Adel Gadllah
Quoted 4 lines
Allow users to disable hardware specific dpm quirks using a module parameter.
This patch leaves quirks enabled by default.
You should read the code a bit more carefully, you can already override the kernel quirks by specifying radeon.dpm=1 on the kernel command line.
OK this seems to be indeed true for the quirks in radeon_pm.c but not for the ones in si_dpm.c ... or am I missing something? (If that's the case we should use radeon_dpm = 1 there as well for consistency).
Regards
Adel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Adel Gadllah
Am 08.08.2015 um 21:10 schrieb Christian König:
Quoted 7 lines · Adel Gadllah
Quoted 4 lines
Allow users to disable hardware specific dpm quirks using a module parameter.
This patch leaves quirks enabled by default.
You should read the code a bit more carefully, you can already override the kernel quirks by specifying radeon.dpm=1 on the kernel command line.
OK this seems to be indeed true for the quirks in
radeon_pm.cbut not for the ones insi_dpm.c... or am I missing something? (If that's the case we should useradeon_dpm= 1 there as well for consistency).
As far as I know those where explicitly added because of missing support for factory overclocked boards to prevent people from accidentally turning on DPM on such hardware.
So giving anybody the possibility to override those is probably not a good idea. If Alex implements the necessary changes he will surely remove those restrictions.
Regards,
Christian.
Quoted 4 lines
Regards
Adel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Adel Gadllah
Am 08.08.2015 um 21:10 schrieb Christian König:
Quoted 9 lines · Adel Gadllah
Quoted 5 lines
Allow users to disable hardware specific dpm quirks using a module parameter.
This patch leaves quirks enabled by default.
Quoted 6 lines
Quoted 2 lines
You should read the code a bit more carefully, you can already override the kernel quirks by specifying radeon.dpm=1 on the kernel command line.
OK this seems to be indeed true for the quirks in
radeon_pm.cbut not for the ones insi_dpm.c... or am I missing something? (If that's the case we should useradeon_dpm= 1 there as well for consistency).
The quirks in si_dpm just limit the clocks on some boards where the highest clocks are not stable; It doesn't disable dpm. When we sort out the root cause for those boards we can remove the quirks. Adding a module option to manually disable them is not really useful.
Alex
Quoted 9 lines
Regards
Adel_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel