Skip to contentSkip to conversation

Enable S/G for Picasso

PATCH Superseded Andrey Grodzovsky 3 participants 15 messages Jul 24, 2019 10 messages not in the archive

Subsystems (3)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v3 cover Enable S/G for Picasso

First two patches fix a hard hang introduced by placing the display BO in GTT memory because of HW issues with cached mappings. Second patch does some minor reafactoring to resue code in thrid patch. Last patch enables S/G.

Andrey Grodzovsky (2):
drm/amdgpu: Fix hard hang for S/G display BOs. drm/amdgpu: Create helper to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC

Shirish S (1):
drm/amd: enable S/G for RAVEN chip

 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c       | 16 +++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c            |  7 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c           |  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c        | 63 +++++++++++++----------
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h        |  2 +
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  2 +-
 6 files changed, 58 insertions(+), 35 deletions(-)
Signature · 6 lines
2.7.4

_______________________________________________
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): 1563977442-4809-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org

#2 lore raw

PATCH v3 1/3 drm/amdgpu: Fix hard hang for S/G display BOs.

HW requires for caching to be unset for scanout BO mappings when the BO placement is in GTT memory. Usually the flag to unset is passed from user mode but for FB mode this was missing.

v2:
Move all BO placemnt logic to amdgpu_display_supported_domains

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c  | 7 +++----
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 3 ++-
 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +3 -4
index e476092..bf0c61b 100644
@@ -137,14 +137,14 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev,
 	mode_cmd->pitches[0] = amdgpu_align_pitch(adev, mode_cmd->width, cpp,
 						  fb_tiled);
 	domain = amdgpu_display_supported_domains(adev);
-
 	height = ALIGN(mode_cmd->height, 8);
 	size = mode_cmd->pitches[0] * height;
 	aligned_size = ALIGN(size, PAGE_SIZE);
 	ret = amdgpu_gem_object_create(adev, aligned_size, 0, domain,
 				       AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED |
-				       AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS |
-				       AMDGPU_GEM_CREATE_VRAM_CLEARED,
+				       AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS     |
+				       AMDGPU_GEM_CREATE_VRAM_CLEARED 	     |
+				       AMDGPU_GEM_CREATE_CPU_GTT_USWC,
 				       ttm_bo_type_kernel, NULL, &gobj);
 	if (ret) {
 		pr_err("failed to allocate framebuffer (%d)\n", aligned_size);
@@ -166,7 +166,6 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev,
 			dev_err(adev->dev, "FB failed to set tiling flags\n");
 	}
 
-
 	ret = amdgpu_bo_pin(abo, domain);
 	if (ret) {
 		amdgpu_bo_unreserve(abo);
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +2 -1
index 2cead5a..eeed089 100644
@@ -743,7 +743,8 @@ int amdgpu_mode_dumb_create(struct drm_file *file_priv,
 	struct amdgpu_device *adev = dev->dev_private;
 	struct drm_gem_object *gobj;
 	uint32_t handle;
-	u64 flags = AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED;
+	u64 flags = AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED |
+		    AMDGPU_GEM_CREATE_CPU_GTT_USWC;
 	u32 domain;
 	int r;
 
Signature · 6 lines
2.7.4

_______________________________________________
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): 1563977442-4809-2-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org

#4 lore raw

Re: [PATCH v3 1/3] drm/amdgpu: Fix hard hang for S/G display BOs.

Just some cosmetic notes on this one:

Quoted 7 lines · Andrey Grodzovsky

HW requires for caching to be unset for scanout BO mappings when the BO placement is in GTT memory. Usually the flag to unset is passed from user mode but for FB mode this was missing.

v2:
Move all BO placemnt logic to amdgpu_display_supported_domains

Spelling: "placemnt" => "placement"

This note is a bit confusing, since this patch doesn't move anything into amdgpu_display_supported_domains. How about e.g. "Keep all BO placement logic in amdgpu_display_supported_domains"?

Quoted 12 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +0 -1
index e476092..bf0c61b 100644
@@ -137,14 +137,14 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev,
 	mode_cmd->pitches[0] = amdgpu_align_pitch(adev, mode_cmd->width, cpp,
 						  fb_tiled);
 	domain = amdgpu_display_supported_domains(adev);
-
 	height = ALIGN(mode_cmd->height, 8);
[...]

drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev, · line 171

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +0 -1
@@ -166,7 +166,6 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev,
 			dev_err(adev->dev, "FB failed to set tiling flags\n");
 	}
 
-
 	ret = amdgpu_bo_pin(abo, domain);
 	if (ret) {
 		amdgpu_bo_unreserve(abo);

Please drop the removal of these empty lines from this patch.

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

PATCH v3 2/3 drm/amdgpu: Create helper to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC

In reply to a message not in the archive

Move the logic to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC in amdgpu_bo_do_create into standalone helper so it can be reused in other functions.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 63 +++++++++++++++++-------------
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h |  2 +
 2 files changed, 38 insertions(+), 27 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +36 -27
index 989b7b5..64c45bc 100644
@@ -413,6 +413,41 @@ static bool amdgpu_bo_validate_size(struct amdgpu_device *adev,
 	return false;
 }
 
+void amdgpu_bo_validate_uswc(u64 *bo_flags)
+{
+	u64 flags = *bo_flags;
+
+#ifdef CONFIG_X86_32
+	/* XXX: Write-combined CPU mappings of GTT seem broken on 32-bit
+	 * See https://bugs.freedesktop.org/show_bug.cgi?id=84627
+	 */
+	flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
+#elif defined(CONFIG_X86) && !defined(CONFIG_X86_PAT)
+	/* Don't try to enable write-combining when it can't work, or things
+	 * may be slow
+	 * See https://bugs.freedesktop.org/show_bug.cgi?id=88758
+	 */
+
+#ifndef CONFIG_COMPILE_TEST
+#warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance \
+	 thanks to write-combining
+#endif
+
+	if (flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC)
+		DRM_INFO_ONCE("Please enable CONFIG_MTRR and CONFIG_X86_PAT for "
+			      "better performance thanks to write-combining\n");
+	flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
+#else
+	/* For architectures that don't support WC memory,
+	 * mask out the WC flag from the BO
+	 */
+	if (!drm_arch_can_wc_memory())
+		flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
+#endif
+
+	*bo_flags = flags;
+}
+
 static int amdgpu_bo_do_create(struct amdgpu_device *adev,
 			       struct amdgpu_bo_param *bp,
 			       struct amdgpu_bo **bo_ptr)
@@ -466,33 +501,7 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
 
 	bo->flags = bp->flags;
 
-#ifdef CONFIG_X86_32
-	/* XXX: Write-combined CPU mappings of GTT seem broken on 32-bit
-	 * See https://bugs.freedesktop.org/show_bug.cgi?id=84627
-	 */
-	bo->flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
-#elif defined(CONFIG_X86) && !defined(CONFIG_X86_PAT)
-	/* Don't try to enable write-combining when it can't work, or things
-	 * may be slow
-	 * See https://bugs.freedesktop.org/show_bug.cgi?id=88758
-	 */
-
-#ifndef CONFIG_COMPILE_TEST
-#warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance \
-	 thanks to write-combining
-#endif
-
-	if (bo->flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC)
-		DRM_INFO_ONCE("Please enable CONFIG_MTRR and CONFIG_X86_PAT for "
-			      "better performance thanks to write-combining\n");
-	bo->flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
-#else
-	/* For architectures that don't support WC memory,
-	 * mask out the WC flag from the BO
-	 */
-	if (!drm_arch_can_wc_memory())
-		bo->flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
-#endif
+	amdgpu_bo_validate_uswc(&bo->flags);
 
 	bo->tbo.bdev = &adev->mman.bdev;
 	if (bp->domain & (AMDGPU_GEM_DOMAIN_GWS | AMDGPU_GEM_DOMAIN_OA |
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +2 -0
index d60593c..07832e8 100644
@@ -308,5 +308,7 @@ void amdgpu_sa_bo_dump_debug_info(struct amdgpu_sa_manager *sa_manager,
 					 struct seq_file *m);
 #endif
 
+void amdgpu_bo_validate_uswc(u64 *bo_flags);
+
 
 #endif
Signature · 6 lines
2.7.4

_______________________________________________
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): 1563977442-4809-3-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org

#7 lore raw

Re: [PATCH v3 2/3] drm/amdgpu: Create helper to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC

Quoted 13 lines · Andrey Grodzovsky

Move the logic to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC in amdgpu_bo_do_create into standalone helper so it can be reused in other functions.

---
[...]

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +0 -0
index 989b7b5..64c45bc 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c static bool amdgpu_bo_validate_size(struct amdgpu_device *adev, · line 416

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +1 -0
@@ -413,6 +413,41 @@ static bool amdgpu_bo_validate_size(struct amdgpu_device *adev,
 	return false;
 }
 
+void amdgpu_bo_validate_uswc(u64 *bo_flags)

This API is a bit weird. :) I'd suggest something like

bool amdgpu_uswc_supported(void)

{
	if ([various conditions])
		return false;

	return true;
}

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c static int amdgpu_bo_do_create(struct amdgpu_device *adev, · line 504

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +1 -0
@@ -466,33 +501,7 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
[...]
+	amdgpu_bo_validate_uswc(&bo->flags);

And then

	if (!amdgpu_uswc_supported())
		bo->flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;

here.

Signature · 6 lines
Earthling Michel Dänzer               |              https://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): e70a00d3-bcd3-c72e-8de8-eb6ae10abee6-otUistvHUpPR7s880joybQ@public.gmane.org

#9 lore raw

Re: [PATCH v3 2/3] drm/amdgpu: Create helper to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC

Quoted 20 lines · Michel Dänzer
Quoted 13 lines · Andrey Grodzovsky

Move the logic to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC in amdgpu_bo_do_create into standalone helper so it can be reused in other functions.

---
[...]

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +0 -0
index 989b7b5..64c45bc 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c static bool amdgpu_bo_validate_size(struct amdgpu_device *adev, · line 416

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +1 -0
@@ -413,6 +413,41 @@ static bool amdgpu_bo_validate_size(struct amdgpu_device *adev,
  	return false;
  }
 
+void amdgpu_bo_validate_uswc(u64 *bo_flags)

This API is a bit weird. :) I'd suggest something like

Quoted 7 lines

bool amdgpu_uswc_supported(void)

{
	if ([various conditions])
		return false;

	return true;
}

Yea, the code is confusing with all #ifdefs so i wanted minimal changes to not break anything, but i can do this way to.

Andrey

Quoted 6 lines

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c static int amdgpu_bo_do_create(struct amdgpu_device *adev, · line 504

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +1 -0
@@ -466,33 +501,7 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
[...]
+	amdgpu_bo_validate_uswc(&bo->flags);

And then

Quoted 6 lines
	if (!amdgpu_uswc_supported())
		bo->flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;

here.

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

#10 lore raw

Re: [PATCH v3 2/3] drm/amdgpu: Create helper to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC

In reply to a message not in the archive

Am 24.07.19 um 16:10 schrieb Andrey Grodzovsky:

Quoted 15 lines

Move the logic to clear AMDGPU_GEM_CREATE_CPU_GTT_USWC in amdgpu_bo_do_create into standalone helper so it can be reused in other functions.

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 63 +++++++++++++++++-------------
  drivers/gpu/drm/amd/amdgpu/amdgpu_object.h |  2 +
  2 files changed, 38 insertions(+), 27 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +0 -0
index 989b7b5..64c45bc 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c static bool amdgpu_bo_validate_size(struct amdgpu_device *adev, · line 416

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +1 -0
@@ -413,6 +413,41 @@ static bool amdgpu_bo_validate_size(struct amdgpu_device *adev,
  	return false;
  }
 
+void amdgpu_bo_validate_uswc(u64 *bo_flags)

Better return bool here instead of modifying the flag.

Christian.

Quoted 77 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +35 -27
+{
+	u64 flags = *bo_flags;
+
+#ifdef CONFIG_X86_32
+	/* XXX: Write-combined CPU mappings of GTT seem broken on 32-bit
+	 * See https://bugs.freedesktop.org/show_bug.cgi?id=84627
+	 */
+	flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
+#elif defined(CONFIG_X86) && !defined(CONFIG_X86_PAT)
+	/* Don't try to enable write-combining when it can't work, or things
+	 * may be slow
+	 * See https://bugs.freedesktop.org/show_bug.cgi?id=88758
+	 */
+
+#ifndef CONFIG_COMPILE_TEST
+#warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance \
+	 thanks to write-combining
+#endif
+
+	if (flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC)
+		DRM_INFO_ONCE("Please enable CONFIG_MTRR and CONFIG_X86_PAT for "
+			      "better performance thanks to write-combining\n");
+	flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
+#else
+	/* For architectures that don't support WC memory,
+	 * mask out the WC flag from the BO
+	 */
+	if (!drm_arch_can_wc_memory())
+		flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
+#endif
+
+	*bo_flags = flags;
+}
+
  static int amdgpu_bo_do_create(struct amdgpu_device *adev,
  			       struct amdgpu_bo_param *bp,
  			       struct amdgpu_bo **bo_ptr)
@@ -466,33 +501,7 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
 
  	bo->flags = bp->flags;
 
-#ifdef CONFIG_X86_32
-	/* XXX: Write-combined CPU mappings of GTT seem broken on 32-bit
-	 * See https://bugs.freedesktop.org/show_bug.cgi?id=84627
-	 */
-	bo->flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
-#elif defined(CONFIG_X86) && !defined(CONFIG_X86_PAT)
-	/* Don't try to enable write-combining when it can't work, or things
-	 * may be slow
-	 * See https://bugs.freedesktop.org/show_bug.cgi?id=88758
-	 */
-
-#ifndef CONFIG_COMPILE_TEST
-#warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance \
-	 thanks to write-combining
-#endif
-
-	if (bo->flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC)
-		DRM_INFO_ONCE("Please enable CONFIG_MTRR and CONFIG_X86_PAT for "
-			      "better performance thanks to write-combining\n");
-	bo->flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
-#else
-	/* For architectures that don't support WC memory,
-	 * mask out the WC flag from the BO
-	 */
-	if (!drm_arch_can_wc_memory())
-		bo->flags &= ~AMDGPU_GEM_CREATE_CPU_GTT_USWC;
-#endif
+	amdgpu_bo_validate_uswc(&bo->flags);
 
  	bo->tbo.bdev = &adev->mman.bdev;
  	if (bp->domain & (AMDGPU_GEM_DOMAIN_GWS | AMDGPU_GEM_DOMAIN_OA |
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +0 -0
index d60593c..07832e8 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_object.h void amdgpu_sa_bo_dump_debug_info(struct amdgpu_sa_manager *sa_manager, · line 314

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +2 -0
@@ -308,5 +308,7 @@ void amdgpu_sa_bo_dump_debug_info(struct amdgpu_sa_manager *sa_manager,
  					 struct seq_file *m);
  #endif
 
+void amdgpu_bo_validate_uswc(u64 *bo_flags);
+
 
  #endif

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

#11 lore raw

PATCH v3 3/3 drm/amd: enable S/G for RAVEN chip

In reply to a message not in the archive

From: Shirish S <[email protected]>

enables gpu_vm_support in dm and adds
AMDGPU_GEM_DOMAIN_GTT as supported domain

v2:
Move BO placement logic into amdgpu_display_supported_domains

v3:
Use amdgpu_bo_validate_uswc in amdgpu_display_supported_domains.

Change-Id If34300beaa60be2d36170b7b5b096ec644502b20
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c       | 16 ++++++++++++++--
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  2 +-
 2 files changed, 15 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +14 -2
index 767ee699..23b8046 100644
@@ -37,6 +37,7 @@
 #include <drm/drm_edid.h>
 #include <drm/drm_gem_framebuffer_helper.h>
 #include <drm/drm_fb_helper.h>
+#include <drm/drm_cache.h>
 
 static void amdgpu_display_flip_callback(struct dma_fence *f,
 					 struct dma_fence_cb *cb)
@@ -496,10 +497,21 @@ static const struct drm_framebuffer_funcs amdgpu_fb_funcs = {
 uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev)
 {
 	uint32_t domain = AMDGPU_GEM_DOMAIN_VRAM;
+	u64 uswc_flag = AMDGPU_GEM_CREATE_CPU_GTT_USWC;
 
 #if defined(CONFIG_DRM_AMD_DC)
-	if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type < CHIP_RAVEN &&
-	    adev->flags & AMD_IS_APU &&
+	/*
+	 * if amdgpu_bo_validate_uswc clears AMDGPU_GEM_CREATE_CPU_GTT_USWC it
+	 * means that USWC mappings
+	 * is not supported for this board. But this mapping is required
+	 * to avoid hang caused by placement of scanout BO in GTT on certain
+	 * APUs. So force the BO placement to VRAM in case this architecture
+	 * will not allow USWC mappings.
+	 */
+	amdgpu_bo_validate_uswc(&uswc_flag);
+
+	if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type <= CHIP_RAVEN &&
+	    adev->flags & AMD_IS_APU && uswc_flag &&
 	    amdgpu_device_asic_has_dc_support(adev->asic_type))
 		domain |= AMDGPU_GEM_DOMAIN_GTT;
 #endif
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
index 4922589..f0387ce1 100644
@@ -686,7 +686,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 	 */
 	if (adev->flags & AMD_IS_APU &&
 	    adev->asic_type >= CHIP_CARRIZO &&
-	    adev->asic_type < CHIP_RAVEN)
+	    adev->asic_type <= CHIP_RAVEN)
 		init_data.flags.gpu_vm_support = true;
 
 	if (amdgpu_dc_feature_mask & DC_FBC_MASK)
Signature · 6 lines
2.7.4

_______________________________________________
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): 1563977442-4809-4-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org

#13 lore raw

Re: [PATCH v3 3/3] drm/amd: enable S/G for RAVEN chip

Am 24.07.19 um 16:10 schrieb Andrey Grodzovsky:

Quoted 8 lines

From: Shirish S <[email protected]>

enables gpu_vm_support in dm and adds
AMDGPU_GEM_DOMAIN_GTT as supported domain

v2:
Move BO placement logic into amdgpu_display_supported_domains

Quoted 6 lines

v3:
Use amdgpu_bo_validate_uswc in amdgpu_display_supported_domains.

Change-Id If34300beaa60be2d36170b7b5b096ec644502b20

Actually that doesn't look like a good idea to me.

It is still perfectly possible (and wanted!) that the USWC flag was not set in the first place by userspace.

Is that still checked somewhere?

Regards,
Christian.

Quoted 46 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_display.c       | 16 ++++++++++++++--
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  2 +-
  2 files changed, 15 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +14 -2
index 767ee699..23b8046 100644
@@ -37,6 +37,7 @@
  #include <drm/drm_edid.h>
  #include <drm/drm_gem_framebuffer_helper.h>
  #include <drm/drm_fb_helper.h>
+#include <drm/drm_cache.h>
 
  static void amdgpu_display_flip_callback(struct dma_fence *f,
  					 struct dma_fence_cb *cb)
@@ -496,10 +497,21 @@ static const struct drm_framebuffer_funcs amdgpu_fb_funcs = {
  uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev)
  {
  	uint32_t domain = AMDGPU_GEM_DOMAIN_VRAM;
+	u64 uswc_flag = AMDGPU_GEM_CREATE_CPU_GTT_USWC;
 
  #if defined(CONFIG_DRM_AMD_DC)
-	if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type < CHIP_RAVEN &&
-	    adev->flags & AMD_IS_APU &&
+	/*
+	 * if amdgpu_bo_validate_uswc clears AMDGPU_GEM_CREATE_CPU_GTT_USWC it
+	 * means that USWC mappings
+	 * is not supported for this board. But this mapping is required
+	 * to avoid hang caused by placement of scanout BO in GTT on certain
+	 * APUs. So force the BO placement to VRAM in case this architecture
+	 * will not allow USWC mappings.
+	 */
+	amdgpu_bo_validate_uswc(&uswc_flag);
+
+	if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type <= CHIP_RAVEN &&
+	    adev->flags & AMD_IS_APU && uswc_flag &&
  	    amdgpu_device_asic_has_dc_support(adev->asic_type))
  		domain |= AMDGPU_GEM_DOMAIN_GTT;
  #endif
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -0
index 4922589..f0387ce1 100644

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int amdgpu_dm_init(struct amdgpu_device *adev) · line 692

Quoted 8 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
@@ -686,7 +686,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
  	 */
  	if (adev->flags & AMD_IS_APU &&
  	    adev->asic_type >= CHIP_CARRIZO &&
-	    adev->asic_type < CHIP_RAVEN)
+	    adev->asic_type <= CHIP_RAVEN)
  		init_data.flags.gpu_vm_support = true;
 
  	if (amdgpu_dc_feature_mask & DC_FBC_MASK)

_______________________________________________
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): 492b52b5-36e0-f957-88e1-c2479f8c56c4-5C7GfCeVMHo@public.gmane.org

#15 lore raw

Re: [PATCH v3 3/3] drm/amd: enable S/G for RAVEN chip

Quoted 17 lines · Christian

Am 24.07.19 um 16:10 schrieb Andrey Grodzovsky:

Quoted 8 lines

From: Shirish S <[email protected]>

enables gpu_vm_support in dm and adds
AMDGPU_GEM_DOMAIN_GTT as supported domain

v2:
Move BO placement logic into amdgpu_display_supported_domains

Quoted 6 lines

v3:
Use amdgpu_bo_validate_uswc in amdgpu_display_supported_domains.

Change-Id If34300beaa60be2d36170b7b5b096ec644502b20

Actually that doesn't look like a good idea to me.

Quoted 7 lines

It is still perfectly possible (and wanted!) that the USWC flag was not set in the first place by userspace.

Is that still checked somewhere?

Regards,
Christian.

Not sure I understand here, can you elaborate ?

Andrey

Quoted 54 lines
Quoted 54 lines
---
   drivers/gpu/drm/amd/amdgpu/amdgpu_display.c       | 16 ++++++++++++++--
   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  2 +-
   2 files changed, 15 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +14 -2
index 767ee699..23b8046 100644
@@ -37,6 +37,7 @@
   #include <drm/drm_edid.h>
   #include <drm/drm_gem_framebuffer_helper.h>
   #include <drm/drm_fb_helper.h>
+#include <drm/drm_cache.h>
 
   static void amdgpu_display_flip_callback(struct dma_fence *f,
   					 struct dma_fence_cb *cb)
@@ -496,10 +497,21 @@ static const struct drm_framebuffer_funcs amdgpu_fb_funcs = {
   uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev)
   {
   	uint32_t domain = AMDGPU_GEM_DOMAIN_VRAM;
+	u64 uswc_flag = AMDGPU_GEM_CREATE_CPU_GTT_USWC;
 
   #if defined(CONFIG_DRM_AMD_DC)
-	if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type < CHIP_RAVEN &&
-	    adev->flags & AMD_IS_APU &&
+	/*
+	 * if amdgpu_bo_validate_uswc clears AMDGPU_GEM_CREATE_CPU_GTT_USWC it
+	 * means that USWC mappings
+	 * is not supported for this board. But this mapping is required
+	 * to avoid hang caused by placement of scanout BO in GTT on certain
+	 * APUs. So force the BO placement to VRAM in case this architecture
+	 * will not allow USWC mappings.
+	 */
+	amdgpu_bo_validate_uswc(&uswc_flag);
+
+	if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type <= CHIP_RAVEN &&
+	    adev->flags & AMD_IS_APU && uswc_flag &&
   	    amdgpu_device_asic_has_dc_support(adev->asic_type))
   		domain |= AMDGPU_GEM_DOMAIN_GTT;
   #endif
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
index 4922589..f0387ce1 100644
@@ -686,7 +686,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
   	 */
   	if (adev->flags & AMD_IS_APU &&
   	    adev->asic_type >= CHIP_CARRIZO &&
-	    adev->asic_type < CHIP_RAVEN)
+	    adev->asic_type <= CHIP_RAVEN)
   		init_data.flags.gpu_vm_support = true;
 
Quoted 1 line

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int amdgpu_dm_init(struct amdgpu_device *adev) · line 692

Quoted 1 line
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -0
   	if (amdgpu_dc_feature_mask & DC_FBC_MASK)

_______________________________________________
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): e8a4de40-e60c-152a-ba4b-9ef7b1b553c1-5C7GfCeVMHo@public.gmane.org

#17 lore raw

Re: [PATCH v3 3/3] drm/amd: enable S/G for RAVEN chip

Am 24.07.19 um 16:32 schrieb Grodzovsky, Andrey:

Quoted 21 lines · Christian
Quoted 20 lines

Am 24.07.19 um 16:10 schrieb Andrey Grodzovsky:

Quoted 8 lines

From: Shirish S <[email protected]>

enables gpu_vm_support in dm and adds
AMDGPU_GEM_DOMAIN_GTT as supported domain

v2:
Move BO placement logic into amdgpu_display_supported_domains

Quoted 6 lines

v3:
Use amdgpu_bo_validate_uswc in amdgpu_display_supported_domains.

Change-Id If34300beaa60be2d36170b7b5b096ec644502b20

Actually that doesn't look like a good idea to me.

It is still perfectly possible (and wanted!) that the USWC flag was not set in the first place by userspace.

Quoted 6 lines
Quoted 4 lines

Is that still checked somewhere?

Regards,
Christian.

Not sure I understand here, can you elaborate ?

It's still possible that userspace doesn't set the USWC flag and there actually might be good reasons for that.

Do we still have a check for this case somewhere?

Christian.

Quoted 57 lines

Andrey

Quoted 53 lines
Quoted 53 lines
---
    drivers/gpu/drm/amd/amdgpu/amdgpu_display.c       | 16 ++++++++++++++--
    drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  2 +-
    2 files changed, 15 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +14 -2
index 767ee699..23b8046 100644
@@ -37,6 +37,7 @@
    #include <drm/drm_edid.h>
    #include <drm/drm_gem_framebuffer_helper.h>
    #include <drm/drm_fb_helper.h>
+#include <drm/drm_cache.h>
 
    static void amdgpu_display_flip_callback(struct dma_fence *f,
    					 struct dma_fence_cb *cb)
@@ -496,10 +497,21 @@ static const struct drm_framebuffer_funcs amdgpu_fb_funcs = {
    uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev)
    {
    	uint32_t domain = AMDGPU_GEM_DOMAIN_VRAM;
+	u64 uswc_flag = AMDGPU_GEM_CREATE_CPU_GTT_USWC;
 
    #if defined(CONFIG_DRM_AMD_DC)
-	if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type < CHIP_RAVEN &&
-	    adev->flags & AMD_IS_APU &&
+	/*
+	 * if amdgpu_bo_validate_uswc clears AMDGPU_GEM_CREATE_CPU_GTT_USWC it
+	 * means that USWC mappings
+	 * is not supported for this board. But this mapping is required
+	 * to avoid hang caused by placement of scanout BO in GTT on certain
+	 * APUs. So force the BO placement to VRAM in case this architecture
+	 * will not allow USWC mappings.
+	 */
+	amdgpu_bo_validate_uswc(&uswc_flag);
+
+	if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type <= CHIP_RAVEN &&
+	    adev->flags & AMD_IS_APU && uswc_flag &&
    	    amdgpu_device_asic_has_dc_support(adev->asic_type))
    		domain |= AMDGPU_GEM_DOMAIN_GTT;
    #endif
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
index 4922589..f0387ce1 100644
@@ -686,7 +686,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
    	 */
    	if (adev->flags & AMD_IS_APU &&
    	    adev->asic_type >= CHIP_CARRIZO &&
-	    adev->asic_type < CHIP_RAVEN)
+	    adev->asic_type <= CHIP_RAVEN)
    		init_data.flags.gpu_vm_support = true;
 
Quoted 1 line
Quoted 1 line

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int amdgpu_dm_init(struct amdgpu_device *adev) · line 692

Quoted 1 line
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -0
    	if (amdgpu_dc_feature_mask & DC_FBC_MASK)

_______________________________________________
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): fc3eb460-934a-afed-b654-b33021d32aa0-5C7GfCeVMHo@public.gmane.org

#19 lore raw

Re: [PATCH v3 3/3] drm/amd: enable S/G for RAVEN chip

AMDGPU

Quoted 26 lines · Christian

Am 24.07.19 um 16:32 schrieb Grodzovsky, Andrey:

Quoted 25 lines · Christian
Quoted 24 lines

Am 24.07.19 um 16:10 schrieb Andrey Grodzovsky:

Quoted 8 lines

From: Shirish S <[email protected]>

enables gpu_vm_support in dm and adds
AMDGPU_GEM_DOMAIN_GTT as supported domain

v2:
Move BO placement logic into amdgpu_display_supported_domains

Quoted 6 lines

v3:
Use amdgpu_bo_validate_uswc in amdgpu_display_supported_domains.

Change-Id If34300beaa60be2d36170b7b5b096ec644502b20

Actually that doesn't look like a good idea to me.

It is still perfectly possible (and wanted!) that the USWC flag was not set in the first place by userspace.

Is that still checked somewhere?

Regards,
Christian.

Quoted 7 lines
Quoted 1 line

Not sure I understand here, can you elaborate ?

It's still possible that userspace doesn't set the USWC flag and there actually might be good reasons for that.

Do we still have a check for this case somewhere?

Christian.

I don't see how this relates patch in particular.  AFAIK user space will go through amdgpu_gem_create_ioctl which I didn't touch it and don't force AMDGPU_GEM_CREATE_CPU_GTT_USWC there, we only force AMDGPU_GEM_CREATE_CPU_GTT_USWC for FB console BO creation in amdgpufb_create_pinned_object and amdgpu_mode_dumb_create.

Andrey

Quoted 58 lines
Quoted 58 lines

Andrey

Quoted 53 lines
Quoted 53 lines
---
     drivers/gpu/drm/amd/amdgpu/amdgpu_display.c       | 16 ++++++++++++++--
     drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  2 +-
     2 files changed, 15 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +14 -2
index 767ee699..23b8046 100644
@@ -37,6 +37,7 @@
     #include <drm/drm_edid.h>
     #include <drm/drm_gem_framebuffer_helper.h>
     #include <drm/drm_fb_helper.h>
+#include <drm/drm_cache.h>
 
     static void amdgpu_display_flip_callback(struct dma_fence *f,
     					 struct dma_fence_cb *cb)
@@ -496,10 +497,21 @@ static const struct drm_framebuffer_funcs amdgpu_fb_funcs = {
     uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev)
     {
     	uint32_t domain = AMDGPU_GEM_DOMAIN_VRAM;
+	u64 uswc_flag = AMDGPU_GEM_CREATE_CPU_GTT_USWC;
 
     #if defined(CONFIG_DRM_AMD_DC)
-	if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type < CHIP_RAVEN &&
-	    adev->flags & AMD_IS_APU &&
+	/*
+	 * if amdgpu_bo_validate_uswc clears AMDGPU_GEM_CREATE_CPU_GTT_USWC it
+	 * means that USWC mappings
+	 * is not supported for this board. But this mapping is required
+	 * to avoid hang caused by placement of scanout BO in GTT on certain
+	 * APUs. So force the BO placement to VRAM in case this architecture
+	 * will not allow USWC mappings.
+	 */
+	amdgpu_bo_validate_uswc(&uswc_flag);
+
+	if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type <= CHIP_RAVEN &&
+	    adev->flags & AMD_IS_APU && uswc_flag &&
     	    amdgpu_device_asic_has_dc_support(adev->asic_type))
     		domain |= AMDGPU_GEM_DOMAIN_GTT;
     #endif
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
index 4922589..f0387ce1 100644
@@ -686,7 +686,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
     	 */
     	if (adev->flags & AMD_IS_APU &&
     	    adev->asic_type >= CHIP_CARRIZO &&
-	    adev->asic_type < CHIP_RAVEN)
+	    adev->asic_type <= CHIP_RAVEN)
     		init_data.flags.gpu_vm_support = true;
 
Quoted 1 line
Quoted 1 line
Quoted 1 line

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int amdgpu_dm_init(struct amdgpu_device *adev) · line 692

Quoted 1 line
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -0
     	if (amdgpu_dc_feature_mask & DC_FBC_MASK)

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

#20 lore raw

Re: [PATCH v3 3/3] drm/amd: enable S/G for RAVEN chip

In reply to a message not in the archive
Quoted 27 lines · Christian

Am 24.07.19 um 16:32 schrieb Grodzovsky, Andrey:

Quoted 26 lines · Christian
Quoted 24 lines

Am 24.07.19 um 16:10 schrieb Andrey Grodzovsky:

Quoted 8 lines

From: Shirish S <[email protected]>

enables gpu_vm_support in dm and adds
AMDGPU_GEM_DOMAIN_GTT as supported domain

v2:
Move BO placement logic into amdgpu_display_supported_domains

Quoted 6 lines

v3:
Use amdgpu_bo_validate_uswc in amdgpu_display_supported_domains.

Change-Id If34300beaa60be2d36170b7b5b096ec644502b20

Actually that doesn't look like a good idea to me.

It is still perfectly possible (and wanted!) that the USWC flag was not set in the first place by userspace.

Is that still checked somewhere?

Regards,
Christian.

Quoted 6 lines
Quoted 1 line

Not sure I understand here, can you elaborate ?

It's still possible that userspace doesn't set the USWC flag and there actually might be good reasons for that.

Do we still have a check for this case somewhere?

It sounds like you're misunderstanding what this patch does, probably due to the weird amdgpu_bo_validate_uswc API. amdgpu_display_supported_domains doesn't set the flag for the BO itself. Changing the helper API to what we suggested should clear this up.

(Maybe the new helper function should be used in amdgpu_display_supported_domains in patch 2 already, or in yet another separate patch?)

Signature · 6 lines
Earthling Michel Dänzer               |              https://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): 3d0c5357-52b9-80fb-61ff-363e13086aa8-otUistvHUpPR7s880joybQ@public.gmane.org

#22 lore raw

Re: [PATCH v3 3/3] drm/amd: enable S/G for RAVEN chip

Quoted 32 lines · Michel Dänzer
Quoted 24 lines · Christian

Am 24.07.19 um 16:32 schrieb Grodzovsky, Andrey:

Quoted 23 lines · Christian
Quoted 22 lines

Am 24.07.19 um 16:10 schrieb Andrey Grodzovsky:

Quoted 8 lines

From: Shirish S <[email protected]>

enables gpu_vm_support in dm and adds
AMDGPU_GEM_DOMAIN_GTT as supported domain

v2:
Move BO placement logic into amdgpu_display_supported_domains

Quoted 6 lines

v3:
Use amdgpu_bo_validate_uswc in amdgpu_display_supported_domains.

Change-Id If34300beaa60be2d36170b7b5b096ec644502b20

Actually that doesn't look like a good idea to me.

It is still perfectly possible (and wanted!) that the USWC flag was not set in the first place by userspace.

Is that still checked somewhere?

Quoted 7 lines
Quoted 3 lines
Quoted 2 lines

Regards,
Christian.

Not sure I understand here, can you elaborate ?

It's still possible that userspace doesn't set the USWC flag and there actually might be good reasons for that.

Do we still have a check for this case somewhere?

Quoted 8 lines

It sounds like you're misunderstanding what this patch does, probably due to the weird amdgpu_bo_validate_uswc API. amdgpu_display_supported_domains doesn't set the flag for the BO itself. Changing the helper API to what we suggested should clear this up.

(Maybe the new helper function should be used in amdgpu_display_supported_domains in patch 2 already, or in yet another separate patch?)

Yea, agree, let me send the V4 with bool API to make things clearer and I will indeed separate this change from S/G enabling.

Andrey

Quoted 2 lines

_______________________________________________
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): 5b2a81a4-8be1-0846-7f5b-ef9cfa934780-5C7GfCeVMHo@public.gmane.org

#24 lore raw

Re: [PATCH v3 3/3] drm/amd: enable S/G for RAVEN chip

Am 24.07.19 um 16:52 schrieb Grodzovsky, Andrey:

Quoted 29 lines · Michel Dänzer
Quoted 28 lines · Christian
Quoted 27 lines

Am 24.07.19 um 16:32 schrieb Grodzovsky, Andrey:

Quoted 26 lines · Christian
Quoted 17 lines

Am 24.07.19 um 16:10 schrieb Andrey Grodzovsky:

Quoted 8 lines

From: Shirish S <[email protected]>

enables gpu_vm_support in dm and adds
AMDGPU_GEM_DOMAIN_GTT as supported domain

v2:
Move BO placement logic into amdgpu_display_supported_domains

Quoted 6 lines

v3:
Use amdgpu_bo_validate_uswc in amdgpu_display_supported_domains.

Change-Id If34300beaa60be2d36170b7b5b096ec644502b20

Actually that doesn't look like a good idea to me.

Quoted 7 lines

It is still perfectly possible (and wanted!) that the USWC flag was not set in the first place by userspace.

Is that still checked somewhere?

Regards,
Christian.

Not sure I understand here, can you elaborate ?

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

It's still possible that userspace doesn't set the USWC flag and there actually might be good reasons for that.

Do we still have a check for this case somewhere?

It sounds like you're misunderstanding what this patch does, probably due to the weird amdgpu_bo_validate_uswc API. amdgpu_display_supported_domains doesn't set the flag for the BO itself. Changing the helper API to what we suggested should clear this up.

Yeah that is certainly possible.

Quoted 7 lines
Quoted 4 lines

(Maybe the new helper function should be used in amdgpu_display_supported_domains in patch 2 already, or in yet another separate patch?)

Yea, agree, let me send the V4 with bool API to make things clearer and I will indeed separate this change from S/G enabling.

Sounds good to me,
Christian.

Quoted 4 lines

Andrey

Quoted 1 line

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