All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrey Grodzovsky <Andrey.Grodzovsky-5C7GfCeVMHo@public.gmane.org>
To: Felix Kuehling <felix.kuehling-5C7GfCeVMHo@public.gmane.org>,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH v2 2/2] drm/amdgpu: Use new TTM flag to avoid OOM triggering.
Date: Tue, 16 Jan 2018 12:28:39 -0500	[thread overview]
Message-ID: <4a3881f0-a656-e1fa-ad93-cfb7e24bbd9e@amd.com> (raw)
In-Reply-To: <ce727655-b4cc-0e41-eeef-7e768fe958d6-5C7GfCeVMHo@public.gmane.org>



On 01/16/2018 11:42 AM, Felix Kuehling wrote:
> On 2018-01-16 10:18 AM, Andrey Grodzovsky wrote:
>> Avoid OOM on syatem pages allocations.
>>
>> v2:
>> Remove modeprobe parameter, making this behaviour the only option.
>>
>> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
>> index 5c4c3e0..b4dc3bd 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
>> @@ -420,6 +420,10 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
>>   #endif
>>   
>>   	bo->tbo.bdev = &adev->mman.bdev;
>> +
>> +	/* We opt to avoid OOM on system pages allocations */
>> +	bo->tbo.bdev->no_retry = true;
>> +
> Couldn't this be done once in amdgpu_ttm_init just after calling
> ttm_bo_device_init? No need to do this for every BO creation.
>
> Regards,
>    Felix

Good catch, will fix.

Thanks,
Andrey

>
>>   	amdgpu_ttm_placement_from_domain(bo, domain);
>>   
>>   	r = ttm_bo_init_reserved(&adev->mman.bdev, &bo->tbo, size, type,
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2018-01-16 17:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-12 22:28 [PATCH 1/2] drm/ttm: Allow page allocations w/o triggering OOM Andrey Grodzovsky
2018-01-12 22:28 ` [PATCH 2/2] drm/amdgpu: Use new TTM flag to avoid OOM triggering Andrey Grodzovsky
2018-01-16  6:18   ` He, Roger
     [not found]     ` <MWHPR1201MB012784C4B5F4E7E90FE49F2FFDEA0-3iK1xFAIwjq9imrIu4W8xGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2018-01-16  8:54       ` Christian König
2018-01-16 12:43         ` Andrey Grodzovsky
     [not found]           ` <2fb8142b-99c2-c682-d867-83da7327030b-5C7GfCeVMHo@public.gmane.org>
2018-01-16 12:46             ` Christian König
2018-01-17  2:09               ` He, Roger
2018-01-16 15:18         ` [PATCH v2 1/2] drm/ttm: Allow page allocations w/o triggering OOM Andrey Grodzovsky
     [not found]           ` <1516115906-26095-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>
2018-01-16 15:18             ` [PATCH v2 2/2] drm/amdgpu: Use new TTM flag to avoid OOM triggering Andrey Grodzovsky
     [not found]               ` <1516115906-26095-2-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>
2018-01-16 16:42                 ` Felix Kuehling
     [not found]                   ` <ce727655-b4cc-0e41-eeef-7e768fe958d6-5C7GfCeVMHo@public.gmane.org>
2018-01-16 17:28                     ` Andrey Grodzovsky [this message]
2018-01-16 19:50                       ` [PATCH v3] " Andrey Grodzovsky
     [not found]                         ` <1516132211-32035-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>
2018-01-16 20:00                           ` Felix Kuehling
2018-01-16 15:22             ` [PATCH v2 1/2] drm/ttm: Allow page allocations w/o triggering OOM Christian König
2018-01-17  2:21           ` He, Roger
2018-01-16  6:02 ` [PATCH " He, Roger
2018-01-16  8:53   ` 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=4a3881f0-a656-e1fa-ad93-cfb7e24bbd9e@amd.com \
    --to=andrey.grodzovsky-5c7gfcevmho@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=felix.kuehling-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.