All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zhang, Jerry (Junwei)" <Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>
To: Alex Deucher
	<alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Alex Deucher <alexander.deucher-5C7GfCeVMHo@public.gmane.org>
Subject: Re: [PATCH] drm/amdgpu/gfx: drop max_gs_waves_per_vgt
Date: Wed, 3 May 2017 13:44:20 +0800	[thread overview]
Message-ID: <59096E34.2020302@amd.com> (raw)
In-Reply-To: <1493754651-14245-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>

On 05/03/2017 03:50 AM, Alex Deucher wrote:
> We already have this info: max_gs_threads.  Drop the duplicate.
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>

Also confirmed with Vulkan guys.
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu.h     | 1 -
>   drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +-
>   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c   | 1 -
>   3 files changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> index 0ee4d87..e7fe649 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> @@ -972,7 +972,6 @@ struct amdgpu_gfx_config {
>   	unsigned num_rbs;
>   	unsigned gs_vgt_table_depth;
>   	unsigned gs_prim_buffer_depth;
> -	unsigned max_gs_waves_per_vgt;
>
>   	uint32_t tile_mode_array[32];
>   	uint32_t macrotile_mode_array[16];
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> index d40b8ac..8d7e4d4 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> @@ -560,7 +560,7 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
>   		dev_info.num_tcc_blocks = adev->gfx.config.max_texture_channel_caches;
>   		dev_info.gs_vgt_table_depth = adev->gfx.config.gs_vgt_table_depth;
>   		dev_info.gs_prim_buffer_depth = adev->gfx.config.gs_prim_buffer_depth;
> -		dev_info.max_gs_waves_per_vgt = adev->gfx.config.max_gs_waves_per_vgt;
> +		dev_info.max_gs_waves_per_vgt = adev->gfx.config.max_gs_threads;
>
>   		return copy_to_user(out, &dev_info,
>   				    min((size_t)size, sizeof(dev_info))) ? -EFAULT : 0;
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> index 2b2a2c2..8b281df 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
> @@ -796,7 +796,6 @@ static void gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
>   		adev->gfx.config.sc_earlyz_tile_fifo_size = 0x4C0;
>   		adev->gfx.config.gs_vgt_table_depth = 32;
>   		adev->gfx.config.gs_prim_buffer_depth = 1792;
> -		adev->gfx.config.max_gs_waves_per_vgt = 32;
>   		gb_addr_config = VEGA10_GB_ADDR_CONFIG_GOLDEN;
>   		break;
>   	default:
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-05-03  5:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-02 19:50 [PATCH] drm/amdgpu/gfx: drop max_gs_waves_per_vgt Alex Deucher
     [not found] ` <1493754651-14245-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2017-05-03  5:44   ` Zhang, Jerry (Junwei) [this message]
2017-05-03 12:41   ` Nicolai Hähnle
     [not found]     ` <f45601ff-9070-6992-0d53-a27a0745ac4d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-03 13:19       ` Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=59096E34.2020302@amd.com \
    --to=jerry.zhang-5c7gfcevmho@public.gmane.org \
    --cc=alexander.deucher-5C7GfCeVMHo@public.gmane.org \
    --cc=alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.