Re: [PATCH] dmabuf: fix dmabuf file poll uaf issue

2024-04-01 Thread zhiguojiang
As far as I can see that's not because of the DMA-buf code, but because you are somehow using this interface incorrectly. When dma_buf_poll() is called it is mandatory for the caller to hold a reference to the file descriptor on which the poll operation is executed. So adding code like "if (!

Re: [PATCH v5 04/10] drm/ci: mediatek: Refactor existing mediatek jobs

2024-04-01 Thread Vignesh Raman
Hi Helen, On 01/04/24 22:12, Helen Koike wrote: On 01/04/2024 03:12, Vignesh Raman wrote: For mediatek mt8173 and mt8183, the display driver is mediatek. Currently, in drm-ci for mediatek, only the display driver is tested. Refactor the existing mediatek jobs so that gpu driver testing jobs c

Re: [PATCH v5 08/10] drm/ci: rockchip: Refactor existing rockchip jobs

2024-04-01 Thread Vignesh Raman
Hi Helen, On 01/04/24 22:13, Helen Koike wrote: On 01/04/2024 03:12, Vignesh Raman wrote: For rockchip rk3288 and rk3399, the display driver is rockchip. Currently, in drm-ci for rockchip, only the display driver is tested. Refactor the existing rockchip jobs so that gpu driver testing jobs c

Re: [PATCH v5 09/10] drm/ci: rockchip: Add job to test panfrost GPU driver

2024-04-01 Thread Vignesh Raman
Hi Helen, On 01/04/24 22:13, Helen Koike wrote: On 01/04/2024 03:12, Vignesh Raman wrote: For rockchip rk3288 and rk3399, the GPU driver is panfrost. So add support in drm-ci to test panfrost driver for rockchip SOC and update xfails. Skip KMS tests for panfrost driver since it is not a not a

Re: [PATCH v2 25/25] sound: virtio: drop owner assignment

2024-04-01 Thread Anton Yakovlev
Hi Krzysztof, On 31.03.2024 10:44, Krzysztof Kozlowski wrote: virtio core already sets the .owner, so driver does not need to. Signed-off-by: Krzysztof Kozlowski Acked-by: Anton Yakovlev --- Depends on the first patch. --- sound/virtio/virtio_card.c | 1 - 1 file changed, 1 deletion(

Re: [PATCH v3 1/4] dt-bindings: panel: Add LG SW43408 MIPI-DSI panel

2024-04-01 Thread Krzysztof Kozlowski
On 02/04/2024 01:51, Dmitry Baryshkov wrote: > From: Sumit Semwal > > LG SW43408 is 1080x2160, 4-lane MIPI-DSI panel present on Google Pixel 3 > phones. > > Signed-off-by: Vinod Koul > Signed-off-by: Sumit Semwal > [caleb: convert to yaml] > Signed-off-by: Caleb Connolly > Signed-off-by: Dmit

[PATCH v3 3/4] arm64: dts: qcom: sc8180x: Drop flags for mdss irqs

2024-04-01 Thread Dmitry Baryshkov
The number of interrupt cells for the mdss interrupt controller is 1, meaning there should only be one cell for the interrupt number, not two. Drop the second cell containing (unused) irq flags. Fixes: 494dec9b6f54 ("arm64: dts: qcom: sc8180x: Add display and gpu nodes") Reviewed-by: Konrad Dybcio

[PATCH v3 4/4] arm64: dts: qcom: sc8180x: add dp_p1 register blocks to DP nodes

2024-04-01 Thread Dmitry Baryshkov
DisplayPort nodes must declare the dp_p1 register space in addition to dp_p0. Add corresponding resource to DisplayPort DT nodes. Fixes: 494dec9b6f54 ("arm64: dts: qcom: sc8180x: Add display and gpu nodes") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 6 -- 1 f

[PATCH v3 2/4] arm64: dts: qcom: sc8180x: drop legacy property #stream-id-cells

2024-04-01 Thread Dmitry Baryshkov
The property #stream-id-cells is legacy, it is not documented as valid for the GPU. Drop it now. Fixes: 494dec9b6f54 ("arm64: dts: qcom: sc8180x: Add display and gpu nodes") Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 1 - 1 file change

[PATCH v3 1/4] dt-bindings: display/msm: sm8150-mdss: add DP node

2024-04-01 Thread Dmitry Baryshkov
As Qualcomm SM8150 got support for the DisplayPort, add displayport@ node as a valid child to the MDSS node. Fixes: 88806318e2c2 ("dt-bindings: display: msm: dp: declare compatible string for sm8150") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/

[PATCH v3 0/4] arm64: dts: fix several display-related schema warnings

2024-04-01 Thread Dmitry Baryshkov
Fix several warnings produced by the display nodes. Please excuse me for the spam for sending v3 soon after v2. Signed-off-by: Dmitry Baryshkov --- Changes in v3: - Added tags which I forgot in v2 - Added the Fixes tag to the dp_p1 fix - Link to v2: https://lore.kernel.org/r/20240402-fd-fix-sch

[PATCH v2 4/4] arm64: dts: qcom: sc8180x: add dp_p1 register blocks to DP nodes

2024-04-01 Thread Dmitry Baryshkov
DisplayPort nodes must declare the dp_p1 register space in addition to dp_p0. Add corresponding resource to DisplayPort DT nodes. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dt

[PATCH v2 3/4] arm64: dts: qcom: sc8180x: Drop flags for mdss irqs

2024-04-01 Thread Dmitry Baryshkov
The number of interrupt cells for the mdss interrupt controller is 1, meaning there should only be one cell for the interrupt number, not two. Drop the second cell containing (unused) irq flags. Fixes: 494dec9b6f54 ("arm64: dts: qcom: sc8180x: Add display and gpu nodes") Signed-off-by: Dmitry Bary

[PATCH v2 1/4] dt-bindings: display/msm: sm8150-mdss: add DP node

2024-04-01 Thread Dmitry Baryshkov
As Qualcomm SM8150 got support for the DisplayPort, add displayport@ node as a valid child to the MDSS node. Fixes: 88806318e2c2 ("dt-bindings: display: msm: dp: declare compatible string for sm8150") Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/display/msm/qcom,sm8150-mdss.yaml

[PATCH v2 2/4] arm64: dts: qcom: sc8180x: drop legacy property #stream-id-cells

2024-04-01 Thread Dmitry Baryshkov
The property #stream-id-cells is legacy, it is not documented as valid for the GPU. Drop it now. Fixes: 494dec9b6f54 ("arm64: dts: qcom: sc8180x: Add display and gpu nodes") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v2 0/4] arm64: dts: fix several display-related schema warnings

2024-04-01 Thread Dmitry Baryshkov
Fix several warnings produced by the display nodes. Signed-off-by: Dmitry Baryshkov --- Changes in v2: - Added Fixes tag to the DP change (Abhinav) - Switched the schema patch to use contains (Krzysztof) - Link to v1: https://lore.kernel.org/r/20240326-fd-fix-schema-v1-0-4475d6d6d...@linaro.org

Re: [PATCH v5 00/10] drm/ci: Add support for GPU and display testing

2024-04-01 Thread Vignesh Raman
Hi Christian, On 01/04/24 22:39, Christian Hewitt wrote: On 1 Apr 2024, at 10:12 am, Vignesh Raman wrote: Some ARM SOCs have a separate display controller and GPU, each with different drivers. For mediatek mt8173, the GPU driver is powervr, and the display driver is mediatek. In the case of me

Re: [PATCH v11 1/9] drm/panic: Add drm panic locking

2024-04-01 Thread nerdopolis
On Thursday, March 28, 2024 8:03:43 AM EDT Jocelyn Falempe wrote: > From: Daniel Vetter > > Rough sketch for the locking of drm panic printing code. The upshot of > this approach is that we can pretty much entirely rely on the atomic > commit flow, with the pair of raw_spin_lock/unlock providing

Re: (subset) [PATCH 0/9] enabled -Wformat-truncation for clang

2024-04-01 Thread Martin K. Petersen
On Tue, 26 Mar 2024 23:37:59 +0100, Arnd Bergmann wrote: > With randconfig build testing, I found only eight files that produce > warnings with clang when -Wformat-truncation is enabled. This means > we can just turn it on by default rather than only enabling it for > "make W=1". > > Unfortunatel

[PATCH v3 4/4] drm: panel: Add LG sw43408 panel driver

2024-04-01 Thread Dmitry Baryshkov
From: Sumit Semwal LG SW43408 is 1080x2160, 4-lane MIPI-DSI panel, used in some Pixel3 phones. Signed-off-by: Sumit Semwal [vinod: Add DSC support] Signed-off-by: Vinod Koul [caleb: cleanup and support turning off the panel] Signed-off-by: Caleb Connolly [DB: partially rewrote the driver and

[PATCH v3 3/4] drm/mipi-dsi: add mipi_dsi_compression_mode_ext()

2024-04-01 Thread Dmitry Baryshkov
Add the extended version of mipi_dsi_compression_mode(). It provides a way to specify the algorithm and PPS selector. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_mipi_dsi.c | 33 +++-- include/drm/drm_mipi_dsi.h | 9 + 2 files changed, 36 inse

[PATCH v3 0/4] drm/panel: add support for LG SW43408 panel

2024-04-01 Thread Dmitry Baryshkov
The LG SW43408 panel is used on Google Pixel3 devices. For a long time we could not submit the driver, as the panel was not coming up from the reset. The panel seems to be picky about some of the delays during init and it also uses non-standard payload for MIPI_DSI_COMPRESSION_MODE. Signed-off-by:

[PATCH v3 2/4] drm/mipi-dsi: use correct return type for the DSC functions

2024-04-01 Thread Dmitry Baryshkov
The functions mipi_dsi_compression_mode() and mipi_dsi_picture_parameter_set() return 0-or-error rather than a buffer size. Follow example of other similar MIPI DSI functions and use int return type instead of size_t. Fixes: f4dea1aaa9a1 ("drm/dsi: add helpers for DSI compression mode and PPS pac

[PATCH v3 1/4] dt-bindings: panel: Add LG SW43408 MIPI-DSI panel

2024-04-01 Thread Dmitry Baryshkov
From: Sumit Semwal LG SW43408 is 1080x2160, 4-lane MIPI-DSI panel present on Google Pixel 3 phones. Signed-off-by: Vinod Koul Signed-off-by: Sumit Semwal [caleb: convert to yaml] Signed-off-by: Caleb Connolly Signed-off-by: Dmitry Baryshkov --- .../bindings/display/panel/lg,sw43408.yaml

[PATCH 2/2] drm/lima: fix void pointer to enum lima_gpu_id cast warning

2024-04-01 Thread Erico Nunes
Create a simple data struct to hold compatible data so that we don't have to do the casts to void pointer to hold data. Fixes the following warning: drivers/gpu/drm/lima/lima_drv.c:387:13: error: cast to smaller integer type 'enum lima_gpu_id' from 'const void *' Signed-off-by: Erico Nunes --

[PATCH 1/2] drm/lima: fix shared irq handling on driver remove

2024-04-01 Thread Erico Nunes
lima uses a shared interrupt, so the interrupt handlers must be prepared to be called at any time. At driver removal time, the clocks are disabled early and the interrupts stay registered until the very end of the remove process due to the devm usage. This is potentially a bug as the interrupts acc

[PATCH 0/2] drm/lima: two driver cleanups

2024-04-01 Thread Erico Nunes
Patch 1 is a fix for a crash which triggers on removing the module on kernels with CONFIG_DEBUG_SHIRQ enabled, such as the Fedora kernel. Patch 2 is a fix to this warning: drivers/gpu/drm/lima/lima_drv.c:387:13: error: cast to smaller integer type 'enum lima_gpu_id' from 'const void *' [-Wer

[PATCH 1/2] drm/lima: add mask irq callback to gp and pp

2024-04-01 Thread Erico Nunes
This is needed because we want to reset those devices in device-agnostic code such as lima_sched. In particular, masking irqs will be useful before a hard reset to prevent race conditions. Signed-off-by: Erico Nunes --- drivers/gpu/drm/lima/lima_bcast.c | 12 drivers/gpu/drm/lima/li

[PATCH 2/2] drm/lima: mask irqs in timeout path before hard reset

2024-04-01 Thread Erico Nunes
There is a race condition in which a rendering job might take just long enough to trigger the drm sched job timeout handler but also still complete before the hard reset is done by the timeout handler. This runs into race conditions not expected by the timeout handler. In some very specific cases i

[PATCH 0/2] drm/lima: fix devfreq refcount imbalance for job timeouts

2024-04-01 Thread Erico Nunes
This is a followup to https://patchwork.freedesktop.org/series/128856/ Patch 1 rev1 from that series https://patchwork.freedesktop.org/patch/574745/?series=128856&rev=1 was dropped because it needed a better solution for a race condition between the irq and the timeout handler. The proposed soluti

[PATCH] drm: ci: fix the xfails for apq8016

2024-04-01 Thread Abhinav Kumar
After IGT migrating to dynamic sub-tests, the pipe prefixes in the expected fails list are incorrect. Lets drop those to accurately match the expected fails. In addition, update the xfails list to match the current passing list. This should have ideally failed in the CI run because some tests were

[PATCH] drm/vmwgfx: Filter modes which exceed graphics memory

2024-04-01 Thread Ian Forbes
SVGA requires individual surfaces to fit within graphics memory (max_mob_pages) which means that modes with a final buffer size that would exceed graphics memory must be pruned otherwise creation will fail. This fixes an issue where VMs with low graphics memory (< 64MiB) configured with high resol

Re: [PATCH] drm/display: fix typo

2024-04-01 Thread Dmitry Baryshkov
On Fri, 19 Jan 2024 11:22:15 +0100, Oleksandr Natalenko wrote: > While studying the code I've bumped into a small typo within the > kernel-doc for two functions, apparently, due to copy-paste. > > This commit fixes "sizo" word to be "size". > > Applied to drm-misc-fixes, thanks! [1/1] drm/disp

Re: [PATCH] drm/display: fix typo

2024-04-01 Thread Dmitry Baryshkov
On Fri, 19 Jan 2024 at 12:31, Oleksandr Natalenko wrote: > > While studying the code I've bumped into a small typo within the > kernel-doc for two functions, apparently, due to copy-paste. > > This commit fixes "sizo" word to be "size". > > Signed-off-by: Oleksandr Natalenko > --- > drivers/gpu/

Re: [RFC PATCH net-next v6 02/15] net: page_pool: create hooks for custom page providers

2024-04-01 Thread Mina Almasry
On Thu, Mar 28, 2024 at 12:31 AM Christoph Hellwig wrote: > > On Tue, Mar 26, 2024 at 01:19:20PM -0700, Mina Almasry wrote: > > > > Are you envisioning that dmabuf support would be added to the block > > layer > > Yes. > > > (which I understand is part of the VFS and not driver specific), > > The

Re: [PATCH 3/3] drm: panel: Add LG sw43408 panel driver

2024-04-01 Thread Dmitry Baryshkov
On Mon, 1 Apr 2024 at 13:29, Marijn Suijten wrote: > > On 2024-03-30 16:37:08, Dmitry Baryshkov wrote: > > On Sat, 30 Mar 2024 at 12:27, Marijn Suijten > > wrote: > > > > > > On 2024-03-30 05:59:30, Dmitry Baryshkov wrote: > > > > From: Sumit Semwal > > > > > > > > LG SW43408 is 1080x2160, 4-lan

[drm-misc:topic/rust-drm 8/18] error[E0308]: mismatched types

2024-04-01 Thread kernel test robot
tree: git://anongit.freedesktop.org/drm/drm-misc topic/rust-drm head: fbe8094e2cd8106e88e348ed3ce97680d7ae9e7b commit: 5aad7a29ba6037a224c3f8ff36bfb2c82a5d3f4d [8/18] rust: add revocable objects config: x86_64-randconfig-003-20240401 (https://download.01.org/0day-ci/archive/20240402

Re: [PATCH] dmabuf: fix dmabuf file poll uaf issue

2024-04-01 Thread zhiguojiang
Hi T.J., What is the most recent kernel version you've seen the bug on? The latest kernel version of the issue we discovered is kernel-6.1.25, and kernel-5.15 also reported this issue. You are closing the dmabuf fd from another thread while it is still part of the epoll interest list? Yes, we

Re: Proposal to add CRIU support to DRM render nodes

2024-04-01 Thread Felix Kuehling
On 2024-04-01 12:56, Tvrtko Ursulin wrote: On 01/04/2024 17:37, Felix Kuehling wrote: On 2024-04-01 11:09, Tvrtko Ursulin wrote: On 28/03/2024 20:42, Felix Kuehling wrote: On 2024-03-28 12:03, Tvrtko Ursulin wrote: Hi Felix, I had one more thought while browsing around the amdgpu CRIU

Re: [PATCH v5 00/10] drm/ci: Add support for GPU and display testing

2024-04-01 Thread Christian Hewitt
> On 1 Apr 2024, at 10:12 am, Vignesh Raman wrote: > > Some ARM SOCs have a separate display controller and GPU, each with > different drivers. For mediatek mt8173, the GPU driver is powervr, > and the display driver is mediatek. In the case of mediatek mt8183, > the GPU driver is panfrost, and t

Re: [PATCH v5 03/10] drm/ci: uprev IGT and update testlist

2024-04-01 Thread Maíra Canal
On 4/1/24 03:12, Vignesh Raman wrote: Uprev IGT and add amd, v3d, vc4 and vgem specific tests to testlist and skip driver-specific tests. Also add testlist to the MAINTAINERS file and update xfails. Signed-off-by: Vignesh Raman --- v3: - New patch in series to uprev IGT and update testlist.

Re: [PATCH v5 10/10] drm/ci: add tests on vkms

2024-04-01 Thread Maíra Canal
On 4/1/24 03:12, Vignesh Raman wrote: Add job that runs igt on top of vkms. Signed-off-by: Vignesh Raman Acked-by: Jessica Zhang Tested-by: Jessica Zhang Acked-by: Maxime Ripard Signed-off-by: Helen Koike Acked-by: Maíra Canal Best Regards, - Maíra --- v4: - New patch in the serie

[PATCH 6.1 017/272] drm/vmwgfx: Fix possible null pointer derefence with invalid contexts

2024-04-01 Thread Greg Kroah-Hartman
6.1-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 517621b7060096e48e42f545fa6646fc00252eac ] vmw_context_cotable can return either an error or a null pointer and its usage sometimes went unchecked. Subsequent code

Re: Proposal to add CRIU support to DRM render nodes

2024-04-01 Thread Tvrtko Ursulin
On 01/04/2024 17:37, Felix Kuehling wrote: On 2024-04-01 11:09, Tvrtko Ursulin wrote: On 28/03/2024 20:42, Felix Kuehling wrote: On 2024-03-28 12:03, Tvrtko Ursulin wrote: Hi Felix, I had one more thought while browsing around the amdgpu CRIU plugin. It appears it relies on the KFD supp

Re: drm-misc migration to Gitlab server

2024-04-01 Thread Tvrtko Ursulin
On 12/03/2024 13:56, Maxime Ripard wrote: Hi, On Tue, Feb 20, 2024 at 09:49:25AM +0100, Maxime Ripard wrote: ## Changing the default location repo Dim gets its repos list in the drm-rerere nightly.conf file. We will need to change that file to match the gitlab repo, and drop the old cgit URL

Re: [PATCH v5 10/10] drm/ci: add tests on vkms

2024-04-01 Thread Helen Koike
On 01/04/2024 03:12, Vignesh Raman wrote: Add job that runs igt on top of vkms. Signed-off-by: Vignesh Raman Acked-by: Jessica Zhang Tested-by: Jessica Zhang Acked-by: Maxime Ripard Signed-off-by: Helen Koike Acked-by: Helen Koike Thanks Helen --- v4: - New patch in the series.

[PATCH 6.6 189/396] drm/ttm: Make sure the mapped tt pages are decrypted when needed

2024-04-01 Thread Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 71ce046327cfd3aef3f93d1c44e091395eb03f8f ] Some drivers require the mapped tt pages to be decrypted. In an ideal world this would have been handled by the dma layer

Re: [PATCH v5 09/10] drm/ci: rockchip: Add job to test panfrost GPU driver

2024-04-01 Thread Helen Koike
On 01/04/2024 03:12, Vignesh Raman wrote: For rockchip rk3288 and rk3399, the GPU driver is panfrost. So add support in drm-ci to test panfrost driver for rockchip SOC and update xfails. Skip KMS tests for panfrost driver since it is not a not a KMS driver and skip driver-specific tests. Sign

Re: [PATCH v5 08/10] drm/ci: rockchip: Refactor existing rockchip jobs

2024-04-01 Thread Helen Koike
On 01/04/2024 03:12, Vignesh Raman wrote: For rockchip rk3288 and rk3399, the display driver is rockchip. Currently, in drm-ci for rockchip, only the display driver is tested. Refactor the existing rockchip jobs so that gpu driver testing jobs can be added later and update xfails accordingly.

Re: [PATCH v5 07/10] drm/ci: meson: Add job to test panfrost GPU driver

2024-04-01 Thread Helen Koike
On 01/04/2024 03:12, Vignesh Raman wrote: For amlogic meson SOC the GPU driver is panfrost. So add support in drm-ci to test panfrost driver for amlogic meson SOC and update xfails. Skip KMS tests for panfrost driver since it is not a not a KMS driver and skip driver-specific tests. Signed-of

Re: [PATCH v5 06/10] drm/ci: meson: Refactor existing meson jobs

2024-04-01 Thread Helen Koike
On 01/04/2024 03:12, Vignesh Raman wrote: For Amlogic Meson SOC the display driver is meson. Currently, in drm-ci for meson, only the display driver is tested. Refactor the existing meson jobs so that gpu driver testing jobs can be added later and update xfails accordingly. Signed-off-by: Vig

Re: [PATCH v5 05/10] drm/ci: mediatek: Add job to test panfrost and powervr GPU driver

2024-04-01 Thread Helen Koike
On 01/04/2024 03:12, Vignesh Raman wrote: For mediatek mt8173, the GPU driver is powervr and for mediatek mt8183, the GPU driver is panfrost. So add support in drm-ci to test panfrost and powervr GPU driver for mediatek SOCs and update xfails. Powervr driver was merged in linux kernel, but the

Re: [PATCH v5 04/10] drm/ci: mediatek: Refactor existing mediatek jobs

2024-04-01 Thread Helen Koike
On 01/04/2024 03:12, Vignesh Raman wrote: For mediatek mt8173 and mt8183, the display driver is mediatek. Currently, in drm-ci for mediatek, only the display driver is tested. Refactor the existing mediatek jobs so that gpu driver testing jobs can be added later and update xfails accordingly.

Re: [PATCH v5 03/10] drm/ci: uprev IGT and update testlist

2024-04-01 Thread Helen Koike
On 01/04/2024 03:12, Vignesh Raman wrote: Uprev IGT and add amd, v3d, vc4 and vgem specific tests to testlist and skip driver-specific tests. Also add testlist to the MAINTAINERS file and update xfails. Signed-off-by: Vignesh Raman lgtm Acked-by: Helen Koike Thanks --- v3: - New p

Re: Proposal to add CRIU support to DRM render nodes

2024-04-01 Thread Felix Kuehling
On 2024-04-01 11:09, Tvrtko Ursulin wrote: On 28/03/2024 20:42, Felix Kuehling wrote: On 2024-03-28 12:03, Tvrtko Ursulin wrote: Hi Felix, I had one more thought while browsing around the amdgpu CRIU plugin. It appears it relies on the KFD support being compiled in and /dev/kfd present, c

[PATCH 6.6 003/396] drm/vmwgfx: Unmap the surface before resetting it on a plane state

2024-04-01 Thread Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 27571c64f1855881753e6f33c3186573afbab7ba ] Switch to a new plane state requires unreferencing of all held surfaces. In the work required for mob cursors the mapped

[PATCH 6.6 013/396] drm/vmwgfx: Fix possible null pointer derefence with invalid contexts

2024-04-01 Thread Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 517621b7060096e48e42f545fa6646fc00252eac ] vmw_context_cotable can return either an error or a null pointer and its usage sometimes went unchecked. Subsequent code

Re: [PATCH] drm/msm/dp: allow voltage swing / pre emphasis of 3

2024-04-01 Thread Kuogee Hsieh
On 2/3/2024 5:47 AM, Dmitry Baryshkov wrote: Both dp_link_adjust_levels() and dp_ctrl_update_vx_px() limit swing and pre-emphasis to 2, while the real maximum value for the sum of the voltage swing and pre-emphasis is 3. Fix the DP code to remove this limitation. Fixes: c943b4948b58 ("drm/msm/

[PATCH 6.7 225/432] drm/ttm: Make sure the mapped tt pages are decrypted when needed

2024-04-01 Thread Greg Kroah-Hartman
6.7-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 71ce046327cfd3aef3f93d1c44e091395eb03f8f ] Some drivers require the mapped tt pages to be decrypted. In an ideal world this would have been handled by the dma layer

[PATCH 6.7 013/432] drm/vmwgfx: Fix possible null pointer derefence with invalid contexts

2024-04-01 Thread Greg Kroah-Hartman
6.7-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 517621b7060096e48e42f545fa6646fc00252eac ] vmw_context_cotable can return either an error or a null pointer and its usage sometimes went unchecked. Subsequent code

[PATCH 6.7 003/432] drm/vmwgfx: Unmap the surface before resetting it on a plane state

2024-04-01 Thread Greg Kroah-Hartman
6.7-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 27571c64f1855881753e6f33c3186573afbab7ba ] Switch to a new plane state requires unreferencing of all held surfaces. In the work required for mob cursors the mapped

[PATCH 6.8 306/399] fbdev: Select I/O-memory framebuffer ops for SBus

2024-04-01 Thread Greg Kroah-Hartman
6.8-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Zimmermann commit a8eb93b42d7e068306ca07f51055cbcde893fea3 upstream. Framebuffer I/O on the Sparc Sbus requires read/write helpers for I/O memory. Select FB_IOMEM_FOPS accordingly. Repo

[PATCH 6.8 225/399] drm/ttm: Make sure the mapped tt pages are decrypted when needed

2024-04-01 Thread Greg Kroah-Hartman
6.8-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 71ce046327cfd3aef3f93d1c44e091395eb03f8f ] Some drivers require the mapped tt pages to be decrypted. In an ideal world this would have been handled by the dma layer

[PATCH 6.8 011/399] drm/vmwgfx: Fix possible null pointer derefence with invalid contexts

2024-04-01 Thread Greg Kroah-Hartman
6.8-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 517621b7060096e48e42f545fa6646fc00252eac ] vmw_context_cotable can return either an error or a null pointer and its usage sometimes went unchecked. Subsequent code

[PATCH 6.8 001/399] drm/vmwgfx: Unmap the surface before resetting it on a plane state

2024-04-01 Thread Greg Kroah-Hartman
6.8-stable review patch. If anyone has any objections, please let me know. -- From: Zack Rusin [ Upstream commit 27571c64f1855881753e6f33c3186573afbab7ba ] Switch to a new plane state requires unreferencing of all held surfaces. In the work required for mob cursors the mapped

Re: Proposal to add CRIU support to DRM render nodes

2024-04-01 Thread Tvrtko Ursulin
On 28/03/2024 20:42, Felix Kuehling wrote: On 2024-03-28 12:03, Tvrtko Ursulin wrote: Hi Felix, I had one more thought while browsing around the amdgpu CRIU plugin. It appears it relies on the KFD support being compiled in and /dev/kfd present, correct? AFAICT at least, it relies on that

Re: [PATCH 1/2] drm/amd/display: Introduce overlay cursor mode

2024-04-01 Thread Leo Li
On 2024-03-28 11:52, Harry Wentland wrote: On 2024-03-28 11:48, Robert Mader wrote: Hi, On 15.03.24 18:09, sunpeng...@amd.com wrote: From: Leo Li [Why] DCN is the display hardware for amdgpu. DRM planes are backed by DCN hardware pipes, which carry pixel data from one end (memory), to

Re: [PATCH 2/3] drm/mediatek: Perform iounmap on simple DDP component destruction

2024-04-01 Thread Chun-Kuang Hu
Hi, Angelo: CK Hu (胡俊光) 於 2024年3月22日 週五 下午4:49寫道: > > Hi, Angelo: > > On Thu, 2024-02-01 at 13:53 +0100, AngeloGioacchino Del Regno wrote: > > Add a new mtk_ddp_comp_destroy() function and call it in the teardown > > path of mtk_drm_drv to make sure that we unmap the iospace of the > > simple DDP

Re: [PATCH] dma-buf: Do not build debugfs related code when !CONFIG_DEBUG_FS

2024-04-01 Thread Tvrtko Ursulin
On 01/04/2024 13:45, Christian König wrote: Am 01.04.24 um 14:39 schrieb Tvrtko Ursulin: On 29/03/2024 00:00, T.J. Mercier wrote: On Thu, Mar 28, 2024 at 7:53 AM Tvrtko Ursulin wrote: From: Tvrtko Ursulin There is no point in compiling in the list and mutex operations which are only u

Patch "drm/imx: parallel-display: Remove bus flags check in imx_pd_bridge_atomic_check()" has been added to the 4.19-stable tree

2024-04-01 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/imx: parallel-display: Remove bus flags check in imx_pd_bridge_atomic_check() to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The fi

Re: [PATCH v5 1/2] dt-bindings: backlight: Add Texas Instruments LM3509

2024-04-01 Thread Rob Herring
On Sat, Mar 30, 2024 at 03:59:24PM +0100, Patrick Gansterer wrote: > Add Device Tree bindings for Texas Instruments LM3509 - a > High Efficiency Boost for White LED's and/or OLED Displays > > Signed-off-by: Patrick Gansterer > Reviewed-by: Krzysztof Kozlowski > Reviewed-by: Daniel Thompson > --

Re: [PATCH] dma-buf: Do not build debugfs related code when !CONFIG_DEBUG_FS

2024-04-01 Thread Christian König
Am 01.04.24 um 14:39 schrieb Tvrtko Ursulin: On 29/03/2024 00:00, T.J. Mercier wrote: On Thu, Mar 28, 2024 at 7:53 AM Tvrtko Ursulin wrote: From: Tvrtko Ursulin There is no point in compiling in the list and mutex operations which are only used from the dma-buf debugfs code, if debugfs i

Re: [PATCH] dma-buf: Do not build debugfs related code when !CONFIG_DEBUG_FS

2024-04-01 Thread Tvrtko Ursulin
On 29/03/2024 00:00, T.J. Mercier wrote: On Thu, Mar 28, 2024 at 7:53 AM Tvrtko Ursulin wrote: From: Tvrtko Ursulin There is no point in compiling in the list and mutex operations which are only used from the dma-buf debugfs code, if debugfs is not compiled in. Put the code in questions b

Re: [PATCH v2] drm/radeon/radeon_display: Decrease the size of allocated memory

2024-04-01 Thread Christian König
Am 30.03.24 um 17:34 schrieb Erick Archer: This is an effort to get rid of all multiplications from allocation functions in order to prevent integer overflows [1] [2]. In this case, the memory allocated to store RADEONFB_CONN_LIMIT pointers to "drm_connector" structures can be avoided. This is b

Re: [PATCH] dmabuf: fix dmabuf file poll uaf issue

2024-04-01 Thread Christian König
Am 27.03.24 um 03:29 schrieb Zhiguo Jiang: The issue is a UAF issue of dmabuf file fd. Throght debugging, we found that the dmabuf file fd is added to the epoll event listener list, and when it is released, it is not removed from the epoll list, which leads to the UAF(Use-After-Free) issue. As

Re: [PATCH v9 1/3] drm/buddy: Implement tracking clear page feature

2024-04-01 Thread Paneer Selvam, Arunpravin
Hi Matthew, On 3/28/2024 10:18 PM, Matthew Auld wrote: On 28/03/2024 16:07, Paneer Selvam, Arunpravin wrote: Hi Matthew, On 3/26/2024 11:39 PM, Matthew Auld wrote: On 18/03/2024 21:40, Arunpravin Paneer Selvam wrote: - Add tracking clear page feature. - Driver should enable the DRM_BUDDY_CL

Re: [PATCH 2/3] drm/mipi-dsi: add mipi_dsi_compression_mode_raw()

2024-04-01 Thread Marijn Suijten
On 2024-03-30 05:59:29, Dmitry Baryshkov wrote: > The LG SW43408 panel requires sending non-standard data as a part of the > MIPI_DSI_COMPRESSION_MODE packet. Rather than hacking existing > mipi_dsi_compression_mode() add mipi_dsi_compression_mode_raw(), which > accepts raw data buffer and length.

Re: [PATCH 3/3] drm: panel: Add LG sw43408 panel driver

2024-04-01 Thread Marijn Suijten
On 2024-03-30 16:37:08, Dmitry Baryshkov wrote: > On Sat, 30 Mar 2024 at 12:27, Marijn Suijten > wrote: > > > > On 2024-03-30 05:59:30, Dmitry Baryshkov wrote: > > > From: Sumit Semwal > > > > > > LG SW43408 is 1080x2160, 4-lane MIPI-DSI panel, used in some Pixel3 > > > phones. > > > > > > Whatev

Re: [PATCH] drm/etnaviv: drop driver owner assignment

2024-04-01 Thread Christian Gmeiner
> > Core in platform_driver_register() already sets the .owner, so driver > does not need to. Whatever is set here will be anyway overwritten by > main driver calling platform_driver_register(). > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Christian Gmeiner > --- > drivers/gpu/drm/etna