All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lang Yu <Lang.Yu@amd.com>
To: Alex Deucher <alexander.deucher@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/amdgpu: add remap_hdp_registers callback for nbio 7.11
Date: Tue, 12 Sep 2023 19:04:05 +0800	[thread overview]
Message-ID: <ZQBFpc6SHa5cPiRF@lang-desktop> (raw)
In-Reply-To: <20230911214659.1074052-2-alexander.deucher@amd.com>

On 09/11/ , Alex Deucher wrote:
> Implement support for remapping the HDP aperture registers for
> NBIO 7.11.
> 
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

The series is.

Reviewed-by: Lang Yu <lang.yu@amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c
> index bcf5fb420fda..6873eead1e19 100644
> --- a/drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c
> +++ b/drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c
> @@ -28,6 +28,14 @@
>  #include "nbio/nbio_7_11_0_sh_mask.h"
>  #include <uapi/linux/kfd_ioctl.h>
>  
> +static void nbio_v7_11_remap_hdp_registers(struct amdgpu_device *adev)
> +{
> +	WREG32_SOC15(NBIO, 0, regBIF_BX0_REMAP_HDP_MEM_FLUSH_CNTL,
> +		     adev->rmmio_remap.reg_offset + KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL);
> +	WREG32_SOC15(NBIO, 0, regBIF_BX0_REMAP_HDP_REG_FLUSH_CNTL,
> +		     adev->rmmio_remap.reg_offset + KFD_MMIO_REMAP_HDP_REG_FLUSH_CNTL);
> +}
> +
>  static u32 nbio_v7_11_get_rev_id(struct amdgpu_device *adev)
>  {
>  	u32 tmp;
> @@ -284,4 +292,5 @@ const struct amdgpu_nbio_funcs nbio_v7_11_funcs = {
>  	.ih_doorbell_range = nbio_v7_11_ih_doorbell_range,
>  	.ih_control = nbio_v7_11_ih_control,
>  	.init_registers = nbio_v7_11_init_registers,
> +	.remap_hdp_registers = nbio_v7_11_remap_hdp_registers,
>  };
> -- 
> 2.41.0
> 

      reply	other threads:[~2023-09-12 11:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-11 21:46 [PATCH 1/2] drm/amdgpu: add vcn_doorbell_range callback for nbio 7.11 Alex Deucher
2023-09-11 21:46 ` [PATCH 2/2] drm/amdgpu: add remap_hdp_registers " Alex Deucher
2023-09-12 11:04   ` Lang Yu [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=ZQBFpc6SHa5cPiRF@lang-desktop \
    --to=lang.yu@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.