All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Kuehling <felix.kuehling-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH v3] drm/amdgpu: Use new TTM flag to avoid OOM triggering.
Date: Tue, 16 Jan 2018 15:00:02 -0500	[thread overview]
Message-ID: <a8cc5f06-7b07-abab-4dbb-b9a1deaf04f0@amd.com> (raw)
In-Reply-To: <1516132211-32035-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>


On 2018-01-16 02:50 PM, Andrey Grodzovsky wrote:
> Avoid OOM on syatem pages allocations.
>
> v2:
> Remove modeprobe parameter, make this behaviour the only option.
>
> v3:
> Move setting no_retry flag into amdgpu_ttm_init.
>
> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> index 290cdf0..d32f482 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> @@ -1387,6 +1387,10 @@ int amdgpu_ttm_init(struct amdgpu_device *adev)
>  		return r;
>  	}
>  	adev->mman.initialized = true;
> +
> +	/* We opt to avoid OOM on system pages allocations */
> +	adev->mman.bdev.no_retry = true;
> +
>  	r = ttm_bo_init_mm(&adev->mman.bdev, TTM_PL_VRAM,
>  				adev->gmc.real_vram_size >> PAGE_SHIFT);
>  	if (r) {

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

  parent reply	other threads:[~2018-01-16 20:00 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
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 [this message]
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=a8cc5f06-7b07-abab-4dbb-b9a1deaf04f0@amd.com \
    --to=felix.kuehling-5c7gfcevmho@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@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.