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

2021-01-28 Thread CK Hu
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 Wang wrote: > > > From: Yongqiang Niu > > > > > > for 5 or 6 bpc panel, we need enable dither function > > > to improve th

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

2021-01-28 Thread Carlis
From: zhangxuezhi For st7789v ic,add tearing signal detect to avoid screen tearing Signed-off-by: zhangxuezhi --- v9: change pr_* to dev_* --- drivers/staging/fbtft/fb_st7789v.c | 132 - drivers/staging/fbtft/fbtft.h | 1 + 2 files changed, 132 insert

[PATCH v5 2/2] arm64: dts: mt8192: Add node for the Mali GPU

2021-01-28 Thread Nick Fan
Add a basic GPU node for mt8192. Signed-off-by: Nick Fan --- This patch depends on Mediatek power and regulator support. Listed as following. [1]https://lore.kernel.org/patchwork/patch/1336293/ [2]https://patchwork.kernel.org/project/linux-mediatek/list/?series=374013 [3]https://lore.kernel.org

[PATCH v3 12/14] drm/bridge: imx: Add LDB support for i.MX8qxp

2021-01-28 Thread Liu Ying
This patch adds a drm bridge driver for i.MX8qxp LVDS display bridge(LDB) which is officially named as pixel mapper. The LDB has two channels. Each of them supports up to 24bpp parallel input color format and can map the input to VESA or JEIDA standards. The two channels cannot be used simultaneo

[PATCH v3 13/14] drm/bridge: imx: Add LDB support for i.MX8qm

2021-01-28 Thread Liu Ying
This patch adds a drm bridge driver for i.MX8qm LVDS display bridge(LDB) which is officially named as pixel mapper. The LDB has two channels. Each of them supports up to 30bpp parallel input color format and can map the input to VESA or JEIDA standards. The two channels can be used simultaneously

[PATCH 0/2] video: omap*: Remove in_interrupt() usage.

2021-01-28 Thread Sebastian Andrzej Siewior
Folks, in the discussion about preempt count consistency across kernel configurations: https://lore.kernel.org/r/20200914204209.256266...@linutronix.de/ it was concluded that the usage of in_interrupt() and related context checks should be removed from non-core code. In the long run, usage of

[PATCH v11 7/9] 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 | 44 - 1 file changed, 43 insertions(+), 1 deletion(-) diff --

[PATCH v3 01/14] phy: Add LVDS configuration options

2021-01-28 Thread Liu Ying
This patch allows LVDS PHYs to be configured through the generic functions and through a custom structure added to the generic union. The parameters added here are based on common LVDS PHY implementation practices. The set of parameters should cover all potential users. Cc: Kishon Vijay Abraham

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

2021-01-28 Thread Lukasz Luba
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-world performance. The upthreshold value has been set to ramp GPU frequency to max freq faster

Re: [PATCH v5 00/21] Host1x/TegraDRM UAPI

2021-01-28 Thread Dmitry Osipenko
26.01.2021 05:45, Mikko Perttunen пишет: >> 5. The hardware state of sync points should be reset when sync point is >> requested, not when host1x driver is initialized. > > This may be doable, but I don't think it is critical for this UAPI, so > let's consider it after this series. > > The usersp

[PATCH v3 03/14] media: docs: Add some RGB bus formats for i.MX8qm/qxp pixel combiner

2021-01-28 Thread Liu Ying
This patch adds documentations for RGB666_1X30_CPADLO, RGB888_1X30_CPADLO, RGB666_1X36_CPADLO and RGB888_1X36_CPADLO bus formats used by i.MX8qm/qxp pixel combiner. The RGB pixels with padding low per component are transmitted on a 30-bit input bus(10-bit per component) from a display controller o

[PATCH v11] 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 --- v11: remove devm_gpio_put and change a dev_err to dev_info v10: additional notes v9: change pr_* to dev_* v8: delete a

Re: mmotm 2021-01-25-21-18 uploaded (drm/i915/Kconfig.debug)

2021-01-28 Thread Randy Dunlap
On 1/25/21 9:19 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2021-01-25-21-18 has been uploaded to > >https://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > https://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my

[PATCH 1/2] video: omap: Remove in_interrupt() usage.

2021-01-28 Thread Sebastian Andrzej Siewior
From: "Ahmed S. Darwish" alloc_req() uses in_interrupt() to detect if it is safe to use down(). The usage of in_interrupt() in drivers is phased out and Linus clearly requested that code which changes behaviour depending on context should either be separated or the context be conveyed in an argu

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

2021-01-28 Thread carlis
On Wed, 27 Jan 2021 10:00:13 +0100 Geert Uytterhoeven wrote: > 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! > > > --

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

2021-01-28 Thread Yongqiang Niu
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 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-

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

2021-01-28 Thread Lukasz Luba
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-world performance. The upthreshold value has been set to ramp GPU frequency to max freq faster (compared to panfrost) to compensate for th

[PATCH v3 06/14] dt-bindings: display: bridge: Add i.MX8qm/qxp display pixel link binding

2021-01-28 Thread Liu Ying
This patch adds bindings for i.MX8qm/qxp display pixel link. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v2->v3: * Add Rob's R-b tag. v1->v2: * Use graph schema. (Laurent) * Require all four pixel link output ports. (Laurent) * Mention pixel link is accessed via SCU firmware. (Rob) .

[PATCH v11 6/9] 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 | 12 +--- 1 file changed, 9 insertions(+)

Re: [PATCH v5 00/21] sync_file API is not very suitable for DRM

2021-01-28 Thread Dmitry Osipenko
26.01.2021 05:45, Mikko Perttunen пишет: >> 4. Sync file shouldn't be needed for the part of DRM API which doesn't >> interact with external non-DRM devices.  We should use DRM syncobj for >> everything related to DRM, it's a superior API over sync file, it's >> suitable for DRM scheduler. > > Con

[PATCH v3 00/14] Add some DRM bridge drivers support for i.MX8qm/qxp SoCs

2021-01-28 Thread Liu Ying
Hi, This is the v3 series to add some DRM bridge drivers support for i.MX8qm/qxp SoCs. The bridges may chain one by one to form display pipes to support LVDS displays. The relevant display controller is DPU embedded in i.MX8qm/qxp SoCs. The DPU KMS driver can be found at: https://www.spinics.ne

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

2021-01-28 Thread Kari Argillander
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 st7789v_command { > > > #define MADCTL_MX BIT(6) /* bitmask for column address

[PATCH v11 8/9] 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

[PATCH v4 1/3] dt-bindings:drm/bridge:anx7625:add vendor define flags

2021-01-28 Thread Xin Ji
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 --- .../bindings/display/bridge/analogix,anx7625.yaml | 54 +- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/

[PATCH] 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 v4 2/3] drm/bridge: anx7625: fix not correct return value

2021-01-28 Thread Xin Ji
At some time, the original code may return non zero value, force return 0 if operation finished Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm

[PATCH v3 05/14] drm/bridge: imx: Add i.MX8qm/qxp pixel combiner support

2021-01-28 Thread Liu Ying
This patch adds a drm bridge driver for i.MX8qm/qxp pixel combiner. The pixel combiner takes two output streams from a single display controller and manipulates the two streams to support a number of modes(bypass, pixel combine, YUV444 to YUV422, split_RGB) configured as either one screen, two scre

Re: linux-next: Tree for Jan 27 (drm/i915)

2021-01-28 Thread Randy Dunlap
On 1/27/21 11:30 AM, Randy Dunlap wrote: > On 1/27/21 11:08 AM, Randy Dunlap wrote: >> On 1/27/21 6:44 AM, Stephen Rothwell wrote: >>> Hi all, >>> >>> Note: the patch file has failed to upload :-( >>> >>> Changes since 20210125: >>> >> >> on x86_64: >> >> ../drivers/gpu/drm/i915/i915_gem.c: In func

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

2021-01-28 Thread Liu Ying
This patch adds bindings for i.MX8qm/qxp LVDS display bridge(LDB). Signed-off-by: Liu Ying --- v2->v3: * Drop 'fsl,syscon' property. (Rob) * Mention the CSR module controls LDB. v1->v2: * Use graph schema. (Laurent) * Side note i.MX8qxp LDB official name 'pixel mapper'. (Laurent) .../bindings/

[PATCH v11 4/9] 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 --- driv

[PATCH v11 0/9] 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 v10 - fix review comments in v9 Change since v9 - change several function to rebase to mediatek-drm-next Change since v8 - fix some review comment in v8 - separ

[PATCH v10] 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 --- v10: additional notes v9: change pr_* to dev_* v8: delete a log line v7: return error value when request fail v6: add

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

2021-01-28 Thread Liu Ying
This patch adds bindings for i.MX8qxp pixel link to DPI(PXL2DPI). Signed-off-by: Liu Ying --- v2->v3: * Drop 'fsl,syscon' property. (Rob) * Mention the CSR module controls PXL2DPI. v1->v2: * Use graph schema. (Laurent) .../display/bridge/fsl,imx8qxp-pxl2dpi.yaml| 102 ++

[PATCH V4] drm/stm: Fix bus_flags handling

2021-01-28 Thread Marek Vasut
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 display might require, these flags are never set, and thus the LTDC GCR_DEPOL and GCR_PCPOL bits are never set

[PATCH v3 02/14] media: uapi: Add some RGB bus formats for i.MX8qm/qxp pixel combiner

2021-01-28 Thread Liu Ying
This patch adds RGB666_1X30_CPADLO, RGB888_1X30_CPADLO, RGB666_1X36_CPADLO and RGB888_1X36_CPADLO bus formats used by i.MX8qm/qxp pixel combiner. The RGB pixels with padding low per component are transmitted on a 30-bit input bus(10-bit per component) from a display controller or a 36-bit output bu

[PATCH v3 04/14] dt-bindings: display: bridge: Add i.MX8qm/qxp pixel combiner binding

2021-01-28 Thread Liu Ying
This patch adds bindings for i.MX8qm/qxp pixel combiner. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v2->v3: * Add Rob's R-b tag. v1->v2: * Use graph schema. (Laurent) * Use enum instead of oneOf + const for the reg property of pixel combiner channels. (Rob) .../display/bridge/fsl,

[PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels

2021-01-28 Thread Iskren Chernev
Before the offending commit in msm_atomic_commit_tail wait_flush was called once per frame, after the commit was submitted. After it wait_flush is also called at the beginning to ensure previous potentially async commits are done. For cmd panels the source of wait_flush is a ping-pong irq notifyin

[PATCH v4 3/3] drm/bridge: anx7625: add MIPI DPI input feature support

2021-01-28 Thread Xin Ji
Add MIPI rx DPI input support Reported-by: kernel test robot Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 326 -- drivers/gpu/drm/bridge/analogix/anx7625.h | 20 +- 2 files changed, 285 insertions(+), 61 deletions(-) diff --git a/drivers/gp

[PATCH v3 07/14] drm/bridge: imx: Add i.MX8qm/qxp display pixel link support

2021-01-28 Thread Liu Ying
This patch adds a drm bridge driver for i.MX8qm/qxp display pixel link. The pixel link forms a standard asynchronous linkage between pixel sources(display controller or camera module) and pixel consumers(imaging or displays). It consists of two distinct functions, a pixel transfer function and a c

[PATCH v8] fbtft: add tearing signal detect

2021-01-28 Thread Carlis
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 - drivers/staging/fbtft/fbtft.h | 1 + 2 files changed, 132 insertion

[PATCH v11 2/9] 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 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] drm/lima: Use delayed timer as default in devfreq profile

2021-01-28 Thread Lukasz Luba
Devfreq framework supports 2 modes for monitoring devices. Use delayed timer as default instead of deferrable timer in order to monitor the GPU status regardless of CPU idle. Signed-off-by: Lukasz Luba --- Hi all, I've missed the Lima driver while working on Panfrost patch for fixing the issue w

[PATCH v3 10/14] drm/bridge: imx: Add LDB driver helper support

2021-01-28 Thread Liu Ying
This patch adds a helper to support LDB drm bridge drivers for i.MX SoCs. Helper functions exported from this driver should implement common logics for all LDB modules embedded in i.MX SoCs. Signed-off-by: Liu Ying --- v2->v3: * Call syscon_node_to_regmap() to get regmap instead of syscon_regm

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

2021-01-28 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

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

2021-01-28 Thread Oscar Salvador
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_inc() and simplify > free_reserved_

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

2021-01-28 Thread Oscar Salvador
On Tue, Jan 26, 2021 at 07:21:12PM +0100, 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

RE: [PATCH v6] drm/bridge: add it6505 driver

2021-01-28 Thread allen.chen
Hi Andrzej I will fixed these and upstream. Thanks for your comment. -Original Message- From: Andrzej Hajda [mailto:a.ha...@samsung.com] Sent: Friday, January 22, 2021 7:02 PM To: Allen Chen (陳柏宇) Cc: Kenneth Hung (洪家倫); Jitao Shi; Jau-Chih Tseng (曾昭智); Yilun Lin; David Airlie; Neil A

[RFC] in_atomic() usage in amba-clcd.c / FB_ARMCLCD

2021-01-28 Thread Sebastian Andrzej Siewior
The mba-clcd driver uses in_interrupt() in clcdfb_sleep(): | /* | * Unfortunately, the enable/disable functions may be called either from | * process or IRQ context, and we _need_ to delay. This is _not_ good. | */ | static inline void clcdfb_sleep(unsigned int ms) | { | if (in_atomic()

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

2021-01-28 Thread carlis
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 for the TE signal arrive to avoid screen tearing > > > > Signed-off-by: z

[PATCH v3 14/14] MAINTAINERS: add maintainer for DRM bridge drivers for i.MX SoCs

2021-01-28 Thread Liu Ying
Add myself as the maintainer of DRM bridge drivers for i.MX SoCs. Signed-off-by: Liu Ying --- v2->v3: * No change. v1->v2: * No change. MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9d241b8..d96c917 100644 --- a/MAINTAINERS +++ b/MA

Re: [PATCH v5 00/21] support option where all commands are collected into a single,dedicated cmdstream

2021-01-28 Thread Dmitry Osipenko
26.01.2021 05:45, Mikko Perttunen пишет: >> 6. We will need to allocate a host1x BO for a job's cmdstream and add a >> restart command to the end of the job's stream.  CDMA will jump into the >> job's stream from push buffer. >> >> We could add a flag for that to drm_tegra_submit_cmd_gather, saying

Re: linux-next: Tree for Jan 27 (drm/i915)

2021-01-28 Thread Randy Dunlap
On 1/27/21 6:44 AM, Stephen Rothwell wrote: > Hi all, > > Note: the patch file has failed to upload :-( > > Changes since 20210125: > on x86_64: ../drivers/gpu/drm/i915/i915_gem.c: In function ‘i915_gem_freeze_late’: ../drivers/gpu/drm/i915/i915_gem.c:1182:2: error: implicit declaration of fu

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

2021-01-28 Thread carlis
On Wed, 27 Jan 2021 14:11:31 +0100 Greg KH wrote: > 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: zh

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

2021-01-28 Thread carlis
On Wed, 27 Jan 2021 16:02:35 +0100 Greg KH wrote: > 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

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

2021-01-28 Thread Anshuman Khandual
On 1/26/21 11:51 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 > Cc: Mi

[PATCH v3 09/14] drm/bridge: imx: Add i.MX8qxp pixel link to DPI support

2021-01-28 Thread Liu Ying
This patch adds a drm bridge driver for i.MX8qxp pixel link to display pixel interface(PXL2DPI). The PXL2DPI interfaces the pixel link 36-bit data output and the DSI controller’s MIPI-DPI 24-bit data input, and inputs of LVDS Display Bridge(LDB) module used in LVDS mode, to remap the pixel color c

Re: [PATCH v5 00/21] Host1x/TegraDRM UAPI

2021-01-28 Thread Dmitry Osipenko
28.01.2021 00:57, Mikko Perttunen пишет: > > > On 1/27/21 11:26 PM, Dmitry Osipenko wrote: >> 26.01.2021 05:45, Mikko Perttunen пишет: 5. The hardware state of sync points should be reset when sync point is requested, not when host1x driver is initialized. >>> >>> This may be doable, bu

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

2021-01-28 Thread Hans Verkuil
On 18/01/2021 14:55, Hans Verkuil wrote: > On 12/01/2021 16:24, Hans Verkuil wrote: >> Hi Maxime, >> >> On 11/01/2021 15:22, 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

[PATCH v7] fbtft: add tearing signal detect

2021-01-28 Thread Carlis
From: zhangxuezhi For st7789v ic,add tearing signal detect to avoid screen tearing Signed-off-by: zhangxuezhi --- v7: request fail to return error value --- drivers/staging/fbtft/fb_st7789v.c | 133 - drivers/staging/fbtft/fbtft.h | 1 + 2 files chang

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

2021-01-28 Thread carlis
On Wed, 27 Jan 2021 14:47:04 +0100 Geert Uytterhoeven wrote: > 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_*

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

2021-01-28 Thread Dmitry Osipenko
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 dynamically when job >> is submitted.  We will need a fag for the sync_incr and wait_syncpt >> commands, saying "it's a job's s

[PATCH] dt-bindings: mxsfb: Add interconnect bindings for LCDIF path

2021-01-28 Thread Martin Kepplinger
Add optional interconnect properties for the dram path requests. Signed-off-by: Martin Kepplinger --- Documentation/devicetree/bindings/display/fsl,lcdif.yaml | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/display/fsl,lcdif.yaml b/Documentation/dev

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

2021-01-28 Thread Anshuman Khandual
On 1/26/21 11:51 PM, 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_inc() and simplify > free_reserved_page(). > > Cc: A

Re: linux-next: Tree for Jan 27 (drm/i915)

2021-01-28 Thread Randy Dunlap
On 1/27/21 11:08 AM, Randy Dunlap wrote: > On 1/27/21 6:44 AM, Stephen Rothwell wrote: >> Hi all, >> >> Note: the patch file has failed to upload :-( >> >> Changes since 20210125: >> > > on x86_64: > > ../drivers/gpu/drm/i915/i915_gem.c: In function ‘i915_gem_freeze_late’: > ../drivers/gpu/drm/i9

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

2021-01-28 Thread Kari Argillander
On Wed, Jan 27, 2021 at 09:42:52PM +0800, Carlis wrote: > For st7789v ic,when we need continuous full screen refresh, it is best to > wait for the TE signal arrive to avoid screen tearing > diff --git a/drivers/staging/fbtft/fb_st7789v.c > b/drivers/staging/fbtft/fb_st7789v.c > index 3a280cc..cb

[PATCH v4 0/3] Add MIPI rx DPI support

2021-01-28 Thread Xin Ji
Hi all, this patch series implement MIPI rx DPI feature. Please help to review. This is the v4 version, any mistakes, please let me know, I'll fix it in the next series. Change history: v4: Fix Rob Herring comment - Rebase code on the branch 'drm-misc-next' - Change 'analogix,hdcp-support' type

Re: [PATCH v4 1/2] dt-bindings: Add DT schema for Arm Mali Valhall GPU

2021-01-28 Thread Nick Fan
Thanks for your review. These are fixed in v5 as following link. https://lore.kernel.org/patchwork/patch/1372271/ Nick Fan On Thu, 2021-01-14 at 14:14 -0600, Rob Herring wrote: > On Tue, Jan 12, 2021 at 02:49:32PM +0800, Nick Fan wrote: > > Add devicetree schema for Arm Mali Valhall GPU > > > >

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

2021-01-28 Thread Yongqiang Niu
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 Wang wrote: > > > > From: Yongqiang Niu > > > > > > > > for 5 or

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

2021-01-28 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 v10] staging: fbtft: add tearing signal detect

2021-01-28 Thread carlis
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, Carlis wrote: > > > > From: zhangxuezhi > > > > > > > > For st7789v ic,

[PATCH v5 1/2] dt-bindings: Add DT schema for Arm Mali Valhall GPU

2021-01-28 Thread Nick Fan
Add devicetree schema for Arm Mali Valhall GPU Define a compatible string for the Mali Valhall GPU for Mediatek's SoC platform. Signed-off-by: Nick Fan --- .../bindings/gpu/arm,mali-valhall.yaml| 217 ++ 1 file changed, 217 insertions(+) create mode 100644 Documentation

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

2021-01-28 Thread Hsin-Yi Wang
On Thu, Jan 28, 2021 at 12:39 PM CK Hu wrote: > > Hi, Hsin-Yi: > > On Wed, 2021-01-27 at 12:54 +0800, Hsin-Yi Wang wrote: > > 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. > > You does not change the interf

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

2021-01-28 Thread carlis
On Wed, 27 Jan 2021 11:59:51 +0300 Dan Carpenter wrote: > 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(d

[PATCH 2/2] video: omapfb: Remove WARN_ON(in_interrupt()).

2021-01-28 Thread Sebastian Andrzej Siewior
From: "Ahmed S. Darwish" dsi_sync_vc() uses in_interrupt() to create a warning if the function is used in non-preemptible context. The usage of in_interrupt() in drivers is phased out and Linus clearly requested that code which changes behaviour depending on context should either be separated or

[PATCH v11 9/9] 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 v10 8/9] drm/mediatek: add DDP support for MT8183

2021-01-28 Thread Hsin-Yi Wang
On Thu, Jan 28, 2021 at 2:13 PM CK Hu wrote: > > Hi, Hsin-Yi: > > Modify the title's prefix to 'soc: mediatek:' > > On Wed, 2021-01-27 at 12:54 +0800, Hsin-Yi Wang wrote: > > From: Yongqiang Niu > > > > Add DDP support for MT8183 SoC. > > > > Signed-off-by: Yongqiang Niu > > Signed-off-by: Hsin-

Re: [PATCH v5 00/21] sync_file API is not very suitable for DRM

2021-01-28 Thread Dmitry Osipenko
28.01.2021 00:53, Mikko Perttunen пишет: > On 1/27/21 11:35 PM, Dmitry Osipenko wrote: >> 26.01.2021 05:45, Mikko Perttunen пишет: 4. Sync file shouldn't be needed for the part of DRM API which doesn't interact with external non-DRM devices.  We should use DRM syncobj for everything

Re: [PATCH v3, 07/15] drm/mediatek: enable OVL_LAYER_SMI_ID_EN for multi-layer usecase

2021-01-28 Thread Yongqiang Niu
On Tue, 2021-01-12 at 07:59 +0800, Chun-Kuang Hu wrote: > Hi, Yongqiang: > > Yongqiang Niu 於 2021年1月11日 週一 下午3:44寫道: > > > > enable OVL_LAYER_SMI_ID_EN for multi-layer usecase > > Could you describe more information? Without this patch, what would happen? > without this patch, ovl will hang up

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

2021-01-28 Thread carlis
On Thu, 28 Jan 2021 00:32:22 +0200 Kari Argillander wrote: > On Wed, Jan 27, 2021 at 09:42:52PM +0800, Carlis wrote: > > For st7789v ic,when we need continuous full screen refresh, it is > > best to wait for the TE signal arrive to avoid screen tearing > > > diff --git a/drivers/staging/fbtft

[PATCH v11 5/9] 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 ++ dr

Re: [RFC PATCH 0/3] add ttm trace event support

2021-01-28 Thread Wang, Kevin(Yang)
[AMD Official Use Only - Internal Distribution Only] thanks comments. I will refine these patches, then send out review later. Best Regards, Kevin From: Christian König Sent: Thursday, January 28, 2021 3:46 PM To: Wang, Kevin(Yang) ; dri-devel@lists.freedesktop.

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

2021-01-28 Thread CK Hu
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 v11 2/9] arm64: dts: mt8183: refine gamma compatible name

2021-01-28 Thread Enric Balletbo Serra
Hi Hsin-Yi, Thank you for your patch. Missatge de Hsin-Yi Wang del dia dj., 28 de gen. 2021 a les 8:28: > > From: Yongqiang Niu > > mt8183 gamma is different with mt8173 > remove mt8173 compatible name for mt8183 gamma > Should this patch contain? Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add

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

2021-01-28 Thread Geert Uytterhoeven
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 "fbtft.h" > > > > > > > > #define DRVNAME "fb_st7789v" > > > > @@ -66,6 +69,32 @@ enum

[PATCH] drm/ttm: Use __GFP_NOWARN for huge pages in ttm_pool_alloc_page

2021-01-28 Thread Michel Dänzer
From: Michel Dänzer Without __GFP_NOWARN, attempts at allocating huge pages can trigger dmesg splats like below (which are essentially noise, since TTM falls back to normal pages if it can't get a huge one). [ 9556.710241] clinfo: page allocation failure: order:9, mode:0x194dc2(GFP_HIGHUSER|__G

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

2021-01-28 Thread Pekka Paalanen
On Wed, 27 Jan 2021 12:01:55 +0100 Christian König wrote: > Somewhat correct. This interface here really doesn't make sense since > the file descriptor representation of DMA-buf is only meant to be used > for short term usage. > > E.g. the idea is that you can export a DMA-buf fd from your dev

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

2021-01-28 Thread Enric Balletbo Serra
Hi Hsin-Yi, Thank you for the patch. Missatge de Hsin-Yi Wang del dia dj., 28 de gen. 2021 a les 8:28: > > From: Yongqiang Niu > > property name must include only lowercase and '-' > This is a leftover while I forward ported the patch, the rdma_fifo_size only existed on the downstream kernels,

Re: [PATCH] drm/ttm: Use __GFP_NOWARN for huge pages in ttm_pool_alloc_page

2021-01-28 Thread Christian König
Am 28.01.21 um 10:53 schrieb Michel Dänzer: From: Michel Dänzer Without __GFP_NOWARN, attempts at allocating huge pages can trigger dmesg splats like below (which are essentially noise, since TTM falls back to normal pages if it can't get a huge one). [ 9556.710241] clinfo: page allocation fai

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

2021-01-28 Thread Sumit Semwal
Hi Hridya, On Wed, 27 Jan 2021 at 17:36, Greg KH wrote: > > 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

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

2021-01-28 Thread Mikko Perttunen
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 dynamically when job is submitted.  We will need a fag for the sync_incr and wait_sync

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

2021-01-28 Thread Geert Uytterhoeven
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, 2021 at 09:42:58AM +0800, carlis wrote: > > > > On Thu, 28 Jan 2021 00:32:22 +0200 > >

Re: [PATCH v4 3/3] drm/bridge/lontium-lt9611uxc: move HPD notification out of IRQ handler

2021-01-28 Thread Andrzej Hajda
W dniu 22.01.2021 o 10:34, Andrzej Hajda pisze: > W dniu 22.01.2021 o 00:33, Dmitry Baryshkov pisze: >> drm hotplug handling code (drm_client_dev_hotplug()) can wait on mutex, >> thus delaying further lt9611uxc IRQ events processing. It was observed >> occasionally during bootups, when drm_client

Re: [PATCH v5 00/21] Host1x/TegraDRM UAPI

2021-01-28 Thread Mikko Perttunen
On 1/28/21 12:06 AM, Dmitry Osipenko wrote: 28.01.2021 00:57, Mikko Perttunen пишет: On 1/27/21 11:26 PM, Dmitry Osipenko wrote: 26.01.2021 05:45, Mikko Perttunen пишет: 5. The hardware state of sync points should be reset when sync point is requested, not when host1x driver is initialized.

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

2021-01-28 Thread Christian König
Am 28.01.21 um 12:00 schrieb Sumit Semwal: Hi Hridya, On Wed, 27 Jan 2021 at 17:36, Greg KH wrote: 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 foll

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

2021-01-28 Thread Sumit Semwal
On Thu, 28 Jan 2021 at 17:23, Christian König wrote: > > Am 28.01.21 um 12:00 schrieb Sumit Semwal: > > Hi Hridya, > > > > On Wed, 27 Jan 2021 at 17:36, Greg KH wrote: > >> On Tue, Jan 26, 2021 at 12:42:36PM -0800, Hridya Valsaraju wrote: > >>> This patch allows statistics to be enabled for each

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

2021-01-28 Thread 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 the memory > > accounting. Since t

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

2021-01-28 Thread 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 something like this > > fd = memfd_create("tes

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 >

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 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

  1   2   >