Skip to contentSkip to conversation

drm/amdgpu: Add module parameter stutter_mode

PATCH In review rex zhu 5 participants 6 messages Jun 26, 2018 4 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

rex zhu

author
#0 lore raw

PATCH 1/2 drm/amdgpu: Add module parameter stutter_mode

Add new parameter to control stutter mode enable/disable.

Enable stutter mode can save power in low DRAM use cases including but not limited to productivity application use, web browsing, and video playback.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h     | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++++
 2 files changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
index e516077..4c81c3d 100644
@@ -137,6 +137,7 @@
 #ifdef CONFIG_DRM_AMDGPU_CIK
 extern int amdgpu_cik_support;
 #endif
+extern int amdgpu_stutter_mode;
 
 #define AMDGPU_SG_THRESHOLD			(256*1024*1024)
 #define AMDGPU_DEFAULT_GTT_SIZE_MB		3072ULL /* 3GB by default */
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4 -0
index 6841497..f6af747 100644
@@ -134,6 +134,7 @@
 int amdgpu_gpu_recovery = -1; /* auto */
 int amdgpu_emu_mode = 0;
 uint amdgpu_smu_memory_pool_size = 0;
+int amdgpu_stutter_mode = 0;
 
 MODULE_PARM_DESC(vramlimit, "Restrict VRAM for testing, in megabytes");
 module_param_named(vramlimit, amdgpu_vram_limit, int, 0600);
@@ -323,6 +324,9 @@
 		"0x1 = 256Mbyte, 0x2 = 512Mbyte, 0x4 = 1 Gbyte, 0x8 = 2GByte");
 module_param_named(smu_memory_pool_size, amdgpu_smu_memory_pool_size, uint, 0444);
 
+MODULE_PARM_DESC(stutter_mode, "stutter mode, (1 = enable, 0 = disable)");
+module_param_named(stutter_mode, amdgpu_stutter_mode, int, 0444);
+
 static const struct pci_device_id pciidlist[] = {
 #ifdef  CONFIG_DRM_AMDGPU_SI
 	{0x1002, 0x6780, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI},
Signature · 6 lines
1.9.1

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

A message that is not in the archive (sent off-list or not yet received): 1530008585-11608-1-git-send-email-rezhu-5C7GfCeVMHo@public.gmane.org

#2 lore raw
Quoted 5 lines · rex zhu

Add new parameter to control stutter mode enable/disable.

Enable stutter mode can save power in low DRAM use cases including but not limited to productivity application use, web browsing, and video playback.

We already have too many module parameters. Do we really need yet another one for this? Can't stutter mode just automatically be enabled when appropriate?

Signature · 6 lines
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 0eef6da9-3ab2-e1d3-a42c-d5c938b67a6c-otUistvHUpPR7s880joybQ@public.gmane.org

#4 lore raw

Evev when enabled this feature by default,we still need a way to disable it easily for triage issue maybe related to stutter mode.

as this feature is related to power saving. so we may add a bit mask in parameter ppfeaturemask.

Best Regards
Rex

?? Outlook for Android<https://aka.ms/ghei36>

________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Michel Dänzer <[email protected]>
Sent: Tuesday, June 26, 2018 6:38:14 PM
To: Zhu, Rex
Cc: Zhu, Rex; [email protected]
Subject: Re: [PATCH 1/2] drm/amdgpu: Add module parameter stutter_mode

Quoted 5 lines · rex zhu

Add new parameter to control stutter mode enable/disable.

Enable stutter mode can save power in low DRAM use cases including but not limited to productivity application use, web browsing, and video playback.

We already have too many module parameters. Do we really need yet another one for this? Can't stutter mode just automatically be enabled when appropriate?

--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

A message that is not in the archive (sent off-list or not yet received): CY4PR12MB1687727FBB7E2E477D2A5D5DFB490-rpdhrqHFk06Y0SjTqZDccQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

#6 lore raw
Quoted 3 lines · Rex

Evev when enabled this feature by default,we still need a way to disable it easily for triage issue maybe related to stutter mode.

as this feature is related to power saving. so we may add a bit mask in parameter ppfeaturemask.

That would be better.

Signature · 6 lines
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#7 lore raw
In reply to a message not in the archive

I was going to say the same thing. I think it would be better to add it to the ppfeature mask for consistency.

Alex

________________________________
From: amd-gfx <[email protected]> on behalf of Zhu, Rex <[email protected]>
Sent: Tuesday, June 26, 2018 7:10:52 AM
To: Michel Dänzer
Cc: [email protected]
Subject: Re: [PATCH 1/2] drm/amdgpu: Add module parameter stutter_mode

Evev when enabled this feature by default,we still need a way to disable it easily for triage issue maybe related to stutter mode.

as this feature is related to power saving. so we may add a bit mask in parameter ppfeaturemask.

Best Regards
Rex

获取 Outlook for Android<https://aka.ms/ghei36>

________________________________
From: amd-gfx <[email protected]> on behalf of Michel Dänzer <[email protected]>
Sent: Tuesday, June 26, 2018 6:38:14 PM
To: Zhu, Rex
Cc: Zhu, Rex; [email protected]
Subject: Re: [PATCH 1/2] drm/amdgpu: Add module parameter stutter_mode

Quoted 5 lines · rex zhu

Add new parameter to control stutter mode enable/disable.

Enable stutter mode can save power in low DRAM use cases including but not limited to productivity application use, web browsing, and video playback.

We already have too many module parameters. Do we really need yet another one for this? Can't stutter mode just automatically be enabled when appropriate?

--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

A message that is not in the archive (sent off-list or not yet received): BN6PR12MB18090D04792B1B6DF513EF0AF7490-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

#9 lore raw

Stutter can lead to a fair bit of instability so an option to disable/enable to debug is quite important.

I don't have a strong preference on how this option should look. ppfeaturemask should work well.

Harry

Quoted 31 lines · Alexander

I was going to say the same thing.  I think it would be better to add it to the ppfeature mask for consistency.

Alex

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*From:* amd-gfx <[email protected]> on behalf of Zhu, Rex <[email protected]>
*Sent:* Tuesday, June 26, 2018 7:10:52 AM
*To:* Michel Dänzer
*Cc:* [email protected]
*Subject:* Re: [PATCH 1/2] drm/amdgpu: Add module parameter stutter_mode

Evev when enabled this feature by default,we still need a way to disable it easily for triage issue maybe related to stutter mode.

as this feature is related to power saving. so we may add a bit mask in parameter ppfeaturemask.

Best Regards
Rex

获取 Outlook for Android <https://aka.ms/ghei36>

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*From:* amd-gfx <[email protected]> on behalf of Michel Dänzer <[email protected]> *Sent:* Tuesday, June 26, 2018 6:38:14 PM
*To:* Zhu, Rex
*Cc:* Zhu, Rex; [email protected]
*Subject:* Re: [PATCH 1/2] drm/amdgpu: Add module parameter stutter_mode

Quoted 2 lines · rex zhu

Add new parameter to control stutter mode enable/disable.

Quoted 23 lines
Quoted 3 lines

Enable stutter mode can save power in low DRAM use cases including but not limited to productivity application use, web browsing, and video playback.

We already have too many module parameters. Do we really need yet another one for this? Can't stutter mode just automatically be enabled when appropriate?

Signature · 12 lines
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


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

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