[PATCH] [RFC] drm/i915/dp: DP PHY compliance for EHL/JSL

2020-09-03 Thread Vidya Srinivas
Please Note: Comment from Ville could not be addressed as his comments are with respect to base implementation (design) which are already merged. We need JSL changes for compliance. Hence pushing the required changes on top of existing design. Apoligies for that. v2: Rebased patch on top of

[PATCH 3/3] [RFC] drm/i915/dp: DP PHY compliance for EHL/JSL

2020-09-03 Thread Vidya Srinivas
Please Note: Comment from Ville could not be addressed as his comments are with respect to base implementation (design) which are already merged. We need JSL changes for compliance. Hence pushing the required changes on top of existing design. Apoligies for that. v2: Rebased patch on top of

[PATCH 2/3] drm/i915/dp: TPS4 PHY test pattern compliance support

2020-09-03 Thread Vidya Srinivas
From: Khaled Almahallawy Adding support for TPS4 (CP2520 Pattern 3) PHY pattern source tests. v2: uniform bit names TP4a/b/c (Manasi) Signed-off-by: Khaled Almahallawy Reviewed-by: Manasi Navare Tested-by: Khaled Almahallawy --- drivers/gpu/drm/i915/display/intel_dp.c | 14 --

[PATCH 1/3] drm/dp: Add PHY_TEST_PATTERN CP2520 Pattern 2 and 3

2020-09-03 Thread Vidya Srinivas
From: Khaled Almahallawy Add the missing CP2520 pattern 2 and 3 phy compliance patterns v2: cosemtic changes Reviewed-by: Manasi Navare (v1) Signed-off-by: Khaled Almahallawy --- drivers/gpu/drm/drm_dp_helper.c | 2 +- include/drm/drm_dp_helper.h | 4 +++- 2 files changed, 4

[PATCH 2/3] drm/i915/dp: TPS4 PHY test pattern compliance support

2020-09-03 Thread Vidya Srinivas
From: Khaled Almahallawy Adding support for TPS4 (CP2520 Pattern 3) PHY pattern source tests. v2: uniform bit names TP4a/b/c (Manasi) Signed-off-by: Khaled Almahallawy Reviewed-by: Manasi Navare Tested-by: Khaled Almahallawy --- drivers/gpu/drm/i915/display/intel_dp.c | 14 --

[PATCH 3/3] [RFC] drm/i915/dp: DP PHY compliance for EHL/JSL

2020-09-03 Thread Vidya Srinivas
Please Note: Comment from Ville could not be addressed as his comments are with respect to base implementation (design) which are already merged. We need JSL changes for compliance. Hence pushing the required changes on top of existing design. Apoligies for that. v2: Rebased patch on top of

[PATCH 1/3] drm/dp: Add PHY_TEST_PATTERN CP2520 Pattern 2 and 3

2020-09-03 Thread Vidya Srinivas
From: Khaled Almahallawy Add the missing CP2520 pattern 2 and 3 phy compliance patterns v2: cosemtic changes Reviewed-by: Manasi Navare (v1) Signed-off-by: Khaled Almahallawy --- drivers/gpu/drm/drm_dp_helper.c | 2 +- include/drm/drm_dp_helper.h | 4 +++- 2 files changed, 4

[PATCH 3/3] [RFC] drm/i915/dp: DP PHY compliance for EHL/JSL

2020-09-03 Thread Vidya Srinivas
Please Note: Comment from Ville could not be addressed as his comments are with respect to base implementation (design) which are already merged. We need JSL changes for compliance. Hence pushing the required changes on top of existing design. Apoligies for that. v2: Rebased patch on top of

[PATCH 2/3] drm/i915/dp: TPS4 PHY test pattern compliance support

2020-09-03 Thread Vidya Srinivas
From: Khaled Almahallawy Adding support for TPS4 (CP2520 Pattern 3) PHY pattern source tests. v2: uniform bit names TP4a/b/c (Manasi) Signed-off-by: Khaled Almahallawy Reviewed-by: Manasi Navare Tested-by: Khaled Almahallawy --- drivers/gpu/drm/i915/display/intel_dp.c | 14 --

[PATCH 1/3] drm/dp: Add PHY_TEST_PATTERN CP2520 Pattern 2 and 3

2020-09-03 Thread Vidya Srinivas
From: Khaled Almahallawy Add the missing CP2520 pattern 2 and 3 phy compliance patterns v2: cosemtic changes Reviewed-by: Manasi Navare (v1) Signed-off-by: Khaled Almahallawy --- drivers/gpu/drm/drm_dp_helper.c | 2 +- include/drm/drm_dp_helper.h | 4 +++- 2 files changed, 4

[PATCH] drm/i915/dp: DP PHY compliance for EHL/JSL

2020-09-03 Thread Vidya Srinivas
v2: Rebased patch on top of: https://patchwork.freedesktop.org/series/79779/ Fixed phy patterns for JSL/EHL Add TPS4 support for JSL/EHL Signed-off-by: Khaled Almahallawy Signed-off-by: Vidya Srinivas --- drivers/gpu/drm/i915/display/intel_dp.c | 81

[PATCH 1/3] drm/dp: Add PHY_TEST_PATTERN CP2520 Pattern 2 and 3

2020-09-03 Thread Vidya Srinivas
From: Khaled Almahallawy Add the missing CP2520 pattern 2 and 3 phy compliance patterns v2: cosemtic changes Reviewed-by: Manasi Navare (v1) Signed-off-by: Khaled Almahallawy --- drivers/gpu/drm/drm_dp_helper.c | 2 +- include/drm/drm_dp_helper.h | 4 +++- 2 files changed, 4

[PATCH 3/3] [RFC] drm/i915/dp: DP PHY compliance for EHL/JSL

2020-09-03 Thread Vidya Srinivas
Please Note: Comment from Ville could not be addressed as his comments are with respect to base implementation (design) which are already merged. We need JSL changes for compliance. Hence pushing the required changes on top of existing design. Apoligies for that. v2: Rebased patch on top of

[PATCH 2/3] drm/i915/dp: TPS4 PHY test pattern compliance support

2020-09-03 Thread Vidya Srinivas
From: Khaled Almahallawy Adding support for TPS4 (CP2520 Pattern 3) PHY pattern source tests. v2: uniform bit names TP4a/b/c (Manasi) Signed-off-by: Khaled Almahallawy Reviewed-by: Manasi Navare Tested-by: Khaled Almahallawy --- drivers/gpu/drm/i915/display/intel_dp.c | 14 --

[git pull] drm fixes for 5.9-rc4

2020-09-03 Thread Dave Airlie
Hi Linus, Not much going on this week, nouveau has a display hw bug workaround, amdgpu has some PM fixes and CIK regression fixes, one single radeon PLL fix, and a couple of i915 display fixes. Dave. drm-fixes-2020-09-04: drm fixes for 5.9-rc4 amdgpu: - Fix for 32bit systems - SW CTF fix -

Re: [PATCH v9 2/3] drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge

2020-09-03 Thread Laurent Pinchart
Hi Tomi, On Tue, Sep 01, 2020 at 10:46:03AM +0300, Tomi Valkeinen wrote: > Hi Swapnil, > > On 31/08/2020 11:23, Swapnil Jakhade wrote: > > > +static int cdns_mhdp_validate_mode_params(struct cdns_mhdp_device *mhdp, > > + const struct drm_display_mode *mode, >

[PATCH 4/4] drm/msm: Disable the RPTR shadow

2020-09-03 Thread Jordan Crouse
Disable the RPTR shadow across all targets. It will be selectively re-enabled later for targets that need it. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a2xx_gpu.c | 5 + drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 10 + drivers/gpu/drm/msm/adreno/a4xx_gpu.c |

[PATCH 1/4] drm/msm: Split the a5xx preemption record

2020-09-03 Thread Jordan Crouse
The main a5xx preemption record can be marked as privileged to protect it from user access but the counters storage needs to be remain unprivileged. Split the buffers and mark the critical memory as privileged. Cc: sta...@vger.kernel.org Signed-off-by: Jordan Crouse ---

[PATCH 2/4] drm/msm: Enable expanded apriv support for a650

2020-09-03 Thread Jordan Crouse
a650 supports expanded apriv support that allows us to map critical buffers (ringbuffer and memstore) as as privileged to protect them from corruption. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 6 +- drivers/gpu/drm/msm/msm_gpu.c | 2 +-

[PATCH 0/4] drm/msm: Protect the RPTR shadow

2020-09-03 Thread Jordan Crouse
On Adreno GPUs there is an option to shadow the RPTR register in GPU accessible memory. The shadow memory allows the kernel driver to query the value of the RPTR for each ringbuffer even if it is preempted out or if the GPU is turned off during aggressive power management. There are risks to

[PATCH 3/4] drm/msm: Disable preemption on all 5xx targets

2020-09-03 Thread Jordan Crouse
Temporarily disable preemption on a5xx targets pending some improvements to protect the RPTR shadow from being corrupted. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 0/1] Convert to using devm_drm_dev_alloc()

2020-09-03 Thread Luben Tuikov
This is based on top of Daniel's documentation patch and it applies cleanly onto amd-staging-drm-next. I'm also running this live. Luben Tuikov (1): drm/amdgpu: Convert to using devm_drm_dev_alloc() drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 11 +++ 1 file changed, 3 insertions(+), 8

[PATCH 1/1] drm/amdgpu: Convert to using devm_drm_dev_alloc()

2020-09-03 Thread Luben Tuikov
Convert to using devm_drm_dev_alloc(), as drm_dev_init() is going away. Signed-off-by: Luben Tuikov --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

Re: [PATCH v5 0/7] make hdmi work on bananapi-r2

2020-09-03 Thread Chun-Kuang Hu
Frank Wunderlich 於 2020年9月3日 週四 下午11:07寫道: > > Hi > > Any opinion about DTS Patches? Which maintainer will include it in tree? Is > any ack/review needed? According to maintainer list [1], the maintainer is ARM/Mediatek SoC support M: Matthias Brugger L: linux-arm-ker...@lists.infradead.org

[PATCH 3/4] drm/msm/dp: add debugfs nodes for video pattern tests

2020-09-03 Thread Abhinav Kumar
Add the debugfs nodes needed for the video pattern compliance tests to MSM DP driver. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_debug.c | 184 ++ drivers/gpu/drm/msm/dp/dp_link.h | 23 2 files changed, 207 insertions(+) diff --git

[PATCH 4/4] drm/msm/dp: remove mode hard-coding in case of DP CTS

2020-09-03 Thread Abhinav Kumar
No need to fix the number of resolutions to one during the video pattern CTS test. The userspace test client will handle both the hotplug as well as picking the right resolution for the test. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 3 --

[PATCH 1/4] drm/msm/dp: add debugfs support to DP driver

2020-09-03 Thread Abhinav Kumar
To prepare the MSM DP driver for running video pattern compliance tests introduce debugfs module for it. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/Makefile| 3 +- drivers/gpu/drm/msm/dp/dp_debug.c | 310 drivers/gpu/drm/msm/dp/dp_debug.h |

[PATCH 0/4] Add support for video pattern DP CTS to MSM DP

2020-09-03 Thread Abhinav Kumar
Add support for video pattern Display Port Compliance tests to MSM DP driver. The userspace component of this shall be part of another series in the igt mailing list. This depends on series [1] , [2] and [3] which add basic Display Port support to MSM chipsets. [1]

[PATCH 2/4] drm/msm/dp: move debugfs node to /sys/kernel/debug/dri/*/

2020-09-03 Thread Abhinav Kumar
Move the MSM DP debugfs node from /sys/kernel/debug/drm_dp to /sys/kernel/debug/dri/*/ as required for video pattern compliance test suite. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 7 + drivers/gpu/drm/msm/dp/dp_debug.c | 31 --

[pull] amdgpu, amdkfd, radeon, scheduler drm-next-5.10

2020-09-03 Thread Alex Deucher
Hi Dave, Daniel, First batch of new stuff for 5.10. Forgot to mention in the tag, switch amdgpu from using drm_dev_alloc to drm_dev_init. Will need a follow up patch to switch to devm_drm_dev_alloc. The following changes since commit 922e7455bb6122696b0420172700ea2b4e2f5739: Revert

Re: [PATCH v2 22/23] drm/virtio: implement blob resources: resource create blob ioctl

2020-09-03 Thread Gurchetan Singh
On Thu, Sep 3, 2020 at 2:11 PM Chia-I Wu wrote: > On Wed, Sep 2, 2020 at 2:09 PM Gurchetan Singh > wrote: > > > > From: Gerd Hoffmann > > > > Implement resource create blob as specified. > > > > Signed-off-by: Gerd Hoffmann > > Co-developed-by: Gurchetan Singh > > Signed-off-by: Gurchetan

Re: [PATCH 01/16] drm/encoder: remove obsolete documentation of bridge

2020-09-03 Thread Laurent Pinchart
Hi Michael, Thank you for the patch. On Thu, Sep 03, 2020 at 06:57:02PM +0200, Michael Tretter wrote: > In commit 05193dc38197 ("drm/bridge: Make the bridge chain a > double-linked list") the bridge has been removed and replaced by a > private field. Remove the leftover documentation of the

Re: [PATCH] drm/komeda: Drop local dma_parms

2020-09-03 Thread Robin Murphy
On 2020-09-03 21:36, Robin Murphy wrote: Since commit 9495b7e92f71 ("driver core: platform: Initialize dma_parms for platform devices"), struct platform_device already provides a dma_parms structure, so we can save allocating another one. Signed-off-by: Robin Murphy --- FYI, get_maintainer.pl

Re: [PATCH v2 22/23] drm/virtio: implement blob resources: resource create blob ioctl

2020-09-03 Thread Chia-I Wu
On Wed, Sep 2, 2020 at 2:09 PM Gurchetan Singh wrote: > > From: Gerd Hoffmann > > Implement resource create blob as specified. > > Signed-off-by: Gerd Hoffmann > Co-developed-by: Gurchetan Singh > Signed-off-by: Gurchetan Singh > Acked-by: Tomeu Vizoso > --- >

[PATCH] drm/msm: Drop local dma_parms

2020-09-03 Thread Robin Murphy
Since commit 9495b7e92f71 ("driver core: platform: Initialize dma_parms for platform devices"), struct platform_device already provides a dma_parms structure, so we can save allocating another one. Also the DMA segment size is simply a size, not a bitmask. Signed-off-by: Robin Murphy ---

[PATCH] drm/mediatek: Drop local dma_parms

2020-09-03 Thread Robin Murphy
Since commit 9495b7e92f71 ("driver core: platform: Initialize dma_parms for platform devices"), struct platform_device already provides a dma_parms structure, so we can save allocating another one. Also the DMA segment size is simply a size, not a bitmask. Signed-off-by: Robin Murphy ---

[PATCH] drm/exynos: Drop local dma_parms

2020-09-03 Thread Robin Murphy
Since commit 9495b7e92f71 ("driver core: platform: Initialize dma_parms for platform devices"), struct platform_device already provides a dma_parms structure, so we can save allocating another one. Also the DMA segment size is simply a size, not a bitmask. Signed-off-by: Robin Murphy ---

Re: [PATCH] drm/managed: Cleanup of unused functions and polishing docs

2020-09-03 Thread Luben Tuikov
On 2020-09-03 10:26 a.m., Daniel Vetter wrote: > On Wed, Sep 02, 2020 at 09:26:27AM +0200, Daniel Vetter wrote: >> Following functions are only used internally, not by drivers: >> - devm_drm_dev_init >> >> Also, now that we have a very slick and polished way to allocate a >> drm_device with

[PATCH] drm/etnaviv: Drop local dma_parms

2020-09-03 Thread Robin Murphy
Since commit 9495b7e92f71 ("driver core: platform: Initialize dma_parms for platform devices"), struct platform_device already provides a dma_parms structure, so we can save allocating another one. Signed-off-by: Robin Murphy --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 3 ---

[PATCH] drm/komeda: Drop local dma_parms

2020-09-03 Thread Robin Murphy
Since commit 9495b7e92f71 ("driver core: platform: Initialize dma_parms for platform devices"), struct platform_device already provides a dma_parms structure, so we can save allocating another one. Signed-off-by: Robin Murphy --- FYI, get_maintainer.pl seems to be choking on your L: entry

Re: [PATCH 00/16] drm/exynos: Convert driver to drm bridge

2020-09-03 Thread Krzysztof Kozlowski
On Thu, 3 Sep 2020 at 18:57, Michael Tretter wrote: > > Hello, > > the Exynos MIPI DSI Phy is also found on the i.MX8M Mini. However, on the > i.MX8M Mini, the bridge is driven by an LCDIF display controller instead of > the Exynos Decon. The driver for the LCDIF does not use the component >

[radeon-alex:amd-staging-drm-next 4/5] drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initialized field overwritten

2020-09-03 Thread kernel test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next head: d57d5c9c09cfb661eb0e8a9c41020aa71771dd7d commit: e2ef6329fc53a026198a3788db088f85820690b6 [4/5] drm/amdgpu/gmc9: print client id string for mmhub config: i386-randconfig-a012-20200902 (attached as .config)

[PATCH v2 3/6] dt-bindings: gpu: arm, mali-utgard: Correct Maxime's email

2020-09-03 Thread Krzysztof Kozlowski
Update the address of Maxime Ripard as one in @free-electrons.com does not work. Cc: Maxime Ripard Signed-off-by: Krzysztof Kozlowski Acked-by: Maxime Ripard --- Changes since v1: 1. Add Ack --- Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 2 +- 1 file changed, 1

[PATCH v2 6/6] arm64: dts: exynos: Align OPP table name with dt-schema

2020-09-03 Thread Krzysztof Kozlowski
Device tree nodes should have hyphens instead of underscores. This is also expected by the bindings. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 5/6] ARM: dts: exynos: Align OPP table name with dt-schema

2020-09-03 Thread Krzysztof Kozlowski
Device tree nodes should have hyphens instead of underscores. This is also expected by the bindings. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch --- arch/arm/boot/dts/exynos4412.dtsi | 16 arch/arm/boot/dts/exynos5250.dtsi | 2 +- 2 files changed,

[PATCH v2 4/6] dt-bindings: gpu: samsung-rotator: Add missing properties

2020-09-03 Thread Krzysztof Kozlowski
Add common properties appearing in DTSes (iommus, power-domains) to fix dtbs_check warnings like: arch/arm/boot/dts/exynos4210-i9100.dt.yaml: rotator@1281: 'iommus', 'power-domains' do not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- Changes

[PATCH v2 2/6] dt-bindings: gpu: arm, mali-utgard: Add missing properties

2020-09-03 Thread Krzysztof Kozlowski
Add common properties appearing in DTSes (opp-table) to fix dtbs_check warnings like: arch/arm/boot/dts/exynos4210-i9100.dt.yaml: gpu@1300: 'opp-table' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Add properties

[PATCH v2 1/6] dt-bindings: gpu: arm, mali-midgard: Add missing properties

2020-09-03 Thread Krzysztof Kozlowski
Add common properties appearing in DTSes (opp-table) to fix dtbs_check warnings like: arch/arm64/boot/dts/exynos/exynos5433-tm2.dt.yaml: gpu@14ac: 'opp-table' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Add

Re: [PATCH 0/3] Use implicit kref infra

2020-09-03 Thread Luben Tuikov
On 2020-09-02 9:57 p.m., Pan, Xinhui wrote: > > >> 2020年9月2日 22:50,Tuikov, Luben 写道: >> >> On 2020-09-02 00:43, Pan, Xinhui wrote: >>> >>> 2020年9月2日 11:46,Tuikov, Luben 写道: On 2020-09-01 21:42, Pan, Xinhui wrote: > If you take a look at the below function, you should not use

[PATCH 00/16] drm/exynos: Convert driver to drm bridge

2020-09-03 Thread Michael Tretter
Hello, the Exynos MIPI DSI Phy is also found on the i.MX8M Mini. However, on the i.MX8M Mini, the bridge is driven by an LCDIF display controller instead of the Exynos Decon. The driver for the LCDIF does not use the component framework, but uses drm bridges. This series converts the Exynos MIPI

[PATCH 01/16] drm/encoder: remove obsolete documentation of bridge

2020-09-03 Thread Michael Tretter
In commit 05193dc38197 ("drm/bridge: Make the bridge chain a double-linked list") the bridge has been removed and replaced by a private field. Remove the leftover documentation of the removed field. Signed-off-by: Michael Tretter --- include/drm/drm_encoder.h | 1 - 1 file changed, 1

[PATCH 08/16] drm/exynos: use exynos_dsi as drvdata

2020-09-03 Thread Michael Tretter
Use the exynos_dsi as drvdata instead of the encoder to further decouple the driver from the encoder. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 23 +++ 1 file changed, 7 insertions(+), 16 deletions(-) diff --git

[PATCH 06/16] drm/exynos: configure mode on drm bridge

2020-09-03 Thread Michael Tretter
The driver uses the encoder to get the mode that shall be configured. This is not possible, if the driver is used as a bridge, because the encoder might not be used. Use the mode_set function to get the display mode. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/exynos_drm_dsi.c |

[PATCH 03/16] drm/exynos: remove in_bridge_node from exynos_dsi

2020-09-03 Thread Michael Tretter
We do not need to keep a reference to the in_bridge_node, but we can simply drop it, once we found and attached the previous bridge. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git

[PATCH 09/16] drm/exynos: call probe helper from bind

2020-09-03 Thread Michael Tretter
The probe shall only register the driver at the component framework. The actual probing happens when the driver is bound. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 27 + 1 file changed, 14 insertions(+), 13 deletions(-) diff --git

[PATCH 04/16] drm/exynos: implement a drm bridge

2020-09-03 Thread Michael Tretter
Make the exynos_dsi driver a full drm bridge that can be found and used from other drivers. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 45 +++-- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git

[PATCH 14/16] drm/exynos: add callback for enabling i80 mode

2020-09-03 Thread Michael Tretter
Display controllers need to know if the MIPI DSI bridge is running in command or video mode. Allow platform drivers to register a callback for being notified about the used mode. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 24 ++-- 1 file

[PATCH 13/16] drm/exynos: add callback for tearing effect handler

2020-09-03 Thread Michael Tretter
The tearing effect interrupts are not handled by the MIPI DSI bridge driver, but the display controller driver. Allow platforms to register a callback for the tearing effect interrupt. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 19 --- 1 file

[PATCH 10/16] drm/exynos: move dsi host registration to probe helper

2020-09-03 Thread Michael Tretter
The bind/unbind API will be only used with the component framework, but the mipi dsi host is always required. Therefore, move it to the shared probe helper function. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 10 +++--- 1 file changed, 7 insertions(+), 3

[PATCH 15/16] drm/exynos: split out platform specific code

2020-09-03 Thread Michael Tretter
Split the driver into the drm bridge driver and the exynos platform specific driver. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/Makefile | 2 +- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 312 ++ drivers/gpu/drm/exynos/exynos_drm_dsi.h |

[PATCH 12/16] drm/exynos: use identifier instead of register offsets

2020-09-03 Thread Michael Tretter
Different revisions of the MIPI-DSI PHY have slightly different register layouts. Currently, the register layout was stored per platform, which makes it necessary to define the layout for each new platform. Keep the register layout in the driver and use identifiers to specify which register

[PATCH 02/16] drm/exynos: extract helper functions for probe

2020-09-03 Thread Michael Tretter
As the driver shall be usable with drivers that use the component framework and drivers that don't, split the common probing code into a separate function that can be called from different locations. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 54

[PATCH 11/16] drm/exynos: shift register values to fields on write

2020-09-03 Thread Michael Tretter
The phy timings are already shifted to the field position. If the driver is reused on multiple platforms, this exposes the field positions to the platform code. Store only the timing values in the platform data and shift the value to the field when writing the fields to the registers.

[PATCH 05/16] drm/exynos: convert encoder functions to bridge function

2020-09-03 Thread Michael Tretter
If other drivers use the exynos_dsi driver as a bridge, they might bring their own encoder. Enable and disable the MIPI-DSI bridge using the bridge functions instead of the encoder functions. Signed-off-by: Michael Tretter --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 33

[PATCH 16/16] drm/exynos: move bridge driver to bridges

2020-09-03 Thread Michael Tretter
As the driver is not platform dependent anymore, move it to the drm bridge driver directory. Signed-off-by: Michael Tretter --- drivers/gpu/drm/bridge/Kconfig|7 + drivers/gpu/drm/bridge/Makefile |1 + drivers/gpu/drm/bridge/samsung-dsim.c | 1797

[PATCH 07/16] drm/exynos: get encoder from bridge whenever possible

2020-09-03 Thread Michael Tretter
The bridge will not necessarily use the encoder of struct exynos_dsi, but might use another encoder from another drm driver. Therefore, the driver has to use the encoder from the bridge instead of the one from exynos_dsi. Signed-off-by: Michael Tretter ---

Re: [PATCH] dt-bindings: gpu: samsung-rotator: Use unevaluatedProperties

2020-09-03 Thread Rob Herring
On Sun, Aug 30, 2020 at 01:30:02PM +0200, Krzysztof Kozlowski wrote: > Additional properties or nodes actually might appear (e.g. power > domains) so use unevaluatedProperties to fix dtbs_check warnings like: > > arch/arm/boot/dts/exynos4210-i9100.dt.yaml: rotator@1281: > 'iommus',

Re: [PATCH 01/10] dt-bindings: arm: samsung: pmu: Use unevaluatedProperties

2020-09-03 Thread Rob Herring
On Tue, Sep 01, 2020 at 03:50:00PM +0100, Mark Brown wrote: > On Sat, 29 Aug 2020 16:24:52 +0200, Krzysztof Kozlowski wrote: > > Additional properties actually might appear (e.g. assigned-clocks) so > > use unevaluatedProperties to fix dtbs_check warnings like: > > > >

Re: [PATCH 06/10] dt-bindings: sound: samsung-i2s: Use unevaluatedProperties

2020-09-03 Thread Rob Herring
On Sat, Aug 29, 2020 at 04:24:57PM +0200, Krzysztof Kozlowski wrote: > Additional properties actually might appear (e.g. power-domains) so use > unevaluatedProperties to fix dtbs_check warnings like: > > arch/arm64/boot/dts/exynos/exynos5433-tm2.dt.yaml: i2s@1144: > Additional

Re: [PATCH 02/10] dt-bindings: gpu: arm,mali-midgard: Use unevaluatedProperties

2020-09-03 Thread Rob Herring
On Sat, Aug 29, 2020 at 04:24:53PM +0200, Krzysztof Kozlowski wrote: > Additional properties or nodes actually might appear (e.g. operating > points table) so use unevaluatedProperties to fix dtbs_check warnings > like: > > arch/arm64/boot/dts/exynos/exynos5433-tm2.dt.yaml: gpu@14ac: >

Re: [PATCH 03/10] dt-bindings: timer: exynos4210-mct: Use unevaluatedProperties

2020-09-03 Thread Rob Herring
On Sat, Aug 29, 2020 at 04:24:54PM +0200, Krzysztof Kozlowski wrote: > Additional properties actually might appear (e.g. clocks) so use > unevaluatedProperties to fix dtbs_check warnings like: > > arch/arm64/boot/dts/exynos/exynos5433-tm2.dt.yaml: timer@101c: > 'clock-names', 'clocks'

Re: [PATCH 01/10] dt-bindings: arm: samsung: pmu: Use unevaluatedProperties

2020-09-03 Thread Rob Herring
On Sat, Aug 29, 2020 at 04:24:52PM +0200, Krzysztof Kozlowski wrote: > Additional properties actually might appear (e.g. assigned-clocks) so > use unevaluatedProperties to fix dtbs_check warnings like: > > arch/arm64/boot/dts/exynos/exynos5433-tm2.dt.yaml: > system-controller@105c: >

[RESEND] Requests For Proposals for hosting XDC2021 are now open

2020-09-03 Thread Lyude Paul
(Including a bunch more emails in the To: that got missed the first time) Hello everyone! The X.org board is soliciting proposals to host XDC in 2021. Since XDC2020 is being held virtually this year, we've decided to host in either North America or Europe. However, the board is open to other

Re: [PATCH v5 3/3] xen: add helpers to allocate unpopulated memory

2020-09-03 Thread Jürgen Groß
On 01.09.20 10:33, Roger Pau Monne wrote: To be used in order to create foreign mappings. This is based on the ZONE_DEVICE facility which is used by persistent memory devices in order to create struct pages and kernel virtual mappings for the IOMEM areas of such devices. Note that on kernels

Re: [PATCH] dt-bindings: gpu: arm, mali-utgard: Use unevaluatedProperties

2020-09-03 Thread Rob Herring
On Sun, Aug 30, 2020 at 2:40 AM Krzysztof Kozlowski wrote: > > Additional properties or nodes actually might appear (e.g. operating > points table) so use unevaluatedProperties to fix dtbs_check warnings > like: > > arch/arm/boot/dts/exynos4210-i9100.dt.yaml: gpu@1300: > 'opp_table'

Re: [PATCH v4 04/15] drm/bridge: tc358764: add drm_panel_bridge support

2020-09-03 Thread Andrzej Hajda
Hi Laurent, On 03.09.2020 11:59, Laurent Pinchart wrote: > Hi Andrzej, > > On Thu, Sep 03, 2020 at 11:40:58AM +0200, Andrzej Hajda wrote: >> On 26.07.2020 22:33, Sam Ravnborg wrote: >>> Prepare the tc358764 bridge driver for use in a chained setup by >>> replacing direct use of drm_panel with

Re: [PATCH] drm/managed: Cleanup of unused functions and polishing docs

2020-09-03 Thread Daniel Vetter
On Wed, Sep 02, 2020 at 09:26:27AM +0200, Daniel Vetter wrote: > Following functions are only used internally, not by drivers: > - devm_drm_dev_init > > Also, now that we have a very slick and polished way to allocate a > drm_device with devm_drm_dev_alloc, update all the docs to reflect the >

Re: [PATCH] drm/panfrost: Set DMA max segment size

2020-09-03 Thread Steven Price
On 03/09/2020 14:59, Robin Murphy wrote: Since all we do with scatterlists is map them in the MMU, we don't have any hardware constraints on how they're laid out. Let the DMA layer know so it won't warn when DMA API debugging is enabled. Signed-off-by: Robin Murphy Reviewed-by: Steven Price

[PATCH] drm/panfrost: Set DMA max segment size

2020-09-03 Thread Robin Murphy
Since all we do with scatterlists is map them in the MMU, we don't have any hardware constraints on how they're laid out. Let the DMA layer know so it won't warn when DMA API debugging is enabled. Signed-off-by: Robin Murphy --- drivers/gpu/drm/panfrost/panfrost_gpu.c | 1 + 1 file changed, 1

Re: [PATCH v10 07/17] pwm: lpss: Remove suspend/resume handlers

2020-09-03 Thread Hans de Goede
Hi, On 9/3/20 2:56 PM, Andy Shevchenko wrote: On Thu, Sep 03, 2020 at 03:48:16PM +0300, Andy Shevchenko wrote: On Thu, Sep 03, 2020 at 01:23:27PM +0200, Hans de Goede wrote: the question is do we need to have similar in acpi_lpss.c? For example, static const struct lpss_device_desc

Re: [PATCH v11 07/11] device-mapping: Introduce DMA range map, supplanting dma_pfn_offset

2020-09-03 Thread Jim Quinlan
On Tue, Sep 1, 2020 at 4:24 AM Christoph Hellwig wrote: > > I've applied this to the dma-mapping tree. > > I had to resolve a conflict in drivers/of/address.c with a recent > mainline commit. I also applied the minor tweaks Andy pointed out > plus a few more style changes. A real change is that

Re: [PATCH v11 07/11] device-mapping: Introduce DMA range map, supplanting dma_pfn_offset

2020-09-03 Thread Jim Quinlan
On Wed, Sep 2, 2020 at 5:53 PM Nathan Chancellor wrote: > > On Mon, Aug 24, 2020 at 03:30:20PM -0400, Jim Quinlan wrote: > > The new field 'dma_range_map' in struct device is used to facilitate the > > use of single or multiple offsets between mapping regions of cpu addrs and > > dma addrs. It

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

2020-09-03 Thread Sumit Semwal
Hello Joe, On Wed, 26 Aug 2020 at 20:38, Christian König wrote: > > Am 25.08.20 um 06:56 schrieb Joe Perches: > > Use semicolons and braces. > > > > Signed-off-by: Joe Perches > > Acked-by: Christian König FWIW, Acked-by: Sumit Semwal > > > --- > > drivers/dma-buf/st-dma-fence.c | 7

[Bug 209129] HW related error message under Gnome important tab

2020-09-03 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=209129 --- Comment #14 from Laszlo (laszlo.a.t...@googlemail.com) --- Then please assign a person at the mentioned new thread who can examine the reason of this bug, verify the root cause, assess whether they have fixed it or not. Then he can suggest

Re: [PATCH v9 2/3] drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge

2020-09-03 Thread Tomi Valkeinen
Hi Milind, On 03/09/2020 09:22, Milind Parab wrote: > Also, note that CDNS MHDP implements DP_FRAMER_TU_p where bits 5:0 is > tu_valid_symbols. So max programmable value is 63. > Register document gives following explanation > "Number of valid symbols per Transfer Unit (TU). Rounded down to

[PATCH v10 13/17] pwm: crc: Implement get_state() method

2020-09-03 Thread Hans de Goede
Implement the pwm_ops.get_state() method to complete the support for the new atomic PWM API. Reviewed-by: Andy Shevchenko Acked-by: Thierry Reding Signed-off-by: Hans de Goede --- Changes in v6: - Rebase on 5.9-rc1 - Use DIV_ROUND_UP_ULL because pwm_state.period and .duty_cycle are now u64

[PATCH v10 14/17] drm/i915: panel: Add get_vbt_pwm_freq() helper

2020-09-03 Thread Hans de Goede
Factor the code which checks and drm_dbg_kms-s the VBT PWM frequency out of get_backlight_max_vbt(). This is a preparation patch for honering the VBT PWM frequency for devices which use an external PWM controller (devices using pwm_setup_backlight()). Acked-by: Jani Nikula Signed-off-by: Hans

[PATCH v10 12/17] pwm: crc: Implement apply() method to support the new atomic PWM API

2020-09-03 Thread Hans de Goede
Replace the enable, disable and config pwm_ops with an apply op, to support the new atomic PWM API. Reviewed-by: Andy Shevchenko Acked-by: Thierry Reding Signed-off-by: Hans de Goede --- Changes in v6: - Rebase on 5.9-rc1 - Use do_div when calculating level because pwm_state.period and

[PATCH v10 16/17] drm/i915: panel: Honor the VBT PWM min setting for devs with an external PWM controller

2020-09-03 Thread Hans de Goede
So far for devices using an external PWM controller (devices using pwm_setup_backlight()), we have been hardcoding the minimum allowed PWM level to 0. But several of these devices specify a non 0 minimum setting in their VBT. Change pwm_setup_backlight() to use get_backlight_min_vbt() to get the

[PATCH v10 10/17] pwm: crc: Fix period changes not having any effect

2020-09-03 Thread Hans de Goede
The pwm-crc code is using 2 different enable bits: 1. bit 7 of the PWM0_CLK_DIV (PWM_OUTPUT_ENABLE) 2. bit 0 of the BACKLIGHT_EN register The BACKLIGHT_EN register at address 0x51 really controls a separate output-only GPIO which is earmarked to be used as output connected to the backlight-enable

[PATCH v10 17/17] drm/i915: panel: Use atomic PWM API for devs with an external PWM controller

2020-09-03 Thread Hans de Goede
Now that the PWM drivers which we use have been converted to the atomic PWM API, we can move the i915 panel code over to using the atomic PWM API. The removes a long standing FIXME and this removes a flicker where the backlight brightness would jump to 100% when i915 loads even if using the

[PATCH v10 02/17] ACPI / LPSS: Save Cherry Trail PWM ctx registers only once (at activation)

2020-09-03 Thread Hans de Goede
The DSDTs on most Cherry Trail devices have an ugly clutch where the PWM controller gets turned off from the _PS3 method of the graphics-card dev: Method (_PS3, 0, Serialized) // _PS3: Power State 3 { ... PWMB = PWMC /*

[PATCH v10 15/17] drm/i915: panel: Honor the VBT PWM frequency for devs with an external PWM controller

2020-09-03 Thread Hans de Goede
So far for devices using an external PWM controller (devices using pwm_setup_backlight()), we have been hardcoding the period-time passed to pwm_config() to 21333 ns. I suspect this was done because many VBTs set the PWM frequency to 200 which corresponds to a period-time of 500 ns, which

[PATCH v10 09/17] pwm: crc: Fix off-by-one error in the clock-divider calculations

2020-09-03 Thread Hans de Goede
The CRC PWM controller has a clock-divider which divides the clock with a value between 1-128. But as can seen from the PWM_DIV_CLK_xxx defines, this range maps to a register value of 0-127. So after calculating the clock-divider we must subtract 1 to get the register value, unless the requested

[PATCH v10 11/17] pwm: crc: Enable/disable PWM output on enable/disable

2020-09-03 Thread Hans de Goede
The pwm-crc code is using 2 different enable bits: 1. bit 7 of the PWM0_CLK_DIV (PWM_OUTPUT_ENABLE) 2. bit 0 of the BACKLIGHT_EN register So far we've kept the PWM_OUTPUT_ENABLE bit set when disabling the PWM, this commit makes crc_pwm_disable() clear it on disable and makes crc_pwm_enable() set

[PATCH v10 04/17] pwm: lpss: Add range limit check for the base_unit register value

2020-09-03 Thread Hans de Goede
When the user requests a high enough period ns value, then the calculations in pwm_lpss_prepare() might result in a base_unit value of 0. But according to the data-sheet the way the PWM controller works is that each input clock-cycle the base_unit gets added to a N bit counter and that counter

[PATCH v10 06/17] pwm: lpss: Make pwm_lpss_apply() not rely on existing hardware state

2020-09-03 Thread Hans de Goede
Before this commit pwm_lpss_apply() was assuming 2 pre-conditions were met by the existing hardware state: 1. That the base-unit and on-time-div read back from the control register are those actually in use, so that it can skip setting the update bit if the read-back value matches the desired

[PATCH v10 08/17] pwm: crc: Fix period / duty_cycle times being off by a factor of 256

2020-09-03 Thread Hans de Goede
While looking into adding atomic-pwm support to the pwm-crc driver I noticed something odd, there is a PWM_BASE_CLK define of 6 MHz and there is a clock-divider which divides this with a value between 1-128, and there are 256 duty-cycle steps. The pwm-crc code before this commit assumed that a

[PATCH v10 05/17] pwm: lpss: Add pwm_lpss_prepare_enable() helper

2020-09-03 Thread Hans de Goede
In the not-enabled -> enabled path pwm_lpss_apply() needs to get a runtime-pm reference; and then on any errors it needs to release it again. This leads to somewhat hard to read code. This commit introduces a new pwm_lpss_prepare_enable() helper and moves all the steps necessary for the

[PATCH v10 03/17] pwm: lpss: Fix off by one error in base_unit math in pwm_lpss_prepare()

2020-09-03 Thread Hans de Goede
According to the data-sheet the way the PWM controller works is that each input clock-cycle the base_unit gets added to a N bit counter and that counter overflowing determines the PWM output frequency. So assuming e.g. a 16 bit counter this means that if base_unit is set to 1, after 65535 input

  1   2   >