[PATCH 3/3] drm/msm: Simplify NULL checking in msm_disp_state_dump_regs()

2024-10-14 Thread Douglas Anderson
tion. Clean this up. Signed-off-by: Douglas Anderson --- .../gpu/drm/msm/disp/msm_disp_snapshot_util.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c b/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.

[PATCH 1/3] drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()

2024-10-14 Thread Douglas Anderson
ixes: 98659487b845 ("drm/msm: add support to take dpu snapshot") Signed-off-by: Douglas Anderson --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snaps

[PATCH 2/3] drm/msm: Allocate memory for disp snapshot with kvzalloc()

2024-10-14 Thread Douglas Anderson
@quicinc.com/ Fixes: 98659487b845 ("drm/msm: add support to take dpu snapshot") Signed-off-by: Douglas Anderson --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util

[PATCH 2/3] drm/msm: Allocate memory for disp snapshot with kvzalloc()

2024-10-14 Thread Douglas Anderson
@quicinc.com/ Fixes: 98659487b845 ("drm/msm: add support to take dpu snapshot") Signed-off-by: Douglas Anderson --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util

[PATCH 1/3] drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()

2024-10-14 Thread Douglas Anderson
ixes: 98659487b845 ("drm/msm: add support to take dpu snapshot") Signed-off-by: Douglas Anderson --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snaps

[PATCH 3/3] drm/msm: Simplify NULL checking in msm_disp_state_dump_regs()

2024-10-14 Thread Douglas Anderson
tion. Clean this up. Signed-off-by: Douglas Anderson --- .../gpu/drm/msm/disp/msm_disp_snapshot_util.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c b/drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.

[PATCH] regulator: core: Stub devm_regulator_bulk_get_const() if !CONFIG_REGULATOR

2024-08-30 Thread Douglas Anderson
Neil Armstrong Signed-off-by: Douglas Anderson --- include/linux/regulator/consumer.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index d986ec13092e..b9ce521910a0 100644 --- a/include/linux/regulator/consumer.h

[PATCH v3] arm64: smp: smp_send_stop() and crash_smp_send_stop() should try non-NMI first

2024-08-21 Thread Douglas Anderson
we'll print the CPUs that we failed to stop instead of printing all _but_ the current running CPU. * In crash_smp_send_stop(), we will now only print "SMP: stopping secondary CPUs" if (system_state <= SYSTEM_RUNNING). Fixes: d7402513c935 ("arm64: smp: IPI_CPU_STOP and IPI_CPU_CRAS

[PATCH] dt-bindings: display: panel: samsung, atna45dc02: Fix indentation

2024-08-08 Thread Douglas Anderson
: expected 12 but found 10 (indentation) Fix them. Reported-by: Rob Herring Closes: https://lore.kernel.org/r/cal_jsqlrtgqrpcfxy4g9hlohmd-uax4_c90bv_ozn4mk+-8...@mail.gmail.com Fixes: 1c4a057d01f4 ("dt-bindings: display: panel: samsung,atna45dc02: Document ATNA45DC02") Signed-off-b

[PATCH] drm/panel: sharp-lq101r1sx01: Fixed reversed "if" in remove

2024-07-08 Thread Douglas Anderson
01: Don't call disable at shutdown/remove") Cc: Thierry Reding Reported-by: kernel test robot Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202406261525.skhtm3zv-...@intel.com/ Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c | 2 +

[PATCH v2] arm64: smp: smp_send_stop() and crash_smp_send_stop() should try non-NMI first

2024-06-25 Thread Douglas Anderson
we'll print the CPUs that we failed to stop instead of printing all _but_ the current running CPU. * In crash_smp_send_stop(), we will now only print "SMP: stopping secondary CPUs" if (system_state <= SYSTEM_RUNNING). Fixes: d7402513c935 ("arm64: smp: IPI_CPU_STOP and IPI_CPU_CRAS

[PATCH] drm/panel: Avoid warnings w/ panel-simple/panel-edp at shutdown

2024-06-21 Thread Douglas Anderson
won't be too confused by what's going on here. Suggested-by: Daniel Vetter Signed-off-by: Douglas Anderson --- This patch came out of discussion on dri-devel on 2024-06-21 [1]. NOTE: I have put all changes into one patch since it didn't seem to add anything to break up the updatin

Re: [PATCH v3] drm/panel: truly-nt35521: transition to mipi_dsi wrapped functions

2024-06-20 Thread Douglas Anderson
; sony tulip truly nt35521 panel. > > Applied, thanks! [1/1] drm/panel: truly-nt35521: transition to mipi_dsi wrapped functions commit: c62b4fc4b9b86ab35e5c4236f2053ce21ee81ebc Best regards, -- Douglas Anderson

[Kgdb-bugreport] [PATCH 03/13] kdb: Use "bool" in "md" implementation where appropriate

2024-06-17 Thread Douglas Anderson
uot; functions to use "bool". While touching this, we touch a line next to a comment using a style that's nonstandard for the kdb codebase. Update it in passing. Signed-off-by: Douglas Anderson --- kernel/debug/kdb/kdb_main.c | 36 +--- 1 file cha

[Kgdb-bugreport] [PATCH 12/13] kdb: Add mdpW / mdpWcN commands

2024-06-17 Thread Douglas Anderson
When specifying a physical address allow specifying the word side and the number of words. NOTE: we don't do this for the "mds" command since it's pretty much a different beast. Signed-off-by: Douglas Anderson --- kernel/debug/kdb/kdb_main.c | 16 ++--

[Kgdb-bugreport] [PATCH 11/13] kdb: Abstract out parsing for mdWcN

2024-06-17 Thread Douglas Anderson
We'd like to use the "WcN" parsing for some other "md" variants. Abstract it out. Signed-off-by: Douglas Anderson --- kernel/debug/kdb/kdb_main.c | 55 +++-- 1 file changed, 46 insertions(+), 9 deletions(-) diff --git a/kernel/debu

[Kgdb-bugreport] [PATCH 09/13] kdb: Use 'unsigned int' in kdb_md() where appropriate

2024-06-17 Thread Douglas Anderson
Several of the integers in kdb_md() should be marked unsigned. Mark them as such. When doing this, we need to add an explicit cast to the address masking or it ends up getting truncated down to "int" size. Signed-off-by: Douglas Anderson --- kernel/debug/kdb/kdb_main.c | 10 +---

[Kgdb-bugreport] [PATCH 07/13] kdb: Tweak "repeat" handling code for "mdW" and "mdWcN"

2024-06-17 Thread Douglas Anderson
and "mdWcN" handling. This breaks the above case where the user tweaked "argv[0]" and then tried to somehow leverage the "repeat" code to do something smart, but that feels like it was a misfeature anyway. Signed-off-by: Douglas Anderson --- kernel/debug/kdb/k

[Kgdb-bugreport] [PATCH 05/13] kdb: Separate out "mdr" handling

2024-06-17 Thread Douglas Anderson
Though the "mdr" has a similar purpose to the other "md" commands in that they all display memory, the actual code to implement it has almost nothing in common with the rest of the commands. Separate things out. Signed-off-by: Douglas Anderson --- kernel/debug

[Kgdb-bugreport] [PATCH 01/13] kdb: Get rid of "minlen" for the "md" command

2024-06-17 Thread Douglas Anderson
n't really unique (it could be the prefix for "mm" also) and it's only saving one letter. Remove the setting of "minlen" to 1 for "md". Signed-off-by: Douglas Anderson --- While digging into this, I found that "minlen" doesn't seem to mean

[Kgdb-bugreport] [PATCH 06/13] kdb: Remove "mdW" and "mdWcN" handling of "W" == 0

2024-06-17 Thread Douglas Anderson
00 ... This doesn't seem like particularly useful behavior and adds a bunch of complexity to the arg parsing. Remove it. Signed-off-by: Douglas Anderson --- kernel/debug/kdb/kdb_main.c | 5 - 1 file changed, 5 deletions(-) diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb

[Kgdb-bugreport] [PATCH 13/13] kdb: Add mdi, mdiW / mdiWcN commands to show iomapped memory

2024-06-17 Thread Douglas Anderson
Add commands that are like the other "md" commands but that allow you to read memory that's in the IO space. Signed-off-by: Douglas Anderson --- kernel/debug/kdb/kdb_main.c| 38 +++ kernel/debug/kdb/kdb_private.h | 1 + kernel/debug/kdb/kdb

[Kgdb-bugreport] [PATCH 02/13] kdb: Document the various "md" commands better

2024-06-17 Thread Douglas Anderson
re obvious. As part of this, add "bogus" commands to the table for "mdW" and "mdWcN" so we don't have to obscurely reference them in the normal "md" help. These bogus commands don't really hurt since kdb_md() validate

[Kgdb-bugreport] [PATCH 08/13] kdb: In kdb_md() make `repeat` and `mdcount` calculations more obvious

2024-06-17 Thread Douglas Anderson
logic more obvious by initializing `repeat` to 0 and then setting it to non-zero when it should override. Then we can do all the math at once. While changing this, use the proper DIV_ROUND_UP() macro and introcue a constant for KDB_MD_BYTES_PER_LINE. We'll also make and "if else" more obv

[Kgdb-bugreport] [PATCH 10/13] kdb: Replease simple_strtoul() with kstrtouint() in kdb_md()

2024-06-17 Thread Douglas Anderson
The docs say you should use kstrtouint() instead of simple_strtoul(), so do so. This nicely simplfies the code a little. Signed-off-by: Douglas Anderson --- kernel/debug/kdb/kdb_main.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/debug/kdb/kdb_main.c b

[Kgdb-bugreport] [PATCH 00/13] kdb: Add the ability to read iomapped memory via kdb + clean up "md" commands

2024-06-17 Thread Douglas Anderson
the weird corners. I have a hard time believing anyone was relying on these, but if you think someone is then please yell. Also note that it would probably be good to add iomapped memory writes, but this series is already pretty long so maybe that can be done later. Douglas Anderson (13): kdb

[Kgdb-bugreport] [PATCH 04/13] kdb: Drop "offset" and "name" args to kdbgetaddrarg()

2024-06-17 Thread Douglas Anderson
Every caller to kdbgetaddrarg() didn't care about the "offset" and "name" returned by the function. Some passed NULL and some passed the address of a bogus local variable that was never looked at. Drop the arguments. Signed-off-by: Douglas Anderson --- kernel/deb

[PATCH v2 8/8] drm/amdgpu: Call drm_atomic_helper_shutdown() at shutdown time

2024-06-12 Thread Douglas Anderson
call drm_atomic_helper_shutdown() in the case of OS shutdown/restart comes straight out of the kernel doc "driver instance overview" in drm_drv.c. Suggested-by: Maxime Ripard Cc: Alex Deucher Cc: Christian König Cc: Xinhui Pan Signed-off-by: Douglas Anderson --- This commit is only comp

[PATCH v2 8/8] drm/amdgpu: Call drm_atomic_helper_shutdown() at shutdown time

2024-06-12 Thread Douglas Anderson
call drm_atomic_helper_shutdown() in the case of OS shutdown/restart comes straight out of the kernel doc "driver instance overview" in drm_drv.c. Suggested-by: Maxime Ripard Cc: Alex Deucher Cc: Christian König Cc: Xinhui Pan Signed-off-by: Douglas Anderson --- This commit is only comp

[PATCH v2 7/8] drm/radeon: Call drm_helper_force_disable_all() at shutdown/remove time

2024-06-12 Thread Douglas Anderson
n with the equivalent new calls. Suggested-by: Maxime Ripard Reviewed-by: Maxime Ripard Cc: Alex Deucher Cc: Christian König Cc: Xinhui Pan Signed-off-by: Douglas Anderson --- I honestly have no idea if I got this patch right. The shutdown() function already had some special case logic for PPC

[PATCH v2 7/8] drm/radeon: Call drm_helper_force_disable_all() at shutdown/remove time

2024-06-12 Thread Douglas Anderson
n with the equivalent new calls. Suggested-by: Maxime Ripard Reviewed-by: Maxime Ripard Cc: Alex Deucher Cc: Christian König Cc: Xinhui Pan Signed-off-by: Douglas Anderson --- I honestly have no idea if I got this patch right. The shutdown() function already had some special case logic for PPC

[PATCH v2 6/8] drm/gma500: Call drm_helper_force_disable_all() at shutdown/remove time

2024-06-12 Thread Douglas Anderson
case the non-atomic equivalent drm_helper_force_disable_all(), in the case of OS shutdown/restart comes straight out of the kernel doc "driver instance overview" in drm_drv.c. Suggested-by: Maxime Ripard Reviewed-by: Maxime Ripard Signed-off-by: Douglas Anderson --- This commit is only co

[PATCH v2 3/8] drm/tegra: Call drm_atomic_helper_shutdown() at shutdown time

2024-06-12 Thread Douglas Anderson
call drm_atomic_helper_shutdown() in the case of OS shutdown/restart comes straight out of the kernel doc "driver instance overview" in drm_drv.c. Suggested-by: Maxime Ripard Reviewed-by: Maxime Ripard Signed-off-by: Douglas Anderson --- This commit is only compile-time tested. (no c

[PATCH v2 4/8] drm/arcpgu: Call drm_atomic_helper_shutdown() at shutdown time

2024-06-12 Thread Douglas Anderson
call drm_atomic_helper_shutdown() in the case of OS shutdown/restart comes straight out of the kernel doc "driver instance overview" in drm_drv.c. Suggested-by: Maxime Ripard Reviewed-by: Maxime Ripard Signed-off-by: Douglas Anderson --- This commit is only compile-time tested. (no c

[PATCH v2 5/8] drm/sprd: Call drm_atomic_helper_shutdown() at remove time

2024-06-12 Thread Douglas Anderson
r instance overview" in drm_drv.c. While at it, let's also fix it so that if the driver's bind fails or if a driver gets unbound that the drvdata gets set to NULL. This will make sure we can't get confused during a later shutdown(). Suggested-by: Maxime Ripard Reviewed-by: Maxime

[PATCH v2 2/8] drm/nouveau: Call drm_atomic_helper_shutdown() or equiv at shutdown time

2024-06-12 Thread Douglas Anderson
ff at system shutdown time. The fact that we should call drm_atomic_helper_shutdown() in the case of OS shutdown/restart comes straight out of the kernel doc "driver instance overview" in drm_drv.c. Suggested-by: Maxime Ripard Reviewed-by: Maxime Ripard Signed-off-by: Douglas Anderson ---

[PATCH v2 2/8] drm/nouveau: Call drm_atomic_helper_shutdown() or equiv at shutdown time

2024-06-12 Thread Douglas Anderson
ff at system shutdown time. The fact that we should call drm_atomic_helper_shutdown() in the case of OS shutdown/restart comes straight out of the kernel doc "driver instance overview" in drm_drv.c. Suggested-by: Maxime Ripard Reviewed-by: Maxime Ripard Signed-off-by: Douglas Anderson ---

[PATCH v2 1/8] drm/kmb: Call drm_atomic_helper_shutdown() at shutdown time

2024-06-12 Thread Douglas Anderson
call drm_atomic_helper_shutdown() in the case of OS shutdown/restart comes straight out of the kernel doc "driver instance overview" in drm_drv.c. Suggested-by: Maxime Ripard Reviewed-by: Maxime Ripard Signed-off-by: Douglas Anderson --- This commit is only compile-time tested. (no c

[PATCH v2 0/8] drm: make leftover drivers call drm_atomic_helper_shutdown() at the right times

2024-06-12 Thread Douglas Anderson
iand...@chromium.org [2] https://lore.kernel.org/r/20230804140605.RFC.4.I930069a32baab6faf46d6b234f89613b5cec0f14@changeid [3] https://lore.kernel.org/r/Zmm6_27GikpmT3HQ@phenom.ffwll.local Changes in v2: - Gathered whatever hadn't landed, rebased, and reposted. Douglas Anderson (8): drm/kmb:

[PATCH v2 0/8] drm: make leftover drivers call drm_atomic_helper_shutdown() at the right times

2024-06-12 Thread Douglas Anderson
iand...@chromium.org [2] https://lore.kernel.org/r/20230804140605.RFC.4.I930069a32baab6faf46d6b234f89613b5cec0f14@changeid [3] https://lore.kernel.org/r/Zmm6_27GikpmT3HQ@phenom.ffwll.local Changes in v2: - Gathered whatever hadn't landed, rebased, and reposted. Douglas Anderson (8): drm/kmb:

[PATCH v2 0/8] drm: make leftover drivers call drm_atomic_helper_shutdown() at the right times

2024-06-12 Thread Douglas Anderson
iand...@chromium.org [2] https://lore.kernel.org/r/20230804140605.RFC.4.I930069a32baab6faf46d6b234f89613b5cec0f14@changeid [3] https://lore.kernel.org/r/Zmm6_27GikpmT3HQ@phenom.ffwll.local Changes in v2: - Gathered whatever hadn't landed, rebased, and reposted. Douglas Anderson (8): drm/kmb:

[PATCH v2] drm/mediatek: Call drm_atomic_helper_shutdown() at shutdown time

2024-06-11 Thread Douglas Anderson
own() is called and as of commit 2a073968289d ("drm/atomic-helper: drm_atomic_helper_shutdown(NULL) should be a noop") we don't need to confirm that "drm" is non-NULL. Suggested-by: Maxime Ripard Reviewed-by: Maxime Ripard Reviewed-by: Fei Shao Tested-by: Fei Shao Signed-

[PATCH] drm/panel: Avoid warnings w/ panel-simple/panel-edp at shutdown

2024-06-11 Thread Douglas Anderson
g enough that people should push to make this happen. Implement this all in a shared "header" file included by the two panel drivers that need it. This avoids us adding an new exports while still allowing the panel drivers to be modules. The code waste should be small and, as per above, t

[PATCH v3 21/24] drm/panel: raydium-rm67191: Stop tracking enabled

2024-06-04 Thread Douglas Anderson
iver tracking "prepared" but removed its tracking of "enabled". NOTE: as part of this, transition the panel's direct calls to its disable/unprepare functions in shutdown to call through DRM panel. Cc: Robert Chiras Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-of

[PATCH v3 23/24] drm/panel: Update TODO list item for cleaning up prepared/enabled tracking

2024-06-04 Thread Douglas Anderson
Now that most panels have been updated not to track/double-check their prepared/enabled state update the TODO with next steps. Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v1) Documentation/gpu/todo.rst | 47

[PATCH v3 22/24] drm/panel: raydium-rm67191: Don't call unprepare+disable at shutdown

2024-06-04 Thread Douglas Anderson
ned-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/panel-raydium-rm67191.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-raydium-rm67191.c b/drive

[PATCH v3 24/24] drm/panel: Avoid warnings w/ panel-simple/panel-edp at shutdown

2024-06-04 Thread Douglas Anderson
g enough that people should push to make this happen. Implement this all in a shared "header" file included by the two panel drivers that need it. This avoids us adding an new exports while still allowing the panel drivers to be modules. The code waste should be small and, as per above, t

[PATCH v3 20/24] drm/panel: sharp-ls043t1le01: Don't call disable at shutdown/remove

2024-06-04 Thread Douglas Anderson
Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c | 12 1 file changed, 12 deletion

[PATCH v3 19/24] drm/panel: sharp-ls043t1le01: Stop tracking prepared

2024-06-04 Thread Douglas Anderson
e-check is now in the core and not needed in individual drivers. Cc: Werner Johansson Cc: Dmitry Baryshkov Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/en

[PATCH v3 17/24] drm/panel: sharp-lq101r1sx01: Stop tracking prepared/enabled

2024-06-04 Thread Douglas Anderson
e-check is now in the core and not needed in individual drivers. Cc: Thierry Reding Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remov

[PATCH v3 18/24] drm/panel: sharp-lq101r1sx01: Don't call disable at shutdown/remove

2024-06-04 Thread Douglas Anderson
ned-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. .../gpu/drm/panel/panel-sharp-lq101r1sx01.c | 24 ++- 1 file changed, 2 insertions(+), 22 deletions(-) di

[PATCH v3 13/24] drm/panel: panasonic-vvx10f034n00: Stop tracking prepared/enabled

2024-06-04 Thread Douglas Anderson
e-check is now in the core and not needed in individual drivers. Cc: Werner Johansson Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling

[PATCH v3 16/24] drm/panel: seiko-43wvf1g: Don't call disable at shutdown/remove

2024-06-04 Thread Douglas Anderson
engutronix Kernel Team Cc: i...@lists.linux.dev Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/p

[PATCH v3 14/24] drm/panel: panasonic-vvx10f034n00: Don't call disable at shutdown/remove

2024-06-04 Thread Douglas Anderson
@chromium.org Cc: Werner Johansson Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/panel-pana

[PATCH v3 12/24] drm/panel: jdi-lt070me05000: Don't call disable at shutdown/remove

2024-06-04 Thread Douglas Anderson
by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 12 1 file changed, 12 deletions(-) di

[PATCH v3 15/24] drm/panel: seiko-43wvf1g: Stop tracking prepared/enabled

2024-06-04 Thread Douglas Anderson
e-check is now in the core and not needed in individual drivers. Cc: Marco Franchi Cc: Fabio Estevam Cc: Laurentiu Palcu Cc: Pengutronix Kernel Team Cc: i...@lists.linux.dev Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in

[PATCH v3 09/24] drm/panel: tdo-tl070wsh30: Stop tracking prepared

2024-06-04 Thread Douglas Anderson
e-check is now in the core and not needed in individual drivers. Cc: Neil Armstrong Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remov

[PATCH v3 11/24] drm/panel: jdi-lt070me05000: Stop tracking prepared/enabled

2024-06-04 Thread Douglas Anderson
e-check is now in the core and not needed in individual drivers. NOTE: as part of this, transition the panel's direct calls to its disable function in shutdown/remove to call through DRM panel. Cc: Vinay Simha BN Cc: Sumit Semwal Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-

[PATCH v3 08/24] drm/panel: osd-osd101t2587-53ts: Don't call unprepare+disable at shutdown/remove

2024-06-04 Thread Douglas Anderson
ned-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drive

[PATCH v3 10/24] drm/panel: tdo-tl070wsh30: Don't call unprepare+disable at shutdown/remove

2024-06-04 Thread Douglas Anderson
..@chromium.org Cc: Neil Armstrong Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/pa

[PATCH v3 07/24] drm/panel: osd-osd101t2587-53ts: Stop tracking prepared/enabled

2024-06-04 Thread Douglas Anderson
e-check is now in the core and not needed in individual drivers. Cc: Peter Ujfalusi Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remov

[PATCH v3 06/24] drm/panel: olimex-lcd-olinuxino: Don't call unprepare+disable at remove

2024-06-04 Thread Douglas Anderson
..@chromium.org Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c |

[PATCH v3 05/24] drm/panel: olimex-lcd-olinuxino: Stop tracking prepared/enabled

2024-06-04 Thread Douglas Anderson
e-check is now in the core and not needed in individual drivers. Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. ...

[PATCH v3 03/24] drm/panel: khadas-ts050: Stop tracking prepared/enabled

2024-06-04 Thread Douglas Anderson
e-check is now in the core and not needed in individual drivers. Cc: Jacobe Zang Cc: Nicolas Belin Cc: Neil Armstrong Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal o

[PATCH v3 04/24] drm/panel: khadas-ts050: Don't call unprepare+disable at shutdown/remove

2024-06-04 Thread Douglas Anderson
@chromium.org Cc: Jacobe Zang Cc: Nicolas Belin Cc: Neil Armstrong Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown

[PATCH v3 02/24] drm/panel: boe-himax8279d: Don't call unprepare+disable at shutdown/remove

2024-06-04 Thread Douglas Anderson
.@chromium.org Cc: Jerry Han Cc: Jitao Shi Cc: Rock Wang Acked-by: Linus Walleij Acked-by: Maxime Ripard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. driver

[PATCH v3 01/24] drm/panel: boe-himax8279d: Stop tracking prepared/enabled

2024-06-04 Thread Douglas Anderson
ard Signed-off-by: Douglas Anderson --- (no changes since v2) Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/panel-boe-himax8279d.c | 31 +++- 1 file changed, 4 insertions(+), 27 del

[PATCH v3 00/24] drm/panel: Remove most store/double-check of prepared/enabled state

2024-06-04 Thread Douglas Anderson
p at shutdown Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. Douglas Anderson (24): drm/panel: boe-himax8279d: Stop tracking prepared/enabled drm/panel: boe-himax8279d: Don't call unprepare+disable at shutdown/remo

Re: (subset) [PATCH 2/2] drm/panel-edp: Add more panels with conservative timings

2024-05-28 Thread Douglas Anderson
n, so list as "Unknown" in this patch. > > [...] Applied, thanks! [2/2] drm/panel-edp: Add more panels with conservative timings commit: 336dca397dcefc5d7436be1fee3c814ed6512996 Best regards, -- Douglas Anderson

Re: (subset) [PATCH 1/2] drm/panel-edp: Add support for several panels

2024-05-28 Thread Douglas Anderson
40bb9e17924b Best regards, -- Douglas Anderson

[Kgdb-bugreport] [PATCH] kdb: Use the passed prompt in kdb_position_cursor()

2024-05-28 Thread Douglas Anderson
ion. This patch is expected to functionally be a no-op. Fixes: 09b35989421d ("kdb: Use format-strings rather than '\0' injection in kdb_read()") Signed-off-by: Douglas Anderson --- kernel/debug/kdb/kdb_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ker

Re: [PATCH] drm/dp: Fix documentation warning

2024-05-28 Thread Douglas Anderson
rm_dp_as_sdp' > > [...] Applied, thanks! [1/1] drm/dp: Fix documentation warning commit: c7ce956bb6d0f32ab921b6ffba1a6a834df96f21 Best regards, -- Douglas Anderson

Re: [PATCH] drm/panel-edp: Add CMN N116BCJ-EAK

2024-05-22 Thread Douglas Anderson
pplied, thanks! [1/1] drm/panel-edp: Add CMN N116BCJ-EAK commit: 7acacca1b157fcb258cfd781603425f73bc7370b Best regards, -- Douglas Anderson

[PATCH] dt-bindings: display: Reorganize legacy eDP panel bindings

2024-05-20 Thread Douglas Anderson
e builtin) and it absolutely requires an "enable" GPIO. - We'll un-fork the "sharp,ld-d5116z01b.yaml" and put it in "panel-edp-legacy.yaml" since there doesn't appear to be any reason for it to be separate. Suggested-by: Dmitry Baryshkov Signed-off-by: Dougl

[PATCH 6/8] drm/panel: himax-hx83102: If prepare fails, disable GPIO before regulators

2024-05-17 Thread Douglas Anderson
The enable GPIO should clearly be set low before turning off regulators. That matches both the inverse order that things were enabled and also the order in unprepare(). Fixes: 0ef94554dc40 ("drm/panel: himax-hx83102: Break out as separate driver") Signed-off-by: Douglas Anderson ---

[PATCH 7/8] drm/panel: himax-hx83102: Check for errors on the NOP in prepare()

2024-05-17 Thread Douglas Anderson
ax-hx83102: Break out as separate driver") Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-himax-hx83102.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-himax-hx83102.c b/drivers/gpu/drm/panel/panel-himax-hx83102.c ind

[PATCH 8/8] drm/panel: himax-hx83102: use wrapped MIPI DCS functions

2024-05-17 Thread Douglas Anderson
the "accum_err" variable for error returns, though that's definitely a style decision with pros and cons. Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-himax-hx83102.c | 92 +++-- 1 file changed, 28 insertions(+), 64 deletions(-) diff --git a/driv

[PATCH 3/8] drm/panel: boe-tv101wum-nl6: Check for errors on the NOP in prepare()

2024-05-17 Thread Douglas Anderson
panel: boe-tv101wum-nl6: Fine tune the panel power sequence") Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/panel/panel-boe

[PATCH 5/8] drm/panel: ilitek-ili9882t: Check for errors on the NOP in prepare()

2024-05-17 Thread Douglas Anderson
: ili9882t: Break out as separate driver") Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-ilitek-ili9882t.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9882t.c b/drivers/gpu/drm/panel/panel-ilitek-ili9882t.c ind

[PATCH 4/8] drm/panel: ilitek-ili9882t: If prepare fails, disable GPIO before regulators

2024-05-17 Thread Douglas Anderson
The enable GPIO should clearly be set low before turning off regulators. That matches both the inverse order that things were enabled and also the order in unprepare(). Fixes: e2450d32e5fb ("drm/panel: ili9882t: Break out as separate driver") Signed-off-by: Douglas Anderson --- drive

[PATCH 2/8] drm/panel: boe-tv101wum-nl6: If prepare fails, disable GPIO before regulators

2024-05-17 Thread Douglas Anderson
The enable GPIO should clearly be set low before turning off regulators. That matches both the inverse order that things were enabled and also the order in unprepare(). Fixes: a869b9db7adf ("drm/panel: support for boe tv101wum-nl6 wuxga dsi video mode panel") Signed-off-by: Dougla

[PATCH 1/8] drm/panel: himax-hx8394: Handle errors from mipi_dsi_dcs_set_display_on() better

2024-05-17 Thread Douglas Anderson
lly worked then we're return 0 (no error) from hx8394_enable() even though the panel wasn't enabled. Fix this by not blowing away "ret". Found by code inspection. Fixes: 65dc9360f741 ("drm: panel: Add Himax HX8394 panel controller driver") Signed-off-by: Douglas An

[PATCH 0/8] drm/panel: Some very minor err handling fixes + more _multi

2024-05-17 Thread Douglas Anderson
f79d6d28d8fe ("drm/mipi-dsi: wrap more functions for streamline handling"). His series handled the panel driver that himax-hx83102 forked from but not himax-hx83102. Douglas Anderson (8): drm/panel: himax-hx8394: Handle errors from mipi_dsi_dcs_set_display_on() better drm/

[PATCH v5 7/9] drm/panel: boe-tv101wum-nl6: Don't use a table for initting panels

2024-05-14 Thread Douglas Anderson
re touching all the tables, let's also convert hex numbers to lower case as per kernel conventions. Reviewed-by: Linus Walleij Signed-off-by: Douglas Anderson --- (no changes since v3) Changes in v3: - Fix spacing of init function. - Remove an unneeded error print. - Squash boe-tv101wum

[PATCH v5 9/9] drm/panel: innolux-p079zca: Don't use a table for initting panels

2024-05-14 Thread Douglas Anderson
ite code that is "inspired" by the new macros. Since we're touching all the tables, let's also convert hex numbers to lower case as per kernel conventions. Reviewed-by: Linus Walleij Signed-off-by: Douglas Anderson --- (no changes since v4) Changes in v4: - Test to see i

[PATCH v5 8/9] drm/panel: ili9882t: Don't use a table for initting panels

2024-05-14 Thread Douglas Anderson
-681 starry_ili9882t_init_cmd7320 - -7320 Total: Before=11928, After=10585, chg -11.26% Let's do the conversion. Since we're touching all the tables, let's also convert hex numbers to lower case as per kernel conventions. Reviewed-by: Linus Walleij Signed-off-

[PATCH v5 6/9] drm/panel: novatek-nt36672e: Switch to mipi_dsi_dcs_write_seq_multi()

2024-05-14 Thread Douglas Anderson
: Dmitry Baryshkov Reviewed-by: Linus Walleij Signed-off-by: Douglas Anderson --- This change is only compile tested. I don't use this panel myself but arbitrarily picked it as an example to look at when working on the MIPI DSI macros. (no changes since v3) Changes in v3: - Fix spacing of

[PATCH v5 5/9] drm/mipi-dsi: Introduce mipi_dsi_*_write_seq_multi()

2024-05-14 Thread Douglas Anderson
ed-by: Linus Walleij Signed-off-by: Douglas Anderson --- Right now this patch introduces two new functions in drm_mipi_dsi.c. Alternatively we could have changed the prototype of the "chatty" functions and made the deprecated macros adapt to the new prototype. While this sounds nice, it blo

[PATCH v5 3/9] drm/mipi-dsi: mipi_dsi_*_write functions don't need to ratelimit prints

2024-05-14 Thread Douglas Anderson
31815, After=15055, chg -52.68% Reviewed-by: Neil Armstrong Reviewed-by: Linus Walleij Signed-off-by: Douglas Anderson --- (no changes since v3) Changes in v3: - ("mipi_dsi_*_write functions don't need to ratelimit...") moved earlier. Changes in v2: - New include/drm

[PATCH v5 4/9] drm/mipi-dsi: Reduce driver bloat of mipi_dsi_*_write_seq()

2024-05-14 Thread Douglas Anderson
hat the current consensus of DRM folks is that the mipi_dsi_*_write_seq() should be deprecated due to the non-intuitive return behavior. A future patch will formally mark them as deprecated and provide an alternative. Reviewed-by: Dmitry Baryshkov Reviewed-by: Neil Armstrong Reviewed-by: Linus Walleij

[PATCH v5 2/9] drm/mipi-dsi: Fix theoretical int overflow in mipi_dsi_generic_write_seq()

2024-05-14 Thread Douglas Anderson
d in a 16-bit int would look negative. Though there are no callsites where we'd actually hit this (even if "int" was only 16-bit), it's cleaner to make the types match so let's fix it. Fixes: a9015ce59320 ("drm/mipi-dsi: Add a mipi_dsi_dcs_write_seq() macro"

[PATCH v5 1/9] drm/mipi-dsi: Fix theoretical int overflow in mipi_dsi_dcs_write_seq()

2024-05-14 Thread Douglas Anderson
d in a 16-bit int would look negative. Though there are no callsites where we'd actually hit this (even if "int" was only 16-bit), it's cleaner to make the types match so let's fix it. Fixes: 2a9e9daf7523 ("drm/mipi-dsi: Introduce mipi_dsi_dcs_write_seq macro"

[PATCH v5 0/9] drm/mipi-dsi: Reduce bloat and add funcs for cleaner init seqs

2024-05-14 Thread Douglas Anderson
e a table for initting commands - drm/panel: novatek-nt36672e: Switch to mipi_dsi_dcs_write_seq_multi() Douglas Anderson (9): drm/mipi-dsi: Fix theoretical int overflow in mipi_dsi_dcs_write_seq() drm/mipi-dsi: Fix theoretical int overflow in mipi_dsi_generic_write_seq() drm/mipi-ds

[PATCH v4 8/9] drm/panel: ili9882t: Don't use a table for initting panels

2024-05-08 Thread Douglas Anderson
-681 starry_ili9882t_init_cmd7320 - -7320 Total: Before=11928, After=10585, chg -11.26% Let's do the conversion. Since we're touching all the tables, let's also convert hex numbers to lower case as per kernel conventions. Reviewed-by: Linus Walleij Signed-off-

[PATCH v4 9/9] drm/panel: innolux-p079zca: Don't use a table for initting panels

2024-05-08 Thread Douglas Anderson
ite code that is "inspired" by the new macros. Since we're touching all the tables, let's also convert hex numbers to lower case as per kernel conventions. Reviewed-by: Linus Walleij Signed-off-by: Douglas Anderson --- Changes in v4: - Test to see if init is non-NULL before

[PATCH v4 7/9] drm/panel: boe-tv101wum-nl6: Don't use a table for initting panels

2024-05-08 Thread Douglas Anderson
re touching all the tables, let's also convert hex numbers to lower case as per kernel conventions. Reviewed-by: Linus Walleij Signed-off-by: Douglas Anderson --- (no changes since v3) Changes in v3: - Fix spacing of init function. - Remove an unneeded error print. - Squash boe-tv101wum

[PATCH v4 6/9] drm/panel: novatek-nt36672e: Switch to mipi_dsi_dcs_write_seq_multi()

2024-05-08 Thread Douglas Anderson
: Douglas Anderson --- This change is only compile tested. I don't use this panel myself but arbitrarily picked it as an example to look at when working on the MIPI DSI macros. NOTE: as of the posting of v4 this change still has no tags. Without any tags (Reviewed-by/Tested-by/Acked-by) I

[PATCH v4 5/9] drm/mipi-dsi: Introduce mipi_dsi_*_write_seq_multi()

2024-05-08 Thread Douglas Anderson
ed-by: Linus Walleij Signed-off-by: Douglas Anderson --- Right now this patch introduces two new functions in drm_mipi_dsi.c. Alternatively we could have changed the prototype of the "chatty" functions and made the deprecated macros adapt to the new prototype. While this sounds nice, it blo

[PATCH v4 4/9] drm/mipi-dsi: Reduce driver bloat of mipi_dsi_*_write_seq()

2024-05-08 Thread Douglas Anderson
hat the current consensus of DRM folks is that the mipi_dsi_*_write_seq() should be deprecated due to the non-intuitive return behavior. A future patch will formally mark them as deprecated and provide an alternative. Reviewed-by: Dmitry Baryshkov Reviewed-by: Neil Armstrong Reviewed-by: Linus Walleij S

[PATCH v4 3/9] drm/mipi-dsi: mipi_dsi_*_write functions don't need to ratelimit prints

2024-05-08 Thread Douglas Anderson
31815, After=15055, chg -52.68% Reviewed-by: Neil Armstrong Reviewed-by: Linus Walleij Signed-off-by: Douglas Anderson --- (no changes since v3) Changes in v3: - ("mipi_dsi_*_write functions don't need to ratelimit...") moved earlier. Changes in v2: - New include/drm

  1   2   3   4   5   6   7   8   9   10   >