All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amd/display: Clean Kconfig formatting
@ 2017-09-12 14:57 Harry Wentland
       [not found] ` <20170912145751.14030-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Harry Wentland @ 2017-09-12 14:57 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: alexander.deucher-5C7GfCeVMHo, Harry Wentland,
	airlied-Re5JQEeQqe8AvxtiuMwx3w, daniel-/w4YWyX8dFk

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/display/Kconfig | 33 ++++++++++++++++-----------------
 1 file changed, 16 insertions(+), 17 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig
index 62ea9f600374..e91b6e57cf03 100644
--- a/drivers/gpu/drm/amd/display/Kconfig
+++ b/drivers/gpu/drm/amd/display/Kconfig
@@ -2,26 +2,25 @@ menu "Display Engine Configuration"
 	depends on DRM && DRM_AMDGPU
 
 config DRM_AMD_DC
-        bool "AMD DC - Enable new display engine (will be deprecated when the development is done)"
-        help
-          Choose this option if you want to use the new display engine
-          support for AMDGPU.
-
-          Will be deprecated when the DC component is upstream.
+	bool "AMD DC - Enable new display engine
+	help
+	  Choose this option if you want to use the new display engine
+	  support for AMDGPU. This adds required support for Vega and
+	  Raven ASICs.
 
 config DRM_AMD_DC_DCN1_0
-        bool "DCN 1.0 Raven family"
-        depends on DRM_AMD_DC && X86
-        help
-            Choose this option if you want to have
-            RV family for display engine
+	bool "DCN 1.0 Raven family"
+	depends on DRM_AMD_DC && X86
+	help
+	  Choose this option if you want to have
+	  RV family for display engine
 
 config DEBUG_KERNEL_DC
-        bool "Enable kgdb break in DC"
-        depends on DRM_AMD_DC
-        help
-         Choose this option
-         if you want to hit
-         kdgb_break in assert.
+	bool "Enable kgdb break in DC"
+	depends on DRM_AMD_DC
+	help
+	  Choose this option
+	  if you want to hit
+	  kdgb_break in assert.
 
 endmenu
-- 
2.11.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] drm/amd/display: Disable pre-Vega ASICs be default
       [not found] ` <20170912145751.14030-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
@ 2017-09-12 14:57   ` Harry Wentland
       [not found]     ` <20170912145751.14030-2-harry.wentland-5C7GfCeVMHo@public.gmane.org>
  2017-09-12 16:17   ` [PATCH 1/2] drm/amd/display: Clean Kconfig formatting Deucher, Alexander
  1 sibling, 1 reply; 4+ messages in thread
From: Harry Wentland @ 2017-09-12 14:57 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: alexander.deucher-5C7GfCeVMHo, Harry Wentland,
	airlied-Re5JQEeQqe8AvxtiuMwx3w, daniel-/w4YWyX8dFk

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
 drivers/gpu/drm/amd/display/Kconfig        | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 34671790ce80..8c496a57788f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1995,7 +1995,9 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
 	case CHIP_TONGA:
 	case CHIP_FIJI:
 	case CHIP_VEGA10:
+#if defined(CONFIG_DRM_AMD_DC_PRE_VEGA)
 		return amdgpu_dc != 0;
+#endif
 	case CHIP_KABINI:
 	case CHIP_MULLINS:
 		return amdgpu_dc > 0;
diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig
index e91b6e57cf03..4d2816e01bf0 100644
--- a/drivers/gpu/drm/amd/display/Kconfig
+++ b/drivers/gpu/drm/amd/display/Kconfig
@@ -3,11 +3,19 @@ menu "Display Engine Configuration"
 
 config DRM_AMD_DC
 	bool "AMD DC - Enable new display engine
+	default y
 	help
 	  Choose this option if you want to use the new display engine
 	  support for AMDGPU. This adds required support for Vega and
 	  Raven ASICs.
 
+config DRM_AMD_DC_PRE_VEGA
+	bool "DC support for Polaris and older ASICs"
+	default n
+	help
+	  Choose this option to use the new DC driver for Polaris, Carrizo,
+	  Tonga, Bonaire, and Hawaii.
+
 config DRM_AMD_DC_DCN1_0
 	bool "DCN 1.0 Raven family"
 	depends on DRM_AMD_DC && X86
-- 
2.11.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [PATCH 1/2] drm/amd/display: Clean Kconfig formatting
       [not found] ` <20170912145751.14030-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
  2017-09-12 14:57   ` [PATCH 2/2] drm/amd/display: Disable pre-Vega ASICs be default Harry Wentland
@ 2017-09-12 16:17   ` Deucher, Alexander
  1 sibling, 0 replies; 4+ messages in thread
From: Deucher, Alexander @ 2017-09-12 16:17 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: Wentland, Harry, airlied-Re5JQEeQqe8AvxtiuMwx3w, daniel-/w4YWyX8dFk

> -----Original Message-----
> From: Harry Wentland [mailto:harry.wentland@amd.com]
> Sent: Tuesday, September 12, 2017 10:58 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: airlied@gmail.com; Deucher, Alexander; daniel@ffwll.ch; Wentland,
> Harry
> Subject: [PATCH 1/2] drm/amd/display: Clean Kconfig formatting
> 
> Signed-off-by: Harry Wentland <harry.wentland@amd.com>

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  drivers/gpu/drm/amd/display/Kconfig | 33 ++++++++++++++++---------------
> --
>  1 file changed, 16 insertions(+), 17 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/Kconfig
> b/drivers/gpu/drm/amd/display/Kconfig
> index 62ea9f600374..e91b6e57cf03 100644
> --- a/drivers/gpu/drm/amd/display/Kconfig
> +++ b/drivers/gpu/drm/amd/display/Kconfig
> @@ -2,26 +2,25 @@ menu "Display Engine Configuration"
>  	depends on DRM && DRM_AMDGPU
> 
>  config DRM_AMD_DC
> -        bool "AMD DC - Enable new display engine (will be deprecated when
> the development is done)"
> -        help
> -          Choose this option if you want to use the new display engine
> -          support for AMDGPU.
> -
> -          Will be deprecated when the DC component is upstream.
> +	bool "AMD DC - Enable new display engine
> +	help
> +	  Choose this option if you want to use the new display engine
> +	  support for AMDGPU. This adds required support for Vega and
> +	  Raven ASICs.
> 
>  config DRM_AMD_DC_DCN1_0
> -        bool "DCN 1.0 Raven family"
> -        depends on DRM_AMD_DC && X86
> -        help
> -            Choose this option if you want to have
> -            RV family for display engine
> +	bool "DCN 1.0 Raven family"
> +	depends on DRM_AMD_DC && X86
> +	help
> +	  Choose this option if you want to have
> +	  RV family for display engine
> 
>  config DEBUG_KERNEL_DC
> -        bool "Enable kgdb break in DC"
> -        depends on DRM_AMD_DC
> -        help
> -         Choose this option
> -         if you want to hit
> -         kdgb_break in assert.
> +	bool "Enable kgdb break in DC"
> +	depends on DRM_AMD_DC
> +	help
> +	  Choose this option
> +	  if you want to hit
> +	  kdgb_break in assert.
> 
>  endmenu
> --
> 2.11.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH 2/2] drm/amd/display: Disable pre-Vega ASICs be default
       [not found]     ` <20170912145751.14030-2-harry.wentland-5C7GfCeVMHo@public.gmane.org>
@ 2017-09-12 16:25       ` Deucher, Alexander
  0 siblings, 0 replies; 4+ messages in thread
From: Deucher, Alexander @ 2017-09-12 16:25 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: airlied-Re5JQEeQqe8AvxtiuMwx3w, Wentland, Harry, daniel-/w4YWyX8dFk

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Harry Wentland
> Sent: Tuesday, September 12, 2017 10:58 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Deucher, Alexander; Wentland, Harry; airlied@gmail.com;
> daniel@ffwll.ch
> Subject: [PATCH 2/2] drm/amd/display: Disable pre-Vega ASICs be default
> 
> Signed-off-by: Harry Wentland <harry.wentland@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
>  drivers/gpu/drm/amd/display/Kconfig        | 8 ++++++++
>  2 files changed, 10 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 34671790ce80..8c496a57788f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -1995,7 +1995,9 @@ bool amdgpu_device_asic_has_dc_support(enum
> amd_asic_type asic_type)
>  	case CHIP_TONGA:
>  	case CHIP_FIJI:
>  	case CHIP_VEGA10:
> +#if defined(CONFIG_DRM_AMD_DC_PRE_VEGA)
>  		return amdgpu_dc != 0;
> +#endif
>  	case CHIP_KABINI:
>  	case CHIP_MULLINS:
>  		return amdgpu_dc > 0;
> diff --git a/drivers/gpu/drm/amd/display/Kconfig
> b/drivers/gpu/drm/amd/display/Kconfig
> index e91b6e57cf03..4d2816e01bf0 100644
> --- a/drivers/gpu/drm/amd/display/Kconfig
> +++ b/drivers/gpu/drm/amd/display/Kconfig
> @@ -3,11 +3,19 @@ menu "Display Engine Configuration"
> 
>  config DRM_AMD_DC
>  	bool "AMD DC - Enable new display engine
> +	default y
>  	help
>  	  Choose this option if you want to use the new display engine
>  	  support for AMDGPU. This adds required support for Vega and
>  	  Raven ASICs.
> 
> +config DRM_AMD_DC_PRE_VEGA
> +	bool "DC support for Polaris and older ASICs"
> +	default n
> +	help
> +	  Choose this option to use the new DC driver for Polaris, Carrizo,
> +	  Tonga, Bonaire, and Hawaii.


I'd suggest changing the wording of this option to say something like:
"Choose this option to enable the new DC support for older asics by default."
So it's clear this just changes the default behavior, the user can still use DC via module parameter.

Alex

> +
>  config DRM_AMD_DC_DCN1_0
>  	bool "DCN 1.0 Raven family"
>  	depends on DRM_AMD_DC && X86
> --
> 2.11.0
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-12 16:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-12 14:57 [PATCH 1/2] drm/amd/display: Clean Kconfig formatting Harry Wentland
     [not found] ` <20170912145751.14030-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
2017-09-12 14:57   ` [PATCH 2/2] drm/amd/display: Disable pre-Vega ASICs be default Harry Wentland
     [not found]     ` <20170912145751.14030-2-harry.wentland-5C7GfCeVMHo@public.gmane.org>
2017-09-12 16:25       ` Deucher, Alexander
2017-09-12 16:17   ` [PATCH 1/2] drm/amd/display: Clean Kconfig formatting Deucher, Alexander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.