[Intel-gfx] [PULL] drm-intel-fixes

2023-06-08 Thread Maarten Lankhorst
Hi Dave, Daniel, drm-misc-fixes for v6.4-rc6. Seems to be mostly small fixes, just a few more for ivpu. Cheers, ~Maarten drm-misc-fixes-2023-06-08: drm-misc-fixes for v6.4-rc6: - resume and modeset fixes for ast. - Fill in fb-helper vars more correctly. - Assorted ivpu fixes. - lima context

[PULL] drm-intel-fixes

2023-06-08 Thread Maarten Lankhorst
Hi Dave, Daniel, drm-misc-fixes for v6.4-rc6. Seems to be mostly small fixes, just a few more for ivpu. Cheers, ~Maarten drm-misc-fixes-2023-06-08: drm-misc-fixes for v6.4-rc6: - resume and modeset fixes for ast. - Fill in fb-helper vars more correctly. - Assorted ivpu fixes. - lima context

[PULL] drm-intel-fixes

2023-06-08 Thread Maarten Lankhorst
Hi Dave, Daniel, drm-misc-fixes for v6.4-rc6. Seems to be mostly small fixes, just a few more for ivpu. Cheers, ~Maarten drm-misc-fixes-2023-06-08: drm-misc-fixes for v6.4-rc6: - resume and modeset fixes for ast. - Fill in fb-helper vars more correctly. - Assorted ivpu fixes. - lima context

[Intel-gfx] [PATCH, rfc] drm/i915: Swap ggtt_vma during legacy cursor update

2023-06-07 Thread Maarten Lankhorst
Curious what people think of the approach. No need for all the heavy handed locking, single swap is enough. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/display/intel_cursor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display

Re: [Intel-gfx] [RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-11 Thread Maarten Lankhorst
Hey, On 2023-05-11 12:14, Tvrtko Ursulin wrote: > > On 10/05/2023 19:46, Tejun Heo wrote: >> Hello, >> >> On Wed, May 10, 2023 at 04:59:01PM +0200, Maarten Lankhorst wrote: >>> The misc controller is not granular enough. A single computer may have any >&

Re: [Intel-gfx] [RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-11 Thread Maarten Lankhorst
Hey, On 2023-05-11 12:14, Tvrtko Ursulin wrote: > > On 10/05/2023 19:46, Tejun Heo wrote: >> Hello, >> >> On Wed, May 10, 2023 at 04:59:01PM +0200, Maarten Lankhorst wrote: >>> The misc controller is not granular enough. A single computer may have any >&

Re: [Intel-gfx] [RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-11 Thread Maarten Lankhorst
Hey, On 2023-05-11 12:14, Tvrtko Ursulin wrote: > > On 10/05/2023 19:46, Tejun Heo wrote: >> Hello, >> >> On Wed, May 10, 2023 at 04:59:01PM +0200, Maarten Lankhorst wrote: >>> The misc controller is not granular enough. A single computer may have any >&

[PULL] drm-misc-fixes

2023-05-11 Thread Maarten Lankhorst
t; drm-fixes. > > Am 26.04.23 um 07:59 schrieb Maarten Lankhorst: >> Hi Dave, Daniel, >> >> drm-misc-fixes pull request for rc1. drm-misc-next-fixes coming up.. next >> >> ~Maarten >> >> drm-misc-fixes-2023-04-26: >> drm-misc-fixes for v6.4

[Intel-gfx] [PULL] drm-misc-fixes

2023-05-11 Thread Maarten Lankhorst
t; drm-fixes. > > Am 26.04.23 um 07:59 schrieb Maarten Lankhorst: >> Hi Dave, Daniel, >> >> drm-misc-fixes pull request for rc1. drm-misc-next-fixes coming up.. next >> >> ~Maarten >> >> drm-misc-fixes-2023-04-26: >> drm-misc-fixes for v6.4

[PULL] drm-misc-fixes

2023-05-11 Thread Maarten Lankhorst
t; drm-fixes. > > Am 26.04.23 um 07:59 schrieb Maarten Lankhorst: >> Hi Dave, Daniel, >> >> drm-misc-fixes pull request for rc1. drm-misc-next-fixes coming up.. next >> >> ~Maarten >> >> drm-misc-fixes-2023-04-26: >> drm-misc-fixes for v6.4

Re: [RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-11 Thread Maarten Lankhorst
Hey, On 2023-05-10 20:46, Tejun Heo wrote: > Hello, > > On Wed, May 10, 2023 at 04:59:01PM +0200, Maarten Lankhorst wrote: >> The misc controller is not granular enough. A single computer may have any >> number of >> graphics cards, some of them with multiple regi

Re: [RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-11 Thread Maarten Lankhorst
Hey, On 2023-05-10 20:46, Tejun Heo wrote: > Hello, > > On Wed, May 10, 2023 at 04:59:01PM +0200, Maarten Lankhorst wrote: >> The misc controller is not granular enough. A single computer may have any >> number of >> graphics cards, some of them with multiple regi

Re: [Intel-gfx] [RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-11 Thread Maarten Lankhorst
Hey, On 2023-05-10 20:46, Tejun Heo wrote: > Hello, > > On Wed, May 10, 2023 at 04:59:01PM +0200, Maarten Lankhorst wrote: >> The misc controller is not granular enough. A single computer may have any >> number of >> graphics cards, some of them with multiple regi

Re: [Intel-gfx] [RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-10 Thread Maarten Lankhorst
Hey, On 2023-05-05 21:50, Tejun Heo wrote: Hello, On Wed, May 03, 2023 at 10:34:56AM +0200, Maarten Lankhorst wrote: RFC as I'm looking for comments. For long running compute, it can be beneficial to partition the GPU memory between cgroups, so each cgroup can use its maximum amount

Re: [RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-10 Thread Maarten Lankhorst
Hey, On 2023-05-05 21:50, Tejun Heo wrote: Hello, On Wed, May 03, 2023 at 10:34:56AM +0200, Maarten Lankhorst wrote: RFC as I'm looking for comments. For long running compute, it can be beneficial to partition the GPU memory between cgroups, so each cgroup can use its maximum amount

Re: [RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-10 Thread Maarten Lankhorst
Hey, On 2023-05-05 21:50, Tejun Heo wrote: Hello, On Wed, May 03, 2023 at 10:34:56AM +0200, Maarten Lankhorst wrote: RFC as I'm looking for comments. For long running compute, it can be beneficial to partition the GPU memory between cgroups, so each cgroup can use its maximum amount

Re: [Intel-gfx] [RFC PATCH 2/4] drm/cgroup: Add memory accounting to DRM cgroup

2023-05-05 Thread Maarten Lankhorst
I just now noticed the other comments. Wiill address them. On 2023-05-03 17:31, Tvrtko Ursulin wrote: On 03/05/2023 09:34, Maarten Lankhorst wrote: Based roughly on the rdma and misc cgroup controllers, with a lot of the accounting code borrowed from rdma. The interface is simple: - populate

Re: [Intel-gfx] [RFC PATCH 2/4] drm/cgroup: Add memory accounting to DRM cgroup

2023-05-05 Thread Maarten Lankhorst
I just now noticed the other comments. Wiill address them. On 2023-05-03 17:31, Tvrtko Ursulin wrote: On 03/05/2023 09:34, Maarten Lankhorst wrote: Based roughly on the rdma and misc cgroup controllers, with a lot of the accounting code borrowed from rdma. The interface is simple: - populate

Re: [Intel-gfx] [RFC PATCH 2/4] drm/cgroup: Add memory accounting to DRM cgroup

2023-05-05 Thread Maarten Lankhorst
I just now noticed the other comments. Wiill address them. On 2023-05-03 17:31, Tvrtko Ursulin wrote: On 03/05/2023 09:34, Maarten Lankhorst wrote: Based roughly on the rdma and misc cgroup controllers, with a lot of the accounting code borrowed from rdma. The interface is simple: - populate

Re: [Intel-gfx] [RFC PATCH 2/4] drm/cgroup: Add memory accounting to DRM cgroup

2023-05-03 Thread Maarten Lankhorst
On 2023-05-03 17:31, Tvrtko Ursulin wrote: On 03/05/2023 09:34, Maarten Lankhorst wrote: Based roughly on the rdma and misc cgroup controllers, with a lot of the accounting code borrowed from rdma. The interface is simple: - populate drmcgroup_device->regions[..] name and size for e

Re: [Intel-gfx] [RFC PATCH 2/4] drm/cgroup: Add memory accounting to DRM cgroup

2023-05-03 Thread Maarten Lankhorst
On 2023-05-03 17:31, Tvrtko Ursulin wrote: On 03/05/2023 09:34, Maarten Lankhorst wrote: Based roughly on the rdma and misc cgroup controllers, with a lot of the accounting code borrowed from rdma. The interface is simple: - populate drmcgroup_device->regions[..] name and size for e

Re: [Intel-gfx] [RFC PATCH 2/4] drm/cgroup: Add memory accounting to DRM cgroup

2023-05-03 Thread Maarten Lankhorst
On 2023-05-03 17:31, Tvrtko Ursulin wrote: On 03/05/2023 09:34, Maarten Lankhorst wrote: Based roughly on the rdma and misc cgroup controllers, with a lot of the accounting code borrowed from rdma. The interface is simple: - populate drmcgroup_device->regions[..] name and size for e

Re: [Intel-xe] [RFC PATCH 3/4] drm/ttm: Handle -EAGAIN in ttm_resource_alloc as -ENOSPC.

2023-05-03 Thread Maarten Lankhorst
On 2023-05-03 11:11, Thomas Hellström wrote: Hi, Maarten On 5/3/23 10:34, Maarten Lankhorst wrote: This allows the drm cgroup controller to return no space is available.. XXX: This is a hopeless simplification that changes behavior, and returns -ENOSPC even if we could evict ourselves from

Re: [Intel-xe] [RFC PATCH 3/4] drm/ttm: Handle -EAGAIN in ttm_resource_alloc as -ENOSPC.

2023-05-03 Thread Maarten Lankhorst
On 2023-05-03 11:11, Thomas Hellström wrote: Hi, Maarten On 5/3/23 10:34, Maarten Lankhorst wrote: This allows the drm cgroup controller to return no space is available.. XXX: This is a hopeless simplification that changes behavior, and returns -ENOSPC even if we could evict ourselves from

Re: [Intel-gfx] [Intel-xe] [RFC PATCH 3/4] drm/ttm: Handle -EAGAIN in ttm_resource_alloc as -ENOSPC.

2023-05-03 Thread Maarten Lankhorst
On 2023-05-03 11:11, Thomas Hellström wrote: Hi, Maarten On 5/3/23 10:34, Maarten Lankhorst wrote: This allows the drm cgroup controller to return no space is available.. XXX: This is a hopeless simplification that changes behavior, and returns -ENOSPC even if we could evict ourselves from

[RFC PATCH 2/4] drm/cgroup: Add memory accounting to DRM cgroup

2023-05-03 Thread Maarten Lankhorst
ent amount of allocated memory used by this cgroup. drm.events shows the amount of time max memory was reached. Signed-off-by: Maarten Lankhorst --- Documentation/admin-guide/cgroup-v2.rst | 46 ++ Documentation/gpu/drm-compute.rst | 54 +++ include/linux/cgroup_drm.h |

[RFC PATCH 4/4] drm/xe: Add support for the drm cgroup

2023-05-03 Thread Maarten Lankhorst
Add some code to implement basic support for the vram0, vram1 and stolen memory regions. I fear the try_charge code should probably be done inside TTM. This code should interact with the shrinker, but for a simple RFC it's good enough. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe

[RFC PATCH 2/4] drm/cgroup: Add memory accounting to DRM cgroup

2023-05-03 Thread Maarten Lankhorst
ent amount of allocated memory used by this cgroup. drm.events shows the amount of time max memory was reached. Signed-off-by: Maarten Lankhorst --- Documentation/admin-guide/cgroup-v2.rst | 46 ++ Documentation/gpu/drm-compute.rst | 54 +++ include/linux/cgroup_drm.h |

[RFC PATCH 4/4] drm/xe: Add support for the drm cgroup

2023-05-03 Thread Maarten Lankhorst
Add some code to implement basic support for the vram0, vram1 and stolen memory regions. I fear the try_charge code should probably be done inside TTM. This code should interact with the shrinker, but for a simple RFC it's good enough. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe

[RFC PATCH 3/4] drm/ttm: Handle -EAGAIN in ttm_resource_alloc as -ENOSPC.

2023-05-03 Thread Maarten Lankhorst
the current cgroup or its parents. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index bd5dae4d1624..e057d5d8f09a 100644 --- a/drivers/gpu/drm/ttm

[Intel-gfx] [RFC PATCH 4/4] drm/xe: Add support for the drm cgroup

2023-05-03 Thread Maarten Lankhorst
Add some code to implement basic support for the vram0, vram1 and stolen memory regions. I fear the try_charge code should probably be done inside TTM. This code should interact with the shrinker, but for a simple RFC it's good enough. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe

[Intel-gfx] [RFC PATCH 3/4] drm/ttm: Handle -EAGAIN in ttm_resource_alloc as -ENOSPC.

2023-05-03 Thread Maarten Lankhorst
the current cgroup or its parents. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index bd5dae4d1624..e057d5d8f09a 100644 --- a/drivers/gpu/drm/ttm

[RFC PATCH 3/4] drm/ttm: Handle -EAGAIN in ttm_resource_alloc as -ENOSPC.

2023-05-03 Thread Maarten Lankhorst
the current cgroup or its parents. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index bd5dae4d1624..e057d5d8f09a 100644 --- a/drivers/gpu/drm/ttm

[Intel-gfx] [RFC PATCH 2/4] drm/cgroup: Add memory accounting to DRM cgroup

2023-05-03 Thread Maarten Lankhorst
ent amount of allocated memory used by this cgroup. drm.events shows the amount of time max memory was reached. Signed-off-by: Maarten Lankhorst --- Documentation/admin-guide/cgroup-v2.rst | 46 ++ Documentation/gpu/drm-compute.rst | 54 +++ include/linux/cgroup_drm.h |

[RFC PATCH 1/4] cgroup: Add the DRM cgroup controller

2023-05-03 Thread Maarten Lankhorst
From: Tvrtko Ursulin Skeleton controller without any functionality. Signed-off-by: Tvrtko Ursulin Signed-off-by: Maarten Lankhorst --- include/linux/cgroup_drm.h| 9 ++ include/linux/cgroup_subsys.h | 4 +++ init/Kconfig | 7 kernel/cgroup/Makefile

[Intel-gfx] [RFC PATCH 1/4] cgroup: Add the DRM cgroup controller

2023-05-03 Thread Maarten Lankhorst
From: Tvrtko Ursulin Skeleton controller without any functionality. Signed-off-by: Tvrtko Ursulin Signed-off-by: Maarten Lankhorst --- include/linux/cgroup_drm.h| 9 ++ include/linux/cgroup_subsys.h | 4 +++ init/Kconfig | 7 kernel/cgroup/Makefile

[RFC PATCH 1/4] cgroup: Add the DRM cgroup controller

2023-05-03 Thread Maarten Lankhorst
From: Tvrtko Ursulin Skeleton controller without any functionality. Signed-off-by: Tvrtko Ursulin Signed-off-by: Maarten Lankhorst --- include/linux/cgroup_drm.h| 9 ++ include/linux/cgroup_subsys.h | 4 +++ init/Kconfig | 7 kernel/cgroup/Makefile

[RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-03 Thread Maarten Lankhorst
accounting, so I only ended up keeping the base patch. Xe is not upstream yet, so the driver specific patch will only apply on https://gitlab.freedesktop.org/drm/xe/kernel Maarten Lankhorst (3): drm/cgroup: Add memory accounting to DRM cgroup drm/ttm: Handle -EAGAIN in ttm_resource_alloc as -ENOSPC

[RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-03 Thread Maarten Lankhorst
accounting, so I only ended up keeping the base patch. Xe is not upstream yet, so the driver specific patch will only apply on https://gitlab.freedesktop.org/drm/xe/kernel Maarten Lankhorst (3): drm/cgroup: Add memory accounting to DRM cgroup drm/ttm: Handle -EAGAIN in ttm_resource_alloc as -ENOSPC

[Intel-gfx] [RFC PATCH 0/4] Add support for DRM cgroup memory accounting.

2023-05-03 Thread Maarten Lankhorst
accounting, so I only ended up keeping the base patch. Xe is not upstream yet, so the driver specific patch will only apply on https://gitlab.freedesktop.org/drm/xe/kernel Maarten Lankhorst (3): drm/cgroup: Add memory accounting to DRM cgroup drm/ttm: Handle -EAGAIN in ttm_resource_alloc as -ENOSPC

[Intel-gfx] [PULL] drm-misc-next-fixes

2023-04-26 Thread Maarten Lankhorst
Hey Dave, Daniel, Complementary pull request for drm-misc-next-fixes! ~Maarten drm-misc-next-fixes-2023-04-26: drm-misc-next-fixes for v6.4-rc1: - Revert uAPI from accel/qaic. - Fix TTM build on archs where PMD_SHIFT is not constant. - Improve error handling in nt35950. - Fix double

[PULL] drm-misc-next-fixes

2023-04-26 Thread Maarten Lankhorst
Hey Dave, Daniel, Complementary pull request for drm-misc-next-fixes! ~Maarten drm-misc-next-fixes-2023-04-26: drm-misc-next-fixes for v6.4-rc1: - Revert uAPI from accel/qaic. - Fix TTM build on archs where PMD_SHIFT is not constant. - Improve error handling in nt35950. - Fix double

[PULL] drm-misc-next-fixes

2023-04-26 Thread Maarten Lankhorst
Hey Dave, Daniel, Complementary pull request for drm-misc-next-fixes! ~Maarten drm-misc-next-fixes-2023-04-26: drm-misc-next-fixes for v6.4-rc1: - Revert uAPI from accel/qaic. - Fix TTM build on archs where PMD_SHIFT is not constant. - Improve error handling in nt35950. - Fix double

[PULL] drm-misc-fixes

2023-04-26 Thread Maarten Lankhorst
Hi Dave, Daniel, drm-misc-fixes pull request for rc1. drm-misc-next-fixes coming up.. next ~Maarten drm-misc-fixes-2023-04-26: drm-misc-fixes for v6.4-rc1: - Fix DSC macros. - Fix VESA format for simplefb. - Prohibit potential out-of-bounds access in generic fbdev emulation. - Improve AST2500+

[Intel-gfx] [PULL] drm-misc-fixes

2023-04-25 Thread Maarten Lankhorst
Hi Dave, Daniel, drm-misc-fixes pull request for rc1. drm-misc-next-fixes coming up.. next ~Maarten drm-misc-fixes-2023-04-26: drm-misc-fixes for v6.4-rc1: - Fix DSC macros. - Fix VESA format for simplefb. - Prohibit potential out-of-bounds access in generic fbdev emulation. - Improve AST2500+

[PULL] drm-misc-fixes

2023-04-25 Thread Maarten Lankhorst
Hi Dave, Daniel, drm-misc-fixes pull request for rc1. drm-misc-next-fixes coming up.. next ~Maarten drm-misc-fixes-2023-04-26: drm-misc-fixes for v6.4-rc1: - Fix DSC macros. - Fix VESA format for simplefb. - Prohibit potential out-of-bounds access in generic fbdev emulation. - Improve AST2500+

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

2023-04-12 Thread Maarten Lankhorst
Good afternoon Daniel, Dave, One last pull request for drm-misc-next. Small one, so easy to merge. As a result also more likely to eat your computer alive. ;) Cheers, ~Maarten drm-misc-next-2023-04-12: drm-misc-next for v6.4-rc1: Cross-subsystem Changes: - Convert MIPI DSIM bridge to

[PULL] drm-misc-next

2023-04-12 Thread Maarten Lankhorst
Good afternoon Daniel, Dave, One last pull request for drm-misc-next. Small one, so easy to merge. As a result also more likely to eat your computer alive. ;) Cheers, ~Maarten drm-misc-next-2023-04-12: drm-misc-next for v6.4-rc1: Cross-subsystem Changes: - Convert MIPI DSIM bridge to

[PULL] drm-misc-next

2023-04-12 Thread Maarten Lankhorst
Good afternoon Daniel, Dave, One last pull request for drm-misc-next. Small one, so easy to merge. As a result also more likely to eat your computer alive. ;) Cheers, ~Maarten drm-misc-next-2023-04-12: drm-misc-next for v6.4-rc1: Cross-subsystem Changes: - Convert MIPI DSIM bridge to

Re: [PATCH] fbmem: Reject FB_ACTIVATE_KD_TEXT from userspace

2023-04-11 Thread Maarten Lankhorst
Zimmermann Cc: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: # v5.7+ Cc: Bartlomiej Zolnierkiewicz Cc: Geert Uytterhoeven Cc: Nathan Chancellor Cc: Qiujun Huang Cc: Peter Rosin Cc: linux-fb...@vger.kernel.o

Re: [Intel-gfx] [PATCH] fbmem: Reject FB_ACTIVATE_KD_TEXT from userspace

2023-04-11 Thread Maarten Lankhorst
Zimmermann Cc: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org Cc: # v5.7+ Cc: Bartlomiej Zolnierkiewicz Cc: Geert Uytterhoeven Cc: Nathan Chancellor Cc: Qiujun Huang Cc: Peter Rosin Cc: linux-fb...@vger.kernel.o

[Intel-gfx] [PULL] drm-intel-gt-next

2023-04-06 Thread Maarten Lankhorst
Hi Dave, Daniel, Pull request to avoid backmerges. ;) Cheers, ~Maarten drm-misc-next-2023-04-06: drm-misc-next for v6.4-rc1: UAPI Changes: Cross-subsystem Changes: - Document port and rotation dt bindings better. - For panel timing DT bindings, document that vsync and hsync are first, rather

[PULL] drm-intel-gt-next

2023-04-06 Thread Maarten Lankhorst
Hi Dave, Daniel, Pull request to avoid backmerges. ;) Cheers, ~Maarten drm-misc-next-2023-04-06: drm-misc-next for v6.4-rc1: UAPI Changes: Cross-subsystem Changes: - Document port and rotation dt bindings better. - For panel timing DT bindings, document that vsync and hsync are first, rather

[PULL] drm-intel-gt-next

2023-04-06 Thread Maarten Lankhorst
Hi Dave, Daniel, Pull request to avoid backmerges. ;) Cheers, ~Maarten drm-misc-next-2023-04-06: drm-misc-next for v6.4-rc1: UAPI Changes: Cross-subsystem Changes: - Document port and rotation dt bindings better. - For panel timing DT bindings, document that vsync and hsync are first, rather

Re: [PATCH] drm/doc/rfc: Introduce the merge plan for the Xe driver.

2023-04-06 Thread Maarten Lankhorst
: Dave Airlie Cc: Daniel Vetter Cc: Oded Gabbay Signed-off-by: Rodrigo Vivi Signed-off-by: Francois Dugast Signed-off-by: Luis Strano Signed-off-by: Matthew Brost Signed-off-by: Thomas Hellström Signed-off-by: Maarten Lankhorst --- Documentation/gpu/rfc/index.rst | 4 + Documentation/gpu

Re: [Intel-gfx] [Intel-xe] [PATCH 3/6] drm/i915: Fix comparison in intel_dram.

2023-04-04 Thread Maarten Lankhorst
Hey, On 2023-04-03 22:35, Matt Roper wrote: On Fri, Mar 31, 2023 at 12:24:16PM +0200, Maarten Lankhorst wrote: Gen13 should probably be the same as gen12, not gen11. Signed-off-by: Maarten Lankhorst Cc: intel-gfx@lists.freedesktop.org --- drivers/gpu/drm/i915/soc/intel_dram.c | 2 +- 1

[PULL] drm-misc-next

2023-03-31 Thread Maarten Lankhorst
: boe,tv101wum-nl6: document rotation Maarten Lankhorst (1): Merge remote-tracking branch 'drm/drm-next' into drm-misc-next Pin-yen Lin (3): drm/bridge: ps8640: Skip redundant bridge enable drm/bridge: ps8640: Add a cache for EDID drm/bridge: ps8640: Return NULL immediately

[PULL] drm-misc-next

2023-03-31 Thread Maarten Lankhorst
: boe,tv101wum-nl6: document rotation Maarten Lankhorst (1): Merge remote-tracking branch 'drm/drm-next' into drm-misc-next Pin-yen Lin (3): drm/bridge: ps8640: Skip redundant bridge enable drm/bridge: ps8640: Add a cache for EDID drm/bridge: ps8640: Return NULL immediately

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

2023-03-31 Thread Maarten Lankhorst
: boe,tv101wum-nl6: document rotation Maarten Lankhorst (1): Merge remote-tracking branch 'drm/drm-next' into drm-misc-next Pin-yen Lin (3): drm/bridge: ps8640: Skip redundant bridge enable drm/bridge: ps8640: Add a cache for EDID drm/bridge: ps8640: Return NULL immediately

[Intel-gfx] [PATCH 3/6] drm/i915: Fix comparison in intel_dram.

2023-03-31 Thread Maarten Lankhorst
Gen13 should probably be the same as gen12, not gen11. Signed-off-by: Maarten Lankhorst Cc: intel-gfx@lists.freedesktop.org --- drivers/gpu/drm/i915/soc/intel_dram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/soc/intel_dram.c b/drivers/gpu/drm/i915

Re: [PATCH v3 1/7] drm/dp_helper: Add helper to check DSC support with given o/p format

2023-03-24 Thread Maarten Lankhorst
ack On 2023-03-20 09:59, Jani Nikula wrote: Thomas, Maxime, Maarten, ack for merging this one via drm-intel? BR, Jani. On Thu, 09 Mar 2023, Suraj Kandpal wrote: From: Ankit Nautiyal Add helper to check if the DP sink supports DSC with the given o/p format. v2: Add documentation for the

Re: [Intel-gfx] [PATCH v3 1/7] drm/dp_helper: Add helper to check DSC support with given o/p format

2023-03-24 Thread Maarten Lankhorst
ack On 2023-03-20 09:59, Jani Nikula wrote: Thomas, Maxime, Maarten, ack for merging this one via drm-intel? BR, Jani. On Thu, 09 Mar 2023, Suraj Kandpal wrote: From: Ankit Nautiyal Add helper to check if the DP sink supports DSC with the given o/p format. v2: Add documentation for the

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

2023-03-23 Thread Maarten Lankhorst
Hi Dave, Daniel, Lots of small commits with cleanup and fixes this time around, nothing major otherwise. Cheers, ~Maarten drm-misc-next-2023-03-23: drm-misc-next for v6.4-rc1: Core Changes: - Add unit test for xrgb to mono. - Assorted small fixes to format helper selftests. - Assorted

[PULL] drm-misc-next

2023-03-23 Thread Maarten Lankhorst
Hi Dave, Daniel, Lots of small commits with cleanup and fixes this time around, nothing major otherwise. Cheers, ~Maarten drm-misc-next-2023-03-23: drm-misc-next for v6.4-rc1: Core Changes: - Add unit test for xrgb to mono. - Assorted small fixes to format helper selftests. - Assorted

[PULL] drm-misc-next

2023-03-23 Thread Maarten Lankhorst
Hi Dave, Daniel, Lots of small commits with cleanup and fixes this time around, nothing major otherwise. Cheers, ~Maarten drm-misc-next-2023-03-23: drm-misc-next for v6.4-rc1: Core Changes: - Add unit test for xrgb to mono. - Assorted small fixes to format helper selftests. - Assorted

[PULL] drm-misc-next

2023-03-20 Thread Maarten Lankhorst
Set orientation on panel_bridge connector Maarten Lankhorst (3): drm/suballoc: Extract amdgpu_sa.c as generic suballocation helper drm/amd: Convert amdgpu to use suballocation helper. drm/radeon: Use the drm suballocation manager implementation. Matthew Auld (6): drm/i915/ttm:

[PULL] drm-misc-next

2023-03-16 Thread Maarten Lankhorst
Hi Dave, Daniel, Here's the new weekly pull request for v6.4-rc1. I've omitted the diffstat, as it was huge because v6.3-rc1 was backmerged. Cheers, ~Maarten drm-misc-next-2023-03-16: drm-misc-next for v6.4-rc1: Cross-subsystem Changes: - Add drm_bridge.h to drm_bridge maintainers. Core

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

2023-03-16 Thread Maarten Lankhorst
Hi Dave, Daniel, Here's the new weekly pull request for v6.4-rc1. I've omitted the diffstat, as it was huge because v6.3-rc1 was backmerged. Cheers, ~Maarten drm-misc-next-2023-03-16: drm-misc-next for v6.4-rc1: Cross-subsystem Changes: - Add drm_bridge.h to drm_bridge maintainers. Core

[PULL] drm-misc-next

2023-03-16 Thread Maarten Lankhorst
Hi Dave, Daniel, Here's the new weekly pull request for v6.4-rc1. I've omitted the diffstat, as it was huge because v6.3-rc1 was backmerged. Cheers, ~Maarten drm-misc-next-2023-03-16: drm-misc-next for v6.4-rc1: Cross-subsystem Changes: - Add drm_bridge.h to drm_bridge maintainers. Core

Re: [Intel-gfx] [PATCH] drm/i915/bios: Rename find_section to find_bdb_section

2023-03-15 Thread Maarten Lankhorst
Hey, Feel free to merge once CI build results are in. Should have sent it after Xe went public. :) ~Maarten On 2023-03-15 13:19, Jani Nikula wrote: From: Maarten Lankhorst This prevents a namespace collision on other archs. Signed-off-by: Maarten Lankhorst Signed-off-by: Jani Nikula

Re: [Intel-gfx] [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-09 Thread Maarten Lankhorst
On 2023-03-09 12:04, Hogander, Jouni wrote: On Mon, 2023-03-06 at 22:58 +0200, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 09:23:50PM +0100, Maarten Lankhorst wrote: Hey, On 2023-03-06 16:23, Souza, Jose wrote: On Mon, 2023-03-06 at 15:16 +0100, Maarten Lankhorst wrote: As a fallback

Re: [Intel-gfx] [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-09 Thread Maarten Lankhorst
On 2023-03-09 12:04, Hogander, Jouni wrote: On Mon, 2023-03-06 at 22:58 +0200, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 09:23:50PM +0100, Maarten Lankhorst wrote: Hey, On 2023-03-06 16:23, Souza, Jose wrote: On Mon, 2023-03-06 at 15:16 +0100, Maarten Lankhorst wrote: As a fallback

Re: [Intel-gfx] [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-08 Thread Maarten Lankhorst
Hey, On 2023-03-08 14:36, Ville Syrjälä wrote: On Wed, Mar 08, 2023 at 01:47:12PM +0100, Maarten Lankhorst wrote: On 2023-03-06 21:58, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 09:23:50PM +0100, Maarten Lankhorst wrote: Hey, On 2023-03-06 16:23, Souza, Jose wrote: On Mon, 2023-03-06

Re: [Intel-gfx] [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-08 Thread Maarten Lankhorst
Hey, On 2023-03-08 14:36, Ville Syrjälä wrote: On Wed, Mar 08, 2023 at 01:47:12PM +0100, Maarten Lankhorst wrote: On 2023-03-06 21:58, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 09:23:50PM +0100, Maarten Lankhorst wrote: Hey, On 2023-03-06 16:23, Souza, Jose wrote: On Mon, 2023-03-06

Re: [Intel-gfx] [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-08 Thread Maarten Lankhorst
On 2023-03-06 21:58, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 09:23:50PM +0100, Maarten Lankhorst wrote: Hey, On 2023-03-06 16:23, Souza, Jose wrote: On Mon, 2023-03-06 at 15:16 +0100, Maarten Lankhorst wrote: As a fallback if we decide not to merge the frontbuffer tracking, allow i915

Re: [Intel-gfx] [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-08 Thread Maarten Lankhorst
On 2023-03-06 21:58, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 09:23:50PM +0100, Maarten Lankhorst wrote: Hey, On 2023-03-06 16:23, Souza, Jose wrote: On Mon, 2023-03-06 at 15:16 +0100, Maarten Lankhorst wrote: As a fallback if we decide not to merge the frontbuffer tracking, allow i915

Re: [PATCH RFC 11/18] drm/scheduler: Clean up jobs when the scheduler is torn down

2023-03-08 Thread Maarten Lankhorst
On 2023-03-07 15:25, Asahi Lina wrote: drm_sched_fini() currently leaves any pending jobs dangling, which causes segfaults and other badness when job completion fences are signaled after the scheduler is torn down. Explicitly detach all jobs from their completion callbacks and free them. This

[PULL] drm-misc-next

2023-03-07 Thread Maarten Lankhorst
Set orientation on panel_bridge connector Maarten Lankhorst (3): drm/suballoc: Extract amdgpu_sa.c as generic suballocation helper drm/amd: Convert amdgpu to use suballocation helper. drm/radeon: Use the drm suballocation manager implementation. Matthew Auld (6): drm/i915/ttm:

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

2023-03-07 Thread Maarten Lankhorst
Set orientation on panel_bridge connector Maarten Lankhorst (3): drm/suballoc: Extract amdgpu_sa.c as generic suballocation helper drm/amd: Convert amdgpu to use suballocation helper. drm/radeon: Use the drm suballocation manager implementation. Matthew Auld (6): drm/i915/ttm:

Re: [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-06 Thread Maarten Lankhorst
Hey, On 2023-03-06 16:23, Souza, Jose wrote: On Mon, 2023-03-06 at 15:16 +0100, Maarten Lankhorst wrote: As a fallback if we decide not to merge the frontbuffer tracking, allow i915 to keep its own implementation, and do the right thing in Xe. The frontbuffer tracking for Xe is still done per

Re: [Intel-gfx] [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-06 Thread Maarten Lankhorst
Hey, On 2023-03-06 16:23, Souza, Jose wrote: On Mon, 2023-03-06 at 15:16 +0100, Maarten Lankhorst wrote: As a fallback if we decide not to merge the frontbuffer tracking, allow i915 to keep its own implementation, and do the right thing in Xe. The frontbuffer tracking for Xe is still done per

Re: [Intel-gfx] [Intel-xe] [PATCH v4 0/3] drm/helpers: Make the suballocation manager drm generic

2023-03-06 Thread Maarten Lankhorst
On 2/24/23 10:51, Thomas Hellström wrote: This series (or at least the suballocator helper) is a prerequisite for the new Xe driver. There was an unresolved issue when the series was last up for review, and that was the per allocation aligment. Last message was from Maarten Lankhorst arguing

[Intel-gfx] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-06 Thread Maarten Lankhorst
-off-by: Maarten Lankhorst --- .../gpu/drm/i915/display/intel_display_types.h | 12 drivers/gpu/drm/i915/display/intel_drrs.c | 1 + drivers/gpu/drm/i915/display/intel_fb.c | 8 +--- drivers/gpu/drm/i915/display/intel_fbdev.c | 2 +- .../gpu/drm/i915/display

[PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-06 Thread Maarten Lankhorst
-off-by: Maarten Lankhorst --- .../gpu/drm/i915/display/intel_display_types.h | 12 drivers/gpu/drm/i915/display/intel_drrs.c | 1 + drivers/gpu/drm/i915/display/intel_fb.c | 8 +--- drivers/gpu/drm/i915/display/intel_fbdev.c | 2 +- .../gpu/drm/i915/display

Re: [Intel-xe] [PATCH v4 0/3] drm/helpers: Make the suballocation manager drm generic

2023-02-27 Thread Maarten Lankhorst
On 2/24/23 10:51, Thomas Hellström wrote: This series (or at least the suballocator helper) is a prerequisite for the new Xe driver. There was an unresolved issue when the series was last up for review, and that was the per allocation aligment. Last message was from Maarten Lankhorst arguing

[Intel-gfx] [PULL] drm-misc-next-fixes

2023-02-23 Thread Maarten Lankhorst
Hi Dave and Daniel, Here's the first pull request for v6.4-rc1. Enjoy! ~Maarten drm-misc-next-2023-02-23: drm-misc-next for v6.4-rc1: First pull request to keep the delta from growing too big. UAPI Changes: - Convert rockchip bindings to YAML. - Constify kobj_type structure in dma-buf. -

[PULL] drm-misc-next-fixes

2023-02-23 Thread Maarten Lankhorst
Hi Dave and Daniel, Here's the first pull request for v6.4-rc1. Enjoy! ~Maarten drm-misc-next-2023-02-23: drm-misc-next for v6.4-rc1: First pull request to keep the delta from growing too big. UAPI Changes: - Convert rockchip bindings to YAML. - Constify kobj_type structure in dma-buf. -

[PULL] drm-misc-next-fixes

2023-02-23 Thread Maarten Lankhorst
Hi Dave and Daniel, Here's the first pull request for v6.4-rc1. Enjoy! ~Maarten drm-misc-next-2023-02-23: drm-misc-next for v6.4-rc1: First pull request to keep the delta from growing too big. UAPI Changes: - Convert rockchip bindings to YAML. - Constify kobj_type structure in dma-buf. -

Re: Question: partial transfers of DMABUFs

2023-02-15 Thread Maarten Lankhorst
On 2023-02-15 13:00, Paul Cercueil wrote: Hi Maarten, Le mercredi 15 février 2023 à 12:52 +0100, Maarten Lankhorst a écrit : Hey, On 2023-02-15 12:47, Paul Cercueil wrote: Hi Maarten, Le mercredi 15 février 2023 à 12:30 +0100, Maarten Lankhorst a écrit : Hey, On 2023-02-15 11:48, Paul

Re: Question: partial transfers of DMABUFs

2023-02-15 Thread Maarten Lankhorst
Hey, On 2023-02-15 12:47, Paul Cercueil wrote: Hi Maarten, Le mercredi 15 février 2023 à 12:30 +0100, Maarten Lankhorst a écrit : Hey, On 2023-02-15 11:48, Paul Cercueil wrote: Hi, I am working on adding support for DMABUFs in the IIO subsystem. One thing we want there, is the ability

Re: Question: partial transfers of DMABUFs

2023-02-15 Thread Maarten Lankhorst
Hey, On 2023-02-15 11:48, Paul Cercueil wrote: Hi, I am working on adding support for DMABUFs in the IIO subsystem. One thing we want there, is the ability to specify the number of bytes to transfer (while still defaulting to the DMABUF size). Since dma_buf_map_attachment() returns a

Re: RFC: dma_resv_unlock() and ww_acquire_ctx scope

2023-01-19 Thread Maarten Lankhorst
On 2023-01-19 11:24, Paul Cercueil wrote: Hi, Just a reflexion I have after an intensive (and intense) debugging session. I had the following code: int my_dma_resv_lock(struct dma_buf *dmabuf) { struct ww_acquire_ctx ctx; int ret; ww_acquire_init(, _ww_class);

[Intel-gfx] [PATCH] drm/i915: Remove i915_drm_suspend_mode

2023-01-10 Thread Maarten Lankhorst
enum i915_drm_suspend_mode suspend_mode is only used in intel_display_power, while we only care about whether we perform a s2idle. Remove it and use a simple bool. Signed-off-by: Maarten Lankhorst --- .../gpu/drm/i915/display/intel_display_power.c | 8 +++- .../gpu/drm/i915/display

[Intel-gfx] [PATCH fixed] drm/i915/display: Enable FBC for fbcon

2023-01-09 Thread Maarten Lankhorst
Remove frontbuffer invalidation code from FBC, and just use the dirtyfb helper. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/display/intel_fbdev.c | 73 +- 1 file changed, 15 insertions(+), 58 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c

[Intel-gfx] [PATCH] drm/i915/display: Enable FBC for fbcon

2023-01-09 Thread Maarten Lankhorst
Remove frontbuffer invalidation code from FBC, and just use the dirtyfb helper. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/display/intel_fbdev.c | 68 +- 1 file changed, 15 insertions(+), 53 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c

[Intel-gfx] [PATCH] drm/i915: Flush power delayed put when connector init failed

2022-12-22 Thread Maarten Lankhorst
. Signed-off-by: Maarten Lankhorst Cc: Imre Deak Cc: Jani Nikula --- This approach better? drivers/gpu/drm/i915/display/intel_dp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index bf80f296a8fd..8cf1d6ca86f4

[Intel-gfx] [PATCH] drm/i915/display: Fix a use-after-free when intel_edp_init_connector fails

2022-12-20 Thread Maarten Lankhorst
We enable the DP aux channel during probe, but may free the connector soon afterwards. Ensure the DP aux display power put is completed before everything is freed, to prevent a use-after-free in icl_aux_pw_to_phy(), called from icl_combo_phy_aux_power_well_disable. Signed-off-by: Maarten

[PULL] drm-misc-fixes

2022-12-08 Thread Maarten Lankhorst
Hey Dave, drm-misc-fixes for v6.1 final. A bit late, hopefully just in time. drm-misc-fixes-2022-12-08: drm-misc-fixes for v6.1 final?: - Fix polarity bug in bridge/ti-sn65dsi86. - Prefer 8-bit RGB fallback before any YUV mode in dw-hdmi, since some panels lie about YUV support. - Fixes

[PULL] drm-misc-fixes

2022-12-08 Thread Maarten Lankhorst
Hey Dave, drm-misc-fixes for v6.1 final. A bit late, hopefully just in time. drm-misc-fixes-2022-12-08: drm-misc-fixes for v6.1 final?: - Fix polarity bug in bridge/ti-sn65dsi86. - Prefer 8-bit RGB fallback before any YUV mode in dw-hdmi, since some panels lie about YUV support. - Fixes

[Intel-gfx] [PULL] drm-misc-fixes

2022-11-30 Thread Maarten Lankhorst
Hey Daniel and Dave, A single fix to vmwgfx mks-guest-stats ioctl. I lost my internet connection when pushing the tag, so I put together this mail manually. I hope you remember where drm-misc is hosted. :) Enjoy! Maarten Lankhorst drm-misc-fixes-2022-11-30: drm-misc-fixes for v6.1-rc8/final

<    1   2   3   4   5   6   7   8   9   10   >