All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nouveau: add coherent BO attribute
@ 2015-03-13  6:27 Alexandre Courbot
  2015-03-13  6:36 ` Ilia Mirkin
  2015-03-13 19:33 ` Maarten Lankhorst
  0 siblings, 2 replies; 12+ messages in thread
From: Alexandre Courbot @ 2015-03-13  6:27 UTC (permalink / raw)
  To: Maarten Lankhorst, Ilia Mirkin, Ben Skeggs
  Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	gnurou-Re5JQEeQqe8AvxtiuMwx3w, Alexandre Courbot

Add a flag allowing Nouveau to specify that an object should be coherent
at allocation time. This is required for some class of objects like
fences which are randomly-accessed by both the CPU and GPU. This flag
instructs the kernel driver to make sure the object remains coherent
even on architectures for which coherency is not guaranteed by the bus.

Signed-off-by: Alexandre Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
 include/drm/nouveau_drm.h | 1 +
 nouveau/abi16.c           | 3 +++
 nouveau/nouveau.h         | 1 +
 3 files changed, 5 insertions(+)

diff --git a/include/drm/nouveau_drm.h b/include/drm/nouveau_drm.h
index b18cad02419b..87aefc5e9d2f 100644
--- a/include/drm/nouveau_drm.h
+++ b/include/drm/nouveau_drm.h
@@ -96,6 +96,7 @@ struct drm_nouveau_setparam {
 #define NOUVEAU_GEM_DOMAIN_VRAM      (1 << 1)
 #define NOUVEAU_GEM_DOMAIN_GART      (1 << 2)
 #define NOUVEAU_GEM_DOMAIN_MAPPABLE  (1 << 3)
+#define NOUVEAU_GEM_DOMAIN_COHERENT  (1 << 4)
 
 #define NOUVEAU_GEM_TILE_LAYOUT_MASK 0x0000ff00
 #define NOUVEAU_GEM_TILE_16BPP       0x00000001
diff --git a/nouveau/abi16.c b/nouveau/abi16.c
index ae13821bc0cc..d2d1d0d1942d 100644
--- a/nouveau/abi16.c
+++ b/nouveau/abi16.c
@@ -195,6 +195,9 @@ abi16_bo_init(struct nouveau_bo *bo, uint32_t alignment,
 	if (bo->flags & NOUVEAU_BO_MAP)
 		info->domain |= NOUVEAU_GEM_DOMAIN_MAPPABLE;
 
+	if (bo->flags & NOUVEAU_BO_COHERENT)
+		info->domain |= NOUVEAU_GEM_DOMAIN_COHERENT;
+
 	if (!(bo->flags & NOUVEAU_BO_CONTIG))
 		info->tile_flags = NOUVEAU_GEM_TILE_NONCONTIG;
 
diff --git a/nouveau/nouveau.h b/nouveau/nouveau.h
index a55e2b020778..4adda0e3594c 100644
--- a/nouveau/nouveau.h
+++ b/nouveau/nouveau.h
@@ -127,6 +127,7 @@ union nouveau_bo_config {
 #define NOUVEAU_BO_MAP     0x80000000
 #define NOUVEAU_BO_CONTIG  0x40000000
 #define NOUVEAU_BO_NOSNOOP 0x20000000
+#define NOUVEAU_BO_COHERENT 0x10000000
 
 struct nouveau_bo {
 	struct nouveau_device *device;
-- 
2.3.2

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
  2015-03-13  6:27 [PATCH] nouveau: add coherent BO attribute Alexandre Courbot
@ 2015-03-13  6:36 ` Ilia Mirkin
  2015-03-13  6:39   ` Alexandre Courbot
  2015-03-13 19:33 ` Maarten Lankhorst
  1 sibling, 1 reply; 12+ messages in thread
From: Ilia Mirkin @ 2015-03-13  6:36 UTC (permalink / raw)
  To: Alexandre Courbot
  Cc: Alexandre Courbot, nouveau, dri-devel, linux-tegra, Ben Skeggs

Doesn't this require a kernel version that has your other patch? What
happens when this runs on an older kernel? Does it get silently
ignored, or does it end up erroring out? If it errors out, that's
fine. Otherwise some sort of version check should be put in, no?

On Fri, Mar 13, 2015 at 2:27 AM, Alexandre Courbot <acourbot@nvidia.com> wrote:
> Add a flag allowing Nouveau to specify that an object should be coherent
> at allocation time. This is required for some class of objects like
> fences which are randomly-accessed by both the CPU and GPU. This flag
> instructs the kernel driver to make sure the object remains coherent
> even on architectures for which coherency is not guaranteed by the bus.
>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
> ---
>  include/drm/nouveau_drm.h | 1 +
>  nouveau/abi16.c           | 3 +++
>  nouveau/nouveau.h         | 1 +
>  3 files changed, 5 insertions(+)
>
> diff --git a/include/drm/nouveau_drm.h b/include/drm/nouveau_drm.h
> index b18cad02419b..87aefc5e9d2f 100644
> --- a/include/drm/nouveau_drm.h
> +++ b/include/drm/nouveau_drm.h
> @@ -96,6 +96,7 @@ struct drm_nouveau_setparam {
>  #define NOUVEAU_GEM_DOMAIN_VRAM      (1 << 1)
>  #define NOUVEAU_GEM_DOMAIN_GART      (1 << 2)
>  #define NOUVEAU_GEM_DOMAIN_MAPPABLE  (1 << 3)
> +#define NOUVEAU_GEM_DOMAIN_COHERENT  (1 << 4)
>
>  #define NOUVEAU_GEM_TILE_LAYOUT_MASK 0x0000ff00
>  #define NOUVEAU_GEM_TILE_16BPP       0x00000001
> diff --git a/nouveau/abi16.c b/nouveau/abi16.c
> index ae13821bc0cc..d2d1d0d1942d 100644
> --- a/nouveau/abi16.c
> +++ b/nouveau/abi16.c
> @@ -195,6 +195,9 @@ abi16_bo_init(struct nouveau_bo *bo, uint32_t alignment,
>         if (bo->flags & NOUVEAU_BO_MAP)
>                 info->domain |= NOUVEAU_GEM_DOMAIN_MAPPABLE;
>
> +       if (bo->flags & NOUVEAU_BO_COHERENT)
> +               info->domain |= NOUVEAU_GEM_DOMAIN_COHERENT;
> +
>         if (!(bo->flags & NOUVEAU_BO_CONTIG))
>                 info->tile_flags = NOUVEAU_GEM_TILE_NONCONTIG;
>
> diff --git a/nouveau/nouveau.h b/nouveau/nouveau.h
> index a55e2b020778..4adda0e3594c 100644
> --- a/nouveau/nouveau.h
> +++ b/nouveau/nouveau.h
> @@ -127,6 +127,7 @@ union nouveau_bo_config {
>  #define NOUVEAU_BO_MAP     0x80000000
>  #define NOUVEAU_BO_CONTIG  0x40000000
>  #define NOUVEAU_BO_NOSNOOP 0x20000000
> +#define NOUVEAU_BO_COHERENT 0x10000000
>
>  struct nouveau_bo {
>         struct nouveau_device *device;
> --
> 2.3.2
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
  2015-03-13  6:36 ` Ilia Mirkin
@ 2015-03-13  6:39   ` Alexandre Courbot
       [not found]     ` <CAAVeFuL2XFnTGkfOB3hotVdzWxHGaTiSftkk_x-Vv3qNnmEsVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Alexandre Courbot @ 2015-03-13  6:39 UTC (permalink / raw)
  To: Ilia Mirkin
  Cc: Alexandre Courbot, Maarten Lankhorst, Ben Skeggs,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

On Fri, Mar 13, 2015 at 3:36 PM, Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org> wrote:
> Doesn't this require a kernel version that has your other patch? What
> happens when this runs on an older kernel? Does it get silently
> ignored, or does it end up erroring out? If it errors out, that's
> fine. Otherwise some sort of version check should be put in, no?

The corresponding kernel patch is already merged in Ben's tree. If
running with an older kernel, this flag will be a no-op, which is fine
since GK20A's GPU (the reason for this patch as you have guessed :))
is not enabled for these kernels.

I am fine with adding a version check if you think it is necessary.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
       [not found]     ` <CAAVeFuL2XFnTGkfOB3hotVdzWxHGaTiSftkk_x-Vv3qNnmEsVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-03-13  9:45       ` Alexandre Courbot
  0 siblings, 0 replies; 12+ messages in thread
From: Alexandre Courbot @ 2015-03-13  9:45 UTC (permalink / raw)
  To: Ilia Mirkin
  Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA, Ben Skeggs

On Fri, Mar 13, 2015 at 3:39 PM, Alexandre Courbot <gnurou@gmail.com> wrote:
> On Fri, Mar 13, 2015 at 3:36 PM, Ilia Mirkin <imirkin@alum.mit.edu> wrote:
>> Doesn't this require a kernel version that has your other patch? What
>> happens when this runs on an older kernel? Does it get silently
>> ignored, or does it end up erroring out? If it errors out, that's
>> fine. Otherwise some sort of version check should be put in, no?
>
> The corresponding kernel patch is already merged in Ben's tree. If
> running with an older kernel, this flag will be a no-op, which is fine
> since GK20A's GPU (the reason for this patch as you have guessed :))
> is not enabled for these kernels.
>
> I am fine with adding a version check if you think it is necessary.

So as discussed on IRC, I will check the DRM version from Mesa. This
patch should be good to go - it will require a version increase in
libdrm though. Let me know if you want me to send a patch for this
too.
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
  2015-03-13  6:27 [PATCH] nouveau: add coherent BO attribute Alexandre Courbot
  2015-03-13  6:36 ` Ilia Mirkin
@ 2015-03-13 19:33 ` Maarten Lankhorst
       [not found]   ` <55033B99.4040300-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
  1 sibling, 1 reply; 12+ messages in thread
From: Maarten Lankhorst @ 2015-03-13 19:33 UTC (permalink / raw)
  To: Alexandre Courbot, Ilia Mirkin, Ben Skeggs
  Cc: linux-tegra, nouveau, dri-devel, gnurou

Hey,

Op 13-03-15 om 07:27 schreef Alexandre Courbot:
> Add a flag allowing Nouveau to specify that an object should be coherent
> at allocation time. This is required for some class of objects like
> fences which are randomly-accessed by both the CPU and GPU. This flag
> instructs the kernel driver to make sure the object remains coherent
> even on architectures for which coherency is not guaranteed by the bus.
> 
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
I don't see a problem with this patch, but similar patches to intel to libdrm have been shot down when the changes weren't in an official kernel yet, so I think this should wait until the change is at least in drm-next. ;-)
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
       [not found]   ` <55033B99.4040300-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
@ 2015-03-15  8:41     ` Alexandre Courbot
       [not found]       ` <550545A4.6060106-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Alexandre Courbot @ 2015-03-15  8:41 UTC (permalink / raw)
  To: Maarten Lankhorst, Ilia Mirkin, Ben Skeggs
  Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	gnurou-Re5JQEeQqe8AvxtiuMwx3w

On 03/14/2015 04:33 AM, Maarten Lankhorst wrote:
> Hey,
>
> Op 13-03-15 om 07:27 schreef Alexandre Courbot:
>> Add a flag allowing Nouveau to specify that an object should be coherent
>> at allocation time. This is required for some class of objects like
>> fences which are randomly-accessed by both the CPU and GPU. This flag
>> instructs the kernel driver to make sure the object remains coherent
>> even on architectures for which coherency is not guaranteed by the bus.
>>
>> Signed-off-by: Alexandre Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> I don't see a problem with this patch, but similar patches to intel to libdrm have been shot down when the changes weren't in an official kernel yet, so I think this should wait until the change is at least in drm-next. ;-)

Sounds good. I will ping you again once the kernel change reaches -next.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
       [not found]       ` <550545A4.6060106-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2015-04-22  9:08         ` Alexandre Courbot
       [not found]           ` <CAAVeFuKoryrWPcDkcFuk+OwJjaUn6C-he+xxphkZ7iMBa=Qdkg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Alexandre Courbot @ 2015-04-22  9:08 UTC (permalink / raw)
  To: Alexandre Courbot
  Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA, Ben Skeggs,
	Maarten Lankhorst

On Sun, Mar 15, 2015 at 5:41 PM, Alexandre Courbot <acourbot@nvidia.com> wrote:
> On 03/14/2015 04:33 AM, Maarten Lankhorst wrote:
>>
>> Hey,
>>
>> Op 13-03-15 om 07:27 schreef Alexandre Courbot:
>>>
>>> Add a flag allowing Nouveau to specify that an object should be coherent
>>> at allocation time. This is required for some class of objects like
>>> fences which are randomly-accessed by both the CPU and GPU. This flag
>>> instructs the kernel driver to make sure the object remains coherent
>>> even on architectures for which coherency is not guaranteed by the bus.
>>>
>>> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
>>
>> I don't see a problem with this patch, but similar patches to intel to
>> libdrm have been shot down when the changes weren't in an official kernel
>> yet, so I think this should wait until the change is at least in drm-next.
>> ;-)
>
>
> Sounds good. I will ping you again once the kernel change reaches -next.

Hi Marteen,

The kernel change required for this patch is now in -next. Do you
think we can merge it now?
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
       [not found]           ` <CAAVeFuKoryrWPcDkcFuk+OwJjaUn6C-he+xxphkZ7iMBa=Qdkg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-05-15  7:11             ` Alexandre Courbot
       [not found]               ` <CAAVeFu+kRcWT2zxbduA6MU9v1cTVb8HU3GEDdaviUAkYa6SbSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Alexandre Courbot @ 2015-05-15  7:11 UTC (permalink / raw)
  To: m.b.lankhorst-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Ben Skeggs

Re-pinging Marteen on an email address that still exists :P

On Wed, Apr 22, 2015 at 6:08 PM, Alexandre Courbot <gnurou@gmail.com> wrote:
> On Sun, Mar 15, 2015 at 5:41 PM, Alexandre Courbot <acourbot@nvidia.com> wrote:
>> On 03/14/2015 04:33 AM, Maarten Lankhorst wrote:
>>>
>>> Hey,
>>>
>>> Op 13-03-15 om 07:27 schreef Alexandre Courbot:
>>>>
>>>> Add a flag allowing Nouveau to specify that an object should be coherent
>>>> at allocation time. This is required for some class of objects like
>>>> fences which are randomly-accessed by both the CPU and GPU. This flag
>>>> instructs the kernel driver to make sure the object remains coherent
>>>> even on architectures for which coherency is not guaranteed by the bus.
>>>>
>>>> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
>>>
>>> I don't see a problem with this patch, but similar patches to intel to
>>> libdrm have been shot down when the changes weren't in an official kernel
>>> yet, so I think this should wait until the change is at least in drm-next.
>>> ;-)
>>
>>
>> Sounds good. I will ping you again once the kernel change reaches -next.
>
> Hi Marteen,
>
> The kernel change required for this patch is now in -next. Do you
> think we can merge it now?
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
       [not found]               ` <CAAVeFu+kRcWT2zxbduA6MU9v1cTVb8HU3GEDdaviUAkYa6SbSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-05-15 11:39                 ` Maarten Lankhorst
       [not found]                   ` <5555DAF6.4030309-FcfepWsj2zOByvU0x3ry2g@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Maarten Lankhorst @ 2015-05-15 11:39 UTC (permalink / raw)
  To: Alexandre Courbot
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Ben Skeggs

Op 15-05-15 om 09:11 schreef Alexandre Courbot:
> Re-pinging Marteen on an email address that still exists :P
>
> On Wed, Apr 22, 2015 at 6:08 PM, Alexandre Courbot <gnurou@gmail.com> wrote:
>> On Sun, Mar 15, 2015 at 5:41 PM, Alexandre Courbot <acourbot@nvidia.com> wrote:
>>> On 03/14/2015 04:33 AM, Maarten Lankhorst wrote:
>>>> Hey,
>>>>
>>>> Op 13-03-15 om 07:27 schreef Alexandre Courbot:
>>>>> Add a flag allowing Nouveau to specify that an object should be coherent
>>>>> at allocation time. This is required for some class of objects like
>>>>> fences which are randomly-accessed by both the CPU and GPU. This flag
>>>>> instructs the kernel driver to make sure the object remains coherent
>>>>> even on architectures for which coherency is not guaranteed by the bus.
>>>>>
>>>>> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
>>>> I don't see a problem with this patch, but similar patches to intel to
>>>> libdrm have been shot down when the changes weren't in an official kernel
>>>> yet, so I think this should wait until the change is at least in drm-next.
>>>> ;-)
>>>
>>> Sounds good. I will ping you again once the kernel change reaches -next.
>> Hi Marteen,
>>
>> The kernel change required for this patch is now in -next. Do you
>> think we can merge it now?
I think it would be ok to merge now.

~Maarten
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
       [not found]                   ` <5555DAF6.4030309-FcfepWsj2zOByvU0x3ry2g@public.gmane.org>
@ 2015-05-20  5:11                     ` Alexandre Courbot
       [not found]                       ` <CAAVeFuLKeEsf=at_gahCw9qzRWhrxtCVZ==H26y2xUx8-K75eA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Alexandre Courbot @ 2015-05-20  5:11 UTC (permalink / raw)
  To: Maarten Lankhorst
  Cc: Ilia Mirkin, Ben Skeggs,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

On Fri, May 15, 2015 at 8:39 PM, Maarten Lankhorst
<maarten-FcfepWsj2zOByvU0x3ry2g@public.gmane.org> wrote:
> Op 15-05-15 om 09:11 schreef Alexandre Courbot:
>> Re-pinging Marteen on an email address that still exists :P
>>
>> On Wed, Apr 22, 2015 at 6:08 PM, Alexandre Courbot <gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>> On Sun, Mar 15, 2015 at 5:41 PM, Alexandre Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> wrote:
>>>> On 03/14/2015 04:33 AM, Maarten Lankhorst wrote:
>>>>> Hey,
>>>>>
>>>>> Op 13-03-15 om 07:27 schreef Alexandre Courbot:
>>>>>> Add a flag allowing Nouveau to specify that an object should be coherent
>>>>>> at allocation time. This is required for some class of objects like
>>>>>> fences which are randomly-accessed by both the CPU and GPU. This flag
>>>>>> instructs the kernel driver to make sure the object remains coherent
>>>>>> even on architectures for which coherency is not guaranteed by the bus.
>>>>>>
>>>>>> Signed-off-by: Alexandre Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>>>>> I don't see a problem with this patch, but similar patches to intel to
>>>>> libdrm have been shot down when the changes weren't in an official kernel
>>>>> yet, so I think this should wait until the change is at least in drm-next.
>>>>> ;-)
>>>>
>>>> Sounds good. I will ping you again once the kernel change reaches -next.
>>> Hi Marteen,
>>>
>>> The kernel change required for this patch is now in -next. Do you
>>> think we can merge it now?
> I think it would be ok to merge now.

Great - who could do this? :P

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
       [not found]                       ` <CAAVeFuLKeEsf=at_gahCw9qzRWhrxtCVZ==H26y2xUx8-K75eA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-05-20  6:53                         ` Martin Peres
       [not found]                           ` <555C2F80.9080805-GANU6spQydw@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Peres @ 2015-05-20  6:53 UTC (permalink / raw)
  To: Alexandre Courbot, Maarten Lankhorst
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Ben Skeggs,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 20/05/15 08:11, Alexandre Courbot wrote:
> On Fri, May 15, 2015 at 8:39 PM, Maarten Lankhorst
> <maarten@mblankhorst.nl> wrote:
>> Op 15-05-15 om 09:11 schreef Alexandre Courbot:
>>> Re-pinging Marteen on an email address that still exists :P
>>>
>>> On Wed, Apr 22, 2015 at 6:08 PM, Alexandre Courbot <gnurou@gmail.com> wrote:
>>>> On Sun, Mar 15, 2015 at 5:41 PM, Alexandre Courbot <acourbot@nvidia.com> wrote:
>>>>> On 03/14/2015 04:33 AM, Maarten Lankhorst wrote:
>>>>>> Hey,
>>>>>>
>>>>>> Op 13-03-15 om 07:27 schreef Alexandre Courbot:
>>>>>>> Add a flag allowing Nouveau to specify that an object should be coherent
>>>>>>> at allocation time. This is required for some class of objects like
>>>>>>> fences which are randomly-accessed by both the CPU and GPU. This flag
>>>>>>> instructs the kernel driver to make sure the object remains coherent
>>>>>>> even on architectures for which coherency is not guaranteed by the bus.
>>>>>>>
>>>>>>> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
>>>>>> I don't see a problem with this patch, but similar patches to intel to
>>>>>> libdrm have been shot down when the changes weren't in an official kernel
>>>>>> yet, so I think this should wait until the change is at least in drm-next.
>>>>>> ;-)
>>>>> Sounds good. I will ping you again once the kernel change reaches -next.
>>>> Hi Marteen,
>>>>
>>>> The kernel change required for this patch is now in -next. Do you
>>>> think we can merge it now?
>> I think it would be ok to merge now.
> Great - who could do this? :P

I could do it. Please provide me with the patch with the necessary R-b 
and I can push it to our libdrm (and/or mesa).
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] nouveau: add coherent BO attribute
       [not found]                           ` <555C2F80.9080805-GANU6spQydw@public.gmane.org>
@ 2015-05-21  6:09                             ` Alexandre Courbot
  0 siblings, 0 replies; 12+ messages in thread
From: Alexandre Courbot @ 2015-05-21  6:09 UTC (permalink / raw)
  To: Martin Peres
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Maarten Lankhorst,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Ben Skeggs

On Wed, May 20, 2015 at 3:53 PM, Martin Peres <martin.peres@free.fr> wrote:
> On 20/05/15 08:11, Alexandre Courbot wrote:
>>
>> On Fri, May 15, 2015 at 8:39 PM, Maarten Lankhorst
>> <maarten@mblankhorst.nl> wrote:
>>>
>>> Op 15-05-15 om 09:11 schreef Alexandre Courbot:
>>>>
>>>> Re-pinging Marteen on an email address that still exists :P
>>>>
>>>> On Wed, Apr 22, 2015 at 6:08 PM, Alexandre Courbot <gnurou@gmail.com>
>>>> wrote:
>>>>>
>>>>> On Sun, Mar 15, 2015 at 5:41 PM, Alexandre Courbot
>>>>> <acourbot@nvidia.com> wrote:
>>>>>>
>>>>>> On 03/14/2015 04:33 AM, Maarten Lankhorst wrote:
>>>>>>>
>>>>>>> Hey,
>>>>>>>
>>>>>>> Op 13-03-15 om 07:27 schreef Alexandre Courbot:
>>>>>>>>
>>>>>>>> Add a flag allowing Nouveau to specify that an object should be
>>>>>>>> coherent
>>>>>>>> at allocation time. This is required for some class of objects like
>>>>>>>> fences which are randomly-accessed by both the CPU and GPU. This
>>>>>>>> flag
>>>>>>>> instructs the kernel driver to make sure the object remains coherent
>>>>>>>> even on architectures for which coherency is not guaranteed by the
>>>>>>>> bus.
>>>>>>>>
>>>>>>>> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
>>>>>>>
>>>>>>> I don't see a problem with this patch, but similar patches to intel
>>>>>>> to
>>>>>>> libdrm have been shot down when the changes weren't in an official
>>>>>>> kernel
>>>>>>> yet, so I think this should wait until the change is at least in
>>>>>>> drm-next.
>>>>>>> ;-)
>>>>>>
>>>>>> Sounds good. I will ping you again once the kernel change reaches
>>>>>> -next.
>>>>>
>>>>> Hi Marteen,
>>>>>
>>>>> The kernel change required for this patch is now in -next. Do you
>>>>> think we can merge it now?
>>>
>>> I think it would be ok to merge now.
>>
>> Great - who could do this? :P
>
>
> I could do it. Please provide me with the patch with the necessary R-b and I
> can push it to our libdrm (and/or mesa).

Thanks, I just sent a v2 with you included. I have yet to receive
formal R-b and A-b for it though.
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-05-21  6:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13  6:27 [PATCH] nouveau: add coherent BO attribute Alexandre Courbot
2015-03-13  6:36 ` Ilia Mirkin
2015-03-13  6:39   ` Alexandre Courbot
     [not found]     ` <CAAVeFuL2XFnTGkfOB3hotVdzWxHGaTiSftkk_x-Vv3qNnmEsVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-13  9:45       ` Alexandre Courbot
2015-03-13 19:33 ` Maarten Lankhorst
     [not found]   ` <55033B99.4040300-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2015-03-15  8:41     ` Alexandre Courbot
     [not found]       ` <550545A4.6060106-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-04-22  9:08         ` Alexandre Courbot
     [not found]           ` <CAAVeFuKoryrWPcDkcFuk+OwJjaUn6C-he+xxphkZ7iMBa=Qdkg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-15  7:11             ` Alexandre Courbot
     [not found]               ` <CAAVeFu+kRcWT2zxbduA6MU9v1cTVb8HU3GEDdaviUAkYa6SbSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-15 11:39                 ` Maarten Lankhorst
     [not found]                   ` <5555DAF6.4030309-FcfepWsj2zOByvU0x3ry2g@public.gmane.org>
2015-05-20  5:11                     ` Alexandre Courbot
     [not found]                       ` <CAAVeFuLKeEsf=at_gahCw9qzRWhrxtCVZ==H26y2xUx8-K75eA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-20  6:53                         ` Martin Peres
     [not found]                           ` <555C2F80.9080805-GANU6spQydw@public.gmane.org>
2015-05-21  6:09                             ` Alexandre Courbot

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.