Re: [PATCH v2] drm/sched: Mark scheduler work queues with WQ_MEM_RECLAIM

2024-10-25 Thread Nirmoy Das
On 10/24/2024 1:59 AM, Matthew Brost wrote: > drm_gpu_scheduler.submit_wq is used to submit jobs, jobs are in the path > of dma-fences, and dma-fences are in the path of reclaim. Mark scheduler > work queue with WQ_MEM_RECLAIM to ensure forward progress during > reclaim; without WQ_MEM_RECLAIM, w

Re: [PATCH 01/37] drm/vc4: Limit max_bpc to 8 on Pi0-3

2024-10-25 Thread Maxime Ripard
On Wed, Oct 23, 2024 at 05:49:58PM +0100, Dave Stevenson wrote: > Pi 0-3 have no deep colour support and only 24bpp output, > so max_bpc should remain as 8, and no HDR metadata property > should be registered. > > Fixes: ba8c0faebbb0 ("drm/vc4: hdmi: Enable 10/12 bpc output") > Signed-off-by: Dave

Re: [PATCH 3/3] drm/panthor: Prevent potential overwrite of buffer objects

2024-10-25 Thread Boris Brezillon
On Thu, 24 Oct 2024 15:54:32 +0100 Akash Goel wrote: > All CPU mappings are forced as uncached for Panthor buffer objects when > system(IO) coherency is disabled. Physical backing for Panthor BOs is > allocated by shmem, which clears the pages also after allocation. But > there is no explicit cac

[PATCH 1/3] dma-buf/dma-fence_array: use kvzalloc

2024-10-25 Thread Christian König
Reports indicates that some userspace applications try to merge more than 80k of fences into a single dma_fence_array leading to a warning from kzalloc() that the requested size becomes to big. While that is clearly an userspace bug we should probably handle that case gracefully in the kernel. So

Re: Requirements to merge new heaps in the kernel

2024-10-25 Thread Maxime Ripard
On Tue, Oct 22, 2024 at 09:19:05AM -0700, John Stultz wrote: > On Tue, Oct 22, 2024 at 1:38 AM Maxime Ripard wrote: > > > > I wanted to follow-up on the discussion we had at Plumbers with John and > > T.J. about (among other things) adding new heaps to the kernel. > > > > I'm still interested in m

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

2024-10-25 Thread Tejun Heo
Hello, On Thu, Oct 24, 2024 at 09:20:43AM +0200, Maxime Ripard wrote: ... > > Yeah, let's not use "dev" name for this. As Waiman pointed out, it conflicts > > with the devices controller from cgroup1. While cgroup1 is mostly > > deprecated, the same features are provided through BPF in systemd usi

[PATCH 1/2] drm/i2c/ch7006: Add a check to prevent NULL pointer dereference

2024-10-25 Thread Zhang Zekun
drm_mode_duplicate() could return NULL due to lack of memory, which will then call NULL pointer dereference. Add a check to prevent it. Fixes: 6ee738610f41 ("drm/nouveau: Add DRM driver for NVIDIA GPUs") Signed-off-by: Zhang Zekun --- drivers/gpu/drm/i2c/ch7006_drv.c | 8 ++-- 1 file changed

[PATCH 2/2] drm/panel: himax-hx83102: Add a check to prevent NULL pointer dereference

2024-10-25 Thread Zhang Zekun
drm_mode_duplicate() could return NULL due to lack of memory, which will then call NULL pointer dereference. Add a check to prevent it. Fixes: 0ef94554dc40 ("drm/panel: himax-hx83102: Break out as separate driver") Signed-off-by: Zhang Zekun --- drivers/gpu/drm/panel/panel-himax-hx83102.c | 2 ++

[PATCH 0/2] drm: Add a check to prevent NULL pointer dereference

2024-10-25 Thread Zhang Zekun
drm_mode_duplicate() could return NULL due to lack of memory, which could cause NULL pointer dereference. Add a check to prevent it. Zhang Zekun (2): drm/i2c/ch7006: Add a check to prevent NULL pointer dereference drm/panel: himax-hx83102: Add a check to prevent NULL pointer dereference

Re: [PATCH 0/3] A few minor fw_devlink fixes

2024-10-25 Thread Saravana Kannan
On Thu, Oct 24, 2024 at 12:08 AM Greg Kroah-Hartman wrote: > > On Wed, Oct 23, 2024 at 11:13:41PM -0700, Saravana Kannan wrote: > > Probably easiest for Greg to pull in these changes? > > > > PSA: Do not pull any of these patches into stable kernels. fw_devlink > > had a lot of changes that landed

Re: [PATCH 1/3] drm: display: Set fwnode for aux bus devices

2024-10-25 Thread Dmitry Baryshkov
On Wed, Oct 23, 2024 at 11:13:42PM -0700, Saravana Kannan wrote: > fwnode needs to be set for a device for fw_devlink to be able to > track/enforce its dependencies correctly. Without this, you'll see error > messages like this when the supplier has probed and tries to make sure > all its fwnode co

Re: [PATCH 0/2] drm: Treewide plane/crtc legacy state sweeping

2024-10-25 Thread Ville Syrjälä
On Wed, Oct 02, 2024 at 09:21:58PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > An attempt to hide the drm_plane/crtc legacy state better. > > This also highlights the fact that a lot of supposedly > atomic drivers are poking around in the legacy crtc state, > which is rather questionab

[PATCH v9 3/5] drm: handle HAS_IOPORT dependencies

2024-10-25 Thread Niklas Schnelle
In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. We thus need to add HAS_IOPORT as dependency for those drivers using them. In the bochs driver there is optional MMIO support detected at runtime, warn if this isn't taken when HAS_IOPORT is not defined. There is

Re: [PATCH v5 5/6] drm/log: Implement suspend/resume

2024-10-25 Thread Petr Mladek
On Wed 2024-10-23 14:00:13, Jocelyn Falempe wrote: > The console is already suspended in printk.c. Does this mean that drm_log_client_suspend() is called after suspend_console(), please? By other words, does it mean that "dlog->suspended == true" is set only when CON_SUSPENDED is already set in t

Re: [PATCH v5 3/9] drm/xe: Add xe_ttm_access_memory

2024-10-25 Thread Matthew Auld
On 21/10/2024 22:18, Matthew Brost wrote: Non-contiguous VRAM cannot easily be mapped in TTM nor can non-visible VRAM easily be accessed. Add xe_ttm_access_memory which hooks into ttm_bo_access to access such memory. v4: - Assert memory access rather than taking RPM ref (Thomas / Auld) - Fix

Re: [PATCH 1/9] drm/panfrost: Replace DRM driver allocation method with newer one

2024-10-25 Thread Steven Price
On 15/10/2024 00:31, Adrián Larumbe wrote: > Drop the deprecated DRM driver allocation method in favour of > devm_drm_dev_alloc(). Overall just make it the same as in Panthor. > Also discard now superfluous generic and platform device pointers inside > the main panfrost device structure. > > Some

Re: [PATCH] PCI/VGA: Don't assume only VGA device found is the boot VGA device

2024-10-25 Thread Kai-Heng Feng
On 2024/10/23 11:27 PM, Alex Deucher wrote: External email: Use caution opening links or attachments On Tue, Oct 22, 2024 at 9:27 PM Kai-Heng Feng wrote: On 2024/10/22 9:04 PM, Alex Deucher wrote: External email: Use caution opening links or attachments On Tue, Oct 22, 2024 at 2:31 A

Re: [PATCH 2/2] drm: remove driver date from struct drm_driver and all drivers

2024-10-25 Thread Simon Ser
Acked-by: Simon Ser

[git pull] drm fixes for 6.12-rc5

2024-10-25 Thread Dave Airlie
Hi Linus, Weekly drm fixes, mostly amdgpu and xe, with minor bridge and an i915 Kconfig fix. Nothing too scary and it seems to be pretty quiet. Dave. drm-fixes-2024-10-25: drm fixes for 6.12-rc5 amdgpu: - ACPI method handling fixes - SMU 14.x fixes - Display idle optimization fix - DP link laye

Re: [RFC PATCH] drm/bridge: panel: Use devm_drm_bridge_add()

2024-10-25 Thread Maxime Ripard
On Wed, Oct 09, 2024 at 01:23:31PM +0800, Fei Shao wrote: > In the mtk_dsi driver, its DSI host attach callback calls > devm_drm_of_get_bridge() to get the next bridge. If that next bridge is > a panel bridge, a panel_bridge object is allocated and managed by the > panel device. > > Later, if the

Re: [PATCH 1/3] drm: display: Set fwnode for aux bus devices

2024-10-25 Thread Thierry Reding
On Wed, Oct 23, 2024 at 11:13:42PM -0700, Saravana Kannan wrote: > fwnode needs to be set for a device for fw_devlink to be able to > track/enforce its dependencies correctly. Without this, you'll see error > messages like this when the supplier has probed and tries to make sure > all its fwnode co

Re: [PATCH v2] drm/sched: Mark scheduler work queues with WQ_MEM_RECLAIM

2024-10-25 Thread Matthew Brost
On Thu, Oct 24, 2024 at 01:44:41PM +0200, Nirmoy Das wrote: > > On 10/24/2024 1:59 AM, Matthew Brost wrote: > > drm_gpu_scheduler.submit_wq is used to submit jobs, jobs are in the path > > of dma-fences, and dma-fences are in the path of reclaim. Mark scheduler > > work queue with WQ_MEM_RECLAIM t

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-25 Thread Rodrigo Vivi
On Fri, Oct 18, 2024 at 05:07:22PM -0400, Alex Deucher wrote: > On Fri, Oct 18, 2024 at 1:56 PM André Almeida wrote: > > > > Em 18/10/2024 12:31, Alex Deucher escreveu: > > > On Fri, Oct 18, 2024 at 11:23 AM Rodrigo Vivi > > > wrote: > > >> > > >> On Thu, Oct 17, 2024 at 04:16:09PM -0300, André

Re: [PATCH v2] drm/sched: Mark scheduler work queues with WQ_MEM_RECLAIM

2024-10-25 Thread Matthew Brost
On Thu, Oct 24, 2024 at 05:35:47PM +0200, Philipp Stanner wrote: > On Wed, 2024-10-23 at 16:59 -0700, Matthew Brost wrote: > > drm_gpu_scheduler.submit_wq is used to submit jobs, jobs are in the > > path > > of dma-fences, and dma-fences are in the path of reclaim. Mark > > scheduler > > work queue

Re: [PATCH v2 1/5] PCI/P2PDMA: Don't enforce ACS check for functions of same device

2024-10-25 Thread Bjorn Helgaas
On Thu, Oct 24, 2024 at 10:21:17AM -0600, Logan Gunthorpe wrote: > On 2024-10-23 23:50, Kasireddy, Vivek wrote: > >> I'd echo many of Bjorn's concerns. In addition, I think the name of the > >> pci_devs_are_p2pdma_compatible() isn't quite right. Specifically this is > >> dealing with PCI functions

Re: fw_devlinks preventing a panel driver from probing

2024-10-25 Thread Saravana Kannan
On Wed, Oct 23, 2024 at 1:52 AM Tomi Valkeinen wrote: > > Hi, > > On 22/10/2024 19:07, Saravana Kannan wrote: > > On Tue, Oct 22, 2024 at 12:51 AM Tomi Valkeinen > > wrote: > >> > >> Hi, > >> > >> On 22/10/2024 02:29, Saravana Kannan wrote: > >>> Hi Tomi, > >>> > >>> Sorry it took a while to get

[PATCH] drm/panel: synaptics-r63353: Fix regulator unbalance

2024-10-25 Thread Dario Binacchi
From: Michael Trimarchi The shutdown function can be called when the display is already unprepared. For example during reboot this trigger a kernel backlog. Calling the drm_panel_unprepare, allow us to avoid to trigger the kernel warning. Tested-by: Dario Binacchi Signed-off-by: Michael Trimarc

[PATCH 2/3] dma-buf: sort fences in dma_fence_unwrap_merge

2024-10-25 Thread Christian König
The merge function initially handled only individual fences and arrays which in turn were created by the merge function. This allowed to create the new array by a simple merge sort based on the fence context number. The problem is now that since the addition of timeline sync objects userspace can

Re: [PATCH 23/37] drm/vc4: drv: Add support for 2712 D-step

2024-10-25 Thread Maxime Ripard
On Wed, 23 Oct 2024 17:50:20 +0100, Dave Stevenson wrote: > Add in the compatible string and VC4_GEN_ enum for the D-step > > Signed-off-by: Dave Stevenson Reviewed-by: Maxime Ripard Thanks! Maxime

Re: [PATCH v2] drm/sched: Mark scheduler work queues with WQ_MEM_RECLAIM

2024-10-25 Thread Philipp Stanner
On Wed, 2024-10-23 at 16:59 -0700, Matthew Brost wrote: > drm_gpu_scheduler.submit_wq is used to submit jobs, jobs are in the > path > of dma-fences, and dma-fences are in the path of reclaim. Mark > scheduler > work queue with WQ_MEM_RECLAIM to ensure forward progress during > reclaim; without WQ_

Re: [PATCH next] drm/sharp-memory: Fix some checks in sharp_memory_probe()

2024-10-25 Thread Dan Carpenter
On Thu, Oct 24, 2024 at 11:08:05PM +0200, Uwe Kleine-König wrote: > On Wed, Oct 23, 2024 at 11:30:31AM +0300, Dan Carpenter wrote: > > The devm_drm_dev_alloc() function returns error pointers, it never > > returns NULL. Change that check to IS_ERR(). > > > > The devm_gpiod_get_optional() function

Re: [PULL] drm-xe-next

2024-10-25 Thread Thomas Hellström
On Thu, 2024-10-24 at 19:22 +, Matthew Brost wrote: > On Thu, Oct 24, 2024 at 07:52:11PM +0200, Thomas Hellstrom wrote: > > Hi, Dave & Simona, > > > > This week's drm-xe-next PR > > > > Thanks, > > Thomas > > > > > > drm-xe-next-2024-10-24: > > UAPI Changes: > > - Define and parse OA sync p

Re: [PATCH 0/3] Fix GPU virtual address collosion when CPU page size != GPU page size

2024-10-25 Thread Lucas Stach
Hi Sui, Am Samstag, dem 05.10.2024 um 03:42 +0800 schrieb Sui Jingfeng: > Etnaviv assumes that GPU page size is 4KiB, however, when using > softpin capable GPUs on a different CPU page size configuration. > Userspace still doing the allocation with 4KiB page as unit. This > results in userspace al

Re: [PATCH v11 7/8] drm/xe: Add a shrinker for xe bos

2024-10-25 Thread Matthew Brost
On Wed, Oct 16, 2024 at 10:55:58AM +0200, Thomas Hellström wrote: > Rather than relying on the TTM watermark accounting add a shrinker > for xe_bos in TT or system memory. > > Leverage the newly added TTM per-page shrinking and shmem backup > support. > > Although xe doesn't fully support WONTNEE

Re: [PATCH 28/37] drm/vc4: Enable bg_fill if there are no planes enabled

2024-10-25 Thread Maxime Ripard
On Wed, 23 Oct 2024 17:50:25 +0100, Dave Stevenson wrote: > The default was to have enable_bg_fill disabled and the first > plane set it if it wasn't opaque and covering the whole screen. > However that meant that if no planes were enabled, then the > background fill wasn't enabled, and would give

[PATCH v6 6/9] drm/msm/dpu: move rot90 checking to dpu_plane_atomic_check_sspp()

2024-10-25 Thread Dmitry Baryshkov
Move a call to dpu_plane_check_inline_rotation() to the dpu_plane_atomic_check_sspp() function, so that the rot90 constraints are checked for both SSPP blocks. Also move rotation field from struct dpu_plane_state to struct dpu_sw_pipe_cfg. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/

Re: vc4: HDMI Sink doesn't support RGB, something's wrong.

2024-10-25 Thread Dave Stevenson
Hi Stefan On Fri, 25 Oct 2024 at 14:36, Stefan Wahren wrote: > > Hi Dave, > > Am 23.10.24 um 17:22 schrieb Dave Stevenson: > > On Sat, 19 Oct 2024 at 10:34, Stefan Wahren wrote: > >> Hi, > >> > >> Am 17.10.24 um 17:59 schrieb Maxime Ripard: > >>> On Thu, Oct 17, 2024 at 05:26:46PM GMT, Stefan Wa

[PATCH 6.6 02/28] maple_tree: introduce {mtree,mas}_lock_nested()

2024-10-25 Thread Yu Kuai
From: Peng Zhang commit b2472efe4316b2687c153919c1513a098bd82c17 upstream. In some cases, nested locks may be needed, so {mtree,mas}_lock_nested is introduced. For example, when duplicating maple tree, we need to hold the locks of two trees, in which case nested locks are needed. At the same t

[PATCH v2 2/3] dt-bindings: display: panel: add YAML schema for LXD M9189A

2024-10-25 Thread Rouven Czerwinski
The LXD M9189A is a 1024x600 MIPI-DSI panel. Signed-off-by: Rouven Czerwinski --- v2: - add missing port property - fix example to use vdd supply found by running make dt_binding_check as suggested by the bot - fix missing A in M9189A title - fix compatible found after v1 submission .../binding

[PATCH 6.6 15/28] maple_tree: remove mas_searchable()

2024-10-25 Thread Yu Kuai
From: "Liam R. Howlett" commit 9a40d45c1f2c49273c04938ec3d7849f685eb3c1 upstream. Now that the status of the maple state is outside of the node, the mas_searchable() function can be dropped for easier open-coding of what is going on. Link: https://lkml.kernel.org/r/20231101171629.3612299-10-li

[PATCH 6.6 23/28] libfs: Define a minimum directory offset

2024-10-25 Thread Yu Kuai
From: Chuck Lever commit 7beea725a8ca412c6190090ce7c3a13b169592a1 upstream. This value is used in several places, so make it a symbolic constant. Reviewed-by: Jan Kara Signed-off-by: Chuck Lever Link: https://lore.kernel.org/r/170820142741.6328.12428356024575347885.st...@91.116.238.104.host.

Re: [PATCH] drm/panfrost: Remove unused id_mask from struct panfrost_model

2024-10-25 Thread Boris Brezillon
On Fri, 25 Oct 2024 15:00:07 +0100 Steven Price wrote: > The id_mask field of struct panfrost_model has never been used. > > Fixes: f3ba91228e8e ("drm/panfrost: Add initial panfrost driver") > Signed-off-by: Steven Price Reviewed-by: Boris Brezillon > --- > drivers/gpu/drm/panfrost/panfrost

Re: [PATCH v8 1/4] drm: Introduce device wedged event

2024-10-25 Thread Andy Shevchenko
On Fri, Oct 25, 2024 at 12:08:50PM +0300, Jani Nikula wrote: > On Fri, 25 Oct 2024, Raag Jadav wrote: ... > > +/* > > + * Available recovery methods for wedged device. To be sent along with > > device > > + * wedged uevent. > > + */ > > +static const char *const drm_wedge_recovery_opts[] = { >

[PATCH 6.6 10/28] maple_tree: use cached node end in mas_next()

2024-10-25 Thread Yu Kuai
From: "Liam R. Howlett" commit e9c52d8940cbfd94b36035bbebce7f55954e7728 upstream. When looking for the next entry, don't recalculate the node end as it is now tracked in the maple state. Link: https://lkml.kernel.org/r/20231101171629.3612299-6-liam.howl...@oracle.com Signed-off-by: Liam R. Howl

Re: [PATCH v9 0/5] treewide: Remove I/O port accessors for HAS_IOPORT=n

2024-10-25 Thread Niklas Schnelle
On Fri, 2024-10-25 at 13:41 +, Arnd Bergmann wrote: > On Thu, Oct 24, 2024, at 17:54, Niklas Schnelle wrote: > > Hi All, > > > > This is a follow up in my long running effort of making inb()/outb() and > > similar I/O port accessors compile-time optional. After initially > > sending this as a

[PATCH 6.6 21/28] maple_tree: avoid checking other gaps after getting the largest gap

2024-10-25 Thread Yu Kuai
From: Peng Zhang commit 7e552dcd803f4ff60165271c573ab2e38d15769f upstream. The last range stored in maple tree is typically quite large. By checking if it exceeds the sum of the remaining ranges in that node, it is possible to avoid checking all other gaps. Running the maple tree test suite in

[PATCH v2] drm/mxsfb: Remove generic DRM drivers in probe function

2024-10-25 Thread Dario Binacchi
Use aperture helpers to remove all generic graphics drivers before loading mxsfb. Makes mxsfb compatible with simpledrm. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v2: - Use aperture_remove_all_conflicting_devices() instead

[PATCH v2] drm/panel: synaptics-r63353: Fix regulator unbalance

2024-10-25 Thread Dario Binacchi
From: Michael Trimarchi The shutdown function can be called when the display is already unprepared. For example during reboot this trigger a kernel backlog. Calling the drm_panel_unprepare, allow us to avoid to trigger the kernel warning. Fixes: 2e87bad7cd33 ("drm/panel: Add Synaptics R63353 pan

Re: [PATCH v3 1/5] dt-bindings: display: panel: Move flip properties to panel-common

2024-10-25 Thread Linus Walleij
On Thu, Oct 24, 2024 at 5:18 AM Jakob Hauser wrote: > The flip properties were used by "samsung,s6e8aa0.yaml" only so far. By > introducing "samsung,s6e88a0-ams427ap24.yaml" they become more common. > > Signed-off-by: Jakob Hauser > Reviewed-by: Krzysztof Kozlowski I think I even have a legacy

Re: [PATCH v3 2/5] dt-bindings: display: panel: Add Samsung S6E88A0-AMS427AP24

2024-10-25 Thread Linus Walleij
On Thu, Oct 24, 2024 at 5:18 AM Jakob Hauser wrote: > Add bindings for Samsung AMS427AP24 panel with S6E88A0 controller. > > Signed-off-by: Jakob Hauser > Reviewed-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v3 3/5] drm/panel: samsung-s6e88a0-ams427ap24: Add initial driver

2024-10-25 Thread Linus Walleij
Hi Jakob, thanks for your patch! On Thu, Oct 24, 2024 at 5:18 AM Jakob Hauser wrote: > This initial part of the panel driver was mostly generated by the > "linux-mdss-dsi-panel-driver-generator" tool [1], reading downstream > Android kernel file "dsi_panel_S6E88A0_AMS427AP24_qhd_octa_video.dtsi

Re: vc4: HDMI Sink doesn't support RGB, something's wrong.

2024-10-25 Thread Stefan Wahren
Hi Dave, Am 25.10.24 um 16:38 schrieb Dave Stevenson: Hi Stefan On Fri, 25 Oct 2024 at 14:36, Stefan Wahren wrote: ... Based on that log I think your force_turbo=1 is a red-herring, or at least needs further investigation. Is this on a 3B, or 3B+? Definitely a 3B+ from the year 2017 (mainl

[PATCH 31/37] clk: bcm: rpi: Allow cpufreq driver to also adjust gpu clocks

2024-10-25 Thread Dave Stevenson
From: Dom Cobley For performance/power it is beneficial to adjust gpu clocks with arm clock. This is how the downstream cpufreq driver works Signed-off-by: Dom Cobley Signed-off-by: Dave Stevenson --- drivers/clk/bcm/clk-raspberrypi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [PATCH 0/2] drm: Treewide plane/crtc legacy state sweeping

2024-10-25 Thread Dmitry Baryshkov
On Fri, 25 Oct 2024 at 10:46, Ville Syrjälä wrote: > > On Wed, Oct 02, 2024 at 09:21:58PM +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > An attempt to hide the drm_plane/crtc legacy state better. > > > > This also highlights the fact that a lot of supposedly > > atomic drivers are po

[PATCH] dt-bindings: display: mediatek: dp: Add #sound-dai-cells property

2024-10-25 Thread Fei Shao
The MediaTek DP hardware supports audio, and the "#sound-dai-cells" property is required to describe DAI links and audio routing. Add "#sound-dai-cells" property to the binding and filter out non-DP compatibles, as MediaTek eDP doesn't support audio. Signed-off-by: Fei Shao --- .../bindings/di

Re: [PULL] drm-xe-next

2024-10-25 Thread Thomas Hellström
On Fri, 2024-10-25 at 12:34 +0300, Jani Nikula wrote: > On Fri, 25 Oct 2024, Thomas Hellström > wrote: > > On Thu, 2024-10-24 at 19:22 +, Matthew Brost wrote: > > > On Thu, Oct 24, 2024 at 07:52:11PM +0200, Thomas Hellstrom wrote: > > > > Hi, Dave & Simona, > > > > > > > > This week's drm-xe-

[PATCH 1/2] drm/xen: remove redundant initialization info print

2024-10-25 Thread Jani Nikula
drm_dev_register() already prints the same information on successful init. Remove the redundant prints. Signed-off-by: Jani Nikula --- Note: I prefer to merge this together with the next patch via drm-misc-next. Cc: Oleksandr Andrushchenko Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas

Re: [PATCH v4 15/18] dt-bindings: usb: Add ports to google,cros-ec-typec for DP altmode

2024-10-25 Thread Dmitry Baryshkov
On Tue, Oct 22, 2024 at 06:15:47PM -0700, Stephen Boyd wrote: > Quoting Dmitry Baryshkov (2024-09-20 02:38:53) > > On Sat, Aug 31, 2024 at 09:06:53PM GMT, Stephen Boyd wrote: > > Either way the problem seems to be that I need to associate one > drm_bridge with two displayport altmode drivers and

[PATCH v2 3/3] drm/panel: add LXD M9189A panel driver

2024-10-25 Thread Rouven Czerwinski
The LXD M9189A panel is based on the EK79007AD3 DSI display controller. It currently supports only 4 lane operation. Signed-off-by: Rouven Czerwinski --- v2: - use _multi functions - remove unnecessary dcs_nop function - calculate pixelclock with timings suggested by Dmitry Baryshkov - rename fu

Re: [PATCH v3 0/4] drm/tests: Fix some memory leaks

2024-10-25 Thread Maxime Ripard
On Wed, Oct 23, 2024 at 09:35:59AM +0800, Jinjie Ruan wrote: > > > On 2024/10/18 16:12, Jinjie Ruan wrote: > > > > > > On 2024/10/18 15:55, Maxime Ripard wrote: > >> Hi, > >> > >> On Thu, Oct 17, 2024 at 02:31:21PM GMT, Jinjie Ruan wrote: > >>> Fix some memory leaks in drm tests. > >>> > >>> Ch

Re: [PATCH 3/3] drm/panel: add Fitipower EK79007AD3 panel driver

2024-10-25 Thread Dan Carpenter
://lore.kernel.org/r/20241023124411.1153552-3-r.czerwinski%40pengutronix.de patch subject: [PATCH 3/3] drm/panel: add Fitipower EK79007AD3 panel driver config: nios2-randconfig-r072-20241025 (https://download.01.org/0day-ci/archive/20241025/202410252201.qglvauic-...@intel.com/config) compiler: nios2-linux-gcc

Re: [PATCH 1/3] drm/panthor: Update memattr programing to align with GPU spec

2024-10-25 Thread Boris Brezillon
On Fri, 25 Oct 2024 10:24:32 +0100 Liviu Dudau wrote: > On Thu, Oct 24, 2024 at 05:49:44PM +0200, Boris Brezillon wrote: > > +Robin for the MMU details > > > > On Thu, 24 Oct 2024 15:54:30 +0100 > > Akash Goel wrote: > > > > > Mali GPU Arch spec forbids the GPU PTEs to indicate Inner or Oute

RE: [EXT] Re: [PATCH v17 3/8] dt-bindings: display: bridge: Add Cadence MHDP8501

2024-10-25 Thread Sandor Yu
> > On 29/09/2024 04:36, Sandor Yu wrote: > > Hi Krzysztof, > > > > Thanks for your comments, > > > >> > >> > >> On Tue, Sep 24, 2024 at 03:36:48PM +0800, Sandor Yu wrote: > >>> Add bindings for Cadence MHDP8501 DisplayPort/HDMI bridge. > >>> > >>> Signed-off-by: Sandor Yu > >>> Reviewed-by: Kr

[PATCH 6.6 12/28] maple_tree: clean up inlines for some functions

2024-10-25 Thread Yu Kuai
From: "Liam R. Howlett" commit 271f61a8b41dcd86e1ecc2e0455bcc071bc7dde4 upstream. There are a few functions which were inlined but are somewhat too large to inline, so remove the inline key word. There are also several very small functions which are used in critical code sections which gcc was

[pull] amdgpu, amdkfd, radeon, documentation drm-next-6.13

2024-10-25 Thread Alex Deucher
Hi Dave, Simona, New stuff for 6.13. The following changes since commit d7d2688bf4ea58734d73e18edcbf4684b1496d30: drm/amd/pm: update workload mask after the setting (2024-09-26 17:05:10 -0400) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git tags/amd-

[PATCH 6.6 22/28] libfs: Re-arrange locking in offset_iterate_dir()

2024-10-25 Thread Yu Kuai
From: Chuck Lever commit 3f6d810665dfde0d33785420618ceb03fba0619d upstream. Liam and Matthew say that once the RCU read lock is released, xa_state is not safe to re-use for the next xas_find() call. But the RCU read lock must be released on each loop iteration so that dput(), which might_sleep()

[PATCH 6.6 28/28] maple_tree: correct tree corruption on spanning store

2024-10-25 Thread Yu Kuai
From: Lorenzo Stoakes commit bea07fd63192b61209d48cbb81ef474cc3ee4c62 upstream. Patch series "maple_tree: correct tree corruption on spanning store", v3. There has been a nasty yet subtle maple tree corruption bug that appears to have been in existence since the inception of the algorithm. Thi

[PATCH 6.6 04/28] maple_tree: skip other tests when BENCH is enabled

2024-10-25 Thread Yu Kuai
From: Peng Zhang commit f670fa1caadb4ea532a89012c5451e4c6789bfcc upstream. Skip other tests when BENCH is enabled so that performance can be measured in user space. Link: https://lkml.kernel.org/r/20231027033845.90608-8-zhangpeng...@bytedance.com Signed-off-by: Peng Zhang Reviewed-by: Liam R.

[PATCH 6.6 24/28] libfs: Add simple_offset_empty()

2024-10-25 Thread Yu Kuai
From: Chuck Lever commit ecba88a3b32d733d41e27973e25b2bc580f64281 upstream. For simple filesystems that use directory offset mapping, rely strictly on the directory offset map to tell when a directory has no children. After this patch is applied, the emptiness test holds only the RCU read lock

[PATCH] amdgpu/fence: replace call_rcu by kfree_rcu for simple kmem_cache_free callback

2024-10-25 Thread Hongling Zeng
Since SLOB was removed and since commit 6c6c47b063b5 ("mm, slab: call kvfree_rcu_barrier() from kmem_cache_destroy()"), it is not necessary to use call_rcu when the callback only performs kmem_cache_free. Use kfree_rcu() directly. Signed-off-by: Hongling Zeng --- drivers/gpu/drm/amd/amdgpu/amdg

[PATCH 6.6 19/28] maple_tree: mtree_range_walk() clean up

2024-10-25 Thread Yu Kuai
From: "Liam R. Howlett" commit a3c63c8c5df6406e79490456a1fc41a287676070 upstream. mtree_range_walk() needed to be updated to avoid checking if there was a pivot value. On closer examination, the code could avoid setting min or max in certain scenarios. The commit removes the extra check for pi

[PATCH 6.6 00/28] fix CVE-2024-46701

2024-10-25 Thread Yu Kuai
From: Yu Kuai Fix patch is patch 27, relied patches are from: - patches from set [1] to add helpers to maple_tree, the last patch to improve fork() performance is not backported; - patches from set [2] to change maple_tree, and follow up fixes; - patches from set [3] to convert offset_ctx fro

[PATCH 6.6 14/28] maple_tree: separate ma_state node from status

2024-10-25 Thread Yu Kuai
From: "Liam R. Howlett" commit 067311d33e650adfe7ae23765959ddcc1ba18510 upstream. The maple tree node is overloaded to keep status as well as the active node. This, unfortunately, results in a re-walk on underflow or overflow. Since the maple state has room, the status can be placed in its own

imx8mp: HDMI display blank/black problems

2024-10-25 Thread mailinglist1
Hey, We had some problems with the hdmi on the imx8mp and wanted to leave, what we found out about it, somewhere for others to find it. The problem was that our hdmi display sometimes stayed blank after hot plugging and sometimes at startup. On older kernel versions 6.6 we did not have the pro

[PATCH 6.6 13/28] maple_tree: add test for mtree_dup()

2024-10-25 Thread Yu Kuai
From: Peng Zhang commit a2587a7e8d37885dc063255f5400a66299b42e48 upstream. Add test for mtree_dup(). Test by duplicating different maple trees and then comparing the two trees. Includes tests for duplicating full trees and memory allocation failures on different nodes. Link: https://lkml.ker

[PATCH 6.6 18/28] maple_tree: don't find node end in mtree_lookup_walk()

2024-10-25 Thread Yu Kuai
From: "Liam R. Howlett" commit 24662decdd44645e8f027d7912be962dd461d1aa upstream. Since the pivot being set is now reliable, the optimized loop no longer needs to find the node end. The redundant check for a dead node can also be avoided as there is no danger of using the wrong pivot since the

[PATCH 0/3] drm/panthor: Coherency related fixes

2024-10-25 Thread Akash Goel
This patch series contains 3 cache coherency related fixes for the Panthor driver. - The first fix, regarding the Inner-shareability, is mandatory to ensure things work on all platforms (including Juno FPGA) when no_coherency protocol is selected. - The second fix regarding the coherency featur

[PATCH 6.6 08/28] maple_tree: move debug check to __mas_set_range()

2024-10-25 Thread Yu Kuai
From: "Liam R. Howlett" commit bf857ddd21d0bffc1edafc317e8e2ce0d6d5950c upstream. __mas_set_range() was created to shortcut resetting the maple state and a debug check was added to the caller (the vma iterator) to ensure the internal maple state remains safe to use. Move the debug check from th

[PATCH 6.6 07/28] maple_tree: make mas_erase() more robust

2024-10-25 Thread Yu Kuai
From: "Liam R. Howlett" commit f7a59018953910032231c0a019208c4b0a4a8bc3 upstream. mas_erase() may not deal correctly with all maple states. Make the function more robust by ensuring the state is in one of the two acceptable states. Link: https://lkml.kernel.org/r/20231101171629.3612299-3-liam.

[PATCH 6.6 25/28] maple_tree: Add mtree_alloc_cyclic()

2024-10-25 Thread Yu Kuai
From: Chuck Lever commit 9b6713cc75229f25552c643083cbdbfb771e5bca upstream. I need a cyclic allocator for the simple_offset implementation in fs/libfs.c. Signed-off-by: Chuck Lever Link: https://lore.kernel.org/r/170820144179.6328.12838600511394432325.st...@91.116.238.104.host.secureserver.ne

[PATCH 6.6 17/28] maple_tree: use maple state end for write operations

2024-10-25 Thread Yu Kuai
From: "Liam R. Howlett" commit 0de56e38b307b0cb2ac825e8e7cb371a28daf844 upstream. ma_wr_state was previously tracking the end of the node for writing. Since the implementation of the ma_state end tracking, this is duplicated work. This patch removes the maple write state tracking of the end of

[PATCH 2/3] drm/panthor: Explicitly set the coherency mode

2024-10-25 Thread Akash Goel
This commit fixes the potential misalignment between the value of device tree property "dma-coherent" and default value of COHERENCY_ENABLE register. Panthor driver didn't explicitly program the COHERENCY_ENABLE register with the desired coherency mode. The default value of COHERENCY_ENABLE registe

[PATCH 6.6 16/28] Revert "maple_tree: correct tree corruption on spanning store"

2024-10-25 Thread Yu Kuai
From: Yu Kuai This reverts commit 677f1df179cb68c12ddf7707ec325eb50e99c7d9. Above commit contain manual changes and will cause conflicts for following patches. The commit be backported from mainline later, without conflicts. Signed-off-by: Yu Kuai --- lib/maple_tree.c | 12 ++-- 1 fil

Re: vc4: HDMI Sink doesn't support RGB, something's wrong.

2024-10-25 Thread Stefan Wahren
Hi Dave, Am 23.10.24 um 17:22 schrieb Dave Stevenson: On Sat, 19 Oct 2024 at 10:34, Stefan Wahren wrote: Hi, Am 17.10.24 um 17:59 schrieb Maxime Ripard: On Thu, Oct 17, 2024 at 05:26:46PM GMT, Stefan Wahren wrote: Am 17.10.24 um 16:27 schrieb Maxime Ripard: On Wed, Oct 16, 2024 at 07:16:43

Re: [PATCH v9 0/5] treewide: Remove I/O port accessors for HAS_IOPORT=n

2024-10-25 Thread Arnd Bergmann
On Thu, Oct 24, 2024, at 17:54, Niklas Schnelle wrote: > Hi All, > > This is a follow up in my long running effort of making inb()/outb() and > similar I/O port accessors compile-time optional. After initially > sending this as a treewide series with the latest revision at[0] > we switched to per s

[PATCH 6.6 20/28] lib/maple_tree.c: fix build error due to hotfix alteration

2024-10-25 Thread Yu Kuai
From: Andrew Morton commit 5143eecd2af2b5424f7b96d53f17bb4718e46bd3 upstream. Commit 0de56e38b307 ("maple_tree: use maple state end for write operations") was broken by a later patch "maple_tree: do not preallocate nodes for slot stores". But the later patch was scheduled ahead of 0de56e38b307,

[PATCH 6.6 26/28] libfs: Convert simple directory offsets to use a Maple Tree

2024-10-25 Thread Yu Kuai
From: Chuck Lever commit 0e4a862174f2a8d1653a8a9cf0815020e1d3af24 upstream. Test robot reports: > kernel test robot noticed a -19.0% regression of aim9.disk_src.ops_per_sec on: > > commit: a2e459555c5f9da3e619b7e47a63f98574dc75f1 ("shmem: stable directory > offsets") > https://git.kernel.org/cg

[PATCH 6.6 01/28] maple_tree: add mt_free_one() and mt_attr() helpers

2024-10-25 Thread Yu Kuai
From: Peng Zhang commit 4f2267b58a22d972be98edef8e6b3c7a67c9fb91 upstream. Patch series "Introduce __mt_dup() to improve the performance of fork()", v7. This series introduces __mt_dup() to improve the performance of fork(). During the duplication process of mmap, all VMAs are traversed and ins

[PATCH 6.6 09/28] maple_tree: add end of node tracking to the maple state

2024-10-25 Thread Yu Kuai
From: "Liam R. Howlett" commit 31c532a8af57513228c2b12d281104198ff412b8 upstream. Analysis of the mas_for_each() iteration showed that there is a significant time spent finding the end of a node. This time can be greatly reduced if the end of the node is cached in the maple state. Care must be

Re: [PATCH] drm/panthor: Fail job creation when the group is dead

2024-10-25 Thread Steven Price
On 25/10/2024 14:21, Boris Brezillon wrote: > Userspace can use GROUP_SUBMIT errors as a trigger to check the group > state and recreate the group if it became unusable. Make sure we > report an error when the group became unusable. > > Fixes: de8548813824 ("drm/panthor: Add the scheduler logical

Re: [PATCH v9 3/5] drm: handle HAS_IOPORT dependencies

2024-10-25 Thread Thomas Zimmermann
Am 24.10.24 um 19:54 schrieb Niklas Schnelle: In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. We thus need to add HAS_IOPORT as dependency for those drivers using them. In the bochs driver there is optional MMIO support detected at runtime, warn if this is

[PATCH] drm/etnaviv: always allocate 4K for kernel ringbuffers

2024-10-25 Thread Lucas Stach
Since the kernel ringbuffers are allocated from a larger suballocated area, same as the user commandbufs, they don't need to be CPU page sized. Allocate 4KB for the kernel ring buffers, as we never use more than that. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 3 +--

Re: [PATCH] drm/panthor: Fail job creation when the group is dead

2024-10-25 Thread Liviu Dudau
On Fri, Oct 25, 2024 at 03:21:05PM +0200, Boris Brezillon wrote: > Userspace can use GROUP_SUBMIT errors as a trigger to check the group > state and recreate the group if it became unusable. Make sure we > report an error when the group became unusable. > > Fixes: de8548813824 ("drm/panthor: Add t

[PATCH 6.6 03/28] maple_tree: introduce interfaces __mt_dup() and mtree_dup()

2024-10-25 Thread Yu Kuai
From: Peng Zhang commit fd32e4e9b7646510ee9010e0d5f8b8857d48a6f7 upstream. Introduce interfaces __mt_dup() and mtree_dup(), which are used to duplicate a maple tree. They duplicate a maple tree in Depth-First Search (DFS) pre-order traversal. It uses memcopy() to copy nodes in the source tree

[PATCH 5.10] drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)

2024-10-25 Thread Artem Sdvizhkov
From: "Wachowski, Karol" commit 39bc27bd688066a63e56f7f64ad34fae03fbe3b8 upstream. Lack of check for copy-on-write (COW) mapping in drm_gem_shmem_mmap allows users to call mmap with PROT_WRITE and MAP_PRIVATE flag causing a kernel panic due to BUG_ON in vmf_insert_pfn_prot: BUG_ON((vma->vm_flags

[PATCH 6.6 27/28] libfs: fix infinite directory reads for offset dir

2024-10-25 Thread Yu Kuai
From: yangerkun commit 64a7ce76fb901bf9f9c36cf5d681328fc0fd4b5a upstream. After we switch tmpfs dir operations from simple_dir_operations to simple_offset_dir_operations, every rename happened will fill new dentry to dest dir's maple tree(&SHMEM_I(inode)->dir_offsets->mt) with a free key startin

[PATCH 6.6 05/28] maple_tree: preserve the tree attributes when destroying maple tree

2024-10-25 Thread Yu Kuai
From: Peng Zhang commit 8e50d32c7a89bde896945e4e572ef28ccd87bbf8 upstream. When destroying maple tree, preserve its attributes and then turn it into an empty tree. This allows it to be reused without needing to be reinitialized. Link: https://lkml.kernel.org/r/20231027033845.90608-10-zhangpen

[PATCH] drm/etnaviv: flush shader L1 cache after user commandstream

2024-10-25 Thread Lucas Stach
The shader L1 cache is a writeback cache for shader loads/stores and thus must be flushed before any BOs backing the shader buffers are potentially freed. Cc: sta...@vger.kernel.org Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_buffer.c | 3 ++- 1 file changed, 2 insertions(+),

Re: [PATCH] fbdev: udl: Make CONFIG_FB_DEVICE optional

2024-10-25 Thread Helge Deller
On 10/25/24 11:25, Gonzalo Silvalde Blanco wrote: The fb_udl driver currently depends on CONFIG_FB_DEVICE to create sysfs entries and access framebuffer device information. This patch wraps the relevant code blocks with #ifdef CONFIG_FB_DEVICE, allowing the driver to be built and used even if CON

Re: [PATCH] drm/sched: warn about drm_sched_job_init()'s partial init

2024-10-25 Thread Philipp Stanner
On Fri, 2024-10-25 at 02:32 +, Matthew Brost wrote: > On Wed, Oct 23, 2024 at 04:15:31PM +0200, Philipp Stanner wrote: > > drm_sched_job_init()'s name suggests that after the function > > succeeded, > > parameter "job" will be fully initialized. This is not the case; > > some > > members are on

  1   2   3   >