From: "Michel Dänzer" <michel@daenzer.net>
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>
Cc: airlied@linux.ie, Felix.Kuehling@amd.com, sroland@vmware.com,
dri-devel@lists.freedesktop.org,
linux-graphics-maintainer@vmware.com
Subject: Re: [PATCH 3/3] drm/ttm: make up to 90% of system memory available
Date: Tue, 17 Nov 2020 17:38:24 +0100 [thread overview]
Message-ID: <3ac0fdcd-9e2e-fcfa-aba2-e3840801f25d@daenzer.net> (raw)
In-Reply-To: <20201117140615.255887-3-christian.koenig@amd.com>
On 2020-11-17 3:06 p.m., Christian König wrote:
> Increase the ammount of system memory drivers can use to about 90% of
> the total available.
>
> Signed-off-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/ttm/ttm_bo.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
> index a958135cb3fe..0a93df93dba4 100644
> --- a/drivers/gpu/drm/ttm/ttm_bo.c
> +++ b/drivers/gpu/drm/ttm/ttm_bo.c
> @@ -1267,7 +1267,7 @@ static int ttm_bo_global_init(void)
> * the available system memory.
> */
> num_pages = (u64)si.totalram * si.mem_unit;
> - num_pages = (num_pages * 50 / 100) >> PAGE_SHIFT;
> + num_pages = (num_pages * 90 / 100) >> PAGE_SHIFT;
>
> /* But for DMA32 we limit ourself to only use 2GiB maximum. */
> num_dma32_pages = (u64)(si.totalram - si.totalhigh) * si.mem_unit;
>
This should update the comment added in patch 1.
--
Earthling Michel Dänzer | https://redhat.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-11-17 16:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-17 14:06 [PATCH 1/3] drm/ttm: rework ttm_tt page limit Christian König
2020-11-17 14:06 ` [PATCH 2/3] drm/ttm: move memory accounting into vmwgfx Christian König
2020-11-18 20:58 ` kernel test robot
2020-11-19 7:09 ` kernel test robot
2020-11-17 14:06 ` [PATCH 3/3] drm/ttm: make up to 90% of system memory available Christian König
2020-11-17 16:38 ` Michel Dänzer [this message]
2020-11-18 12:09 ` Christian König
2020-11-17 17:19 ` Daniel Vetter
2020-11-18 13:35 ` Christian König
2020-11-18 21:15 ` Daniel Vetter
2020-11-19 15:27 ` Christian König
2020-11-19 15:42 ` Daniel Vetter
2020-11-18 7:55 ` [PATCH 1/3] drm/ttm: rework ttm_tt page limit kernel test robot
2020-11-19 7:14 ` kernel test robot
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=3ac0fdcd-9e2e-fcfa-aba2-e3840801f25d@daenzer.net \
--to=michel@daenzer.net \
--cc=Felix.Kuehling@amd.com \
--cc=airlied@linux.ie \
--cc=ckoenig.leichtzumerken@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-graphics-maintainer@vmware.com \
--cc=sroland@vmware.com \
/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).