drm/amdgpu: Define one variable for virtual display.
Subsystems (2)
PATCH 13/14 drm/amdgpu: Define one variable for virtual display.
For virtual display feature, define on variable in amdgpu.ko. When want to enable virtual display feature, need set the option "amdgpu.virtual_display=1". And then disable vga render and crtc if have DCE engine.
--- 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
@@ -93,6 +93,7 @@ extern unsigned amdgpu_pcie_lane_cap;extern unsigned amdgpu_cg_mask;extern unsigned amdgpu_pg_mask;extern int amdgpu_sclk_deep_sleep_en; +extern int amdgpu_virtual_display;#define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000#define AMDGPU_MAX_USEC_TIMEOUT 100000/* 100 ms */
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4 -0
@@ -90,6 +90,7 @@ unsigned amdgpu_pcie_gen_cap = 0;unsigned amdgpu_pcie_lane_cap =0 ;unsigned amdgpu_cg_mask =0xffffffff ;unsigned amdgpu_pg_mask =0xffffffff ; +int amdgpu_virtual_display =0 ;MODULE_PARM_DESC (vramlimit,"Restrict VRAM for testing, in megabytes" );module_param_named (vramlimit, amdgpu_vram_limit, int,0600 );
@@ -189,6 +190,9 @@ module_param_named(cg_mask, amdgpu_cg_mask, uint, 0444);MODULE_PARM_DESC (pg_mask,"Powergating flags mask (0 = disable power gating)" );module_param_named (pg_mask, amdgpu_pg_mask, uint,0444 ); +MODULE_PARM_DESC (virtual_display,"enable virtual display (0 = disable virtual display)" ); +module_param_named (virtual_display, amdgpu_virtual_display, int,0444 ); +static const struct pci_device_id pciidlist[] = { #ifdef CONFIG_DRM_AMDGPU_CIK /* Kaveri */
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): 1470377398-2186-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org
Quoted 3 lines · Emily Deng
For virtual display feature, define on variable in amdgpu.ko. When want to enable virtual display feature, need set the option "amdgpu.virtual_display=1". And then disable vga render and crtc if have DCE engine.
What if there are multiple GPUs supported by amdgpu in the system, and the user wants to enable virtual output for some, but not all of them?
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): 65e78804-d550-f983-7d09-23f707c24bbc-otUistvHUpPR7s880joybQ@public.gmane.org
Quoted 9 lines
-----Original Message-----
From: Michel Dänzer [mailto:[email protected]]
Sent: Friday, August 05, 2016 4:29 PM
To: Deng, Emily <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 13/14] drm/amdgpu: Define one variable for virtual display.
Quoted 9 lines
Quoted 2 lines · Emily Deng
For virtual display feature, define on variable in amdgpu.ko. When want to enable virtual display feature, need set the option
"amdgpu.virtual_display=1".
Quoted 1 line
And then disable vga render and crtc if have DCE engine.
What if there are multiple GPUs supported by amdgpu in the system, and the user wants to enable virtual output for some, but not all of them?
[[EmilyD]] Currently, only support enable or disable virtual display for all outputs. I think maybe could first check in the currently code. If we'd like to support to enable virtual display output for some, future we may define a string variable which includes the busID of outputs which want to enable virtual display, then parse the string in driver to define what outputs need to enable virtual display.
Quoted 5 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
Alex Deucher
Reviewed-byQuoted 5 lines · Emily Deng
For virtual display feature, define on variable in amdgpu.ko. When want to enable virtual display feature, need set the option "amdgpu.virtual_display=1". And then disable vga render and crtc if have DCE engine.
Signed-off-by Emily Deng <[email protected]>
Quoted 42 lines
--- 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@@ -93,6 +93,7 @@ extern unsigned amdgpu_pcie_lane_cap;extern unsigned amdgpu_cg_mask;extern unsigned amdgpu_pg_mask;extern int amdgpu_sclk_deep_sleep_en; +extern int amdgpu_virtual_display;#define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000#define AMDGPU_MAX_USEC_TIMEOUT 100000/* 100 ms */ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +4
-1@@ -90,6 +90,7 @@ unsigned amdgpu_pcie_gen_cap = 0;unsigned amdgpu_pcie_lane_cap =0 ;unsigned amdgpu_cg_mask =0xffffffff ;unsigned amdgpu_pg_mask =0xffffffff ; +int amdgpu_virtual_display =0 ;MODULE_PARM_DESC (vramlimit,"Restrict VRAM for testing, in megabytes" );module_param_named (vramlimit, amdgpu_vram_limit, int,0600 );@@ -189,6 +190,9 @@ module_param_named(cg_mask, amdgpu_cg_mask, uint, 0444);MODULE_PARM_DESC (pg_mask,"Powergating flags mask (0 = disable power gating)" );module_param_named (pg_mask, amdgpu_pg_mask, uint,0444 ); +MODULE_PARM_DESC (virtual_display,"enable virtual display (0 = disable virtual display)" ); +module_param_named (virtual_display, amdgpu_virtual_display, int,0444 ); +static const struct pci_device_id pciidlist[] = { #ifdef CONFIG_DRM_AMDGPU_CIK /* Kaveri */ --1.9.1
Quoted 4 lines
_______________________________________________
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