From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Peres Subject: Re: [Nouveau] [PATCH v2] nouveau: add coherent BO attribute Date: Tue, 26 May 2015 22:06:24 +0300 Message-ID: <5564C430.7000900@free.fr> References: <1432188508-650-1-git-send-email-acourbot@nvidia.com> <555E228B.9090400@free.fr> <55616F1E.7020602@mblankhorst.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alexandre Courbot , Maarten Lankhorst Cc: Ben Skeggs , Alexandre Courbot , "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" , "dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" , Ben Skeggs List-Id: dri-devel@lists.freedesktop.org On 26/05/2015 16:23, Alexandre Courbot wrote: > On Sun, May 24, 2015 at 3:26 PM, Maarten Lankhorst > wrote: >> Op 23-05-15 om 08:45 schreef Alexandre Courbot: >>> On Fri, May 22, 2015 at 3:23 AM, Martin Peres wrote: >>>> On 21/05/2015 11:47, Ben Skeggs wrote: >>>>> On 21 May 2015 at 16:08, Alexandre Courbot 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 >>>>> Reviewed-by: Ben Skeggs >>>> Pushed! >>> Thanks! Should we also bump the ABI version or something? >> If you mean changing libdrm_nouveau.so.2 to .so.3 no! If you mean having something that pkg-config can pick up that's done automatically on every drm release. > Sorry for not having been clear. I was talking about checking against > the driver version to ensure it supports all the features that libdrm > can throw at it. We increased the modules's version to 1.2.2 when > adding the coherent flag: > > drm/nouveau/nouveau_drm.h: > * 1.2.2: > * - add NOUVEAU_GEM_DOMAIN_COHERENT flag That will be the job of mesa to check the DRM version, I would guess.