From: "Lazar, Lijo" <lijo.lazar@amd.com>
To: Asad Kamal <asad.kamal@amd.com>,
amd-gfx@lists.freedesktop.org, hawking.zhang@amd.com
Cc: le.ma@amd.com, shiwu.zhang@amd.com, ckoenig.leichtzumerken@gmail.com
Subject: Re: [PATCH] Revert "drm/amdgpu: Update irq disable flow during unload"
Date: Mon, 8 Jan 2024 16:39:44 +0530 [thread overview]
Message-ID: <f567e4c3-5b25-4f67-b044-5afb45bc4c12@amd.com> (raw)
In-Reply-To: <20240108105752.482885-1-asad.kamal@amd.com>
On 1/8/2024 4:27 PM, Asad Kamal wrote:
> Re-evaluate the original workaround: commit f5c7e7797060 ("drm/amdgpu:
> Adjust removal control flow for smu v13_0_2")
>
> This reverts commit 2e8e792e6a51e8cb7f5f96148146b6525dbb9cef.
>
> Signed-off-by: Asad Kamal <asad.kamal@amd.com>
You may reword the commmit message as 'revert the commit and re-evaluate
the original workaround'
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Thanks,
Lijo
> ---
> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 12 ++----------
> drivers/gpu/drm/amd/amdgpu/soc15.c | 13 ++-----------
> 2 files changed, 4 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> index c8a3ef71d6ad..f9039d64ff2d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> @@ -2361,7 +2361,6 @@ static void gmc_v9_0_gart_disable(struct amdgpu_device *adev)
> static int gmc_v9_0_hw_fini(void *handle)
> {
> struct amdgpu_device *adev = (struct amdgpu_device *)handle;
> - bool irq_release = true;
>
> gmc_v9_0_gart_disable(adev);
>
> @@ -2379,16 +2378,9 @@ static int gmc_v9_0_hw_fini(void *handle)
> if (adev->mmhub.funcs->update_power_gating)
> adev->mmhub.funcs->update_power_gating(adev, false);
>
> - if (adev->shutdown)
> - irq_release = amdgpu_irq_enabled(adev, &adev->gmc.vm_fault, 0);
> + amdgpu_irq_put(adev, &adev->gmc.vm_fault, 0);
>
> - if (irq_release)
> - amdgpu_irq_put(adev, &adev->gmc.vm_fault, 0);
> -
> - if (adev->shutdown)
> - irq_release = amdgpu_irq_enabled(adev, &adev->gmc.ecc_irq, 0);
> -
> - if (adev->gmc.ecc_irq.funcs && irq_release &&
> + if (adev->gmc.ecc_irq.funcs &&
> amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC))
> amdgpu_irq_put(adev, &adev->gmc.ecc_irq, 0);
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
> index 7ee835049d57..15033efec2ba 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c
> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
> @@ -1266,7 +1266,6 @@ static int soc15_common_hw_init(void *handle)
> static int soc15_common_hw_fini(void *handle)
> {
> struct amdgpu_device *adev = (struct amdgpu_device *)handle;
> - bool irq_release = true;
>
> /* Disable the doorbell aperture and selfring doorbell aperture
> * separately in hw_fini because soc15_enable_doorbell_aperture
> @@ -1281,18 +1280,10 @@ static int soc15_common_hw_fini(void *handle)
>
> if (adev->nbio.ras_if &&
> amdgpu_ras_is_supported(adev, adev->nbio.ras_if->block)) {
> - if (adev->shutdown)
> - irq_release = amdgpu_irq_enabled(adev, &adev->nbio.ras_controller_irq, 0);
> -
> - if (adev->nbio.ras && irq_release &&
> + if (adev->nbio.ras &&
> adev->nbio.ras->init_ras_controller_interrupt)
> amdgpu_irq_put(adev, &adev->nbio.ras_controller_irq, 0);
> -
> - if (adev->shutdown)
> - irq_release = amdgpu_irq_enabled(adev,
> - &adev->nbio.ras_err_event_athub_irq, 0);
> -
> - if (adev->nbio.ras && irq_release &&
> + if (adev->nbio.ras &&
> adev->nbio.ras->init_ras_err_event_athub_interrupt)
> amdgpu_irq_put(adev, &adev->nbio.ras_err_event_athub_irq, 0);
> }
prev parent reply other threads:[~2024-01-08 11:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-08 10:57 [PATCH] Revert "drm/amdgpu: Update irq disable flow during unload" Asad Kamal
2024-01-08 11:09 ` Lazar, Lijo [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=f567e4c3-5b25-4f67-b044-5afb45bc4c12@amd.com \
--to=lijo.lazar@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=asad.kamal@amd.com \
--cc=ckoenig.leichtzumerken@gmail.com \
--cc=hawking.zhang@amd.com \
--cc=le.ma@amd.com \
--cc=shiwu.zhang@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