From: "Christian König" <christian.koenig@amd.com>
To: "ZhiJie.Zhang" <zhangzhijie@loongson.cn>,
alexander.deucher@amd.com, airlied@linux.ie, daniel@ffwll.ch
Cc: dri-devel@lists.freedesktop.org, nicholas.kazlauskas@amd.com,
amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH v1] drm/amdgpu: Try modify this line into a well-understood code
Date: Fri, 2 Apr 2021 15:42:30 +0200 [thread overview]
Message-ID: <4a6fb93e-c5c5-3628-e470-92f5b301e3c8@amd.com> (raw)
In-Reply-To: <20210402025539.58125-1-zhangzhijie@loongson.cn>
Am 02.04.21 um 04:55 schrieb ZhiJie.Zhang:
> Signed-off-by: ZhiJie.Zhang <zhangzhijie@loongson.cn>
Good idea. Reviewed-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> index ad91c0c3c423..f79af5fb61db 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> @@ -2709,7 +2709,7 @@ void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t min_vm_size,
> min(max(phys_ram_gb * 3, min_vm_size), max_size));
> }
>
> - adev->vm_manager.max_pfn = (uint64_t)vm_size << 18;
> + adev->vm_manager.max_pfn = (uint64_t)vm_size << (30 - AMDGPU_GPU_PAGE_SHIFT);
>
> tmp = roundup_pow_of_two(adev->vm_manager.max_pfn);
> if (amdgpu_vm_block_size != -1)
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
parent reply other threads:[~2021-04-02 13:42 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20210402025539.58125-1-zhangzhijie@loongson.cn>]
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=4a6fb93e-c5c5-3628-e470-92f5b301e3c8@amd.com \
--to=christian.koenig@amd.com \
--cc=airlied@linux.ie \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=nicholas.kazlauskas@amd.com \
--cc=zhangzhijie@loongson.cn \
/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).