dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v1] drm/amdgpu: Try modify this line into a well-understood code
       [not found] <20210402025539.58125-1-zhangzhijie@loongson.cn>
@ 2021-04-02 13:42 ` Christian König
  0 siblings, 0 replies; only message in thread
From: Christian König @ 2021-04-02 13:42 UTC (permalink / raw)
  To: ZhiJie.Zhang, alexander.deucher, airlied, daniel
  Cc: dri-devel, nicholas.kazlauskas, amd-gfx

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-02 13:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210402025539.58125-1-zhangzhijie@loongson.cn>
2021-04-02 13:42 ` [PATCH v1] drm/amdgpu: Try modify this line into a well-understood code Christian König

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).