Re: [PATCH v1 00/12] drm/rockchip: RK356x VOP2 support

2021-11-22 Thread Sascha Hauer
Hi Alex, On Mon, Nov 22, 2021 at 12:18:47AM +0100, Alex Bee wrote: > Hi Sascha, > > Am 17.11.21 um 15:33 schrieb Sascha Hauer: > > This series adds initial graphics support for the Rockchip RK356[68] > > SoCs. Graphics support is based around the VOP2 controller which > > replaces the VOP contro

[PATCH v6 0/6] drm/i915/ttm: Async migration

2021-11-22 Thread Thomas Hellström
This patch series deals with async migration and async vram management. It still leaves an important part out, which is async unbinding which will reduce latency further, at least when trying to migrate already active objects. Patches 1/6 deals with accessing and waiting for the TTM moving fence f

[PATCH v6 2/6] drm/i915/ttm: Move the i915_gem_obj_copy_ttm() function

2021-11-22 Thread Thomas Hellström
Move the i915_gem_obj_copy_ttm() function to i915_gem_ttm_move.h. This will help keep a number of functions static when introducing async moves. Signed-off-by: Thomas Hellström Reviewed-by: Matthew Auld --- drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 47 --- drivers/gpu/drm/i915/

[PATCH v6 1/6] drm/i915: Add support for moving fence waiting

2021-11-22 Thread Thomas Hellström
From: Maarten Lankhorst For now, we will only allow async migration when TTM is used, so the paths we care about are related to TTM. The mmap path is handled by having the fence in ttm_bo->moving, when pinning, the binding only becomes available after the moving fence is signaled, and pinning a

[PATCH v6 3/6] drm/i915/ttm: Drop region reference counting

2021-11-22 Thread Thomas Hellström
There is an interesting refcounting loop: struct intel_memory_region has a struct ttm_resource_manager, ttm_resource_manager->move may hold a reference to i915_request, i915_request may hold a reference to intel_context, intel_context may hold a reference to drm_i915_gem_object, drm_i915_gem_object

[PATCH v6 4/6] drm/i915/ttm: Correctly handle waiting for gpu when shrinking

2021-11-22 Thread Thomas Hellström
With async migration, the shrinker may end up wanting to release the pages of an object while the migration blit is still running, since the GT migration code doesn't set up VMAs and the shrinker is thus oblivious to the fact that the GPU is still using the pages. Add waiting for gpu in the shrink

[PATCH v6 5/6] drm/i915/ttm: Implement asynchronous TTM moves

2021-11-22 Thread Thomas Hellström
Don't wait sync while migrating, but rather make the GPU blit await the dependencies and add a moving fence to the object. This also enables asynchronous VRAM management in that on eviction, rather than waiting for the moving fence to expire before freeing VRAM, it is freed immediately and the fen

[PATCH v6 6/6] drm/i915/ttm: Update i915_gem_obj_copy_ttm() to be asynchronous

2021-11-22 Thread Thomas Hellström
Update the copy function i915_gem_obj_copy_ttm() to be asynchronous for future users and update the only current user to sync the objects as needed after this function. Signed-off-by: Thomas Hellström Reviewed-by: Matthew Auld --- drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c | 40 ++

Re: [PATCH] drm/i915: Remove unused intel_gmbus_set_speed() function

2021-11-22 Thread Jani Nikula
On Sun, 21 Nov 2021, Hans de Goede wrote: > The intel_gmbus_set_speed() function is not used anywhere, remove it. > > Note drivers/gpu/drm/gma500 has its own copy called > gma_intel_gmbus_set_speed() which is used, the intel_gmbus_set_speed() > version in the i915 code is not used at all Wow, the

Re: [PATCH] drm/i915/ttm: Fix error code in i915_ttm_eviction_valuable()

2021-11-22 Thread Matthew Auld
On 22/11/2021 07:41, Dan Carpenter wrote: This function returns a bool type so returning -EBUSY is equivalent to returning true. It should return false instead. Fixes: 7ae034590cea ("drm/i915/ttm: add tt shmem backend") Signed-off-by: Dan Carpenter Reviewed-by: Matthew Auld

Re: [PATCH v10 08/10] dyndbg: add print-to-tracefs, selftest with it - RFC

2021-11-22 Thread Pekka Paalanen
On Fri, 19 Nov 2021 11:21:36 -0500 Jason Baron wrote: > On 11/18/21 10:24 AM, Pekka Paalanen wrote: > > On Thu, 18 Nov 2021 09:29:27 -0500 > > Jason Baron wrote: > > > >> On 11/16/21 3:46 AM, Pekka Paalanen wrote: > >>> On Fri, 12 Nov 2021 10:08:41 -0500 > >>> Jason Baron wrote: > >>>

Re: [PATCH linux-next] drm/i915/request: Remove unused variables

2021-11-22 Thread Jani Nikula
On Sun, 21 Nov 2021, Christophe JAILLET wrote: > Le 21/11/2021 à 11:13, cgel@gmail.com a écrit : >> From: yong yiran >> >> The clang_analyzer complains as follows: >> drivers/gpu/drm/i915/i915_request.c:2119:2 warning: >> Value stored to 'x' is never read >> >> Reported-by: Zeal Robot >> S

Re: [PATCH 1/2] drm/i915/backlight: Drop duplicate intel_panel_actually_set_backlight()

2021-11-22 Thread Jani Nikula
On Sun, 21 Nov 2021, Hans de Goede wrote: > After the recent refactoring of the backlight code the contents of > intel_panel_actually_set_backlight() is exactly the same (minus a > small wording difference in the drm_dbg_kms() as the contents if the > more widely used intel_backlight_set_pwm_level

Re: [PATCH 2/2] drm/i915/backlight: Make ext_pwm_disable_backlight() call intel_backlight_set_pwm_level()

2021-11-22 Thread Jani Nikula
On Sun, 21 Nov 2021, Hans de Goede wrote: > At least the Bay Trail LPSS PWM controller used with DSI panels on many > Bay Trail tablets seems to leave the PWM pin in whatever state it was > (high or low) ATM that the PWM gets disabled. Combined with some panels > not having a separate backlight-en

Re: [PATCH v2 1/2] drm/input_helper: Add new input-handling helper

2021-11-22 Thread Pekka Paalanen
On Fri, 19 Nov 2021 16:56:01 +0100 Daniel Vetter wrote: > On Fri, Nov 19, 2021 at 12:38:41PM +0200, Pekka Paalanen wrote: > > On Thu, 18 Nov 2021 17:46:10 -0800 > > Brian Norris wrote: > > > > > Hi Pekka, > > > > > > Thanks for the thoughts and review. I've tried to respond below: > > > > >

Re: [PATCH bpf] treewide: add missing includes masked by cgroup -> bpf dependency

2021-11-22 Thread Jani Nikula
On Fri, 19 Nov 2021, Jakub Kicinski wrote: > cgroup.h (therefore swap.h, therefore half of the universe) > includes bpf.h which in turn includes module.h and slab.h. > Since we're about to get rid of that dependency we need > to clean things up. > > Signed-off-by: Jakub Kicinski > --- > CC: ax...

[RESEND PATCH v7 6/6] drm/sprd: add Unisoc's drm mipi dsi&dphy driver

2021-11-22 Thread Kevin Tang
Adds dsi host controller support for the Unisoc's display subsystem. Adds dsi phy support for the Unisoc's display subsystem. Only MIPI DSI Displays supported, DP/TV/HMDI will be support in the feature. v1: - Remove dphy and dsi graph binding, merge the dphy driver into the dsi. v2: - Use drm

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915/gtt: stop caching the scratch page

2021-11-22 Thread Tvrtko Ursulin
On 28/10/2021 10:26, Matthew Auld wrote: Normal users shouldn't be hitting this, likely this would indicate a userspace bug. So don't bother caching, which should be safe now that we manually flush the page. Could this have a performance impact if "things" overfetch often enough in normal op

Re: [PATCH v2 1/2] drm/input_helper: Add new input-handling helper

2021-11-22 Thread Pekka Paalanen
On Fri, 19 Nov 2021 17:11:07 +0100 Daniel Vetter wrote: > On Fri, Nov 19, 2021 at 04:04:28PM +, Simon Ser wrote: > > On Friday, November 19th, 2021 at 16:53, Daniel Vetter > > wrote: > > > > > Random idea ... should we perhaps let userspace connect the boosting? I.e. > > > we do a bunch

Re: [PATCH 2/3] drm/format-helper: Add drm_fb_xrgb8888_to_xrgb2101010_dstclip()

2021-11-22 Thread Pekka Paalanen
On Wed, 17 Nov 2021 23:58:28 +0900 Hector Martin wrote: > Add XRGB emulation support for devices that can only do XRGB2101010. > > This is chiefly useful for simpledrm on Apple devices where the > bootloader-provided framebuffer is 10-bit, which already works fine with > simplefb. This is re

Re: [PATCH 03/15] iio: buffer-dma: Use round_down() instead of rounddown()

2021-11-22 Thread Paul Cercueil
Hi Jonathan, Le dim., nov. 21 2021 at 14:08:23 +, Jonathan Cameron a écrit : On Mon, 15 Nov 2021 14:19:13 + Paul Cercueil wrote: We know that the buffer's alignment will always be a power of two; therefore, we can use the faster round_down() macro. Signed-off-by: Paul Cercueil

Re: [PATCH 2/3] drm/format-helper: Add drm_fb_xrgb8888_to_xrgb2101010_dstclip()

2021-11-22 Thread Hector Martin
On 22/11/2021 18.52, Pekka Paalanen wrote: On Wed, 17 Nov 2021 23:58:28 +0900 Hector Martin wrote: Add XRGB emulation support for devices that can only do XRGB2101010. This is chiefly useful for simpledrm on Apple devices where the bootloader-provided framebuffer is 10-bit, which already

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-22 Thread Maxime Ripard
On Mon, Nov 22, 2021 at 12:22:19PM +0530, Jagan Teki wrote: > Some display panels would come up with a non-DSI output, those > can have an option to connect the DSI host by means of interface > bridge converter. > > This DSI to non-DSI interface bridge converter would requires > DSI Host to handle

Re: [PATCH v5 4/7] drm: sun4i: dsi: Add mode_set function

2021-11-22 Thread Maxime Ripard
On Mon, Nov 22, 2021 at 12:22:20PM +0530, Jagan Teki wrote: > Get the display mode settings via mode_set bridge function > instead of explicitly de-reference. What's wrong with dereferencing the mode? Maxime signature.asc Description: PGP signature

Re: [PATCH] i2c: tegra: Add ACPI support

2021-11-22 Thread Dmitry Osipenko
19.11.2021 17:48, Andy Shevchenko пишет: >> + if (i2c_dev->nclocks == 0) >> + return; > Why? Make clocks optional. This check shouldn't be needed because both clk_disable() and clk_bulk_unprepare() should handle NULL/zero clocks without problems.

Re: [PATCH 2/3] drm/format-helper: Add drm_fb_xrgb8888_to_xrgb2101010_dstclip()

2021-11-22 Thread Pekka Paalanen
On Mon, 22 Nov 2021 19:05:16 +0900 Hector Martin wrote: > On 22/11/2021 18.52, Pekka Paalanen wrote: > > On Wed, 17 Nov 2021 23:58:28 +0900 > > Hector Martin wrote: > > > >> Add XRGB emulation support for devices that can only do XRGB2101010. > >> > >> This is chiefly useful for simpledrm

Re: [PATCH] i2c: tegra: Add ACPI support

2021-11-22 Thread Dmitry Osipenko
19.11.2021 16:32, Akhil R пишет: > - i2c_dev->rst = devm_reset_control_get_exclusive(i2c_dev->dev, "i2c"); > - if (IS_ERR(i2c_dev->rst)) { > - dev_err_probe(i2c_dev->dev, PTR_ERR(i2c_dev->rst), > - "failed to get reset control\n"); > - retur

[PATCH] drm/ast: Create the driver for ASPEED proprietory Display-Port

2021-11-22 Thread KuoHsiang Chou
1. The MCU FW controling ASPEED DP is loaded by BMC boot loader. 2. Driver starts after CR[3:1] == 111b that indicates Tx is ASTDP, and CRD1[5] has been asserted by BMVC boot loader. 3. EDID is prioritized by DP monitor. 4. DP's EDID has high priority to decide resolution supporting. Signed-off

[RFC PATCH v4 0/2] RDMA/rxe: Add dma-buf support

2021-11-22 Thread Shunsuke Mie
This patch series add a dma-buf support for rxe driver. A dma-buf based memory registering has beed introduced to use the memory region that lack of associated page structures (e.g. device memory and CMA managed memory) [1]. However, to use the dma-buf based memory, each rdma device drivers requir

[RFC PATCH v4 1/2] RDMA/umem: Change for rdma devices has not dma device

2021-11-22 Thread Shunsuke Mie
Current implementation requires a dma device for RDMA driver to use dma-buf memory space as RDMA buffer. However, software RDMA drivers has not dma device and copy RDMA data using CPU instead of hardware. This patch changes to be hold a dma-buf on struct ib_umem_dmabuf. This allows the software RD

[RFC PATCH v4 2/2] RDMA/rxe: Add dma-buf support

2021-11-22 Thread Shunsuke Mie
Implement a ib device operation ‘reg_user_mr_dmabuf’. Generate a rxe_map from the memory space linked the passed dma-buf. Signed-off-by: Shunsuke Mie --- drivers/infiniband/sw/rxe/rxe_loc.h | 2 + drivers/infiniband/sw/rxe/rxe_mr.c| 113 ++ drivers/infiniband/sw/r

[PATCH v4 1/4] arm64: dts: qcom: sc7280: add display dt nodes

2021-11-22 Thread Sankeerth Billakanti
From: Krishna Manikandan Add mdss and mdp DT nodes for sc7280. Signed-off-by: Krishna Manikandan Reported-by: kernel test robot Reviewed-by: Stephen Boyd Reported-by: kernel test robot Signed-off-by: Sankeerth Billakanti --- Changes in v4: None Changes in v3: None Changes in v2:

[PATCH v4 2/4] arm64: dts: qcom: sc7280: Add DSI display nodes

2021-11-22 Thread Sankeerth Billakanti
From: Krishna Manikandan Add DSI controller and PHY nodes for sc7280. Signed-off-by: Rajeev Nandan Signed-off-by: Krishna Manikandan Reviewed-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd Signed-off-by: Sankeerth Billakanti --- Changes in v4: None Changes in v3: - Add the dsi_ph

[PATCH v4 3/4] arm64: dts: qcom: sc7280: add edp display dt nodes

2021-11-22 Thread Sankeerth Billakanti
Add edp controller and phy DT nodes for sc7280. Signed-off-by: Krishna Manikandan Reviewed-by: Stephen Boyd Signed-off-by: Sankeerth Billakanti --- Changes in v4: None Changes in v3: - Add one clock cell per line (Stephen Boyd) - Unit address should match first reg property (Steph

[PATCH v4 4/4] arm64: dts: qcom: sc7280: Add Display Port node

2021-11-22 Thread Sankeerth Billakanti
From: Kuogee Hsieh Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Signed-off-by: Sankeerth Billakanti --- Changes in v4: - Add the patch to display DT change series (Bjorn Andersson) - Remove the trailing whitespaces arch/arm64/boot/dts/qcom/sc7280.dtsi | 90 +

[PATCH v1 1/4] ARM: dts: imx6dl-prtvt7: Add display and panel nodes

2021-11-22 Thread Oleksij Rempel
Add Innolux G070Y2-T02 panel to the Protonic VT7 board. Signed-off-by: Robin van der Gracht Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6dl-prtvt7.dts | 47 + 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-prtvt7.dts b/arch/arm/bo

[PATCH v1 2/4] ARM: dts: imx6dl-prtvt7: Add missing tvp5150 video decoder node

2021-11-22 Thread Oleksij Rempel
From: Robin van der Gracht Signed-off-by: Robin van der Gracht --- arch/arm/boot/dts/imx6dl-prtvt7.dts | 40 + 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-prtvt7.dts b/arch/arm/boot/dts/imx6dl-prtvt7.dts index be7c4cb339e7..02b53df03e6f 1

[PATCH v1 3/4] ARM: dts: imx6qdl-vicut1: add CAN termination support

2021-11-22 Thread Oleksij Rempel
The gpio1 0 pin is controlling CAN termination, not USB H1 VBUS. So, remove wrong regulator and assign this GPIO to the new DT CAN termination property. Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6qdl-vicut1.dtsi | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) di

[PATCH v1 4/4] ARM: dts: imx6dl: plym2m, prtvt7, victgo: make use of new resistive-adc-touch driver

2021-11-22 Thread Oleksij Rempel
The tsc2046 is an ADC used as touchscreen controller. To share as mach code as possible, we should use it as actual ADC + virtual tochscreen controller. With this patch we make use of the new kernel IIO and HID infrastructure. Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6dl-plym2m.dts

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-22 Thread Laurent Pinchart
Hi Maxime, On Mon, Nov 22, 2021 at 11:07:12AM +0100, Maxime Ripard wrote: > On Mon, Nov 22, 2021 at 12:22:19PM +0530, Jagan Teki wrote: > > Some display panels would come up with a non-DSI output, those > > can have an option to connect the DSI host by means of interface > > bridge converter. > >

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-22 Thread Neil Armstrong
On 22/11/2021 07:52, Jagan Teki wrote: > Some display panels would come up with a non-DSI output, those > can have an option to connect the DSI host by means of interface > bridge converter. > > This DSI to non-DSI interface bridge converter would requires > DSI Host to handle drm bridge functiona

Re: [PATCH v5 4/7] drm: sun4i: dsi: Add mode_set function

2021-11-22 Thread Jagan Teki
On Mon, Nov 22, 2021 at 3:38 PM Maxime Ripard wrote: > > On Mon, Nov 22, 2021 at 12:22:20PM +0530, Jagan Teki wrote: > > Get the display mode settings via mode_set bridge function > > instead of explicitly de-reference. > > What's wrong with dereferencing the mode? Nothing wrong with dereferencin

Patch "drm/cma-helper: Release non-coherent memory with dma_free_noncoherent()" has been added to the 5.15-stable tree

2021-11-22 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/cma-helper: Release non-coherent memory with dma_free_noncoherent() to the 5.15-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 t

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-22 Thread Jagan Teki
Hi Neil, On Mon, Nov 22, 2021 at 6:22 PM Neil Armstrong wrote: > > On 22/11/2021 07:52, Jagan Teki wrote: > > Some display panels would come up with a non-DSI output, those > > can have an option to connect the DSI host by means of interface > > bridge converter. > > > > This DSI to non-DSI inter

Re: [PATCH v5 4/7] drm: sun4i: dsi: Add mode_set function

2021-11-22 Thread Maxime Ripard
On Mon, Nov 22, 2021 at 06:35:58PM +0530, Jagan Teki wrote: > On Mon, Nov 22, 2021 at 3:38 PM Maxime Ripard wrote: > > > > On Mon, Nov 22, 2021 at 12:22:20PM +0530, Jagan Teki wrote: > > > Get the display mode settings via mode_set bridge function > > > instead of explicitly de-reference. > > > >

Re: [PATCH 1/2] drm/i915/dmabuf: fix broken build

2021-11-22 Thread Tvrtko Ursulin
On 28/10/2021 09:48, Matthew Auld wrote: On 28/10/2021 02:43, Vivi, Rodrigo wrote: On Wed, 2021-10-27 at 10:48 +0100, Matthew Auld wrote: On Wed, 27 Oct 2021 at 10:44, Jani Nikula wrote: On Wed, 27 Oct 2021, Matthew Auld wrote: On Wed, 27 Oct 2021 at 09:58, Jani Nikula wrote: On Wed,

Re: [PATCH v3] drm/i915/rpm: Enable runtime pm autosuspend by default

2021-11-22 Thread Anshuman Gupta
On 2021-11-16 at 21:22:38 +0530, Tilak Tangudu wrote: > v1: Enable runtime pm autosuspend by default for Gen12 > and later versions. > > v2: Enable runtime pm autosuspend by default for all > platforms(Syrjala Ville) > > v3: Change commit message(Nikula Jani) It would require to reorder the commi

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-22 Thread Jagan Teki
Hi Maxime, On Mon, Nov 22, 2021 at 3:37 PM Maxime Ripard wrote: > > On Mon, Nov 22, 2021 at 12:22:19PM +0530, Jagan Teki wrote: > > Some display panels would come up with a non-DSI output, those > > can have an option to connect the DSI host by means of interface > > bridge converter. > > > > Thi

Re: [PATCH v5 4/7] drm: sun4i: dsi: Add mode_set function

2021-11-22 Thread Jagan Teki
Hi Maxime, On Mon, Nov 22, 2021 at 6:58 PM Maxime Ripard wrote: > > On Mon, Nov 22, 2021 at 06:35:58PM +0530, Jagan Teki wrote: > > On Mon, Nov 22, 2021 at 3:38 PM Maxime Ripard wrote: > > > > > > On Mon, Nov 22, 2021 at 12:22:20PM +0530, Jagan Teki wrote: > > > > Get the display mode settings v

[PATCH] Revert "drm/i915/dmabuf: fix broken build"

2021-11-22 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This reverts commit 777226dac058d119286b4081953cb5aa2cb7394b. Approach taken in the patch was rejected by Linus and the upstream tree now already contains the required include directive via 304ac8032d3f ("Merge tag 'drm-next-2021-11-12' of git://anongit.freedesktop.org/drm/d

Re: [PATCH 1/2] drm: exynos: dsi: Convert to bridge driver

2021-11-22 Thread Jagan Teki
Hi Marek. On Mon, Nov 22, 2021 at 12:36 PM Jagan Teki wrote: > > Some display panels would come up with a non-DSI output, those > can have an option to connect the DSI host by means of interface > bridge converter. > > This DSI to non-DSI interface bridge converter would requires > DSI Host to ha

Re: [PATCH] Revert "drm/i915/dmabuf: fix broken build"

2021-11-22 Thread Matthew Auld
On 22/11/2021 13:57, Tvrtko Ursulin wrote: From: Tvrtko Ursulin This reverts commit 777226dac058d119286b4081953cb5aa2cb7394b. Approach taken in the patch was rejected by Linus and the upstream tree now already contains the required include directive via 304ac8032d3f ("Merge tag 'drm-next-2021-

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-22 Thread Maxime Ripard
On Mon, Nov 22, 2021 at 07:18:13PM +0530, Jagan Teki wrote: > Hi Maxime, > > On Mon, Nov 22, 2021 at 3:37 PM Maxime Ripard wrote: > > > > On Mon, Nov 22, 2021 at 12:22:19PM +0530, Jagan Teki wrote: > > > Some display panels would come up with a non-DSI output, those > > > can have an option to co

Re: [PATCH v3] drm/i915/rpm: Enable runtime pm autosuspend by default

2021-11-22 Thread Rodrigo Vivi
On Mon, Nov 22, 2021 at 07:18:17PM +0530, Anshuman Gupta wrote: > On 2021-11-16 at 21:22:38 +0530, Tilak Tangudu wrote: > > v1: Enable runtime pm autosuspend by default for Gen12 > > and later versions. > > > > v2: Enable runtime pm autosuspend by default for all > > platforms(Syrjala Ville) > >

Re: [PATCH v5 4/7] drm: sun4i: dsi: Add mode_set function

2021-11-22 Thread Maxime Ripard
On Mon, Nov 22, 2021 at 07:21:57PM +0530, Jagan Teki wrote: > > It's perfectly valid to dereference the pointer in atomic_enable, and > > that patch would consume memory for no particular reason. > > Again, I'm not pointing any mistake in dereference and certainly not > understand about what memor

Re: [PATCH v4] drm/ttm: Clarify that the TTM_PL_SYSTEM is under TTMs control

2021-11-22 Thread Christian König
Am 16.11.21 um 16:53 schrieb Zack Rusin: On Nov 16, 2021, at 03:20, Christian König wrote: Am 16.11.21 um 08:43 schrieb Thomas Hellström: On 11/16/21 08:19, Christian König wrote: Am 13.11.21 um 12:26 schrieb Thomas Hellström: Hi, Zack, On 11/11/21 17:44, Zack Rusin wrote: On Wed, 2021-11-

Re: [PATCH 1/2] drm: exynos: dsi: Convert to bridge driver

2021-11-22 Thread Marek Szyprowski
On 22.11.2021 08:06, Jagan Teki wrote: > Some display panels would come up with a non-DSI output, those > can have an option to connect the DSI host by means of interface > bridge converter. > > This DSI to non-DSI interface bridge converter would requires > DSI Host to handle drm bridge functional

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-22 Thread Jagan Teki
Hi Maxime, On Mon, Nov 22, 2021 at 7:35 PM Maxime Ripard wrote: > > On Mon, Nov 22, 2021 at 07:18:13PM +0530, Jagan Teki wrote: > > Hi Maxime, > > > > On Mon, Nov 22, 2021 at 3:37 PM Maxime Ripard wrote: > > > > > > On Mon, Nov 22, 2021 at 12:22:19PM +0530, Jagan Teki wrote: > > > > Some display

[drm-exynos:exynos-drm-next 1/3] drivers/gpu/drm/exynos/exynos_drm_dsi.c:1338:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is true

2021-11-22 Thread kernel test robot
-20211122 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c133fb321f7ca6083ce15b6aa5bf89de6600e649) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x

Re: [PATCH 1/2] drm: exynos: dsi: Convert to bridge driver

2021-11-22 Thread Jagan Teki
Hi Marek, On Mon, Nov 22, 2021 at 7:45 PM Marek Szyprowski wrote: > > On 22.11.2021 08:06, Jagan Teki wrote: > > Some display panels would come up with a non-DSI output, those > > can have an option to connect the DSI host by means of interface > > bridge converter. > > > > This DSI to non-DSI in

Re: [PATCH 1/2] drm: exynos: dsi: Convert to bridge driver

2021-11-22 Thread Jagan Teki
Hi Marek, On Mon, Nov 22, 2021 at 7:51 PM Jagan Teki wrote: > > Hi Marek, > > On Mon, Nov 22, 2021 at 7:45 PM Marek Szyprowski > wrote: > > > > On 22.11.2021 08:06, Jagan Teki wrote: > > > Some display panels would come up with a non-DSI output, those > > > can have an option to connect the DSI

Re: [PATCH v5 4/7] drm: sun4i: dsi: Add mode_set function

2021-11-22 Thread Jagan Teki
On Mon, Nov 22, 2021 at 7:39 PM Maxime Ripard wrote: > > On Mon, Nov 22, 2021 at 07:21:57PM +0530, Jagan Teki wrote: > > > It's perfectly valid to dereference the pointer in atomic_enable, and > > > that patch would consume memory for no particular reason. > > > > Again, I'm not pointing any mista

Re: [PATCH 1/2] drm: exynos: dsi: Convert to bridge driver

2021-11-22 Thread Fabio Estevam
Hi Jagan, On Mon, Nov 22, 2021 at 11:21 AM Jagan Teki wrote: > Is this with Bridge or normal DSI panel? According to the log shared by Marek, the dts being used is: arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts which includes arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi. In this dts

Re: [PATCH 1/2] drm: exynos: dsi: Convert to bridge driver

2021-11-22 Thread Marek Szyprowski
Hi Jagan, On 22.11.2021 15:21, Jagan Teki wrote: > On Mon, Nov 22, 2021 at 7:45 PM Marek Szyprowski > wrote: >> On 22.11.2021 08:06, Jagan Teki wrote: >>> Some display panels would come up with a non-DSI output, those >>> can have an option to connect the DSI host by means of interface >>> bridge

Re: [PATCH 1/2] drm: exynos: dsi: Convert to bridge driver

2021-11-22 Thread Marek Szyprowski
On 22.11.2021 15:40, Fabio Estevam wrote: > Hi Jagan, > > On Mon, Nov 22, 2021 at 11:21 AM Jagan Teki > wrote: > >> Is this with Bridge or normal DSI panel? > According to the log shared by Marek, the dts being used is: > arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts > which includes arch/arm6

Re: [PATCH v2 2/2] drm/i915: Use to_root_gt() to refer to the root tile

2021-11-22 Thread kernel test robot
Hi Andi, I love your patch! Yet something to improve: [auto build test ERROR on drm-tip/drm-tip] [also build test ERROR on next-2028] [cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next drm/drm-next tegra-drm/drm/tegra/for-next airlied/drm-next v5.16-rc2] [If your patch is a

[Bug 205089] amdgpu : drm:amdgpu_cs_ioctl : Failed to initialize parser -125

2021-11-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205089 --- Comment #26 from Alex Deucher (alexdeuc...@gmail.com) --- (In reply to Hristos from comment #25) > Kernel: 5.15.3 > Mesa: 21.2.5 > Xorg: 7.6 > > I see this when running OpenMW and a lot of mods > (https://modding-openmw.com/lists/total-overha

Re: [PATCH 1/2] dt-bindings: display: Turn lvds.yaml into a generic schema

2021-11-22 Thread Maxime Ripard
Hi, On Sat, Nov 20, 2021 at 12:46:33AM +0200, Laurent Pinchart wrote: > On Tue, Nov 16, 2021 at 03:35:02PM +0100, Maxime Ripard wrote: > > The lvds.yaml file so far was both defining the generic LVDS properties > > (such as data-mapping) that could be used for any LVDS sink, but also > > the panel

Re: [PATCH 1/2] drm: exynos: dsi: Convert to bridge driver

2021-11-22 Thread Jagan Teki
Hi Marek, On Mon, Nov 22, 2021 at 7:59 PM Jagan Teki wrote: > > Hi Marek, > > On Mon, Nov 22, 2021 at 7:51 PM Jagan Teki wrote: > > > > Hi Marek, > > > > On Mon, Nov 22, 2021 at 7:45 PM Marek Szyprowski > > wrote: > > > > > > On 22.11.2021 08:06, Jagan Teki wrote: > > > > Some display panels wo

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-22 Thread Maxime Ripard
On Mon, Nov 22, 2021 at 07:49:26PM +0530, Jagan Teki wrote: > On Mon, Nov 22, 2021 at 7:35 PM Maxime Ripard wrote: > > On Mon, Nov 22, 2021 at 07:18:13PM +0530, Jagan Teki wrote: > > > On Mon, Nov 22, 2021 at 3:37 PM Maxime Ripard wrote: > > > > > > > > On Mon, Nov 22, 2021 at 12:22:19PM +0530, J

Re: [PATCH v4] drm/ttm: Clarify that the TTM_PL_SYSTEM is under TTMs control

2021-11-22 Thread Zack Rusin
On Mon, 2021-11-22 at 15:15 +0100, Christian König wrote: > Am 16.11.21 um 16:53 schrieb Zack Rusin: > > > On Nov 16, 2021, at 03:20, Christian König > > > wrote: > > > > > > Am 16.11.21 um 08:43 schrieb Thomas Hellström: > > > > On 11/16/21 08:19, Christian König wrote: > > > > > Am 13.11.21 um

Re: [PATCH v5 4/7] drm: sun4i: dsi: Add mode_set function

2021-11-22 Thread Maxime Ripard
On Mon, Nov 22, 2021 at 08:01:47PM +0530, Jagan Teki wrote: > On Mon, Nov 22, 2021 at 7:39 PM Maxime Ripard wrote: > > > > On Mon, Nov 22, 2021 at 07:21:57PM +0530, Jagan Teki wrote: > > > > It's perfectly valid to dereference the pointer in atomic_enable, and > > > > that patch would consume memo

Re: [PATCH v6 1/4] drm/i915: Avoid allocating a page array for the gpu coredump

2021-11-22 Thread Ramalingam C
On 2021-11-08 at 18:45:44 +0100, Thomas Hellström wrote: > The gpu coredump typically takes place in a dma_fence signalling > critical path, and hence can't use GFP_KERNEL allocations, as that > means we might hit deadlocks under memory pressure. However > changing to __GFP_KSWAPD_RECLAIM which wil

Re: [PATCH 1/2] drm: exynos: dsi: Convert to bridge driver

2021-11-22 Thread Marek Szyprowski
On 22.11.2021 15:55, Jagan Teki wrote: > On Mon, Nov 22, 2021 at 7:59 PM Jagan Teki wrote: >> On Mon, Nov 22, 2021 at 7:51 PM Jagan Teki >> wrote: >>> On Mon, Nov 22, 2021 at 7:45 PM Marek Szyprowski >>> wrote: On 22.11.2021 08:06, Jagan Teki wrote: > Some display panels would come up

Re: [PATCH 01/15] iio: buffer-dma: Get rid of incoming/outgoing queues

2021-11-22 Thread Lars-Peter Clausen
On 11/21/21 9:08 PM, Paul Cercueil wrote: Le dim., nov. 21 2021 at 19:49:03 +0100, Lars-Peter Clausen a écrit : On 11/21/21 6:52 PM, Paul Cercueil wrote: Hi Lars, Le dim., nov. 21 2021 at 17:23:35 +0100, Lars-Peter Clausen  a écrit : On 11/15/21 3:19 PM, Paul Cercueil wrote: The buffer

Re: [PATCH 01/15] iio: buffer-dma: Get rid of incoming/outgoing queues

2021-11-22 Thread Paul Cercueil
Hi Lars, Le lun., nov. 22 2021 at 16:08:51 +0100, Lars-Peter Clausen a écrit : On 11/21/21 9:08 PM, Paul Cercueil wrote: Le dim., nov. 21 2021 at 19:49:03 +0100, Lars-Peter Clausen  a écrit : On 11/21/21 6:52 PM, Paul Cercueil wrote: Hi Lars, Le dim., nov. 21 2021 at 17:23:35 +0100, La

Re: [PATCH 01/15] iio: buffer-dma: Get rid of incoming/outgoing queues

2021-11-22 Thread Lars-Peter Clausen
On 11/22/21 4:16 PM, Paul Cercueil wrote: Hi Lars, Le lun., nov. 22 2021 at 16:08:51 +0100, Lars-Peter Clausen a écrit : On 11/21/21 9:08 PM, Paul Cercueil wrote: Le dim., nov. 21 2021 at 19:49:03 +0100, Lars-Peter Clausen  a écrit : On 11/21/21 6:52 PM, Paul Cercueil wrote: Hi Lars,

Re: [PATCH v5 4/7] drm: sun4i: dsi: Add mode_set function

2021-11-22 Thread Jagan Teki
On Mon, Nov 22, 2021 at 8:36 PM Maxime Ripard wrote: > > On Mon, Nov 22, 2021 at 08:01:47PM +0530, Jagan Teki wrote: > > On Mon, Nov 22, 2021 at 7:39 PM Maxime Ripard wrote: > > > > > > On Mon, Nov 22, 2021 at 07:21:57PM +0530, Jagan Teki wrote: > > > > > It's perfectly valid to dereference the p

Re: [PATCH 01/15] iio: buffer-dma: Get rid of incoming/outgoing queues

2021-11-22 Thread Paul Cercueil
Le lun., nov. 22 2021 at 16:17:59 +0100, Lars-Peter Clausen a écrit : On 11/22/21 4:16 PM, Paul Cercueil wrote: Hi Lars, Le lun., nov. 22 2021 at 16:08:51 +0100, Lars-Peter Clausen  a écrit : On 11/21/21 9:08 PM, Paul Cercueil wrote: Le dim., nov. 21 2021 at 19:49:03 +0100, Lars-Pete

Re: [PATCH] drm: check drm_format_info hsub and vsub to avoid divide by zero

2021-11-22 Thread George Kennedy
On 11/19/2021 9:25 AM, Jani Nikula wrote: On Fri, 19 Nov 2021, Daniel Vetter wrote: On Fri, Nov 19, 2021 at 12:03:00PM +0200, Ville Syrjälä wrote: On Fri, Nov 19, 2021 at 10:40:38AM +0100, Daniel Vetter wrote: On Thu, Oct 28, 2021 at 05:04:19PM +0300, Ville Syrjälä wrote: On Thu, Oct 28,

Re: [PATCH] Revert "drm/i915/dmabuf: fix broken build"

2021-11-22 Thread Tvrtko Ursulin
On 22/11/2021 14:04, Matthew Auld wrote: On 22/11/2021 13:57, Tvrtko Ursulin wrote: From: Tvrtko Ursulin This reverts commit 777226dac058d119286b4081953cb5aa2cb7394b. Approach taken in the patch was rejected by Linus and the upstream tree now already contains the required include directive

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-22 Thread Neil Armstrong
Hi, On 22/11/2021 14:16, Jagan Teki wrote: > Hi Neil, > > On Mon, Nov 22, 2021 at 6:22 PM Neil Armstrong > wrote: >> >> On 22/11/2021 07:52, Jagan Teki wrote: >>> Some display panels would come up with a non-DSI output, those >>> can have an option to connect the DSI host by means of interface

Re: [Intel-gfx] [PATCH v6 1/6] drm/i915: Add support for moving fence waiting

2021-11-22 Thread kernel test robot
] [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] url: https://github.com/0day-ci/linux/commits/Thomas-Hellstr-m/drm-i915-ttm-Async-migration/20211

Re: [PATCH 1/2] drm: exynos: dsi: Convert to bridge driver

2021-11-22 Thread Marek Szyprowski
On 22.11.2021 16:07, Marek Szyprowski wrote: > On 22.11.2021 15:55, Jagan Teki wrote: >> On Mon, Nov 22, 2021 at 7:59 PM Jagan Teki >> wrote: >>> On Mon, Nov 22, 2021 at 7:51 PM Jagan Teki >>> wrote: On Mon, Nov 22, 2021 at 7:45 PM Marek Szyprowski wrote: > On 22.11.2021 08:06, J

Re: [Intel-gfx] [PATCH v6 2/4] drm/i915: Use __GFP_KSWAPD_RECLAIM in the capture code

2021-11-22 Thread Ramalingam C
On 2021-11-08 at 18:45:45 +0100, Thomas Hellström wrote: > The capture code is typically run entirely in the fence signalling > critical path. We're about to add lockdep annotation in an upcoming patch > which reveals a lockdep splat similar to the below one. > > Fix the associated potential deadl

RPM raw-wakeref not held in intel_pxp_fini_hw

2021-11-22 Thread Jason A. Donenfeld
Hey Intel PXPers, I hit this splat on 5.16-rc1 during system suspend: Nov 22 13:54:09 thinkpad systemd-logind[934]: Lid closed. Nov 22 13:54:09 thinkpad systemd[1]: Reached target Sleep. Nov 22 13:54:09 thinkpad systemd[1]: Starting System Suspend... Nov 22 13:54:09 thinkpad systemd-sleep[519259]

Re: RPM raw-wakeref not held in intel_pxp_fini_hw

2021-11-22 Thread Daniele Ceraolo Spurio
Hi, The fix for this is in flight: https://patchwork.freedesktop.org/series/96658/ It just needs a last round of testing before we merge it. Thanks, Daniele On 11/22/2021 8:47 AM, Jason A. Donenfeld wrote: Hey Intel PXPers, I hit this splat on 5.16-rc1 during system suspend: Nov 22 13:54:0

Re: RPM raw-wakeref not held in intel_pxp_fini_hw

2021-11-22 Thread Jason A. Donenfeld
Hi Daniele, I'll give it a whirl on my laptop. Thanks. Jason

Re: [PATCH v1 1/9] mm: add zone device coherent type memory support

2021-11-22 Thread Felix Kuehling
Am 2021-11-21 um 9:40 p.m. schrieb Alistair Popple: diff --git a/mm/migrate.c b/mm/migrate.c index 1852d787e6ab..f74422a42192 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -362,7 +362,7 @@ static int expected_page_refs(struct address_space *mapping, struct page *pag

Re: [PATCH v5 3/7] drm: sun4i: dsi: Convert to bridge driver

2021-11-22 Thread Dave Stevenson
Hi On Mon, 22 Nov 2021 at 15:35, Neil Armstrong wrote: > > Hi, > > On 22/11/2021 14:16, Jagan Teki wrote: > > Hi Neil, > > > > On Mon, Nov 22, 2021 at 6:22 PM Neil Armstrong > > wrote: > >> > >> On 22/11/2021 07:52, Jagan Teki wrote: > >>> Some display panels would come up with a non-DSI output

RE: RPM raw-wakeref not held in intel_pxp_fini_hw

2021-11-22 Thread Lubart, Vitaly
CC Tomas and Sasha > -Original Message- > From: Ceraolo Spurio, Daniele > Sent: Monday, November 22, 2021 18:54 > To: Jason A. Donenfeld ; Lubart, Vitaly > ; Gupta, Anshuman ; > Surendrakumar Upadhyay, TejaskumarX > > Cc: LKML ; intel-...@lists.freedesktop.org; dri- > devel > Subject: R

Re: [PATCH v1 00/12] drm/rockchip: RK356x VOP2 support

2021-11-22 Thread Alex Bee
Am 22.11.21 um 09:10 schrieb Sascha Hauer: > Hi Alex, > > On Mon, Nov 22, 2021 at 12:18:47AM +0100, Alex Bee wrote: >> Hi Sascha, >> >> Am 17.11.21 um 15:33 schrieb Sascha Hauer: >>> This series adds initial graphics support for the Rockchip RK356[68] >>> SoCs. Graphics support is based around the

Re: [PATCH 4/4] drm/msm/a6xx: Capture gmu log in devcoredump

2021-11-22 Thread Rob Clark
On Thu, Nov 18, 2021 at 2:21 AM Akhil P Oommen wrote: > > Capture gmu log in coredump to enhance debugging. > > Signed-off-by: Akhil P Oommen > --- > > drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 41 > + > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 +- > driv

Re: [PATCH 3/3] drm/i915/gt: Improve "race-to-idle" at low frequencies

2021-11-22 Thread Rodrigo Vivi
On Wed, Nov 17, 2021 at 02:49:55PM -0800, Vinay Belgaumkar wrote: > From: Chris Wilson > > While the power consumption is proportional to the frequency, there is > also a static draw for active gates. The longer we are able to powergate > (rc6), the lower the static draw. Thus there is a sweetspo

Re: [PATCH 4/4] drm/msm/a6xx: Capture gmu log in devcoredump

2021-11-22 Thread Rob Clark
On Mon, Nov 22, 2021 at 10:26 AM Rob Clark wrote: > > On Thu, Nov 18, 2021 at 2:21 AM Akhil P Oommen wrote: > > > > Capture gmu log in coredump to enhance debugging. > > > > Signed-off-by: Akhil P Oommen > > --- > > > > drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 41 > > +

Re: [PATCH v1 00/12] drm/rockchip: RK356x VOP2 support

2021-11-22 Thread Robin Murphy
On 2021-11-22 17:47, Alex Bee wrote: Am 22.11.21 um 09:10 schrieb Sascha Hauer: Hi Alex, On Mon, Nov 22, 2021 at 12:18:47AM +0100, Alex Bee wrote: Hi Sascha, Am 17.11.21 um 15:33 schrieb Sascha Hauer: This series adds initial graphics support for the Rockchip RK356[68] SoCs. Graphics suppor

Re: [Intel-gfx] [PATCH v6 1/6] drm/i915: Add support for moving fence waiting

2021-11-22 Thread kernel test robot
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] url: https://github.com/0day-ci/linux/commits/Thomas-Hellstr-m/drm-i915-ttm-Async-migration/20211122-162

[PATCH v3 0/9] Add new formats support to vkms

2021-11-22 Thread Igor Torrente
Summary === This series of patches refactor some vkms components in order to introduce new formats to the planes and writeback connector. Now in the blend function, the plane's pixels are converted to ARGB16161616 and then blended together. The CRC is calculated based on the ARGB1616161616 bu

[PATCH v3 1/9] drm: vkms: Replace the deprecated drm_mode_config_init

2021-11-22 Thread Igor Torrente
The `drm_mode_config_init` was deprecated since c3b790e commit, and it's being replaced by the `drmm_mode_config_init`. Signed-off-by: Igor Torrente --- V2: Change the code style(Thomas Zimmermann). --- drivers/gpu/drm/vkms/vkms_drv.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) d

[PATCH v3 2/9] drm: vkms: Alloc the compose frame using vzalloc

2021-11-22 Thread Igor Torrente
Currently, the memory to the composition frame is being allocated using the kzmalloc. This comes with the limitation of maximum size of one page size(which in the x86_64 is 4Kb and 4MB for default and hugepage respectively). Somes test of igt (e.g. kms_plane@pixel-format) uses more than 4MB when t

  1   2   >