[PATCH 1/2] drm/modeset: Handle tiled displays in pan_display_atomic.

2025-01-16 Thread Maarten Lankhorst
Tiled displays have a different x/y offset to begin with. Instead of attempting to remember this, just apply a delta instead. Hope this works.. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_fb_helper.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git

[PATCH 2/2] drm/client: Handle tiled displays better

2025-01-16 Thread Maarten Lankhorst
is set correctly. This has to be done as a separate pass, as the tile order may not be equal to the drm connector order. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_client_modeset.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/drm_client_modeset.c b

[PULL] drm-misc-fixes

2025-01-15 Thread Maarten Lankhorst
Hi Dave, Simona, drm-misc-fixes for v6.13. I was out last week so it's 2 weeks worth. :-) Cheers, ~Maarten drm-misc-fixes-2025-01-15: drm-misc-fixes for v6.13: - itee-it6263 error handling fix. - Fix warn when unloading v3d. - Fix W=1 build for kunit tests. - Fix backlight regression for macbo

[PULL] drm-misc-fixes

2025-01-02 Thread Maarten Lankhorst
Hi Dave, Simona, Happy newyear! Cheers, ~Maarten drm-misc-fixes-2025-01-02: drm-misc-fixes for v6.13-rc6: - Only fixes for adv7511 driver, including a use-after-free. The following changes since commit 1b684ca15f9d78f45de3cdba7e19611387e16aa7: drm/sched: Fix drm_sched_fini() docu generation (

[PULL] drm-misc-fixes

2024-12-19 Thread Maarten Lankhorst
Hi Dave, Simona, (Second?) last pull request for the year. Happy holidays! Cheers, ~Maarten drm-misc-fixes-2024-12-19: drm-misc-fixes for v6.13-rc4: - udma-buf fixes related to sealing. - dma-buf build warning fix when debugfs is not enabled. - Assorted drm/panel fixes. - Correct error return i

Re: [PATCH v2 0/7] kernel/cgroups: Add "dmem" memory accounting cgroup.

2024-12-17 Thread Maarten Lankhorst
Hey, Den 2024-12-17 kl. 19:23, skrev Tejun Heo: Hello, On Tue, Dec 17, 2024 at 06:37:22PM +0100, Maarten Lankhorst wrote: Den 2024-12-17 kl. 18:11, skrev Tejun Heo: On Tue, Dec 17, 2024 at 03:28:50PM +0100, Maarten Lankhorst wrote: Now that all patches look good, what is needed to merge the

Re: [PATCH v2 0/7] kernel/cgroups: Add "dmem" memory accounting cgroup.

2024-12-17 Thread Maarten Lankhorst
Den 2024-12-17 kl. 18:11, skrev Tejun Heo: On Tue, Dec 17, 2024 at 03:28:50PM +0100, Maarten Lankhorst wrote: Now that all patches look good, what is needed to merge the series? Without patch 6/7 as it is a hack for testing. There were some questions raised about device naming. One thing

Re: [PATCH v2 0/7] kernel/cgroups: Add "dmem" memory accounting cgroup.

2024-12-17 Thread Maarten Lankhorst
t-dev/2024-December/083345.html Cheers, ~Maarten Den 2024-12-17 kl. 08:46, skrev Maxime Ripard: On Fri, Dec 13, 2024 at 05:06:05PM +0100, Maarten Lankhorst wrote: Hey, Den 2024-12-13 kl. 16:21, skrev Maxime Ripard: On Fri, Dec 13, 2024 at 03:53:13PM +0100, Maarten Lankhorst wrote: Den 20

Re: [PATCH v2 0/7] kernel/cgroups: Add "dmem" memory accounting cgroup.

2024-12-13 Thread Maarten Lankhorst
Hey, Den 2024-12-13 kl. 16:21, skrev Maxime Ripard: On Fri, Dec 13, 2024 at 03:53:13PM +0100, Maarten Lankhorst wrote: Den 2024-12-13 kl. 14:03, skrev Maxime Ripard: Hi, Thanks for the new update! On Wed, Dec 04, 2024 at 02:44:00PM +0100, Maarten Lankhorst wrote: New update. Instead of

Re: [PATCH v2 0/7] kernel/cgroups: Add "dmem" memory accounting cgroup.

2024-12-13 Thread Maarten Lankhorst
Den 2024-12-13 kl. 14:03, skrev Maxime Ripard: Hi, Thanks for the new update! On Wed, Dec 04, 2024 at 02:44:00PM +0100, Maarten Lankhorst wrote: New update. Instead of calling it the 'dev' cgroup, it's now the 'dmem' cgroup. Because it only deals with memory r

Re: [PATCH v2 0/7] kernel/cgroups: Add "dmem" memory accounting cgroup.

2024-12-13 Thread Maarten Lankhorst
Hey, Den 2024-12-13 kl. 14:07, skrev Maxime Ripard: On Sun, Dec 08, 2024 at 01:15:34PM +0100, Friedrich Vock wrote: Hi, On 04.12.24 14:44, Maarten Lankhorst wrote: Because it only deals with memory regions, the UAPI has been updated to use dmem.min/low/max/current, and to make the API

[PULL] drm-misc-fixes

2024-12-05 Thread Maarten Lankhorst
Hi Dave, Simona, Filled with pepernoten, still had to send a drm-misc-fixes pull request. May contain DP-MST fixes with traces of v3d. :-) Cheers, ~Maarten drm-misc-fixes-2024-12-05: drm-misc-fixes v6.13-rc2: - v3d performance counter fix. - A lot of DP-MST related fixes. The following changes s

Re: [PATCH v2.1 1/1] kernel/cgroup: Add "dmem" memory accounting cgroup

2024-12-05 Thread Maarten Lankhorst
, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Maarten-Lankhorst/kernel-cgroup-Add-dmem-memory-accounting-cgroup/20241204-233207 base: https://git.kernel.org/pub/scm/li

[PATCH v2 3/7] drm/ttm: Handle cgroup based eviction in TTM

2024-12-04 Thread Maarten Lankhorst
: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/tests/ttm_bo_test.c | 18 +++ .../gpu/drm/ttm/tests/ttm_bo_validate_test.c | 4 +- drivers/gpu/drm/ttm/tests/ttm_resource_test.c | 2 +- drivers/gpu/drm/ttm/ttm_bo.c

[PATCH v2.1 1/1] kernel/cgroup: Add "dmem" memory accounting cgroup

2024-12-04 Thread Maarten Lankhorst
ty You need to echo +dmem to cgroup.subtree_control, and then you can partition device memory. Co-developed-by: Friedrich Vock Signed-off-by: Friedrich Vock Co-developed-by: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- I completely messed up the !CONFIG_CGROUP_DM

[PATCH v2 7/7] drm/gem: Add cgroup memory accounting for VRAM helper.

2024-12-04 Thread Maarten Lankhorst
From: Maxime Ripard This allows any driver using the VRAM helper to set limits on VRAM using cgroup. Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_gem_vram_helper.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a

[PATCH v2 6/7] drm/xe: Hack to test with mapped pages instead of vram.

2024-12-04 Thread Maarten Lankhorst
ff-by: Maarten Lankhorst --- drivers/gpu/drm/xe/xe_ttm_sys_mgr.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c b/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c index 9844a8edbfe19..5450caaef52ad 100644 --- a/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c +++ b/drivers/gpu/d

[PATCH v2 2/7] drm/drv: Add drmm managed registration helper for dmem cgroups.

2024-12-04 Thread Maarten Lankhorst
From: Maxime Ripard Drivers will need to register dmem regions at probe time, so let's give them a drm-managed helper. Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_drv.c | 32 include/drm/drm_drv.h | 5 +++

[PATCH v2 0/7] kernel/cgroups: Add "dmem" memory accounting cgroup.

2024-12-04 Thread Maarten Lankhorst
as feedback were needed. I've integrated those into the first patch. Maarten Lankhorst (5): kernel/cgroup: Add "dmem" memory accounting cgroup drm/ttm: Handle cgroup based eviction in TTM drm/xe: Implement cgroup for vram drm/amdgpu: Add cgroups implementation drm/xe: Hack to

[PATCH v2 4/7] drm/xe: Implement cgroup for vram

2024-12-04 Thread Maarten Lankhorst
Add vram based cgroup eviction to Xe. Most hardware with VRAM uses TTM for its management, and can be similarly trivially enabled. Co-developed-by: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | 8 1 file changed

[PATCH v2 1/7] kernel/cgroup: Add "dmem" memory accounting cgroup

2024-12-04 Thread Maarten Lankhorst
ty You need to echo +dmem to cgroup.subtree_control, and then you can partition device memory. Co-developed-by: Friedrich Vock Signed-off-by: Friedrich Vock Co-developed-by: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- Documentation/admin-guide/cgroup-v2.rst | 5

[PATCH v2 5/7] drm/amdgpu: Add cgroups implementation

2024-12-04 Thread Maarten Lankhorst
Similar to xe, enable some simple management of VRAM only. Co-developed-by: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

Re: [PATCH v2 5/5] drm/i915: Add drm_panic support

2024-12-03 Thread Maarten Lankhorst
Hey, Den 2024-12-03 kl. 09:50, skrev Jocelyn Falempe: > This adds drm_panic support for a wide range of Intel GPU. I've > tested it only on 3 laptops, haswell (with 128MB of eDRAM), > cometlake and alderlake. > > * DPT: if I disable tiling on a framebuffer using DPT, then it >displays some o

[PULL] drm-misc-next-fixes

2024-11-28 Thread Maarten Lankhorst
Hi Dave, Simona, A pull request with a single obvious patch in it. Consequently it's very likely to break the world and everything in it. As famous last words I'll add: "the affected source file seems to compile on 32-bits and 64-bits x86". Cheers, ~Maarten drm-misc-next-fixes-2024-11-28: A si

Re: [PATCH 0/7] kernel/cgroups: Add "dev" memory accounting cgroup.

2024-11-13 Thread Maarten Lankhorst
Hey, Den 2024-11-06 kl. 19:20, skrev Tejun Heo: On Wed, Nov 06, 2024 at 11:31:49AM +0100, Maxime Ripard wrote: ... How about dmem for this one, and dpu for the other one. For device memory and device processing unit, respectively. dmem sounds great to me, does everyone agree? Sounds good to

[PULL] drm-misc-next

2024-11-13 Thread Maarten Lankhorst
Hi Dave, Simona, Next pull request, hopefully we'll have a v6.12 release soon! Cheers, ~Maarten drm-misc-next-2024-11-13: drm-misc-next for v6.13-rc1: Core Changes: - Replace use of of_graph_get_next_endpoint by get_endpoint_by_regs in core and drivers. Driver Changes: - Use drm_connector_h

Re: [PATCH 1/7] kernel/cgroup: Add "dev" memory accounting cgroup

2024-11-11 Thread Maarten Lankhorst
Den 2024-10-28 kl. 15:53, skrev Friedrich Vock: On 23.10.24 09:52, Maarten Lankhorst wrote: The initial version was based roughly on the rdma and misc cgroup controllers, with a lot of the accounting code borrowed from rdma. The current version is a complete rewrite with page counter; it

Re: [PATCH 1/7] kernel/cgroup: Add "dev" memory accounting cgroup

2024-11-11 Thread Maarten Lankhorst
Den 2024-10-23 kl. 17:26, skrev Waiman Long: On 10/23/24 3:52 AM, Maarten Lankhorst wrote: The initial version was based roughly on the rdma and misc cgroup controllers, with a lot of the accounting code borrowed from rdma. The current version is a complete rewrite with page counter; it

[PULL] drm-misc-next

2024-11-08 Thread Maarten Lankhorst
nk LVDS display common properties dt-bindings: display: bridge: Add ITE IT6263 LVDS to HDMI converter drm/bridge: Add ITE IT6263 LVDS to HDMI converter MAINTAINERS: Add maintainer for ITE IT6263 driver Louis Chauvet (1): drm/vkms: Remove usage of legacy drm_crtc members Maart

[PULL] drm-misc-next

2024-10-31 Thread Maarten Lankhorst
Hi Dave, Simona, drm-misc-next-2024-10-31: drm-misc-next for v6.13: All of the previous pull request, with MORE! Core Changes: - Update documentation for scheduler start/stop and job init. - Add dedede and sm8350-hdk hardware to ci runs. Driver Changes: - Small fixes and cleanups to panfrost,

[PULL] drm-misc-next

2024-10-25 Thread Maarten Lankhorst
Hi Dave, Simona, A bit late, but here it is! drm-misc-next-2024-10-25: drm-misc-next for v6.13: UAPI Changes: Cross-subsystem Changes: - Add DT bindings for Sharp Memory LCD. - Update DT bindings for tc358768. Core Changes: - Make the fbdev emulations a drm-client. - Add a drm-client lib modul

[PATCH 3/7] drm/ttm: Handle cgroup based eviction in TTM

2024-10-23 Thread Maarten Lankhorst
: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/tests/ttm_bo_test.c | 18 +++--- .../gpu/drm/ttm/tests/ttm_bo_validate_test.c | 4 +- drivers/gpu/drm/ttm/tests/ttm_resource_test.c | 2 +- drivers/gpu/drm/ttm/ttm_bo.c

[PATCH 0/7] kernel/cgroups: Add "dev" memory accounting cgroup.

2024-10-23 Thread Maarten Lankhorst
lly allows us to perhaps extend the API later on with the possibility to set scheduler weights on the device, like in https://blogs.igalia.com/tursulin/drm-scheduling-cgroup-controller/ Maarten Lankhorst (5): kernel/cgroup: Add "dev" memory accounting cgroup drm/ttm: Handle cgr

[PATCH 5/7] drm/amdgpu: Add cgroups implementation

2024-10-23 Thread Maarten Lankhorst
Similar to xe, enable some simple management of VRAM only. Co-developed-by: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 6 ++ drivers/gpu/drm/amd/amdgpu

[PATCH 6/7] [HACK] drm/xe: Hack to test with mapped pages instead of vram.

2024-10-23 Thread Maarten Lankhorst
We will probably want to make this a proper region in TTM for everything, so that we can charge VRAM twice, once for mapped in sysmem, once for mapped in vram. That way we don't need to deal with evict failing from lack of available memory in mapped. Signed-off-by: Maarten Lankhorst Signe

[PATCH 1/7] kernel/cgroup: Add "dev" memory accounting cgroup

2024-10-23 Thread Maarten Lankhorst
tition memory. Co-developed-by: Friedrich Vock Signed-off-by: Friedrich Vock Co-developed-by: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- Documentation/admin-guide/cgroup-v2.rst | 51 ++ Documentation/core-api/cgroup.rst | 9 + Documentation/

[PATCH 7/7] [DISCUSSION] drm/gem: Add cgroup memory accounting

2024-10-23 Thread Maarten Lankhorst
From: Maxime Ripard In order to support any device using the GEM support, let's register a dev cgroup device in the drm_dev_register path, and account for allocated buffers in the buffer allocation path. Marked discussion by Maarten Lankhorst: This is only implemented for drm_gem_dma_hel

[PATCH 2/7] drm/drv: Add drmm cgroup registration for dev cgroups.

2024-10-23 Thread Maarten Lankhorst
From: Maxime Ripard Drivers will need to register a cgroup device at probe time, so let's give them a drm-managed helper. Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_drv.c | 21 + include/drm/drm_drv.h | 4 2

[PATCH 4/7] drm/xe: Implement cgroup for vram

2024-10-23 Thread Maarten Lankhorst
Add vram based cgroup eviction to Xe. Most hardware with VRAM uses TTM for its management, and can be similarly trivially enabled. Co-developed-by: Maxime Ripard Signed-off-by: Maxime Ripard Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe/xe_device.c | 4 drivers/gpu/drm

[PULL] drm-misc-next

2024-10-17 Thread Maarten Lankhorst
Hi Dave, Simona, A new pull request for drm-misc-next. Cheers, Maarten drm-misc-next-2024-10-17: drm-misc-next for v6.13: Cross-subsystem Changes: - Small fixes to dma-buf. Core Changes: - Convert many drivers to use video aperture helpers and remove the DRM one. Driver Changes: - Add core

[PULL] drm-misc-next

2024-10-09 Thread Maarten Lankhorst
Hi Dave, Simona, Here's drm-misc-next for v6.13! drm-misc-next-2024-10-09: drm-misc-next for v6.13: UAPI Changes: - Add drm fdinfo support to panthor, and add sysfs knob to toggle. Cross-subsystem Changes: - Convert fbdev drivers to use backlight power constants. - Some small dma-fence fixes. -

Re: [PATCH RESEND] locking/ww_mutex: Adjust to lockdep nest_lock requirements

2024-10-09 Thread Maarten Lankhorst
Hey, I'm pretty sure I've seen this use-after-free in the wild, just never found the root cause since it's so unlikely to trigger on demand. Acked-by: Maarten Lankhorst Den 2024-10-02 kl. 14:56, skrev Thomas Hellström: > When using mutex_acquire_nest() with a nest_lock, loc

Re: [PATCH v9 07/11] drm/print: Introduce drm_line_printer

2024-10-04 Thread Maarten Lankhorst
I don't think there's an immediate use for this in drm-misc, so its easier to merge through xe. :-) Acked-by: Maarten Lankhorst Den 2024-10-03 kl. 02:46, skrev john.c.harri...@intel.com: From: Michal Wajdeczko This drm printer wrapper can be used to increase the robustness of th

[PULL] drm-misc-next

2024-09-26 Thread Maarten Lankhorst
Hi Dave, Simona, Another pull request for v6.13, to keep up with the huge rate of changes. :-) Forgot to mention in the summary that Louis Chauvet is taking over from Rodrigo Siqueira as vkmms maintainer, sorry about that! Cheers, Maarten drm-misc-next-2024-09-26: drm-misc-next for v6.13:

[PULL] drm-misc-next

2024-09-20 Thread Maarten Lankhorst
Hi Dave, Simona, First pull request for v6.12! Enjoy! Cheers, ~Maarten drm-misc-next-2024-09-20: drm-misc-next for v6.12: UAPI Changes: - Add panthor/DEV_QUERY_TIMESTAMP_INFO query. Cross-subsystem Changes: - Updated dt bindings. - Add documentation explaining default errnos for fences. - Mar

[PATCH] drm/xe: Fix merge fails related to display runtime PM

2024-09-02 Thread Maarten Lankhorst
The most recent merge commits introduced some fails to drm/drm-next, I've noticed these when looking at the xe patches. Solve it! Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe/display/xe_display.c | 2 -- drivers/gpu/drm/xe/xe_pm.c | 4 +--- 2 files changed, 1 inse

Re: [PATCH 2/3] drm/fourcc: define Intel Xe2 related tile4 ccs modifiers

2024-08-21 Thread Maarten Lankhorst
Acked-by: Maarten Lankhorst Den 2024-08-17 kl. 02:06, skrev Lucas De Marchi: > On Fri, Aug 16, 2024 at 02:52:28PM GMT, Juha-Pekka Heikkila wrote: >> Add Tile4 type ccs modifiers to indicate presence of compression on Xe2. >> Here is defined I915_FORMAT_MOD_4_TILED_LNL_CCS whi

Re: linux-next: build warning after merge of the drm-intel tree

2024-07-15 Thread Maarten Lankhorst
Hey, Den 2024-07-15 kl. 06:21, skrev Golani, Mitulkumar Ajitkumar: > > On 15-07-2024 04:42, Stephen Rothwell wrote: >> Hi all, >> >> On Wed, 12 Jun 2024 14:11:10 +1000 Stephen Rothwell >> wrote: >>> After merging the drm-intel tree, today's linux-next build (htmldocs) >>> produced this warning:

[PULL] drm-misc-fixes

2024-07-11 Thread Maarten Lankhorst
Hi Dave, Sima, Few fixes for v6.10. :) Cheers, ~Maarten drm-misc-fixes-2024-07-11: drm-misc-fixes for v6.10: - EDID irq fix for bridge/adv7511. - gma500 null mode fixes. - Cleanup meson binding. The following changes since commit 256abd8e550ce977b728be79a74e1729438b4948: Linux 6.10-rc7 (2024-

[PULL] drm-misc-fixes

2024-07-04 Thread Maarten Lankhorst
Hi Dave, Sima, A nicely filled fixes tree just for you! And the rest of the world! Cheers, ~Maarten drm-misc-fixes-2024-07-04: drm-misc-fixes for v6.10-rc7: - Add panel quirks. - Firmware sysfb refcount fix. - Another null pointer mode deref fix for nouveau. - Panthor sync and uobj fixes. - Fix

Re: [RFC PATCH 2/6] drm/cgroup: Add memory accounting DRM cgroup

2024-07-01 Thread Maarten Lankhorst
Den 2024-06-28 kl. 16:04, skrev Maxime Ripard: > Hi, > > On Thu, Jun 27, 2024 at 09:22:56PM GMT, Maarten Lankhorst wrote: >> Den 2024-06-27 kl. 19:16, skrev Maxime Ripard: >>> Hi, >>> >>> Thanks for working on this! >>> >>> On

Re: [RFC PATCH 2/6] drm/cgroup: Add memory accounting DRM cgroup

2024-06-27 Thread Maarten Lankhorst
Hey, Den 2024-06-27 kl. 19:16, skrev Maxime Ripard: Hi, Thanks for working on this! On Thu, Jun 27, 2024 at 05:47:21PM GMT, Maarten Lankhorst wrote: The initial version was based roughly on the rdma and misc cgroup controllers, with a lot of the accounting code borrowed from rdma. The

[RFC PATCH 6/6] drm/xe: Hack to test with mapped pages instead of vram.

2024-06-27 Thread Maarten Lankhorst
We will probably want to make this a proper region in TTM for everything, so that we can charge VRAM twice, once for mapped in sysmem, once for mapped in vram. That way we don't need to deal with evict failing from lack of available memory in mapped. Signed-off-by: Maarten Lankhorst --- dr

[RFC PATCH 0/6] DRM resource management cgroup, try 2.

2024-06-27 Thread Maarten Lankhorst
his version has a lot better chance of being upstreamed than the previous. It should be a lot more scalable thanks to the usage of RCU and page_counter. Cheers, Maarten Maarten Lankhorst (6): mm/page_counter: Move calculating protection values to page_counter drm/cgroup: Add memory accoun

[RFC PATCH 3/6] drm/ttm: Handle cgroup based eviction in TTM

2024-06-27 Thread Maarten Lankhorst
only from cgroups which are a subgroup of the current cgroup. The returned CSS is used to determine if eviction is valuable for a given resource, and allows TTM to only target specific resources to lower memory usage. Signed-off-by: Maarten Lankhorst Co-developed-by: Friedrich Vock --- drivers

[RFC PATCH 4/6] drm/xe: Implement cgroup for vram

2024-06-27 Thread Maarten Lankhorst
Add vram based cgroup eviction to Xe. Most hardware with VRAM uses TTM for its management, and can be similarly trivially enabled. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe/xe_device.c | 4 drivers/gpu/drm/xe/xe_device_types.h | 4 drivers/gpu/drm/xe

[RFC PATCH 1/6] mm/page_counter: Move calculating protection values to page_counter

2024-06-27 Thread Maarten Lankhorst
It's a lot of math, and there is nothing memcontrol specific about it. This makes it easier to use inside of the drm cgroup controller. Signed-off-by: Maarten Lankhorst --- include/linux/page_counter.h | 4 + mm/memcontrol.c | 154 +-

[RFC PATCH 5/6] drm/amdgpu: Add cgroups implementation

2024-06-27 Thread Maarten Lankhorst
Similar to xe, enable some simple management of VRAM only. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 6 ++ 3 files changed, 14 insertions

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

2024-06-27 Thread Maarten Lankhorst
, drop reference to limiting cs with drmcs_pool_put. This API allows you to limit device resources with cgroups. You can see the supported cards in /sys/fs/cgroup/drm.capacity You need to echo +drm to cgroup.subtree_control, and then you can partition memory. Signed-off-by: Maarten Lankhorst

[PULL] drm-misc-fixes

2024-06-26 Thread Maarten Lankhorst
Hi Dave, Sima, Was out last week, didn't happen much anyway with only 2 patches, so have a double sized -fixes this week. Cheers, ~Maarten drm-misc-fixes-2024-06-26: drm-misc-fixes for v6.10-rc6: - nouveau tv mode fixes. - Add KOE TX26D202VM0BWA timings. - Fix fb_info when vmalloc is used, re

[PULL] drm-misc-fixes

2024-06-14 Thread Maarten Lankhorst
Hi Dave, Sima, Got a bit distracted with drm-misc-next-fixes yesterday, so here's a slightly late drm-misc-fixes. Cheers, ~Maarten drm-misc-fixes-2024-06-14: drm-misc-fixes for v6.10-rc4: - Kconfig fix for WERROR. - Add panel quirk for Aya Neo KUN - Small bugfixes in komeda, bridge/panel, amd

[PULL] drm-misc-next-fixes

2024-06-06 Thread Maarten Lankhorst
Hi Dave, Sima, Pull request for a single patch lost in the wrong tree. Cheers, ~Maarten drm-misc-next-fixes-2024-06-07: drm-misc-next-fixes for v6.10-rc3: - Single unused struct removal that should have been in -fixes. The following changes since commit 5a507b7d2be15fddb95bf8dee01110b723e2bcd9:

[PULL] drm-misc-fixes

2024-06-06 Thread Maarten Lankhorst
Hi Dave, Sima, Lots of fixes for vmwgfx all over the place, and one fix for sitronix panel. Cheers, Maarten drm-misc-fixes-2024-06-07: drm-misc-fixes for v6.10-rc3: - Robustness fixes for vmwgfx. - Error check for of_drm_get_panel_orientation failing in sitronix-st7789v. The following changes

[PULL] drm-misc-next-fixes

2024-05-22 Thread Maarten Lankhorst
drm-misc-next-fixes-2024-05-23: drm-misc-next-fixes for v6.10-rc1: - MST null deref fix. - Don't let next bridge create connector in adv7511 to make probe work. The following changes since commit 959314c438caf1b62d787f02d54a193efda38880: drm/nouveau: use tile_mode and pte_kind for VM_BIND bo al

[PULL] drm-misc-next-fixes

2024-05-16 Thread Maarten Lankhorst
drm-misc-next-fixes-2024-05-16: drm-misc-next-fixes for v6.10-rc1: - VM_BIND fix for nouveau. - Lots of panthor fixes: * Fixes for panthor's heap logical block. * Reset on unrecoverable fault * Fix VM references. * Reset fix. - xlnx compile and doc fixes. The following changes since commit

Re: [PATCH v10 05/12] drm/panelreplay: dpcd register definition for panelreplay SU

2024-05-15 Thread Maarten Lankhorst
Hey, Den 2024-05-13 kl. 10:55, skrev Hogander, Jouni: Hello Maintainers, Could you please ack this patch? I'm planning to merge it via drm-intel tree. BR, Jouni Högander Acked-by: Maarten Lankhorst

[PULL] drm-misc-next-fixes

2024-05-08 Thread Maarten Lankhorst
Hi Dave, Sima, drm-misc-next-fixes for v6.10-rc1. There was some discussion on certain cherry picks I did, specifically the one for hiding fbdev address. There is some potential to cause regressions on ARM by hiding the physical address, but I think it should be fine to move ahead. This is why

Re: [RFC PATCH 00/18] TTM interface for managing VRAM oversubscription

2024-05-02 Thread Maarten Lankhorst
Hey, Den 2024-04-24 kl. 18:56, skrev Friedrich Vock: Hi everyone, recently I've been looking into remedies for apps (in particular, newer games) that experience significant performance loss when they start to hit VRAM limits, especially on older or lower-end cards that struggle to fit both desk

[PULL] drm-misc-next

2024-04-25 Thread Maarten Lankhorst
Hi Dave, Sima, One more pull request for v6.10! Cheers, ~Maarten drm-misc-next-2024-04-25: drm-misc-next for v6.10-rc1: UAPI Changes: Cross-subsystem Changes: - Devicetree updates for rockchip (#sound-dai-cells) - Add dt bindings for new panels. - Change bridge/tc358775 dt bindings. Core Cha

[PULL] drm-misc-next

2024-04-19 Thread Maarten Lankhorst
Hi Dave, Sima, Bit late, but with slightly more content. Cheers, ~Maarten drm-misc-next-2024-04-19: drm-misc-next for v6.10-rc1: UAPI Changes: - Add SIZE_HINTS property for cursor planes. Cross-subsystem Changes: Core Changes: - Document the requirements and expectations of adding new driv

[PULL] drm-misc-next

2024-04-10 Thread Maarten Lankhorst
Hi Dave, Sima, Still low amount of patches this week! Cheers, ~Maarten drm-misc-next-2024-04-10: drm-misc-next for v6.10: Cross-subsystem Changes: - Add Tomi as Xilinx maintainer. - Add sound bindings to DT. Core Changes: - Make DP helper depend on KMS helper. Driver Changes: - Assorted smal

Re: [rebase 1/3] drm: Add drm_vblank_work_flush_all().

2024-04-06 Thread Maarten Lankhorst
ix. :( Cheers, ~Maarten On Thu, Apr 04, 2024 at 12:48:11PM +0200, Maarten Lankhorst wrote: From: Maarten Lankhorst In some cases we want to flush all vblank work, right before vblank_off for example. Add a simple function to make this possible. Signed-off-by: Maarten Lankhorst --- dri

[PULL] drm-misc-next

2024-04-05 Thread Maarten Lankhorst
Hi Dave, Sima, Everyone seems to be out on vacation, so the pull request is pretty empty. Cheers, ~Maarten drm-misc-next-2024-04-05: drm-misc-next for v6.10: Core Changes: - Fix DRM_DISPLAY_DP_HELPER dependencies. Driver Changes: - i2c and polling fixes to ast. - Small fixes to panthor. - All

[PULL] drm-misc-next

2024-03-28 Thread Maarten Lankhorst
Hi Dave, Sima, Happy easter!! Cheers, ~Maarten drm-misc-next-2024-03-28: drm-misc-next for v6.10-rc1: The deal of a lifetime! You get ALL of the previous drm-misc-next-2024-03-21-1 tag!! But WAIT, there's MORE! Cross-subsystem Changes: - Assorted DT binding updates. Core Changes: - Clarify

[PULL] drm-misc-next

2024-03-21 Thread Maarten Lankhorst
drm-misc-next-2024-03-21-1: drm-misc-next for v6.10: UAPI Changes: - Move some nouveau magic constants to uapi. Cross-subsystem Changes: - Move drm-misc to gitlab and freedesktop hosting. - Add entries for panfrost. Core Changes: - Improve placement for TTM bo's in idle/busy handling. - Improve

Re: [PATCH 6/6] drm/xe/stolen: ignore first page for FBC

2024-02-16 Thread Maarten Lankhorst
_4K; + if (align) size = ALIGN(size, align); Should start also be aligned? If that's taken care of by other code, for both patches: Reviewed-by: Maarten Lankhorst

Re: [PATCH] drm/xe/display: Fix memleak in display initialization

2024-02-01 Thread Maarten Lankhorst
On 2024-01-31 16:07, Jani Nikula wrote: On Wed, 31 Jan 2024, Lucas De Marchi wrote: +Jani On Fri, Jan 26, 2024 at 11:34:53PM +0800, wangxiaoming321 wrote: intel_power_domains_init has been called twice in xe_device_probe: xe_device_probe -> xe_display_init_nommio -> intel_power_domains_ini

[PULL] drm-misc-fixes

2024-01-03 Thread Maarten Lankhorst
Hi Dave, Daniel, Happy new year! ~Maarten drm-misc-fixes-2024-01-03: drm-misc-fixes for v6.7 final: - 2 small qaic fixes. - Fixes for overflow in aux xfer. - Fix uninitialised gamma lut in gmag200. - Small compiler warning fix for backports of a ps8640 fix. The following changes since commit 6c

[PULL] drm-misc-fixes

2023-12-14 Thread Maarten Lankhorst
Hi Dave, Daniel, Small fixes all over the place, one regression fix for master capability. Cheers, ~Maarten drm-misc-fixes-2023-12-14: drm-misc-fixes for v6.7-rc6: - Fix regression for checking if FD is master capable. - Fix uninitialized variables in drm/crtc. - Fix ivpu w/a. - Refresh modes c

[PULL] drm-misc-fixes

2023-12-07 Thread Maarten Lankhorst
Hi Dave, Daniel, Pull request for v6.7-rc5. Cheers, ~Maarten drm-misc-fixes-2023-12-07: drm-misc-fixes for v6.7-rc5: - Document nouveau's GSP-RM. - Flush vmm harder on nouveau tu102. - Panfrost fix for imported dma-buf objects, and device frequency. - Kconfig Build fix for tc358768. - Call end_

[PATCH] drm/i915/display: Use i915_gem_object_get_dma_address to get dma address

2023-12-04 Thread Maarten Lankhorst
Works better for xe like that. obj is no longer const. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/display/intel_cursor.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_cursor.c b/drivers/gpu/drm/i915/display

[PULL] drm-misc-fixes

2023-11-29 Thread Maarten Lankhorst
Hi Dave, Daniel, This pull request is a bit confusing, as it first adds the panel fixes and a driver/core change, then immediately revert it. Cheers, ~Maarten drm-misc-fixes-2023-11-29: Fixes for v6.7-rc4: - Revert panel fixes as they require exporting device_is_dependent. - Do not double add

[PATCH 1/3] drm: Add drm_vblank_work_flush_all().

2023-11-27 Thread Maarten Lankhorst
In some cases we want to flush all vblank work, right before vblank_off for example. Add a simple function to make this possible. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_vblank_work.c | 22 ++ include/drm/drm_vblank_work.h | 2 ++ 2 files changed, 24

[PATCH 2/3] drm/i915: Use vblank worker to unpin old legacy cursor fb safely

2023-11-27 Thread Maarten Lankhorst
this is causing problems we can think about adding a lower priority worker for such things. This patch is slightly reworked by Maarten Cc: Maarten Lankhorst Signed-off-by: Ville Syrjälä Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/display/intel_cursor.c | 26 +-- drive

[PATCH 3/3] drm/i915: Use the same vblank worker for atomic unpin

2023-11-27 Thread Maarten Lankhorst
asn't cleaned up. The only option remaining is to remove the plane from the atomic commit, and use the same path as the legacy cursor update to clean the state after vblank. Signed-off-by: Maarten Lankhorst --- .../gpu/drm/i915/display/intel_atomic_plane.c | 28 ++- .../gpu/drm/i9

[PULL] drm-misc-fixes

2023-11-23 Thread Maarten Lankhorst
Hi Dave, Daniel, Lots of small fixes for various drivers. Cheers, ~Maarten drm-misc-fixes-2023-11-23: Fixes for v6.7-rc3: - Panel fixes for innolux and auo,b101uan08.3 panel. - Fix ivpu MMIO reset. - AST fix on connetor disconnection. - nouveau gsp fix. - rockchip color fix. - Fix Himax83102-j0

Re: [Intel-gfx] [PATCH v3 02/11] drm/dp_mst: Fix PBN divider calculation for UHBR rates

2023-11-21 Thread Maarten Lankhorst
: Acked-by: Maarten Lankhorst --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 10 +++--- include/drm/display/drm_dp_helper.h | 13 + 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm

[PULL] drm-misc-fixes

2023-11-16 Thread Maarten Lankhorst
Hi Dave, Daniel, Small pull request, mostly nouveau fixes. Cheers, ~Maarten Mostly drm-misc-fixes-2023-11-16: Assorted fixes for v6.7-rc2: - Nouveau GSP fixes. - Fix nouveau driver load without display. - Use rwlock for nouveau's event lock to break a lockdep splat. - Add orientation quirk for

Re: [PATCH] driver: gpu: Fixing warning directly dereferencing a rcu pointer

2023-11-13 Thread Maarten Lankhorst
Hey, Den 2023-11-13 kl. 09:10, skrev Abhinav Singh: This patch fixes a sparse warning with this message "warning:dereference of noderef expression". In this context it means we are dereferencing a __rcu tagged pointer directly. We should not be directly dereferencing a rcu pointer, rather we sh

[PULL] drm-misc-fixes

2023-11-08 Thread Maarten Lankhorst
Hi Dave, Daniel, drm-misc-next-fixes is empty, have a pull request for drm-misc-fixes. Cheers, ~Maarten drm-misc-fixes-2023-11-08: drm-misc-fixes for v6.7-rc1: - drm-misc-fixes from 2023-11-02 + a single qxl memory leak fix. The following changes since commit 8f5ad367e8b884772945c6c9fb622ac94b

[PULL] drm-misc-next-fixes

2023-11-02 Thread Maarten Lankhorst
Hi Daniel, Dave, Just 2 small ssd130x fixes. Cheers, ~Maarten drm-misc-next-fixes-2023-11-02: drm-misc-next-fixes for v6.7-rc1: - dt binding fix for ssd132x - Initialize ssd130x crtc_state to NULL. The following changes since commit b70438004a14f4d0f9890b3297cd66248728546c: drm/amdgpu: mov

[PULL] drm-misc-next

2023-10-27 Thread Maarten Lankhorst
drm-misc-next-2023-10-27: drm-misc-next for v6.7-rc1: drm-misc-next-2023-10-19 + following: UAPI Changes: Cross-subsystem Changes: - Convert fbdev drivers to use fbdev i/o mem helpers. Core Changes: - Use cross-references for macros in docs. - Make drm_client_buffer_addb use addfb2. - Add NV20

[PULL] drm-misc-next

2023-10-19 Thread Maarten Lankhorst
drm-misc-next-2023-10-19: drm-misc-next for v6.7-rc1: UAPI Changes: Cross-subsystem Changes: - Update maintainers entry for megachips STDPx-GE-B850V3-FW. Core Changes: - Add VM_BIND async document. - Dual-license drm_gpuvm to GPL-2.0 OR MIT. Driver Changes: - Assorted small fixes in ivpu,

[PULL] drm-misc-next

2023-10-12 Thread Maarten Lankhorst
drm-misc-next-2023-10-12: drm-misc-next for v6.7-rc1: Contains the previous pull request drm-misc-next-2023-10-06 + following: Cross-subsystem Changes: - Rename fb_pgprot to pgprot_framebuffer and remove file argument/ - Update iosys-map documentation typos. Core Changes: - Assorted fixes to dr

[PULL] drm-misc-next

2023-10-06 Thread Maarten Lankhorst
drm-misc-next-2023-10-06: drm-misc-next for v6.7: Cross-subsystem Changes: - drm-misc now matches all drivers to ensure it goes to the correct tree. - Clarify NXP i.MX 8MQ DCSS goes through drm-misc tree in MAINTAINERS. Core Changes: - Assorted small fixes in gpuvm, bridge. - Improve format co

[PULL] drm-misc-next

2023-09-27 Thread Maarten Lankhorst
drm-misc-next-2023-09-27: drm-misc-next for v6.7-rc1: UAPI Changes: - drm_file owner is now updated during use, in the case of a drm fd opened by the display server for a client, the correct owner is displayed. - Qaic gains support for the QAIC_DETACH_SLICE_BO ioctl to allow bo recycling.

[PULL] drm-misc-next

2023-09-11 Thread Maarten Lankhorst
Hi Dave, Daniel, First pull request for next kernel cycle. Cheers, ~Maarten drm-misc-next-2023-09-11-1: drm-misc-next for v6.7-rc1: UAPI Changes: - Nouveau changed to not set NO_PREFETCH flag explicitly. Cross-subsystem Changes: - Update documentation of dma-buf intro and uapi. - fbdev/sbus f

[PATCH 1/2] drm/i915: Swap ggtt_vma during legacy cursor update

2023-08-10 Thread Maarten Lankhorst
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/intel_cursor.c b/drivers/gpu/drm/i915/display/intel_cursor.c index b342fad180ca..ab25f019eda1 100644 --- a

[PATCH 2/2] drm/i915: Handle legacy cursor update as normal update

2023-08-10 Thread Maarten Lankhorst
Abuse the vblank worker to make the changes as small as possible. We need a way to sync flip_done, but if we wait on flip_done, all async tests start failing. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/display/intel_crtc.c| 21 ++-- drivers/gpu/drm/i915

Re: [PATCH 16/17] cgroup/drm: Expose memory stats

2023-07-27 Thread Maarten Lankhorst
Hey, On 2023-07-26 21:44, Tejun Heo wrote: Hello, On Wed, Jul 26, 2023 at 12:14:24PM +0200, Maarten Lankhorst wrote: So, yeah, if you want to add memory controls, we better think through how the fd ownership migration should work. I've taken a look at the series, since I have been wo

  1   2   3   4   5   6   7   8   9   10   >