All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amdgpu: Really leave SI support disabled by default
@ 2017-05-29  9:20 Michel Dänzer
       [not found] ` <20170529092026.5567-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Michel Dänzer @ 2017-05-29  9:20 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

From: Michel Dänzer <michel.daenzer@amd.com>

The default option value didn't match the help text and intention.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---

Maybe this can be squashed into the commit adding this option when it
goes upstream.

 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 17ecc2542af5..76dea5fe620b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -234,7 +234,7 @@ MODULE_PARM_DESC(param_buf_per_se, "the size of Off-Chip Pramater Cache per Shad
 module_param_named(param_buf_per_se, amdgpu_param_buf_per_se, int, 0444);
 
 #ifdef CONFIG_DRM_AMDGPU_SI
-int amdgpu_si_support = 1;
+int amdgpu_si_support = 0;
 MODULE_PARM_DESC(si_support, "SI support (1 = enabled, 0 = disabled (default))");
 module_param_named(si_support, amdgpu_si_support, int, 0444);
 #endif
-- 
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] 12+ messages in thread

* [PATCH 2/3] drm/radeon: Make si_support and cik_support parameters always available
       [not found] ` <20170529092026.5567-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2017-05-29  9:20   ` Michel Dänzer
  2017-05-29  9:20   ` [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK GPUs Michel Dänzer
  2017-05-29 17:18   ` [PATCH 1/3] drm/amdgpu: Really leave SI support disabled by default Christian König
  2 siblings, 0 replies; 12+ messages in thread
From: Michel Dänzer @ 2017-05-29  9:20 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

From: Michel Dänzer <michel.daenzer@amd.com>

This will allow amdgpu-pro / other out-of-tree amdgpu builds to make use
of these options for using the out-of-tree amdgpu driver instead of the
in-tree radeon driver in a clean way.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 drivers/gpu/drm/radeon/radeon.h     | 5 -----
 drivers/gpu/drm/radeon/radeon_drv.c | 4 ----
 drivers/gpu/drm/radeon/radeon_kms.c | 4 ----
 3 files changed, 13 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index b0ce11ebc677..fb0c27be4ee6 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -116,13 +116,8 @@ extern int radeon_auxch;
 extern int radeon_mst;
 extern int radeon_uvd;
 extern int radeon_vce;
-
-#ifdef CONFIG_DRM_AMDGPU_SI
 extern int radeon_si_support;
-#endif
-#ifdef CONFIG_DRM_AMDGPU_CIK
 extern int radeon_cik_support;
-#endif
 
 /*
  * Copy from radeon_drv.h so we don't have to include both and have conflicting
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c
index c0c1b258d570..1cefadfe4a41 100644
--- a/drivers/gpu/drm/radeon/radeon_drv.c
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
@@ -303,17 +303,13 @@ module_param_named(uvd, radeon_uvd, int, 0444);
 MODULE_PARM_DESC(vce, "vce enable/disable vce support (1 = enable, 0 = disable)");
 module_param_named(vce, radeon_vce, int, 0444);
 
-#ifdef CONFIG_DRM_AMDGPU_SI
 int radeon_si_support = 1;
 MODULE_PARM_DESC(si_support, "SI support (1 = enabled (default), 0 = disabled)");
 module_param_named(si_support, radeon_si_support, int, 0444);
-#endif
 
-#ifdef CONFIG_DRM_AMDGPU_CIK
 int radeon_cik_support = 0;
 MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled, 0 = disabled (default))");
 module_param_named(cik_support, radeon_cik_support, int, 0444);
-#endif
 
 static struct pci_device_id pciidlist[] = {
 	radeon_PCI_IDS
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c
index 09fc0e1137a1..baaddf989f6d 100644
--- a/drivers/gpu/drm/radeon/radeon_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_kms.c
@@ -98,7 +98,6 @@ int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags)
 	struct radeon_device *rdev;
 	int r, acpi_status;
 
-#ifdef CONFIG_DRM_AMDGPU_SI
 	if (!radeon_si_support) {
 		switch (flags & RADEON_FAMILY_MASK) {
 		case CHIP_TAHITI:
@@ -111,8 +110,6 @@ int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags)
 			return -ENODEV;
 		}
 	}
-#endif
-#ifdef CONFIG_DRM_AMDGPU_CIK
 	if (!radeon_cik_support) {
 		switch (flags & RADEON_FAMILY_MASK) {
 		case CHIP_KAVERI:
@@ -128,7 +125,6 @@ int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags)
 			return -ENODEV;
 		}
 	}
-#endif
 
 	rdev = kzalloc(sizeof(struct radeon_device), GFP_KERNEL);
 	if (rdev == NULL) {
-- 
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] 12+ messages in thread

* [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK GPUs
       [not found] ` <20170529092026.5567-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
  2017-05-29  9:20   ` [PATCH 2/3] drm/radeon: Make si_support and cik_support parameters always available Michel Dänzer
@ 2017-05-29  9:20   ` Michel Dänzer
       [not found]     ` <20170529092026.5567-3-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
  2017-05-29 17:18   ` [PATCH 1/3] drm/amdgpu: Really leave SI support disabled by default Christian König
  2 siblings, 1 reply; 12+ messages in thread
From: Michel Dänzer @ 2017-05-29  9:20 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

From: Michel Dänzer <michel.daenzer@amd.com>

Even if CONFIG_DRM_AMDGPU_CIK is enabled.

There is no feature parity yet for CIK, in particular amdgpu doesn't
support HDMI/DisplayPort without DC.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/Kconfig      | 8 ++++----
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 7 +++++--
 drivers/gpu/drm/radeon/radeon_drv.c     | 4 ++--
 drivers/gpu/drm/radeon/radeon_kms.c     | 5 +----
 5 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig
index 8d36087fc186..e0121f8b436e 100644
--- a/drivers/gpu/drm/amd/amdgpu/Kconfig
+++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
@@ -17,11 +17,11 @@ config DRM_AMDGPU_CIK
 	help
 	  Choose this option if you want to enable support for CIK asics.
 
-	  CIK is already supported in radeon. If you enable this option,
-	  support for CIK will be provided by amdgpu and disabled in
-	  radeon by default. Use module options to override this:
+	  CIK is already supported in radeon. Support for SI in amdgpu
+	  will be disabled by default and is still provided by radeon.
+	  Use module options to override this:
 
-	  radeon.cik_support=1 amdgpu.cik_support=0
+	  radeon.cik_support=0 amdgpu.cik_support=1
 
 config DRM_AMDGPU_USERPTR
 	bool "Always enable userptr write support"
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 76dea5fe620b..27599db7d630 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -240,8 +240,8 @@ module_param_named(si_support, amdgpu_si_support, int, 0444);
 #endif
 
 #ifdef CONFIG_DRM_AMDGPU_CIK
-int amdgpu_cik_support = 1;
-MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled (default), 0 = disabled)");
+int amdgpu_cik_support = 0;
+MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled, 0 = disabled (default))");
 module_param_named(cik_support, amdgpu_cik_support, int, 0444);
 #endif
 
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
index f4f77b99afeb..31901d2886d9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
@@ -98,7 +98,7 @@ int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags)
 			dev_info(dev->dev,
 				 "SI support provided by radeon.\n");
 			dev_info(dev->dev,
-		"Use radeon.si_support=0 amdgpu.si_support=1 to override.\n"
+				 "Use radeon.si_support=0 amdgpu.si_support=1 to override.\n"
 				);
 			return -ENODEV;
 		}
@@ -113,7 +113,10 @@ int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags)
 		case CHIP_KABINI:
 		case CHIP_MULLINS:
 			dev_info(dev->dev,
-				 "CIK support disabled by module param\n");
+				 "CIK support provided by radeon.\n");
+			dev_info(dev->dev,
+				 "Use radeon.cik_support=0 amdgpu.cik_support=1 to override.\n"
+				);
 			return -ENODEV;
 		}
 	}
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c
index 1cefadfe4a41..853ef118a735 100644
--- a/drivers/gpu/drm/radeon/radeon_drv.c
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
@@ -307,8 +307,8 @@ int radeon_si_support = 1;
 MODULE_PARM_DESC(si_support, "SI support (1 = enabled (default), 0 = disabled)");
 module_param_named(si_support, radeon_si_support, int, 0444);
 
-int radeon_cik_support = 0;
-MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled, 0 = disabled (default))");
+int radeon_cik_support = 1;
+MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled (default), 0 = disabled)");
 module_param_named(cik_support, radeon_cik_support, int, 0444);
 
 static struct pci_device_id pciidlist[] = {
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c
index baaddf989f6d..8f2579772c34 100644
--- a/drivers/gpu/drm/radeon/radeon_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_kms.c
@@ -118,10 +118,7 @@ int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags)
 		case CHIP_KABINI:
 		case CHIP_MULLINS:
 			dev_info(dev->dev,
-				 "CIK support provided by amdgpu.\n");
-			dev_info(dev->dev,
-		"Use radeon.cik_support=1 amdgpu.cik_support=0 to override.\n"
-				);
+				 "CIK support disabled by module param\n");
 			return -ENODEV;
 		}
 	}
-- 
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] 12+ messages in thread

* Re: [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK GPUs
       [not found]     ` <20170529092026.5567-3-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2017-05-29 14:24       ` Kai Wasserbäch
       [not found]         ` <27357f85-4149-40c5-f408-6091b07fcd2b-1ZKVMVCtJ2dx9oSEVPI0kiST3g8Odh+X@public.gmane.org>
  2017-05-30  3:30       ` Michel Dänzer
  2017-05-30 14:59       ` Deucher, Alexander
  2 siblings, 1 reply; 12+ messages in thread
From: Kai Wasserbäch @ 2017-05-29 14:24 UTC (permalink / raw)
  To: Michel Dänzer, amd-gfx list

Hey Michel,
Michel Dänzer wrote on 29.05.2017 11:20:
> From: Michel Dänzer <michel.daenzer@amd.com>
> 
> Even if CONFIG_DRM_AMDGPU_CIK is enabled.
> 
> There is no feature parity yet for CIK, in particular amdgpu doesn't
> support HDMI/DisplayPort without DC.

that can't be correct. I'm using amdgpu on a CIK ASIC (Hawaii Pro) and my
monitor is connected by DisplayPort. From my Xorg.0.log:
> [    37.811] (II) AMDGPU(0): EDID for output DisplayPort-0
> [    37.811] (II) AMDGPU(0): Manufacturer: SAM  Model: 83d  Serial#: 0
> [    37.811] (II) AMDGPU(0): Year: 2011  Week: 7
> [    37.811] (II) AMDGPU(0): EDID Version: 1.4
> [    37.811] (II) AMDGPU(0): Digital Display Input
> [    37.811] (II) AMDGPU(0): 8 bits per channel
> [    37.811] (II) AMDGPU(0): Digital interface is DisplayPort
> [    37.811] (II) AMDGPU(0): Max Image Size [cm]: horiz.: 52  vert.: 32
> [    37.811] (II) AMDGPU(0): Gamma: 2.20
> [    37.811] (II) AMDGPU(0): DPMS capabilities: Off
> [    37.811] (II) AMDGPU(0): Supported color encodings: RGB 4:4:4 
> [    37.811] (II) AMDGPU(0): First detailed timing is preferred mode
> [    37.811] (II) AMDGPU(0): Preferred mode is native pixel format and refresh rate
> [    37.811] (II) AMDGPU(0): redX: 0.650 redY: 0.337   greenX: 0.296 greenY: 0.604
> [    37.811] (II) AMDGPU(0): blueX: 0.147 blueY: 0.074   whiteX: 0.312 whiteY: 0.329
> [    37.811] (II) AMDGPU(0): Supported established timings: [...]

Or do you mean some features like audio over HDMI/DP?

> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/Kconfig      | 8 ++++----
>  drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++--
>  drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 7 +++++--
>  drivers/gpu/drm/radeon/radeon_drv.c     | 4 ++--
>  drivers/gpu/drm/radeon/radeon_kms.c     | 5 +----
>  5 files changed, 14 insertions(+), 14 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig
> index 8d36087fc186..e0121f8b436e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/Kconfig
> +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
> @@ -17,11 +17,11 @@ config DRM_AMDGPU_CIK
>  	help
>  	  Choose this option if you want to enable support for CIK asics.
>  
> -	  CIK is already supported in radeon. If you enable this option,
> -	  support for CIK will be provided by amdgpu and disabled in
> -	  radeon by default. Use module options to override this:
> +	  CIK is already supported in radeon. Support for SI in amdgpu
> +	  will be disabled by default and is still provided by radeon.
> +	  Use module options to override this:
>  
> -	  radeon.cik_support=1 amdgpu.cik_support=0
> +	  radeon.cik_support=0 amdgpu.cik_support=1

What happens if I have radeon blacklisted? Do I still need to set this
additional flag? If so I'd kindly request to at least fall back to amdgpu if
somebody blacklisted radeon (or didn't compile it). Maybe issue a warning that
not all features are supported yet.

Thank you for your consideration!

Cheers,
Kai


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

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

* Re: [PATCH 1/3] drm/amdgpu: Really leave SI support disabled by default
       [not found] ` <20170529092026.5567-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
  2017-05-29  9:20   ` [PATCH 2/3] drm/radeon: Make si_support and cik_support parameters always available Michel Dänzer
  2017-05-29  9:20   ` [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK GPUs Michel Dänzer
@ 2017-05-29 17:18   ` Christian König
       [not found]     ` <b0db57f8-ccdf-4af7-c9fd-0a5cd3545099-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
  2 siblings, 1 reply; 12+ messages in thread
From: Christian König @ 2017-05-29 17:18 UTC (permalink / raw)
  To: Michel Dänzer, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Am 29.05.2017 um 11:20 schrieb Michel Dänzer:
> From: Michel Dänzer <michel.daenzer@amd.com>
>
> The default option value didn't match the help text and intention.
>
> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>

I'm still unsure about the last one. The feature parity is a good 
argument but on the other hand we want people to use amdgpu for CIK 
these days, don't we?

Anyway Reviewed-by: Christian König <christian.koenig@amd.com>.

Regards,
Christian.

> ---
>
> Maybe this can be squashed into the commit adding this option when it
> goes upstream.
>
>   drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> index 17ecc2542af5..76dea5fe620b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> @@ -234,7 +234,7 @@ MODULE_PARM_DESC(param_buf_per_se, "the size of Off-Chip Pramater Cache per Shad
>   module_param_named(param_buf_per_se, amdgpu_param_buf_per_se, int, 0444);
>   
>   #ifdef CONFIG_DRM_AMDGPU_SI
> -int amdgpu_si_support = 1;
> +int amdgpu_si_support = 0;
>   MODULE_PARM_DESC(si_support, "SI support (1 = enabled, 0 = disabled (default))");
>   module_param_named(si_support, amdgpu_si_support, int, 0444);
>   #endif


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

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

* Re: [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK GPUs
       [not found]         ` <27357f85-4149-40c5-f408-6091b07fcd2b-1ZKVMVCtJ2dx9oSEVPI0kiST3g8Odh+X@public.gmane.org>
@ 2017-05-30  3:22           ` Michel Dänzer
  0 siblings, 0 replies; 12+ messages in thread
From: Michel Dänzer @ 2017-05-30  3:22 UTC (permalink / raw)
  To: Kai Wasserbäch; +Cc: amd-gfx list

On 29/05/17 11:24 PM, Kai Wasserbäch wrote:
> Hey Michel,
> Michel Dänzer wrote on 29.05.2017 11:20:
>> From: Michel Dänzer <michel.daenzer@amd.com>
>>
>> Even if CONFIG_DRM_AMDGPU_CIK is enabled.
>>
>> There is no feature parity yet for CIK, in particular amdgpu doesn't
>> support HDMI/DisplayPort without DC.
> 
> that can't be correct.

Indeed, I meant "HDMI/DisplayPort audio", sorry for the confusion. Will
be fixed in v2.


>> diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig
>> index 8d36087fc186..e0121f8b436e 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/Kconfig
>> +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
>> @@ -17,11 +17,11 @@ config DRM_AMDGPU_CIK
>>  	help
>>  	  Choose this option if you want to enable support for CIK asics.
>>  
>> -	  CIK is already supported in radeon. If you enable this option,
>> -	  support for CIK will be provided by amdgpu and disabled in
>> -	  radeon by default. Use module options to override this:
>> +	  CIK is already supported in radeon. Support for SI in amdgpu
>> +	  will be disabled by default and is still provided by radeon.
>> +	  Use module options to override this:
>>  
>> -	  radeon.cik_support=1 amdgpu.cik_support=0
>> +	  radeon.cik_support=0 amdgpu.cik_support=1
> 
> What happens if I have radeon blacklisted? Do I still need to set this
> additional flag?

Yes, you still need to set amdgpu.cik_support=1.

> If so I'd kindly request to at least fall back to amdgpu if somebody
> blacklisted radeon (or didn't compile it).

I'm afraid that's not possible, at least I don't know how it could be done.

The intention is that these options provide a cleaner way than
blacklisting for choosing between the drivers, so the options should be
used instead of blacklisting.


> Maybe issue a warning that not all features are supported yet.

The drivers print a message when they're ignoring a GPU due to these
options.


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

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

* Re: [PATCH 1/3] drm/amdgpu: Really leave SI support disabled by default
       [not found]     ` <b0db57f8-ccdf-4af7-c9fd-0a5cd3545099-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
@ 2017-05-30  3:26       ` Michel Dänzer
       [not found]         ` <3f76e24c-d27c-62af-dd81-02080d058753-otUistvHUpPR7s880joybQ@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Michel Dänzer @ 2017-05-30  3:26 UTC (permalink / raw)
  To: Christian König; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 30/05/17 02:18 AM, Christian König wrote:
> Am 29.05.2017 um 11:20 schrieb Michel Dänzer:
>> From: Michel Dänzer <michel.daenzer@amd.com>
>>
>> The default option value didn't match the help text and intention.
>>
>> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
> 
> I'm still unsure about the last one. The feature parity is a good
> argument but on the other hand we want people to use amdgpu for CIK
> these days, don't we?

We want to make it easy for people to test amdgpu on CIK, which is what
the options added by Felix are for. IMO we should not flip the default
(upstream) before there is feature parity.


> Anyway Reviewed-by: Christian König <christian.koenig@amd.com>.

Thanks, I assume that applies to the whole series?


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

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

* Re: [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK GPUs
       [not found]     ` <20170529092026.5567-3-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
  2017-05-29 14:24       ` Kai Wasserbäch
@ 2017-05-30  3:30       ` Michel Dänzer
       [not found]         ` <42a9725f-58f7-d862-0a39-f8f3f6ed615a-otUistvHUpPR7s880joybQ@public.gmane.org>
  2017-05-30 14:59       ` Deucher, Alexander
  2 siblings, 1 reply; 12+ messages in thread
From: Michel Dänzer @ 2017-05-30  3:30 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 29/05/17 06:20 PM, Michel Dänzer wrote:
> From: Michel Dänzer <michel.daenzer@amd.com>
> 
> Even if CONFIG_DRM_AMDGPU_CIK is enabled.
> 
> There is no feature parity yet for CIK, in particular amdgpu doesn't
> support HDMI/DisplayPort without DC.
> 
> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>

[...]

> diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig
> index 8d36087fc186..e0121f8b436e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/Kconfig
> +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
> @@ -17,11 +17,11 @@ config DRM_AMDGPU_CIK
>  	help
>  	  Choose this option if you want to enable support for CIK asics.
>  
> -	  CIK is already supported in radeon. If you enable this option,
> -	  support for CIK will be provided by amdgpu and disabled in
> -	  radeon by default. Use module options to override this:
> +	  CIK is already supported in radeon. Support for SI in amdgpu

Consider this "SI" typo fixed in v2.


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

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

* Re: [PATCH 1/3] drm/amdgpu: Really leave SI support disabled by default
       [not found]         ` <3f76e24c-d27c-62af-dd81-02080d058753-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2017-05-30  7:57           ` Christian König
  0 siblings, 0 replies; 12+ messages in thread
From: Christian König @ 2017-05-30  7:57 UTC (permalink / raw)
  To: Michel Dänzer; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Am 30.05.2017 um 05:26 schrieb Michel Dänzer:
> On 30/05/17 02:18 AM, Christian König wrote:
>> Am 29.05.2017 um 11:20 schrieb Michel Dänzer:
>>> From: Michel Dänzer <michel.daenzer@amd.com>
>>>
>>> The default option value didn't match the help text and intention.
>>>
>>> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
>> I'm still unsure about the last one. The feature parity is a good
>> argument but on the other hand we want people to use amdgpu for CIK
>> these days, don't we?
> We want to make it easy for people to test amdgpu on CIK, which is what
> the options added by Felix are for. IMO we should not flip the default
> (upstream) before there is feature parity.
>
>
>> Anyway Reviewed-by: Christian König <christian.koenig@amd.com>.
> Thanks, I assume that applies to the whole series?

With the SI typo and the HDMI/DP audio thing pointed out by Kai fixed, 
than yes that rb applies to the whole series.

Christian.

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

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

* Re: [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK GPUs
       [not found]         ` <42a9725f-58f7-d862-0a39-f8f3f6ed615a-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2017-05-30  9:17           ` Grazvydas Ignotas
       [not found]             ` <CANOLnOOO574oSPA_A9Yz=dRJGsXkPcjWn8OHEmpg4qtoeadVNA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Grazvydas Ignotas @ 2017-05-30  9:17 UTC (permalink / raw)
  To: Michel Dänzer; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On Tue, May 30, 2017 at 6:30 AM, Michel Dänzer <michel@daenzer.net> wrote:
> On 29/05/17 06:20 PM, Michel Dänzer wrote:
>> From: Michel Dänzer <michel.daenzer@amd.com>
>>
>> Even if CONFIG_DRM_AMDGPU_CIK is enabled.
>>
>> There is no feature parity yet for CIK, in particular amdgpu doesn't
>> support HDMI/DisplayPort without DC.
>>
>> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
>
> [...]
>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig
>> index 8d36087fc186..e0121f8b436e 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/Kconfig
>> +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
>> @@ -17,11 +17,11 @@ config DRM_AMDGPU_CIK
>>       help
>>         Choose this option if you want to enable support for CIK asics.
>>
>> -       CIK is already supported in radeon. If you enable this option,
>> -       support for CIK will be provided by amdgpu and disabled in
>> -       radeon by default. Use module options to override this:
>> +       CIK is already supported in radeon. Support for SI in amdgpu
>
> Consider this "SI" typo fixed in v2.

While you are here, what about adding the full codenames here? You
can't expect every user configuring the kernel to know what SI/CIK
means, it's not even documented in
https://www.x.org/wiki/RadeonFeature/ or wikipedia, while the long
codenames are.

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

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

* Re: [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK GPUs
       [not found]             ` <CANOLnOOO574oSPA_A9Yz=dRJGsXkPcjWn8OHEmpg4qtoeadVNA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-05-30  9:49               ` Michel Dänzer
  0 siblings, 0 replies; 12+ messages in thread
From: Michel Dänzer @ 2017-05-30  9:49 UTC (permalink / raw)
  To: Grazvydas Ignotas; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 30/05/17 06:17 PM, Grazvydas Ignotas wrote:
> On Tue, May 30, 2017 at 6:30 AM, Michel Dänzer <michel@daenzer.net> wrote:
>> On 29/05/17 06:20 PM, Michel Dänzer wrote:
>>> From: Michel Dänzer <michel.daenzer@amd.com>
>>>
>>> Even if CONFIG_DRM_AMDGPU_CIK is enabled.
>>>
>>> There is no feature parity yet for CIK, in particular amdgpu doesn't
>>> support HDMI/DisplayPort without DC.
>>>
>>> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
>>
>> [...]
>>
>>> diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig
>>> index 8d36087fc186..e0121f8b436e 100644
>>> --- a/drivers/gpu/drm/amd/amdgpu/Kconfig
>>> +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
>>> @@ -17,11 +17,11 @@ config DRM_AMDGPU_CIK
>>>       help
>>>         Choose this option if you want to enable support for CIK asics.
>>>
>>> -       CIK is already supported in radeon. If you enable this option,
>>> -       support for CIK will be provided by amdgpu and disabled in
>>> -       radeon by default. Use module options to override this:
>>> +       CIK is already supported in radeon. Support for SI in amdgpu
>>
>> Consider this "SI" typo fixed in v2.
> 
> While you are here, what about adding the full codenames here? You
> can't expect every user configuring the kernel to know what SI/CIK
> means, it's not even documented in
> https://www.x.org/wiki/RadeonFeature/ or wikipedia, while the long
> codenames are.

That's out of scope for this series, and I definitely won't get around
to doing that before next week. Anybody feel free to beat me to it.


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

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

* RE: [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK GPUs
       [not found]     ` <20170529092026.5567-3-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
  2017-05-29 14:24       ` Kai Wasserbäch
  2017-05-30  3:30       ` Michel Dänzer
@ 2017-05-30 14:59       ` Deucher, Alexander
  2 siblings, 0 replies; 12+ messages in thread
From: Deucher, Alexander @ 2017-05-30 14:59 UTC (permalink / raw)
  To: 'Michel Dänzer', amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Michel Dänzer
> Sent: Monday, May 29, 2017 5:20 AM
> To: amd-gfx@lists.freedesktop.org
> Subject: [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK
> GPUs
> 
> From: Michel Dänzer <michel.daenzer@amd.com>
> 
> Even if CONFIG_DRM_AMDGPU_CIK is enabled.
> 
> There is no feature parity yet for CIK, in particular amdgpu doesn't
> support HDMI/DisplayPort without DC.

"HDMI/DisplayPort audio"

With that fixed, the series is:
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

> 
> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/Kconfig      | 8 ++++----
>  drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++--
>  drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 7 +++++--
>  drivers/gpu/drm/radeon/radeon_drv.c     | 4 ++--
>  drivers/gpu/drm/radeon/radeon_kms.c     | 5 +----
>  5 files changed, 14 insertions(+), 14 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig
> b/drivers/gpu/drm/amd/amdgpu/Kconfig
> index 8d36087fc186..e0121f8b436e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/Kconfig
> +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
> @@ -17,11 +17,11 @@ config DRM_AMDGPU_CIK
>  	help
>  	  Choose this option if you want to enable support for CIK asics.
> 
> -	  CIK is already supported in radeon. If you enable this option,
> -	  support for CIK will be provided by amdgpu and disabled in
> -	  radeon by default. Use module options to override this:
> +	  CIK is already supported in radeon. Support for SI in amdgpu
> +	  will be disabled by default and is still provided by radeon.
> +	  Use module options to override this:
> 
> -	  radeon.cik_support=1 amdgpu.cik_support=0
> +	  radeon.cik_support=0 amdgpu.cik_support=1
> 
>  config DRM_AMDGPU_USERPTR
>  	bool "Always enable userptr write support"
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> index 76dea5fe620b..27599db7d630 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> @@ -240,8 +240,8 @@ module_param_named(si_support,
> amdgpu_si_support, int, 0444);
>  #endif
> 
>  #ifdef CONFIG_DRM_AMDGPU_CIK
> -int amdgpu_cik_support = 1;
> -MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled (default), 0 =
> disabled)");
> +int amdgpu_cik_support = 0;
> +MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled, 0 = disabled
> (default))");
>  module_param_named(cik_support, amdgpu_cik_support, int, 0444);
>  #endif
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> index f4f77b99afeb..31901d2886d9 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> @@ -98,7 +98,7 @@ int amdgpu_driver_load_kms(struct drm_device *dev,
> unsigned long flags)
>  			dev_info(dev->dev,
>  				 "SI support provided by radeon.\n");
>  			dev_info(dev->dev,
> -		"Use radeon.si_support=0 amdgpu.si_support=1 to
> override.\n"
> +				 "Use radeon.si_support=0
> amdgpu.si_support=1 to override.\n"
>  				);
>  			return -ENODEV;
>  		}
> @@ -113,7 +113,10 @@ int amdgpu_driver_load_kms(struct drm_device
> *dev, unsigned long flags)
>  		case CHIP_KABINI:
>  		case CHIP_MULLINS:
>  			dev_info(dev->dev,
> -				 "CIK support disabled by module param\n");
> +				 "CIK support provided by radeon.\n");
> +			dev_info(dev->dev,
> +				 "Use radeon.cik_support=0
> amdgpu.cik_support=1 to override.\n"
> +				);
>  			return -ENODEV;
>  		}
>  	}
> diff --git a/drivers/gpu/drm/radeon/radeon_drv.c
> b/drivers/gpu/drm/radeon/radeon_drv.c
> index 1cefadfe4a41..853ef118a735 100644
> --- a/drivers/gpu/drm/radeon/radeon_drv.c
> +++ b/drivers/gpu/drm/radeon/radeon_drv.c
> @@ -307,8 +307,8 @@ int radeon_si_support = 1;
>  MODULE_PARM_DESC(si_support, "SI support (1 = enabled (default), 0 =
> disabled)");
>  module_param_named(si_support, radeon_si_support, int, 0444);
> 
> -int radeon_cik_support = 0;
> -MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled, 0 = disabled
> (default))");
> +int radeon_cik_support = 1;
> +MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled (default), 0 =
> disabled)");
>  module_param_named(cik_support, radeon_cik_support, int, 0444);
> 
>  static struct pci_device_id pciidlist[] = {
> diff --git a/drivers/gpu/drm/radeon/radeon_kms.c
> b/drivers/gpu/drm/radeon/radeon_kms.c
> index baaddf989f6d..8f2579772c34 100644
> --- a/drivers/gpu/drm/radeon/radeon_kms.c
> +++ b/drivers/gpu/drm/radeon/radeon_kms.c
> @@ -118,10 +118,7 @@ int radeon_driver_load_kms(struct drm_device
> *dev, unsigned long flags)
>  		case CHIP_KABINI:
>  		case CHIP_MULLINS:
>  			dev_info(dev->dev,
> -				 "CIK support provided by amdgpu.\n");
> -			dev_info(dev->dev,
> -		"Use radeon.cik_support=1 amdgpu.cik_support=0 to
> override.\n"
> -				);
> +				 "CIK support disabled by module param\n");
>  			return -ENODEV;
>  		}
>  	}
> --
> 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] 12+ messages in thread

end of thread, other threads:[~2017-05-30 14:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-29  9:20 [PATCH 1/3] drm/amdgpu: Really leave SI support disabled by default Michel Dänzer
     [not found] ` <20170529092026.5567-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-05-29  9:20   ` [PATCH 2/3] drm/radeon: Make si_support and cik_support parameters always available Michel Dänzer
2017-05-29  9:20   ` [PATCH 3/3] drm/amdgpu/radeon: Use radeon by default for CIK GPUs Michel Dänzer
     [not found]     ` <20170529092026.5567-3-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-05-29 14:24       ` Kai Wasserbäch
     [not found]         ` <27357f85-4149-40c5-f408-6091b07fcd2b-1ZKVMVCtJ2dx9oSEVPI0kiST3g8Odh+X@public.gmane.org>
2017-05-30  3:22           ` Michel Dänzer
2017-05-30  3:30       ` Michel Dänzer
     [not found]         ` <42a9725f-58f7-d862-0a39-f8f3f6ed615a-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-05-30  9:17           ` Grazvydas Ignotas
     [not found]             ` <CANOLnOOO574oSPA_A9Yz=dRJGsXkPcjWn8OHEmpg4qtoeadVNA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-05-30  9:49               ` Michel Dänzer
2017-05-30 14:59       ` Deucher, Alexander
2017-05-29 17:18   ` [PATCH 1/3] drm/amdgpu: Really leave SI support disabled by default Christian König
     [not found]     ` <b0db57f8-ccdf-4af7-c9fd-0a5cd3545099-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-05-30  3:26       ` Michel Dänzer
     [not found]         ` <3f76e24c-d27c-62af-dd81-02080d058753-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-05-30  7:57           ` Christian König

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.