Re: [PULL] drm-misc-fixes

2021-01-27 Thread Thomas Zimmermann
Am 27.01.21 um 08:56 schrieb Thomas Zimmermann: Hi Dave and Daniel, here are the 2 fixes from this week's drm-misc-next. drm-misc-fixes Grr! I had this typo last week already. Best regards Thomas drm-misc-fixes-2021-01-27: * drm/vc4: Fix LBM size calculation; Fix high resolutions for

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

2021-01-27 Thread CK Hu
Hi, Hsin-Yi: On Wed, 2021-01-27 at 12:54 +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 need set fifo size as the threshold > > Signed-off-by: Yongq

Re: [PATCH v3 4/5] amba: Make the remove callback return void

2021-01-27 Thread Vladimir Zapolskiy
On 1/26/21 6:58 PM, Uwe Kleine-König wrote: All amba drivers return 0 in their remove callback. Together with the driver core ignoring the return value anyhow, it doesn't make sense to return a value here. Change the remove prototype to return void, which makes it explicit that returning an erro

[Bug 211425] New: [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than 20secs aborting

2021-01-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211425 Bug ID: 211425 Summary: [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than 20secs aborting Product: Drivers Version: 2.5 Kernel Version: 5.10.10 Hardware:

[PATCH v10 8/9] drm/mediatek: add DDP support for MT8183

2021-01-27 Thread Hsin-Yi Wang
From: Yongqiang Niu Add DDP 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/mtk-m

Re: [PATCH v2] fbtft: add tearing signal detect

2021-01-27 Thread carlis
On Tue, 26 Jan 2021 11:17:45 +0300 Dan Carpenter wrote: > On Mon, Jan 25, 2021 at 04:44:12PM +0800, Carlis wrote: > > From: "carlis.zhang_cp" > > I was really expecting that you would fix this and Signed-off-by as > well. > > regards, > dan carpenter > I have fix this in patch v3 > regards,

[PATCH] drm/i915/gt: use new tasklet API in execlist selftest

2021-01-27 Thread Emil Renner Berthing
This converts the execlist selftest to use the new tasklet API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- Hi Chris, I seem to have missed some tasklist manipulation in the execlist selftest. Feel free to squash this into my previ

[GIT PULL] ib-drm-gpio-pdx86-rtc-wdt-v5.12-1

2021-01-27 Thread Andy Shevchenko
Hi guys, This is first part of Intel MID outdated platforms removal. It's collected into immutable branch with a given tag, please pull to yours subsystems. (All changes are tagged by the respective maintainers) Thanks, With Best Regards, Andy Shevchenko The following changes since commit 5c8f

Re: [PATCH v2 11/14] dt-bindings: display: bridge: Add i.MX8qm/qxp LVDS display bridge binding

2021-01-27 Thread Liu Ying
On Mon, 2021-01-25 at 15:19 -0600, Rob Herring wrote: > On Thu, Jan 14, 2021 at 05:22:09PM +0800, Liu Ying wrote: > > This patch adds bindings for i.MX8qm/qxp LVDS display bridge(LDB). > > > > Signed-off-by: Liu Ying > > --- > > v1->v2: > > * Use graph schema. (Laurent) > > * Side note i.MX8qxp L

[PATCH] drm/gem: remove redundant NULL check

2021-01-27 Thread Jiapeng Zhong
Fix below warnings reported by coccicheck: ./drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c:80:2-8: WARNING: NULL check before some freeing functions is not needed. ./drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c:612:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Ab

Re: [PATCH v2] drm/i915/gt: use new tasklet API for execution list

2021-01-27 Thread Emil Renner Berthing
On Tue, 26 Jan 2021 at 16:13, Chris Wilson wrote: > Quoting Emil Renner Berthing (2021-01-26 15:01:55) > > This converts the driver to use the new tasklet API introduced in > > commit 12cc923f1ccc ("tasklet: Introduce new initialization API") > > > > Signed-off-by: Emil Renner Berthing > > > > --

[PATCH] drm/omap: dsi: fix unreachable code in dsi_vc_send_short()

2021-01-27 Thread menglong8 . dong
From: Menglong Dong The 'r' in dsi_vc_send_short() is of type 'unsigned int', so the 'r < 0' can't be true. Fix this by introducing a 'err' insteaded. Fixes: 1ed6253856cb ("drm/omap: dsi: switch dsi_vc_send_long/short to mipi_dsi_msg") Signed-off-by: Menglong Dong --- drivers/gpu/drm/omapdrm

[PATCH] drm/msm: remove redundant NULL check

2021-01-27 Thread Jiapeng Zhong
Fix below warnings reported by coccicheck: ./drivers/gpu/drm/msm/msm_gem.c:991:3-9: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/gpu/drm/msm/msm_gem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) d

[PATCH v4] fbtft: add tearing signal detect

2021-01-27 Thread Carlis
From: zhangxuezhi For st7789v ic,add tearing signal detect to avoid screen tearing Signed-off-by: zhangxuezhi --- v4:modify some code style and change te irq set function name --- drivers/staging/fbtft/fb_st7789v.c | 128 - drivers/staging/fbtft/fbtft.h

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

2021-01-27 Thread Hsin-Yi Wang
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 need set fifo size as the threshold Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_disp_rdma.

Re: [PATCH v4] fbtft: add tearing signal detect

2021-01-27 Thread carlis
On Tue, 26 Jan 2021 20:51:41 +0300 Dan Carpenter wrote: > On Tue, Jan 26, 2021 at 08:40:35PM +0800, Carlis wrote: > > @@ -82,6 +111,29 @@ enum st7789v_command { > > */ > > static int init_display(struct fbtft_par *par) > > { > > + int rc; > > + struct device *dev = par->info->device; > >

[PATCH v10 4/9] drm/mediatek: generalize mtk_dither_set() function

2021-01-27 Thread Hsin-Yi Wang
There may be data structure other than mtk_ddp_comp_dev that would call mtk_dither_set(), so use regs as parameter instead of device. Signed-off-by: Hsin-Yi Wang --- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 4 drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 25 + 2 f

[PATCH v10 0/9] drm/mediatek: add support for mediatek SOC MT8183

2021-01-27 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 v9 - change several function to rebase to mediatek-drm-next Change since v8 - fix some review comment in v8 - separate gamma module for mt8183 has no dither func

Re: [PATCH v3 4/5] amba: Make the remove callback return void

2021-01-27 Thread Guenter Roeck
On Tue, Jan 26, 2021 at 05:58:34PM +0100, Uwe Kleine-König wrote: > All amba drivers return 0 in their remove callback. Together with the > driver core ignoring the return value anyhow, it doesn't make sense to > return a value here. > > Change the remove prototype to return void, which makes it e

Re: [PATCH v3 1/3] dt-bindings:drm/bridge:anx7625:add HDCP support flag and swing reg

2021-01-27 Thread Xin Ji
Hi Rob, thanks for the comments, I'll fix the issue on the next serial. Thanks, Xin On Mon, Jan 25, 2021 at 09:41:43AM -0600, Rob Herring wrote: > On Mon, Jan 25, 2021 at 07:12:21PM +0800, Xin Ji wrote: > > Add 'bus-type' and 'data-lanes' define for port0, add HDCP support > > flag and DP tx lane0

Re: [PATCH v3 4/5] amba: Make the remove callback return void

2021-01-27 Thread Suzuki K Poulose
Hi On 1/26/21 4:58 PM, Uwe Kleine-König wrote: All amba drivers return 0 in their remove callback. Together with the driver core ignoring the return value anyhow, it doesn't make sense to return a value here. Change the remove prototype to return void, which makes it explicit that returning an

Re: [PATCH v3 1/3] dt-bindings:drm/bridge:anx7625:add HDCP support flag and swing reg

2021-01-27 Thread Xin Ji
On Mon, Jan 25, 2021 at 08:51:35AM -0600, Rob Herring wrote: > On Mon, 25 Jan 2021 19:12:21 +0800, Xin Ji wrote: > > Add 'bus-type' and 'data-lanes' define for port0, add HDCP support > > flag and DP tx lane0 and lane1 swing register array define. > > > > Signed-off-by: Xin Ji > > --- > > .../bi

Re: [PATCH] fbtft: add tearing signal detect

2021-01-27 Thread carlis
On Tue, 26 Jan 2021 10:54:41 +0300 Dan Carpenter wrote: > On Sun, Jan 24, 2021 at 11:35:37PM +0800, Carlis wrote: > > +static irqreturn_t spi_panel_te_handler(int irq, void *data) > > +{ > > + complete(&spi_panel_te); > > + return IRQ_HANDLED; > > +} > > + > > +static void enable_spi_panel_te

Re: [PATCH v1] drm/panel: simple: add SGD GKTW70SDAD1SD

2021-01-27 Thread Oliver Graute
On 26/01/21, Fabio Estevam wrote: > Hi Oliver, > > On Mon, Jan 25, 2021 at 7:17 PM Oliver Graute wrote: > > > I would prefer mine, because I got a wrong colored penguin on bootup > > with yours :-) The wrong colored Tux is caused by the bus_format: .bus_format = MEDIA_BUS_FMT_RGB888_1X24, So

[PATCH v10 5/9] drm/mediatek: separate gamma module

2021-01-27 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 --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_disp_drv.h | 10 ++ drivers/gpu/drm/mediat

Re: [PATCH v5] fbtft: add tearing signal detect

2021-01-27 Thread carlis
On Wed, 27 Jan 2021 08:45:23 +0300 Dan Carpenter wrote: > On Wed, Jan 27, 2021 at 09:32:20AM +0800, Carlis wrote: > > @@ -82,6 +111,29 @@ enum st7789v_command { > > */ > > static int init_display(struct fbtft_par *par) > > { > > + int rc; > > + struct device *dev = par->info->device; > >

[PATCH v10 9/9] drm/mediatek: add support for mediatek SOC MT8183

2021-01-27 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 --- drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 1 + drivers/gpu/drm/mediatek/mtk_disp_o

[PATCH v6] fbtft: add tearing signal detect

2021-01-27 Thread Carlis
From: zhangxuezhi For st7789v ic,add tearing signal detect to avoid screen tearing Signed-off-by: zhangxuezhi --- v6: add te gpio request fail deal logic --- drivers/staging/fbtft/fb_st7789v.c | 133 - drivers/staging/fbtft/fbtft.h | 1 + 2 files chan

[PATCH v10 2/9] arm64: dts: mt8183: refine gamma compatible name

2021-01-27 Thread Hsin-Yi Wang
From: Yongqiang Niu mt8183 gamma is different with mt8173 remove mt8173 compatible name for mt8183 gamma Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/

[PATCH v10 6/9] drm/mediatek: add has_dither private data for gamma

2021-01-27 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 --- drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) di

[PATCH v2] drm/omap: dsi: fix unreachable code in dsi_vc_send_short()

2021-01-27 Thread menglong8 . dong
From: Menglong Dong The 'r' in dsi_vc_send_short() is of type 'unsigned int', so the 'r < 0' can't be true. Fix this by introducing a 'err' of type 'int' insteaded. Fixes: 1ed6253856cb ("drm/omap: dsi: switch dsi_vc_send_long/short to mipi_dsi_msg") Signed-off-by: Menglong Dong Reviewed-by:

Re: [PATCH v2 08/14] dt-bindings: display: bridge: Add i.MX8qxp pixel link to DPI binding

2021-01-27 Thread Liu Ying
On Mon, 2021-01-25 at 15:13 -0600, Rob Herring wrote: > On Thu, Jan 14, 2021 at 05:22:06PM +0800, Liu Ying wrote: > > This patch adds bindings for i.MX8qxp pixel link to DPI(PXL2DPI). > > > > Signed-off-by: Liu Ying > > --- > > v1->v2: > > * Use graph schema. (Laurent) > > > > .../display/bridg

[PATCH v10 1/9] arm64: dts: mt8183: rename rdma fifo size

2021-01-27 Thread Hsin-Yi Wang
From: Yongqiang Niu property name must include only lowercase and '-' Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: Chun-Kuang Hu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/m

[PATCH v5] fbtft: add tearing signal detect

2021-01-27 Thread Carlis
From: zhangxuezhi For st7789v ic,add tearing signal detect to avoid screen tearing Signed-off-by: zhangxuezhi --- v5:fix log print --- drivers/staging/fbtft/fb_st7789v.c | 128 - drivers/staging/fbtft/fbtft.h | 1 + 2 files changed, 128 insertions(+),

[PATCH v2] drm/i915/gt: use new tasklet API for execution list

2021-01-27 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- v2: Rebased on drm-intel-next Tested on my Dell XPS 13 9300. --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 4 +-- .

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

2021-01-27 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 | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --

Re: [PATCH v1 1/2] video: fbdev: acornfb: remove free_unused_pages()

2021-01-27 Thread Geert Uytterhoeven
On Tue, Jan 26, 2021 at 11:54 PM David Hildenbrand wrote: > This function is never used and it is one of the last remaining user of > __free_reserved_page(). Let's just drop it. > > Cc: Andrew Morton > Cc: Thomas Gleixner > Cc: "Peter Zijlstra (Intel)" > Cc: Mike Rapoport > Cc: Oscar Salvador

Re: [PATCH v5] fbtft: add tearing signal detect

2021-01-27 Thread Geert Uytterhoeven
Hi Dan, Carlis, On Wed, Jan 27, 2021 at 9:32 AM Dan Carpenter wrote: > On Wed, Jan 27, 2021 at 02:19:27PM +0800, carlis wrote: > > hi,i will fix it like below: > > par->gpio.te = devm_gpiod_get_index_optional(dev, "te", 0, > > GPIOD_IN); if (IS_ERR(par->gpio.te)) { > > rc = PT

[Bug 211349] IB test failed on sdma0 ! AMDGPU driver for Raven APU (ryzen 2400G) hangs!

2021-01-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211349 --- Comment #12 from Michel Dänzer (mic...@daenzer.net) --- I'd recommend running a 64-bit kernel, even if all user-space is 32-bit. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assi

RE: [PATCH v2 3/4] drm/i915/hdcp: read RxInfo once when reading Send_Pairing_Info

2021-01-27 Thread Gupta, Anshuman
Please also send this patch to dri-devel@lists.freedesktop.org as well because this is a drm change. > -Original Message- > From: Gupta, Anshuman > Sent: Wednesday, January 27, 2021 12:55 PM > To: Li, Juston ; intel-...@lists.freedesktop.org > Cc: seanp...@chromium.org; C, Ramalingam > S

Re: [PATCH v6] fbtft: add tearing signal detect

2021-01-27 Thread Dan Carpenter
On Wed, Jan 27, 2021 at 03:28:22PM +0800, Carlis wrote: > static int init_display(struct fbtft_par *par) > { > + int rc; > + struct device *dev = par->info->device; > + > + par->gpio.te = devm_gpiod_get_index_optional(dev, "te", 0, GPIOD_IN); > + if (IS_ERR(par->gpio.te)) { > +

Re: [PATCH v6] fbtft: add tearing signal detect

2021-01-27 Thread Geert Uytterhoeven
Hi Carlis, On Wed, Jan 27, 2021 at 9:52 AM Carlis wrote: > From: zhangxuezhi > > For st7789v ic,add tearing signal detect to avoid screen tearing > > Signed-off-by: zhangxuezhi Thanks for your patch! > --- a/drivers/staging/fbtft/fb_st7789v.c > +++ b/drivers/staging/fbtft/fb_st7789v.c > @@ -

[Bug 211425] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than 20secs aborting

2021-01-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211425 Andreas (icedragon...@web.de) changed: What|Removed |Added Severity|high|normal -- You may reply

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

2021-01-27 Thread Christian König
Am 27.01.21 um 10:05 schrieb 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. Sin

[Bug 211349] IB test failed on sdma0 ! AMDGPU driver for Raven APU (ryzen 2400G) hangs!

2021-01-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211349 --- Comment #13 from bola...@163.com --- (In reply to Michel Dänzer from comment #12) > I'd recommend running a 64-bit kernel, even if all user-space is 32-bit. I just have finished LFS-10.0 in several weeks,it's a very hard work. If enable 64bit

[Bug 211349] IB test failed on sdma0 ! AMDGPU driver for Raven APU (ryzen 2400G) hangs!

2021-01-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211349 --- Comment #14 from Michel Dänzer (mic...@daenzer.net) --- > If enable 64bit kernel support,I need to recompile everything on LFS10.0 in > next weeks. You shouldn't. 32-bit user-space works fine with a 64-bit kernel. -- You may reply to this e

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

2021-01-27 Thread Christian König
Am 27.01.21 um 11:57 schrieb Michal Hocko: On Wed 27-01-21 11:47:29, 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 t

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

2021-01-27 Thread Christian König
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 one special case. True In other words you can currently do someth

[PATCH 00/12] drm/ast: Move cursor vmap calls out of commit tail

2021-01-27 Thread Thomas Zimmermann
Ast has vmap calls in its cursor's atomic_update function. This is not supported as vmap might aquire the dma reservation lock. While at it, cleanup the whole cursor code: the patchset removes all possible runtime errors from the atomic_update function and reduces the overhead from vmap calls on th

[PATCH 09/12] drm/ast: Introduce dedicated cursor-plane state

2021-01-27 Thread Thomas Zimmermann
The cursor-plane state struct ast_cursor_plane_state will store the involved cursor source BO's mapping into kernel address space. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_mode.c | 40 -- 1 file changed, 38 insertions(+), 2 deletions(-) diff -

[PATCH 11/12] drm/ast: Move all of the cursor-update functionality to atomic_update

2021-01-27 Thread Thomas Zimmermann
We used to update the cursor image in prepare_fb. Move all this code to atomic_update (were it belongs). Prepare_fb only prepares the source BO. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_mode.c | 56 +- 1 file changed, 28 insertions(+), 28 delet

[PATCH 04/12] drm/ast: Allocate HW cursor BOs during cursor-plane initialization

2021-01-27 Thread Thomas Zimmermann
The BOs are eventually released by the cursor plane's destroy callback. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_cursor.c | 58 -- drivers/gpu/drm/ast/ast_drv.h| 1 - drivers/gpu/drm/ast/ast_mode.c | 62 3 fi

[PATCH 03/12] drm/ast: Initialize planes in helper functions

2021-01-27 Thread Thomas Zimmermann
This change will help with inlining cursor functions into modesetting code. The primary plane's field used to be cleared with memset(). This has been dropped as the memory is always allocated with kzalloc(). Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_mode.c | 66 +++

[PATCH 02/12] drm/ast: Fix invalid usage of AST_MAX_HWC_WIDTH in cursor atomic_check

2021-01-27 Thread Thomas Zimmermann
Use AST_MAX_HWC_HEIGHT for setting offset_y in the cursor plane's atomic_check. The code used AST_MAX_HWC_WIDTH instead. This worked because both constants has the same value. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[PATCH 08/12] drm/ast: Map HW cursor BOs permanently

2021-01-27 Thread Thomas Zimmermann
The BOs of the hardware cursor are now mapped permanently while the cursor plane is being used. This reduces the CPU overhead of the cursor plane's atomic_update function. The change also resolves a problem with the vmap call in the commit tail. The vmap implementation could acquire the DMA reserv

[PATCH 05/12] drm/ast: Inline ast cursor-update functions into modesetting code

2021-01-27 Thread Thomas Zimmermann
The logic for cursor updates is now located in the cursor plane's modesetting code. A number of helper functions remain to modify the rsp registers and image. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/Makefile | 3 +- drivers/gpu/drm/ast/ast_cursor.c | 237 --

[PATCH 01/12] drm/ast: Add constants for VGACRCB register bits

2021-01-27 Thread Thomas Zimmermann
Set the bits in VGACRCB with constants. Alo move the rsp code into a helper function. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_cursor.c | 21 +++-- drivers/gpu/drm/ast/ast_drv.h| 3 +++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/drive

Re: [PATCH v3 4/5] amba: Make the remove callback return void

2021-01-27 Thread Greg Kroah-Hartman
On Tue, Jan 26, 2021 at 05:58:34PM +0100, Uwe Kleine-König wrote: > All amba drivers return 0 in their remove callback. Together with the > driver core ignoring the return value anyhow, it doesn't make sense to > return a value here. > > Change the remove prototype to return void, which makes it e

[PATCH 06/12] drm/ast: Add cursor-plane data structure

2021-01-27 Thread Thomas Zimmermann
Cursor state is currently located throughout struct ast_private. Having struct ast_cursor_plane as dedicated data structure for cursors helps to organize the modesetting code. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_drv.h | 23 ++- drivers/gpu/drm/ast/as

[PATCH 10/12] drm/ast: Fix cursor BO pinning and mapping

2021-01-27 Thread Thomas Zimmermann
GEM vmap operations are not allowed in commit tail. Therefore, we cannot map the cursor source BO in atomic_update. Instead do this in prepare_fb. There was no pin operation for the BO, so add this as well. Hence the cursor source BO is now mapped while it's being displayed. The change will allow

[PATCH 12/12] drm/ast: Store each HW cursor offset after pinning the rsp BO

2021-01-27 Thread Thomas Zimmermann
As HW cursor BOs never move, we can store the offset in VRAM in the cursor-plane's HWC state. This removes the last possible source of runtime errors from atomic_update. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_drv.h | 1 + drivers/gpu/drm/ast/ast_mode.c | 19 +++---

[PATCH 07/12] drm/ast: Store cursor BOs in cursor plane

2021-01-27 Thread Thomas Zimmermann
The cursor uses two BOs in video RAM to implement double buffering. Store both in struct ast_cursor_plane. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_drv.h | 11 ++- drivers/gpu/drm/ast/ast_mode.c | 27 +++ 2 files changed, 21 insertions(+), 17

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

2021-01-27 Thread Greg KH
On Tue, Jan 26, 2021 at 12:42:36PM -0800, Hridya Valsaraju wrote: > This patch allows statistics to be enabled for each DMA-BUF in > sysfs by enabling the config CONFIG_DMABUF_SYSFS_STATS. > > The following stats will be exposed by the interface: > > /sys/kernel/dmabuf/buffers//exporter_name > /s

Re: [PATCH v4 04/13] drm/shmem-helper: Provide a vmap function for short-term mappings

2021-01-27 Thread Thomas Zimmermann
Hi Am 11.01.21 um 17:50 schrieb Daniel Vetter: On Fri, Jan 08, 2021 at 10:43:31AM +0100, Thomas Zimmermann wrote: Implementations of the vmap/vunmap GEM callbacks may perform pinning of the BO and may acquire the associated reservation object's lock. Callers that only require a mapping of the c

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

2021-01-27 Thread Maarten Lankhorst
Op 27-01-2021 om 01:22 schreef Felix Kuehling: > Am 2021-01-21 um 2:40 p.m. schrieb Daniel Vetter: >> Recently there was a fairly long thread about recoreable hardware page >> faults, how they can deadlock, and what to do about that. >> >> While the discussion is still fresh I figured good time to

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

2021-01-27 Thread 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 Daniel Vetter: Recently there was a fairly long thread about recoreable hardware page faults, how they can deadlock, and what to do about that. While the discussion

Re: [PATCH v1 2/2] mm: simplify free_highmem_page() and free_reserved_page()

2021-01-27 Thread David Hildenbrand
On 27.01.21 12:51, Oscar Salvador wrote: On Tue, Jan 26, 2021 at 07:21:13PM +0100, David Hildenbrand wrote: adjust_managed_page_count() as called by free_reserved_page() properly handles pages in a highmem zone, so we can reuse it for free_highmem_page(). We can now get rid of totalhigh_pages_i

Re: [PATCH v8] fbtft: add tearing signal detect

2021-01-27 Thread Greg KH
On Wed, Jan 27, 2021 at 06:26:46PM +0800, Carlis wrote: > From: zhangxuezhi > > For st7789v ic,add tearing signal detect to avoid screen tearing > > Signed-off-by: zhangxuezhi > --- > v8: delete a log line > --- > drivers/staging/fbtft/fb_st7789v.c | 132 >

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

2021-01-27 Thread Hridya Valsaraju
This patch allows statistics to be enabled for each DMA-BUF in sysfs by enabling the config CONFIG_DMABUF_SYSFS_STATS. The following stats will be exposed by the interface: /sys/kernel/dmabuf/buffers//exporter_name /sys/kernel/dmabuf/buffers//size /sys/kernel/dmabuf/buffers//attachments//device /

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

2021-01-27 Thread Kalesh Singh
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 to be able to identify which processes have FD references to a DMA buffer. Curren

[PATCH] drm/komeda: Fix bit check to import to value of proper type

2021-01-27 Thread carsten . haitzler
From: Carsten Haitzler Another issue found by KASAN. The bit finding is buried inside the dp_for_each_set_bit() macro (that passes on to for_each_set_bit() that calls the bit stuff. These bit functions want an unsigned long pointer as input and just dumbly casting leads to out-of-bounds accesses.

Re: [PATCH] drm/komeda: Fix bit check to import to value of proper type

2021-01-27 Thread Carsten Haitzler
On 1/20/21 3:44 PM, Steven Price wrote: Sent a new patch to list with updates as discussed. On 18/01/2021 14:20, carsten.haitz...@foss.arm.com wrote: From: Carsten Haitzler Another issue found by KASAN. The bit finding is bueried inside the NIT: s/bueried/buried/ dp_for_each_set_bit() ma

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

2021-01-27 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Convert i915 to struct drm_device.dev. No functional changes. v5: * remove assignment in later patch (Chris) v3: * rebased v2: * move gt/ and gvt/ changes into separate patches Signed-off-by: Thomas Zimmermann Cc: Jani Nikula C

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

2021-01-27 Thread Thomas Zimmermann
For v5, I moved the non-assignment of pdev in i915 into a separate patch as suggested by Chris. Hopefully, this will help with merging the patches into the rsp i915 trees. The core and vmwgfx changes have been merged into drm-tip already. The pdev field in struct drm_device points to a PCI device

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

2021-01-27 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 Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- drivers/gpu/drm/i915/gt/intel_ggtt.c | 10

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

2021-01-27 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 Acked-by: Sam Ravnborg --- include/drm/drm_device.h | 6 +++--- 1 file changed, 3 insertion

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

2021-01-27 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 Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/gvt/cfg_space.c | 5 +++-- drivers/gpu/drm/i915/gvt/firmware.c | 10 +-

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

2021-01-27 Thread Thomas Zimmermann
Using struct drm_device.pdev is deprecated. Don't assign it. Users should upcast from struct drm_device.dev. Signed-off-by: Thomas Zimmermann Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu

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

2021-01-27 Thread Chris Wilson
Quoting Thomas Zimmermann (2021-01-27 12:41:31) > diff --git a/drivers/gpu/drm/i915/selftests/mock_gem_device.c > b/drivers/gpu/drm/i915/selftests/mock_gem_device.c > index 0188f877cab2..2a07a008de2e 100644 > --- a/drivers/gpu/drm/i915/selftests/mock_gem_device.c > +++ b/drivers/gpu/drm/i915/selft

Re: [Intel-gfx] [PATCH v5 4/5] drm/i915: Don't assign to struct drm_device.pdev

2021-01-27 Thread Chris Wilson
Quoting Thomas Zimmermann (2021-01-27 12:41:34) > Using struct drm_device.pdev is deprecated. Don't assign it. Users > should upcast from struct drm_device.dev. > > Signed-off-by: Thomas Zimmermann > Cc: Jani Nikula > Cc: Joonas Lahtinen > Cc: Rodrigo Vivi > --- > drivers/gpu/drm/i915/i915_dr

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

2021-01-27 Thread Greg KH
On Wed, Jan 27, 2021 at 08:57:37PM +0800, Carlis wrote: > From: zhangxuezhi > > For st7789v ic,add tearing signal detect to avoid screen tearing I need a much better changelog description here please. > > Signed-off-by: zhangxuezhi > --- > v9: change pr_* to dev_* > --- What changed in all o

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

2021-01-27 Thread Thomas Zimmermann
Hi Am 27.01.21 um 13:52 schrieb Chris Wilson: Quoting Thomas Zimmermann (2021-01-27 12:41:31) diff --git a/drivers/gpu/drm/i915/selftests/mock_gem_device.c b/drivers/gpu/drm/i915/selftests/mock_gem_device.c index 0188f877cab2..2a07a008de2e 100644 --- a/drivers/gpu/drm/i915/selftests/mock_gem_d

Re: [PATCH 10/12] drm/ast: Fix cursor BO pinning and mapping

2021-01-27 Thread Thomas Zimmermann
Am 27.01.21 um 13:03 schrieb Thomas Zimmermann: GEM vmap operations are not allowed in commit tail. Therefore, we cannot map the cursor source BO in atomic_update. Instead do this in prepare_fb. There was no pin operation for the BO, so add this as well. Reviewing drm_gem_vram_vmap() I saw th

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

2021-01-27 Thread Geert Uytterhoeven
Hi Carlis, On Wed, Jan 27, 2021 at 2:03 PM Carlis wrote: > From: zhangxuezhi > > For st7789v ic,add tearing signal detect to avoid screen tearing > > Signed-off-by: zhangxuezhi > --- > v9: change pr_* to dev_* Thanks for the update! > --- a/drivers/staging/fbtft/fb_st7789v.c > +++ b/drivers/s

Re: [PATCH 13/13] module: remove EXPORY_UNUSED_SYMBOL*

2021-01-27 Thread Jessica Yu
+++ Christoph Hellwig [21/01/21 08:49 +0100]: EXPORT_UNUSED_SYMBOL* is not actually used anywhere. Remove the unused functionality as we generally just remove unused code anyway. Signed-off-by: Christoph Hellwig --- arch/arm/configs/bcm2835_defconfig | 1 - arch/arm/configs/mxs_defcon

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

2021-01-27 Thread Greg KH
On Wed, Jan 27, 2021 at 09:42:52PM +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 Please slow down and wait at least a day between patc

[PATCH] drm/vboxvideo: Vmap/vunmap cursor BO in prepare_fb and cleanup_fb

2021-01-27 Thread Thomas Zimmermann
Functions in the atomic commit tail are not allowed to acquire the dmabuf's reservation lock. So we cannot legally call the GEM object's vmap functionality in atomic_update. Instead vmap the cursor BO in prepare_fb and vunmap it in cleanup_fb. The cursor plane state stores the mapping's address. T

[Bug 211349] IB test failed on sdma0 ! AMDGPU driver for Raven APU (ryzen 2400G) hangs!

2021-01-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211349 --- Comment #15 from bola...@163.com --- (In reply to Michel Dänzer from comment #14) > > If enable 64bit kernel support,I need to recompile everything on LFS10.0 in > > next weeks. > > You shouldn't. 32-bit user-space works fine with a 64-bit ke

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

2021-01-27 Thread Greg KH
On Wed, Jan 27, 2021 at 10:02:29PM +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 Again, slow down, and wait for comments before respon

[PULL] drm-intel-next

2021-01-27 Thread Rodrigo Vivi
Hi Dave and Daniel, Hopefully this is the last pull request towards 5.12. Please notice this contains a drm/framebuffer change needed for supporting clear color support for TGL Render Decompression. Here goes drm-intel-next-2021-01-27: - HDCP 2.2 and HDCP 1.4 Gen12 DP MST support (Anshuman) - F

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

2021-01-27 Thread Greg KH
On Wed, Jan 27, 2021 at 10:08:09PM +0800, carlis wrote: > On Wed, 27 Jan 2021 14:51:55 +0100 > Greg KH wrote: > > > On Wed, Jan 27, 2021 at 09:42:52PM +0800, Carlis wrote: > > > From: zhangxuezhi > > > > > > For st7789v ic,when we need continuous full screen refresh, it is > > > best to wait fo

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

2021-01-27 Thread Geert Uytterhoeven
Hi Carlis, On Wed, Jan 27, 2021 at 3:07 PM 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 > --- > v11: remove devm_gpio_put and change a dev_er

Re: [PATCH v2] drm/omap: dsi: fix unreachable code in dsi_vc_send_short()

2021-01-27 Thread Tomi Valkeinen
On 27/01/2021 03:51, menglong8.d...@gmail.com wrote: > From: Menglong Dong > > The 'r' in dsi_vc_send_short() is of type 'unsigned int', so the > 'r < 0' can't be true. > > Fix this by introducing a 'err' of type 'int' insteaded. > > Fixes: 1ed6253856cb ("drm/omap: dsi: switch dsi_vc_send_long/

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

2021-01-27 Thread Greg KH
On Wed, Jan 27, 2021 at 10:17:08PM +0800, carlis wrote: > On Wed, 27 Jan 2021 15:13:05 +0100 > Greg KH wrote: > > > On Wed, Jan 27, 2021 at 10:08:09PM +0800, carlis wrote: > > > On Wed, 27 Jan 2021 14:51:55 +0100 > > > Greg KH wrote: > > > > > > > On Wed, Jan 27, 2021 at 09:42:52PM +0800, Car

Re: [PATCH v4 01/14] drm/ttm: Remap all page faults to per process dummy page.

2021-01-27 Thread Andrey Grodzovsky
Hey Daniel, just a ping. Andrey On 1/25/21 10:28 AM, Andrey Grodzovsky wrote: On 1/19/21 8:56 AM, Daniel Vetter wrote: On Mon, Jan 18, 2021 at 04:01:10PM -0500, Andrey Grodzovsky wrote: On device removal reroute all CPU mappings to dummy page. v3: Remove loop to find DRM file and instead ac

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

2021-01-27 Thread Dan Carpenter
On Wed, Jan 27, 2021 at 03:25:20PM +0100, Greg KH wrote: > On Wed, Jan 27, 2021 at 10:17:08PM +0800, carlis wrote: > > On Wed, 27 Jan 2021 15:13:05 +0100 > > Greg KH wrote: > > > > > On Wed, Jan 27, 2021 at 10:08:09PM +0800, carlis wrote: > > > > On Wed, 27 Jan 2021 14:51:55 +0100 > > > > Greg KH

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

2021-01-27 Thread Greg KH
On Wed, Jan 27, 2021 at 05:49:46PM +0300, Dan Carpenter wrote: > On Wed, Jan 27, 2021 at 03:25:20PM +0100, Greg KH wrote: > > On Wed, Jan 27, 2021 at 10:17:08PM +0800, carlis wrote: > > > On Wed, 27 Jan 2021 15:13:05 +0100 > > > Greg KH wrote: > > > > > > > On Wed, Jan 27, 2021 at 10:08:09PM +080

[Bug 211349] IB test failed on sdma0 ! AMDGPU driver for Raven APU (ryzen 2400G) hangs!

2021-01-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211349 --- Comment #16 from Alex Deucher (alexdeuc...@gmail.com) --- (In reply to bolando from comment #15) > (In reply to Michel Dänzer from comment #14) > > > If enable 64bit kernel support,I need to recompile everything on LFS10.0 > in > > > next week

[Bug 211349] IB test failed on sdma0 ! AMDGPU driver for Raven APU (ryzen 2400G) hangs!

2021-01-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211349 --- Comment #17 from bola...@163.com --- (In reply to Alex Deucher from comment #16) > (In reply to bolando from comment #15) > > (In reply to Michel Dänzer from comment #14) > > > > If enable 64bit kernel support,I need to recompile everything on

Re: [PATCH] drm/ttm: stop using GFP_TRANSHUGE_LIGHT

2021-01-27 Thread Michel Dänzer
On 2021-01-13 2:13 p.m., Christian König wrote: The only flag we really need is __GFP_NOMEMALLOC, highmem depends on dma32 and moveable/compound should never be set in the first place. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_pool.c | 11 ++- 1 file changed, 6 inser

  1   2   >