[PATCH v1 1/2] dt-bindings: display: panel: raspberrypi: Add compatible property for waveshare 7inch touchscreen panel

2023-11-24 Thread Shengyang Chen
The waveshare 7inch touchscreen panel is a kind of raspberrypi pi panel and it can be drived by panel-raspberrypi-touchscreen.c. Add compatible property for it. Signed-off-by: Keith Zhao Signed-off-by: Shengyang Chen --- .../bindings/display/panel/raspberrypi,7inch-touchscreen.yaml | 4 +++- 1

[PATCH v1 0/2] Add waveshare 7inch touchscreen panel support

2023-11-24 Thread Shengyang Chen
This patchset adds waveshare 7inch touchscreen panel support for the StarFive JH7110 SoC. Patch 1 add new compatible for the raspberrypi panel driver and its dt-binding. Patch 2 add new display mode and new probing process for raspberrypi panel driver. Waveshare 7inch touchscreen panel is a

[PATCH] drm/mediatek/dp: Add the HDCP feature for DisplayPort

2023-11-24 Thread mac . shen
Add tee client application, HDCP 1.x and 2.x authentication for DisplayPort to support the HDCP feature. Signed-off-by: mac.shen --- drivers/gpu/drm/mediatek/Makefile |7 +- drivers/gpu/drm/mediatek/ca/tci.h | 143 +++ drivers/gpu/drm/mediatek/ca/tlDPHdcpCMD.h | 36 +

[PATCH v1 2/2] gpu: drm: panel: raspberrypi: add new display mode and new probing process

2023-11-24 Thread Shengyang Chen
The waveshare 7inch touchscreen panel is a kind of raspberrypi pi panel and it can be drived by panel-raspberrypi-touchscreen.c. Add new display mode for it. In order to fit CDNS DSI driver which used by StarFive SoCs like JH7110, add new probing process for it. The compatible is used to

Re: [PATCH 4/6] input/vmmouse: Use vmware_hypercall API

2023-11-24 Thread Dmitry Torokhov
On Wed, Nov 22, 2023 at 03:30:49PM -0800, Alexey Makhalov wrote: > Switch from VMWARE_HYPERCALL macro to vmware_hypercall API. > Eliminate arch specific code. No functional changes intended. > > Signed-off-by: Alexey Makhalov Acked-by: Dmitry Torokhov Please feel free to merge with the rest

Re: [PATCH 4/6] input/vmmouse: Use vmware_hypercall API

2023-11-24 Thread dmitry.torok...@gmail.com
On Sat, Nov 25, 2023 at 01:22:58AM +, Alexey Makhalov wrote: > On Nov 24, 2023, at 11:46 AM, Simon Horman wrote: > > > > On Wed, Nov 22, 2023 at 03:30:49PM -0800, Alexey Makhalov wrote: > >> Switch from VMWARE_HYPERCALL macro to vmware_hypercall API. > >> Eliminate arch specific code. No

Re: [PATCH 2/2] drm/sched: Reverse run-queue priority enumeration

2023-11-24 Thread Luben Tuikov
On 2023-11-24 04:38, Christian König wrote: > Am 24.11.23 um 09:22 schrieb Luben Tuikov: >> On 2023-11-24 03:04, Christian König wrote: >>> Am 24.11.23 um 06:27 schrieb Luben Tuikov: Reverse run-queue priority enumeration such that the higest priority is now 0, and for each

Re: [PATCH 8/8] drm/bridge: it66121: Allow link this driver as a lib

2023-11-24 Thread Sui Jingfeng
On 2023/11/24 16:13, Maxime Ripard wrote: On Fri, Nov 24, 2023 at 03:51:00PM +0800, Sui Jingfeng wrote: Hi, On 2023/11/24 15:38, Maxime Ripard wrote: On Fri, Nov 24, 2023 at 01:52:26AM +0800, Sui Jingfeng wrote: On 2023/11/23 16:08, Dmitry Baryshkov wrote: I'm agree with the idea that drm

Re: [PATCH 4/6] input/vmmouse: Use vmware_hypercall API

2023-11-24 Thread Alexey Makhalov
On Nov 24, 2023, at 11:46 AM, Simon Horman wrote: > > On Wed, Nov 22, 2023 at 03:30:49PM -0800, Alexey Makhalov wrote: >> Switch from VMWARE_HYPERCALL macro to vmware_hypercall API. >> Eliminate arch specific code. No functional changes intended. >> >> Signed-off-by: Alexey Makhalov > > Hi

Re: [PATCH] drm/bridge: panel: Check device dependency before managing device link

2023-11-24 Thread Linus Walleij
On Thu, Nov 23, 2023 at 4:22 AM Liu Ying wrote: > Some panel devices already depend on DRM device, like the panel in > arch/arm/boot/dts/st/ste-ux500-samsung-skomer.dts, because DRM device is > the ancestor of those panel devices. device_link_add() would fail by > returning a NULL pointer for

Re: [PATCH drm-misc-next 4/5] drm/gpuvm: fall back to drm_exec_lock_obj()

2023-11-24 Thread Danilo Krummrich
Hi Christian, do you think it makes sense to handle this in drm_exec_prepare_obj() or even dma_resv_reserve_fences() even? - Danilo On 11/25/23 00:36, Danilo Krummrich wrote: Fall back to drm_exec_lock_obj() if num_fences is zero for the drm_gpuvm_prepare_* function family. Otherwise

[PATCH drm-misc-next 5/5] drm/imagination: vm: make use of GPUVM's drm_exec helper

2023-11-24 Thread Danilo Krummrich
Make use of GPUVM's drm_exec helper functions preventing direct access to GPUVM internal data structures, such as the external object list. This is especially important to ensure following the locking rules around the GPUVM external object list. Fixes: ff5f643de0bf ("drm/imagination: Add GEM and

[PATCH drm-misc-next 4/5] drm/gpuvm: fall back to drm_exec_lock_obj()

2023-11-24 Thread Danilo Krummrich
Fall back to drm_exec_lock_obj() if num_fences is zero for the drm_gpuvm_prepare_* function family. Otherwise dma_resv_reserve_fences() would actually allocate slots even though num_fences is zero. Cc: Christian König Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/drm_gpuvm.c | 36

[PATCH drm-misc-next 3/5] drm/imagination: vm: fix drm_gpuvm reference count

2023-11-24 Thread Danilo Krummrich
The driver specific reference count indicates whether the VM should be teared down, whereas GPUVM's reference count indicates whether the VM structure can finally be freed. Hence, free the VM structure in pvr_gpuvm_free() and drop the last GPUVM reference after tearing down the VM. Generally,

[PATCH drm-misc-next 0/5] PowerVR VM fixes

2023-11-24 Thread Danilo Krummrich
Hi, Some major GPUVM changes landed just before v8 of the PowerVR series. Since v8 went in rather quickly (review process was finished otherwise) I haven't had the chance to review the subsequent code changes. Hence, this series with a few fixes in this context. Plus a minor GPUVM patch to make

[PATCH drm-misc-next 2/5] drm/imagination: vm: check for drm_gpuvm_range_valid()

2023-11-24 Thread Danilo Krummrich
Extend pvr_device_addr_and_size_are_valid() by the corresponding GPUVM sanity checks. This includes a, previously missing, overflow check for the base address and size of the requested mapping. Fixes: ff5f643de0bf ("drm/imagination: Add GEM and VM related code") Signed-off-by: Danilo Krummrich

[PATCH drm-misc-next 1/5] drm/imagination: vm: prevent duplicate drm_gpuvm_bo instances

2023-11-24 Thread Danilo Krummrich
Use drm_gpuvm_bo_obtain() instead of drm_gpuvm_bo_create(). The latter should only be used in conjunction with drm_gpuvm_bo_obtain_prealloc(). drm_gpuvm_bo_obtain() re-uses existing instances of a given VM and BO combination, whereas drm_gpuvm_bo_create() would always create a new instance of

Re: linux-next: Signed-off-by missing for commit in the drm-misc tree

2023-11-24 Thread Luben Tuikov
On 2023-11-24 08:20, Jani Nikula wrote: > On Wed, 22 Nov 2023, Luben Tuikov wrote: >> On 2023-11-22 07:00, Maxime Ripard wrote: >>> Hi Luben, >>> >>> On Thu, Nov 16, 2023 at 09:27:58AM +0100, Daniel Vetter wrote: On Thu, Nov 16, 2023 at 09:11:43AM +0100, Maxime Ripard wrote: > On Tue,

Re: [PATCH 4/6] input/vmmouse: Use vmware_hypercall API

2023-11-24 Thread Simon Horman
On Wed, Nov 22, 2023 at 03:30:49PM -0800, Alexey Makhalov wrote: > Switch from VMWARE_HYPERCALL macro to vmware_hypercall API. > Eliminate arch specific code. No functional changes intended. > > Signed-off-by: Alexey Makhalov Hi Alexey, it is not strictly related to this patch, but I notice

[PATCH 6.1 324/372] drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection

2023-11-24 Thread Greg Kroah-Hartman
6.1-stable review patch. If anyone has any objections, please let me know. -- From: Jani Nikula commit dab12fa8d2bd3868cf2de485ed15a3feef28a13d upstream. The sads returned by drm_edid_to_sad() needs to be freed. Fixes: e71a8ebbe086 ("drm/mediatek: dp: Audio support for

[PATCH 6.1 325/372] drm/mediatek/dp: fix memory leak on ->get_edid callback error path

2023-11-24 Thread Greg Kroah-Hartman
6.1-stable review patch. If anyone has any objections, please let me know. -- From: Jani Nikula commit fcaf9761fd5884a64eaac48536f8c27ecfd2e6bc upstream. Setting new_edid to NULL leaks the buffer. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")

[PATCH 6.5 428/491] drm/mediatek/dp: fix memory leak on ->get_edid callback error path

2023-11-24 Thread Greg Kroah-Hartman
6.5-stable review patch. If anyone has any objections, please let me know. -- From: Jani Nikula commit fcaf9761fd5884a64eaac48536f8c27ecfd2e6bc upstream. Setting new_edid to NULL leaks the buffer. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")

[PATCH 6.5 427/491] drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection

2023-11-24 Thread Greg Kroah-Hartman
6.5-stable review patch. If anyone has any objections, please let me know. -- From: Jani Nikula commit dab12fa8d2bd3868cf2de485ed15a3feef28a13d upstream. The sads returned by drm_edid_to_sad() needs to be freed. Fixes: e71a8ebbe086 ("drm/mediatek: dp: Audio support for

Re: [git pull] drm fixes for 6.7-rc3

2023-11-24 Thread pr-tracker-bot
The pull request you sent on Fri, 24 Nov 2023 11:38:52 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2023-11-24 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/afa0f6ee000abd220a8160f0375b5b8d3e4284f2 Thank you! -- Deet-doot-dot, I am a bot.

[PATCH 6.6 461/530] drm/mediatek/dp: fix memory leak on ->get_edid callback error path

2023-11-24 Thread Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know. -- From: Jani Nikula commit fcaf9761fd5884a64eaac48536f8c27ecfd2e6bc upstream. Setting new_edid to NULL leaks the buffer. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")

[PATCH 6.6 460/530] drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection

2023-11-24 Thread Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know. -- From: Jani Nikula commit dab12fa8d2bd3868cf2de485ed15a3feef28a13d upstream. The sads returned by drm_edid_to_sad() needs to be freed. Fixes: e71a8ebbe086 ("drm/mediatek: dp: Audio support for

RE: [Intel-gfx] [PATCH] drm/i915/irq: Improve error logging for unexpected DE Misc interrupts

2023-11-24 Thread Rahul Rameshbabu
On Thursday, November 23rd, 2023 at 11:54 PM, Borah, Chaitanya Kumar wrote: > > -Original Message- > > From: Intel-gfx On Behalf Of Rahul > > Rameshbabu > > Sent: Thursday, November 23, 2023 11:27 PM > > To: intel-...@lists.freedesktop.org > > Cc: Nikula, Jani ;

Re: (subset) [PATCH v9 00/12] drm/meson: add support for MIPI DSI Display

2023-11-24 Thread Jerome Brunet
Applied to clk-meson (v6.8/drivers), thanks! [01/12] dt-bindings: clk: g12a-clkc: add CTS_ENCL clock ids https://github.com/BayLibre/clk-meson/commit/bd5ef3f21d17 [06/12] clk: meson: g12a: add CTS_ENCL & CTS_ENCL_SEL clocks https://github.com/BayLibre/clk-meson/commit/5de4e8353e32

[PATCH][next] drm/imagination: Fix a couple of spelling mistakes in literal strings

2023-11-24 Thread Colin Ian King
There are a couple of spelling mistakes in literal strings in the stid_fmts array. Fix these. Signed-off-by: Colin Ian King --- drivers/gpu/drm/imagination/pvr_rogue_fwif_sf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/imagination/pvr_rogue_fwif_sf.h

Re: [PATCH v1 0/2] Add waveshare 7inch touchscreen panel support

2023-11-24 Thread Dave Stevenson
On Fri, 24 Nov 2023 at 15:00, Stefan Wahren wrote: > > Hi Shengyang, > > [fix address of Emma] Not merged to master yet, but Emma has stepped back from maintenance. https://lists.freedesktop.org/archives/dri-devel/2023-October/428829.html Dropped from the cc. > Am 24.11.23 um 11:44 schrieb

Re: [PATCH v9 08/12] clk: meson: g12a: make VCLK2 and ENCL clock path configurable by CCF

2023-11-24 Thread Jerome Brunet
On Fri 24 Nov 2023 at 16:15, Neil Armstrong wrote: > On 24/11/2023 15:12, Jerome Brunet wrote: >> On Fri 24 Nov 2023 at 09:41, Neil Armstrong >> wrote: >> >>> In order to setup the DSI clock, let's make the unused VCLK2 clock path >>> configuration via CCF. >>> >>> The nocache option is

Bug in the error handling in TTMs pool implementation

2023-11-24 Thread Christian König
Hi guys, some users ran into an OOM situation and discovered another problem in the error handling in TTMs page pool implementation. @Karolina do you of hand know a way how we could exercise this in a TTM unit test? Basically we would need to redirect the alloc_pages_node() symbol to an

Re: [PATCH v9 11/20] drm/imagination: Add GEM and VM related code

2023-11-24 Thread kernel test robot
-tip/drm-tip next-20231124] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Donald

Re: [PATCH] video: fbdev: mmp: Fix typo in code comment

2023-11-24 Thread Randy Dunlap
Hi, On 11/24/23 01:52, Dario Binacchi wrote: > s/singals/signals/ > > Fixes: 641b4b1b6a7c ("video: mmpdisp: add spi port in display controller") > Signed-off-by: Dario Binacchi > --- > > drivers/video/fbdev/mmp/hw/mmp_spi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[PATCH v2 0/2] drm/bridge: adv7511: get edid in hpd_work to update CEC phys address

2023-11-24 Thread Alvin Šipraga
This series fixes a small bug where the CEC adapter could have an invalid CEC address even though we got a hotplug connect and could have read it. Signed-off-by: Alvin Šipraga --- Changes in v2: - Rearrange driver code to avoid the previous prototype of adv7511_get_edid(), per Laurent's

[PATCH v2 1/2] drm/bridge: adv7511: rearrange hotplug work code

2023-11-24 Thread Alvin Šipraga
From: Alvin Šipraga In preparation for calling EDID helpers from the hotplug work, move the hotplug work below the EDID helper section. No functional change. Signed-off-by: Alvin Šipraga --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 120 ++- 1 file changed, 62

[PATCH v2 2/2] drm/bridge: adv7511: get edid in hpd_work to update CEC phys address

2023-11-24 Thread Alvin Šipraga
From: Alvin Šipraga The adv7511 driver is solely responsible for setting the physical address of its CEC adapter. To do this, it must read the EDID. However, EDID is only read when either the drm_bridge_funcs :: get_edid or drm_connector_helper_funcs :: get_modes ops are called. Without loss of

Re: [Intel-gfx] [PATCH 1/3] drm: Add new DRM_IOCTL_MODE_GETPLANE2

2023-11-24 Thread Andy Shevchenko
On Thu, Jan 12, 2017 at 12:23:16PM +0200, Ville Syrjälä wrote: > On Wed, Jan 11, 2017 at 04:51:16PM -0800, Ben Widawsky wrote: ... > > + memcpy(plane->modifiers, format_modifiers, > > + format_modifier_count * sizeof(format_modifiers[0])); > > Looks all right since we do the same for

Re: [PATCH v9 08/12] clk: meson: g12a: make VCLK2 and ENCL clock path configurable by CCF

2023-11-24 Thread Neil Armstrong
On 24/11/2023 15:12, Jerome Brunet wrote: On Fri 24 Nov 2023 at 09:41, Neil Armstrong wrote: In order to setup the DSI clock, let's make the unused VCLK2 clock path configuration via CCF. The nocache option is removed from following clocks: - vclk2_sel - vclk2_input - vclk2_div - vclk2 -

Re: [PATCH v1 0/2] Add waveshare 7inch touchscreen panel support

2023-11-24 Thread Stefan Wahren
Hi Shengyang, [fix address of Emma] Am 24.11.23 um 11:44 schrieb Shengyang Chen: This patchset adds waveshare 7inch touchscreen panel support for the StarFive JH7110 SoC. Patch 1 add new compatible for the raspberrypi panel driver and its dt-binding. Patch 2 add new display mode and new

Re: [PATCH v9 07/12] clk: meson: add vclk driver

2023-11-24 Thread Jerome Brunet
On Fri 24 Nov 2023 at 09:41, Neil Armstrong wrote: > The VCLK and VCLK_DIV clocks have supplementary bits. > > The VCLK has a "SOFT RESET" bit to toggle after the whole > VCLK sub-tree rate has been set, this is implemented in > the gate enable callback. > > The VCLK_DIV clocks as enable and

Re: [PATCH v9 11/12] DONOTMERGE: arm64: meson: khadas-vim3l: add DSI panel

2023-11-24 Thread Neil Armstrong
Hi, On 24/11/2023 11:52, Maxime Ripard wrote: Hi, On Fri, Nov 24, 2023 at 09:41:22AM +0100, Neil Armstrong wrote: This add nodes to support the Khadas TS050 panel on the Khadas VIM3 & VIM3L boards. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi | 2

Re: [PATCH v9 04/12] dt-bindings: phy: amlogic, g12a-mipi-dphy-analog: drop unneeded reg property and example

2023-11-24 Thread Neil Armstrong
On 24/11/2023 15:41, Conor Dooley wrote: On Fri, Nov 24, 2023 at 02:50:58PM +0100, Neil Armstrong wrote: Hi Conor, On 24/11/2023 13:36, Conor Dooley wrote: On Fri, Nov 24, 2023 at 09:41:15AM +0100, Neil Armstrong wrote: The amlogic,g12a-mipi-dphy-analog is a feature of the simple-mfd

Re: [PATCH v4 0/5] drm: Allow the damage helpers to handle buffer damage

2023-11-24 Thread Javier Martinez Canillas
Javier Martinez Canillas writes: > Hello, > > This series is to fix an issue that surfaced after damage clipping was > enabled for the virtio-gpu by commit 01f05940a9a7 ("drm/virtio: Enable > fb damage clips property for the primary plane"). > > After that change, flickering artifacts was

Re: [PATCH v9 04/12] dt-bindings: phy: amlogic,g12a-mipi-dphy-analog: drop unneeded reg property and example

2023-11-24 Thread Conor Dooley
On Fri, Nov 24, 2023 at 02:50:58PM +0100, Neil Armstrong wrote: > Hi Conor, > > On 24/11/2023 13:36, Conor Dooley wrote: > > On Fri, Nov 24, 2023 at 09:41:15AM +0100, Neil Armstrong wrote: > > > The amlogic,g12a-mipi-dphy-analog is a feature of the simple-mfd > > > amlogic,meson-axg-hhi-sysctrl

Re: [PATCH v6 0/9] Fix cursor planes with virtualized drivers

2023-11-24 Thread Javier Martinez Canillas
Albert Esteve writes: > v6: Shift DRIVER_CURSOR_HOTSPOT flag bit to BIT(9), since BIT(8) > was already taken by DRIVER_GEM_GPUVA. > > v5: Add a change with documentation from Michael, based on his discussion > with Pekka and bump the kernel version DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT > might be

Re: [PATCH v9 08/12] clk: meson: g12a: make VCLK2 and ENCL clock path configurable by CCF

2023-11-24 Thread Jerome Brunet
On Fri 24 Nov 2023 at 09:41, Neil Armstrong wrote: > In order to setup the DSI clock, let's make the unused VCLK2 clock path > configuration via CCF. > > The nocache option is removed from following clocks: > - vclk2_sel > - vclk2_input > - vclk2_div > - vclk2 > - vclk_div1 > - vclk2_div2_en >

Re: [PATCH v9 04/12] dt-bindings: phy: amlogic, g12a-mipi-dphy-analog: drop unneeded reg property and example

2023-11-24 Thread Neil Armstrong
Hi Conor, On 24/11/2023 13:36, Conor Dooley wrote: On Fri, Nov 24, 2023 at 09:41:15AM +0100, Neil Armstrong wrote: The amlogic,g12a-mipi-dphy-analog is a feature of the simple-mfd amlogic,meson-axg-hhi-sysctrl system control register zone which is an intermixed registers zone, thus it's very

Re: [PATCH v2 5/6] drm/vs: Add KMS crtc

2023-11-24 Thread Thomas Zimmermann
Hi Am 25.10.23 um 12:39 schrieb Keith Zhao: [...] + +static struct drm_crtc_state * +vs_crtc_atomic_duplicate_state(struct drm_crtc *crtc) +{ + struct vs_crtc_state *ori_state; I have not yet seen 'ori_' being used anywhere. Typical names are 'state' for the current state and

Re: [PATCH] drm/bridge: adv7511: fix crash on irq during probe

2023-11-24 Thread Alvin Šipraga
Hi Laurent, This is a friendly ping to get your feedback on my reply below. I don't think the Fixes tag is incorrect here. Please could you take another look and let me know if I can resend with your Reviewed-by? Kind regards, Alvin On Mon, Oct 16, 2023 at 10:42:27AM +0200, Alvin Šipraga wrote:

Re: [PATCH v5 1/4] pwm: rename pwm_apply_state() to pwm_apply_cansleep()

2023-11-24 Thread Thierry Reding
On Sat, Nov 18, 2023 at 04:16:17PM +, Sean Young wrote: > In order to introduce a pwm api which can be used from atomic context, > we will need two functions for applying pwm changes: > > int pwm_apply_cansleep(struct pwm *, struct pwm_state *); > int pwm_apply_atomic(struct pwm

Patch "drm/mediatek/dp: fix memory leak on ->get_edid callback error path" has been added to the 6.6-stable tree

2023-11-24 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/mediatek/dp: fix memory leak on ->get_edid callback error path to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Patch "drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection" has been added to the 6.6-stable tree

2023-11-24 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of

Re: linux-next: Signed-off-by missing for commit in the drm-misc tree

2023-11-24 Thread Jani Nikula
On Wed, 22 Nov 2023, Luben Tuikov wrote: > On 2023-11-22 07:00, Maxime Ripard wrote: >> Hi Luben, >> >> On Thu, Nov 16, 2023 at 09:27:58AM +0100, Daniel Vetter wrote: >>> On Thu, Nov 16, 2023 at 09:11:43AM +0100, Maxime Ripard wrote: On Tue, Nov 14, 2023 at 06:46:21PM -0500, Luben Tuikov

Re: [PATCH] drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer

2023-11-24 Thread kernel test robot
Hi Lu, kernel test robot noticed the following build errors: [auto build test ERROR on drm-misc/drm-misc-next] [also build test ERROR on linus/master v6.7-rc2 next-20231124] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Patch "drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection" has been added to the 6.5-stable tree

2023-11-24 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection to the 6.5-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of

Patch "drm/mediatek/dp: fix memory leak on ->get_edid callback error path" has been added to the 6.5-stable tree

2023-11-24 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/mediatek/dp: fix memory leak on ->get_edid callback error path to the 6.5-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Patch "drm/mediatek/dp: fix memory leak on ->get_edid callback error path" has been added to the 6.1-stable tree

2023-11-24 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/mediatek/dp: fix memory leak on ->get_edid callback error path to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Patch "drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection" has been added to the 6.1-stable tree

2023-11-24 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/mediatek/dp: fix memory leak on ->get_edid callback audio detection to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of

Re: [PATCH] drm/panfrost: Really power off GPU cores in panfrost_gpu_power_off()

2023-11-24 Thread Marek Szyprowski
On 22.11.2023 10:29, Krzysztof Kozlowski wrote: > On 22/11/2023 10:06, AngeloGioacchino Del Regno wrote: > Hey Krzysztof, > > This is interesting. It might be about the cores that are missing from > the partial > core_mask raising interrupts, but an external abort on

[PATCH 8/8] drm/i915: use drm_printf() with the drm_err_printer intead of pr_err()

2023-11-24 Thread Jani Nikula
There's already a related drm_printer. Use it to preserve the context instead of a separate pr_err(). Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gt/selftest_engine_heartbeat.c | 6 +++--- drivers/gpu/drm/i915/selftests/i915_active.c| 4 ++-- 2 files changed, 5 insertions(+), 5

[PATCH 7/8] drm/i915: switch from drm_debug_printer() to device specific drm_dbg_printer()

2023-11-24 Thread Jani Nikula
Prefer the device specific debug printer. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display_driver.c | 3 ++- drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c| 3 ++- drivers/gpu/drm/i915/gt/intel_reset.c | 3 ++-

[PATCH 6/8] drm/dp: switch drm_dp_vsc_sdp_log() to struct drm_printer

2023-11-24 Thread Jani Nikula
Use the existing drm printer infrastructure instead of local macros. Signed-off-by: Jani Nikula --- drivers/gpu/drm/display/drm_dp_helper.c | 17 +--- .../drm/i915/display/intel_crtc_state_dump.c | 5 ++-- drivers/gpu/drm/i915/display/intel_display.c | 27 +--

[PATCH 5/8] drm/mode: switch from drm_debug_printer() to device specific drm_dbg_printer()

2023-11-24 Thread Jani Nikula
Prefer the device specific debug printer. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_mode_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_mode_config.c b/drivers/gpu/drm/drm_mode_config.c index 8525ef851540..48fd2d67f352 100644 ---

[PATCH 4/8] drm/dp_mst: switch from drm_debug_printer() to device specific drm_dbg_printer()

2023-11-24 Thread Jani Nikula
Prefer the device specific debug printer. Signed-off-by: Jani Nikula --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 23 +++ 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c

[PATCH 3/8] drm/print: add drm_dbg_printer() for drm device specific printer

2023-11-24 Thread Jani Nikula
We've lacked a device specific debug printer. Add one. Take category into account too. __builtin_return_address(0) is inaccurate here, so don't use it. If necessary, we can later pass __func__ to drm_dbg_printer() by wrapping it inside a macro. Signed-off-by: Jani Nikula ---

[PATCH 2/8] drm/print: move enum drm_debug_category etc. earlier in drm_print.h

2023-11-24 Thread Jani Nikula
Avoid forward declarations in subsequent changes, but separate this movement to an independent change. Signed-off-by: Jani Nikula --- include/drm/drm_print.h | 190 1 file changed, 95 insertions(+), 95 deletions(-) diff --git a/include/drm/drm_print.h

[PATCH 1/8] drm/print: make drm_err_printer() device specific by using drm_err()

2023-11-24 Thread Jani Nikula
With few users for drm_err_printer(), it's still feasible to convert it to be device specific. Use drm_err() under the hood. While at it, make the prefix optional. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_print.c | 7 ++-

[PATCH 0/8] drm: drm debug and error logging improvements

2023-11-24 Thread Jani Nikula
Make drm_err_printer() drm device specific, and add drm device specific drm_dbg_printer(). Switch code over to use them. Jani Nikula (8): drm/print: make drm_err_printer() device specific by using drm_err() drm/print: move enum drm_debug_category etc. earlier in drm_print.h drm/print: add

Re: [PATCH] drm/panfrost: Really power off GPU cores in panfrost_gpu_power_off()

2023-11-24 Thread Marek Szyprowski
On 22.11.2023 10:29, Krzysztof Kozlowski wrote: > On 22/11/2023 10:06, AngeloGioacchino Del Regno wrote: > Hey Krzysztof, > > This is interesting. It might be about the cores that are missing from > the partial > core_mask raising interrupts, but an external abort on

Re: [PATCH v9 04/12] dt-bindings: phy: amlogic,g12a-mipi-dphy-analog: drop unneeded reg property and example

2023-11-24 Thread Conor Dooley
On Fri, Nov 24, 2023 at 09:41:15AM +0100, Neil Armstrong wrote: > The amlogic,g12a-mipi-dphy-analog is a feature of the simple-mfd > amlogic,meson-axg-hhi-sysctrl system control register zone which is an > intermixed registers zone, thus it's very hard to define clear ranges for > each SoC

Re: linux-next: build warning after merge of the drm tree

2023-11-24 Thread Donald Robson
Hi Stephen, Thanks for the report. I've fixed these locally, along with a few other doc issues I found. I'll get the patch out as soon as I can. Thanks, Donald On Fri, 2023-11-24 at 13:25 +1100, Stephen Rothwell wrote: > *** CAUTION: This email originates from a source not known to

Re: [PATCH v6 0/6] drm: simplify support for transparent DRM bridges

2023-11-24 Thread Dmitry Baryshkov
On Fri, 24 Nov 2023 at 14:23, Bryan O'Donoghue wrote: > > On 03/11/2023 23:03, Dmitry Baryshkov wrote: > > Supporting DP/USB-C can result in a chain of several transparent > > bridges (PHY, redrivers, mux, etc). All attempts to implement DP support > > in a different way resulted either in series

Re: [PATCH v1 1/2] dt-bindings: display: panel: raspberrypi: Add compatible property for waveshare 7inch touchscreen panel

2023-11-24 Thread Conor Dooley
On Fri, Nov 24, 2023 at 06:44:50PM +0800, Shengyang Chen wrote: > The waveshare 7inch touchscreen panel is a kind of raspberrypi pi > panel Can you be more specific about what "is a kind of rpi panel" means? Are they using identical chips as controllers or something like that? > and it can be

Re: [PATCH v6 0/6] drm: simplify support for transparent DRM bridges

2023-11-24 Thread Bryan O'Donoghue
On 03/11/2023 23:03, Dmitry Baryshkov wrote: Supporting DP/USB-C can result in a chain of several transparent bridges (PHY, redrivers, mux, etc). All attempts to implement DP support in a different way resulted either in series of hacks or in device tree not reflecting the actual hardware

Re: [PATCH 15/22] arch: vdso: consolidate gettime prototypes

2023-11-24 Thread Mark Brown
On Wed, Nov 08, 2023 at 01:58:36PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The VDSO functions are defined as globals in the kernel sources but intended > to be called from userspace, so there is no need to declare them in a kernel > side header. This is in -next as commit

[PATCH] drm/atomic-helpers: Invoke end_fb_access while owning plane state

2023-11-24 Thread Thomas Zimmermann
Invoke drm_plane_helper_funcs.end_fb_access before drm_atomic_helper_commit_hw_done(). The latter function hands over ownership of the plane state to the following commit, which might free it. Releasing resources in end_fb_access then operates on undefined state. This bug has been observed with

Re: [PATCH v18 08/26] drm/shmem-helper: Add and use lockless drm_gem_shmem_get_pages()

2023-11-24 Thread Boris Brezillon
On Fri, 24 Nov 2023 11:47:57 +0100 Maxime Ripard wrote: > On Mon, Oct 30, 2023 at 02:01:47AM +0300, Dmitry Osipenko wrote: > > Add lockless drm_gem_shmem_get_pages() helper that skips taking reservation > > lock if pages_use_count is non-zero, leveraging from atomicity of the > > refcount_t.

Re: [PATCH v18 04/26] drm/shmem-helper: Refactor locked/unlocked functions

2023-11-24 Thread Boris Brezillon
On Fri, 24 Nov 2023 11:40:06 +0100 Maxime Ripard wrote: > On Mon, Oct 30, 2023 at 02:01:43AM +0300, Dmitry Osipenko wrote: > > Add locked and remove unlocked postfixes from drm-shmem function names, > > making names consistent with the drm/gem core code. > > > > Reviewed-by: Boris Brezillon >

Re: [PATCH v6 0/9] Fix cursor planes with virtualized drivers

2023-11-24 Thread Javier Martinez Canillas
Simon Ser writes: Hello Simon, > On Wednesday, November 22nd, 2023 at 13:49, Javier Martinez Canillas > wrote: > >> Any objections to merge the series ? > > No objections from me :) > Perfect, I'll merge this series then to unblock the mutter MR. Thanks again! -- Best regards, Javier

Re: [PATCH v9 11/12] DONOTMERGE: arm64: meson: khadas-vim3l: add DSI panel

2023-11-24 Thread Maxime Ripard
Hi, On Fri, Nov 24, 2023 at 09:41:22AM +0100, Neil Armstrong wrote: > This add nodes to support the Khadas TS050 panel on the > Khadas VIM3 & VIM3L boards. > > Signed-off-by: Neil Armstrong > --- > .../boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi | 2 +- >

Re: [PATCH v18 10/26] drm/shmem-helper: Use refcount_t for vmap_use_count

2023-11-24 Thread Maxime Ripard
On Mon, 30 Oct 2023 02:01:49 +0300, Dmitry Osipenko wrote: > Use refcount_t helper for vmap_use_count to make refcounting consistent > with pages_use_count and pages_pin_count that use refcount_t. This also > makes vmapping to benefit from the refcount_t's overflow checks. > > Reviewed-by: Boris

Re: [PATCH v18 09/26] drm/shmem-helper: Switch drm_gem_shmem_vmap/vunmap to use pin/unpin

2023-11-24 Thread Maxime Ripard
On Mon, Oct 30, 2023 at 02:01:48AM +0300, Dmitry Osipenko wrote: > The vmapped pages shall be pinned in memory and previously get/put_pages() > were implicitly hard-pinning/unpinning the pages. This will no longer be > the case with addition of memory shrinker because pages_use_count > 0 won't >

Re: [PATCH] drm/panfrost: Ignore core_mask for poweroff and sync interrupts

2023-11-24 Thread AngeloGioacchino Del Regno
Il 24/11/23 11:21, Boris Brezillon ha scritto: On Fri, 24 Nov 2023 11:12:57 +0100 AngeloGioacchino Del Regno wrote: Il 24/11/23 10:17, AngeloGioacchino Del Regno ha scritto: Il 23/11/23 16:40, Boris Brezillon ha scritto: On Thu, 23 Nov 2023 16:14:12 +0100 AngeloGioacchino Del Regno wrote:

Re: [PATCH v18 08/26] drm/shmem-helper: Add and use lockless drm_gem_shmem_get_pages()

2023-11-24 Thread Maxime Ripard
On Mon, Oct 30, 2023 at 02:01:47AM +0300, Dmitry Osipenko wrote: > Add lockless drm_gem_shmem_get_pages() helper that skips taking reservation > lock if pages_use_count is non-zero, leveraging from atomicity of the > refcount_t. Make drm_gem_shmem_mmap() to utilize the new helper. > >

Re: [PATCH v18 04/26] drm/shmem-helper: Refactor locked/unlocked functions

2023-11-24 Thread Boris Brezillon
On Fri, 24 Nov 2023 11:40:06 +0100 Maxime Ripard wrote: > On Mon, Oct 30, 2023 at 02:01:43AM +0300, Dmitry Osipenko wrote: > > Add locked and remove unlocked postfixes from drm-shmem function names, > > making names consistent with the drm/gem core code. > > > > Reviewed-by: Boris Brezillon >

Re: [PATCH v18 07/26] drm/shmem-helper: Use refcount_t for pages_use_count

2023-11-24 Thread Maxime Ripard
On Mon, 30 Oct 2023 02:01:46 +0300, Dmitry Osipenko wrote: > Use atomic refcount_t helper for pages_use_count to optimize pin/unpin > functions by skipping reservation locking while GEM's pin refcount > 1. > > Reviewed-by: Boris Brezillon > Suggested-by: Boris Brezillon > > [ ... ] Acked-by:

Re: [PATCH v18 06/26] drm/shmem-helper: Add and use pages_pin_count

2023-11-24 Thread Maxime Ripard
On Mon, 30 Oct 2023 02:01:45 +0300, Dmitry Osipenko wrote: > Add separate pages_pin_count for tracking of whether drm-shmem pages are > moveable or not. With the addition of memory shrinker support to drm-shmem, > the pages_use_count will no longer determine whether pages are hard-pinned > in

Re: [PATCH v18 05/26] drm/shmem-helper: Remove obsoleted is_iomem test

2023-11-24 Thread Maxime Ripard
On Mon, 30 Oct 2023 02:01:44 +0300, Dmitry Osipenko wrote: > Everything that uses the mapped buffer should be agnostic to is_iomem. > The only reason for the is_iomem test is that we're setting shmem->vaddr > to the returned map->vaddr. Now that the shmem->vaddr code is gone, remove > the

Re: [PATCH v18 04/26] drm/shmem-helper: Refactor locked/unlocked functions

2023-11-24 Thread Maxime Ripard
On Mon, Oct 30, 2023 at 02:01:43AM +0300, Dmitry Osipenko wrote: > Add locked and remove unlocked postfixes from drm-shmem function names, > making names consistent with the drm/gem core code. > > Reviewed-by: Boris Brezillon > Suggested-by: Boris Brezillon > Signed-off-by: Dmitry Osipenko

Re: [PATCH v18 03/26] drm/shmem-helper: Make all exported symbols GPL

2023-11-24 Thread Maxime Ripard
On Mon, 30 Oct 2023 02:01:42 +0300, Dmitry Osipenko wrote: > Make all drm-shmem exported symbols GPL to make them consistent with > the rest of drm-shmem symbols. > > Reviewed-by: Boris Brezillon > Signed-off-by: Dmitry Osipenko > > [ ... ] Acked-by: Maxime Ripard Thanks! Maxime

Re: [PATCH v18 02/26] drm/gem: Add _locked postfix to functions that have unlocked counterpart

2023-11-24 Thread Maxime Ripard
On Mon, 30 Oct 2023 02:01:41 +0300, Dmitry Osipenko wrote: > Add _locked postfix to drm_gem functions that have unlocked counterpart > functions to make GEM functions naming more consistent and intuitive in > regards to the locking requirements. > > Reviewed-by: Boris Brezillon > > [ ... ]

Re: [PATCH v18 01/26] drm/gem: Change locked/unlocked postfix of drm_gem_v/unmap() function names

2023-11-24 Thread Maxime Ripard
On Mon, 30 Oct 2023 02:01:40 +0300, Dmitry Osipenko wrote: > Make drm/gem API function names consistent by having locked function > use the _locked postfix in the name, while the unlocked variants don't > use the _unlocked postfix. Rename drm_gem_v/unmap() function names to > make them consistent

Re: [PATCH] drm/panfrost: Ignore core_mask for poweroff and sync interrupts

2023-11-24 Thread Boris Brezillon
On Fri, 24 Nov 2023 11:12:57 +0100 AngeloGioacchino Del Regno wrote: > Il 24/11/23 10:17, AngeloGioacchino Del Regno ha scritto: > > Il 23/11/23 16:40, Boris Brezillon ha scritto: > >> On Thu, 23 Nov 2023 16:14:12 +0100 > >> AngeloGioacchino Del Regno > >> wrote: > >> > >>> Il 23/11/23

Re: [PATCH v4] drm/test: add a test suite for GEM objects backed by shmem

2023-11-24 Thread Marco Pagani
On 2023-11-24 09:49, Maxime Ripard wrote: > Hi, > > On Thu, Nov 23, 2023 at 11:01:46AM +0100, Marco Pagani wrote: >> +static int drm_gem_shmem_test_init(struct kunit *test) >> +{ >> +struct device *dev; >> +struct fake_dev { >> +struct drm_device drm_dev; >> +} *fdev;

Re: [PATCH] drm/panfrost: Ignore core_mask for poweroff and sync interrupts

2023-11-24 Thread AngeloGioacchino Del Regno
Il 24/11/23 10:17, AngeloGioacchino Del Regno ha scritto: Il 23/11/23 16:40, Boris Brezillon ha scritto: On Thu, 23 Nov 2023 16:14:12 +0100 AngeloGioacchino Del Regno wrote: Il 23/11/23 14:51, Boris Brezillon ha scritto: On Thu, 23 Nov 2023 14:24:57 +0100 AngeloGioacchino Del Regno wrote:

Re: [PATCH v18 26/26] drm/panfrost: Switch to generic memory shrinker

2023-11-24 Thread Boris Brezillon
On Mon, 30 Oct 2023 02:02:05 +0300 Dmitry Osipenko wrote: > Replace Panfrost's custom memory shrinker with a common drm-shmem > memory shrinker. > > Signed-off-by: Dmitry Osipenko > --- > drivers/gpu/drm/panfrost/Makefile | 1 - > drivers/gpu/drm/panfrost/panfrost_device.h|

[PATCH v2] drm/stm: Avoid use-after-free issues with crtc and plane

2023-11-24 Thread Katya Orlova
ltdc_load() calls functions drm_crtc_init_with_planes(), drm_universal_plane_init() and drm_encoder_init(). These functions should not be called with parameters allocated with devm_kzalloc() to avoid use-after-free issues [1]. Use allocations managed by the DRM framework. Found by Linux

[PATCH v4 1/1] drm/mediatek: Fix errors when reporting rotation capability

2023-11-24 Thread Hsiao Chien Sung
Create rotation property according to the hardware capability. Since currently OVL of all chips support same rotation, no need to define it in the driver data. Fixes: 84d805753983 ("drm/mediatek: Support reflect-y plane rotation") Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Hsiao

[PATCH v4 0/1] Fix errors when reporting rotation capability

2023-11-24 Thread Hsiao Chien Sung
This commit is based on 20231024130048.14749-1-shawn.s...@mediatek.com. This bug was found when running IGT tests. For CRTCs that doesn't support rotation should still return DRM_MODE_ROTATE_0, otherwise the test will fail to restart. Returns the hardware capabilities accordingly. Changes in v4:

  1   2   >