Re: [Intel-gfx] [PATCH] dma-buf: Enhance dma-fence tracing

2019-01-24 Thread Eric Anholt
or cases where they have unique dma_fence_ops, and >> > preferring to have descriptors for the whole fence context). strings do >> > not pack as well into the ftrace ringbuffer and we would prefer to >> > reduce the amount of indirect callbacks required for frequent tracepoin

Re: [Intel-gfx] [PATCH v5 4/5] drm: Add library for shmem backed GEM objects

2019-01-28 Thread Eric Anholt
Noralf Trønnes writes: > Den 28.01.2019 21.57, skrev Rob Herring: >> On Sun, Dec 2, 2018 at 9:59 AM Noralf Trønnes wrote: >>> >>> >>> Den 30.11.2018 00.58, skrev Eric Anholt: >>>> Daniel Vetter writes: >>>> >>>>> On Wed

[Intel-gfx] [PATCH igt] vc4: Add a test for BO lookup failure error path.

2016-07-26 Thread Eric Anholt
Causes an oops in the current kernel. --- tests/Makefile.am | 2 ++ tests/Makefile.sources | 1 + tests/vc4_lookup_fail.c | 81 + 3 files changed, 84 insertions(+) create mode 100644 tests/vc4_lookup_fail.c diff --git a/tests/Makefile.am b

Re: [Intel-gfx] [PATCH 2/6] drm/drv: Prepare to remove drm_dev_unplug()

2019-02-06 Thread Eric Anholt
Daniel Vetter writes: > > Zooming out more looking at the big picture I'd say all your work in the > past few years has enormously simplified drm for simple drivers already. > If we can't resolve this one here right now that just means you "only" > made drm 98% simpler instead of maybe 99%. It's s

Re: [Intel-gfx] [PATCH 01/17] drm/vc4: Fix memory leak during gpu reset.

2019-03-01 Thread Eric Anholt
Maarten Lankhorst writes: > __drm_atomic_helper_crtc_destroy_state does not free memory, it only > cleans it up. Fix this by calling the functions own destroy function. Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ Int

Re: [Intel-gfx] [PATCH 15/17] drm/vc4: Convert to using __drm_atomic_helper_crtc_reset() for reset.

2019-03-01 Thread Eric Anholt
Maarten Lankhorst writes: > Convert vc4 to using __drm_atomic_helper_crtc_reset(), instead of > writing its own version. Instead of open coding destroy_state(), > call it directly for freeing the old state. > > Signed-off-by: Maarten Lankhorst > Cc: Eric Anholt > --- &

Re: [Intel-gfx] [PATCH v5 4/5] drm: Add library for shmem backed GEM objects

2018-11-27 Thread Eric Anholt
Daniel Vetter writes: > On Mon, Nov 26, 2018 at 04:36:21PM -0800, Eric Anholt wrote: >> Noralf Trønnes writes: >> > +static void drm_gem_shmem_vm_close(struct vm_area_struct *vma) >> > +{ >> > + struct drm_gem_object *obj = vma->vm_private_data; >

Re: [Intel-gfx] [PATCH i-g-t 4/4] igt/v3d_*: Add new tests for the V3D UABI.

2018-11-27 Thread Eric Anholt
Petri Latvala writes: > On Mon, Nov 26, 2018 at 12:46:46PM -0800, Eric Anholt wrote: >> Petri Latvala writes: >> >> > On Wed, Nov 14, 2018 at 02:28:32PM -0800, Eric Anholt wrote: >> >> These are basic non-rendering tests of the UABI. >

Re: [Intel-gfx] [PATCH 4/4] drm/edid: Add display_info.rgb_quant_range_selectable

2018-11-28 Thread Eric Anholt
Ville Syrjala writes: > From: Ville Syrjälä > > Move the CEA-861 QS bit handling entirely into the edid code. No > need to bother the drivers with this. > > Cc: Alex Deucher > Cc: "Christian König" > Cc: "David (ChunMing) Zhou" > Cc:

Re: [Intel-gfx] [PATCH v5 4/5] drm: Add library for shmem backed GEM objects

2018-11-28 Thread Eric Anholt
Daniel Vetter writes: > On Tue, Nov 27, 2018 at 12:38:44PM -0800, Eric Anholt wrote: >> Daniel Vetter writes: >> >> > On Mon, Nov 26, 2018 at 04:36:21PM -0800, Eric Anholt wrote: >> >> Noralf Trønnes writes: >> >> > +static voi

Re: [Intel-gfx] [PATCH v5 4/5] drm: Add library for shmem backed GEM objects

2018-11-29 Thread Eric Anholt
Daniel Vetter writes: > On Wed, Nov 28, 2018 at 01:52:56PM -0800, Eric Anholt wrote: >> Daniel Vetter writes: >> >> > On Tue, Nov 27, 2018 at 12:38:44PM -0800, Eric Anholt wrote: >> >> Daniel Vetter writes: >> >> >> >> &

Re: [Intel-gfx] [PATCH v3 2/3] drm: Add CRTC background color property (v3)

2018-12-27 Thread Eric Anholt
Brian Starkey writes: > Hi Matt, > > On Thu, Nov 15, 2018 at 02:13:45PM -0800, Matt Roper wrote: >>Some display controllers can be programmed to present non-black colors >>for pixels not covered by any plane (or pixels covered by the >>transparent regions of higher planes). Compositors that want

Re: [Intel-gfx] [PATCH 16/16] drm/vc4: Call drm_dev_register() after all setup is done

2019-03-27 Thread Eric Anholt
Noralf Trønnes writes: > drm_dev_register() initializes internal clients like bootsplash as the > last thing it does, so all setup needs to be done at this point. > > Fix by calling vc4_kms_load() before registering. > Also check the error code returned from that function. >

Re: [Intel-gfx] [PATCH 01/59] drm/todo: Improve drm_gem_object funcs todo

2019-06-14 Thread Eric Anholt
great cleanup. I took a look at a lot of it. Patch 1-2, 4-10, 41-47, 49-50, and all the gem_prime_import/export drop patches are: Reviewed-by: Eric Anholt I don't currently have a plan for reading the shuffle in patch 3. signature.asc Description: PGP signature __

Re: [Intel-gfx] [PATCH 4/4] drm/vc4: Use dma_resv locking wrappers

2019-12-13 Thread Eric Anholt
> if (contended_lock != -1 && contended_lock >= i) { > > bo = &exec->bo[contended_lock]->base; > > > > - ww_mutex_unlock(&bo->resv->lock); > > + dma_resv_unlock(bo->resv); > > } > > > > if (ret == -EDEADLK) { > > -- > > 2.24.0 > > Assuming they're supposed to be exactly equivalent currently, Acked-by: Eric Anholt but we should really just be using drm_gem_lock_reservations() ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 3/4] drm/msm: Use dma_resv locking wrappers

2019-12-13 Thread Eric Anholt
.. */ > > - ret = > > ww_mutex_lock_slow_interruptible(&msm_obj->base.resv->lock, > > - &submit->ticket); > > + ret = dma_resv_lock_slow_interruptible(msm_obj->base.resv, > > +&submit->ticket); > > if (!ret) { > > submit->bos[contended].flags |= BO_LOCKED; > > slow_locked = contended; > > -- > > 2.24.0 > > Reviewed-by: Eric Anholt ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 14/44] drm/v3d: Delete v3d_dev->pdev

2020-04-03 Thread Eric Anholt
bikeshed, so feel free to ignore. > > Signed-off-by: Daniel Vetter > Cc: Eric Anholt ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 13/44] drm/v3d: Delete v3d_dev->dev

2020-04-03 Thread Eric Anholt
gt; different objects if there's multiple > - compilers have an easier time too > > But also a bit a bikeshed, so feel free to ignore. > > Signed-off-by: Daniel Vetter > Cc: Eric Anholt a-b. ___ Intel-gfx mailing list Intel-gfx@li

Re: [Intel-gfx] [PATCH 12/44] drm/v3d: Use devm_drm_dev_alloc

2020-04-03 Thread Eric Anholt
On Fri, Apr 3, 2020 at 6:58 AM Daniel Vetter wrote: > > Also allows us to simplify the unroll code since the drm_dev_put > disappears. > > Signed-off-by: Daniel Vetter Acked-by: Eric Anholt ___ Intel-gfx mailing list Intel-gfx@lists.

Re: [Intel-gfx] [PATCH 24/44] drm/hx8357d: Use devm_drm_dev_alloc

2020-04-03 Thread Eric Anholt
On Fri, Apr 3, 2020 at 6:59 AM Daniel Vetter wrote: > > Already using devm_drm_dev_init, so very simple replacment. > > Signed-off-by: Daniel Vetter Acked-by: Eric Anholt ___ Intel-gfx mailing list Intel-gfx@lists.freedeskt

Re: [Intel-gfx] [PATCH 11/44] drm/v3d: Don't set drm_device->dev_private

2020-04-03 Thread Eric Anholt
On Fri, Apr 3, 2020 at 6:58 AM Daniel Vetter wrote: > > And switch the helper over to container_of, which is a bunch faster > than chasing a pointer. Plus allows gcc to see through this maze. > > Signed-off-by: Daniel Vetter Acked-

Re: [Intel-gfx] [PATCH 40/44] drm/cirrus: Don't use drm_device->dev_private

2020-04-03 Thread Eric Anholt
"Noralf Trønnes" > Cc: Sam Ravnborg Acked-by: Eric Anholt ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v3 1/3] drm/gem: don't force writecombine mmap'ing

2019-07-16 Thread Eric Anholt
Rob Clark writes: > From: Rob Clark > > The driver should be in control of this. > > Signed-off-by: Rob Clark > --- > It is possible that this was masking bugs (ie. not setting appropriate > pgprot) in drivers. I don't have a particularly good idea for tracking > those down (since I don't have

Re: [Intel-gfx] [PATCH v3 3/3] drm/vgem: use normal cached mmap'ings

2019-07-16 Thread Eric Anholt
Rob Clark writes: > From: Rob Clark > > Since there is no real device associated with VGEM, it is impossible to > end up with appropriate dev->dma_ops, meaning that we have no way to > invalidate the shmem pages allocated by VGEM. So, at least on platforms > without drm_cflush_pages(), we end u

Re: [Intel-gfx] [PATCH 11/52] drm/v3d: Use drmm_add_final_kfree

2020-02-19 Thread Eric Anholt
r the setup to fix this issue. > > After a bit more prep in drivers and drm core v3d should be able to > switch over to devm_drm_dev_init, which should clean this up further. > > Signed-off-by: Daniel Vetter > Cc: Eric Anholt Acked-by: Eric Anholt _

Re: [Intel-gfx] [Mesa-dev] gitlab.fd.o financial situation and impact on services

2020-02-28 Thread Eric Anholt
On Fri, Feb 28, 2020 at 12:48 AM Dave Airlie wrote: > > On Fri, 28 Feb 2020 at 18:18, Daniel Stone wrote: > > > > On Fri, 28 Feb 2020 at 03:38, Dave Airlie wrote: > > > b) we probably need to take a large step back here. > > > > > > Look at this from a sponsor POV, why would I give X.org/fd.o >

Re: [Intel-gfx] [Freedreno] [PATCH 01/10] include: Move ascii85 functions from i915 to linux/ascii85.h

2018-04-16 Thread Eric Anholt
Chris Wilson writes: > Quoting Jordan Crouse (2018-04-05 23:06:53) >> On Thu, Apr 05, 2018 at 04:00:47PM -0600, Jordan Crouse wrote: >> > The i915 DRM driver very cleverly used ascii85 encoding for their >> > GPU state file. Move the encode functions to a general header file to >> > support other

Re: [Intel-gfx] [PATCH 01/17] dma-fence: Some kerneldoc polish for dma-fence.h

2018-04-30 Thread Eric Anholt
' in between. Other than that, Reviewed-by: Eric Anholt Thanks! signature.asc Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 02/17] dma-fence: remove fill_driver_data callback

2018-04-30 Thread Eric Anholt
Daniel Vetter writes: > Noticed while I was typing docs. Entirely unused. > > Signed-off-by: Daniel Vetter > --- > include/linux/dma-fence.h | 10 -- > 1 file changed, 10 deletions(-) > > diff --git a/include/linux/dma-fence.h b/include/linux/dma-fence.h > index 9d6f39bf2111..f9a6848f85

Re: [Intel-gfx] [PATCH 14/17] drm/vc4: Remove unecessary dma_fence_ops

2018-04-30 Thread Eric Anholt
Daniel Vetter writes: > dma_fence_default_wait is the default now, same for the trivial > enable_signaling implementation. > > Signed-off-by: Daniel Vetter Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ Intel

Re: [Intel-gfx] [PATCH 07/17] drm: Remove unecessary dma_fence_ops

2018-04-30 Thread Eric Anholt
Daniel Vetter writes: > dma_fence_default_wait is the default now, same for the trivial > enable_signaling implementation. > > Signed-off-by: Daniel Vetter Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ Intel

Re: [Intel-gfx] [PATCH 12/17] drm/qxl: Remove unecessary dma_fence_ops

2018-04-30 Thread Eric Anholt
Daniel Vetter writes: > dma_fence_default_wait is the default now, same for the trivial > enable_signaling implementation. Drop the mention of dma_fence_default_wait, since this one doesn't use that? Other than that, Reviewed-by: Eric Anholt signature.asc Description: PG

Re: [Intel-gfx] [PATCH 16/17] drm/virtio: Remove unecessary dma_fence_ops

2018-04-30 Thread Eric Anholt
Daniel Vetter writes: > dma_fence_default_wait is the default now, same for the trivial > enable_signaling implementation. Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedeskt

Re: [Intel-gfx] [PATCH] dma-fence: remove fill_driver_data callback

2018-05-02 Thread Eric Anholt
Daniel Vetter writes: > Noticed while I was typing docs. Entirely unused. > > v2: Remove reference in @timeline_value_str too. While at it clarify > why timeline_value_str has a fence parameter - we don't have an > explicit timeline structure unfortunately. > > Cc:

Re: [Intel-gfx] [PULL] drm-misc-next

2018-05-11 Thread Eric Anholt
Maarten Lankhorst writes: > Hey, > > Another pull request for drm-misc-next. Previous one was not applied yet, > but only sending delta since last request: > https://lists.freedesktop.org/archives/dri-devel/2018-May/175722.html Note, I think this PR has a UABI regression in it: https://patchwor

Re: [Intel-gfx] [igt-dev] [PATCH] RFC: Make igts for cross-driver stuff mandatory?

2018-10-25 Thread Eric Anholt
Sean Paul writes: > On Fri, Oct 19, 2018 at 10:50:49AM +0200, Daniel Vetter wrote: >> Hi all, >> >> This is just to collect feedback on this idea, and see whether the >> overall dri-devel community stands on all this. I think the past few >> cross-vendor uapi extensions all came with igts attach

Re: [Intel-gfx] [PATCH v4 1/2] drm: Add drm_any_plane_has_format()

2018-10-29 Thread Eric Anholt
ort the function and let drivers > call it themselves > > Cc: Eric Anholt > Cc: Dhinakaran Pandiyan > Signed-off-by: Ville Syrjälä > Reviewed-by: Dhinakaran Pandiyan I don't particularly see the point in having FB creation duplicate the validation that atomic che

[Intel-gfx] [PATCH i-g-t 1/4] kms_content_protection: Fix log bug on 32-bit platforms.

2018-11-14 Thread Eric Anholt
long is different between 32 and 64 and should basically never be used. Fixes compiler warning about passing the wrong type. Signed-off-by: Eric Anholt --- tests/kms_content_protection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/kms_content_protection.c b

[Intel-gfx] [PATCH i-g-t 2/4] v3d: Import the V3D DRM UAPI header.

2018-11-14 Thread Eric Anholt
Copied from make headers_install at drm-misc-next 783195ec1cad ("drm/syncobj: disable the timeline UAPI for now v2") Signed-off-by: Eric Anholt --- include/drm-uapi/v3d_drm.h | 204 + 1 file changed, 204 insertions(+) create mode 100644 includ

[Intel-gfx] [PATCH i-g-t 4/4] igt/v3d_*: Add new tests for the V3D UABI.

2018-11-14 Thread Eric Anholt
These are basic non-rendering tests of the UABI. Signed-off-by: Eric Anholt --- lib/igt_v3d.c | 4 -- tests/Makefile.am | 2 + tests/Makefile.sources| 6 +++ tests/meson.build | 3 ++ tests/v3d_ci/README | 26 + tests/v3d_ci/v3d.testlist

[Intel-gfx] [PATCH i-g-t 3/4] Add v3d helper library

2018-11-14 Thread Eric Anholt
Just a few little ioctl wrappers that v3d tests will use. Signed-off-by: Eric Anholt --- lib/Makefile.sources | 2 + lib/drmtest.c| 3 + lib/drmtest.h| 1 + lib/igt_v3d.c| 130 +++ lib/igt_v3d.h| 46

Re: [Intel-gfx] [PATCH i-g-t 1/4] kms_content_protection: Fix log bug on 32-bit platforms.

2018-11-15 Thread Eric Anholt
Ville Syrjälä writes: > On Wed, Nov 14, 2018 at 02:28:29PM -0800, Eric Anholt wrote: >> long is different between 32 and 64 and should basically never be >> used. Fixes compiler warning about passing the wrong type. >> >> Signed-off-by: Eric Anholt >> --- &

Re: [Intel-gfx] [PATCH 4/5] drm/cma-helper: Add DRM_GEM_CMA_VMAP_DRIVER_OPS

2018-11-16 Thread Eric Anholt
ng the conditional dma_buf_vunmap() call in > drm_gem_cma_free_object() safe. > > Signed-off-by: Noralf Trønnes I didn't look through 1-3 much since they had acks, but 4/5 get my: Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___

Re: [Intel-gfx] [PATCH RFC 5/5] drm/amdgpu: Add accounting of buffer object creation request via DRM cgroup

2018-11-20 Thread Eric Anholt
Kenny Ho writes: > Account for the total size of buffer object requested to amdgpu by > buffer type on a per cgroup basis. > > x prefix in the control file name x.bo_requested.amd.stat signify > experimental. Why is a counting of the size of buffer objects ever allocated useful, as opposed to th

Re: [Intel-gfx] [PATCH RFC 4/5] drm/amdgpu: Add accounting of command submission via DRM cgroup

2018-11-20 Thread Eric Anholt
Kenny Ho writes: > Account for the number of command submitted to amdgpu by type on a per > cgroup basis, for the purpose of profiling/monitoring applications. For profiling other drivers, I've used perf tracepoints, which let you get useful timelines of multiple events in the driver. Have you

Re: [Intel-gfx] [PATCH RFC 4/5] drm/amdgpu: Add accounting of command submission via DRM cgroup

2018-11-23 Thread Eric Anholt
Christian König writes: > Am 20.11.18 um 21:57 schrieb Eric Anholt: >> Kenny Ho writes: >> >>> Account for the number of command submitted to amdgpu by type on a per >>> cgroup basis, for the purpose of profiling/monitoring applications. >> For

Re: [Intel-gfx] [PATCH i-g-t 4/4] igt/v3d_*: Add new tests for the V3D UABI.

2018-11-26 Thread Eric Anholt
Petri Latvala writes: > On Wed, Nov 14, 2018 at 02:28:32PM -0800, Eric Anholt wrote: >> These are basic non-rendering tests of the UABI. >> >> Signed-off-by: Eric Anholt >> --- >> lib/igt_v3d.c | 4 -- >> tests/Makefile.am |

Re: [Intel-gfx] [PATCH v5 4/5] drm: Add library for shmem backed GEM objects

2018-11-26 Thread Eric Anholt
Noralf Trønnes writes: > +static void drm_gem_shmem_vm_close(struct vm_area_struct *vma) > +{ > + struct drm_gem_object *obj = vma->vm_private_data; > + struct drm_gem_shmem_object *shmem = to_drm_gem_shmem_obj(obj); > + > + drm_gem_shmem_put_pages(shmem); > + drm_gem_vm_close(vma)

Re: [Intel-gfx] [PATCH 12/15] drm: Add acquire ctx to ->gamma_set hook

2017-04-06 Thread Eric Anholt
Daniel Vetter writes: > Atomic helpers really want this instead of the hacked-up legacy > backoff trick, which unfortunately prevents drivers from using their > own private drm_modeset_locks. > > Aside: There's a few atomic drivers (nv50, vc4, soon vmwgfx) which > don't yet use the new atomic col

[Intel-gfx] [PATCH igt] igt/vc4_dmabuf_poll: Add a test for polling to wait for dmabuf fences.

2017-04-10 Thread Eric Anholt
This successfully catches vc4's lack of dmabuf fencing. Signed-off-by: Eric Anholt --- Has anyone looked into shared infrastructure for tests to do KMS/dmabuf/etc. things with a generic "get a BO that's being rendered to for this driver" call? tests/Makefile.am

Re: [Intel-gfx] [PATCH] drm: Document code of conduct

2017-04-11 Thread Eric Anholt
wayland/commit/?id=0eefe99fe0683ae409b665a8b18cc7eb648c6c0c With the other wording nitpicks fixed, Reviewed-by: Eric Anholt I'm pleased to be part of a community that's working on building an inclusive, welcoming, productive environment. signature.asc Description: PGP signature

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Deal with upside-down mounted LCD panels

2017-05-08 Thread Eric Anholt
Hans de Goede writes: > HI, > > On 08-05-17 14:27, Chris Wilson wrote: >> On Sun, May 07, 2017 at 11:10:56AM +0200, Hans de Goede wrote: >>> On some (Bay Trail) devices the LCD panel is mounted upside-down. >>> >>> This commit uses the code to read back the initial rotation of the >>> primary pla

Re: [Intel-gfx] [PATCH 13/18] drm/vc4: Use drm_atomic_helper_shutdown

2018-10-03 Thread Eric Anholt
Daniel Vetter writes: > drm_plane_helper_disable is a non-atomic drivers only function, and > will blow up (since no one passes the locking context it needs). > > Atomic drivers which want to quiescent their hw on unload should > use drm_atomic_helper_shutdown() instead. > > v2: Rebase. I've def

Re: [Intel-gfx] [PATCH 2/3] drm: Make sure at least one plane supports the fb format

2018-03-15 Thread Eric Anholt
modifier yet, instead export the function and let drivers > call it themselves > v4: Unexport the functiona and put the format_default check back > since this will again be called by the core, ie. undo v3 ;) > > Cc: Eric Anholt > Testcase: igt/kms_addfb_basic/expe

Re: [Intel-gfx] [PATCH 2/3] drm: Make sure at least one plane supports the fb format

2018-03-16 Thread Eric Anholt
Ville Syrjälä writes: > On Thu, Mar 15, 2018 at 08:03:44PM +0200, Ville Syrjälä wrote: >> On Thu, Mar 15, 2018 at 07:48:02PM +0200, Ville Syrjälä wrote: >> > On Thu, Mar 15, 2018 at 10:42:17AM -0700, Eric Anholt wrote: >> > > Ville Syrjala writes: >&g

Re: [Intel-gfx] [RFC PATCH i-g-t 0/3] Test the plane formats on the Chamelium

2018-03-21 Thread Eric Anholt
Maxime Ripard writes: > [ Unknown signature status ] > Hi, > > On Mon, Mar 05, 2018 at 03:21:26PM +0100, Maxime Ripard wrote: >> Here is an RFC at starting to test the plane formats using the >> Chamelium over the HDMI. This was tested using the vc4 DRM driver >> found on the RaspberryPi. >> >>

Re: [Intel-gfx] [PATCH] drm/i915: Promote .format_mod_supported() to the lead role

2018-03-30 Thread Eric Anholt
if you keep the assumption that the core will check that the format is one of plane->format_types. > > Cc: Eric Anholt > References: > https://lists.freedesktop.org/archives/dri-devel/2018-March/169782.html > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/int

Re: [Intel-gfx] [PATCH v2] drm/i915: Promote .format_mod_supported() to the lead role

2018-05-21 Thread Eric Anholt
if your format and modifier was in drm_plane->format_types and drm_plane->modifiers, since then you wouldn't be duplicating your tables and you wouldn't need has_ccs either. However, it's not my driver and it unblocks vc4's patch, so

Re: [Intel-gfx] [PATCH v2] drm/i915: Promote .format_mod_supported() to the lead role

2018-05-30 Thread Eric Anholt
Ville Syrjälä writes: > On Mon, May 21, 2018 at 12:21:01PM -0700, Eric Anholt wrote: >> Ville Syrjala writes: >> >> > From: Ville Syrjälä >> > >> > Up to now we've used the plane's modifier list as the primary >> > source of inform

Re: [Intel-gfx] [PATCH 6/9] drm/pl111: Set .gem_prime_vmap and .gem_prime_mmap

2018-05-30 Thread Eric Anholt
Noralf Trønnes writes: > These are needed for pl111 to use the generic fbdev emulation. Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.

Re: [Intel-gfx] [PATCH v2 12/13] drm/vc4: Stop updating plane->fb/crtc

2018-05-30 Thread Eric Anholt
Ville Syrjala writes: > From: Ville Syrjälä > > We want to get rid of plane->fb/crtc on atomic drivers. Stop setting > them. > > Cc: Eric Anholt > Signed-off-by: Ville Syrjälä > Reviewed-by: Maarten Lankhorst > Reviewed-by: Daniel Vetter Reviewed-by

Re: [Intel-gfx] [PATCH 09/10] drm/vc4: Use drm_crtc_mask()

2018-06-26 Thread Eric Anholt
Ville Syrjala writes: > From: Ville Syrjälä > > Use drm_crtc_mask() where appropriate. Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freede

[Intel-gfx] [PATCH igt 6/9] igt: Add a helper function for mapping VC4 BOs.

2016-02-03 Thread Eric Anholt
Signed-off-by: Eric Anholt --- lib/igt_vc4.c | 20 lib/igt_vc4.h | 1 + 2 files changed, 21 insertions(+) diff --git a/lib/igt_vc4.c b/lib/igt_vc4.c index 62e1345..15804e9 100644 --- a/lib/igt_vc4.c +++ b/lib/igt_vc4.c @@ -25,6 +25,7 @@ #include #include #include

[Intel-gfx] [PATCH igt 5/9] igt: Add a helper function for getting a VC4 BO that's been drawn to.

2016-02-03 Thread Eric Anholt
Signed-off-by: Eric Anholt --- lib/Makefile.sources | 2 + lib/igt_vc4.c| 106 +++ lib/igt_vc4.h| 29 ++ 3 files changed, 137 insertions(+) create mode 100644 lib/igt_vc4.c create mode 100644 lib/igt_vc4.h diff

[Intel-gfx] [PATCH igt 8/9] igt/vc4_create_bo: Test various paths in BO creation.

2016-02-03 Thread Eric Anholt
create-bo-0 fails on the current kernel, and it's something I want to fix. Signed-off-by: Eric Anholt --- tests/Makefile.am | 2 ++ tests/Makefile.sources | 1 + tests/vc4_create_bo.c | 91 ++ 3 files changed, 94 insertions(+) create

[Intel-gfx] [PATCH igt 4/9] igt/vc4_wait_bo: Add a test for VC4's wait-for-BO ioctl.

2016-02-03 Thread Eric Anholt
The pad subtest fails currently. Signed-off-by: Eric Anholt --- tests/Makefile.am | 2 ++ tests/Makefile.sources | 1 + tests/vc4_wait_bo.c| 93 ++ 3 files changed, 96 insertions(+) create mode 100644 tests/vc4_wait_bo.c diff --git a

[Intel-gfx] [PATCH igt 9/9] igt/vc4_wait_bo: Add tests with rendering performed.

2016-02-03 Thread Eric Anholt
These caught an unexpected bug with clear colors (we'd get the last executed clear's color in our new BO), while failing to catch the bug I'd been hoping to find all along. Signed-off-by: Eric Anholt --- tests/vc4_wait_bo.c | 41 + 1 f

[Intel-gfx] [PATCH igt 3/9] igt/vc4_wait_seqno: Add a test for VC4's wait-for-seqno ioctl.

2016-02-03 Thread Eric Anholt
Signed-off-by: Eric Anholt --- tests/Makefile.am | 6 + tests/Makefile.sources | 4 +++ tests/vc4_wait_seqno.c | 69 ++ 3 files changed, 79 insertions(+) create mode 100644 tests/vc4_wait_seqno.c diff --git a/tests/Makefile.am b/tests

[Intel-gfx] [PATCH igt 2/9] igt: Add support for DRIVER_VC4 flags on tests.

2016-02-03 Thread Eric Anholt
Signed-off-by: Eric Anholt --- lib/drmtest.c | 16 ++-- lib/drmtest.h | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index 2896af0..7b2227f 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -100,6 +100,16 @@ static bool

[Intel-gfx] [PATCH igt 7/9] igt: Add a helper function for creating VC4 BOs.

2016-02-03 Thread Eric Anholt
Signed-off-by: Eric Anholt --- lib/igt_vc4.c | 21 +++-- lib/igt_vc4.h | 1 + tests/vc4_wait_bo.c | 10 ++ 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/lib/igt_vc4.c b/lib/igt_vc4.c index 15804e9..0233f2b 100644 --- a/lib/igt_vc4.c +++ b

[Intel-gfx] [PATCH igt 1/9] configure.ac: Test for libdrm_vc4 and build vc4 tests based on it.

2016-02-03 Thread Eric Anholt
Signed-off-by: Eric Anholt --- configure.ac | 12 1 file changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index ecbfacd..cfbcbf3 100644 --- a/configure.ac +++ b/configure.ac @@ -149,6 +149,18 @@ if test "x$NOUVEAU" = xyes; then fi AM_CONDITIONAL(HA

Re: [Intel-gfx] [PATCH igt 4/9] igt/vc4_wait_bo: Add a test for VC4's wait-for-BO ioctl.

2016-02-04 Thread Eric Anholt
Daniel Stone writes: > Hi, > > On 3 February 2016 at 21:41, Eric Anholt wrote: >> + ret = ioctl(fd, DRM_IOCTL_VC4_WAIT_BO, &arg); >> + igt_assert(ret == -1 && errno == EINVAL); > > A couple of nitpicks: all these should

Re: [Intel-gfx] [PATCH 21/22] drm/vc4: Nuke preclose hook

2016-01-18 Thread Eric Anholt
Daniel Vetter writes: > Again since the drm core takes care of event unlinking/disarming this > is now just needless code. > > v2: Fixup misplaced hunk. > > Cc: Eric Anholt > Acked-by: Daniel Stone > Reviewed-by: Alex Deucher (v1) > Signed-off-by: Daniel Vetter I

[Intel-gfx] [PATCH 2/2] configure.ac: Add a configure arg for the overlay.

2016-01-25 Thread Eric Anholt
It's autodetected if its dependencies are present, but it doesn't build for ARM, nor am I interested in it for now. Signed-off-by: Eric Anholt --- configure.ac | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index ddfe69

[Intel-gfx] [PATCH 1/2] igt: Disable igt_clflush_range() implementation on ARM builds.

2016-01-25 Thread Eric Anholt
Daniel has suggested that I put vc4 testing into igt, since it's got the piglit integration and KMS coverage already. This gets the ccore building so that I can start writing tests. --- lib/igt_gt.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 149435c.

Re: [Intel-gfx] [PATCH RESEND 6/6] drm/vc4: update cursors asynchronously through atomic

2017-05-31 Thread Eric Anholt
e checks back to drivers (Ville Syrjälä) > > v2: move fb setting to core and use new state (Eric Anholt) Given that vc4 isn't using drm_atomic_helper_commit(), isn't this effectively disabling async cursor updates on vc4? signature.asc Description: PGP signature __

Re: [Intel-gfx] [PATCH RESEND 1/6] drm/atomic: initial support for asynchronous plane update

2017-05-31 Thread Eric Anholt
x27;t do an async update if there is an outstanding commit modifying * the plane. This prevents our async update's changes from getting * overridden by a previous synchronous update's state. */ (assuming I understand its intent correctly) I don't understand KMS lo

Re: [Intel-gfx] [PATCH igt] igt/vc4_dmabuf_poll: Add a test for polling to wait for dmabuf fences.

2017-06-07 Thread Eric Anholt
Daniel Vetter writes: > On Mon, Apr 10, 2017 at 06:24:32PM -0700, Eric Anholt wrote: >> This successfully catches vc4's lack of dmabuf fencing. >> >> Signed-off-by: Eric Anholt >> --- >> >> Has anyone looked into shared infrastructure for tests to

[Intel-gfx] [PATCH 2/2] igt/vc4_tiling: Test vc4's new set/get_tiling ioctls.

2017-06-07 Thread Eric Anholt
ering, so no need to test that. Signed-off-by: Eric Anholt --- lib/igt_vc4.c | 21 lib/igt_vc4.h | 3 ++ tests/Makefile.am | 2 + tests/Makefile.sources | 1 + tests/vc4_tiling.c | 137 + 5 files changed

[Intel-gfx] [PATCH 1/2] Add an editorconfig file for the basics of igt style.

2017-06-07 Thread Eric Anholt
This makes my emacs default to consistent indentation for the project. Signed-off-by: Eric Anholt --- .editorconfig | 9 + 1 file changed, 9 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index ..bdfebacaf4cd

[Intel-gfx] [PATCH i-g-t] Make autogen.sh set the default format.subjectPrefix

2017-06-07 Thread Eric Anholt
CONTRIBUTING requests that people do this, but it's a lot easier if we just set it up by default for them. Signed-off-by: Eric Anholt --- I missed this step on my previous two patches, so let's just prevent that in the future. :( autogen.sh | 3 +++ 1 file changed, 3 insertion

[Intel-gfx] [PATCH v2 6/6 squash] drm/vc4: Fixup for the drm core async changes.

2017-06-15 Thread Eric Anholt
With this squashed in, the vc4 patch is: Reviewed-by: Eric Anholt Signed-off-by: Eric Anholt --- Without this, the cursor never moved :) drivers/gpu/drm/vc4/vc4_plane.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c

[Intel-gfx] [PATCH i-g-t] vc4: Test setting labels of BOs.

2017-06-22 Thread Eric Anholt
So far this test is basically making sure that we throw appropriate errors, and don't oops the kernel with silly inputs. Signed-off-by: Eric Anholt --- tests/Makefile.am | 2 ++ tests/Makefile.sources | 1 + tests/vc4_label_bo.c

Re: [Intel-gfx] [PATCH i-g-t] CONTRIBUTING: formalize review rules

2017-07-18 Thread Eric Anholt
ng list first. > + Testcase should preferrably be cross-reviewed by the same people who write > and > + review the kernel feature itself. Thanks for considering my case here :) Acked-by: Eric Anholt signature.asc Description: PGP signature ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH i-g-t 2/2] igt: Add VC4 purgeable BO tests

2017-09-27 Thread Eric Anholt
Boris Brezillon writes: > On Wed, 27 Sep 2017 13:50:30 +0100 > Chris Wilson wrote: > >> Quoting Boris Brezillon (2017-09-27 13:41:41) >> > Hi Chris, >> > >> > On Wed, 27 Sep 2017 13:07:28 +0100 >> > Chris Wilson wrote: >> > >> > > Quoting Boris Brezillon (2017-09-27 12:51:18) >> > > > +st

Re: [Intel-gfx] [PATCH i-g-t 2/2] igt: Add VC4 purgeable BO tests

2017-09-27 Thread Eric Anholt
Boris Brezillon writes: > Signed-off-by: Boris Brezillon Another test we should have: Queue up a big rendering job (Copy a 2048x2048@32bpp BO?), mark the source purgeable, force the purge, wait for rendering, make sure we correctly rendered, and maybe have some sanity-checking of purgeable stat

[Intel-gfx] [PATCH i-g-t 3/3] meson: Disable the intel overlay on non-x86 builds.

2017-09-27 Thread Eric Anholt
It's got calls to rmb/wmb that end up not linking successfully. Signed-off-by: Eric Anholt --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 1cc501f3062f..7a09228292fd 100644 --- a/meson.build +++ b/meson.build @@ -

[Intel-gfx] [PATCH i-g-t 2/3] meson: Fix build of igt_x86-using tests on non-x86 platforms.

2017-09-27 Thread Eric Anholt
Just stub out the features return value, and return an empty string. Signed-off-by: Eric Anholt --- lib/igt_x86.h | 12 lib/meson.build | 5 - 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/igt_x86.h b/lib/igt_x86.h index 589d224bec62..d6dcfa108331 100644

[Intel-gfx] [PATCH i-g-t 1/3] Fix rlim_cur compiler warnings when building on ARM.

2017-09-27 Thread Eric Anholt
Signed-off-by: Eric Anholt --- benchmarks/prime_lookup.c | 2 +- tests/gem_exec_reuse.c| 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmarks/prime_lookup.c b/benchmarks/prime_lookup.c index e995b766a173..d6c397299fcb 100644 --- a/benchmarks/prime_lookup.c +++ b

Re: [Intel-gfx] [PATCH 6/7] drm/drivers: drop redundant drm_edid_to_eld() calls

2017-11-01 Thread Eric Anholt
Jani Nikula writes: > drm_add_edid_modes() now fills in the ELD automatically, so the calls to > drm_edid_to_eld() are redundant. Remove them. > > All the other places are obvious, but nv50 has detached > drm_edid_to_eld() from the drm_add_edid_modes() call. Nice! For vc4,

Re: [Intel-gfx] [maintainer-tools PATCH] dim: Sign commits in addition to tags

2017-11-01 Thread Eric Anholt
Sean Paul writes: > On Wed, Nov 1, 2017 at 7:12 AM, Gustavo Padovan wrote: >> 2017-10-31 Sean Paul : >> >>> On Tue, Oct 31, 2017 at 1:31 PM, Daniel Vetter wrote: >>> > On Tue, Oct 31, 2017 at 5:14 PM, Sean Paul wrote: >>> >> On Tue, Oct 31, 2017 at 4:27 AM, Jani Nikula >>> >> wrote: >>> >>> >

Re: [Intel-gfx] [PATCH] drm/edid: Don't send non-zero YQ in AVI infoframe for HDMI 1.x sinks

2017-11-08 Thread Eric Anholt
. And if > we ever encounter a HDMI 2.0+ sink with this bug that's what > we'll probably have to do. Should vc4 be doing anything special for HDMI2 sinks, if it's an HDMI1.4 source? That said, as far as vc4, this patch is Acked-by: Eric Anholt signature.asc Description: PG

Re: [Intel-gfx] [PATCH] drm/edid: Don't send non-zero YQ in AVI infoframe for HDMI 1.x sinks

2017-11-08 Thread Eric Anholt
Ville Syrjälä writes: > On Wed, Nov 08, 2017 at 12:17:28PM -0800, Eric Anholt wrote: >> Ville Syrjala writes: >> >> > From: Ville Syrjälä >> > >> > Apparently some sinks look at the YQ bits even when receiving RGB, >> > and they get somehow

Re: [Intel-gfx] [PATCH] drm/edid: Don't send non-zero YQ in AVI infoframe for HDMI 1.x sinks

2017-11-09 Thread Eric Anholt
Daniel Vetter writes: > On Wed, Nov 08, 2017 at 02:21:08PM -0800, Eric Anholt wrote: >> Ville Syrjälä writes: >> >> > On Wed, Nov 08, 2017 at 12:17:28PM -0800, Eric Anholt wrote: >> >> Ville Syrjala writes: >> >> >> >> > From: V

[Intel-gfx] [PATCH i-g-t 0/5] Import drm UAPI headers.

2017-11-10 Thread Eric Anholt
OCAL_* define hacks that have been proliferating in the tree) I started on converting i915 to not use LOCAL_*, but it's more than I'm willing to complete. Eric Anholt (5): headers: Import drm-next uapi headers. tests: Convert to using the imported drm-uapi headers. tests: Re

[Intel-gfx] [PATCH i-g-t 3/5] tests: Remove libdrm_vc4 dependency.

2017-11-10 Thread Eric Anholt
The autotools build retains the configure.ac option, while meson folds vc4 into the default build since we don't have any meson_options.txt to control parts of the build. Signed-off-by: Eric Anholt --- configure.ac | 12 lib/Makefile.am | 2 +- lib/meson.build

[Intel-gfx] [PATCH i-g-t 5/5] lib: Use drm-uapi/i915_drm.h instead of local defines.

2017-11-10 Thread Eric Anholt
The MMAP_V2 is replaced by just using MMAP, since the official header has the updated struct. The gem_create_v2 and gem_get_aperture are left as is, because they seem to not be reflected in the UABI header! Signed-off-by: Eric Anholt --- benchmarks/Makefile.am | 6 - benchmarks/gem_wsim.c

[Intel-gfx] [PATCH i-g-t 4/5] lib: Use the imported uapi's addfb2 defines.

2017-11-10 Thread Eric Anholt
Signed-off-by: Eric Anholt --- lib/ioctl_wrappers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 7ad2b7b007c4..d98e7660a96f 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -1663,7 +1663,7 @@ void

[Intel-gfx] [PATCH i-g-t 2/5] tests: Convert to using the imported drm-uapi headers.

2017-11-10 Thread Eric Anholt
Tested by dropping garbage in my libdrm's headers and rebuilding. Signed-off-by: Eric Anholt --- lib/Makefile.am | 5 - meson.build | 2 +- tests/Makefile.am | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Makefile.am b/lib/Makefile.am index 30ddb92

Re: [Intel-gfx] [PATCH i-g-t 2/5] tests: Convert to using the imported drm-uapi headers.

2017-11-13 Thread Eric Anholt
Lionel Landwerlin writes: > On 10/11/17 21:26, Eric Anholt wrote: >> Tested by dropping garbage in my libdrm's headers and rebuilding. >> >> Signed-off-by: Eric Anholt >> --- >> lib/Makefile.am | 5 - >> meson.build | 2 +- >>

  1   2   3   4   5   6   7   >