Skip to contentSkip to conversation

drm/amdgpu/gfx9: derive tile pipes from golden settings

PATCH In review Alex Deucher 2 participants 2 messages May 2, 2017 – May 3, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/gfx9: derive tile pipes from golden settings

rather than hardcoding it.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +4 -1
index 8b281df..172b7b1 100644
@@ -781,7 +781,6 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 		adev->gfx.config.max_shader_engines = 4;
-		adev->gfx.config.max_tile_pipes = 8; //??
 		adev->gfx.config.max_cu_per_sh = 16;
 		adev->gfx.config.max_sh_per_se = 1;
 		adev->gfx.config.max_backends_per_se = 4;
@@ -810,6 +809,10 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
 					adev->gfx.config.gb_addr_config,
 					GB_ADDR_CONFIG,
 					NUM_PIPES);
+
+	adev->gfx.config.max_tile_pipes =
+		adev->gfx.config.gb_addr_config_fields.num_pipes;
+
 	adev->gfx.config.gb_addr_config_fields.num_banks = 1 <<
 			REG_GET_FIELD(
 					adev->gfx.config.gb_addr_config,
Signature · 6 lines
2.5.5

_______________________________________________
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): 1493756264-24944-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Am 02.05.2017 um 22:17 schrieb Alex Deucher:

Quoted 3 lines

rather than hardcoding it.

Quoted 17 lines
---
  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
index 8b281df..172b7b1 100644
@@ -781,7 +781,6 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
  	switch (adev->asic_type) {
  	case CHIP_VEGA10:
  		adev->gfx.config.max_shader_engines = 4;
-		adev->gfx.config.max_tile_pipes = 8; //??
  		adev->gfx.config.max_cu_per_sh = 16;
  		adev->gfx.config.max_sh_per_se = 1;
  		adev->gfx.config.max_backends_per_se = 4;

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev) · line 818

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +4 -0
@@ -810,6 +809,10 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
  					adev->gfx.config.gb_addr_config,
  					GB_ADDR_CONFIG,
  					NUM_PIPES);
+
+	adev->gfx.config.max_tile_pipes =
+		adev->gfx.config.gb_addr_config_fields.num_pipes;
+
  	adev->gfx.config.gb_addr_config_fields.num_banks = 1 <<
  			REG_GET_FIELD(
  					adev->gfx.config.gb_addr_config,

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