Re: [PATCH rdma-core v7 4/6] pyverbs: Add dma-buf based MR support

2021-01-31 Thread Leon Romanovsky
On Sun, Jan 31, 2021 at 05:31:16PM +0200, Gal Pressman wrote: > On 25/01/2021 21:57, Jianxin Xiong wrote: > > Define a new sub-class of 'MR' that uses dma-buf object for the memory > > region. Define a new class 'DmaBuf' as a wrapper for dma-buf allocation > > mechanism implemented in C. > > > > Up

[PATCH] drm/mediatek: fine tune the data lane trail by project dts

2021-01-31 Thread Jitao Shi
Some panels or bridges require customized hs_da_trail time. So add a property in devicetree for this panels and bridges. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.

[PATCH v2 0/2] Fix EoTp flag

2021-01-31 Thread Jitao Shi
Changes since v1: - Seperate the line time as single patch. Jitao Shi (2): drm/mediatek: dsi: Fix EoTp flag drm/mediatek: dsi: fine tune the line time cause by EOTp drivers/gpu/drm/mediatek/mtk_dsi.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) -- 2.12.5 _

[PATCH v2 2/2] drm/mediatek: dsi: fine tune the line time cause by EOTp

2021-01-31 Thread Jitao Shi
Enabling EoTp will make the line time larger, so the hfp and hbp should be reduced to keep line time. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index

[PATCH v2 1/2] drm/mediatek: dsi: Fix EoTp flag

2021-01-31 Thread Jitao Shi
SoC will transmit the EoTp (End of Transmission packet) when MIPI_DSI_MODE_EOT_PACKET flag is set. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/medi

linux-next: build failure after merge of the drm-misc tree

2021-01-31 Thread Stephen Rothwell
Hi all, After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/v3d/v3d_sched.c:263:1: error: return type is an incomplete type 263 | v3d_gpu_reset_for_timeout(struct v3d_dev *v3d, struct drm_sched_job *sched_job) | ^~

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

2021-01-31 Thread Stephen Rothwell
Hi all, On Fri, 22 Jan 2021 11:59:18 +1100 Stephen Rothwell wrote: > > After merging the drm tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > WARNING: unmet direct dependencies detected for DRM_I915_WERROR > Depends on [n]: HAS_IOMEM [=y] && DRM_I915 [=m] && E

linux-next: manual merge of the drm tree with Linus' tree

2021-01-31 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h between commit: a119f87b86bc ("Revert "drm/amdgpu/swsmu: drop set_fan_speed_percent (v2)"") from Linus' tree and commit: d8a0b8dd690b ("drm/amd/pm: add pptable_funcs documentation

[PATCH] drm/nouveau: fix dma syncing warning with debugging on.

2021-01-31 Thread Dave Airlie
From: Dave Airlie Since I wrote the below patch if you run a debug kernel you can a dma debug warning like: nouveau :1f:00.0: DMA-API: device driver tries to sync DMA memory it has not allocated [device address=0x00016e012000] [size=4096 bytes] The old nouveau code wasn't consolidate th

Re: [PATCH 3/5] drm/msm/dsi_pll_10nm: Fix bad VCO rate calculation and prescaler

2021-01-31 Thread Rob Clark
On Sat, Jan 9, 2021 at 5:51 AM AngeloGioacchino Del Regno wrote: > > The VCO rate was being miscalculated due to a big overlook during > the process of porting this driver from downstream to upstream: > here we are really recalculating the rate of the VCO by reading > the appropriate registers and

Re: [v2] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu driver

2021-01-31 Thread Rob Clark
On Fri, Dec 18, 2020 at 2:27 AM Kalyan Thota wrote: > > Set the flag vblank_disable_immediate = true to turn off vblank irqs > immediately as soon as drm_vblank_put is requested so that there are > no irqs triggered during idle state. This will reduce cpu wakeups > and help in power saving. > > To

Re: [PATCH 08/29] dma-buf: Avoid comma separated statements

2021-01-31 Thread Christian König
Am 31.01.21 um 18:39 schrieb Joe Perches: On Wed, 2021-02-03 at 14:26 +0100, Christian König wrote: Am 30.01.21 um 19:47 schrieb Joe Perches: On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: Use semicolons and braces. Ping? Signed-off-by: Joe Perches Reviewed-by: Christian König Do

Re: [PATCH 08/29] dma-buf: Avoid comma separated statements

2021-01-31 Thread Joe Perches
On Wed, 2021-02-03 at 14:26 +0100, Christian König wrote: > Am 30.01.21 um 19:47 schrieb Joe Perches: > > On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: > > > Use semicolons and braces. > > Ping? > > > Signed-off-by: Joe Perches > Reviewed-by: Christian König > > Do you have commit rights

Re: [PATCH 08/29] dma-buf: Avoid comma separated statements

2021-01-31 Thread Christian König
Am 30.01.21 um 19:47 schrieb Joe Perches: On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: Use semicolons and braces. Ping? Signed-off-by: Joe Perches Reviewed-by: Christian König Do you have commit rights to drm-misc-next? ---  drivers/dma-buf/st-dma-fence.c | 7 +--  1 fi

[Bug 211501] Kernel freeze when waking monitor from blanking / DPMS (AMDGPU / DC)

2021-01-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211501 --- Comment #1 from Jasen Borisov (borisovja...@protonmail.com) --- Created attachment 295023 --> https://bugzilla.kernel.org/attachment.cgi?id=295023&action=edit dmesg output from the system booting (for extra info) -- You may reply to this e

[Bug 211501] New: Kernel freeze when waking monitor from blanking / DPMS (AMDGPU / DC)

2021-01-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211501 Bug ID: 211501 Summary: Kernel freeze when waking monitor from blanking / DPMS (AMDGPU / DC) Product: Drivers Version: 2.5 Kernel Version: 5.10.11 Hardware: All

Re: [PATCH] drm/mediatek: enable dither function

2021-01-31 Thread Chun-Kuang Hu
Hi, Hsin-Yi: Hsin-Yi Wang 於 2021年1月31日 週日 下午1:11寫道: > > From: Yongqiang Niu > > Enable dither function to improve the display quality. Reviewed-by: Chun-Kuang Hu > > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-Yi Wang > --- > Previous version: > https://patchwork.kernel.org/project/l

Re: [PATCH v2, 1/3] dt-binding: gce: add gce header file for mt8192

2021-01-31 Thread Matthias Brugger
On 24/12/2020 01:48, Yongqiang Niu wrote: > Add documentation for the mt8192 gce. > > Add gce header file defined the gce hardware event, > subsys number and constant for mt8192. > > Signed-off-by: Yongqiang Niu > --- > .../devicetree/bindings/mailbox/mtk-gce.txt| 7 +- > include/d

Re: [PATCH v2] soc: mediatek: cmdq: add address shift in jump

2021-01-31 Thread Matthias Brugger
On 08/01/2021 02:48, Yongqiang Niu wrote: > On Wed, 2020-12-23 at 16:34 +0800, Yongqiang Niu wrote: >> Add address shift when compose jump instruction >> to compatible with 35bit format. >> >> Fixes: 0858fde496f8 ("mailbox: cmdq: variablize address shift in platform") >> >> Signed-off-by: Yongqi

[Bug 211277] sometimes crash at s2ram-wake (Ryzen 3500U): amdgpu, drm, commit_tail, amdgpu_dm_atomic_commit_tail

2021-01-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211277 --- Comment #8 from Jerome C (m...@jeromec.com) --- I've tried kernel 5.11-rc5 and same issue occurs there. For now I've downgraded kernel to 5.9.14 ( will update it to 5.9.16 ) until this issue is fixed What I've mentioned in comment 4 isn't re

Re: [Letux-kernel] What ist the standard way to define connector type and bus format with device tree?

2021-01-31 Thread H. Nikolaus Schaller
ping? > Am 12.01.2021 um 12:41 schrieb H. Nikolaus Schaller : > > Hi, > according to bindings/display/panel/panel-common.yaml > and by using "panel-simple" as compatible string we > can define almost all properties of a DSI panel by a > device tree entry. > > Except the connector type and bus fo

[PATCH 1/2] drm/bridge: dw-hdmi: Add DT binding to disable hotplug detect

2021-01-31 Thread Mykyta Poturai
Add "disable-hpd" boolean binding for the device tree. When this option is turned on HPD-related IRQ is disabled and it is assumed that the HDMI connector is connected all the time. This may be useful in systems where it is impossible or undesirable to connect the HPD pin, or the connection is brok

[PATCH 2/2] dt-bindings: display: Add "disable-hpd" binding

2021-01-31 Thread Mykyta Poturai
Add the "disable-hpd" binding, used to disable hotplug detected functionality in the driver. When it's enabled the driver assumes that the connector is always connected and disables the hotplug detect related IRQ. Signed-off-by: Mykyta Poturai --- .../devicetree/bindings/display/bridge/renesas,d

Re: [PATCH] drm/i915: Remove unreachable code

2021-01-31 Thread Vinicius Tinti
On Fri, Jan 29, 2021 at 08:55:54PM +, Chris Wilson wrote: > Quoting Vinicius Tinti (2021-01-29 18:15:19) > > By enabling -Wunreachable-code-aggressive on Clang the following code > > paths are unreachable. > > That code exists as commentary and, especially for sdvo, library > functions that we

[PATCH] drm/mediatek: enable dither function

2021-01-31 Thread Hsin-Yi Wang
From: Yongqiang Niu Enable dither function to improve the display quality. Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang --- Previous version: https://patchwork.kernel.org/project/linux-mediatek/patch/20210129092209.2584718-7-hsi...@chromium.org/ --- drivers/gpu/drm/mediatek/mtk_dr

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

2021-01-31 Thread Hsin-Yi Wang
On Sun, Jan 31, 2021 at 11:40 AM Chun-Kuang Hu wrote: > > Hi, Hsin-Yi: > > Hsin-Yi Wang 於 2021年1月29日 週五 下午5:23寫道: > > > > From: Yongqiang Niu > > > > Enable dither function to improve the display quality for dither > > supported bpc 4, 6, 8. For not supported bpc, use relay mode. > > > > Signed-

[PATCH 1/2] dt-bindings: drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 bindings

2021-01-31 Thread Marek Vasut
Add DT binding document for TI SN65DSI83 DSI to LVDS bridge. Signed-off-by: Marek Vasut Cc: Douglas Anderson Cc: Laurent Pinchart Cc: Linus Walleij Cc: Sam Ravnborg Cc: Stephen Boyd Cc: devicet...@vger.kernel.org To: dri-devel@lists.freedesktop.org --- .../bindings/display/bridge/ti,sn65dsi

[PATCH 2/3] dt-bindings: Add DT bindings for Displaytech DT050TFT-PTS

2021-01-31 Thread Marek Vasut
Add DT bindings for Displaytech DT050TFT-PTS 5.0" (800x480) color TFT LCD panel, connected over DPI. Signed-off-by: Marek Vasut To: dri-devel@lists.freedesktop.org Cc: Rob Herring Cc: Sam Ravnborg Cc: devicet...@vger.kernel.org --- .../devicetree/bindings/display/panel/panel-simple.yaml

Re: [PATCH] drm/msm/dsi: save PLL registers across first PHY reset

2021-01-31 Thread Dmitry Baryshkov
On Sat, 30 Jan 2021 at 05:00, Benjamin Li wrote: > > > On 10/30/20 6:55 AM, Dmitry Baryshkov wrote: > > Hello, > > > > On 07/10/2020 03:10, benl-kernelpatc...@squareup.com wrote: > >> From: Benjamin Li > >> > >> Take advantage of previously-added support for persisting PLL > >> registers across D

[PATCH 1/3] dt-bindings: Add vendor prefix for Displaytech

2021-01-31 Thread Marek Vasut
The Displaytech Ltd. is an LCD panel manufacturer. Signed-off-by: Marek Vasut To: dri-devel@lists.freedesktop.org Cc: Eric Anholt Cc: Rob Herring Cc: Sam Ravnborg Cc: devicet...@vger.kernel.org --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)

[PATCH 3/3] drm/panel: simple: Add Displaytech DT050TFT-PTS panel

2021-01-31 Thread Marek Vasut
Add support for the Displaytech DT050TFT-PTS 5.0" (800x480) color TFT LCD panel, connected over DPI. Timings are taken from the datasheet Rev 0.0. Signed-off-by: Marek Vasut Cc: dri-devel@lists.freedesktop.org Cc: Rob Herring Cc: Sam Ravnborg Cc: devicet...@vger.kernel.org --- drivers/gpu/drm

[PATCH 2/2] drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 driver

2021-01-31 Thread Marek Vasut
Add driver for TI SN65DSI83 Single-Channel DSI to Single-Link LVDS bridge. The driver operates the chip over I2C bus. Currently the LVDS clock are always derived from DSI clock lane, which is the usual mode of operation, support for clock from external oscillator is not implemented, but it is easy

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

2021-01-31 Thread Matthias Brugger
On 29/01/2021 10:22, Hsin-Yi Wang wrote: > 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 v12 > - fix mtk_dither_config > > Change since v10, v11 > - fix review comments in v9 > > Change since v9 >

Re: [PATCH] soc: mediatek: cmdq: Remove cmdq_pkt_flush()

2021-01-31 Thread Matthias Brugger
On 30/01/2021 10:45, Chun-Kuang Hu wrote: > Hi, Matthias: > > Chun-Kuang Hu 於 2021年1月10日 週日 上午6:59寫道: >> >> Hi, Matthias: >> >> Chun-Kuang Hu 於 2020年12月3日 週四 上午7:59寫道: >>> >>> rx_callback is a standard mailbox callback mechanism and could >>> cover the function of proprietary cmdq_task_cb, so

[Bug 209713] amdgpu drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_link_encoder.c:483 dcn10_get_dig_frontend+0x9e/0xc0 [amdgpu] when resuming from S3 state

2021-01-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209713 --- Comment #14 from Michel Dänzer (mic...@daenzer.net) --- (In reply to Frank Kruger from comment #12) > I am seeing the aforementioned warning at boot for kernel >= 5.10.10, with > kernel-firmware-amdgpu-20210119 (AMD Ryzen 7 PRO 4750U). Kernel

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

2021-01-31 Thread Matthias Brugger
Hi Hsin-Yi, On 29/01/2021 10:22, 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

[Bug 209713] amdgpu drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_link_encoder.c:483 dcn10_get_dig_frontend+0x9e/0xc0 [amdgpu] when resuming from S3 state

2021-01-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209713 --- Comment #13 from Frank Kruger (fkrue...@mailbox.org) --- The only change regarding "DCN" from 5.10.9 to 5.10.10 is commit 99ea120383b19feb1737c787dc1c8b35ce630fc5 Author: Alex Deucher Date: Mon Jan 4 11:24:20 2021 -0500 drm/amdgpu/dis

[Bug 209713] amdgpu drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_link_encoder.c:483 dcn10_get_dig_frontend+0x9e/0xc0 [amdgpu] when resuming from S3 state

2021-01-31 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209713 Frank Kruger (fkrue...@mailbox.org) changed: What|Removed |Added CC||fkrue...@mailbox.org

Re: [PATCH rdma-core v7 5/6] tests: Add tests for dma-buf based memory regions

2021-01-31 Thread John Hubbard
On 1/25/21 11:57 AM, Jianxin Xiong wrote: Define a set of unit tests similar to regular MR tests and a set of tests for send/recv and rdma traffic using dma-buf MRs. Add a utility function to generate access flags for dma-buf based MRs because the set of supported flags is smaller. Signed-off-by