[PATCH v2 0/2] drm/panel: simple: add Innolux G070ACE-LH3

2024-07-29 Thread Steffen Trumtrar
This series adds support for the Innolux G070ACE-LH3 to the panel-simple driver and adds the according compatible to the devicetree bindings. Signed-off-by: Steffen Trumtrar --- Changes in v2: - add acked-by - update [vh]blank min/max values - Link to v1:

[PATCH v2 1/2] dt-bindings: display: simple: Document support for Innolux G070ACE-LH3

2024-07-29 Thread Steffen Trumtrar
Add Innolux G070ACE-LH3 7" WVGA (800x480) TFT LCD panel compatible string. Signed-off-by: Steffen Trumtrar Acked-by: Conor Dooley --- Documentation/devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 2/2] drm/panel: simple: add Innolux G070ACE-LH3 LVDS display support

2024-07-29 Thread Steffen Trumtrar
The G070ACE-LH3 is a 7" TFT Color LCD module with WLED backlight. https://www.data-modul.com/sites/default/files/products/G070ACE-LH3-specification-12058417.pdf Signed-off-by: Steffen Trumtrar --- drivers/gpu/drm/panel/panel-simple.c | 35 +++ 1 file changed, 35

Re: [PATCH v2] kselftests: dmabuf-heaps: Ensure the driver name is null-terminated

2024-07-29 Thread Daniel Vetter
On Mon, Jul 29, 2024 at 10:46:04AM +0800, Zenghui Yu wrote: > Even if a vgem device is configured in, we will skip the import_vgem_fd() > test almost every time. > > TAP version 13 > 1..11 > # Testing heap: system > # === > # Testing allocation and

Re: [PATCH] drm/client: Fix error code in drm_client_buffer_vmap_local()

2024-07-29 Thread Thomas Zimmermann
Am 24.07.24 um 18:09 schrieb Dan Carpenter: This function accidentally returns zero/success on the failure path. It leads to locking issues and an uninitialized *map_copy in the caller. Fixes: b4b0193e83cb ("drm/fbdev-generic: Fix locking with drm_client_buffer_vmap_local()") Signed-off-by:

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

2024-07-29 Thread Markus Elfring
… > +++ b/drivers/gpu/drm/loongson/loongson_drv.h > @@ -0,0 +1,108 @@ … > +#ifndef __LOONGSON_DRV_H__ > +#define __LOONGSON_DRV_H__ … I suggest to omit leading underscores from such identifiers. https://wiki.sei.cmu.edu/confluence/display/c/DCL37-C.+Do+not+declare+or+define+a+reserved+identifier

Re: [PATCH v8 5/5] drm/ci: rockchip: add tests for rockchip display driver

2024-07-29 Thread Vignesh Raman
Hi Daniel, On 26/07/24 15:37, Vignesh Raman wrote: Hi Daniel, On 26/07/24 13:06, Daniel Stone wrote: Hi Vignesh, On Wed, 24 Jul 2024 at 11:12, Vignesh Raman wrote: For rockchip rk3288 and rk3399, the display driver is rockchip and gpu driver is panfrost. Currently, in drm-ci for rockchip

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

2024-07-29 Thread Markus Elfring
… > +++ b/drivers/gpu/drm/loongson/loongson_drv.c > @@ -0,0 +1,298 @@ … > +static int loongson_drm_freeze(struct drm_device *ddev) > +{ … > + /* unpin all of buffers in the VRAM */ > + mutex_lock(>gem.mutex); … > + mutex_unlock(>gem.mutex); > + > + lsdc_bo_evict_vram(ddev); …

Re: [PATCH v3 1/2] dt-bindings: display: Add Sharp Memory LCD bindings

2024-07-29 Thread Krzysztof Kozlowski
On 29/07/2024 03:42, Alex Lanzano wrote: > Add device tree bindings for the monochrome Sharp Memory LCD > > Co-developed-by: Mehdi Djait > Signed-off-by: Mehdi Djait > Signed-off-by: Alex Lanzano Reviewed-by: Krzysztof Kozlowski --- This is an automated instruction, just in case, because

RE: [PATCH] RFC: drm/drm_plane: Expose the plane capability and interoperability

2024-07-28 Thread Murthy, Arun R
Gentle Reminder! Any comments? Thanks and Regards, Arun R Murthy > -Original Message- > From: Murthy, Arun R > Sent: Tuesday, July 9, 2024 1:17 PM > To: dri-devel@lists.freedesktop.org; intel-...@lists.freedesktop.org > Cc: Murthy, Arun R > Subject: [PATCH] RFC:

Re: [RFC PATCH] ARM: dts: imx53-qsb: Add MCIMX-LVDS1 display module support

2024-07-28 Thread Liu Ying
Hi Dmitry, On 07/27/2024, Dmitry Baryshkov wrote: > On Fri, Jul 26, 2024 at 02:50:12PM GMT, Liu Ying wrote: >> MCIMX-LVDS1[1] display module integrates a HannStar HSD100PXN1 LVDS >> display panel and a touch IC. Add an overlay to support the LVDS >> panel on i.MX53 QSB / QSRB platforms. >> >>

Re: (subset) [PATCH v2 0/4] drm/panel: atna33xc20: Fix the Samsung ATNA45AF01 panel

2024-07-28 Thread Bjorn Andersson
On Mon, 15 Jul 2024 14:15:36 +0200, Stephan Gerhold wrote: > The backlight of the Samsung ATNA45AF01 panel used in the Qualcomm X1E80100 > CRD does not work correctly with the current display panel configuration > and drivers: It works after boot, but once the display gets disabled it is > not

Re: [PATCH v1 1/2] drm/panel: jd9365da: Move the sending location of the 11/29 command

2024-07-28 Thread zhaoxiong lv
On Sun, Jul 28, 2024 at 12:59 AM Dmitry Baryshkov wrote: > > On Thu, Jul 25, 2024 at 04:32:44PM GMT, Zhaoxiong Lv wrote: > > Move the 11/29 command from enable() to init() function > > > > As mentioned in the patch: > >

Re: [PATCH 1/2] drivers: drm/msm/a6xx_catalog: Add A642L speedbin (0x81)

2024-07-28 Thread Bjorn Andersson
On Mon, Jul 22, 2024 at 09:43:13PM GMT, Danila Tikhonov wrote: > From: Eugene Lepshy > Please make sure the subject prefix matches other changes in the same driver/files. Regards, Bjorn > According to downstream, A642L's speedbin is 129 and uses 4 as index > > Signed-off-by: Eugene Lepshy >

[PATCH v4 11/11] drm: Replace strcpy() with __get_task_comm()

2024-07-28 Thread Yafang Shao
To prevent erros from occurring when the src string is longer than the dst string in strcpy(), we should use __get_task_comm() instead. This approach also facilitates future extensions to the task comm. Signed-off-by: Yafang Shao Acked-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard

[PATCH v4 10/11] net: Replace strcpy() with __get_task_comm()

2024-07-28 Thread Yafang Shao
To prevent errors from occurring when the src string is longer than the dst string in strcpy(), we should use __get_task_comm() instead. This approach also facilitates future extensions to the task comm. Signed-off-by: Yafang Shao Cc: "David S. Miller" Cc: David Ahern Cc: Eric Dumazet Cc:

[PATCH v4 09/11] tracing: Replace strncpy() with __get_task_comm()

2024-07-28 Thread Yafang Shao
Using __get_task_comm() to read the task comm ensures that the name is always NUL-terminated, regardless of the source string. This approach also facilitates future extensions to the task comm. Signed-off-by: Yafang Shao Acked-by: Masami Hiramatsu (Google) Cc: Steven Rostedt Cc: Mathieu

[PATCH v4 08/11] tsacct: Replace strncpy() with __get_task_comm()

2024-07-28 Thread Yafang Shao
Using __get_task_comm() to read the task comm ensures that the name is always NUL-terminated, regardless of the source string. This approach also facilitates future extensions to the task comm. Signed-off-by: Yafang Shao --- kernel/tsacct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2] kselftests: dmabuf-heaps: Ensure the driver name is null-terminated

2024-07-28 Thread Zenghui Yu
Even if a vgem device is configured in, we will skip the import_vgem_fd() test almost every time. TAP version 13 1..11 # Testing heap: system # === # Testing allocation and importing: ok 1 # SKIP Could not open vgem -1 The problem is that we use

[PATCH v4 07/11] mm/kmemleak: Replace strncpy() with __get_task_comm()

2024-07-28 Thread Yafang Shao
Since task lock was dropped from __get_task_comm(), it's safe to call it from kmemleak. Using __get_task_comm() to read the task comm ensures that the name is always NUL-terminated, regardless of the source string. This approach also facilitates future extensions to the task comm. Signed-off-by:

[PATCH v4 06/11] mm/util: Deduplicate code in {kstrdup, kstrndup, kmemdup_nul}

2024-07-28 Thread Yafang Shao
These three functions follow the same pattern. To deduplicate the code, let's introduce a common helper __kmemdup_nul(). Suggested-by: Andrew Morton Signed-off-by: Yafang Shao Cc: Simon Horman Cc: Matthew Wilcox --- mm/util.c | 67 +-- 1

[PATCH v4 05/11] mm/util: Fix possible race condition in kstrdup()

2024-07-28 Thread Yafang Shao
In kstrdup(), it is critical to ensure that the dest string is always NUL-terminated. However, potential race condidtion can occur between a writer and a reader. Consider the following scenario involving task->comm: readerwriter len = strlen(s) + 1;

[PATCH v4 04/11] bpftool: Ensure task comm is always NUL-terminated

2024-07-28 Thread Yafang Shao
Let's explicitly ensure the destination string is NUL-terminated. This way, it won't be affected by changes to the source string. Signed-off-by: Yafang Shao Reviewed-by: Quentin Monnet --- tools/bpf/bpftool/pids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/bpf/bpftool/pids.c

[PATCH v4 03/11] security: Replace memcpy() with __get_task_comm()

2024-07-28 Thread Yafang Shao
Quoted from Linus [0]: selinux never wanted a lock, and never wanted any kind of *consistent* result, it just wanted a *stable* result. Using __get_task_comm() to read the task comm ensures that the name is always NUL-terminated, regardless of the source string. This approach also

[PATCH v4 02/11] auditsc: Replace memcpy() with __get_task_comm()

2024-07-28 Thread Yafang Shao
Using __get_task_comm() to read the task comm ensures that the name is always NUL-terminated, regardless of the source string. This approach also facilitates future extensions to the task comm. Signed-off-by: Yafang Shao Acked-by: Paul Moore Cc: Eric Paris --- kernel/auditsc.c | 6 +++--- 1

[PATCH v4 01/11] fs/exec: Drop task_lock() inside __get_task_comm()

2024-07-28 Thread Yafang Shao
Quoted from Linus [0]: Since user space can randomly change their names anyway, using locking was always wrong for readers (for writers it probably does make sense to have some lock - although practically speaking nobody cares there either, but at least for a writer some kind of race

[PATCH resend v4 00/11] Improve the copy of task comm

2024-07-28 Thread Yafang Shao
Hello Andrew, Is it appropriate for you to apply this to the mm tree? Using {memcpy,strncpy,strcpy,kstrdup} to copy the task comm relies on the length of task comm. Changes in the task comm could result in a destination string that is overflow. Therefore, we should explicitly ensure the

Re: [PATCH v3] rockchip/drm: vop2: add support for gamma LUT

2024-07-28 Thread Andy Yan
Hi Piotr, On 7/27/24 03:49, Piotr Zalewski wrote: On Friday, July 26th, 2024 at 10:55 AM, Andy Yan wrote: Hi Piotr Hi Andy! Thanks for your work. On 7/25/24 06:05, Piotr Zalewski wrote: Add support for gamma LUT in VOP2 driver. The implementation is based on the one found in VOP

Re: [PATCH 12/14] dt-bindings: display: rockchip,dw-hdmi: Add compatible for RK3588

2024-07-28 Thread Andy Yan
Hi Cristian, On 6/6/24 19:51, Cristian Ciocaltea wrote: On 6/6/24 2:22 AM, Rob Herring wrote: On Sat, Jun 01, 2024 at 04:12:34PM +0300, Cristian Ciocaltea wrote: Document the Synopsys DesignWare HDMI 2.1 Quad-Pixel (QP) TX controller found on Rockchip RK3588 SoC family. Since RK3588 uses

Re: [PATCH v2 2/2] media: imx: vdic: Introduce mem2mem VDI deinterlacer driver

2024-07-28 Thread Marek Vasut
On 7/24/24 6:16 PM, Dan Carpenter wrote: On Wed, Jul 24, 2024 at 02:19:38AM +0200, Marek Vasut wrote: diff --git a/drivers/staging/media/imx/imx-media-dev.c b/drivers/staging/media/imx/imx-media-dev.c index be54dca11465d..a841fdb4c2394 100644 --- a/drivers/staging/media/imx/imx-media-dev.c +++

Re: [PATCH v2 2/2] media: imx: vdic: Introduce mem2mem VDI deinterlacer driver

2024-07-28 Thread Marek Vasut
On 7/24/24 6:08 PM, Nicolas Dufresne wrote: Hi Marek, Hi, Le mercredi 24 juillet 2024 à 02:19 +0200, Marek Vasut a écrit : Introduce dedicated memory-to-memory IPUv3 VDI deinterlacer driver. Currently the IPUv3 can operate VDI in DIRECT mode, from sensor to memory. This only works for

Re: [PATCH v4 09/11] drm/amd/display: get SAD from drm_eld when parsing EDID caps

2024-07-28 Thread Melissa Wen
On 07/25, Alex Hung wrote: > > > On 2024-07-05 21:35, Melissa Wen wrote: > > instead of parsing struct edid. > > A more informative commit message will be helpful. sure. I'll improve it in the next version. > > > > > Signed-off-by: Melissa Wen > > --- > >

Re: [PATCH v4 07/11] drm/amd/display: don't give initial values for sad/b_count

2024-07-28 Thread Melissa Wen
On 07/25, Alex Hung wrote: > Can this be merged with [PATCH 10/11] drm/amd/display: get SADB from drm_eld > when parsing EDID caps sure. > > On 2024-07-05 21:35, Melissa Wen wrote: > > Signed-off-by: Melissa Wen > > --- > > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 3 +-- >

Re: [PATCH v4 02/11] drm/amd/display: switch amdgpu_dm_connector to use struct drm_edid

2024-07-28 Thread Melissa Wen
On 07/25, Alex Hung wrote: > Please see inline comments. > > On 2024-07-05 21:35, Melissa Wen wrote: > > Replace raw edid handling (struct edid) with the opaque EDID type > > (struct drm_edid) on amdgpu_dm_connector for consistency. It may also > > prevent mismatch of approaches in different

[PATCH v3 2/2] drm/tiny: Add driver for Sharp Memory LCD

2024-07-28 Thread Alex Lanzano
Add support for the monochrome Sharp Memory LCDs. Co-developed-by: Mehdi Djait Signed-off-by: Mehdi Djait Signed-off-by: Alex Lanzano --- MAINTAINERS | 6 + drivers/gpu/drm/tiny/Kconfig| 20 + drivers/gpu/drm/tiny/Makefile | 1 +

[PATCH v3 1/2] dt-bindings: display: Add Sharp Memory LCD bindings

2024-07-28 Thread Alex Lanzano
Add device tree bindings for the monochrome Sharp Memory LCD Co-developed-by: Mehdi Djait Signed-off-by: Mehdi Djait Signed-off-by: Alex Lanzano --- .../bindings/display/sharp,ls010b7dh04.yaml | 92 +++ 1 file changed, 92 insertions(+) create mode 100644

[PATCH v3 0/2] Add driver for Sharp Memory LCD

2024-07-28 Thread Alex Lanzano
This patch series add support for the monochrome Sharp Memory LCD panels. This series is based off of the work done by Mehdi Djait. References: https://lore.kernel.org/dri-devel/71a9dbf4609dbba46026a31f60261830163a0b99.1701267411.git.mehdi.dj...@bootlin.com/

Re: [PATCH v4 01/11] drm/amd/display: clean unused variables for hdmi freesync parser

2024-07-28 Thread Melissa Wen
On 07/25, Alex Hung wrote: > Hi Melissa, > > There are no commit messages in this patch. > > Also, do you think this can be merged with Patch 5 "drm/amd/display: remove > redundant freesync parser for DP"? Hi Alex, Thanks for your feedback. I'll add a brief description in the next version.

Re: [PATCH] drm/msm/dp: reset the link phy params before link training

2024-07-28 Thread Stephen Boyd
Quoting Abhinav Kumar (2024-07-25 15:04:50) > Before re-starting link training reset the link phy params namely > the pre-emphasis and voltage swing levels otherwise the next > link training begins at the previously cached levels which can result > in link training failures. > > Fixes:

[PATCH] fbdev/hpfb: Fix an error handling path in hpfb_dio_probe()

2024-07-28 Thread Christophe JAILLET
If an error occurs after request_mem_region(), a corresponding release_mem_region() should be called, as already done in the remove function. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Christophe JAILLET --- *Not* even compile tested only. I don't know on what architecture it relies

[drm-misc:drm-misc-next 2/37] drivers/gpu/drm/nouveau/nouveau_platform.c:29:13: warning: unused variable 'ret'

2024-07-28 Thread kernel test robot
tree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next head: 61671d85def2960bbf52db22e9e45b3bf8a5ceb5 commit: 961ae5f9807bb15af0065485785725768a7269b9 [2/37] drm/nouveau: handle pci/tegra drm_dev_{alloc, register} from common code config: arm-randconfig-004-20240728

[Bug 219091] amdgpu: after updating to linux 6.10, screen flickering occurs

2024-07-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219091 --- Comment #4 from Christian Heusel (christ...@heusel.eu) --- Yes the mentioned patch fixes the issue for the reporter I have been in contact with! -- You may reply to this email to add a comment. You are receiving this mail because: You are

[PATCH AUTOSEL 5.4 1/6] drm/amdgpu: Fix the null pointer dereference to ras_manager

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit 4c11d30c95576937c6c35e6f29884761f2dddb43 ] Check ras_manager before using it Signed-off-by: Ma Jun Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +-- 1 file changed, 5

[PATCH AUTOSEL 5.10 2/7] drm/amdgpu/pm: Fix the null pointer dereference in apply_state_adjust_rules

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit d19fb10085a49b77578314f69fff21562f7cd054 ] Check the pointer value to fix potential null pointer dereference Acked-by: Yang Wang Signed-off-by: Ma Jun Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c

[PATCH AUTOSEL 5.10 1/7] drm/amdgpu: Fix the null pointer dereference to ras_manager

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit 4c11d30c95576937c6c35e6f29884761f2dddb43 ] Check ras_manager before using it Signed-off-by: Ma Jun Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +-- 1 file changed, 5

[PATCH AUTOSEL 5.15 04/10] drm/amd/display: Add null checker before passing variables

2024-07-28 Thread Sasha Levin
From: Alex Hung [ Upstream commit 8092aa3ab8f7b737a34b71f91492c676a843043a ] Checks null pointer before passing variables to functions. This fixes 3 NULL_RETURNS issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Hamza Mahfooz Signed-off-by: Alex Hung Signed-off-by: Alex

[PATCH AUTOSEL 5.15 03/10] drm/amdgpu/pm: Fix the null pointer dereference in apply_state_adjust_rules

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit d19fb10085a49b77578314f69fff21562f7cd054 ] Check the pointer value to fix potential null pointer dereference Acked-by: Yang Wang Signed-off-by: Ma Jun Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c

[PATCH AUTOSEL 5.15 02/10] drm/amdgpu: Fix the null pointer dereference to ras_manager

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit 4c11d30c95576937c6c35e6f29884761f2dddb43 ] Check ras_manager before using it Signed-off-by: Ma Jun Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +-- 1 file changed, 5

[PATCH AUTOSEL 5.15 01/10] drm/amdgpu/pm: Fix the null pointer dereference for smu7

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit c02c1960c93eede587576625a1221205a68a904f ] optimize the code to avoid pass a null pointer (hwmgr->backend) to function smu7_update_edc_leakage_table. Signed-off-by: Ma Jun Reviewed-by: Yang Wang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.1 09/17] drm/amd/display: Add null checker before passing variables

2024-07-28 Thread Sasha Levin
From: Alex Hung [ Upstream commit 8092aa3ab8f7b737a34b71f91492c676a843043a ] Checks null pointer before passing variables to functions. This fixes 3 NULL_RETURNS issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Hamza Mahfooz Signed-off-by: Alex Hung Signed-off-by: Alex

[PATCH AUTOSEL 6.1 08/17] drm/amd/display: Add NULL check for 'afb' before dereferencing in amdgpu_dm_plane_handle_cursor_update

2024-07-28 Thread Sasha Levin
From: Srinivasan Shanmugam [ Upstream commit 38e6f715b02b572f74677eb2f29d3b4bc6f1ddff ] This commit adds a null check for the 'afb' variable in the amdgpu_dm_plane_handle_cursor_update function. Previously, 'afb' was assumed to be null, but was used later in the code without a null check. This

[PATCH AUTOSEL 6.1 06/17] drm/amd/pm: Fix the null pointer dereference for vega10_hwmgr

2024-07-28 Thread Sasha Levin
From: Bob Zhou [ Upstream commit 50151b7f1c79a09117837eb95b76c2de76841dab ] Check return value and conduct null pointer handling to avoid null pointer dereference. Signed-off-by: Bob Zhou Reviewed-by: Tim Huang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.1 05/17] drm/amdgpu: Add lock around VF RLCG interface

2024-07-28 Thread Sasha Levin
From: Victor Skvortsov [ Upstream commit e864180ee49b4d30e640fd1e1d852b86411420c9 ] flush_gpu_tlb may be called from another thread while device_gpu_recover is running. Both of these threads access registers through the VF RLCG interface during VF Full Access. Add a lock around this interface

[PATCH AUTOSEL 6.1 04/17] drm/amdgpu/pm: Fix the null pointer dereference in apply_state_adjust_rules

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit d19fb10085a49b77578314f69fff21562f7cd054 ] Check the pointer value to fix potential null pointer dereference Acked-by: Yang Wang Signed-off-by: Ma Jun Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c

[PATCH AUTOSEL 6.1 03/17] drm/amdgpu: Fix the null pointer dereference to ras_manager

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit 4c11d30c95576937c6c35e6f29884761f2dddb43 ] Check ras_manager before using it Signed-off-by: Ma Jun Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +-- 1 file changed, 5

[PATCH AUTOSEL 6.1 02/17] drm/amdgpu/pm: Fix the null pointer dereference for smu7

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit c02c1960c93eede587576625a1221205a68a904f ] optimize the code to avoid pass a null pointer (hwmgr->backend) to function smu7_update_edc_leakage_table. Signed-off-by: Ma Jun Reviewed-by: Yang Wang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.1 01/17] drm/amdgpu/pm: Fix the param type of set_power_profile_mode

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit f683f24093dd94a831085fe0ea8e9dc4c6c1a2d1 ] Function .set_power_profile_mode need an array as input parameter. So define variable workload as an array to fix the below coverity warning. "Passing to function hwmgr->hwmgr_func->set_power_profile_mode which uses it

[PATCH AUTOSEL 6.6 12/20] drm/amd/display: Add null checker before passing variables

2024-07-28 Thread Sasha Levin
From: Alex Hung [ Upstream commit 8092aa3ab8f7b737a34b71f91492c676a843043a ] Checks null pointer before passing variables to functions. This fixes 3 NULL_RETURNS issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Hamza Mahfooz Signed-off-by: Alex Hung Signed-off-by: Alex

[PATCH AUTOSEL 6.6 11/20] drm/amd/display: Add NULL check for 'afb' before dereferencing in amdgpu_dm_plane_handle_cursor_update

2024-07-28 Thread Sasha Levin
From: Srinivasan Shanmugam [ Upstream commit 38e6f715b02b572f74677eb2f29d3b4bc6f1ddff ] This commit adds a null check for the 'afb' variable in the amdgpu_dm_plane_handle_cursor_update function. Previously, 'afb' was assumed to be null, but was used later in the code without a null check. This

[PATCH AUTOSEL 6.6 09/20] drm/amd/pm: Fix the null pointer dereference for vega10_hwmgr

2024-07-28 Thread Sasha Levin
From: Bob Zhou [ Upstream commit 50151b7f1c79a09117837eb95b76c2de76841dab ] Check return value and conduct null pointer handling to avoid null pointer dereference. Signed-off-by: Bob Zhou Reviewed-by: Tim Huang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.6 08/20] drm/amdgpu: Add lock around VF RLCG interface

2024-07-28 Thread Sasha Levin
From: Victor Skvortsov [ Upstream commit e864180ee49b4d30e640fd1e1d852b86411420c9 ] flush_gpu_tlb may be called from another thread while device_gpu_recover is running. Both of these threads access registers through the VF RLCG interface during VF Full Access. Add a lock around this interface

[PATCH AUTOSEL 6.6 07/20] drm/admgpu: fix dereferencing null pointer context

2024-07-28 Thread Sasha Levin
From: Jesse Zhang [ Upstream commit 030ffd4d43b433bc6671d9ec34fc12c59220b95d ] When user space sets an invalid ta type, the pointer context will be empty. So it need to check the pointer context before using it Signed-off-by: Jesse Zhang Suggested-by: Tim Huang Reviewed-by: Tim Huang

[PATCH AUTOSEL 6.6 06/20] drm/amdgpu/pm: Fix the null pointer dereference in apply_state_adjust_rules

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit d19fb10085a49b77578314f69fff21562f7cd054 ] Check the pointer value to fix potential null pointer dereference Acked-by: Yang Wang Signed-off-by: Ma Jun Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c

[PATCH AUTOSEL 6.6 05/20] drm/amdgpu: Fix the null pointer dereference to ras_manager

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit 4c11d30c95576937c6c35e6f29884761f2dddb43 ] Check ras_manager before using it Signed-off-by: Ma Jun Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +-- 1 file changed, 5

[PATCH AUTOSEL 6.6 04/20] drm/amdgpu/pm: Fix the null pointer dereference for smu7

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit c02c1960c93eede587576625a1221205a68a904f ] optimize the code to avoid pass a null pointer (hwmgr->backend) to function smu7_update_edc_leakage_table. Signed-off-by: Ma Jun Reviewed-by: Yang Wang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.6 03/20] drm/amdgpu/pm: Fix the param type of set_power_profile_mode

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit f683f24093dd94a831085fe0ea8e9dc4c6c1a2d1 ] Function .set_power_profile_mode need an array as input parameter. So define variable workload as an array to fix the below coverity warning. "Passing to function hwmgr->hwmgr_func->set_power_profile_mode which uses it

[PATCH AUTOSEL 6.6 02/20] drm/amdgpu: fix potential resource leak warning

2024-07-28 Thread Sasha Levin
From: Tim Huang [ Upstream commit 22a5daaec0660dd19740c4c6608b78f38760d1e6 ] Clear resource leak warning that when the prepare fails, the allocated amdgpu job object will never be released. Signed-off-by: Tim Huang Reviewed-by: Christian König Signed-off-by: Alex Deucher Signed-off-by:

[PATCH AUTOSEL 6.6 01/20] drm/amd/display: Add delay to improve LTTPR UHBR interop

2024-07-28 Thread Sasha Levin
From: Michael Strauss [ Upstream commit 10839ee6a977ed1f7d0f4deb29f2d7e5d1f2a9dd ] [WHY] Avoid race condition which puts LTTPR into bad state during UHBR LT. [HOW] Delay 30ms between starting UHBR TPS1 PHY output and sending TPS1 via DPCD. Reviewed-by: Wenjing Liu Acked-by: Aurabindo Pillai

[PATCH AUTOSEL 6.10 31/34] drm/amd/display: Fix null pointer deref in dcn20_resource.c

2024-07-28 Thread Sasha Levin
From: Aurabindo Pillai [ Upstream commit ecbf60782662f0a388493685b85a645a0ba1613c ] Fixes a hang thats triggered when MPV is run on a DCN401 dGPU: mpv --hwdec=vaapi --vo=gpu --hwdec-codecs=all and then enabling fullscreen playback (double click on the video) The following calltrace will be

[PATCH AUTOSEL 6.10 27/34] drm/amd/display: Fix NULL pointer dereference for DTN log in DCN401

2024-07-28 Thread Sasha Levin
From: Rodrigo Siqueira [ Upstream commit 5af757124792817f8eb1bd0c80ad60fab519586b ] When users run the command: cat /sys/kernel/debug/dri/0/amdgpu_dm_dtn_log The following NULL pointer dereference happens: [ +0.03] BUG: kernel NULL pointer dereference, address: NULL [ +0.05] #PF:

[PATCH AUTOSEL 6.10 26/34] drm/panic: depends on !VT_CONSOLE

2024-07-28 Thread Sasha Levin
From: Jocelyn Falempe [ Upstream commit 1ac6ac9ec069ed0cfdb1c207ae23f6c40ac57437 ] The race condition between fbcon and drm_panic can only occurs if VT_CONSOLE is set. So update drm_panic dependency accordingly. This will make it easier for Linux distributions to enable drm_panic by disabling

[PATCH AUTOSEL 6.10 21/34] drm/amd/display: Add null checker before passing variables

2024-07-28 Thread Sasha Levin
From: Alex Hung [ Upstream commit 8092aa3ab8f7b737a34b71f91492c676a843043a ] Checks null pointer before passing variables to functions. This fixes 3 NULL_RETURNS issues reported by Coverity. Reviewed-by: Harry Wentland Acked-by: Hamza Mahfooz Signed-off-by: Alex Hung Signed-off-by: Alex

[PATCH AUTOSEL 6.10 20/34] drm/amd/display: remove dpp pipes on failure to update pipe params

2024-07-28 Thread Sasha Levin
From: Wenjing Liu [ Upstream commit 3ddd9c83ff7ac0ead38188425b14d03dc2f2c133 ] [why] There are cases where update pipe params could fail but dpp pipes are already added to the state. In this case, we should remove dpp pipes so dc state is restored back. If it is not restored, dc state is

[PATCH AUTOSEL 6.10 19/34] drm/amd/display: Don't refer to dc_sink in is_dsc_need_re_compute

2024-07-28 Thread Sasha Levin
From: Wayne Lin [ Upstream commit fcf6a49d79923a234844b8efe830a61f3f0584e4 ] [Why] When unplug one of monitors connected after mst hub, encounter null pointer dereference. It's due to dc_sink get released immediately in early_unregister() or detect_ctx(). When commit new state which directly

[PATCH AUTOSEL 6.10 18/34] drm/amd/display: reduce ODM slice count to initial new dc state only when needed

2024-07-28 Thread Sasha Levin
From: Wenjing Liu [ Upstream commit 9a29c4adb0997be6ba3dd92dfba14ea75a8c6ce4 ] [why] We need to decrease ODM slice when adding or removing planes because MPO support takes precedence over dynamic ODM combine. However there is a case where we remove ODM combine even for ODM combine required

[PATCH AUTOSEL 6.10 17/34] drm/amd/display: Wake DMCUB before sending a command for replay feature

2024-07-28 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 3601a35a2e9d640233f4bc3496f7603b93f9c143 ] [Why] We can hang in place trying to send commands when the DMCUB isn't powered on. [How] For functions that execute within a DC context or DC lock we can wrap the direct calls to dm_execute_dmub_cmd/list

[PATCH AUTOSEL 6.10 16/34] drm/amd/display: Add NULL check for 'afb' before dereferencing in amdgpu_dm_plane_handle_cursor_update

2024-07-28 Thread Sasha Levin
From: Srinivasan Shanmugam [ Upstream commit 38e6f715b02b572f74677eb2f29d3b4bc6f1ddff ] This commit adds a null check for the 'afb' variable in the amdgpu_dm_plane_handle_cursor_update function. Previously, 'afb' was assumed to be null, but was used later in the code without a null check. This

[PATCH AUTOSEL 6.10 14/34] drm/amd/display: Add null checks for 'stream' and 'plane' before dereferencing

2024-07-28 Thread Sasha Levin
From: Srinivasan Shanmugam [ Upstream commit 15c2990e0f0108b9c3752d7072a97d45d4283aea ] This commit adds null checks for the 'stream' and 'plane' variables in the dcn30_apply_idle_power_optimizations function. These variables were previously assumed to be null at line 922, but they were used

[PATCH AUTOSEL 6.10 13/34] drm/amd/pm: Fix the null pointer dereference for vega10_hwmgr

2024-07-28 Thread Sasha Levin
From: Bob Zhou [ Upstream commit 50151b7f1c79a09117837eb95b76c2de76841dab ] Check return value and conduct null pointer handling to avoid null pointer dereference. Signed-off-by: Bob Zhou Reviewed-by: Tim Huang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.10 12/34] drm/amdgpu: Add lock around VF RLCG interface

2024-07-28 Thread Sasha Levin
From: Victor Skvortsov [ Upstream commit e864180ee49b4d30e640fd1e1d852b86411420c9 ] flush_gpu_tlb may be called from another thread while device_gpu_recover is running. Both of these threads access registers through the VF RLCG interface during VF Full Access. Add a lock around this interface

[PATCH AUTOSEL 6.10 11/34] drm/admgpu: fix dereferencing null pointer context

2024-07-28 Thread Sasha Levin
From: Jesse Zhang [ Upstream commit 030ffd4d43b433bc6671d9ec34fc12c59220b95d ] When user space sets an invalid ta type, the pointer context will be empty. So it need to check the pointer context before using it Signed-off-by: Jesse Zhang Suggested-by: Tim Huang Reviewed-by: Tim Huang

[PATCH AUTOSEL 6.10 10/34] drm/amdgpu/pm: Fix the null pointer dereference in apply_state_adjust_rules

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit d19fb10085a49b77578314f69fff21562f7cd054 ] Check the pointer value to fix potential null pointer dereference Acked-by: Yang Wang Signed-off-by: Ma Jun Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c

[PATCH AUTOSEL 6.10 09/34] drm/amdgpu: Fix the null pointer dereference to ras_manager

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit 4c11d30c95576937c6c35e6f29884761f2dddb43 ] Check ras_manager before using it Signed-off-by: Ma Jun Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +-- 1 file changed, 5

[PATCH AUTOSEL 6.10 08/34] drm/amdgpu/pm: Fix the null pointer dereference for smu7

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit c02c1960c93eede587576625a1221205a68a904f ] optimize the code to avoid pass a null pointer (hwmgr->backend) to function smu7_update_edc_leakage_table. Signed-off-by: Ma Jun Reviewed-by: Yang Wang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.10 07/34] drm/xe/xe_guc_submit: Fix exec queue stop race condition

2024-07-28 Thread Sasha Levin
From: Jonathan Cavitt [ Upstream commit 1564d411e17f51e2f64655b4e4da015be1ba7eaa ] Reorder the xe_sched_tdr_queue_imm and set_exec_queue_banned calls in guc_exec_queue_stop. This prevents a possible race condition between the two events in which it's possible for xe_sched_tdr_queue_imm to wake

[PATCH AUTOSEL 6.10 06/34] drm/amd/amdkfd: Fix a resource leak in svm_range_validate_and_map()

2024-07-28 Thread Sasha Levin
From: Ramesh Errabolu [ Upstream commit d2d3a44008fea01ec7d5a9d9ca527286be2e0257 ] Analysis of code by Coverity, a static code analyser, has identified a resource leak in the symbol hmm_range. This leak occurs when one of the prior steps before it is released encounters an error.

[PATCH AUTOSEL 6.10 05/34] drm/amdgpu/pm: Fix the param type of set_power_profile_mode

2024-07-28 Thread Sasha Levin
From: Ma Jun [ Upstream commit f683f24093dd94a831085fe0ea8e9dc4c6c1a2d1 ] Function .set_power_profile_mode need an array as input parameter. So define variable workload as an array to fix the below coverity warning. "Passing to function hwmgr->hwmgr_func->set_power_profile_mode which uses it

[PATCH AUTOSEL 6.10 03/34] drm/amd/display: Add delay to improve LTTPR UHBR interop

2024-07-28 Thread Sasha Levin
From: Michael Strauss [ Upstream commit 10839ee6a977ed1f7d0f4deb29f2d7e5d1f2a9dd ] [WHY] Avoid race condition which puts LTTPR into bad state during UHBR LT. [HOW] Delay 30ms between starting UHBR TPS1 PHY output and sending TPS1 via DPCD. Reviewed-by: Wenjing Liu Acked-by: Aurabindo Pillai

[PATCH AUTOSEL 6.10 04/34] drm/amdgpu: fix potential resource leak warning

2024-07-28 Thread Sasha Levin
From: Tim Huang [ Upstream commit 22a5daaec0660dd19740c4c6608b78f38760d1e6 ] Clear resource leak warning that when the prepare fails, the allocated amdgpu job object will never be released. Signed-off-by: Tim Huang Reviewed-by: Christian König Signed-off-by: Alex Deucher Signed-off-by:

[PATCH AUTOSEL 6.10 02/34] drm/amd/display: Handle HPD_IRQ for internal link

2024-07-28 Thread Sasha Levin
From: Sung-huai Wang [ Upstream commit 239b31bd5c3fef3698440bf6436b2068c6bb08a3 ] [Why] TCON data is corrupted after electro static discharge test. Once the TCON data get corrupted, they will get themselves reset and send HPD_IRQ to source side. [How] Support HPD_IRQ for internal link, and

[PATCH AUTOSEL 6.10 01/34] drm/xe/preempt_fence: enlarge the fence critical section

2024-07-28 Thread Sasha Levin
From: Matthew Auld [ Upstream commit 3cd1585e57908b6efcd967465ef7685f40b2a294 ] It is really easy to introduce subtle deadlocks in preempt_fence_work_func() since we operate on single global ordered-wq for signalling our preempt fences behind the scenes, so even though we signal a particular

[PATCH v5 2/2] drm/loongson: Add dummy gpu driver as a subcomponent

2024-07-28 Thread Sui Jingfeng
Loongson Graphics are PCIe multifunctional devices, the GPU and the display controller are two distinct devices. Despite hardware units that come along with PCIe are already ready to be driven by the time the driver is loaded, drm/loongson driver still need to wait all of its dependencies ready

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

2024-07-28 Thread Sui Jingfeng
In some display subsystems, the functionality of a PCIe device might be too complex to manage with a single driver. A split of the functionality into child devices can help to achieve better modularity. For example, KMS drivers who have dependencies on external modules will suffer from the

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

2024-07-28 Thread Sui Jingfeng
Introduce component framework to bind modules and to avoid potential cyclic dependency problem. v1 -> v2: * Squash patch 0002 and patch 0003 into one * Fill typos and improve commit message v2 -> v3: * Squash all patch into one * Create another platform device as

Re: [PATCH 1/2] dt-bindings: display: Add Sharp Memory LCD bindings

2024-07-28 Thread Alex Lanzano
On Sun, Jul 28, 2024 at 04:43:42PM GMT, Krzysztof Kozlowski wrote: > On 28/07/2024 14:56, Alex Lanzano wrote: > > + > > + spi-cs-high: true > > You can drop it. > > >>> > >>> This is a required property in order for the display to function > >>> correctly. > >>> But I have

Re: [PATCH 1/2] dt-bindings: display: Add Sharp Memory LCD bindings

2024-07-28 Thread Krzysztof Kozlowski
On 28/07/2024 14:56, Alex Lanzano wrote: > + > + spi-cs-high: true You can drop it. >>> >>> This is a required property in order for the display to function correctly. >>> But I have no issues removing it if there's a better place to document it. >> >> The sharp LCD device

[Bug 219091] amdgpu: after updating to linux 6.10, screen flickering occurs

2024-07-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219091 Alex Deucher (alexdeuc...@gmail.com) changed: What|Removed |Added CC|

[Bug 219091] amdgpu: after updating to linux 6.10, screen flickering occurs

2024-07-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219091 Christian Heusel (christ...@heusel.eu) changed: What|Removed |Added CC|

[PATCH v4 12/12] drm/xe/spi: add support for access mode

2024-07-28 Thread Alexander Usyskin
Check SPI access mode from GSC FW status registers and overwrite access status read from SPI descriptor, if needed. Signed-off-by: Alexander Usyskin --- drivers/gpu/drm/xe/regs/xe_gsc_regs.h | 4 drivers/gpu/drm/xe/xe_heci_gsc.c | 5 +--- drivers/gpu/drm/xe/xe_spi.c | 33

[PATCH v4 11/12] drm/xe/spi: add on-die spi device

2024-07-28 Thread Alexander Usyskin
Enable access to internal spi on DGFX with GSC/CSC devices via a child device. The spi child device is exposed via auxiliary bus. Signed-off-by: Alexander Usyskin --- drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/xe_device.c | 3 ++ drivers/gpu/drm/xe/xe_device_types.h

<    3   4   5   6   7   8   9   10   11   12   >