dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: "Michel Dänzer" <michel@daenzer.net>
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: Wed, 18 Nov 2020 13:09:52 +0100	[thread overview]
Message-ID: <a25a789f-3105-7045-ec64-77abc56196e4@gmail.com> (raw)
In-Reply-To: <3ac0fdcd-9e2e-fcfa-aba2-e3840801f25d@daenzer.net>

Am 17.11.20 um 17:38 schrieb Michel Dänzer:
> 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.

Yeah indeed, I've tested this with 70, 75, 80, 85 and finally 90 and it 
looks like I've forgot to update the comment after a while.

Thanks,
Christian.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2020-11-18 12:09 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
2020-11-18 12:09     ` Christian König [this message]
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=a25a789f-3105-7045-ec64-77abc56196e4@gmail.com \
    --to=ckoenig.leichtzumerken@gmail.com \
    --cc=Felix.Kuehling@amd.com \
    --cc=airlied@linux.ie \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-graphics-maintainer@vmware.com \
    --cc=michel@daenzer.net \
    --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).