amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: "Jiang, Sonny" <Sonny.Jiang@amd.com>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: "amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 2/2] drm/amdgpu: IB test encode test package change for VCN5
Date: Tue, 16 Apr 2024 14:18:39 +0000	[thread overview]
Message-ID: <BL1PR12MB5126BB9A61AF80C86306E58FFD082@BL1PR12MB5126.namprd12.prod.outlook.com> (raw)
In-Reply-To: <CADnq5_Oy6zckDHsqz819fpg8tgH77GYDR2N=8Zucah4n+rpHrw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2946 bytes --]

[AMD Official Use Only - General]

These changes are for vcn_unified_ring_test_ib which only used on VCN4 and VCN5. The only exception is ib_size_alignment of hw_ip_info.

The VCN5 adds address_patch_enabled in session_info. VCN4 doesn't have it, so it should just ignore the extra 0.

typedef struct uve_session_info_s
{
    unsigned int                    interface_version;                              ///< The version of the firmware interface on which the host was built
    unsigned int                    sw_context_address_hi;                          ///< High address of software context buffer
    unsigned int                    sw_context_address_lo;                          ///< Low address of software context buffer
    unsigned int                    address_patch_enabled;                          ///< address patching enabled in UMD
} uve_session_info_t;

By my tests, I didn't find error. I may need more tests on mi300 asic.

Thanks,
Sonny

________________________________
From: Alex Deucher <alexdeucher@gmail.com>
Sent: Monday, April 15, 2024 5:32 PM
To: Jiang, Sonny <Sonny.Jiang@amd.com>
Cc: amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Jiang, Sonny <Sonny.Jiang@amd.com>
Subject: Re: [PATCH 2/2] drm/amdgpu: IB test encode test package change for VCN5

On Mon, Apr 15, 2024 at 5:25 PM Sonny Jiang <sonny.jiang@amd.com> wrote:
>
> From: Sonny Jiang <sonjiang@amd.com>
>
> VCN5 session info package interface changed
>
> Signed-off-by: Sonny Jiang <sonny.jiang@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
> index 7d176046498f..e08aacacc43e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
> @@ -882,7 +882,7 @@ static int amdgpu_vcn_enc_get_create_msg(struct amdgpu_ring *ring, uint32_t hand
>         ib->ptr[ib->length_dw++] = handle;
>         ib->ptr[ib->length_dw++] = upper_32_bits(addr);
>         ib->ptr[ib->length_dw++] = addr;
> -       ib->ptr[ib->length_dw++] = 0x0000000b;
> +       ib->ptr[ib->length_dw++] = 0x00000000;
>
>         ib->ptr[ib->length_dw++] = 0x00000014;
>         ib->ptr[ib->length_dw++] = 0x00000002; /* task info */
> @@ -949,7 +949,7 @@ static int amdgpu_vcn_enc_get_destroy_msg(struct amdgpu_ring *ring, uint32_t han
>         ib->ptr[ib->length_dw++] = handle;
>         ib->ptr[ib->length_dw++] = upper_32_bits(addr);
>         ib->ptr[ib->length_dw++] = addr;
> -       ib->ptr[ib->length_dw++] = 0x0000000b;
> +       ib->ptr[ib->length_dw++] = 0x00000000;

These patches are touching common files, are these changes safe on pre-VCN5 IPs?

Alex

>
>         ib->ptr[ib->length_dw++] = 0x00000014;
>         ib->ptr[ib->length_dw++] = 0x00000002;
> --
> 2.43.2
>

[-- Attachment #2: Type: text/html, Size: 8128 bytes --]

  reply	other threads:[~2024-04-16 14:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-15 21:24 [PATCH 1/2] drm/amdgpu: IB size alignment on VCN5 Sonny Jiang
2024-04-15 21:25 ` [PATCH 2/2] drm/amdgpu: IB test encode test package change for VCN5 Sonny Jiang
2024-04-15 21:32   ` Alex Deucher
2024-04-16 14:18     ` Jiang, Sonny [this message]
2024-04-17 13:17 ` [PATCH 1/2] drm/amdgpu: IB size alignment on VCN5 Liu, Leo

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=BL1PR12MB5126BB9A61AF80C86306E58FFD082@BL1PR12MB5126.namprd12.prod.outlook.com \
    --to=sonny.jiang@amd.com \
    --cc=alexdeucher@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).