Re: [PATCH] drm/tilcdc: send vblank event when disabling crtc

2021-01-28 Thread Tomi Valkeinen
Dropped the @ti.com addresses and added the new ones. Tomi On 29/01/2021 07:58, quanyang.w...@windriver.com wrote: > From: Quanyang Wang > > When run xrandr to change resolution on Beaglebone Black board, it will > print the error information: > > root@beaglebone:~# xrandr -display :0 --outpu

nouveau-next 5.12

2021-01-28 Thread Ben Skeggs
Hey Dave, Nothing too major here, I actually thought I'd sent most of these right before the new year, but that apparently got lost in the bustle: - Turing MMU fault recovery fixes - Fix mDP connectors being reported as eDP to userspace - Fixes for audio locking, and other bit-rot from DRM changes

[PATCH] gpu/drm: Parse all ext. blocks in EDID

2021-01-28 Thread Ching-shih.Li
From: Louis Li [Why] EDID parser cannot correctly parse EDID which includes multiple same extension blocks (e.g. two same ext. blocks: , are included in EDID defined in test case HF1-66, HDMI 2.0 CTS), since it only parse the first target ext. block only. This causes CTS fail. [How] Original par

[git pull] drm fixes for 5.11-rc6

2021-01-28 Thread Dave Airlie
Hey Linus, Weekly fixes for graphics, nothing too major, nouveau has a few regression fixes for various fallout from header changes previously, vc4 has two fixes, two amdgpu, and a smattering of i915 fixes. All seems on course for a quieter rc7, fingers crossed. Dave. drm-fixes-2021-01-29: drm

[PATCH 5/5] kselftests: dmabuf-heaps: Add extra checking that allocated buffers are zeroed

2021-01-28 Thread John Stultz
Add a check to validate that buffers allocated from the heaps are properly zeroed before being given to userland. It is done by allocating a number of buffers, and filling them with a nonzero pattern, then closing and reallocating more buffers and checking that they are all properly zeroed. This

[PATCH 4/5] kselftests: dmabuf-heaps: Cleanup test output

2021-01-28 Thread John Stultz
Cleanup the test output so it is a bit easier to read Cc: Shuah Khan Cc: Brian Starkey Cc: Sumit Semwal Cc: Laura Abbott Cc: Hridya Valsaraju Cc: Suren Baghdasaryan Cc: Sandeep Patil Cc: Daniel Mentz Cc: linux-me...@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-kselft...@vg

[PATCH 3/5] kselftests: dmabuf-heaps: Softly fail if don't find a vgem device

2021-01-28 Thread John Stultz
While testing against a vgem device is helpful for testing importing they aren't always configured in, so don't make it a fatal failure. Cc: Shuah Khan Cc: Brian Starkey Cc: Sumit Semwal Cc: Laura Abbott Cc: Hridya Valsaraju Cc: Suren Baghdasaryan Cc: Sandeep Patil Cc: Daniel Mentz Cc: lin

[PATCH 2/5] kselftests: dmabuf-heaps: Add clearer checks on DMABUF_BEGIN/END_SYNC

2021-01-28 Thread John Stultz
Add logic to check the dmabuf sync calls succeed. Cc: Shuah Khan Cc: Brian Starkey Cc: Sumit Semwal Cc: Laura Abbott Cc: Hridya Valsaraju Cc: Suren Baghdasaryan Cc: Sandeep Patil Cc: Daniel Mentz Cc: linux-me...@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-kselft...@vger.k

[PATCH 1/5] kselftests: dmabuf-heaps: Fix Makefile's inclusion of the kernel's usr/include dir

2021-01-28 Thread John Stultz
Copied in from somewhere else, the makefile was including the kerne's usr/include dir, which caused the asm/ioctl.h file to be used. Unfortunately, that file has different values for _IOC_SIZEBITS and _IOC_WRITE than include/uapi/asm-generic/ioctl.h which then causes the _IOCW macros to give the w

Re: [RFC PATCH 0/9] cgroup support for GPU devices

2021-01-28 Thread Xingyou Chen
On 2021/1/27 上午5:46, Brian Welty wrote: > We'd like to revisit the proposal of a GPU cgroup controller for managing > GPU devices but with just a basic set of controls. This series is based on > the prior patch series from Kenny Ho [1]. We take Kenny's base patches > which implement the basic f

Re: [RFC PATCH 0/9] cgroup support for GPU devices

2021-01-28 Thread Xingyou Chen
On 2021/1/27 上午5:46, Brian Welty wrote: > We'd like to revisit the proposal of a GPU cgroup controller for managing > GPU devices but with just a basic set of controls. This series is based on > the prior patch series from Kenny Ho [1]. We take Kenny's base patches > which implement the basic f

Re: [PATCH v12 6/8] drm/mediatek: enable dither function

2021-01-28 Thread CK Hu
Hi, Hsin-Yi: On Thu, 2021-01-28 at 19:23 +0800, Hsin-Yi Wang wrote: > From: Yongqiang Niu > > for 5 or 6 bpc panel, we need enable dither function > to improve the display quality > > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-Yi Wang > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp

Re: [PATCH v12 7/8] soc: mediatek: add mtk mutex support for MT8183

2021-01-28 Thread CK Hu
Hi, Hsin-Yi: On Thu, 2021-01-28 at 19:23 +0800, Hsin-Yi Wang wrote: > From: Yongqiang Niu > > Add mtk mutex support for MT8183 SoC. Reviewed-by: CK Hu > > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-Yi Wang > --- > drivers/soc/mediatek/mtk-mutex.c | 50 +

[PATCH 0/2] Allow reading process DMA buf stats from fdinfo

2021-01-28 Thread Kalesh Singh
Android captures per-process system memory state when certain low memory events (e.g a foreground app kill) occur, to identify potential memory hoggers. In order to measure how much memory a process actually consumes, it is necessary to include the DMA buffer sizes for that process in the memory ac

[PATCH 2/2] dmabuf: Add dmabuf inode no to fdinfo

2021-01-28 Thread Kalesh Singh
The dmabuf inode number allows userspace to uniquely identify the buffer and avoids a dependency on /proc//fd/* when accounting per-process DMA buffer sizes. Signed-off-by: Kalesh Singh --- drivers/dma-buf/dma-buf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma-buf/dma-buf.c b/

[Intel-gfx] [PATCH v3 2/2] drm/i915/hdcp: read RxInfo once when reading Send_Pairing_Info

2021-01-28 Thread Juston Li
Previously when reading Send_Pairing_Info, RxInfo by itself was read once to retrieve the DEVICE_COUNT and then a second time when reading the RepeaterAuth_Send_ReceiverID_List which contains RxInfo. On a couple HDCP 2.2 docks, this second read attempt on RxInfo fails due to no Ack response. This

[Intel-gfx] [PATCH v3 1/2] drm/i915/hdcp: update cp_irq_count_cached in intel_dp_hdcp2_read_msg()

2021-01-28 Thread Juston Li
Update cp_irq_count_cached when we handle reading the messages rather than writing a message to make sure the value is up to date and not stale from a previously handled CP_IRQ. AKE flow doesn't always respond to a read with a write msg. E.g. currently AKE_Send_Pairing_Info will "timeout" because

[PATCH v3 3/3] drm/msm: Clean up GMU OOB set/clear handling.

2021-01-28 Thread Eric Anholt
Now that the bug is fixed in the minimal way for stable, go make the code table-driven. Signed-off-by: Eric Anholt Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 124 +- drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 55 2 files changed, 77

[PATCH v3 1/3] drm/msm: Fix race of GPU init vs timestamp power management.

2021-01-28 Thread Eric Anholt
We were using the same force-poweron bit in the two codepaths, so they could race to have one of them lose GPU power early. freedreno CI was seeing intermittent errors like: [drm:_a6xx_gmu_set_oob] *ERROR* Timeout waiting for GMU OOB set GPU_SET: 0x0 and this issue could have contributed to it. S

[PATCH v3 2/3] drm/msm: Fix races managing the OOB state for timestamp vs timestamps.

2021-01-28 Thread Eric Anholt
Now that we're not racing with GPU setup, also fix races of timestamps against other timestamps. In freedreno CI, we were seeing this path trigger timeouts on setting the GMU bit, producing: [drm:_a6xx_gmu_set_oob] *ERROR* Timeout waiting for GMU OOB set GPU_SET: 0x0 and this triggered especiall

[PATCH v3 0/3] drm/msm: fix for "Timeout waiting for GMU OOB set GPU_SET: 0x0"

2021-01-28 Thread Eric Anholt
Updated commit messages over v2, no code changes. Eric Anholt (3): drm/msm: Fix race of GPU init vs timestamp power management. drm/msm: Fix races managing the OOB state for timestamp vs timestamps. drm/msm: Clean up GMU OOB set/clear handling. drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 105 +

Re: [PATCH 2/3] drm/msm: Fix races managing the OOB state for timestamp vs timestamps.

2021-01-28 Thread Rob Clark
On Wed, Jan 27, 2021 at 3:39 PM Eric Anholt wrote: > > Now that we're not racing with GPU setup, also fix races of timestamps > against other timestamps. In CI, we were seeing this path trigger > timeouts on setting the GMU bit, especially on the first set of tests > right after boot (it's probab

[PATCH v12 5/8] drm/mediatek: add has_dither private data for gamma

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu Not all SoC has dither function in gamma module. Add private data to control this function setting. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 14 ++ 1 file changed, 10 insertions

[PATCH v12 3/8] drm/mediatek: add mtk_dither_set_common() function

2021-01-28 Thread Hsin-Yi Wang
Current implementation of mtk_dither_set() cast dev data to struct mtk_ddp_comp_dev. But other devices with different dev data would also call this function. Separate necessary parameters out so other device components (dither, gamma) can call this function. Signed-off-by: Hsin-Yi Wang Reviewed-

Re: [PATCH v10] staging: fbtft: add tearing signal detect

2021-01-28 Thread carlis
On Thu, 28 Jan 2021 10:42:54 +0100 Geert Uytterhoeven wrote: > Hi Kari, > > On Thu, Jan 28, 2021 at 7:53 AM Kari Argillander > wrote: > > On Thu, Jan 28, 2021 at 09:42:58AM +0800, carlis wrote: > > > On Thu, 28 Jan 2021 00:32:22 +0200 > > > Kari Argillander wrote: > > > > > #include "fbtf

Re: [PATCH v11 7/9] drm/mediatek: enable dither function

2021-01-28 Thread Hsin-Yi Wang
On Thu, Jan 28, 2021 at 4:32 PM Yongqiang Niu wrote: > > On Thu, 2021-01-28 at 16:28 +0800, CK Hu wrote: > > On Thu, 2021-01-28 at 16:18 +0800, Hsin-Yi Wang wrote: > > > On Thu, Jan 28, 2021 at 4:10 PM Yongqiang Niu > > > wrote: > > > > > > > > On Thu, 2021-01-28 at 16:07 +0800, CK Hu wrote: > >

Re: [PATCH v11 7/9] drm/mediatek: enable dither function

2021-01-28 Thread Yongqiang Niu
On Thu, 2021-01-28 at 16:18 +0800, Hsin-Yi Wang wrote: > On Thu, Jan 28, 2021 at 4:10 PM Yongqiang Niu > wrote: > > > > On Thu, 2021-01-28 at 16:07 +0800, CK Hu wrote: > > > On Thu, 2021-01-28 at 15:59 +0800, Yongqiang Niu wrote: > > > > On Thu, 2021-01-28 at 15:42 +0800, CK Hu wrote: > > > > > Hi

Re: [PATCH v10] staging: fbtft: add tearing signal detect

2021-01-28 Thread carlis
On Thu, 28 Jan 2021 12:15:28 +0100 Geert Uytterhoeven wrote: > Hi Carlis, > > On Thu, Jan 28, 2021 at 12:03 PM carlis > wrote: > > On Thu, 28 Jan 2021 10:42:54 +0100 > > Geert Uytterhoeven wrote: > > > On Thu, Jan 28, 2021 at 7:53 AM Kari Argillander > > > wrote: > > > > On Thu, Jan 28, 2

[PATCH v12 0/8] drm/mediatek: add support for mediatek SOC MT8183

2021-01-28 Thread Hsin-Yi Wang
This series is based on kernel/git/chunkuang.hu/linux.git mediatek-drm-next The series is tested on a mt8183 krane device. Change since v11 - fix review comments in v10 - drop "drm/mediatek: add RDMA fifo size error handle" patch Change since v10 - fix review comments in v9 Change since v9 - cha

[PATCH v12] staging: fbtft: add tearing signal detect

2021-01-28 Thread Carlis
From: zhangxuezhi For st7789v ic,when we need continuous full screen refresh, it is best to wait for the TE signal arrive to avoid screen tearing Signed-off-by: zhangxuezhi --- v12: change dev_err to dev_err_probe and add space in comments start, and delete te_mutex, change te wait logic v

Re: [PATCH v2 15/15] ARM: dts: bcm2711: Add the CEC interrupt controller

2021-01-28 Thread Nicolas Saenz Julienne
On Mon, 2021-01-11 at 15:23 +0100, Maxime Ripard wrote: > The CEC and hotplug interrupts go through an interrupt controller shared > between the two HDMI controllers. > > Let's add that interrupt controller and the interrupts for both HDMI > controllers > > Reviewed-by: Florian Fainelli > Signed

Re: [PATCH 2/2] drm/panel: simple: add samsung,s6e3fa2 panel

2021-01-28 Thread Iskren Chernev
On 12/30/20 5:17 PM, Iskren Chernev wrote: > From: Samuel Pascua > > This panel is used on the Samsung Galaxy S5 (klte). > > Signed-off-by: Samuel Pascua > --- > drivers/gpu/drm/panel/panel-simple.c | 30 > 1 file changed, 30 insertions(+) > > diff --git a/driv

[PATCH v2] drm/amdkfd: dqm fence memory corruption

2021-01-28 Thread Qu Huang
Amdgpu driver uses 4-byte data type as DQM fence memory, and transmits GPU address of fence memory to microcode through query status PM4 message. However, query status PM4 message definition and microcode processing are all processed according to 8 bytes. Fence memory only allocates 4 bytes of memo

[PATCH v5 0/2] Implement DE2.0 and DE3.0 per-plane alpha support

2021-01-28 Thread Roman Stratiienko
Please review/merge. v2: Initial patch v3: - Skip adding & applying alpha property if VI count > 1 (v3s case) v4: Resend (author's email changed) v5: Resend drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 29 + drivers/gpu/drm/sun4i/sun8i_ui_layer.h | 5 + drivers/gpu

Re: [PATCH v11 7/9] drm/mediatek: enable dither function

2021-01-28 Thread Hsin-Yi Wang
On Thu, Jan 28, 2021 at 4:10 PM Yongqiang Niu wrote: > > On Thu, 2021-01-28 at 16:07 +0800, CK Hu wrote: > > On Thu, 2021-01-28 at 15:59 +0800, Yongqiang Niu wrote: > > > On Thu, 2021-01-28 at 15:42 +0800, CK Hu wrote: > > > > Hi, Hsin-Yi: > > > > > > > > On Thu, 2021-01-28 at 15:28 +0800, Hsin-Yi

[PATCH v7 0/2] Add a Himax HX8837 display controller driver

2021-01-28 Thread Lubomir Rintel
Hi, please take a look at the patches chained to this messages and consider applying them. They add support for the controller that drives the panel on the OLPC XO laptops. Compared to v7, points risen in review by Laurent Pinchart have been addressed. Details in change log of patch 1/2. Tested

[PATCH v12 6/8] drm/mediatek: enable dither function

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu for 5 or 6 bpc panel, we need enable dither function to improve the display quality Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a

[PATCH] drm/bridge: anx7625: enable DSI EOTP

2021-01-28 Thread Xin Ji
Enable DSI EOTP feature for fixing some panel screen constance shift issue. Removing MIPI flag MIPI_DSI_MODE_EOT_PACKET to enable DSI EOTP. Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx76

[PATCHv2] drm/msm/kms: Make a lock_class_key for each crtc mutex

2021-01-28 Thread Stephen Boyd
Lockdep complains about an AA deadlock when rebooting the device. WARNING: possible recursive locking detected 5.4.91 #1 Not tainted reboot/5213 is trying to acquire lock: ff80d13391b0 (&kms->commit_lock[

[PATCH v12 1/8] arm64: dts: mt8183: rename rdma fifo size

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu property name must include only lowercase and '-' Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: Chun-Kuang Hu Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/medi

[PATCH] drm/amd/display: Simplify bool conversion

2021-01-28 Thread Abaci Team
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c:3137:35-40: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Suggested-by: Yang Li Signed-off-by: Abaci Team --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 2 +

[PATCH v7 2/2] drm/bridge: hx8837: add a Himax HX8837 display controller driver

2021-01-28 Thread Lubomir Rintel
Himax HX8837 is used to drive the LCD panel on OLPC platforms. It controls the panel backlight and is able to refresh it when the LCD controller (and the rest of the plaform) is powered off. It also converts regular RGB color data from the LCDC so that it looks reasonable on the OLPC LCD panel wi

Re: [PATCH v10] staging: fbtft: add tearing signal detect

2021-01-28 Thread Kari Argillander
On Thu, Jan 28, 2021 at 10:42:54AM +0100, Geert Uytterhoeven wrote: > Hi Kari, > > On Thu, Jan 28, 2021 at 7:53 AM Kari Argillander > wrote: > > On Thu, Jan 28, 2021 at 09:42:58AM +0800, carlis wrote: > > > On Thu, 28 Jan 2021 00:32:22 +0200 > > > Kari Argillander wrote: > > > > > @@ -82,6 +111,

Re: [PATCH v2 00/15] drm/vc4: hdmi: Add CEC support for the BCM2711

2021-01-28 Thread Maxime Ripard
Hi! On Mon, Jan 25, 2021 at 10:03:44PM +0100, Nicolas Saenz Julienne wrote: > Hi, > > On Mon, 2021-01-11 at 15:22 +0100, Maxime Ripard wrote: > > Hi, > > > > Here's a series introducing the CEC support for the BCM2711 found on the > > RaspberryPi4. > > > > The BCM2711 HDMI controller uses a sim

Re: [PATCH 2/2] dmabuf: Add dmabuf inode no to fdinfo

2021-01-28 Thread Randy Dunlap
On 1/28/21 10:24 AM, Kalesh Singh wrote: > The dmabuf inode number allows userspace to uniquely identify the buffer > and avoids a dependency on /proc//fd/* when accounting per-process > DMA buffer sizes. > > Signed-off-by: Kalesh Singh > --- > drivers/dma-buf/dma-buf.c | 1 + > 1 file changed,

[PATCH v5 2/2] drm/sun4i: Add alpha property for sun8i and sun50i VI layer

2021-01-28 Thread Roman Stratiienko
DE3.0 VI layers supports plane-global alpha channel. DE2.0 FCC block have GLOBAL_ALPHA register that can be used as alpha source for blender. Add alpha property to the DRM plane and connect it to the corresponding registers in the mixer. Do not add alpha property for V3s SOC that have DE2.0 and 2

[PATCH v12 2/8] arm64: dts: mt8183: refine gamma compatible name

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu mt8183 gamma is different with mt8173 remove mt8173 compatible name for mt8183 gamma Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/d

[PATCH v12 7/8] soc: mediatek: add mtk mutex support for MT8183

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu Add mtk mutex support for MT8183 SoC. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/soc/mediatek/mtk-mutex.c | 50 1 file changed, 50 insertions(+) diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek

Re: [PATCH 2/2] dmabuf: Add dmabuf inode no to fdinfo

2021-01-28 Thread Randy Dunlap
On 1/28/21 10:24 AM, Kalesh Singh wrote: > The dmabuf inode number allows userspace to uniquely identify the buffer > and avoids a dependency on /proc//fd/* when accounting per-process > DMA buffer sizes. > > Signed-off-by: Kalesh Singh > --- > drivers/dma-buf/dma-buf.c | 1 + > 1 file changed,

Re: [PATCH v11 3/9] drm/mediatek: add RDMA fifo size error handle

2021-01-28 Thread Hsin-Yi Wang
On Thu, Jan 28, 2021 at 3:52 PM CK Hu wrote: > > Hi, Hsin-Yi: > > On Thu, 2021-01-28 at 15:27 +0800, Hsin-Yi Wang wrote: > > From: Yongqiang Niu > > > > This patch add RDMA fifo size error handle > > rdma fifo size will not always bigger than the calculated threshold > > if that case happened, we

[PATCH v12 4/8] drm/mediatek: separate gamma module

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu mt8183 gamma module will different with mt8173 separate gamma for add private data Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_disp_drv.h | 10 + dri

[PATCH v7 1/2] dt-bindings: display: himax, hx8837: Add Himax HX8837 bindings

2021-01-28 Thread Lubomir Rintel
Himax HX8837 is a secondary display controller used to drive the panel on OLPC platforms. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v6: (All based on feedback from Laurent Pinchart) - Add power supplies - Make load/stat-gpios optional - Fix whitespace errors - Use

[PATCH v5 1/2] drm/sun4i: Add alpha property for sun8i UI layer

2021-01-28 Thread Roman Stratiienko
DE2.0 and DE3.0 UI layers supports plane-global alpha channel. Add alpha property to the DRM plane and connect it to the corresponding registers in mixer. Signed-off-by: Roman Stratiienko Reviewed-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 29 ++ dri

Re: [PATCH v2] drm/lima: add governor data with pre-defined thresholds

2021-01-28 Thread Lukasz Luba
On 1/27/21 7:40 PM, Christian Hewitt wrote: This patch adapts the panfrost pre-defined thresholds change [0] to the lima driver to improve real-world performance. The upthreshold value has been set to ramp GPU frequency to max freq faster (compared to panfrost) to compensate for the lower over

Re: [PATCH v11 7/9] drm/mediatek: enable dither function

2021-01-28 Thread Yongqiang Niu
On Thu, 2021-01-28 at 16:28 +0800, CK Hu wrote: > On Thu, 2021-01-28 at 16:18 +0800, Hsin-Yi Wang wrote: > > On Thu, Jan 28, 2021 at 4:10 PM Yongqiang Niu > > wrote: > > > > > > On Thu, 2021-01-28 at 16:07 +0800, CK Hu wrote: > > > > On Thu, 2021-01-28 at 15:59 +0800, Yongqiang Niu wrote: > > > >

[PATCH v12 8/8] drm/mediatek: add support for mediatek SOC MT8183

2021-01-28 Thread Hsin-Yi Wang
From: Yongqiang Niu 1. add ovl private data 2. add rdma private data 3. add gamma privte data 4. add main and external path module for crtc create Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 1 + drivers/gpu/drm

Re: [PATCH] drm/lima: add governor data with pre-defined thresholds

2021-01-28 Thread Lukasz Luba
On 1/27/21 7:35 PM, Christian Hewitt wrote: On 27 Jan 2021, at 3:11 pm, Lukasz Luba wrote: On 1/27/21 10:24 AM, Lukasz Luba wrote: Hi Christian, On 1/25/21 8:18 AM, Christian Hewitt wrote: This patch adapts the panfrost pre-defined thresholds change [0] to the lima driver to improve real-

Re: [PATCH v10] staging: fbtft: add tearing signal detect

2021-01-28 Thread carlis
On Thu, 28 Jan 2021 08:52:33 +0200 Kari Argillander wrote: > On Thu, Jan 28, 2021 at 09:42:58AM +0800, carlis wrote: > > On Thu, 28 Jan 2021 00:32:22 +0200 > > Kari Argillander wrote: > > > > #include "fbtft.h" > > > > > > > > #define DRVNAME "fb_st7789v" > > > > @@ -66,6 +69,32 @@ enum st

Re: ✓ Fi.CI.IGT: success for series starting with [1/2] drm/dp/mst: Export drm_dp_get_vc_payload_bw()

2021-01-28 Thread Imre Deak
On Tue, Jan 26, 2021 at 01:28:09AM +, Patchwork wrote: > == Series Details == > > Series: series starting with [1/2] drm/dp/mst: Export > drm_dp_get_vc_payload_bw() > URL : https://patchwork.freedesktop.org/series/86267/ > State : success Patchset pushed to -din with the docbook fix, thank

[Bug 210123] drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] - flip_done time out with vmwgfx

2021-01-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=210123 --- Comment #7 from Stefan Mayr (stefan+ker...@mayr-stefan.de) --- Same issue with Kernel 5.10.9 -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug. ___

Re: [PATCH 1/3] drm/msm: Fix race of GPU init vs timestamp power management.

2021-01-28 Thread Eric Anholt
On Thu, Jan 28, 2021 at 10:52 AM Jordan Crouse wrote: > > On Wed, Jan 27, 2021 at 03:39:44PM -0800, Eric Anholt wrote: > > We were using the same force-poweron bit in the two codepaths, so they > > could race to have one of them lose GPU power early. > > > > Signed-off-by: Eric Anholt > > Cc: sta

[pull] amdgpu drm-fixes-5.11

2021-01-28 Thread Alex Deucher
Hi Dave, Daniel, A couple of fixes for 5.11. The following changes since commit 06ee38dc2aab3b5a09feb74128cf7326a490b788: Merge tag 'amd-drm-fixes-5.11-2021-01-21' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes (2021-01-22 09:43:21 +1000) are available in the Git repository at

Re: [PATCH 3/3] drm/msm: Clean up GMU OOB set/clear handling.

2021-01-28 Thread Jordan Crouse
On Wed, Jan 27, 2021 at 03:39:46PM -0800, Eric Anholt wrote: > Now that the bug is fixed in the minimal way for stable, go make the > code table-driven. > > Signed-off-by: Eric Anholt There shouldn't be too many more OOB bits, but this is a good cleanup regardless. Reviewed-by: Jordan Crouse

Re: [PATCH 2/3] drm/msm: Fix races managing the OOB state for timestamp vs timestamps.

2021-01-28 Thread Jordan Crouse
On Wed, Jan 27, 2021 at 03:39:45PM -0800, Eric Anholt wrote: > Now that we're not racing with GPU setup, also fix races of timestamps > against other timestamps. In CI, we were seeing this path trigger > timeouts on setting the GMU bit, especially on the first set of tests > right after boot (it's

Re: [PATCH 1/3] drm/msm: Fix race of GPU init vs timestamp power management.

2021-01-28 Thread Jordan Crouse
On Wed, Jan 27, 2021 at 03:39:44PM -0800, Eric Anholt wrote: > We were using the same force-poweron bit in the two codepaths, so they > could race to have one of them lose GPU power early. > > Signed-off-by: Eric Anholt > Cc: sta...@vger.kernel.org # v5.9 You can add: Fixes: 4b565ca5a2cb ("drm/m

Re: [PATCH 1/1] dma-buf: heaps: Map system heap pages as managed by linux vm

2021-01-28 Thread Minchan Kim
On Thu, Jan 28, 2021 at 09:52:59AM -0800, Suren Baghdasaryan wrote: > On Thu, Jan 28, 2021 at 1:13 AM Christoph Hellwig wrote: > > > > On Thu, Jan 28, 2021 at 12:38:17AM -0800, Suren Baghdasaryan wrote: > > > Currently system heap maps its buffers with VM_PFNMAP flag using > > > remap_pfn_range. T

[PATCH] drm/vmwgfx: Fix some memory leaks on errors

2021-01-28 Thread Zack Rusin
Dan noticed some issues with pci_release_region, this builds upon that and fixes some other lingering issues. As part of this we also can stop trying to manually free our managed device; there's no need for it, it will be cleaned up automatically for us. Fixes: 8772c0bb58bb ("drm/vmwgfx: Cleanup p

Re: [PATCH v4 11/14] drm/amdgpu: Guard against write accesses after device removal

2021-01-28 Thread Andrey Grodzovsky
On 1/19/21 1:59 PM, Christian König wrote: Am 19.01.21 um 19:22 schrieb Andrey Grodzovsky: On 1/19/21 1:05 PM, Daniel Vetter wrote: On Tue, Jan 19, 2021 at 4:35 PM Andrey Grodzovsky wrote: There is really no other way according to this article https://nam11.safelinks.protection.outlook.com/

Re: [PATCH v5 00/21] Host1x sync point UAPI should not be used for tracking DRM jobs

2021-01-28 Thread Thierry Reding
On Thu, Jan 28, 2021 at 01:08:54PM +0200, Mikko Perttunen wrote: > On 1/27/21 11:20 PM, Dmitry Osipenko wrote: > > 26.01.2021 05:45, Mikko Perttunen пишет: > > > > 2. We will probably need a dedicated drm_tegra_submit_cmd for sync point > > > > increments.  The job's sync point will be allocated dy

Re: [PATCH] drm/msm/kms: Make a lock_class_key for each crtc mutex

2021-01-28 Thread Rob Clark
On Mon, Jan 25, 2021 at 3:49 PM Stephen Boyd wrote: > > Lockdep complains about an AA deadlock when rebooting the device. > > > WARNING: possible recursive locking detected > 5.4.91 #1 Not tainted > > reboot/

Re: [PATCH v12 2/8] arm64: dts: mt8183: refine gamma compatible name

2021-01-28 Thread Matthias Brugger
On 28/01/2021 12:23, Hsin-Yi Wang wrote: > From: Yongqiang Niu > > mt8183 gamma is different with mt8173 > remove mt8173 compatible name for mt8183 gamma > > Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-Yi Wang

Re: [PATCH v12 1/8] arm64: dts: mt8183: rename rdma fifo size

2021-01-28 Thread Matthias Brugger
On 28/01/2021 12:23, Hsin-Yi Wang wrote: > From: Yongqiang Niu > > property name must include only lowercase and '-' > > Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Chun-Kuang Hu > Revi

Re: [Linaro-mm-sig] [PATCH] RFC: dma-fence: Document recoverable page fault implications

2021-01-28 Thread Christian König
Am 28.01.21 um 16:39 schrieb Felix Kuehling: Am 2021-01-28 um 2:39 a.m. schrieb Christian König: Am 27.01.21 um 23:00 schrieb Felix Kuehling: Am 2021-01-27 um 7:16 a.m. schrieb Christian König: Am 27.01.21 um 13:11 schrieb Maarten Lankhorst: Op 27-01-2021 om 01:22 schreef Felix Kuehling: Am

Re: [Linaro-mm-sig] [PATCH] RFC: dma-fence: Document recoverable page fault implications

2021-01-28 Thread Felix Kuehling
Am 2021-01-28 um 2:39 a.m. schrieb Christian König: > Am 27.01.21 um 23:00 schrieb Felix Kuehling: >> Am 2021-01-27 um 7:16 a.m. schrieb Christian König: >>> Am 27.01.21 um 13:11 schrieb Maarten Lankhorst: Op 27-01-2021 om 01:22 schreef Felix Kuehling: > Am 2021-01-21 um 2:40 p.m. schrieb

Re: [PATCH v12] staging: fbtft: add tearing signal detect

2021-01-28 Thread Dan Carpenter
On Thu, Jan 28, 2021 at 04:33:02PM +0200, Andy Shevchenko wrote: > > + init_completion(&spi_panel_te); > > + rc = devm_request_irq(dev, > > > + gpiod_to_irq(par->gpio.te), > > ...and here simply use irq. > > > +

Re: [PATCH v10] staging: fbtft: add tearing signal detect

2021-01-28 Thread Dan Carpenter
On Thu, Jan 28, 2021 at 12:32:22AM +0200, Kari Argillander wrote: > On Wed, Jan 27, 2021 at 09:42:52PM +0800, Carlis wrote: > > @@ -82,6 +111,33 @@ enum st7789v_command { > > */ > > static int init_display(struct fbtft_par *par) > > { > > + int rc; > > + struct device *dev = par->info->devi

Re: [PATCH v12] staging: fbtft: add tearing signal detect

2021-01-28 Thread Andy Shevchenko
On Thu, Jan 28, 2021 at 4:33 PM Andy Shevchenko wrote: > On Thu, Jan 28, 2021 at 2:58 PM Carlis wrote: ... > Taking all together you probably need to create a helper and use it > inside init_display(), like > > static int init_tearing_effect_line(struct fbtft_par *par) > { > struct device *de

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-01-28 Thread Sumit Semwal
Hi Simon, On Thu, 28 Jan 2021 at 20:01, Simon Ser wrote: > > On Thursday, January 28th, 2021 at 1:03 PM, Sumit Semwal > wrote: > > > Since he didn't comment over Hridya's last clarification about the > > tracepoints to track total GPU memory allocations being orthogonal to > > this series, I as

Re: [PATCH v12] staging: fbtft: add tearing signal detect

2021-01-28 Thread Andy Shevchenko
On Thu, Jan 28, 2021 at 2:58 PM Carlis wrote: Thanks for your contribution, my comments below. > From: zhangxuezhi You probably have to configure your Git to use the same account for author and committer. > For st7789v ic,when we need continuous full screen refresh, it is best to 'ic,when' -

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-01-28 Thread Simon Ser
On Thursday, January 28th, 2021 at 1:03 PM, Sumit Semwal wrote: > Since he didn't comment over Hridya's last clarification about the > tracepoints to track total GPU memory allocations being orthogonal to > this series, I assumed he agreed with it. IIRC he's away this week. (I don't remember wh

Re: [PATCH V4] drm/stm: Fix bus_flags handling

2021-01-28 Thread yannick Fertre
Hi Marek, Thanks for the patch. Tested-by: Yannick Fertre On 1/27/21 12:07 PM, Marek Vasut wrote: The drm_display_mode_to_videomode() does not populate DISPLAY_FLAGS_DE_LOW or DISPLAY_FLAGS_PIXDATA_NEGEDGE flags in struct videomode. Therefore, no matter what polarity the next bridge or displ

[PULL] drm-intel-fixes

2021-01-28 Thread Jani Nikula
Hi Dave & Daniel - Apparently there's a regression in -rc5 that affects a large portion of the platforms in CI. See [1]. The issue showed up in -rc5 i.e. *before* the changes in this pull, however the issue prevents getting full coverage [2]. It does not look like this pull makes matters worse,

[PATCH v6 4/5] drm/i915: Don't assign to struct drm_device.pdev

2021-01-28 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Don't assign it. Users should upcast from struct drm_device.dev. v6: * also fix the assignment in selftests in this patch (Chris) Signed-off-by: Thomas Zimmermann Reviewed-by: Chris Wilson Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi

[PATCH v6 5/5] drm: Move struct drm_device.pdev to legacy section

2021-01-28 Thread Thomas Zimmermann
Struct drm_device.pdev is being moved to legacy status as only legacy DRM drivers use it. A possible follow-up patchset could remove pdev entirely. v4: * rebased Signed-off-by: Thomas Zimmermann Reviewed-by: Chris Wilson Acked-by: Sam Ravnborg --- include/drm/drm_device.h | 6 +++---

[PATCH v6 2/5] drm/i915/gt: Remove references to struct drm_device.pdev

2021-01-28 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert i915 to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Chris Wilson Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- drivers/gpu/drm/i91

[PATCH v6 3/5] drm/i915/gvt: Remove references to struct drm_device.pdev

2021-01-28 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert i915 to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Chris Wilson Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/gvt/cfg_space.c | 5 +++-- drivers/gpu/drm/i915/

[PATCH v6 1/5] drm/i915: Remove references to struct drm_device.pdev

2021-01-28 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert i915 to struct drm_device.dev. No functional changes. v6: * also remove assignment in selftests/ in a later patch (Chris) v5: * remove assignment in later patch (Chris) v3: * rebased v2: * move gt/ and gvt/ changes

[PATCH v6 0/5] drm: Move struct drm_device.pdev to legacy

2021-01-28 Thread Thomas Zimmermann
V6 of the patchset fixes i915/selftests to do the assigment of pdev in a later patch. This was forgotten in v5. The pdev field in struct drm_device points to a PCI device structure and goes back to UMS-only days when all DRM drivers were for PCI devices. Meanwhile we also support USB, SPI and plat

v5.11-rc5 BUG kmalloc-1k (Not tainted): Redzone overwritten

2021-01-28 Thread Jani Nikula
A number of our CI systems are hitting redzone overwritten errors after s2idle, with the errors introduced between v5.11-rc4 and v5.11-rc5. See snippet below, full logs for one affected machine at [1]. Known issue? BR, Jani. [1] https://intel-gfx-ci.01.org/tree/drm-intel-fixes/CI_DIF_549/fi-

[PATCH 2/3] drm/ttm: move memory accounting into vmwgfx v3

2021-01-28 Thread Christian König
This is just another feature which is only used by VMWGFX, so move it into the driver instead. I've tried to add the accounting sysfs file to the kobject of the drm minor, but I'm not 100% sure if this works as expected. v2: fix typo in KFD and avoid 64bit divide v3: fix init order in VMWGFX Sig

[PATCH 3/3] drm/ttm: drop sysfs directory

2021-01-28 Thread Christian König
Not used any more. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_module.c | 50 drivers/gpu/drm/ttm/ttm_module.h | 2 -- 2 files changed, 52 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_module.c b/drivers/gpu/drm/ttm/ttm_module.c index f656660

[PATCH 1/3] drm/ttm: rework ttm_tt page limit v3

2021-01-28 Thread Christian König
TTM implements a rather extensive accounting of allocated memory. There are two reasons for this: 1. It tries to block userspace allocating a huge number of very small BOs without accounting for the kmalloced memory. 2. Make sure we don't over allocate and run into an OOM situation during s

Re: [PATCH v12] staging: fbtft: add tearing signal detect

2021-01-28 Thread Greg KH
On Thu, Jan 28, 2021 at 08:53:55PM +0800, Carlis wrote: > From: zhangxuezhi > > For st7789v ic,when we need continuous full screen refresh, it is best to > wait for the TE signal arrive to avoid screen tearing > > Signed-off-by: zhangxuezhi > --- > v12: change dev_err to dev_err_probe and add s

Re: [PATCH] procfs/dmabuf: Add /proc//task//dmabuf_fds

2021-01-28 Thread Michal Hocko
On Wed 27-01-21 12:01:55, Christian König wrote: [...] > Some years ago I've proposed an change to improve the OOM killer to take > into account how much memory is reference through special file descriptors > like device drivers or DMA-buf. > > But that never want anywhere because of concerns that

Re: [PATCH] procfs/dmabuf: Add /proc//task//dmabuf_fds

2021-01-28 Thread Kalesh Singh
On Wed, Jan 27, 2021 at 5:47 AM Jann Horn wrote: > > +jeffv from Android > > On Tue, Jan 26, 2021 at 11:51 PM Kalesh Singh wrote: > > In order to measure how much memory a process actually consumes, it is > > necessary to include the DMA buffer sizes for that process in the memory > > accounting.

Re: [PATCH] procfs/dmabuf: Add /proc//task//dmabuf_fds

2021-01-28 Thread Michal Hocko
On Wed 27-01-21 12:08:50, Christian König wrote: > Am 27.01.21 um 12:02 schrieb Michal Hocko: > > On Wed 27-01-21 11:53:55, Christian König wrote: > > [...] > > > In general processes are currently not held accountable for memory they > > > reference through their file descriptors. DMA-buf is just

Re: [PATCH] procfs/dmabuf: Add /proc//task//dmabuf_fds

2021-01-28 Thread Michal Hocko
[Cc linux-api as this is a new user interface] On Tue 26-01-21 22:51:28, Kalesh Singh wrote: > In order to measure how much memory a process actually consumes, it is > necessary to include the DMA buffer sizes for that process in the memory > accounting. Since the handle to DMA buffers are raw FDs

Re: [PATCH 04/13] livepatch: move klp_find_object_module to module.c

2021-01-28 Thread Petr Mladek
On Tue 2021-01-26 15:25:16, Jessica Yu wrote: > +++ Christoph Hellwig [21/01/21 08:49 +0100]: > > To uncouple the livepatch code from module loader internals move a > > slightly refactored version of klp_find_object_module to module.c > > This allows to mark find_module static and removes one of th

Re: [PATCH 03/13] livepatch: refactor klp_init_object

2021-01-28 Thread Petr Mladek
On Thu 2021-01-21 08:49:49, Christoph Hellwig wrote: > Merge three calls to klp_is_module (including one hidden inside > klp_find_object_module) into a single one to simplify the code a bit. > > Signed-off-by: Christoph Hellwig > --- > kernel/livepatch/core.c | 18 +- > 1 file ch

Re: [PATCH] procfs/dmabuf: Add /proc//task//dmabuf_fds

2021-01-28 Thread Jann Horn
+jeffv from Android On Tue, Jan 26, 2021 at 11:51 PM Kalesh Singh wrote: > In order to measure how much memory a process actually consumes, it is > necessary to include the DMA buffer sizes for that process in the memory > accounting. Since the handle to DMA buffers are raw FDs, it is important >

  1   2   >