RE: [PATCH v2] drm/dp_mst: Clear MSG_RDY flag before sending new message

2023-05-22 Thread Lin, Wayne
[Public] Hi Jani, Thanks for your time! Comments inline. > -Original Message- > From: Jani Nikula > Sent: Tuesday, May 16, 2023 6:34 PM > To: Lin, Wayne ; dri-devel@lists.freedesktop.org; > amd-...@lists.freedesktop.org > Cc: ly...@redhat.com; ville.syrj...@linux.intel.com; imre.d...@int

[PATCH] drm/msm: Remove unnecessary (void*) conversions

2023-05-22 Thread Su Hui
Pointer variables of (void*) type do not require type cast. Signed-off-by: Su Hui --- drivers/gpu/drm/msm/adreno/a5xx_debugfs.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 2 +- drivers/gp

Re: [PATCH v14 2/2] MAINTAINERS: add maintainers for DRM LOONGSON driver

2023-05-22 Thread WANG Xuerui
On 2023/5/20 18:57, Sui Jingfeng wrote: From: Sui Jingfeng This patch add Sui Jingfeng as maintainer to drm/loongson driver, also invite Thomas Zimmermann as co-maintainer. Hmm, it could be more polite to perhaps wait a bit longer? If I didn't see it wrong you posted v14 after no more tha

Re: [v1 0/2] *** Support Starry-himax83102-j02 and Starry-ili9882t TDDI MIPI-DSI panel ***

2023-05-22 Thread neil . armstrong
Hi, On 19/05/2023 10:01, Cong Yang wrote: The previous patch is not based on drm-misc-next, resend this series. Support Starry-himax83102-j02 and Starry-ili9882t TDDI MIPI-DSI panel, set the default high for RST at boe_panel_add and add lp11_before_reset flag. If the reset gpio polarity is di

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
Hi, I love your reviews, On 2023/5/21 20:21, WANG Xuerui wrote: Hi, Someone else in a discussion group brought my attention to this series, that I've neglected for a long time because loonga...@lists.linux.dev isn't on the Cc list and I'm not subscribed to dri-devel. While I'm reasonabl

[PATCH next] drm/amdgpu: Fix unsigned comparison with zero in gmc_v9_0_process_interrupt()

2023-05-22 Thread Harshit Mogalapalli
Smatch warns: drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:579: unsigned 'xcc_id' is never less than zero. gfx_v9_4_3_ih_to_xcc_inst() returns negative numbers as well. Fix this by changing type of xcc_id to int. Fixes: faf96b9b602d ("drm/amdgpu: correct the vmhub index when page fault

[PATCH] drm/msm/dpu: signedness bug in dpu_encoder_phys_cmd_tearcheck_config()

2023-05-22 Thread Dan Carpenter
The "vsync_hz" variable is used to store negative error codes so it needs to be signed for the error checking to work correctly. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Dan Carpenter --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 2 +- 1 file changed, 1

[bug report] habanalabs: extend fatal messages to contain PCI info

2023-05-22 Thread Dan Carpenter
Hello Moti Haimovski, The patch 2a0a839b6a28: "habanalabs: extend fatal messages to contain PCI info" from Dec 29, 2022, leads to the following Smatch static checker warning: drivers/accel/habanalabs/common/device.c:2336 hl_device_init() warn: address of NULL pointer 'hdev->pdev'

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/21 20:21, WANG Xuerui wrote: --- /dev/null +++ b/drivers/gpu/drm/loongson/Kconfig @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: GPL-2.0 + +config DRM_LOONGSON +    tristate "DRM support for Loongson Graphics" +    depends on DRM && PCI && MMU +    select DRM_KMS_HELPER +    select D

Re: [PATCH v6 4/8] drm/bridge: mhdp8546: Set input_bus_flags from atomic_check

2023-05-22 Thread neil . armstrong
On 17/05/2023 07:48, Aradhya Bhatia wrote: Hi Neil, On 16-May-23 12:54, Neil Armstrong wrote: On 09/05/2023 11:30, Aradhya Bhatia wrote: From: Nikhil Devshatwar input_bus_flags are specified in drm_bridge_timings (legacy) as well as drm_bridge_state->input_bus_cfg.flags The flags from the t

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/21 20:21, WANG Xuerui wrote: + +  If in doubt, say "N". diff --git a/drivers/gpu/drm/loongson/Makefile b/drivers/gpu/drm/loongson/Makefile new file mode 100644 index ..9158816ece8e --- /dev/null +++ b/drivers/gpu/drm/loongson/Makefile @@ -0,0 +1,20 @@ +# SPDX-Lice

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
On 2023/5/22 16:09, WANG Xuerui wrote: On 2023/5/22 16:02, Sui Jingfeng wrote: Hi, On 2023/5/21 20:21, WANG Xuerui wrote: --- /dev/null +++ b/drivers/gpu/drm/loongson/Kconfig @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: GPL-2.0 + +config DRM_LOONGSON +    tristate "DRM support for Loongson G

Re: [PATCH v5 2/3] drm/panel: Add Samsung S6D7AA0 panel controller driver

2023-05-22 Thread Neil Armstrong
On 19/05/2023 19:03, Artur Weber wrote: Initial driver for S6D7AA0-controlled panels. Currently, the following panels are supported: - S6D7AA0-LSL080AL02 (Samsung Galaxy Tab 3 8.0) - S6D7AA0-LSL080AL03 (Samsung Galaxy Tab A 8.0 2015) - S6D7AA0-LTL101AT01 (Samsung Galaxy Tab A 9.7 2015) It

Re: [PATCH v5 3/3] MAINTAINERS: Add entry for Samsung S6D7AA0 LCD panel controller driver

2023-05-22 Thread Neil Armstrong
On 19/05/2023 19:03, Artur Weber wrote: Add myself as maintainer of the Samsung S6D7AA0 panel driver. Signed-off-by: Artur Weber --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 402e26d0cdbc..7cc2bfa4af6f 100644 --- a/MAINTAINERS +++ b

Re: [PATCH] drm/msm/dpu: signedness bug in dpu_encoder_phys_cmd_tearcheck_config()

2023-05-22 Thread Marijn Suijten
On 2023-05-22 10:48:01, Dan Carpenter wrote: > The "vsync_hz" variable is used to store negative error codes so it > needs to be signed for the error checking to work correctly. Nicely spotted, but it it looks like we have more to fix then. The type returned by dpu_kms_get_clk_rate() is u64: - P

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/21 20:21, WANG Xuerui wrote: +/* + * Copyright (C) 2023 Loongson Technology Corporation Limited + */ + +#include + +#include "lsdc_benchmark.h" +#include "lsdc_drv.h" +#include "lsdc_gem.h" +#include "lsdc_ttm.h" + +typedef void (*lsdc_copy_proc_t)(struct lsdc_bo *src_bo, + 

Re: [PATCH 7/7] dt-bindings: Add bidings for mtk,apu-drm

2023-05-22 Thread Alexandre Bailon
On 5/17/23 17:04, AngeloGioacchino Del Regno wrote: Il 17/05/23 16:52, Alexandre Bailon ha scritto: This adds the device tree bindings for the APU DRM driver. Signed-off-by: Alexandre Bailon Reviewed-by: Julien Stephan ---   .../devicetree/bindings/gpu/mtk,apu-drm.yaml  | 38 ++

Re: [PATCH 2/2] drm/panel-fannal-c3004: Add fannal c3004 DSI panel

2023-05-22 Thread neil . armstrong
Hi, On 19/05/2023 16:24, Paulo Pavacic wrote: Fannal C3004 is a 480x800 display made by fannal that requires DCS initialization sequences. Signed-off-by: Paulo Pavacic --- v2 changelog: - renamed from panel-mipi-dsi-bringup - only one MAINTAINER e-mail --- MAINTAINERS

Re: [PATCH 0/2] drm/panel: add fannal c3004 panel

2023-05-22 Thread neil . armstrong
On 19/05/2023 16:24, Paulo Pavacic wrote: Fannal C3004 is a 2 lane MIPI DSI 480x800 panel which requires initialization with DSI DCS commands. After some commands delay is required. By curiosity, on which board is this panel used ? Neil In previous discussions for device tree [1] [2] and d

Re: [PATCH RFC 01/10] drm/panel: Clean up SOFEF00 config dependencies

2023-05-22 Thread Neil Armstrong
On 21/05/2023 23:23, Marijn Suijten wrote: As per the config name this Display IC features a DSI command-mode interface (or the command to switch to video mode is not known/documented) and does not use any of the video-mode helper utilities, hence should not select VIDEOMODE_HELPERS. In addition

[PATCH][next] drm/amdgpu: Fix a couple of spelling mistakes in info and debug messages

2023-05-22 Thread Colin Ian King
There are a couple of spelling mistakes, one in a dev_info message and the other in a dev_debug message. Fix them. Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) d

Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-22 Thread Neil Armstrong
On 22/05/2023 03:16, Dmitry Baryshkov wrote: On 22/05/2023 00:23, Marijn Suijten wrote: Sony provides an unlabeled LGD + Atmel maXTouch assembly in its Xperia XZ3 (tama akatsuki) phone, with custom DCS commands to match. This panel features Display Stream Compression 1.1. Signed-off-by: Marijn

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/21 20:21, WANG Xuerui wrote: +++ b/drivers/gpu/drm/loongson/lsdc_debugfs.c @@ -0,0 +1,91 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2023 Loongson Technology Corporation Limited + */ + +#include + +#include "lsdc_benchmark.h" +#include "lsdc_drv.h" +#include "ls

Re: [PATCH 1/2] dt-bindings: display: panel: Add Visionox R66451 AMOLED DSI panel bindings

2023-05-22 Thread Neil Armstrong
On 21/05/2023 12:30, Marijn Suijten wrote: On 2023-05-16 13:20:30, Jessica Zhang wrote: Document the 1080x2340 Visionox R66451 AMOLED DSI panel bindings Signed-off-by: Jessica Zhang --- .../bindings/display/panel/visionox,r66451.yaml| 59 ++ 1 file changed, 59 insert

Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II

2023-05-22 Thread Neil Armstrong
On 22/05/2023 03:23, Dmitry Baryshkov wrote: On 22/05/2023 00:23, Marijn Suijten wrote: The SOFEF03-M Display-IC paired with an unknown panel in the Sony Xperia 5 II always uses Display Stream Compression 1.1 and features a 60hz and 120hz refresh-rate mode. Co-developed-by: Konrad Dybcio Kon

Re: [PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel

2023-05-22 Thread Neil Armstrong
On 16/05/2023 22:20, Jessica Zhang wrote: Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that comes with the Qualcomm HDK8350 display expansion pack. The panel enables display compression (DSC v1.2) by default. Signed-off-by: Jessica Zhang --- drivers/gpu/drm/panel/Kconfig

Re: [PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel

2023-05-22 Thread Neil Armstrong
On 18/05/2023 02:19, Dmitry Baryshkov wrote: On 16/05/2023 23:20, Jessica Zhang wrote: Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that comes with the Qualcomm HDK8350 display expansion pack. The panel enables display compression (DSC v1.2) by default. Signed-off-by: Jessica

Re: [PATCH] drm/panel: Support for Starry-himax83102-j02 TDDI MIPI-DSI panel

2023-05-22 Thread neil . armstrong
Hi, On 19/05/2023 05:23, Cong Yang wrote: The Starry-himax83102-j02 panel is a TDDI IC. From the datasheet[1], it seems that the touch can communicate successfully only when the RST signal is high. Since i2c_hid_core_probe comes after boe_panel_prepare let's set the default high for RST at boe_p

Re: [PATCH v5 0/3] Add Samsung S6D7AA0 panel controller driver

2023-05-22 Thread Neil Armstrong
Hi, On Fri, 19 May 2023 19:03:51 +0200, Artur Weber wrote: > This patchset adds initial support for Samsung S6D7AA0-based panels. > Currently, the following panels are supported: > > - S6D7AA0-LSL080AL02 (Samsung Galaxy Tab 3 8.0) > - S6D7AA0-LSL080AL03 (Samsung Galaxy Tab A 8.0 2015) > - S6D7

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/21 20:21, WANG Xuerui wrote: + * LS3A4000/LS3A5000/LS3A6000 CPU, they are equipped with on-board video RAM + * typically. While LS2K0500/LS2K1000/LS2K2000 are low cost SoCs which share + * the system RAM as video RAM, they don't has a dediacated VRAM. CPU models are not typical

Re: [PATCH v12 3/9] drm/display/dsc: Add drm_dsc_get_bpp_int helper

2023-05-22 Thread Jani Nikula
On Wed, 17 May 2023, Jessica Zhang wrote: > Add helper to get the integer value of drm_dsc_config.bits_per_pixel > > Reviewed-by: Marijn Suijten > Signed-off-by: Jessica Zhang > --- > include/drm/display/drm_dsc_helper.h | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/include/dr

Re: [PATCH v12 1/9] drm/display/dsc: Add flatness and initial scale value calculations

2023-05-22 Thread Jani Nikula
On Wed, 17 May 2023, Jessica Zhang wrote: > Add helpers to calculate det_thresh_flatness and initial_scale_value as > these calculations are defined within the DSC spec. > > Reviewed-by: Marijn Suijten > Signed-off-by: Jessica Zhang > --- > include/drm/display/drm_dsc_helper.h | 10 ++ >

Re: [PATCH 2/2] drm/ofdrm: Update expected device name

2023-05-22 Thread Linux regression tracking (Thorsten Leemhuis)
Hi, Thorsten here, the Linux kernel's regression tracker. Top-posting for once, to make this easily accessible to everyone. Was a proper solution for the regression the initial mail in this thread is about ever found? Doesn't look like it for here, but maybe I'm missing something. Reminder, the p

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/21 20:21, WANG Xuerui wrote: +#ifndef __LSDC_REGS_H__ +#define __LSDC_REGS_H__ + +#include +#include + +/* + * PIXEL PLL Reference clock + */ +#define LSDC_PLL_REF_CLK    10   /* kHz */ Consider naming it like "LSDC_PLL_REF_CLK_KHZ" for it to be self-do

Re: [PATCH v2] drm: fix drmm_mutex_init()

2023-05-22 Thread Thomas Zimmermann
Hi Am 19.05.23 um 11:07 schrieb Matthew Auld: In mutex_init() lockdep identifies a lock by defining a special static key for each lock class. However if we wrap the macro in a function, like in drmm_mutex_init(), we end up generating: int drmm_mutex_init(struct drm_device *dev, struct mutex *lo

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/22 17:28, WANG Xuerui wrote: On 2023/5/22 17:25, Sui Jingfeng wrote: Hi, On 2023/5/21 20:21, WANG Xuerui wrote: + * LS3A4000/LS3A5000/LS3A6000 CPU, they are equipped with on-board video RAM + * typically. While LS2K0500/LS2K1000/LS2K2000 are low cost SoCs which share + * the s

Re: [PATCH v2] drm: fix drmm_mutex_init()

2023-05-22 Thread Matthew Auld
On 22/05/2023 10:43, Thomas Zimmermann wrote: Hi Am 19.05.23 um 11:07 schrieb Matthew Auld: In mutex_init() lockdep identifies a lock by defining a special static key for each lock class. However if we wrap the macro in a function, like in drmm_mutex_init(), we end up generating: int drmm_mute

Re: [PATCH] drm/panel: Support for Starry-himax83102-j02 TDDI MIPI-DSI panel

2023-05-22 Thread cong yang
Hi,Neil 1: RST will be pull low in boe_panel_prepare static int boe_panel_prepare(struct drm_panel *panel) { ... gpiod_set_value(boe->enable_gpio, 0); usleep_range(1000, 1500); ... ... gpiod_set_value(boe->enable_gpio, 1); usleep_range(1000, 2000); gpiod_set_value(boe->enable_gpio, 0); usleep_ran

Re: [PATCH v4 05/11] drm/mediatek: gamma: Enable the Gamma LUT table only after programming

2023-05-22 Thread 胡俊光

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/22 18:05, WANG Xuerui wrote: On 2023/5/22 17:49, Sui Jingfeng wrote: Hi, On 2023/5/22 17:28, WANG Xuerui wrote: On 2023/5/22 17:25, Sui Jingfeng wrote: Hi, On 2023/5/21 20:21, WANG Xuerui wrote: + * LS3A4000/LS3A5000/LS3A6000 CPU, they are equipped with on-board video RAM + *

[PATCH v5 01/11] i2c: Enhance i2c_new_ancillary_device API

2023-05-22 Thread Biju Das
Renesas PMIC RAA215300 exposes two separate i2c devices, one for the main device and another for rtc device. Enhance i2c_new_ancillary_device() to instantiate a real device. (eg: Instantiate rtc device from PMIC driver) Added helper function __i2c_new_dummy_device to share the code between i2c_ne

[PATCH v5 09/44] drm: handle HAS_IOPORT dependencies

2023-05-22 Thread Niklas Schnelle
In a future patch HAS_IOPORT=n will result in inb()/outb() and friends not being declared. We thus need to add HAS_IOPORT as dependency for those drivers using them. In the bochs driver there is optional MMIO support detected at runtime, warn if this isn't taken when HAS_IOPORT is not defined. The

[PATCH v5 40/44] fbdev: add HAS_IOPORT dependencies

2023-05-22 Thread Niklas Schnelle
In a future patch HAS_IOPORT=n will result in inb()/outb() and friends not being declared. We thus need to add HAS_IOPORT as dependency for those drivers using them. Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/video/fbdev/Kconfig | 23

[PATCH v5 39/44] vgacon: add HAS_IOPORT dependencies

2023-05-22 Thread Niklas Schnelle
In a future patch HAS_IOPORT=n will result in inb()/outb() and friends not being declared. We thus need to add HAS_IOPORT as dependency for those drivers using them. Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/video/console/Kconfig | 1

[PATCH v5 41/44] video: Handle HAS_IOPORT dependencies

2023-05-22 Thread Niklas Schnelle
In a future patch HAS_IOPORT=n will result in inb()/outb() and friends not being declared. We thus need to #ifdef functions and their callsites which unconditionally use these I/O accessors. In the include/video/vga.h these are conveniently all those functions with the vga_io_* prefix. Co-develope

[PATCH v5] drm/i915: avoid flush_scheduled_work() usage

2023-05-22 Thread Tetsuo Handa
Like commit c4f135d643823a86 ("workqueue: Wrap flush_workqueue() using a macro") says, flush_scheduled_work() is dangerous and will be forbidden. i915 became the last flush_scheduled_work() user, but developers cannot find time for auditing which work items does this flush_scheduled_work() need to

Re: [PATCH] drm/nouveau: dispnv50: fix missing-prototypes warning

2023-05-22 Thread Karol Herbst
Reviewed-by: Karol Herbst will merge soon On Mon, Apr 17, 2023 at 11:03 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > nv50_display_create() is declared in another header, along with > a couple of declarations that are now outdated: > > drivers/gpu/drm/nouveau/dispnv50/disp.c:2517:1: erro

Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/22 18:05, WANG Xuerui wrote: On 2023/5/22 17:49, Sui Jingfeng wrote: Hi, On 2023/5/22 17:28, WANG Xuerui wrote: On 2023/5/22 17:25, Sui Jingfeng wrote: Hi, On 2023/5/21 20:21, WANG Xuerui wrote: + * LS3A4000/LS3A5000/LS3A6000 CPU, they are equipped with on-board video RAM + *

Re: [PATCH v2] drm: fix drmm_mutex_init()

2023-05-22 Thread Thomas Zimmermann
Am 22.05.23 um 11:50 schrieb Matthew Auld: On 22/05/2023 10:43, Thomas Zimmermann wrote: Hi Am 19.05.23 um 11:07 schrieb Matthew Auld: In mutex_init() lockdep identifies a lock by defining a special static key for each lock class. However if we wrap the macro in a function, like in drmm_mute

Re: [PATCH] drm/nouveau/acr/ga102: set variable ga102_gsps storage-class-specifier to static

2023-05-22 Thread Karol Herbst
Reviewed-by: Karol Herbst On Wed, May 17, 2023 at 3:31 PM Tom Rix wrote: > > smatch reports > drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga102.c:49:1: warning: symbol > 'ga102_gsps' was not declared. Should it be static? > > This variable is only used in its defining file, so it should be static

[PATCH 1/4] accel/habanalabs: remove sim code

2023-05-22 Thread Oded Gabbay
There were a few places where simulator only code got into the upstream. Remove those places that can confuse other developers. Fixes: 2a0a839b6a28 ("habanalabs: extend fatal messages to contain PCI info") Cc: Moti Haimovski Cc: Dan Carpenter Signed-off-by: Oded Gabbay --- drivers/accel/habana

[PATCH 2/4] accel/habanalabs: add description to several info ioctls

2023-05-22 Thread Oded Gabbay
From: Dani Liberman Several info ioctls may return success although no data retrieved. Signed-off-by: Dani Liberman Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- include/uapi/drm/habanalabs_accel.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/uapi/drm/hab

[PATCH 4/4] accel/habanalabs: move ioctl error print to debug level

2023-05-22 Thread Oded Gabbay
We don't want to allow users to spam the kernel log and sending ioctls with bad opcodes is a sure way to do it. Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/common/habanalabs_ioctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/accel/habanalabs/com

[PATCH 3/4] accel/habanalabs: fix bug of not fetching addr_dec info

2023-05-22 Thread Oded Gabbay
From: Ofir Bitton addr_dec info should always be fetched, regardless of cause value. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/gaudi2/gaudi2.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers

Re: [PATCH] drm/drm_vblank.c: avoid unsigned int to signed int cast

2023-05-22 Thread Jani Nikula
On Thu, 18 May 2023, Sui Jingfeng <15330273...@189.cn> wrote: > On 2023/5/17 18:59, David Laight wrote: >> From: 15330273...@189.cn >>> Sent: 16 May 2023 18:30 >>> >>> From: Sui Jingfeng >>> >>> Both mode->crtc_htotal and mode->crtc_vtotal are u16 type, >>> mode->crtc_htotal * mode->crtc_vtotal wi

Re: [PATCH 1/4] accel/habanalabs: remove sim code

2023-05-22 Thread Dan Carpenter
Thanks! On Mon, May 22, 2023 at 02:25:45PM +0300, Oded Gabbay wrote: > diff --git a/drivers/accel/habanalabs/common/device.c > b/drivers/accel/habanalabs/common/device.c > index cab5a63db8c1..ca15c8d0d042 100644 > --- a/drivers/accel/habanalabs/common/device.c > +++ b/drivers/accel/habanalabs/com

Re: [PATCH net-next v3 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-05-22 Thread Simon Horman
On Fri, May 19, 2023 at 02:19:41PM -0700, Justin Chen wrote: > Add support for the Broadcom ASP 2.0 Ethernet controller which is first > introduced with 72165. This controller features two distinct Ethernet > ports that can be independently operated. > > This patch supports: > > - Wake-on-LAN usi

Re: [PATCH 1/4] accel/habanalabs: remove sim code

2023-05-22 Thread Oded Gabbay
On Mon, May 22, 2023 at 2:33 PM Dan Carpenter wrote: > > Thanks! > > On Mon, May 22, 2023 at 02:25:45PM +0300, Oded Gabbay wrote: > > diff --git a/drivers/accel/habanalabs/common/device.c > > b/drivers/accel/habanalabs/common/device.c > > index cab5a63db8c1..ca15c8d0d042 100644 > > --- a/drivers/

Re: [PATCH net-next v3 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-05-22 Thread Simon Horman
On Fri, May 19, 2023 at 02:19:41PM -0700, Justin Chen wrote: > Add support for the Broadcom ASP 2.0 Ethernet controller which is first > introduced with 72165. This controller features two distinct Ethernet > ports that can be independently operated. > > This patch supports: > > - Wake-on-LAN usi

Re: [PATCH 2/2] drm/ofdrm: Update expected device name

2023-05-22 Thread Michal Suchánek
On Mon, Apr 24, 2023 at 11:07:45AM +0200, Thomas Zimmermann wrote: > Hi > > Am 24.04.23 um 09:33 schrieb Geert Uytterhoeven: > > Hi Cyril, > > > > CC DT > > > > On Wed, Apr 12, 2023 at 12:05 PM Cyril Brulebois wrote: > > > Since commit 241d2fb56a18 ("of: Make OF framebuffer device names unique"

[PATCH 1/5] drm/amd/pm: mark irq functions as 'static'

2023-05-22 Thread Arnd Bergmann
From: Arnd Bergmann Two newly added functions cause a warning because they lack a prototype: drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_6_ppt.c:1328:5: error: no previous prototype for 'smu_v13_0_6_set_irq_state' [-Werror=missing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/s

[PATCH 2/5] drm/amdkfd: mark local functions as static

2023-05-22 Thread Arnd Bergmann
From: Arnd Bergmann The file was newly added and causes some -Wmissing-prototype warnings: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gc_9_4_3.c:57:5: error: no previous prototype for 'kgd_gfx_v9_4_3_hqd_sdma_load' [-Werror=missing-prototypes] drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gc_9_4_3.c:1

[PATCH 3/5] drm/amdgpu:mark aqua_vanjaram_reg_init.c function as static

2023-05-22 Thread Arnd Bergmann
From: Arnd Bergmann A few newly added global functions have no prototype, which causes warnings: drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c:169:5: error: no previous prototype for 'aqua_vanjaram_select_scheds' [-Werror=missing-prototypes] drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_in

[PATCH 4/5] drm/amdgpu: use %pad format string for dma_addr_t

2023-05-22 Thread Arnd Bergmann
From: Arnd Bergmann DMA addresses can be shorter than u64, which results in a broken debug output: drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c: In function 'amdgpu_gart_table_ram_alloc': drivers/gpu/drm/amd/amdgpu/amdgpu.h:41:22: error: format '%llx' expects argument of type 'long long unsigned i

[PATCH 5/5] drm/amdgpu: fix acpi build warnings

2023-05-22 Thread Arnd Bergmann
From: Arnd Bergmann Two newly introduced functions are in the global namespace but have no prototypes or callers outside of amdgpu_acpi.c, another function is static but only has a caller inside of an #ifdef: drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:902:13: error: no previous prototype for 'am

Re: [PATCH v10 2/2] drm/i915: Allow user to set cache at BO creation

2023-05-22 Thread Andi Shyti
Hi, On Thu, May 18, 2023 at 10:11:03PM -0700, fei.y...@intel.com wrote: > From: Fei Yang > > To comply with the design that buffer objects shall have immutable > cache setting through out their life cycle, {set, get}_caching ioctl's > are no longer supported from MTL onward. With that change cac

Re: [PATCH] drm/drm_vblank.c: avoid unsigned int to signed int cast

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/22 19:29, Jani Nikula wrote: On Thu, 18 May 2023, Sui Jingfeng <15330273...@189.cn> wrote: On 2023/5/17 18:59, David Laight wrote: From: 15330273...@189.cn Sent: 16 May 2023 18:30 From: Sui Jingfeng Both mode->crtc_htotal and mode->crtc_vtotal are u16 type, mode->crtc_htotal

[PATCH 1/4] drm/i915: Move setting of rps thresholds to init

2023-05-22 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Since 36d516be867c ("drm/i915/gt: Switch to manual evaluation of RPS") thresholds are invariant so lets move their setting to init time. Signed-off-by: Tvrtko Ursulin Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/intel_rps.c | 27 --- 1 file changed

[PATCH 3/4] drm/i915: Add helpers for managing rps thresholds

2023-05-22 Thread Tvrtko Ursulin
From: Tvrtko Ursulin In preparation for exposing via sysfs add helpers for managing rps thresholds. v2: * Force sw and hw re-programming on threshold change. Signed-off-by: Tvrtko Ursulin Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/intel_rps.c | 54 + drivers/gp

[PATCH 4/4] drm/i915: Expose RPS thresholds in sysfs

2023-05-22 Thread Tvrtko Ursulin
From: Tvrtko Ursulin User feedback indicates significant performance gains are possible in specific games with non default RPS up/down thresholds. Expose these tunables via sysfs which will allow users to achieve best performance when running games and best power efficiency elsewhere. Note this

[PATCH 2/4] drm/i915: Record default rps threshold values

2023-05-22 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Record the default values as preparation for exposing the sysfs controls. Signed-off-by: Tvrtko Ursulin Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/intel_gt_types.h | 3 +++ drivers/gpu/drm/i915/gt/intel_rps.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/d

Re: [Intel-gfx] [RFC 3/4] drm/i915: Add helpers for managing rps thresholds

2023-05-22 Thread Tvrtko Ursulin
On 19/05/2023 21:56, Rodrigo Vivi wrote: On Fri, Apr 28, 2023 at 09:14:56AM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin In preparation for exposing via sysfs add helpers for managing rps thresholds. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/gt/intel_rps.c | 36

Re: [Intel-gfx] [RFC 4/4] drm/i915: Expose RPS thresholds in sysfs

2023-05-22 Thread Tvrtko Ursulin
On 19/05/2023 21:56, Rodrigo Vivi wrote: On Fri, Apr 28, 2023 at 09:44:53AM +0100, Tvrtko Ursulin wrote: On 28/04/2023 09:14, Tvrtko Ursulin wrote: From: Tvrtko Ursulin User feedback indicates significant performance gains are possible in specific games with non default RPS up/down thresho

RE: [PATCH] drm/drm_vblank.c: avoid unsigned int to signed int cast

2023-05-22 Thread David Laight
From: 15330273...@189.cn <15330273...@189.cn> > Sent: 22 May 2023 12:56 ... > > I'll bet most people will be surprised to see what this prints: > > > > #include > > #include > > > > int main(void) > > { > > uint16_t x = 0x; > > uint16_t y = 0x; > > uint64_t z = x * y; > > > >

Re: [PATCH] drm/drm_vblank.c: avoid unsigned int to signed int cast

2023-05-22 Thread Jani Nikula
On Mon, 22 May 2023, Sui Jingfeng <15330273...@189.cn> wrote: > Hi, > > On 2023/5/22 19:29, Jani Nikula wrote: >> On Thu, 18 May 2023, Sui Jingfeng <15330273...@189.cn> wrote: >>> On 2023/5/17 18:59, David Laight wrote: From: 15330273...@189.cn > Sent: 16 May 2023 18:30 > > From: S

[PATCH v3 02/12] drm/armada: Use regular fbdev I/O helpers

2023-05-22 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Armada does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. By using fbdev helpers directly within each DRM fbdev emulation, we can eventually remove DRM's wrapper functions entirel

[PATCH v3 00/12] drm/fbdev: Remove DRM's helpers for fbdev I/O

2023-05-22 Thread Thomas Zimmermann
DRM provides a number of wrappers around fbdev cfb_() sys_(), fb_io_() and fb_sys_() helpers. The DRM functions don't provide any additional functionality for most DRM drivers. So remove them and call the fbdev I/O helpers directly. The DRM fbdev I/O wrappers were originally added because does no

[PATCH v3 01/12] fbdev: Add Kconfig options to select different fb_ops helpers

2023-05-22 Thread Thomas Zimmermann
Many fbdev drivers use the same set of fb_ops helpers. Add Kconfig options to select them at once. This will help with making DRM's fbdev emulation code more modular, but can also be used to simplify fbdev's driver configs. v3: * fix select statement (Jingfeng) Signed-off-by: Thomas Zimme

[PATCH v3 03/12] drm/exynos: Use regular fbdev I/O helpers

2023-05-22 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Exynos does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. By using fbdev helpers directly within each DRM fbdev emulation, we can eventually remove DRM's wrapper functions entirel

[PATCH v3 09/12] drm/tegra: Use regular fbdev I/O helpers

2023-05-22 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Tegra does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. By using fbdev helpers directly within each DRM fbdev emulation, we can eventually remove DRM's wrapper functions entirely

[PATCH v3 05/12] drm/radeon: Use regular fbdev I/O helpers

2023-05-22 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Radeon does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. By using fbdev helpers directly within each DRM fbdev emulation, we can eventually remove DRM's wrapper functions entirel

[PATCH v3 04/12] drm/gma500: Use regular fbdev I/O helpers

2023-05-22 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Gma500 does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. By using fbdev helpers directly within each DRM fbdev emulation, we can eventually remove DRM's wrapper functions entirel

[PATCH v3 07/12] drm/msm: Use regular fbdev I/O helpers

2023-05-22 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Msm does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. By using fbdev helpers directly within each DRM fbdev emulation, we can eventually remove DRM's wrapper functions entirely.

[PATCH v3 10/12] drm/fb-helper: Export helpers for marking damage areas

2023-05-22 Thread Thomas Zimmermann
Export drm_fb_helper_damage() and drm_fb_helper_damage_range(), which handle damage areas for fbdev emulation. This is a temporary export that allows to move the DRM I/O helpers for fbdev into drivers. Only fbdev-generic and i915 need them. Both will be updated to implement damage handling by thems

[PATCH v3 06/12] drm/fbdev-dma: Use regular fbdev I/O helpers

2023-05-22 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Fbdev-dma does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. By using fbdev helpers directly within each DRM fbdev emulation, we can eventually remove DRM's wrapper functions enti

[PATCH v3 08/12] drm/omapdrm: Use regular fbdev I/O helpers

2023-05-22 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Omapdrm does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. By using fbdev helpers directly within each DRM fbdev emulation, we can eventually remove DRM's wrapper functions entire

[PATCH v3 11/12] drm/fbdev-generic: Implement dedicated fbdev I/O helpers

2023-05-22 Thread Thomas Zimmermann
Implement dedicated fbdev helpers for framebuffer I/O instead of using DRM's helpers. Fbdev-generic was the only caller of the DRM helpers, so remove them from the helper module. v2: * use FB_SYS_HELPERS_DEFERRED option Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/Kconfig

[PATCH v3 12/12] drm/i915: Implement dedicated fbdev I/O helpers

2023-05-22 Thread Thomas Zimmermann
Implement dedicated fbdev helpers for framebuffer I/O instead of using DRM's helpers. i915 was the only caller of the DRM helpers, so remove them from the helper module. v2: * use FB_IO_HELPERS options Signed-off-by: Thomas Zimmermann Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Viv

Re: [PATCH v4 05/11] drm/mediatek: gamma: Enable the Gamma LUT table only after programming

2023-05-22 Thread AngeloGioacchino Del Regno
Il 22/05/23 12:00, CK Hu (胡俊光) ha scritto: Hi, Angelo: On Thu, 2023-05-18 at 12:48 +0200, AngeloGioacchino Del Regno wrote: External email : Please do not click links or open attachments until you have verified the sender or the content. Move the write to DISP_GAMMA_CFG to enable the Gamma LU

[PATCH] drm/amdgpu: remove unused variable num_xcc

2023-05-22 Thread Tom Rix
gcc with W=1 reports drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:2138:13: error: variable ‘num_xcc’ set but not used [-Werror=unused-but-set-variable] 2138 | int num_xcc; | ^~~ This variable is not used so remove it. Signed-off-by: Tom Rix --- drivers/gpu/drm/amd/am

Re: [PATCH v5 09/44] drm: handle HAS_IOPORT dependencies

2023-05-22 Thread Thomas Zimmermann
Hi Am 22.05.23 um 12:50 schrieb Niklas Schnelle: In a future patch HAS_IOPORT=n will result in inb()/outb() and friends not being declared. We thus need to add HAS_IOPORT as dependency for those drivers using them. In the bochs driver there is optional MMIO support detected at runtime, warn if t

Re: [PATCH] drm/drm_vblank.c: avoid unsigned int to signed int cast

2023-05-22 Thread Sui Jingfeng
Hi, On 2023/5/22 20:13, Jani Nikula wrote: On Mon, 22 May 2023, Sui Jingfeng <15330273...@189.cn> wrote: Hi, On 2023/5/22 19:29, Jani Nikula wrote: On Thu, 18 May 2023, Sui Jingfeng <15330273...@189.cn> wrote: On 2023/5/17 18:59, David Laight wrote: From: 15330273...@189.cn Sent: 16 May 20

Re: [PATCH v4 1/2] dt-bindings: samsung, mipi-dsim: Add 'lane-polarities'

2023-05-22 Thread Fabio Estevam
Hi Neil, On Sun, May 14, 2023 at 9:29 AM Krzysztof Kozlowski wrote: > > On 14/05/2023 13:46, Fabio Estevam wrote: > > From: Fabio Estevam > > > > The Samsung DSIM IP block allows the inversion of the clock and > > data lanes. > > > > Add an optional property called 'lane-polarities' that describ

Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II

2023-05-22 Thread Dmitry Baryshkov
On Mon, 22 May 2023 at 12:08, Neil Armstrong wrote: > > On 22/05/2023 03:23, Dmitry Baryshkov wrote: > > On 22/05/2023 00:23, Marijn Suijten wrote: > >> The SOFEF03-M Display-IC paired with an unknown panel in the Sony Xperia > >> 5 II always uses Display Stream Compression 1.1 and features a 60hz

Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-22 Thread Dmitry Baryshkov
On Mon, 22 May 2023 at 12:04, Neil Armstrong wrote: > > On 22/05/2023 03:16, Dmitry Baryshkov wrote: > > On 22/05/2023 00:23, Marijn Suijten wrote: > >> Sony provides an unlabeled LGD + Atmel maXTouch assembly in its Xperia > >> XZ3 (tama akatsuki) phone, with custom DCS commands to match. > >> >

Re: [PATCH v10 00/10] drm/hdcp: Pull HDCP auth/exchange/check into helpers

2023-05-22 Thread Rodrigo Vivi
On Sat, May 20, 2023 at 02:07:51AM +0300, Dmitry Baryshkov wrote: > On 20/05/2023 00:16, Rodrigo Vivi wrote: > > On Fri, May 19, 2023 at 07:55:47PM +0300, Dmitry Baryshkov wrote: > > > On 19/04/2023 18:43, Mark Yacoub wrote: > > > > Hi all, > > > > This is v10 of the HDCP patches. The patches are a

[PATCH] drm/amdgpu: remove unused variable mmhub_v1_8_mmea_cgtt_clk_cntl_reg

2023-05-22 Thread Tom Rix
gcc with W=1 reports drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c:760:23: error: ‘mmhub_v1_8_mmea_cgtt_clk_cntl_reg’ defined but not used [-Werror=unused-const-variable=] 760 | static const uint32_t mmhub_v1_8_mmea_cgtt_clk_cntl_reg[] = { | ^~

Re: [PATCH] drm/msm/dpu: signedness bug in dpu_encoder_phys_cmd_tearcheck_config()

2023-05-22 Thread Dmitry Baryshkov
On Mon, 22 May 2023 at 11:47, Marijn Suijten wrote: > > On 2023-05-22 10:48:01, Dan Carpenter wrote: > > The "vsync_hz" variable is used to store negative error codes so it > > needs to be signed for the error checking to work correctly. > > Nicely spotted, but it it looks like we have more to fix

Re: [PATCH v3 6/6] drm/shmem-helper: Switch to reservation lock

2023-05-22 Thread Emil Velikov
Hi Dmitry, Saw v3 fly by, so I had a quick look. Original RB still stands, although I noticed a couple of non-blocking nitpicks. On Sun, 21 May 2023 at 22:00, Dmitry Osipenko wrote: > -static int drm_gem_shmem_get_pages_locked(struct drm_gem_shmem_object *shmem) > +static int drm_gem_shmem_get_

Re: [PATCH v5 09/44] drm: handle HAS_IOPORT dependencies

2023-05-22 Thread Arnd Bergmann
On Mon, May 22, 2023, at 14:38, Thomas Zimmermann wrote: > Am 22.05.23 um 12:50 schrieb Niklas Schnelle: >> There is also a direct and hard coded use in cirrus.c which according to >> the comment is only necessary during resume. Let's just skip this as >> for example s390 which doesn't have I/O p

  1   2   3   >