All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yu, Xiangliang" <Xiangliang.Yu-5C7GfCeVMHo@public.gmane.org>
To: "amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Cc: "Liu, Monk" <Monk.Liu-5C7GfCeVMHo@public.gmane.org>
Subject: RE: [PATCH 02/21] drm/amdgpu:fix golden init for sriov
Date: Mon, 6 Feb 2017 02:35:34 +0000	[thread overview]
Message-ID: <CY4PR12MB1701CFCB8B21A55E220404F9EB400@CY4PR12MB1701.namprd12.prod.outlook.com> (raw)
In-Reply-To: <1486203702-1116-2-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>

Does FIJI need the golden init?


Thanks!
Xiangliang Yu

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Monk Liu
> Sent: Saturday, February 04, 2017 6:22 PM
> To: amd-gfx@lists.freedesktop.org
> Cc: Liu, Monk <Monk.Liu@amd.com>
> Subject: [PATCH 02/21] drm/amdgpu:fix golden init for sriov
> 
> although only vi supports SRIOV now,but we shouldn't make code has such
> assumption.
> 
> Change-Id: Ie73c185dc2e7f64756253045b32cabe70d618d19
> Signed-off-by: Monk Liu <Monk.Liu@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/vi.c | 11 ++++-------
>  1 file changed, 4 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c
> b/drivers/gpu/drm/amd/amdgpu/vi.c index 89b0dfe..7810030 100644
> --- a/drivers/gpu/drm/amd/amdgpu/vi.c
> +++ b/drivers/gpu/drm/amd/amdgpu/vi.c
> @@ -274,12 +274,6 @@ static void vi_init_golden_registers(struct
> amdgpu_device *adev)
>  	/* Some of the registers might be dependent on GRBM_GFX_INDEX
> */
>  	mutex_lock(&adev->grbm_idx_mutex);
> 
> -	if (amdgpu_sriov_vf(adev)) {
> -		xgpu_vi_init_golden_registers(adev);
> -		mutex_unlock(&adev->grbm_idx_mutex);
> -		return;
> -	}
> -
>  	switch (adev->asic_type) {
>  	case CHIP_TOPAZ:
>  		amdgpu_program_register_sequence(adev,
> @@ -292,7 +286,10 @@ static void vi_init_golden_registers(struct
> amdgpu_device *adev)
>  						 (const
> u32)ARRAY_SIZE(fiji_mgcg_cgcg_init));
>  		break;
>  	case CHIP_TONGA:
> -		amdgpu_program_register_sequence(adev,
> +		if (amdgpu_sriov_vf(adev))
> +			xgpu_vi_init_golden_registers(adev);
> +		else
> +			amdgpu_program_register_sequence(adev,
>  						 tonga_mgcg_cgcg_init,
>  						 (const
> u32)ARRAY_SIZE(tonga_mgcg_cgcg_init));
>  		break;
> --
> 2.7.4
> 
> _______________________________________________
> 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

  parent reply	other threads:[~2017-02-06  2:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-04 10:21 [PATCH 01/21] drm/amdgpu:fix typo Monk Liu
     [not found] ` <1486203702-1116-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-04 10:21   ` [PATCH 02/21] drm/amdgpu:fix golden init for sriov Monk Liu
     [not found]     ` <1486203702-1116-2-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-06  2:35       ` Yu, Xiangliang [this message]
     [not found]         ` <CY4PR12MB1701CFCB8B21A55E220404F9EB400-rpdhrqHFk05QaJCA3gGb3wdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-06  2:37           ` 答复: " Liu, Monk
     [not found]             ` <DM5PR12MB1610CA0FD4ACDDE8F059173884400-2J9CzHegvk++jCVTvoAFKAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-06  2:53               ` Liu, Monk
2017-02-04 10:21   ` [PATCH 03/21] drm/amdgpu:fix scheduler hw reset&recovery Monk Liu
     [not found]     ` <1486203702-1116-3-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-06  3:18       ` Zhou, David(ChunMing)
     [not found]         ` <MWHPR1201MB02068DCB820D27AFD4F9FEB1B4400-3iK1xFAIwjrUF/YbdlDdgWrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-02-06  8:17           ` Christian König
     [not found]             ` <68f2819b-2be2-26ef-cba5-8a605a9822fe-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-02-06 15:07               ` Liu, Monk
2017-02-04 10:21   ` [PATCH 04/21] drm/amdgpu:fix powerplay logic Monk Liu
     [not found]     ` <1486203702-1116-4-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-02-06 12:31       ` Zhu, Rex
     [not found]         ` <MWHPR12MB1694FE04FC1F52557F8B80F8FB400-Gy0DoCVfaSW4WA4dJ5YXGAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-06 14:18           ` Liu, Monk
2017-02-06  8:14   ` [PATCH 01/21] drm/amdgpu:fix typo Christian König

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=CY4PR12MB1701CFCB8B21A55E220404F9EB400@CY4PR12MB1701.namprd12.prod.outlook.com \
    --to=xiangliang.yu-5c7gfcevmho@public.gmane.org \
    --cc=Monk.Liu-5C7GfCeVMHo@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.