[PATCH -next 3/3] drm/kmb: Add missing clk_disable_unprepare in kmb_dsi_clk_enable

2024-08-02 Thread Gaosheng Cui
Add the missing clk_disable_unprepare() before return in kmb_dsi_clk_enable(). Signed-off-by: Gaosheng Cui --- drivers/gpu/drm/kmb/kmb_dsi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/kmb/kmb_dsi.c b/drivers/gpu/drm/kmb/kmb_dsi.c index cf7cf0b07541..02141ac593c6 10064

[PATCH -next 0/3] Add missing clk_disable_unprepare

2024-08-02 Thread Gaosheng Cui
Add missing clk_disable_unprepare, thanks! Gaosheng Cui (3): drm/exynos: Add missing clk_disable_unprepare in exynos_fimd_resume drm/gem: Add missing clk_disable_unprepare in ade_power_up drm/kmb: Add missing clk_disable_unprepare in kmb_dsi_clk_enable drivers/gpu/drm/exynos/exynos_drm_fim

[PATCH -next 1/3] drm/exynos: Add missing clk_disable_unprepare in exynos_fimd_resume

2024-08-02 Thread Gaosheng Cui
Add the missing clk_disable_unprepare() before return in exynos_fimd_resume(). Signed-off-by: Gaosheng Cui --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index f

[PATCH -next 2/3] drm/gem: Add missing clk_disable_unprepare in ade_power_up

2024-08-02 Thread Gaosheng Cui
Add the missing clk_disable_unprepare() before return in ade_power_up(). Signed-off-by: Gaosheng Cui --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_

Re: [PATCH] staging: vme_user: vme_bridge.h: Document mutex in vme_dma_resource structure

2024-08-02 Thread Dan Carpenter
On Sat, Aug 03, 2024 at 05:48:14AM +0530, Riyan Dhiman wrote: > Adhere to Linux kernel coding style > > Reported by checkpatch: > > CHECK: mutex definition without comment > > Proof for comment: > > 1. The mutex is used to protect access to the 'running' list > (line 1798 tsi148_dma_list_exec f

Re: [PATCH v5 1/2] drm/loongson: Introduce component framework support

2024-08-02 Thread kernel test robot
Hi Sui, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master v6.11-rc1 next-20240802] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to

Re: [PATCH 3/4] arm64: dts: qcom: sdm670: add gpu

2024-08-02 Thread Richard Acayan
On Mon, Jul 29, 2024 at 09:38:48PM -0400, Richard Acayan wrote: > The Snapdragon 670 has the Adreno A615 GPU. Add it along with its device > tree dependencies. > > Signed-off-by: Richard Acayan > --- > arch/arm64/boot/dts/qcom/sdm670.dtsi | 168 +++ > 1 file changed, 168 i

Re: 6.10/bisected/regression - Since commit e356d321d024 in the kernel log appears the message "MES failed to respond to msg=MISC (WAIT_REG_MEM)" which were never seen before

2024-08-02 Thread Mikhail Gavrilov
On Wed, Jul 24, 2024 at 10:16 PM Mikhail Gavrilov wrote: > > https://patchwork.freedesktop.org/patch/605201/ > For which kernel is this patch intended? The patch is not applied on > top of d67978318827. I am able to apply this patch on top of e4fc196f5ba3 and the issue is gone. Tested-by: Mikhai

[PATCH v2 2/2] drm/msm/dpu: don't play tricks with debug macros

2024-08-02 Thread Dmitry Baryshkov
DPU debugging macros need to be converted to a proper drm_debug_* macros, however this is a going an intrusive patch, not suitable for a fix. Wire DPU_DEBUG and DPU_DEBUG_DRIVER to always use DRM_DEBUG_DRIVER to make sure that DPU debugging messages always end up in the drm debug messages and are c

[PATCH v2 1/2] drm/msm/dpu1: don't choke on disabling the writeback connector

2024-08-02 Thread Dmitry Baryshkov
During suspend/resume process all connectors are explicitly disabled and then reenabled. However resume fails because of the connector_status check: [ 1185.831970] [dpu error]connector not connected 3 It doesn't make sense to check for the Writeback connected status (and other drivers don't perfo

[PATCH v2 0/2] drm/msm/dpu: two fixes targeting 6.11

2024-08-02 Thread Dmitry Baryshkov
Leonard Lausen reported an issue with suspend/resume of the sc7180 devices. Fix the WB atomic check, which caused the issue. Also make sure that DPU debugging logs are always directed to the drm_debug / DRIVER so that usual drm.debug masks work in an expected way. Signed-off-by: Dmitry Baryshkov

RE: [PATCH 2/2] drm/i915/gem: Fix Virtual Memory mapping boundaries calculation

2024-08-02 Thread Cavitt, Jonathan
-Original Message- From: Intel-gfx On Behalf Of Andi Shyti Sent: Friday, August 2, 2024 1:39 AM To: intel-gfx ; dri-devel Cc: Jann Horn ; Jani Nikula ; Joonas Lahtinen ; Vivi, Rodrigo ; Tvrtko Ursulin ; Jann Horn ; Chris Wilson ; Niemiec, Krzysztof ; Andi Shyti ; Auld, Matthew ; An

RE: [PATCH 1/2] drm/i915/gem: Adjust vma offset for framebuffer mmap offset

2024-08-02 Thread Cavitt, Jonathan
-Original Message- From: Intel-gfx On Behalf Of Andi Shyti Sent: Friday, August 2, 2024 1:39 AM To: intel-gfx ; dri-devel Cc: Jann Horn ; Jani Nikula ; Joonas Lahtinen ; Vivi, Rodrigo ; Tvrtko Ursulin ; Jann Horn ; Chris Wilson ; Niemiec, Krzysztof ; Andi Shyti ; Auld, Matthew ; An

Re: [PATCH] drm/rockchip: cdn-dp: Clean up a few logged messages

2024-08-02 Thread Dragan Simic
On 2024-07-25 11:33, Dragan Simic wrote: Hello all, Just checking, is this patch good enough to be accepted? If not, is there some other preferred way for cleaning up the produced messages? Just a brief reminder... On 2024-07-04 01:32, Dragan Simic wrote: Clean up a few logged messages,

Re: [PATCH] drm/amd/display: remove unneeded semicolon

2024-08-02 Thread David Tadokoro
> No functional modification involved. > > ./drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c:6463:166-167: > Unneeded semicolon. > > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9633 > Signed-off-by: Jiapeng Chong > --- > .../dis

Re: [git pull] drm fixes for 6.11-rc2

2024-08-02 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Aug 2024 15:08:04 +1000: > https://gitlab.freedesktop.org/drm/kernel.git tags/drm-fixes-2024-08-02 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/29b4a6996c244f0d360537d6a4a0996468372c17 Thank you! -- Deet-doot-dot, I am a bot. ht

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

2024-08-02 Thread Sebastian Wick
On Fri, Aug 2, 2024 at 4:37 PM Harry Wentland wrote: > > On 2024-08-02 09:28, Sebastian Wick wrote: > > I'm very unhappy about how this has played out. > > > > We have a new sysfs property that controls a feature of the display > > path that has been set to a default(!) which changes the color > >

[PATCH v9 17/17] drm/vkms: Add support for DRM_FORMAT_R*

2024-08-02 Thread Louis Chauvet
This add the support for: - R1/R2/R4/R8 R1 format was tested with [1] and [2]. [1]: https://lore.kernel.org/r/20240313-new_rotation-v2-0-6230fd5ca...@bootlin.com [2]: https://lore.kernel.org/igt-dev/20240306-b4-kms_tests-v1-0-8fe451efd...@bootlin.com/ Reviewed-by: Pekka Paalanen Signed-off-by

[PATCH v9 15/17] drm/vkms: Create KUnit tests for YUV conversions

2024-08-02 Thread Louis Chauvet
From: Arthur Grillo Create KUnit tests to test the conversion between YUV and RGB. Test each conversion and range combination with some common colors. The code used to compute the expected result can be found in comment. [Louis Chauvet: - fix minor formating issues (whitespace, double line) - c

[PATCH v9 16/17] drm/vkms: Add how to run the Kunit tests

2024-08-02 Thread Louis Chauvet
From: Arthur Grillo Now that we have KUnit tests, add instructions on how to run them. Signed-off-by: Arthur Grillo Signed-off-by: Louis Chauvet --- Documentation/gpu/vkms.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/gpu/vkms.rst b/Documentation/gpu/vkms.

[PATCH v9 13/17] drm/vkms: Add range and encoding properties to the plane

2024-08-02 Thread Louis Chauvet
From: Arthur Grillo Now that the driver internally handles these quantization ranges and YUV encoding matrices, expose the UAPI for setting them. Signed-off-by: Arthur Grillo [Louis Chauvet: retained only relevant parts, updated the commit message] Acked-by: Pekka Paalanen Signed-off-by: Louis

[PATCH v9 14/17] drm/vkms: Drop YUV formats TODO

2024-08-02 Thread Louis Chauvet
From: Arthur Grillo VKMS has support for YUV formats now. Remove the task from the TODO list. Signed-off-by: Arthur Grillo Signed-off-by: Louis Chauvet --- Documentation/gpu/vkms.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/gpu/vkms.rst b/Documentati

[PATCH v9 12/17] drm/vkms: Add YUV support

2024-08-02 Thread Louis Chauvet
From: Arthur Grillo Add support to the YUV formats bellow: - NV12/NV16/NV24 - NV21/NV61/NV42 - YUV420/YUV422/YUV444 - YVU420/YVU422/YVU444 The conversion from yuv to rgb is done with fixed-point arithmetic, using 32.32 fixed-point numbers and the drm_fixed helpers. To do the conversion, a spec

[PATCH v9 11/17] drm/vkms: Remove useless drm_rotation_simplify

2024-08-02 Thread Louis Chauvet
As all the rotation are now supported by VKMS, this simplification does not make sense anymore, so remove it. Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_plane.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/

[PATCH v9 10/17] drm/vkms: Re-introduce line-per-line composition algorithm

2024-08-02 Thread Louis Chauvet
Re-introduce a line-by-line composition algorithm for each pixel format. This allows more performance by not requiring an indirection per pixel read. This patch is focused on readability of the code. Line-by-line composition was introduced by [1] but rewritten back to pixel-by-pixel algorithm in [

[PATCH v9 09/17] drm/vkms: Introduce pixel_read_direction enum

2024-08-02 Thread Louis Chauvet
The pixel_read_direction enum is useful to describe the reading direction in a plane. It avoids using the rotation property of DRM, which not practical to know the direction of reading. This patch also introduce two helpers, one to compute the pixel_read_direction from the DRM rotation property, an

[PATCH v9 08/17] drm/vkms: Avoid computing blending limits inside pre_mul_alpha_blend

2024-08-02 Thread Louis Chauvet
The pre_mul_alpha_blend is dedicated to blending, so to avoid mixing different concepts (coordinate calculation and color management), extract the x_limit and x_dst computation outside of this helper. It also increases the maintainability by grouping the computation related to coordinates in the sa

[PATCH v9 06/17] drm/vkms: Use const for input pointers in pixel_read an pixel_write functions

2024-08-02 Thread Louis Chauvet
As the pixel_read and pixel_write function should never modify the input buffer, mark those pointers const. Reviewed-by: Pekka Paalanen Reviewed-by: Maíra Canal Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_drv.h | 4 ++-- drivers/gpu/drm/vkms/vkms_formats.c | 20 ++--

[PATCH v9 07/17] drm/vkms: Update pixels accessor to support packed and multi-plane formats.

2024-08-02 Thread Louis Chauvet
Introduce the usage of block_h/block_w to compute the offset and the pointer of a pixel. The previous implementation was specialized for planes with block_h == block_w == 1. To avoid confusion and allow easier implementation of tiled formats. It also remove the usage of the deprecated format field

[PATCH v9 02/17] drm/vkms: Use drm_frame directly

2024-08-02 Thread Louis Chauvet
From: Arthur Grillo Remove intermidiary variables and access the variables directly from drm_frame. These changes should be noop. Signed-off-by: Arthur Grillo Acked-by: Pekka Paalanen Reviewed-by: Maíra Canal Reviewed-by: Louis Chauvet [Louis Chauvet: Applied review from Maíra] Signed-off-by

[PATCH v9 05/17] drm/vkms: Add dummy pixel_read/pixel_write callbacks to avoid NULL pointers

2024-08-02 Thread Louis Chauvet
Introduce two callbacks which does nothing. They are used in replacement of NULL and it avoid kernel OOPS if this NULL is called. If those callback are used, it means that there is a mismatch between what formats are announced by atomic_check and what is realy supported by atomic_update. Acked-by

[PATCH v9 04/17] drm/vkms: Add typedef and documentation for pixel_read and pixel_write functions

2024-08-02 Thread Louis Chauvet
Introduce two typedefs: pixel_read_t and pixel_write_t. It allows the compiler to check if the passed functions take the correct arguments. Such typedefs will help ensuring consistency across the code base in case of update of these prototypes. Rename input/output variable in a consistent way betw

[PATCH v9 03/17] drm/vkms: write/update the documentation for pixel conversion and pixel write functions

2024-08-02 Thread Louis Chauvet
Add some documentation on pixel conversion functions. Update of outdated comments for pixel_write functions. Signed-off-by: Louis Chauvet Acked-by: Pekka Paalanen --- drivers/gpu/drm/vkms/vkms_composer.c | 7 drivers/gpu/drm/vkms/vkms_drv.h | 15 - drivers/gpu/drm/vkms/vkms_f

[PATCH v9 01/17] drm/vkms: Code formatting

2024-08-02 Thread Louis Chauvet
Few no-op changes to remove double spaces and fix wrong alignments. Reviewed-by: Pekka Paalanen Reviewed-by: Maíra Canal Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_composer.c | 10 +- drivers/gpu/drm/vkms/vkms_crtc.c | 6 ++ drivers/gpu/drm/vkms/vkms_drv.c

[PATCH v9 00/17] drm/vkms: Reimplement line-per-line pixel conversion for plane reading

2024-08-02 Thread Louis Chauvet
This patchset is the second version of [1]. It is almost a complete rewrite to use a line-by-line algorithm for the composition. During the development of this series Pekka and Arthur found an issue in drm core. The YUV part of this series depend on the fix [9]. I'll let Arthur extract it and subm

[PATCH v2] drm/i915: Explicitly cast divisor and use div_u64()

2024-08-02 Thread Thorsten Blum
As the comment explains, the if check ensures that the divisor oa_period is a u32. Explicitly cast oa_period to u32 to remove the following Coccinelle/coccicheck warning reported by do_div.cocci: WARNING: do_div() does a 64-by-32 division, please consider using div64_u64 instead Use the prefer

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

2024-08-02 Thread Hamza Mahfooz
On 8/1/24 03:35, Jani Nikula wrote: 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 stan

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

2024-08-02 Thread Thomas Weißschuh
Hi, On 2024-08-01 10:52:55+, Hans de Goede wrote: > 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 > >>>

Re: [PATCH v1] drm/panel-edp: Fix HKC MB116AN01 name

2024-08-02 Thread Doug Anderson
Hi, On Fri, Aug 2, 2024 at 12:06 AM Terry Hsiao wrote: > > Rename HKC MB116AN01 from Unknown to MB116AN01 > > Signed-off-by: Terry Hsiao > --- > drivers/gpu/drm/panel/panel-edp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panel/panel-edp.c > b/driv

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

2024-08-02 Thread Michel Dänzer
On 2024-08-01 20:32, Kasireddy, Vivek wrote: > 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. >>

Re: [PATCH 1/2] Revert "drm: Introduce 'power saving policy' drm property"

2024-08-02 Thread Harry Wentland
On 2024-08-02 10:59, Hamza Mahfooz wrote: > This reverts commit 76299a557f36d624ca32500173ad7856e1ad93c0. > > It was merged without meeting userspace requirements. > > Signed-off-by: Hamza Mahfooz Series is: Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/drm_connector.c | 48

Re: [REGRESSION] Brightness at max level after waking up from sleep on AMD Laptop

2024-08-02 Thread Hamza Mahfooz
On 7/31/24 02:38, Linux regression tracking (Thorsten Leemhuis) wrote: [+amd-glx, +lkml, +dri-devel] On 27.07.24 18:52, serg.parti...@gmail.com wrote: After updating from 6.8.9 to 6.9.1 I noticed a bug on my HP Envy x360 with AMD Ryzen 5 4500U. [...] After waking up from sleep brightness is s

Re: [PATCH] gpu: drm: use for_each_endpoint_of_node()

2024-08-02 Thread Laurent Pinchart
Tomi, could you please push this through drm-misc ? On Tue, Jul 30, 2024 at 12:34:40AM +, Kuninori Morimoto wrote: > We already have for_each_endpoint_of_node(), don't use > of_graph_get_next_endpoint() directly. Replace it. > > Signed-off-by: Kuninori Morimoto > Acked-by: Dmitry Baryshkov

[PATCH 2/2] Revert "drm/amd: Add power_saving_policy drm property to eDP connectors"

2024-08-02 Thread Hamza Mahfooz
This reverts commit 9d8c094ddab05db88d183ba82e23be807848cad8. It was merged without meeting userspace requirements. Signed-off-by: Hamza Mahfooz --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 4 -- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 52 ++- .../gpu/drm/amd/dis

[PATCH 1/2] Revert "drm: Introduce 'power saving policy' drm property"

2024-08-02 Thread Hamza Mahfooz
This reverts commit 76299a557f36d624ca32500173ad7856e1ad93c0. It was merged without meeting userspace requirements. Signed-off-by: Hamza Mahfooz --- drivers/gpu/drm/drm_connector.c | 48 - include/drm/drm_connector.h | 2 -- include/drm/drm_mode_config.h |

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

2024-08-02 Thread Harry Wentland
On 2024-08-02 09:28, Sebastian Wick wrote: > I'm very unhappy about how this has played out. > > We have a new sysfs property that controls a feature of the display > path that has been set to a default(!) which changes the color > behavior! This broke color management for everyone who is on a dev

Re: [PATCH] phy: qcom: com-qmp-combo: fix swing and pre-emphasis table for sm8350

2024-08-02 Thread Vinod Koul
On 25-07-24, 15:06, Abhinav Kumar wrote: > Fix the voltage swing and pre-emphasis tables for sm8350 as the current > one do not match the hardware docs. > > Fixes: ef14aff107bd ("phy: qcom: com-qmp-combo: add SM8350 & SM8450 support") > Signed-off-by: Abhinav Kumar > --- > drivers/phy/qualcomm/p

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

2024-08-02 Thread Vladimir Lypak
On Thu, Aug 01, 2024 at 06:46:10PM +0530, Akhil P Oommen wrote: > 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 swi

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

2024-08-02 Thread Sebastian Wick
I'm very unhappy about how this has played out. We have a new sysfs property that controls a feature of the display path that has been set to a default(!) which changes the color behavior! This broke color management for everyone who is on a device which supports this feature. What should have be

Re: [PATCH V2 09/16] drm/vc4: v3d: simplify clock retrieval

2024-08-02 Thread Stefan Wahren
Hi Maíra, Am 02.08.24 um 14:56 schrieb Maíra Canal: Hi Stefan, On 7/31/24 13:41, Stefan Wahren wrote: Hi Maíra, Am 30.07.24 um 13:23 schrieb Maíra Canal: On 7/28/24 10:00, Stefan Wahren wrote: Common pattern of handling deferred probe can be simplified with dev_err_probe() and devm_clk_get_

Re: [PATCH V2 09/16] drm/vc4: v3d: simplify clock retrieval

2024-08-02 Thread Maíra Canal
Hi Stefan, On 7/31/24 13:41, Stefan Wahren wrote: Hi Maíra, Am 30.07.24 um 13:23 schrieb Maíra Canal: On 7/28/24 10:00, Stefan Wahren wrote: Common pattern of handling deferred probe can be simplified with dev_err_probe() and devm_clk_get_optional(). This results in much less code. Signed-of

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

2024-08-02 Thread Xaver Hugl
Am Do., 1. Aug. 2024 um 14:34 Uhr 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

[PATCH][next] drm/amd/display: remove extraneous ; after statements

2024-08-02 Thread Colin Ian King
There are a several statements with two following semicolons, replace these with just one semicolon. Signed-off-by: Colin Ian King --- .../drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c | 2 +- .../dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c| 2 +- .../display/dc/dml2/d

Re: bisected/regression: choopy youtube video on Ryzen IGP - 0ddd2ae586d2 drm/ttm: increase ttm pre-fault value to PMD size

2024-08-02 Thread Christian König
I'm still scratching my head what the heck this could be. Increasing the TTM prefault number has minimal more CPU overhead on the first access but makes subsequent accesses to the same buffer faster (because the buffer is already completely present). So as long as Chrome didn't wrote some sin

Re: bisected/regression: choopy youtube video on Ryzen IGP - 0ddd2ae586d2 drm/ttm: increase ttm pre-fault value to PMD size

2024-08-02 Thread Yanko Kaneti
Hi, So, can't reproduce this any more with with recent rawhide (rc1+). Tried also with the same old kernels but this time its with newer mesa and google-chrome (126 -> 127). The same scenario as before now works ok. Cheers and sorry for the noise. - Yanko On Wed, 2024-07-24 at 10:13 +0300, Yank

Re: [PATCH] drm/amdgpu: add dce6 drm_panic support

2024-08-02 Thread Christian König
Am 02.08.24 um 09:17 schrieb Lu Yao: Add support for the drm_panic module, which displays a pretty user friendly message on the screen when a Linux kernel panic occurs. Signed-off-by: Lu Yao --- The patch can work properly on the TTY, but after start X, drawn image is messy, it looks like the d

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

2024-08-02 Thread Jani Nikula
On Fri, 02 Aug 2024, Thomas Zimmermann wrote: > Hi > > Am 02.08.24 um 10:03 schrieb Jani Nikula: >> On Thu, 01 Aug 2024, Thomas Zimmermann wrote: >>> For cloned outputs, don't pick a default resolution of 1024x768 as >>> most hardware can do better. Instead look through the modes of all >>> conne

[Bug 219117] amdgpu: amdgpu_device_ip_init failed

2024-08-02 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219117 Jean-Christophe Guillain (jean-christo...@guillain.net) changed: What|Removed |Added Resolution|ANSWERED|

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

2024-08-02 Thread Thomas Zimmermann
Hi Am 02.08.24 um 10:03 schrieb Jani Nikula: On Thu, 01 Aug 2024, Thomas Zimmermann wrote: 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: Tho

Re: [PATCH 2/2] drm/i915/gem: Fix Virtual Memory mapping boundaries calculation

2024-08-02 Thread Jann Horn
On Fri, Aug 2, 2024 at 10:39 AM Andi Shyti wrote: > Calculating the size of the mapped area as the lesser value > between the requested size and the actual size does not consider > the partial mapping offset. This can cause page fault access. > > Fix the calculation of the starting and ending addr

[PATCH 2/2] drm/i915/gem: Fix Virtual Memory mapping boundaries calculation

2024-08-02 Thread Andi Shyti
Calculating the size of the mapped area as the lesser value between the requested size and the actual size does not consider the partial mapping offset. This can cause page fault access. Fix the calculation of the starting and ending addresses, the total size is now deduced from the difference bet

[PATCH 1/2] drm/i915/gem: Adjust vma offset for framebuffer mmap offset

2024-08-02 Thread Andi Shyti
When mapping a framebuffer object, the virtual memory area (VMA) offset ('vm_pgoff') should be adjusted by the start of the 'vma_node' associated with the object. This ensures that the VMA offset is correctly aligned with the corresponding offset within the GGTT aperture. Increment vm_pgoff by the

[PATCH 0/2] Fix mmap memory boundary calculation

2024-08-02 Thread Andi Shyti
Hi, this series fixes the memory limits calculation (start, end), in order to avoid access to addresses not belonging to the mapped page. This series has been reviewed in other communities but, because it needs to go through drm-tip, I am proposing it again here in the intel-gfx mailing list. Ja

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

2024-08-02 Thread Andi Shyti
Hi Krzysztof, On Thu, Aug 01, 2024 at 05:40:48PM +0200, Krzysztof Niemiec wrote: > 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 >

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

2024-08-02 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 para

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

2024-08-02 Thread Jani Nikula
On Thu, 01 Aug 2024, Thomas Zimmermann wrote: > 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

[PATCH v1] drm/panel-edp: Fix HKC MB116AN01 name

2024-08-02 Thread Terry Hsiao
Rename HKC MB116AN01 from Unknown to MB116AN01 Signed-off-by: Terry Hsiao --- drivers/gpu/drm/panel/panel-edp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index 2733366b02b0..7183df26 100644 --- a

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

2024-08-02 Thread jyri . sarha
July 31, 2024 at 3:17 PM, "Thomas Zimmermann" mailto:tzimmerm...@suse.de?to=%22Thomas%20Zimmermann%22%20%3Ctzimmermann%40suse.de%3E > wrote: > > Replace FB_BLANK_ constants with their counterparts from the > backlight subsystem. The values are identical, so there's no > change in functionality o

Re: [PATCH v4 RESEND] drm/client: fix null pointer dereference in drm_client_modeset_probe

2024-08-02 Thread Thomas Zimmermann
Hi Am 02.08.24 um 06:47 schrieb Ma Ke: In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is assigned to modeset->mode, which will lead to a possible NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. Cc: sta...@vger.kernel.org Fixes: cf1

Re: [PATCH] drm/test: fix the gem shmem test to map the sg table.

2024-08-02 Thread Maxime Ripard
On Mon, 15 Jul 2024 18:35:51 +1000, Dave Airlie wrote: > The test here creates an sg table, but never maps it, when > we get to drm_gem_shmem_free, the helper tries to unmap and this > causes warnings on some platforms and debug kernels. > > This also sets a 64-bit dma mask, as I see an swiotlb wa

[PATCH] drm/amdgpu: add dce6 drm_panic support

2024-08-02 Thread Lu Yao
Add support for the drm_panic module, which displays a pretty user friendly message on the screen when a Linux kernel panic occurs. Signed-off-by: Lu Yao --- The patch can work properly on the TTY, but after start X, drawn image is messy, it looks like the data isn't linearly arranged. However at

Re: [PATCH v4 RESEND] drm/client: fix null pointer dereference in drm_client_modeset_probe

2024-08-02 Thread Thomas Zimmermann
Am 02.08.24 um 06:47 schrieb Ma Ke: In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is assigned to modeset->mode, which will lead to a possible NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. Cc: sta...@vger.kernel.org Fixes: cf13

Re: panel-simple-dp-aux: "DP AUX done_probing() can't defer" on MT8186 w/ Collabora kernel

2024-08-02 Thread Chen-Yu Tsai
On Tue, Jul 30, 2024 at 7:24 AM Dmitry Baryshkov wrote: > > On Sat, Jul 27, 2024 at 08:33:10PM GMT, Alper Nebi Yasak wrote: > > Hi, > > > > I have a MT8186 "Magneton" Chromebook that I'm trying to boot a kernel > > based on Collabora's for-kernelci branch [1], using a config from > > postmarketOS