[PATCH] drm/amdgpu: Init correct fb region for none XGMI configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here a commit message is missing.

Especially something like Fix: <commit hash of the original patch> so 
that Alex can squash it into the other patch during upstreaming.

Apart from that the patch looks good to me,
Christian.

Am 10.09.2018 um 18:06 schrieb shaoyunl:
> Change-Id: I2d78024fbe44a37f46a35d34c1e64dbd3937fdf1
> Signed-off-by: shaoyunl <Shaoyun.Liu at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> index cf97c1c..ae44671 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> @@ -121,6 +121,11 @@ void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc,
>   	mc->vram_end = mc->vram_start + mc->mc_vram_size - 1;
>   	if (limit && limit < mc->real_vram_size)
>   		mc->real_vram_size = limit;
> +
> +	if (mc->xgmi.num_physical_nodes == 0) {
> +		mc->fb_start = mc->vram_start;
> +		mc->fb_end = mc->vram_end;
> +	}
>   	dev_info(adev->dev, "VRAM: %lluM 0x%016llX - 0x%016llX (%lluM used)\n",
>   			mc->mc_vram_size >> 20, mc->vram_start,
>   			mc->vram_end, mc->real_vram_size >> 20);



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux