All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu/gfx9: derive tile pipes from golden settings
@ 2017-05-02 20:17 Alex Deucher
       [not found] ` <1493756264-24944-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Deucher @ 2017-05-02 20:17 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Deucher

rather than hardcoding it.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index 8b281df..172b7b1 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
@@ -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,
-- 
2.5.5

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

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

* Re: [PATCH] drm/amdgpu/gfx9: derive tile pipes from golden settings
       [not found] ` <1493756264-24944-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
@ 2017-05-03  8:52   ` Christian König
  0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2017-05-03  8:52 UTC (permalink / raw)
  To: Alex Deucher, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Deucher

Am 02.05.2017 um 22:17 schrieb Alex Deucher:
> rather than hardcoding it.
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

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

> ---
>   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> index 8b281df..172b7b1 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> @@ -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,


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

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

end of thread, other threads:[~2017-05-03  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-02 20:17 [PATCH] drm/amdgpu/gfx9: derive tile pipes from golden settings Alex Deucher
     [not found] ` <1493756264-24944-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2017-05-03  8:52   ` 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.