NULL pointer dereference in drm_dp_add_payload_part2+0xca/0x100

2023-04-08 Thread Jeff Layton
I've hit some repeated crashes in drm_dp_add_payload_part2. Here's one from this morning that occurred not long after booting the machine. I hadn't even logged in yet -- it was still at a gdm prompt: Apr 08 05:34:20 tleilax kernel: amdgpu :30:00.0: [drm] Failed to create MST payload for port

Re: [PATCH 48/68] hwmon: nzxt: constify pointers to hwmon_channel_info

2023-04-08 Thread Aleksandr Mezin
On Thu, Apr 6, 2023 at 11:37 PM Krzysztof Kozlowski wrote: > -static const struct hwmon_channel_info *nzxt_smart2_channel_info[] = { > +static const struct hwmon_channel_info * const nzxt_smart2_channel_info[] = { In the rest of nzxt-smart2.c there are spaces only before "*", not on both sides

[PATCH] drm/bridge: ti-sn65dsi86: Implement wait_hpd_asserted

2023-04-08 Thread Nikita Travkin
This bridge doesn't actually implement HPD due to it being way too slow but instead expects the panel driver to wait enough to assume HPD is asserted. However some panels (such as the generic 'edp-panel') expect the bridge to deal with the delay and pass maximum delay to the aux instead. In order

Re: [PATCH 48/68] hwmon: nzxt: constify pointers to hwmon_channel_info

2023-04-08 Thread Jonas Malaco
On Sat, Apr 08, 2023 at 06:14:19AM +0300, Aleksandr Mezin wrote: > On Thu, Apr 6, 2023 at 11:37 PM Krzysztof Kozlowski > wrote: > > -static const struct hwmon_channel_info *nzxt_smart2_channel_info[] = { > > +static const struct hwmon_channel_info * const nzxt_smart2_channel_info[] > > = { > >

[PATCH] Staging: fbtft: fbtft-bus: fixed extra space and parenthesis issue

2023-04-08 Thread Deepanshu Kartikey
Fixed a coding styling issue Signed-off-by: Deepanshu Kartikey --- drivers/staging/fbtft/fbtft-bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c index 3d422bc11641..02a16671f2a1 100644 ---

[PATCH] staging: fbtft: fbtft-bus.c added params

2023-04-08 Thread Deepanshu Kartikey
Added cpu_to_be16 param in define_fbtft_write_reg Signed-off-by: Deepanshu Kartikey --- drivers/staging/fbtft/fbtft-bus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c index

Re: [PATCH] Staging: fbtft: fbtft-bus: fixed extra space and parenthesis issue

2023-04-08 Thread kernel test robot
Hi Deepanshu, kernel test robot noticed the following build errors: [auto build test ERROR on staging/staging-testing] url: https://github.com/intel-lab-lkp/linux/commits/Deepanshu-Kartikey/Staging-fbtft-fbtft-bus-fixed-extra-space-and-parenthesis-issue/20230408-130429 patch link: https

Re: [RFC 1/2] drm: Add fdinfo memory stats

2023-04-08 Thread Emil Velikov
Hey Rob, On Thu, 6 Apr 2023 at 22:59, Rob Clark wrote: > +- drm-purgeable-memory: [KiB|MiB] > + > +The total size of buffers that are purgable. s/purgable/purgeable/ > +static void print_size(struct drm_printer *p, const char *stat, size_t sz) > +{ > + const char *units[] = {"B",

[PATCH 4/4] accel/habanalabs: add missing error flow in hl_sysfs_init()

2023-04-08 Thread Oded Gabbay
From: Tomer Tayar hl_sysfs_fini() is called only if hl_sysfs_init() completes successfully. Therefore if hl_sysfs_init() fails, need to remove any sysfs group that was added until that point. Signed-off-by: Tomer Tayar Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay ---

[PATCH 3/4] accel/habanalabs: speedup h/w queues test in Gaudi2

2023-04-08 Thread Oded Gabbay
From: Moti Haimovski HW queues testing at driver load and after reset takes a substantial amount of time. This commit reduces the queues test time in Gaudi2 devices by running all the tests in parallel instead of one after the other. Time measurements on tests duration shows that the new method

[PATCH 1/4] accel/habanalabs: remove Gaudi1 multi MSI code

2023-04-08 Thread Oded Gabbay
From: Ofir Bitton Multi MSI interrupts aren't working in Gaudi1 and because of that, we are only using a single MSI interrupt. Therefore, let's remove this dead code in order to avoid confusion. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay ---

[PATCH 2/4] accel/habanalabs: fix handling of arc farm sei event

2023-04-08 Thread Oded Gabbay
From: Dani Liberman There is only single eq entry for arc farm sei event which aggregates events from the four arc farms. Fix the code to handle this event according to this behavior. Signed-off-by: Dani Liberman Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay ---

Re: [PATCH] staging: fbtft: fbtft-bus.c added params

2023-04-08 Thread Greg KH
On Sat, Apr 08, 2023 at 01:48:17PM +0530, Deepanshu Kartikey wrote: > Added cpu_to_be16 param in define_fbtft_write_reg > > Signed-off-by: Deepanshu Kartikey > --- > drivers/staging/fbtft/fbtft-bus.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git

Re: [PATCH] staging: fbtft: fbtft-bus.c added params

2023-04-08 Thread kernel test robot
Hi Deepanshu, kernel test robot noticed the following build warnings: [auto build test WARNING on staging/staging-testing] url: https://github.com/intel-lab-lkp/linux/commits/Deepanshu-Kartikey/staging-fbtft-fbtft-bus-c-added-params/20230408-161947 patch link: https://lore.kernel.org/r

[Bug 201497] [amdgpu]: '*ERROR* No EDID read' is back in 4.19

2023-04-08 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201497 Emre (ereno...@gmail.com) changed: What|Removed |Added CC||ereno...@gmail.com ---

[PATCH] dt-bindings: drm/bridge: ti-sn65dsi86: Fix the video-interfaces.yaml references

2023-04-08 Thread Fabio Estevam
From: Fabio Estevam video-interface.txt does not exist anymore, as it has been converted to video-interfaces.yaml. Update the references to the new file name. Signed-off-by: Fabio Estevam --- .../devicetree/bindings/display/bridge/ti,sn65dsi86.yaml | 8 1 file changed, 4

[PATCH] drm/qxl: remove variable count

2023-04-08 Thread Tom Rix
clang with W=1 reports drivers/gpu/drm/qxl/qxl_cmd.c:424:6: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable] int count = 0; ^ This variable is not used so remove it. Signed-off-by: Tom Rix --- drivers/gpu/drm/qxl/qxl_cmd.c | 2 -- 1 file

Re: [RFC PATCH 00/10] Xe DRM scheduler and long running workload plans

2023-04-08 Thread Asahi Lina
On 04/04/2023 10.58, Matthew Brost wrote: On Tue, Apr 04, 2023 at 10:07:48AM +0900, Asahi Lina wrote: Hi, thanks for the Cc! No problem. On 04/04/2023 09.22, Matthew Brost wrote: Hello, As a prerequisite to merging the new Intel Xe DRM driver [1] [2], we have been asked to merge our

[PATCH v1 2/2] ARM: tegra: transformers: add connector node

2023-04-08 Thread Svyatoslav Ryhel
All ASUS Transformers have micro-HDMI connector directly available. After Tegra HDMI got bridge/connector support, we should use connector framework for proper HW description. Tested-by: Andreas Westman Dorcsak # ASUS TF T30 Tested-by: Robert Eckelmann # ASUS TF101 T20 Tested-by: Svyatoslav

[PATCH v1 1/2] drm/tegra: output: hdmi: Support bridge/connector

2023-04-08 Thread Svyatoslav Ryhel
From: Maxim Schwalm Some Tegra device-trees may specify a video output graph, which involves MHL bridge/simple bridge and/or connector framework. This patch adds support for the bridge/connector attached to the HDMI output, allowing us to model the hardware properly. Inspired by: 29efdc2

[PATCH v1 0/2] Support bridge/connector by Tegra HDMI

2023-04-08 Thread Svyatoslav Ryhel
This patch adds support for the bridge/connector attached to the HDMI output, allowing to model the hardware properly. It keeps backwards compatibility with existing bindings and is required by devices which have a simple or MHL bridge connected to HDMI output like ASUS P1801-T or LG P880/P895 or

Re: [PATCH] Staging: fbtft: fbtft-bus: fixed extra space and parenthesis issue

2023-04-08 Thread kernel test robot
Hi Deepanshu, kernel test robot noticed the following build errors: [auto build test ERROR on staging/staging-testing] url: https://github.com/intel-lab-lkp/linux/commits/Deepanshu-Kartikey/Staging-fbtft-fbtft-bus-fixed-extra-space-and-parenthesis-issue/20230408-130429 patch link: https

Re: [PATCH] drm/sun4i: uncouple DSI dotclock divider from TCON0_DCLK_REG

2023-04-08 Thread Jernej Škrabec
Dne sreda, 05. april 2023 ob 14:34:11 CEST je Roman Beranek napisal(a): > Hello Maxime, > > On Wed Mar 29, 2023 at 9:58 PM CEST, Maxime Ripard wrote: > > > In order to preserve semantic correctness however, I propose to preface > > > the change with a patch that renames sun4i_dotclock and

Re: [PATCH v8 0/8] drm: Remove usage of deprecated DRM_* macros

2023-04-08 Thread Siddh Raman Pant
On Tue, 28 Feb 2023 14:55:04 +0530, Siddh Raman Pant wrote: > This patchset aims to remove usages of deprecated DRM_* macros from the > files residing in drivers/gpu/drm root. > > In process, I found out that NULL as first argument of drm_dbg_* wasn't > working, but it was listed as the

Re: [PATCH] Staging: fbtft: fbtft-bus: fixed extra space and parenthesis issue

2023-04-08 Thread Greg KH
On Sat, Apr 08, 2023 at 10:33:23AM +0530, Deepanshu Kartikey wrote: > Fixed a coding styling issue > > Signed-off-by: Deepanshu Kartikey > --- > drivers/staging/fbtft/fbtft-bus.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/fbtft/fbtft-bus.c >

Re: [PATCH v3 01/13] firmware/sysfb: Fix EFI/VESA format selection

2023-04-08 Thread Linux regression tracking #adding (Thorsten Leemhuis)
[CCing the regression list, as it should be in the loop for regressions: https://docs.kernel.org/admin-guide/reporting-regressions.html] [TLDR: I'm adding this report to the list of tracked Linux kernel regressions; the text you find below is based on a few templates paragraphs you might have

Re: [RFC 2/2] drm/msm: Add memory stats to fdinfo

2023-04-08 Thread Emil Velikov
On Thu, 6 Apr 2023 at 22:59, Rob Clark wrote: > > From: Rob Clark > > Use the new helper to export stats about memory usage. > > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/msm_drv.c | 26 +- > drivers/gpu/drm/msm/msm_gpu.c | 2 -- > 2 files changed, 25

[PATCH] drm/amd/display: set variables dml*_funcs storage-class-specifier to static

2023-04-08 Thread Tom Rix
smatch reports drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.c:44:24: warning: symbol 'dml20_funcs' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.c:51:24: warning: symbol 'dml20v2_funcs' was not declared. Should it be

Re: [PATCH v3 01/13] firmware/sysfb: Fix EFI/VESA format selection

2023-04-08 Thread Pierre Asselin
Oh oh, I just reproduced the problem on a desktop tower, a Dell Precision T3610, probably 2019 vintage. The only thing in common with the old laptop, that I can think of, is that both use the legacy BIOS. The Dell has EFI but the graphics card may not support that; there is no integrated

[RFC PATCH] drm/msm/a5xx: really check for A510 in a5xx_gpu_init

2023-04-08 Thread Dmitry Baryshkov
The commit 010c8bbad2cb ("drm: msm: adreno: Disable preemption on Adreno 510") added special handling for a510 (this SKU doesn't seem to support preemption, so the driver should clamp nr_rings to 1). However the gpu->revn is not yet set (it is set later, in adreno_gpu_init()) and thus the