[PATCH] drm/i915: Add locking to i915_gem_evict_vm(), v3.

2022-01-16 Thread Maarten Lankhorst
i915_gem_evict_vm will need to be able to evict objects that are locked by the current ctx. By testing if the current context already locked the object, we can do this correctly. This allows us to evict the entire vm even if we already hold some objects' locks. Previously, this was spread over sev

[PATCH] drm/radeon: fix UVD suspend error

2022-01-16 Thread Qiang Ma
I met a bug recently and the kernel log: [ 330.171875] radeon :03:00.0: couldn't schedule ib [ 330.175781] [drm:radeon_uvd_suspend [radeon]] *ERROR* Error destroying UVD (-22)! In radeon drivers, using UVD suspend is as follows: if (rdev->has_uvd) { uvd_v1_0_fini(rdev); ra

Re: [RFC 4/6] dma-buf: Add DMA-BUF exporter op to charge a DMA-BUF to a cgroup.

2022-01-16 Thread Christian König
Am 15.01.22 um 02:06 schrieb Hridya Valsaraju: The optional exporter op provides a way for processes to transfer charge of a buffer to a different process. This is essential for the cases where a central allocator process does allocations for various subsystems, hands over the fd to the client wh

Re: [PATCH v2 2/3] drm/rockchip: cdn-dp: Support HDMI codec plug-change callback

2022-01-16 Thread Chen-Yu Tsai
On Sat, Jan 15, 2022 at 7:03 AM Brian Norris wrote: > > Some audio servers like to monitor a jack device (perhaps combined with > EDID, for audio-presence info) to determine DP/HDMI audio presence. > > Signed-off-by: Brian Norris Reviewed-by: Chen-Yu Tsai

Re: [PATCH v2 1/3] arm64: dts: rockchip: Switch RK3399-Gru DP to SPDIF output

2022-01-16 Thread Chen-Yu Tsai
On Sat, Jan 15, 2022 at 7:03 AM Brian Norris wrote: > > Commit b18c6c3c7768 ("ASoC: rockchip: cdn-dp sound output use spdif") > switched the platform to SPDIF, but we didn't fix up the device tree. > > Drop the pinctrl settings, because the 'spdif_bus' pins are either: > * unused (on kevin, bob),

Re: [PATCH] drm/amdgpu: remove duplicate include

2022-01-16 Thread Christian König
Am 15.01.22 um 08:02 schrieb cgel@gmail.com: From: Changcheng Deng 'drm/drm_drv.h' included in 'amdgpu_ttm.c' is duplicated. It is also included on 53 line. Reported-by: Zeal Robot Signed-off-by: Changcheng Deng Acked-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm

[PATCH v10 13/13] arm64: dts: mediatek: Get rid of mediatek, larb for MM nodes

2022-01-16 Thread Yong Wu
After adding device_link between the IOMMU consumer and smi, the mediatek,larb is unnecessary now. CC: Matthias Brugger Signed-off-by: Yong Wu Reviewed-by: Evan Green Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 16 arch/arm64/boot/d

[PATCH v10 12/13] arm: dts: mediatek: Get rid of mediatek, larb for MM nodes

2022-01-16 Thread Yong Wu
After adding device_link between the IOMMU consumer and smi, the mediatek,larb is unnecessary now. CC: Matthias Brugger Signed-off-by: Yong Wu Reviewed-by: Evan Green Tested-by: Frank Wunderlich # BPI-R2/MT7623 --- arch/arm/boot/dts/mt2701.dtsi | 2 -- arch/arm/boot/dts/mt7623n.dtsi | 5

[PATCH v10 11/13] memory: mtk-smi: Get rid of mtk_smi_larb_get/put

2022-01-16 Thread Yong Wu
After adding device_link between the iommu consumer and smi-larb, the pm_runtime_get(_sync) of smi-larb and smi-common will be called automatically. we can get rid of mtk_smi_larb_get/put. CC: Matthias Brugger Signed-off-by: Yong Wu Reviewed-by: Evan Green Acked-by: Krzysztof Kozlowski Acked-b

[PATCH v10 10/13] media: mtk-vcodec: Get rid of mtk_smi_larb_get/put

2022-01-16 Thread Yong Wu
MediaTek IOMMU has already added the device_link between the consumer and smi-larb device. If the vcodec devices call the pm_runtime_get_sync, the smi-larb's pm_runtime_get_sync also be called automatically. CC: Tiffany Lin CC: Irui Wang Signed-off-by: Yong Wu Reviewed-by: Evan Green Acked-by:

[PATCH v10 09/13] drm/mediatek: Get rid of mtk_smi_larb_get/put

2022-01-16 Thread Yong Wu
MediaTek IOMMU has already added the device_link between the consumer and smi-larb device. If the drm device calls the pm_runtime_get_sync, the smi-larb's pm_runtime_get_sync also be called automatically. CC: CK Hu CC: Philipp Zabel Signed-off-by: Yong Wu Reviewed-by: Evan Green Acked-by: Chun

[PATCH v10 08/13] drm/mediatek: Add pm runtime support for ovl and rdma

2022-01-16 Thread Yong Wu
From: Yongqiang Niu Prepare for smi cleaning up "mediatek,larb". Display use the dispsys device to call pm_rumtime_get_sync before. This patch add pm_runtime_xx with ovl and rdma device whose nodes has "iommus" property, then display could help pm_runtime_get for smi via ovl or rdma device. CC:

[PATCH v10 07/13] media: mtk-mdp: Get rid of mtk_smi_larb_get/put

2022-01-16 Thread Yong Wu
MediaTek IOMMU has already added the device_link between the consumer and smi-larb device. If the mdp device calls the pm_runtime_get_sync, the smi-larb's pm_runtime_get_sync also be called automatically. CC: Minghsiu Tsai CC: Houlong Wei Signed-off-by: Yong Wu Reviewed-by: Evan Green Reviewed

[PATCH v10 06/13] media: mtk-jpeg: Get rid of mtk_smi_larb_get/put

2022-01-16 Thread Yong Wu
MediaTek IOMMU has already added device_link between the consumer and smi-larb device. If the jpg device calls the pm_runtime_get_sync, the smi-larb's pm_runtime_get_sync also be called automatically. After removing the larb_get operations, then mtk_jpeg_clk_init is also unnecessary. Remove it too

[PATCH v10 05/13] iommu/mediatek: Add device_link between the consumer and the larb devices

2022-01-16 Thread Yong Wu
MediaTek IOMMU-SMI diagram is like below. all the consumer connect with smi-larb, then connect with smi-common. M4U | smi-common | - | |... | | larb1 larb2 | | vdec venc When the consumer works, it should enab

[PATCH v10 04/13] iommu/mediatek: Add probe_defer for smi-larb

2022-01-16 Thread Yong Wu
Prepare for adding device_link. The iommu consumer should use device_link to connect with the smi-larb(supplier). then the smi-larb should run before the iommu consumer. Here we delay the iommu driver until the smi driver is ready, then all the iommu consumers always are after the smi driver. Whe

[PATCH v10 03/13] iommu/mediatek: Return ENODEV if the device is NULL

2022-01-16 Thread Yong Wu
The platform device is created at: of_platform_default_populate_init: arch_initcall_sync ->of_platform_populate ->of_platform_device_create_pdata When entering our probe, all the devices should be already created. if it is null, means NODEV. Currently we don't get the fail case. It's a

[PATCH v10 02/13] iommu/mediatek-v1: Free the existed fwspec if the master dev already has

2022-01-16 Thread Yong Wu
When the iommu master device enters of_iommu_xlate, the ops may be NULL(iommu dev is defered), then it will initialize the fwspec here: [] (dev_iommu_fwspec_set) from [] (iommu_fwspec_init+0xbc/0xd4) [] (iommu_fwspec_init) from [] (of_iommu_xlate+0x7c/0x12c) [] (of_iommu_xlate) from [] (of_iommu_c

[PATCH v10 01/13] dt-binding: mediatek: Get rid of mediatek, larb for multimedia HW

2022-01-16 Thread Yong Wu
After adding device_link between the consumer with the smi-larbs, if the consumer call its owner pm_runtime_get(_sync), the pm_runtime_get(_sync) of smi-larb and smi-common will be called automatically. Thus, the consumer don't need this property. And IOMMU also know which larb this consumer conne

[PATCH v10 00/13] Clean up "mediatek,larb"

2022-01-16 Thread Yong Wu
MediaTek IOMMU block diagram always like below: M4U | smi-common | - | | ... | | larb1 larb2 | | vdec venc All the consumer connect with smi-larb, then connect with smi-common. When the consumer works, it should

Re: [GIT PULL] fbdev updates for v5.17-rc1

2022-01-16 Thread pr-tracker-bot
The pull request you sent on Sun, 16 Jan 2022 20:31:09 +0100: > http://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev.git > tags/fbdev-5.17-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3c750c7b614322a4ab50be0d57a76addb598d51d Thank you! -- Deet-doot

[PATCH v3] drm: bridge: fix unmet dependency on DRM_KMS_HELPER for DRM_PANEL_BRIDGE

2022-01-16 Thread Julian Braha
When DRM_CHIPONE_ICN6211 is selected, and DRM_KMS_HELPER is not selected, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for DRM_PANEL_BRIDGE Depends on [n]: HAS_IOMEM [=y] && DRM_BRIDGE [=y] && DRM_KMS_HELPER [=n] Selected by [y]: - DRM_CHIPONE_ICN6211 [=y]

Re: [RFC PATCH v3 2/3] drm: add support modifiers for drivers whose planes only support linear layout

2022-01-16 Thread Esaki Tomohito
Thank you for your reviews. On 2022/01/14 23:16, Andy Shevchenko wrote: On Fri, Jan 14, 2022 at 07:17:52PM +0900, Tomohito Esaki wrote: The LINEAR modifier is advertised as default if a driver doesn't specify modifiers. ... + const uint64_t default_modifiers[] = { + DRM_

Re: [GIT PULL] fbdev updates for v5.17-rc1

2022-01-16 Thread Linus Torvalds
On Sun, Jan 16, 2022 at 9:32 PM Helge Deller wrote: > > This pull request contains only one single initial patch which adds > myself to the MAINTAINERS file for the FRAMBUFFER LAYER. I'll pull this (as my test builds for other things complete), but this is just a note to say that this pull reques

Re: [PATCH 4/4] drm/bridge: tc358767: Add DSI-to-DPI mode support

2022-01-16 Thread Marek Vasut
On 11/27/21 04:24, Marek Vasut wrote: The TC358767/TC358867/TC9595 are all capable of operating in multiple modes, DPI-to-(e)DP, DSI-to-(e)DP, DSI-to-DPI. Add support for the DSI-to-DPI mode. This requires skipping most of the (e)DP initialization code, which is currently a large part of this dr

Re: [RFC PATH 1/3] drm: add support modifiers for drivers whose planes only support linear layout

2022-01-16 Thread Esaki Tomohito
Thank you for your reviews. On 2022/01/15 1:50, Daniel Vetter wrote: On Wed, Dec 22, 2021 at 02:27:25PM +0900, Tomohito Esaki wrote: The LINEAR modifier is advertised as default if a driver doesn't specify modifiers. However, there are legacy drivers such as radeon that do not support modifiers

RE: [PATCH 1/1] video: hyperv_fb: Fix validation of screen resolution

2022-01-16 Thread Haiyang Zhang
> -Original Message- > From: Michael Kelley (LINUX) > Sent: Sunday, January 16, 2022 2:19 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen > Hemminger ; wei@kernel.org; Wei Hu > ; Dexuan > Cui ; drawat.fl...@gmail.com; hhei ; > linux- > ker...@vger.kernel.org; linux-hyp...@vger

[Bug 215499] AMDGPU: Tahiti flagged as "[drm] Unsupported asic. Remove me when IP discovery init is in place."

2022-01-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215499 --- Comment #1 from Alexandre Demers (alexandre.f.dem...@gmail.com) --- Also, the kernel provided by ArchLinux is built with CONFIG_DRM_AMDGPU_SI=y -- You may reply to this email to add a comment. You are receiving this mail because: You are wa

[Bug 215499] AMDGPU: Tahiti flagged as "[drm] Unsupported asic. Remove me when IP discovery init is in place."

2022-01-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215499 Alexandre Demers (alexandre.f.dem...@gmail.com) changed: What|Removed |Added CC||alexandr

[Bug 215499] New: AMDGPU: Tahiti flagged as "[drm] Unsupported asic. Remove me when IP discovery init is in place."

2022-01-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215499 Bug ID: 215499 Summary: AMDGPU: Tahiti flagged as "[drm] Unsupported asic. Remove me when IP discovery init is in place." Product: Drivers Version: 2.5 Kernel Version: 5.16

[GIT PULL] fbdev updates for v5.17-rc1

2022-01-16 Thread Helge Deller
Hi Linus, The fbdev layer is orphaned, but seems to need some care. So I'd like to step up as new maintainer. This pull request contains only one single initial patch which adds myself to the MAINTAINERS file for the FRAMBUFFER LAYER. This was Acked-by: Geert Uytterhoeven Thanks, Helge ---

[PATCH 1/1] video: hyperv_fb: Fix validation of screen resolution

2022-01-16 Thread Michael Kelley
In the WIN10 version of the Synthetic Video protocol with Hyper-V, Hyper-V reports a list of supported resolutions as part of the protocol negotiation. The driver calculates the maximum width and height from the list of resolutions, and uses those maximums to validate any screen resolution specifie

[PATCH] drm/msm/dsi: invalid parameter check in msm_dsi_phy_enable

2022-01-16 Thread José Expósito
The function performs a check on the "phy" input parameter, however, it is used before the check. Initialize the "dev" variable after the sanity check to avoid a possible NULL pointer dereference. Fixes: 5c8290284402b ("drm/msm/dsi: Split PHY drivers to separate files") Addresses-Coverity-ID: 149

Re: [PATCH 1/2] drm/i2c/tda998x: Switch to atomic operations

2022-01-16 Thread Fabio Estevam
Hi Tommaso, On Sat, Jan 15, 2022 at 8:23 PM Tommaso Merciai wrote: > Hi Fabio, > I'm working on bring up urt,umsh-8596md-20t lvds kit panel, but after enable > following node I get the following error: I assume you are trying to connect an external panel via connector CN3. This connector is fo

[Bug 215492] amdgpu si_support no longer working in 5.16

2022-01-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215492 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED Reso