From: "Christian König" <ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: shaoyunl <Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org>,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH] drm/amdgpu: Init correct fb region for none XGMI configuration
Date: Mon, 10 Sep 2018 19:52:47 +0200 [thread overview]
Message-ID: <113398fc-a99e-cd69-c107-95cdf2ae91e5@gmail.com> (raw)
In-Reply-To: <1536601738-27982-1-git-send-email-Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org>
Am 10.09.2018 um 19:48 schrieb shaoyunl:
> Fix : 5c777a5 'Adjust GART and AGP location with xgmi offset'
>
> Change-Id: I2d78024fbe44a37f46a35d34c1e64dbd3937fdf1
> Signed-off-by: shaoyunl <Shaoyun.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@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);
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2018-09-10 17:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-10 17:48 [PATCH] drm/amdgpu: Init correct fb region for none XGMI configuration shaoyunl
[not found] ` <1536601738-27982-1-git-send-email-Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org>
2018-09-10 17:52 ` Christian König [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-09-10 16:06 shaoyunl
[not found] ` <1536595574-26536-1-git-send-email-Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org>
2018-09-10 17:37 ` Christian König
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=113398fc-a99e-cd69-c107-95cdf2ae91e5@gmail.com \
--to=ckoenig.leichtzumerken-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=christian.koenig-5C7GfCeVMHo@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox