All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michel Dänzer" <michel-otUistvHUpPR7s880joybQ@public.gmane.org>
To: "Christian König"
	<deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>,
	"Deucher,
	Alexander" <Alexander.Deucher-5C7GfCeVMHo@public.gmane.org>
Cc: "amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH 3/4] drm/amdgpu: add IOCTL interface for per VM BOs v2
Date: Wed, 30 Aug 2017 15:46:51 +0900	[thread overview]
Message-ID: <4c0b0f45-43c7-f831-d407-8d2ffba4c586@daenzer.net> (raw)
In-Reply-To: <f2c9784d-880b-00da-cdcd-b794dc43b1da-otUistvHUpPR7s880joybQ@public.gmane.org>

On 30/08/17 03:42 PM, Michel Dänzer wrote:
> On 30/08/17 03:09 PM, Christian König wrote:
>> Am 29.08.2017 um 19:20 schrieb Deucher, Alexander:
>>>> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
>>>> Of Christian König
>>>>
>>>> @@ -89,6 +89,8 @@ extern "C" {
>>>>   #define AMDGPU_GEM_CREATE_SHADOW        (1 << 4)
>>>>   /* Flag that allocating the BO should use linear VRAM */
>>>>   #define AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS    (1 << 5)
>>>> +/* Flag that BO is local in the VM */
>>>> +#define AMDGPU_GEM_CREATE_LOCAL            (1 << 6)
>>> I'm not crazy about the name LOCAL.  Maybe something like ALWAYS_VALID?
>>
>> Works for me as well. Dave any other opinion?
>>
>> If everybody is ok with ALWAYS_VALID I'm going to use that one.
> 
> FWIW, I like LOCAL better than ALWAYS_VALID. The latter suggests that
> the BO is valid under any circumstances, whereas LOCAL indicates that it
> cannot be used outside of the GPUVM it was created in.
> 
> I don't feel strongly about it though, feel free to go with either.

Another idea:

/* The BO can only be used in the VM it was created in */
#define AMDGPU_GEM_CREATE_UNSHAREABLE            (1 << 6)


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-08-30  6:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-29 17:07 [PATCH 1/4] drm/amdgpu: restrict userptr even more Christian König
     [not found] ` <1504026462-1788-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-29 17:07   ` [PATCH 2/4] drm/amdgpu: add support for per VM BOs v2 Christian König
2017-08-29 17:07   ` [PATCH 3/4] drm/amdgpu: add IOCTL interface " Christian König
     [not found]     ` <1504026462-1788-3-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-29 17:20       ` Deucher, Alexander
     [not found]         ` <CY4PR12MB16532A33114CD81C3389D05EF79F0-rpdhrqHFk06apTa93KjAaQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-08-30  6:09           ` Christian König
     [not found]             ` <c7a4040d-6458-96a2-8096-498be5d0cf5d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-30  6:42               ` Michel Dänzer
     [not found]                 ` <f2c9784d-880b-00da-cdcd-b794dc43b1da-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-08-30  6:46                   ` Michel Dänzer [this message]
     [not found]                     ` <4c0b0f45-43c7-f831-d407-8d2ffba4c586-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-08-30  7:34                       ` Christian König
     [not found]                         ` <c6cdb302-94a8-8136-ab77-a4831c35b16d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-30  7:39                           ` Michel Dänzer
     [not found]                             ` <83b68536-fdcc-ddeb-dbe4-c3c03c97e7da-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-08-30  7:43                               ` Christian König
     [not found]                                 ` <5bc9d4ee-95ff-5482-8a8a-03c421b71319-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-30  7:52                                   ` Michel Dänzer
2017-08-29 17:07   ` [PATCH 4/4] drm/amdgpu: bump version for support of local BOs 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=4c0b0f45-43c7-f831-d407-8d2ffba4c586@daenzer.net \
    --to=michel-otuistvhuppr7s880joybq@public.gmane.org \
    --cc=Alexander.Deucher-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=deathsimple-ANTagKRnAhcb1SvskN2V4Q@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.