All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zhang, Jerry (Junwei)" <Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>
To: "Christian König"
	<deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH] drm/amdgpu: fix vm pte pde flags to 64-bit for sdma v4
Date: Wed, 29 Mar 2017 15:21:22 +0800	[thread overview]
Message-ID: <58DB6072.5060803@amd.com> (raw)
In-Reply-To: <0a8d9c5c-5ee5-7c86-be40-9c0fa4bc1a8a-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>

On 03/28/2017 06:06 PM, Christian König wrote:
> Am 28.03.2017 um 10:55 schrieb Junwei Zhang:
>> Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
>
> Good catch, patch is Reviewed-by: Christian König <christian.koenig@amd.com>.
>
> It doesn't matter for older versions because they don't have flags in the high
> bits, but just for completeness could you fix this for them as well?

Yeah, just focused on Vega10 yesterday, neglecting others.
please check it in another mail.

Jerry

>
> Thanks,
> Christian.
>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
>> b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
>> index dcbef50..6cfb100 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
>> @@ -968,8 +968,8 @@ static void sdma_v4_0_vm_set_pte_pde(struct amdgpu_ib *ib,
>>       ib->ptr[ib->length_dw++] = SDMA_PKT_HEADER_OP(SDMA_OP_PTEPDE);
>>       ib->ptr[ib->length_dw++] = lower_32_bits(pe); /* dst addr */
>>       ib->ptr[ib->length_dw++] = upper_32_bits(pe);
>> -    ib->ptr[ib->length_dw++] = flags; /* mask */
>> -    ib->ptr[ib->length_dw++] = 0;
>> +    ib->ptr[ib->length_dw++] = lower_32_bits(flags); /* mask */
>> +    ib->ptr[ib->length_dw++] = upper_32_bits(flags);
>>       ib->ptr[ib->length_dw++] = lower_32_bits(addr); /* value */
>>       ib->ptr[ib->length_dw++] = upper_32_bits(addr);
>>       ib->ptr[ib->length_dw++] = incr; /* increment size */
>
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-03-29  7:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-28  8:55 [PATCH] drm/amdgpu: fix vm pte pde flags to 64-bit for sdma v4 Junwei Zhang
     [not found] ` <1490691347-29590-1-git-send-email-Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>
2017-03-28 10:06   ` Christian König
     [not found]     ` <0a8d9c5c-5ee5-7c86-be40-9c0fa4bc1a8a-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-03-29  7:21       ` Zhang, Jerry (Junwei) [this message]
2017-03-28 15:09   ` Deucher, Alexander

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=58DB6072.5060803@amd.com \
    --to=jerry.zhang-5c7gfcevmho@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.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.