RE: [PATCH 0/5] udmbuf bug fix and some improvements

2024-08-01 Thread Kasireddy, Vivek
Hi Huan, > This patchset attempts to fix some errors in udmabuf and remove the > upin_list structure. > > Some of this fix just gather the patches which I upload before. > > Patch1 > === > Try to remove page fault mmap and direct map it. > Due to current udmabuf has already obtained and pinned

[PATCH 2/2] drm/vmwgfx: Fix prime with external buffers

2024-08-01 Thread Zack Rusin
Make sure that for external buffers mapping goes through the dma_buf interface instead of trying to access pages directly. External buffers might not provide direct access to readable/writable pages so to make sure the bo's created from external dma_bufs can be read dma_buf interface has to be

[PATCH 1/2] drm/vmwgfx: Prevent unmapping active read buffers

2024-08-01 Thread Zack Rusin
The kms paths keep a persistent map active to read and compare the cursor buffer. These maps can race with each other in simple scenario where: a) buffer "a" mapped for update b) buffer "a" mapped for compare c) do the compare d) unmap "a" for compare e) update the cursor f) unmap "a" for update

[PATCH v2] drm: Add documentation for struct drm_pane_size_hint

2024-08-01 Thread abid-sayyad
Fixed warning for the following: ./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct member 'width' not described in 'drm_plane_size_hint' ./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct member

[PATCH] [PATCH v2] drm: Add documentation for struct drm_pane_size_hint

2024-08-01 Thread abid-sayyad
Fixed warning for the following: ./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct member 'width' not described in 'drm_plane_size_hint' ./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct member

Re: [PATCH] drm: bridge: adv7511: Accept audio sample widths of 32 bits via I2S

2024-08-01 Thread Laurent Pinchart
On Mon, Jul 29, 2024 at 10:15:55AM +0200, Ricard Wanderlof wrote: > > Hi, > > I submitted the patch below a while ago (two months) but as far as I can > make out it has not been included. There was an initial concern from > Dmitry Baryshkov which was subsequently addressed but no other

[Bug 219117] amdgpu: amdgpu_device_ip_init failed

2024-08-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219117 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 219118] Linux 6.10.x [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout VM fault / GPU fault detected

2024-08-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219118 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

Re: [PATCH 0/2] Use pcim_request_region() in vboxvideo

2024-08-01 Thread Bjorn Helgaas
On Mon, Jul 29, 2024 at 11:36:24AM +0200, Philipp Stanner wrote: > Hi everyone, > > Now that we've got the simplified PCI devres API available we can slowly > start using it in drivers and step by step phase the more problematic > API out. > > vboxvideo currently does not have a region request,

Re: [PATCH 0/2] Add MSM8996/MSM8953 dpu catalog

2024-08-01 Thread Barnabás Czémán
Should i resend this patch set? On June 28, 2024 4:39:38 PM GMT+02:00, "Barnabás Czémán" wrote: >This patch series add dpu support for MSM8996/MSM8953 devices. > >Note, by default these platforms are still handled by the MDP5 driver >unless the `msm.prefer_mdp5=false' parameter is provided. >

[Bug 219118] New: Linux 6.10.x [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout VM fault / GPU fault detected

2024-08-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219118 Bug ID: 219118 Summary: Linux 6.10.x [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout VM fault / GPU fault detected Product: Drivers Version: 2.5 Hardware: All

Re: [PATCH 3/4] drm/msm/a5xx: fix races in preemption evaluation stage

2024-08-01 Thread Connor Abbott
On Thu, Aug 1, 2024 at 3:26 PM Vladimir Lypak wrote: > > On Thu, Aug 01, 2024 at 01:52:32PM +0100, Connor Abbott wrote: > > On Thu, Aug 1, 2024 at 1:25 PM Vladimir Lypak > > wrote: > > > > > > On Mon, Jul 29, 2024 at 06:26:45PM +0100, Connor Abbott wrote: > > > > On Thu, Jul 11, 2024 at 11:10 

[PATCH] drm/i915/gt: Delete sysfs entries for engines on driver unload

2024-08-01 Thread Krzysztof Niemiec
While the sysfs entries for engines are added in intel_engines_init() during driver load, the corresponding function intel_engines_release() does not correctly get rid of them. This can lead to a UAF if, after failed initialization (for example when gt is set wedged on init), we try to access the

[PATCH v5 2/3] drm/printer: Allow NULL data in devcoredump printer

2024-08-01 Thread Matthew Brost
We want to determine the size of the devcoredump before writing it out. To that end, we will run the devcoredump printer with NULL data to get the size, alloc data based on the generated offset, then run the devcorecump again with a valid data pointer to print. This necessitates not writing data

[PATCH v5 3/3] drm/xe: Faster devcoredump

2024-08-01 Thread Matthew Brost
The current algorithm to read out devcoredump is O(N*N) where N is the size of coredump due to usage of the drm_coredump_printer in xe_devcoredump_read. Switch to a O(N) algorithm which prints the devcoredump into a readable format in snapshot work and update xe_devcoredump_read to memcpy from the

[PATCH v5 1/3] drm/xe: Take ref to VM in delayed snapshot

2024-08-01 Thread Matthew Brost
Kernel BO's don't take a ref to the VM, we need the VM for the delayed snapshot, so take a ref to the VM in delayed snapshot. v2: - Check for lrc_bo before taking a VM ref (CI) - Check lrc_bo->vm before taking / dropping a VM ref (CI) - Drop VM in xe_lrc_snapshot_free v5: - Fix commit message

[PATCH v5 0/3] Faster devcoredump and fixes

2024-08-01 Thread Matthew Brost
Combine [1] [2] for complete series to speedup devcoredump and fix it. [1] https://patchwork.freedesktop.org/series/136541/ [2] https://patchwork.freedesktop.org/series/136545/ Matthew Brost (3): drm/xe: Take ref to VM in delayed snapshot drm/printer: Allow NULL data in devcoredump printer

Re: [PATCH 0/2] Use pcim_request_region() in vboxvideo

2024-08-01 Thread Hans de Goede
Hi Bjorn, On 7/31/24 9:36 PM, Bjorn Helgaas wrote: > On Mon, Jul 29, 2024 at 11:36:24AM +0200, Philipp Stanner wrote: >> Hi everyone, >> >> Now that we've got the simplified PCI devres API available we can slowly >> start using it in drivers and step by step phase the more problematic >> API out.

Re: [PATCH 0/2] Use pcim_request_region() in vboxvideo

2024-08-01 Thread Hans de Goede
Hi, On 7/29/24 11:36 AM, Philipp Stanner wrote: > Hi everyone, > > Now that we've got the simplified PCI devres API available we can slowly > start using it in drivers and step by step phase the more problematic > API out. > > vboxvideo currently does not have a region request, so it is a

Re: [PATCH v2 2/3] drm/rockchip: Explicitly include bits header

2024-08-01 Thread Krzysztof Kozlowski
On 01/08/2024 04:25, Cristian Ciocaltea wrote: > Driver makes use of the BIT() macro, but relies on the bits header being > implicitly included. > > Explicitly pull the header in to avoid potential build failures in some > configurations. > > While at it, reorder include directives

Re: [PATCH v2 1/3] dt-bindings: display: rockchip: Add schema for RK3588 HDMI TX Controller

2024-08-01 Thread Krzysztof Kozlowski
On 01/08/2024 11:50, Cristian Ciocaltea wrote: > On 8/1/24 6:37 AM, Rob Herring (Arm) wrote: >> >> On Thu, 01 Aug 2024 05:25:52 +0300, Cristian Ciocaltea wrote: >>> Rockchip RK3588 SoC integrates the Synopsys DesignWare HDMI 2.1 >>> Quad-Pixel (QP) TX controller IP. >>> >>> Since this is a new IP

RE: [PATCH v4 2/3] drm/printer: Allow NULL data in devcoredump printer

2024-08-01 Thread Cavitt, Jonathan
-Original Message- From: Brost, Matthew Sent: Thursday, August 1, 2024 7:30 AM To: Cavitt, Jonathan Cc: intel...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; maarten.lankho...@linux.intel.com; Vivi, Rodrigo Subject: Re: [PATCH v4 2/3] drm/printer: Allow NULL data in

Re: [PATCH v4 2/3] drm/printer: Allow NULL data in devcoredump printer

2024-08-01 Thread Matthew Brost
On Thu, Aug 01, 2024 at 08:00:21AM -0600, Cavitt, Jonathan wrote: > -Original Message- > From: Brost, Matthew > Sent: Wednesday, July 31, 2024 5:03 PM > To: Cavitt, Jonathan > Cc: intel...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; > maarten.lankho...@linux.intel.com;

Re: [RFC PATCH 3/3] drm/log: Introduce a new boot logger to draw the kmsg on the screen

2024-08-01 Thread John Ogness
On 2024-08-01, Jocelyn Falempe wrote: > I think I can also register one console for each drm driver, which > will simplify drm_log even further. (currently it would mean having a > circular buffer and work function for each driver which is a bit too > much). Indeed. > Do you know if there is a

Re: [PATCH v4 2/3] drm/printer: Allow NULL data in devcoredump printer

2024-08-01 Thread Matthew Brost
On Thu, Aug 01, 2024 at 11:05:21AM +0300, Jani Nikula wrote: > On Wed, 31 Jul 2024, Matthew Brost wrote: > > Useful to determine size of devcoreump before writing it out. > > I find it useful to have this special case documented, with an example, > so it's easier to see how handy this really is.

Re: [PATCH 3/4] drm/msm/a5xx: fix races in preemption evaluation stage

2024-08-01 Thread Vladimir Lypak
On Thu, Aug 01, 2024 at 01:52:32PM +0100, Connor Abbott wrote: > On Thu, Aug 1, 2024 at 1:25 PM Vladimir Lypak > wrote: > > > > On Mon, Jul 29, 2024 at 06:26:45PM +0100, Connor Abbott wrote: > > > On Thu, Jul 11, 2024 at 11:10 AM Vladimir Lypak > > > wrote: > > > > > > > > On A5XX GPUs when

Re: [PATCH 1/2] dt-bindings: display: bridge: Add schema for Synopsys DW HDMI QP TX IP

2024-08-01 Thread Krzysztof Kozlowski
On 01/08/2024 11:29, Cristian Ciocaltea wrote: > On 8/1/24 11:38 AM, Krzysztof Kozlowski wrote:> On 01/08/2024 04:05, Cristian > Ciocaltea wrote: >>> Add dt-binding schema containing the common properties for the Synopsys >>> DesignWare HDMI QP TX controller. >>> >>> Note this is not a full

Re: [PATCH 2/2] drm/bridge: synopsys: Add DW HDMI QP TX Controller driver

2024-08-01 Thread Krzysztof Kozlowski
On 01/08/2024 11:43, Cristian Ciocaltea wrote: > On 8/1/24 11:50 AM, Krzysztof Kozlowski wrote: >> On 01/08/2024 04:05, Cristian Ciocaltea wrote: >>> The Synopsys DesignWare HDMI 2.1 Quad-Pixel (QP) TX Controller supports >>> the following features, among others: >> >> ... >> >>> + >>> +void

RE: [PATCH v4 2/3] drm/printer: Allow NULL data in devcoredump printer

2024-08-01 Thread Cavitt, Jonathan
-Original Message- From: Brost, Matthew Sent: Wednesday, July 31, 2024 5:03 PM To: Cavitt, Jonathan Cc: intel...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; maarten.lankho...@linux.intel.com; Vivi, Rodrigo Subject: Re: [PATCH v4 2/3] drm/printer: Allow NULL data in

Re: [RFC PATCH 3/3] drm/log: Introduce a new boot logger to draw the kmsg on the screen

2024-08-01 Thread Jocelyn Falempe
On 01/08/2024 12:51, John Ogness wrote: On 2024-08-01, Jocelyn Falempe wrote: * It uses a circular buffer so the console->write() callback is very quick, and will never stall. * Drawing is done asynchronously using a workqueue. For CON_NBCON, neither of the above points are

Re: [PATCH 2/4] drm/msm/a5xx: properly clear preemption records on resume

2024-08-01 Thread Akhil P Oommen
On Thu, Jul 11, 2024 at 10:00:19AM +, Vladimir Lypak wrote: > Two fields of preempt_record which are used by CP aren't reset on > resume: "data" and "info". This is the reason behind faults which happen > when we try to switch to the ring that was active last before suspend. > In addition

[PATCH] drm/client: Use common display mode for cloned outputs

2024-08-01 Thread Thomas Zimmermann
For cloned outputs, don't pick a default resolution of 1024x768 as most hardware can do better. Instead look through the modes of all connectors to find a common mode for all of them. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_client_modeset.c | 54 +--- 1

Re: [PATCH v3 2/2] drm/amd: Add power_saving_policy drm property to eDP connectors

2024-08-01 Thread Jani Nikula
On Thu, 01 Aug 2024, Thomas Zimmermann wrote: > Hi > > Am 01.08.24 um 14:33 schrieb Jani Nikula: >> On Mon, 01 Jul 2024, Xaver Hugl wrote: >>> Am Do., 20. Juni 2024 um 22:22 Uhr schrieb Xaver Hugl >>> : Merging can only happen once a real world userspace application has implemented

Re: [PATCH 3/4] drm/msm/a5xx: fix races in preemption evaluation stage

2024-08-01 Thread Connor Abbott
On Thu, Aug 1, 2024 at 1:25 PM Vladimir Lypak wrote: > > On Mon, Jul 29, 2024 at 06:26:45PM +0100, Connor Abbott wrote: > > On Thu, Jul 11, 2024 at 11:10 AM Vladimir Lypak > > wrote: > > > > > > On A5XX GPUs when preemption is used it's invietable to enter a soft > > > lock-up state in which GPU

Introduction and Seeking Advice on X.Org Evoc Mentorship Program

2024-08-01 Thread 22-Priyansu Rout
Hello everyone, Hello, my name is Priyansu Rout I am from India. I am right now in my second year of B. Tech in Computer Science and Engineering. I have been developing in blockchain projects and now I would like to get experience in X. Org, especially on the kernel level. I am very much

Re: [PATCH v3 2/2] drm/amd: Add power_saving_policy drm property to eDP connectors

2024-08-01 Thread Thomas Zimmermann
Hi Am 01.08.24 um 14:33 schrieb Jani Nikula: On Mon, 01 Jul 2024, Xaver Hugl wrote: Am Do., 20. Juni 2024 um 22:22 Uhr schrieb Xaver Hugl : Merging can only happen once a real world userspace application has implemented support for it. I'll try to do that sometime next week in KWin Here's

Re: [PATCH 1/4] drm/msm/a5xx: disable preemption in submits by default

2024-08-01 Thread Akhil P Oommen
On Mon, Jul 15, 2024 at 02:00:10PM -0700, Rob Clark wrote: > On Thu, Jul 11, 2024 at 3:02 AM Vladimir Lypak > wrote: > > > > Fine grain preemption (switching from/to points within submits) > > requires extra handling in command stream of those submits, especially > > when rendering with tiling

Re: [PATCH v3 2/2] drm/amd: Add power_saving_policy drm property to eDP connectors

2024-08-01 Thread Jani Nikula
On Mon, 01 Jul 2024, Xaver Hugl wrote: > Am Do., 20. Juni 2024 um 22:22 Uhr schrieb Xaver Hugl : >> Merging can only happen once a real world userspace application has >> implemented support for it. I'll try to do that sometime next week in >> KWin > > Here's the promised implementation: >

Re: [PATCH] backlight: pwm_bl: print errno for probe errors

2024-08-01 Thread Lee Jones
On Thu, 01 Aug 2024, Martin Kepplinger-Novaković wrote: > This makes debugging often easier. > > Signed-off-by: Martin Kepplinger-Novaković > > --- > drivers/video/backlight/pwm_bl.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) Please refrain from signing your mails like

Re: [PATCH 3/4] drm/msm/a5xx: fix races in preemption evaluation stage

2024-08-01 Thread Vladimir Lypak
On Mon, Jul 29, 2024 at 06:26:45PM +0100, Connor Abbott wrote: > On Thu, Jul 11, 2024 at 11:10 AM Vladimir Lypak > wrote: > > > > On A5XX GPUs when preemption is used it's invietable to enter a soft > > lock-up state in which GPU is stuck at empty ring-buffer doing nothing. > > This appears as

[Bug 219117] New: amdgpu: amdgpu_device_ip_init failed

2024-08-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219117 Bug ID: 219117 Summary: amdgpu: amdgpu_device_ip_init failed Product: Drivers Version: 2.5 Kernel Version: 6.11.0-rc1 Hardware: All OS: Linux Status: NEW

[PULL] drm-misc-next

2024-08-01 Thread Thomas Zimmermann
Hi Dave, Sima, here's the first PR for drm-misc-next for what will become Linux v6.12. It's the ususal mix of new features and bug fixes. Nouveau got a larger refactoring, there are some improvements within TTM, work on the panic screen progresses, mgag200 now supports VBLANK interrupts. Best

[PATCH rdma-next 6/8] RDMA: Pass uverbs_attr_bundle as part of '.reg_user_mr_dmabuf' API

2024-08-01 Thread Leon Romanovsky
From: Yishai Hadas Pass uverbs_attr_bundle as part of '.reg_user_mr_dmabuf' API instead of udata. This enables passing some new ioctl attributes to the drivers, as will be introduced in the next patches for mlx5 driver. Change the involved drivers accordingly. Signed-off-by: Yishai Hadas

[PATCH rdma-next 8/8] RDMA/mlx5: Introduce GET_DATA_DIRECT_SYSFS_PATH ioctl

2024-08-01 Thread Leon Romanovsky
From: Yishai Hadas Introduce the 'GET_DATA_DIRECT_SYSFS_PATH' ioctl to return the sysfs path of the affiliated 'data direct' device for a given device. Signed-off-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/std_types.c | 55 +++-

[PATCH rdma-next 7/8] RDMA/mlx5: Add support for DMABUF MR registrations with Data-direct

2024-08-01 Thread Leon Romanovsky
From: Yishai Hadas Add support for DMABUF MR registrations with Data-direct device. Upon userspace calling to register a DMABUF MR with the data direct bit set, the below algorithm will be followed. 1) Obtain a pinned DMABUF umem from the IB core using the user input parameters (FD, offset,

[PATCH rdma-next 2/8] RDMA/mlx5: Introduce the 'data direct' driver

2024-08-01 Thread Leon Romanovsky
From: Yishai Hadas Introduce the 'data direct' driver for a ConnectX-8 Data Direct device. The 'data direct' driver functions as the affiliated DMA device for one or more capable mlx5_ib devices. This DMA device, as the name suggests, is used exclusively for DMA operations. It can be considered

[PATCH rdma-next 4/8] RDMA/umem: Add support for creating pinned DMABUF umem with a given dma device

2024-08-01 Thread Leon Romanovsky
From: Yishai Hadas Add support for creating pinned DMABUF umem with a specified DMA device instead of the DMA device of the given IB device. This API will be utilized in the upcoming patches of the series when multiple path DMAs are implemented. Signed-off-by: Yishai Hadas Signed-off-by: Leon

[PATCH rdma-next 5/8] RDMA/umem: Introduce an option to revoke DMABUF umem

2024-08-01 Thread Leon Romanovsky
From: Yishai Hadas Introduce an option to revoke DMABUF umem. This option will retain the umem allocation while revoking its DMA mapping. Furthermore, any subsequent attempts to map the pages should fail once the umem has been revoked. This functionality will be utilized in the upcoming

[PATCH rdma-next 3/8] RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device

2024-08-01 Thread Leon Romanovsky
From: Yishai Hadas Add the NET device initialization flow to utilize the 'data direct' device. When a NET mlx5_ib device is capable of 'data direct', the following sequence of actions will occur: - Find its affiliated 'data direct' VUID via a firmware command. - Create its own private PD and

[PATCH mlx5-next 1/8] net/mlx5: Add IFC related stuff for data direct

2024-08-01 Thread Leon Romanovsky
From: Yishai Hadas Add IFC related stuff for data direct. Signed-off-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- include/linux/mlx5/mlx5_ifc.h | 51 +++ 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/include/linux/mlx5/mlx5_ifc.h

[PATCH rdma-next 0/8] Introducing Multi-Path DMA Support for mlx5 RDMA Driver

2024-08-01 Thread Leon Romanovsky
From: Leon Romanovsky >From Yishai, Overview This patch series aims to enable multi-path DMA support, allowing an mlx5 RDMA device to issue DMA commands through multiple paths. This feature is critical for improving performance and reaching line rate in certain environments where

Re: [PATCH 2/9] drm/i915: Use backlight power constants

2024-08-01 Thread Jani Nikula
On Wed, 31 Jul 2024, Thomas Zimmermann wrote: > Hi > > Am 31.07.24 um 14:56 schrieb Jani Nikula: >> On Wed, 31 Jul 2024, Thomas Zimmermann wrote: >>> Replace FB_BLANK_ constants with their counterparts from the >>> backlight subsystem. The values are identical, so there's no >>> change in

Re: [PATCH v2 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-08-01 Thread Tejas Vipin
On 8/1/24 4:39 PM, Jani Nikula wrote: > On Tue, 30 Jul 2024, Tejas Vipin wrote: >> Add more functions that can benefit from being multi style and mark >> older variants as deprecated to eventually convert all mipi_dsi functions >> to multi style. > > What? > > Why would a lot of regular DSI

Re: [PATCH] drm: Add documentation for struct drm_pane_size_hint

2024-08-01 Thread Jani Nikula
On Thu, 01 Aug 2024, abid-sayyad wrote: > Fixed warning for the following: > ./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct > member > 'width' not described in 'drm_plane_size_hint' > ./include/uapi/drm/drm_mode.h:869: warning: Function

Re: [PATCH v2 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-08-01 Thread Jani Nikula
On Tue, 30 Jul 2024, Tejas Vipin wrote: > Add more functions that can benefit from being multi style and mark > older variants as deprecated to eventually convert all mipi_dsi functions > to multi style. What? Why would a lot of regular DSI commands that are not exclusively used for one time

Re: [PATCH 1/5] udmabuf: cancel mmap page fault, direct map it

2024-08-01 Thread Huan Yang
在 2024/8/1 18:50, Christian König 写道: Am 01.08.24 um 12:45 schrieb Huan Yang: The current udmabuf mmap uses a page fault mechanism to populate the vma. However, the current udmabuf has already obtained and pinned the folio upon completion of the creation.This means that the physical memory

Re: [PATCH] backlight: pwm_bl: print errno for probe errors

2024-08-01 Thread Kepplinger-Novakovic Martin
Am Donnerstag, dem 01.08.2024 um 12:09 +0200 schrieb Uwe Kleine-König: > Hello Martin, > > On Thu, Aug 01, 2024 at 09:52:01AM +, Kepplinger-Novakovic Martin > wrote: > > Am Donnerstag, dem 01.08.2024 um 11:26 +0200 schrieb Uwe Kleine- > > König: > > > On Thu, Aug 01, 2024 at 11:12:55AM +0200,

[PATCH] backlight: pwm_bl: print errno for probe errors

2024-08-01 Thread Martin Kepplinger-Novaković
This makes debugging often easier. Signed-off-by: Martin Kepplinger-Novaković --- drivers/video/backlight/pwm_bl.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index f1005bd0c41e3..cc7e7af71891f

Re: [PATCH] backlight: pwm_bl: print errno for probe errors

2024-08-01 Thread Kepplinger-Novakovic Martin
Am Donnerstag, dem 01.08.2024 um 11:26 +0200 schrieb Uwe Kleine-König: > Hello Martin, > > On Thu, Aug 01, 2024 at 11:12:55AM +0200, Martin Kepplinger-Novaković > wrote: > > This makes debugging often easier. > > > > Signed-off-by: Martin Kepplinger-Novaković > > > > --- > >  

[PATCH] drm: Add documentation for struct drm_pane_size_hint

2024-08-01 Thread abid-sayyad
Fixed warning for the following: ./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct member 'width' not described in 'drm_plane_size_hint' ./include/uapi/drm/drm_mode.h:869: warning: Function parameter or struct member

[PATCH] [V2] drm: panel-orientation-quirks: Also handle rotation for DeckHD equipped LCDs units

2024-08-01 Thread Marco Rodolfi
From: Marco Rodolfi This patch also take account of the different resolution for the aftermarket DeckHD panel, which hasn't been accounted for yet in kernel, since these quirks are applied based on BIOS information + panel resolution. This patch correct that problem and make the panel oriented

Re: [PATCH 4/5] udmabuf: add get_sg_table helper function

2024-08-01 Thread Christian König
Am 01.08.24 um 12:45 schrieb Huan Yang: Currently, there are three duplicate pieces of code that retrieve sg_table and update uduf->sg. Since the sgt is used to populate the page in both mmap and vmap.It is necessary to ensure that ubuf->sg is set correctly. That is a really bad idea. Why are

[syzbot] [dri?] WARNING in drm_wait_one_vblank (2)

2024-08-01 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:6342649c33d2 Merge tag 'block-6.11-20240726' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1443cb0398 kernel config: https://syzkaller.appspot.com/x/.config?x=5efb917b1462a973

Re: [PATCH 3/5] udmabuf: fix vmap_udmabuf error page set

2024-08-01 Thread Christian König
Am 01.08.24 um 12:45 schrieb Huan Yang: Currently vmap_udmabuf set page's array by each folio. But, ubuf->folios is only contain's the folio's head page. That mean we repeatedly mapped the folio head page to the vmalloc area. This patch fix it, set each folio's page correct, so that pages

Re: [PATCH 2/5] udmabuf: change folios array from kmalloc to kvmalloc

2024-08-01 Thread Christian König
Am 01.08.24 um 12:45 schrieb Huan Yang: When PAGE_SIZE 4096, MAX_PAGE_ORDER 10, 64bit machine, page_alloc only support 4MB. If above this, trigger this warn and return NULL. udmabuf can change size limit, if change it to 3072(3GB), and then alloc 3GB udmabuf, will fail create. [ 4080.876581]

RE: [PATCH v2 3/9] dt-bindings: display: renesas,rzg2l-du: Document RZ/G2UL DU bindings

2024-08-01 Thread Biju Das
Hi Laurent Pinchart, Thanks for the feedback. > -Original Message- > From: Laurent Pinchart > Sent: Wednesday, July 31, 2024 2:47 PM > Subject: Re: [PATCH v2 3/9] dt-bindings: display: renesas,rzg2l-du: Document > RZ/G2UL DU bindings > > Hi Biju, > > On Mon, Jul 29, 2024 at

Re: [RFC PATCH 3/3] drm/log: Introduce a new boot logger to draw the kmsg on the screen

2024-08-01 Thread John Ogness
On 2024-08-01, Jocelyn Falempe wrote: > * It uses a circular buffer so the console->write() callback is very >quick, and will never stall. > * Drawing is done asynchronously using a workqueue. For CON_NBCON, neither of the above points are necessary. You can draw directly from the

Re: [PATCH 1/5] udmabuf: cancel mmap page fault, direct map it

2024-08-01 Thread Christian König
Am 01.08.24 um 12:45 schrieb Huan Yang: The current udmabuf mmap uses a page fault mechanism to populate the vma. However, the current udmabuf has already obtained and pinned the folio upon completion of the creation.This means that the physical memory has already been acquired, rather than

[PATCH 5/5] udmabuf: remove folio pin list

2024-08-01 Thread Huan Yang
Currently, udmabuf handles folio by creating an unpin list to record each folio obtained from the list and unpinning them when released. To maintain this approach, many data structures have been established. However, maintaining this type of data structure requires a significant amount of memory

[PATCH 0/5] udmbuf bug fix and some improvements

2024-08-01 Thread Huan Yang
This patchset attempts to fix some errors in udmabuf and remove the upin_list structure. Some of this fix just gather the patches which I upload before. Patch1 === Try to remove page fault mmap and direct map it. Due to current udmabuf has already obtained and pinned the folio upon completion of

[PATCH 3/5] udmabuf: fix vmap_udmabuf error page set

2024-08-01 Thread Huan Yang
Currently vmap_udmabuf set page's array by each folio. But, ubuf->folios is only contain's the folio's head page. That mean we repeatedly mapped the folio head page to the vmalloc area. This patch fix it, set each folio's page correct, so that pages array contains right page, and then map into

[PATCH 1/5] udmabuf: cancel mmap page fault, direct map it

2024-08-01 Thread Huan Yang
The current udmabuf mmap uses a page fault mechanism to populate the vma. However, the current udmabuf has already obtained and pinned the folio upon completion of the creation.This means that the physical memory has already been acquired, rather than being accessed dynamically. The current page

[PATCH 2/5] udmabuf: change folios array from kmalloc to kvmalloc

2024-08-01 Thread Huan Yang
When PAGE_SIZE 4096, MAX_PAGE_ORDER 10, 64bit machine, page_alloc only support 4MB. If above this, trigger this warn and return NULL. udmabuf can change size limit, if change it to 3072(3GB), and then alloc 3GB udmabuf, will fail create. [ 4080.876581] [ cut here ] [

[PATCH 4/5] udmabuf: add get_sg_table helper function

2024-08-01 Thread Huan Yang
Currently, there are three duplicate pieces of code that retrieve sg_table and update uduf->sg. Since the sgt is used to populate the page in both mmap and vmap.It is necessary to ensure that ubuf->sg is set correctly. This patch add a helper function, if ubuf->sg exist, just return it. Or else,

Re: [RFC PATCH 0/3] drm/log: Introduce a new boot logger to draw the kmsg on the screen

2024-08-01 Thread John Ogness
On 2024-08-01, Jocelyn Falempe wrote: > * I tried to use the new nbcon interface, but didn't get any message > from the write_atomic() callback, but the goal is to use that when > it's ready. Be aware that the write_atomic() callback _must_ also print from NMI context. write_thread() may be

Re: [PATCH] backlight: pwm_bl: print errno for probe errors

2024-08-01 Thread Uwe Kleine-König
Hello Martin, On Thu, Aug 01, 2024 at 09:52:01AM +, Kepplinger-Novakovic Martin wrote: > Am Donnerstag, dem 01.08.2024 um 11:26 +0200 schrieb Uwe Kleine-König: > > On Thu, Aug 01, 2024 at 11:12:55AM +0200, Martin Kepplinger-Novaković > > wrote: > > > diff --git

[RFC PATCH 3/3] drm/log: Introduce a new boot logger to draw the kmsg on the screen

2024-08-01 Thread Jocelyn Falempe
drm_log is a simple logger that uses the drm_client API to print the kmsg boot log on the screen. This is not a full replacement to fbcon, as it will only print the kmsg. It will never handle user input, or a terminal because this is better done in userspace. Design decisions: * It uses the

[RFC PATCH 2/3] drm/panic: Move drawing functions to drm_draw

2024-08-01 Thread Jocelyn Falempe
Move the color conversions, blit and fill functions to drm_draw.c, so that they can be re-used by drm_log. drm_draw is internal to the drm subsystem, and shouldn't be used by gpu drivers. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/Kconfig | 5 + drivers/gpu/drm/Makefile| 1 +

[RFC PATCH 1/3] [NOT FOR REVIEW] drm/panic: Squash of pending series

2024-08-01 Thread Jocelyn Falempe
This is a squashed patch of: https://patchwork.freedesktop.org/series/136377/ https://patchwork.freedesktop.org/series/135944/ This is to avoid to rebase when they are merged. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/Kconfig | 31 + drivers/gpu/drm/Makefile|

[RFC PATCH 0/3] drm/log: Introduce a new boot logger to draw the kmsg on the screen

2024-08-01 Thread Jocelyn Falempe
drm_log is a simple logger that uses the drm_client API to print the kmsg boot log on the screen. This is not a full replacement to fbcon, as it will only print the kmsg. It will never handle user input, or a terminal because this is better done in userspace. If you're curious on how it looks

Re: [PATCH v2 1/3] dt-bindings: display: rockchip: Add schema for RK3588 HDMI TX Controller

2024-08-01 Thread Cristian Ciocaltea
On 8/1/24 6:37 AM, Rob Herring (Arm) wrote: > > On Thu, 01 Aug 2024 05:25:52 +0300, Cristian Ciocaltea wrote: >> Rockchip RK3588 SoC integrates the Synopsys DesignWare HDMI 2.1 >> Quad-Pixel (QP) TX controller IP. >> >> Since this is a new IP block, quite different from those used in the >>

Re: [PATCH 2/2] drm/bridge: synopsys: Add DW HDMI QP TX Controller driver

2024-08-01 Thread Cristian Ciocaltea
On 8/1/24 11:50 AM, Krzysztof Kozlowski wrote: > On 01/08/2024 04:05, Cristian Ciocaltea wrote: >> The Synopsys DesignWare HDMI 2.1 Quad-Pixel (QP) TX Controller supports >> the following features, among others: > > ... > >> + >> +void dw_hdmi_qp_unbind(struct dw_hdmi_qp *hdmi) >> +{ >> +} >>

Re: [PATCH 1/2] dt-bindings: display: bridge: Add schema for Synopsys DW HDMI QP TX IP

2024-08-01 Thread Cristian Ciocaltea
On 8/1/24 11:38 AM, Krzysztof Kozlowski wrote:> On 01/08/2024 04:05, Cristian Ciocaltea wrote: >> Add dt-binding schema containing the common properties for the Synopsys >> DesignWare HDMI QP TX controller. >> >> Note this is not a full dt-binding specification, but is meant to be >> referenced

Re: [PATCH] backlight: pwm_bl: print errno for probe errors

2024-08-01 Thread Uwe Kleine-König
Hello Martin, On Thu, Aug 01, 2024 at 11:12:55AM +0200, Martin Kepplinger-Novaković wrote: > This makes debugging often easier. > > Signed-off-by: Martin Kepplinger-Novaković > > --- > drivers/video/backlight/pwm_bl.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff

Re: [PATCH v15 01/29] drm/connector: Introduce an HDMI connector initialization function

2024-08-01 Thread Thomas Zimmermann
Hi Am 27.05.24 um 15:57 schrieb Maxime Ripard: A lot of the various HDMI drivers duplicate some logic that depends on the HDMI spec itself and not really a particular hardware implementation. Output BPC or format selection, infoframe generation are good examples of such areas. This creates a

Re: [Linux-stm32] [PATCH RESEND v3 0/3] Update STM DSI PHY driver

2024-08-01 Thread Raphaël Gallais-Pou
Le 29/07/2024 à 15:28, Yanjun Yang a écrit : On Fri, Jul 26, 2024 at 09:55:35AM +0200, Philippe CORNU wrote: On 7/22/24 10:38, Yanjun Yang wrote: This patch (commit id:185f99b614427360) seems to break the dsi of stm32f469 chip. I'm not familiar with the drm and the clock framework, maybe

[PULL] drm-misc-fixes

2024-08-01 Thread Maxime Ripard
Hi Dave, Daniel, Here's this week drm-misc-fixes PR Maxime drm-misc-fixes-2024-08-01: A couple drm_panic fixes, several v3d fixes to increase the new timestamp API safety, several fixes for vmwgfx for various modesetting issues, PM fixes for ast, async flips improvements and two fixes for

Re: [PATCH v3 0/2] drm: minimum backlight overrides and implementation for amdgpu

2024-08-01 Thread Hans de Goede
Hi, On 7/31/24 10:55 PM, Daniel Vetter wrote: > On Wed, Jul 31, 2024 at 08:40:12PM +0300, Jani Nikula wrote: >> On Wed, 31 Jul 2024, Thomas Weißschuh wrote: >>> The value of "min_input_signal" returned from ATIF on a Framework AMD 13 >>> is "12". This leads to a fairly bright minimum display

Re: [PATCH 2/2] drm/bridge: synopsys: Add DW HDMI QP TX Controller driver

2024-08-01 Thread Krzysztof Kozlowski
On 01/08/2024 04:05, Cristian Ciocaltea wrote: > The Synopsys DesignWare HDMI 2.1 Quad-Pixel (QP) TX Controller supports > the following features, among others: ... > + > +void dw_hdmi_qp_unbind(struct dw_hdmi_qp *hdmi) > +{ > +} > +EXPORT_SYMBOL_GPL(dw_hdmi_qp_unbind); This looks like quite

Re: [PATCH v4] drm/mediatek: dsi: Add dsi per-frame lp code for mt8188

2024-08-01 Thread AngeloGioacchino Del Regno
Il 01/08/24 10:11, Shuijing Li ha scritto: Adding the per-frame lp function of mt8188, which can keep HFP in HS and reduce the time required for each line to enter and exit low power. Per Frame LP: |<--One Active Frame>|

Re: [PATCH 1/2] dt-bindings: display: bridge: Add schema for Synopsys DW HDMI QP TX IP

2024-08-01 Thread Krzysztof Kozlowski
On 01/08/2024 04:05, Cristian Ciocaltea wrote: > Add dt-binding schema containing the common properties for the Synopsys > DesignWare HDMI QP TX controller. > > Note this is not a full dt-binding specification, but is meant to be > referenced by platform-specific bindings for this IP core.

Re: [PATCH v2 1/2] drm: bridge: samsung-dsim: Initialize bridge on attach

2024-08-01 Thread Alexander Stein
Hi, with more and more patches for TC9595 support got meged into linux-next, only a few remain on my patch stack. This is one of them and is necessary for DP support: Tested-by: Alexander Stein Am Dienstag, 25. Juni 2024, 14:26:10 CEST schrieb Marek Vasut: > Initialize the bridge on attach

Re: [PATCH] drm: mediatek: Drop unnecessary check for property presence

2024-08-01 Thread AngeloGioacchino Del Regno
Il 31/07/24 22:13, Rob Herring (Arm) ha scritto: of_property_read_u32() returns -EINVAL if a property is not present, so the preceeding check for presence with of_find_property() can be dropped. Really, what the errno is shouldn't matter. Either the property can be read and used or it can't and

Re: [PATCH v15 00/29] drm/connector: Create HDMI Connector infrastructure

2024-08-01 Thread Maxime Ripard
Hi Hans, On Wed, Jul 31, 2024 at 04:56:16PM GMT, Hans Verkuil wrote: > Hi Maxime, > > On 27/05/2024 15:57, Maxime Ripard wrote: > > > > Hans Verkuil also expressed interest in implementing a mechanism in v4l2 > > to retrieve infoframes from HDMI receiver and implementing a tool to > > decode

[PATCH v4] drm/mediatek: dsi: Add dsi per-frame lp code for mt8188

2024-08-01 Thread Shuijing Li
Adding the per-frame lp function of mt8188, which can keep HFP in HS and reduce the time required for each line to enter and exit low power. Per Frame LP: |<--One Active Frame>| --_____

Re: [PATCH v4 2/3] drm/printer: Allow NULL data in devcoredump printer

2024-08-01 Thread Jani Nikula
On Wed, 31 Jul 2024, Matthew Brost wrote: > Useful to determine size of devcoreump before writing it out. I find it useful to have this special case documented, with an example, so it's easier to see how handy this really is. BR, Jani. > > Cc: Maarten Lankhorst > Signed-off-by: Matthew Brost

Re: [PATCH v2] drm/edid: add CTA Video Format Data Block support

2024-08-01 Thread Jani Nikula
On Wed, 31 Jul 2024, Hamza Mahfooz wrote: > Video Format Data Blocks (VFDBs) contain the necessary information that > needs to be fed to the Optimized Video Timings (OVT) Algorithm. > Also, we require OVT support to cover modes that aren't supported by > earlier standards (e.g. CVT). So, parse

linux-next: build warnings after merge of the drm-misc tree

2024-08-01 Thread Stephen Rothwell
Hi all, After merging the drm-misc tree, today's linux-next build (htmldocs) produced these warnings: Documentation/gpu/drm-kms:538: drivers/gpu/drm/drm_connector.c:1641: ERROR: Unexpected indentation. Documentation/gpu/drm-kms:538: drivers/gpu/drm/drm_connector.c:1643: WARNING: Block quote

[PULL] drm-intel-fixes

2024-08-01 Thread Joonas Lahtinen
Hi Dave & Sima, Just three smaller fixups. CI is again all over the place after -rc1, but below changes shouldn't make it any worse. Regards, Joonas *** drm-intel-fixes-2024-08-01: - Static analysis fix for int overflow - Fix for HDCP2_STREAM_STATUS macro and removal of PWR_CLK_STATE for

Re: [PATCH v2 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-07-31 Thread Tejas Vipin
On 8/1/24 2:59 AM, Doug Anderson wrote: > Hi, > > On Mon, Jul 29, 2024 at 11:07 PM Tejas Vipin wrote: >> +/** >> + * mipi_dsi_dcs_get_display_brightness_multi() - gets the current >> brightness value >> + *of the display >> + * @ctx: Context for multiple DSI transactions >> + *

  1   2   3   4   5   6   7   8   9   10   >