From: Harry Wentland <harry.wentland@amd.com>
To: Mario Limonciello <mario.limonciello@amd.com>,
amd-gfx@lists.freedesktop.org
Cc: alexander.deucher@amd.com
Subject: Re: [PATCH v2 4/4] drm/amd: Enable seamless boot by default on newer ASICs
Date: Wed, 13 Sep 2023 13:44:08 -0400 [thread overview]
Message-ID: <70e76514-726b-4652-b2d1-3938ca30f29a@amd.com> (raw)
In-Reply-To: <20230913171455.153412-5-mario.limonciello@amd.com>
On 2023-09-13 13:14, Mario Limonciello wrote:
> Seamless boot can technically be supported as far back as DCN1
> but to avoid regressions on older hardware, enable it for DCN3 and
> later.
>
> If users report using the module parameter that it works on older
> ASICs as well, this can be adjusted.
>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Harry
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 15 ++++-----------
> 1 file changed, 4 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 2116e016178a..38fafed31a1b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -1361,9 +1361,9 @@ bool amdgpu_device_need_post(struct amdgpu_device *adev)
> /*
> * Check whether seamless boot is supported.
> *
> - * So far we only support seamless boot on select ASICs.
> - * If everything goes well, we may consider expanding
> - * seamless boot to other ASICs.
> + * So far we only support seamless boot on DCE 3.0 or later.
> + * If users report that it works on older ASICS as well, we may
> + * loosen this.
> */
> bool amdgpu_device_seamless_boot_supported(struct amdgpu_device *adev)
> {
> @@ -1383,14 +1383,7 @@ bool amdgpu_device_seamless_boot_supported(struct amdgpu_device *adev)
> if (adev->mman.keep_stolen_vga_memory)
> return false;
>
> - switch (adev->ip_versions[DCE_HWIP][0]) {
> - case IP_VERSION(3, 0, 1):
> - return true;
> - default:
> - break;
> - }
> -
> - return false;
> + return adev->ip_versions[DCE_HWIP][0] > IP_VERSION(3, 0, 0);
> }
>
> /*
next prev parent reply other threads:[~2023-09-13 17:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-13 17:14 [PATCH v2 0/4] Enable seamless boot more widely Mario Limonciello
2023-09-13 17:14 ` [PATCH v2 1/4] drm/amd: Drop special case for yellow carp without discovery Mario Limonciello
2023-09-13 17:14 ` [PATCH v2 2/4] drm/amd: Move seamless boot check out of display Mario Limonciello
2023-09-13 17:14 ` [PATCH v2 3/4] drm/amd: Add a module parameter for seamless boot Mario Limonciello
2023-09-13 17:14 ` [PATCH v2 4/4] drm/amd: Enable seamless boot by default on newer ASICs Mario Limonciello
2023-09-13 17:44 ` Harry Wentland [this message]
2023-09-26 3:20 ` Xu, Feifei
2023-09-26 3:37 ` Mario Limonciello
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=70e76514-726b-4652-b2d1-3938ca30f29a@amd.com \
--to=harry.wentland@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=mario.limonciello@amd.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox