All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Liu, Aaron" <Aaron.Liu@amd.com>
To: "Deucher, Alexander" <Alexander.Deucher@amd.com>,
	"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>
Cc: "Deucher, Alexander" <Alexander.Deucher@amd.com>
Subject: RE: [PATCH 1/5] drm/amdgpu: set APU flag based on IP discovery table
Date: Mon, 24 Jan 2022 05:42:41 +0000	[thread overview]
Message-ID: <BL1PR12MB52377DBC8EF0DE56CBAA783EF05E9@BL1PR12MB5237.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20220121202220.5557-1-alexander.deucher@amd.com>

[AMD Official Use Only]

Reviewed-by: Aaron Liu <aaron.liu@amd.com>

--
Best Regards
Aaron Liu

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Alex
> Deucher
> Sent: Saturday, January 22, 2022 4:22 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher@amd.com>
> Subject: [PATCH 1/5] drm/amdgpu: set APU flag based on IP discovery table
> 
> Use the IP versions to set the APU flag when necessary.
> 
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> index e6a26b554254..ddbe13c9e4c7 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> @@ -1253,6 +1253,19 @@ int amdgpu_discovery_set_ip_blocks(struct
> amdgpu_device *adev)
>  		return -EINVAL;
>  	}
> 
> +	switch (adev->ip_versions[GC_HWIP][0]) {
> +	case IP_VERSION(9, 1, 0):
> +	case IP_VERSION(9, 2, 2):
> +	case IP_VERSION(9, 3, 0):
> +	case IP_VERSION(10, 1, 3):
> +	case IP_VERSION(10, 3, 1):
> +	case IP_VERSION(10, 3, 3):
> +		adev->flags |= AMD_IS_APU;
> +		break;
> +	default:
> +		break;
> +	}
> +
>  	if (adev->ip_versions[XGMI_HWIP][0] == IP_VERSION(4, 8, 0))
>  		adev->gmc.xgmi.supported = true;
> 
> --
> 2.34.1

      parent reply	other threads:[~2022-01-24  5:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-21 20:22 [PATCH 1/5] drm/amdgpu: set APU flag based on IP discovery table Alex Deucher
2022-01-21 20:22 ` [PATCH 2/5] drm/amdgpu: move PX checking into amdgpu_device_ip_early_init Alex Deucher
2022-01-21 20:22 ` [PATCH 3/5] drm/amdgpu: move runtime pm init after drm and fbdev init Alex Deucher
2022-01-21 20:22 ` [PATCH 4/5] drm/amdgpu: handle BACO synchronization with secondary funcs Alex Deucher
2022-01-24  3:50   ` Quan, Evan
2022-01-21 20:22 ` [PATCH 5/5] drm/amdgpu: convert amdgpu_display_supported_domains() to IP versions Alex Deucher
2022-01-24  5:42 ` Liu, Aaron [this message]

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=BL1PR12MB52377DBC8EF0DE56CBAA783EF05E9@BL1PR12MB5237.namprd12.prod.outlook.com \
    --to=aaron.liu@amd.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.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.