[PATCH] amdgpu/amdgpu_psp: remove unneeded ret variable

2022-01-17 Thread cgel . zte
From: Minghao Chi Return value from amdgpu_bo_create_kernel() directly instead of taking this in another redundant variable. Reported-by: Zeal Robot Signed-off-by: Minghao Chi Signed-off-by: CGEL ZTE --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 6 +- 1 file changed, 1 insertion(+), 5

Re: [PATCH] drm/bridge: dw-hdmi: use safe format when first in bridge chain

2022-01-17 Thread Neil Armstrong
Hi, On 17/01/2022 17:53, Marcel Ziswiler wrote: > Hi Neil > > Sorry, just some trivial spelling fixes. > > On Mon, 2022-01-17 at 15:17 +0100, Neil Armstrong wrote: >> When the dw-hdmi bridge is in first place of the bridge chain, this >> means there is now way > > no way > >> to select an

Re: [PATCH] udmabuf: validate ubuf->pagecount

2022-01-17 Thread Gerd Hoffmann
On Thu, Dec 30, 2021 at 05:26:49PM +0300, Pavel Skripkin wrote: > Syzbot has reported GPF in sg_alloc_append_table_from_pages(). The > problem was in ubuf->pages == ZERO_PTR. > > ubuf->pagecount is calculated from arguments passed from user-space. If > user creates udmabuf with list.size == 0

Re: [PATCH] drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()

2022-01-17 Thread Gerd Hoffmann
On Mon, Dec 13, 2021 at 07:31:22PM +0100, Roberto Sassu wrote: > If virtio_gpu_object_shmem_init() fails (e.g. due to fault injection, as it > happened in the bug report by syzbot), virtio_gpu_array_put_free() could be > called with objs equal to NULL. > > Ensure that objs is not NULL in

Re: [PATCH] MAINTAINERS: Add Helge as fbdev maintainer

2022-01-17 Thread Gerd Hoffmann
Hi, > Please correct me if I'm wrong, but text-console emulation/scrolling on DRM is > currently unaccelerated and bound to Truecolour modes only, Yes. Adding support for formats beside argb to the drm fbcon emulation shouldn't be that much of a problem though. Acceleration is harder.

Re: [PATCH] MAINTAINERS: Add Helge as fbdev maintainer

2022-01-17 Thread Gerd Hoffmann
On Mon, Jan 17, 2022 at 02:29:47PM +0100, Geert Uytterhoeven wrote: > Hi Gerd, > > On Mon, Jan 17, 2022 at 1:57 PM Gerd Hoffmann wrote: > > > b) to include new drivers (for old hardware) if they arrive (probably > > > happens rarely but there can be). > > >I know of at least one driver

Re: [PATCH 1/1] Add available memory ioctl for libhsakmt

2022-01-17 Thread Felix Kuehling
Am 2022-01-10 um 8:39 p.m. schrieb Daniel Phillips: > Add an ioctl to inquire memory available for allocation by libhsakmt > per node, allowing for space consumed by page translation tables. > > This ioctl is the underlying mechanism for the new memory availability > library call posted for

[PATCH] phy: dphy: Correct clk_pre parameter

2022-01-17 Thread Liu Ying
The D-PHY specification (v1.2) explicitly mentions that the T-CLK-PRE parameter's unit is Unit Interval(UI) and the minimum value is 8. Also, kernel doc of the 'clk_pre' member of struct phy_configure_opts_mipi_dphy mentions that it should be in UI. However, the dphy core driver wrongly sets

[PATCH AUTOSEL 4.14 18/56] drm/bridge: megachips: Ensure both bridges are probed before registration

2022-01-17 Thread Sasha Levin
From: Martyn Welch [ Upstream commit 11632d4aa2b3f126790e81a4415d6c23103cf8bb ] In the configuration used by the b850v3, the STDP2690 is used to read EDID data whilst it's the STDP4028 which can detect when monitors are connected. This can result in problems at boot with monitors connected

[PATCH AUTOSEL 4.14 04/56] drm/nouveau/pmu/gm200-: avoid touching PMU outside of DEVINIT/PREOS/ACR

2022-01-17 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 1d2271d2fb85e54bfc9630a6c30ac0feb9ffb983 ] There have been reports of the WFI timing out on some boards, and a patch was proposed to just remove it. This stuff is rather fragile, and I believe the WFI might be needed with our FW prior to GM200. However, we

[PATCH AUTOSEL 4.19 46/59] drm/amdgpu: fixup bad vram size on gmc v8

2022-01-17 Thread Sasha Levin
From: Zongmin Zhou [ Upstream commit 11544d77e3974924c5a9c8a8320b996a3e9b2f8b ] Some boards(like RX550) seem to have garbage in the upper 16 bits of the vram size register. Check for this and clamp the size properly. Fixes boards reporting bogus amounts of vram. after add this patch,the

[PATCH AUTOSEL 4.19 10/59] drm/bridge: megachips: Ensure both bridges are probed before registration

2022-01-17 Thread Sasha Levin
From: Martyn Welch [ Upstream commit 11632d4aa2b3f126790e81a4415d6c23103cf8bb ] In the configuration used by the b850v3, the STDP2690 is used to read EDID data whilst it's the STDP4028 which can detect when monitors are connected. This can result in problems at boot with monitors connected

[PATCH AUTOSEL 4.19 04/59] drm/nouveau/pmu/gm200-: avoid touching PMU outside of DEVINIT/PREOS/ACR

2022-01-17 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 1d2271d2fb85e54bfc9630a6c30ac0feb9ffb983 ] There have been reports of the WFI timing out on some boards, and a patch was proposed to just remove it. This stuff is rather fragile, and I believe the WFI might be needed with our FW prior to GM200. However, we

[PATCH AUTOSEL 5.4 59/73] drm/amdgpu: fixup bad vram size on gmc v8

2022-01-17 Thread Sasha Levin
From: Zongmin Zhou [ Upstream commit 11544d77e3974924c5a9c8a8320b996a3e9b2f8b ] Some boards(like RX550) seem to have garbage in the upper 16 bits of the vram size register. Check for this and clamp the size properly. Fixes boards reporting bogus amounts of vram. after add this patch,the

[PATCH AUTOSEL 5.4 16/73] drm/bridge: megachips: Ensure both bridges are probed before registration

2022-01-17 Thread Sasha Levin
From: Martyn Welch [ Upstream commit 11632d4aa2b3f126790e81a4415d6c23103cf8bb ] In the configuration used by the b850v3, the STDP2690 is used to read EDID data whilst it's the STDP4028 which can detect when monitors are connected. This can result in problems at boot with monitors connected

[PATCH AUTOSEL 5.4 10/73] drm: panel-orientation-quirks: Add quirk for the Lenovo Yoga Book X91F/L

2022-01-17 Thread Sasha Levin
From: Hans de Goede [ Upstream commit bc30c3b0c8a1904d83d5f0d60fb8650a334b207b ] The Lenovo Yoga Book X91F/L uses a panel which has been mounted 90 degrees rotated. Add a quirk for this. Cc: Yauhen Kharuzhy Signed-off-by: Hans de Goede Acked-by: Simon Ser Tested-by: Yauhen Kharuzhy Link:

[PATCH AUTOSEL 5.4 06/73] drm/nouveau/pmu/gm200-: avoid touching PMU outside of DEVINIT/PREOS/ACR

2022-01-17 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 1d2271d2fb85e54bfc9630a6c30ac0feb9ffb983 ] There have been reports of the WFI timing out on some boards, and a patch was proposed to just remove it. This stuff is rather fragile, and I believe the WFI might be needed with our FW prior to GM200. However, we

[PATCH AUTOSEL 5.4 04/73] drm/lima: fix warning when CONFIG_DEBUG_SG=y & CONFIG_DMA_API_DEBUG=y

2022-01-17 Thread Sasha Levin
From: Qiang Yu [ Upstream commit 89636a06fa2ee7826a19c39c19a9bc99ab9340a9 ] Otherwise get following warning: DMA-API: lima 1c4.gpu: mapping sg segment longer than device claims to support [len=4149248] [max=65536] See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5496 Reviewed-by:

[PATCH AUTOSEL 5.10 097/116] amdgpu/pm: Make sysfs pm attributes as read-only for VFs

2022-01-17 Thread Sasha Levin
From: Marina Nikolic [ Upstream commit 11c9cc95f818f0f187e9b579a7f136f532b42445 ] == Description == Setting values of pm attributes through sysfs should not be allowed in SRIOV mode. These calls will not be processed by FW anyway, but error handling on sysfs level should be improved. ==

[PATCH AUTOSEL 5.10 095/116] drm/amdgpu: fixup bad vram size on gmc v8

2022-01-17 Thread Sasha Levin
From: Zongmin Zhou [ Upstream commit 11544d77e3974924c5a9c8a8320b996a3e9b2f8b ] Some boards(like RX550) seem to have garbage in the upper 16 bits of the vram size register. Check for this and clamp the size properly. Fixes boards reporting bogus amounts of vram. after add this patch,the

[PATCH AUTOSEL 5.10 088/116] drm/etnaviv: consider completed fence seqno in hang check

2022-01-17 Thread Sasha Levin
From: Lucas Stach [ Upstream commit cdd156955f946beaa5f3a00d8ccf90e5a197becc ] Some GPU heavy test programs manage to trigger the hangcheck quite often. If there are no other GPU users in the system and the test program exhibits a very regular structure in the commandstreams that are being

[PATCH AUTOSEL 5.10 044/116] drm: rcar-du: Fix CRTC timings when CMM is used

2022-01-17 Thread Sasha Levin
From: Laurent Pinchart [ Upstream commit f0ce591dc9a97067c6e783a2eaccd22c5476144d ] When the CMM is enabled, an offset of 25 pixels must be subtracted from the HDS (horizontal display start) and HDE (horizontal display end) registers. Fix the timings calculation, and take this into account in

[PATCH AUTOSEL 5.10 026/116] drm/bridge: megachips: Ensure both bridges are probed before registration

2022-01-17 Thread Sasha Levin
From: Martyn Welch [ Upstream commit 11632d4aa2b3f126790e81a4415d6c23103cf8bb ] In the configuration used by the b850v3, the STDP2690 is used to read EDID data whilst it's the STDP4028 which can detect when monitors are connected. This can result in problems at boot with monitors connected

[PATCH AUTOSEL 5.10 023/116] drm/amdgpu/display: set vblank_disable_immediate for DC

2022-01-17 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 92020e81ddbeac351ea4a19bcf01743f32b9c800 ] Disable vblanks immediately to save power. I think this was missed when we merged DC support. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1781 Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher

[PATCH AUTOSEL 5.10 022/116] drm/amd/display: check top_pipe_to_program pointer

2022-01-17 Thread Sasha Levin
From: Yang Li [ Upstream commit a689e8d1f80012f90384ebac9dcfac4201f9f77e ] Clang static analysis reports this error drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2870:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] if

[PATCH AUTOSEL 5.10 017/116] drm: panel-orientation-quirks: Add quirk for the Lenovo Yoga Book X91F/L

2022-01-17 Thread Sasha Levin
From: Hans de Goede [ Upstream commit bc30c3b0c8a1904d83d5f0d60fb8650a334b207b ] The Lenovo Yoga Book X91F/L uses a panel which has been mounted 90 degrees rotated. Add a quirk for this. Cc: Yauhen Kharuzhy Signed-off-by: Hans de Goede Acked-by: Simon Ser Tested-by: Yauhen Kharuzhy Link:

[PATCH AUTOSEL 5.10 008/116] drm/nouveau/pmu/gm200-: avoid touching PMU outside of DEVINIT/PREOS/ACR

2022-01-17 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 1d2271d2fb85e54bfc9630a6c30ac0feb9ffb983 ] There have been reports of the WFI timing out on some boards, and a patch was proposed to just remove it. This stuff is rather fragile, and I believe the WFI might be needed with our FW prior to GM200. However, we

[PATCH AUTOSEL 5.10 007/116] drm/bridge: dw-hdmi: handle ELD when DRM_BRIDGE_ATTACH_NO_CONNECTOR

2022-01-17 Thread Sasha Levin
From: Neil Armstrong [ Upstream commit 3f2532d65a571ca02258b547b5b68ab2e9406fdb ] The current ELD handling takes the internal connector ELD buffer and shares it to the I2S and AHB sub-driver. But with DRM_BRIDGE_ATTACH_NO_CONNECTOR, the connector is created elsewhere (or not), and an eventual

[PATCH AUTOSEL 5.10 004/116] drm/lima: fix warning when CONFIG_DEBUG_SG=y & CONFIG_DMA_API_DEBUG=y

2022-01-17 Thread Sasha Levin
From: Qiang Yu [ Upstream commit 89636a06fa2ee7826a19c39c19a9bc99ab9340a9 ] Otherwise get following warning: DMA-API: lima 1c4.gpu: mapping sg segment longer than device claims to support [len=4149248] [max=65536] See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5496 Reviewed-by:

[PATCH AUTOSEL 5.15 161/188] amdgpu/pm: Make sysfs pm attributes as read-only for VFs

2022-01-17 Thread Sasha Levin
From: Marina Nikolic [ Upstream commit 11c9cc95f818f0f187e9b579a7f136f532b42445 ] == Description == Setting values of pm attributes through sysfs should not be allowed in SRIOV mode. These calls will not be processed by FW anyway, but error handling on sysfs level should be improved. ==

[PATCH AUTOSEL 5.15 159/188] drm/amdgpu: fixup bad vram size on gmc v8

2022-01-17 Thread Sasha Levin
From: Zongmin Zhou [ Upstream commit 11544d77e3974924c5a9c8a8320b996a3e9b2f8b ] Some boards(like RX550) seem to have garbage in the upper 16 bits of the vram size register. Check for this and clamp the size properly. Fixes boards reporting bogus amounts of vram. after add this patch,the

[PATCH AUTOSEL 5.15 158/188] drm/amdgpu: Don't inherit GEM object VMAs in child process

2022-01-17 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit fbcdbfde87509d523132b59f661a355c731139d0 ] When an application having open file access to a node forks, its shared mappings also get reflected in the address space of child process even though it cannot access them with the object permissions applied.

[PATCH AUTOSEL 5.15 150/188] drm/etnaviv: consider completed fence seqno in hang check

2022-01-17 Thread Sasha Levin
From: Lucas Stach [ Upstream commit cdd156955f946beaa5f3a00d8ccf90e5a197becc ] Some GPU heavy test programs manage to trigger the hangcheck quite often. If there are no other GPU users in the system and the test program exhibits a very regular structure in the commandstreams that are being

[PATCH AUTOSEL 5.15 123/188] drm/tegra: dc: rgb: Allow changing PLLD rate on Tegra30+

2022-01-17 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 0c921b6d4ba06bc899fd84d3ce1c1afd3d00bc1c ] Asus Transformer TF700T is a Tegra30 tablet device which uses RGB->DSI bridge that requires a precise clock rate in order to operate properly. Tegra30 has a dedicated PLL for each display controller, hence the

[PATCH AUTOSEL 5.15 120/188] drm/amd/amdgpu: fix gmc bo pin count leak in SRIOV

2022-01-17 Thread Sasha Levin
From: Jingwen Chen [ Upstream commit 948e7ce01413b71395723aaf846015062aea3a43 ] [Why] gmc bo will be pinned during loading amdgpu and reset in SRIOV while only unpinned in unload amdgpu [How] add amdgpu_in_reset and sriov judgement to skip pin bo v2: fix wrong judgement Signed-off-by:

[PATCH AUTOSEL 5.15 119/188] drm/amd/amdgpu: fix psp tmr bo pin count leak in SRIOV

2022-01-17 Thread Sasha Levin
From: Jingwen Chen [ Upstream commit 85dfc1d692c9434c37842e610be37cd4ae4e0081 ] [Why] psp tmr bo will be pinned during loading amdgpu and reset in SRIOV while only unpinned in unload amdgpu [How] add amdgpu_in_reset and sriov judgement to skip pin bo v2: fix wrong judgement Signed-off-by:

[PATCH AUTOSEL 5.15 111/188] drm/amdkfd: Fix error handling in svm_range_add

2022-01-17 Thread Sasha Levin
From: Felix Kuehling [ Upstream commit 726be40607264b180a2b336c81e1dcff941de618 ] Add null-pointer check after the last svm_range_new call. This was originally reported by Zhou Qingyang based on a static analyzer. To avoid duplicating the unwinding code from svm_range_handle_overlap, I merged

[PATCH AUTOSEL 5.15 082/188] drm: rcar-du: Fix CRTC timings when CMM is used

2022-01-17 Thread Sasha Levin
From: Laurent Pinchart [ Upstream commit f0ce591dc9a97067c6e783a2eaccd22c5476144d ] When the CMM is enabled, an offset of 25 pixels must be subtracted from the HDS (horizontal display start) and HDE (horizontal display end) registers. Fix the timings calculation, and take this into account in

[PATCH AUTOSEL 5.15 071/188] drm/vmwgfx: Introduce a new placement for MOB page tables

2022-01-17 Thread Sasha Levin
From: Zack Rusin [ Upstream commit f6be23264bbac88d1e2bb39658e1b8a397e3f46d ] For larger (bigger than a page) and noncontiguous mobs we have to create page tables that allow the host to find the memory. Those page tables just used regular system memory. Unfortunately in TTM those BO's are not

[PATCH AUTOSEL 5.15 070/188] drm/vmwgfx: Release ttm memory if probe fails

2022-01-17 Thread Sasha Levin
From: Zack Rusin [ Upstream commit 28b5f3b6121b7db2a44be499cfca0b6b801588b6 ] The ttm mem global state was leaking if the vmwgfx driver load failed. In case of a driver load failure we have to make sure we also release the ttm mem global state. Signed-off-by: Zack Rusin Reviewed-by: Martin

[PATCH AUTOSEL 5.15 057/188] drm/bridge: megachips: Ensure both bridges are probed before registration

2022-01-17 Thread Sasha Levin
From: Martyn Welch [ Upstream commit 11632d4aa2b3f126790e81a4415d6c23103cf8bb ] In the configuration used by the b850v3, the STDP2690 is used to read EDID data whilst it's the STDP4028 which can detect when monitors are connected. This can result in problems at boot with monitors connected

[PATCH AUTOSEL 5.15 056/188] drm/amd/display: add else to avoid double destroy clk_mgr

2022-01-17 Thread Sasha Levin
From: Martin Leung [ Upstream commit 11dff0e871037a6ad978e52f826a2eb7f5fb274a ] [Why & How] when changing some code we accidentally changed else if-> if. reverting that. Reviewed-by: Aric Cyr Acked-by: Qingqing Zhuo Signed-off-by: Martin Leung Tested-by: Daniel Wheeler Signed-off-by: Alex

[PATCH AUTOSEL 5.15 053/188] drm/amdgpu/display: set vblank_disable_immediate for DC

2022-01-17 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 92020e81ddbeac351ea4a19bcf01743f32b9c800 ] Disable vblanks immediately to save power. I think this was missed when we merged DC support. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1781 Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher

[PATCH AUTOSEL 5.15 052/188] drm/amd/display: check top_pipe_to_program pointer

2022-01-17 Thread Sasha Levin
From: Yang Li [ Upstream commit a689e8d1f80012f90384ebac9dcfac4201f9f77e ] Clang static analysis reports this error drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2870:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] if

[PATCH AUTOSEL 5.15 027/188] drm: panel-orientation-quirks: Add quirk for the Lenovo Yoga Book X91F/L

2022-01-17 Thread Sasha Levin
From: Hans de Goede [ Upstream commit bc30c3b0c8a1904d83d5f0d60fb8650a334b207b ] The Lenovo Yoga Book X91F/L uses a panel which has been mounted 90 degrees rotated. Add a quirk for this. Cc: Yauhen Kharuzhy Signed-off-by: Hans de Goede Acked-by: Simon Ser Tested-by: Yauhen Kharuzhy Link:

[PATCH AUTOSEL 5.15 013/188] drm/nouveau/pmu/gm200-: avoid touching PMU outside of DEVINIT/PREOS/ACR

2022-01-17 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 1d2271d2fb85e54bfc9630a6c30ac0feb9ffb983 ] There have been reports of the WFI timing out on some boards, and a patch was proposed to just remove it. This stuff is rather fragile, and I believe the WFI might be needed with our FW prior to GM200. However, we

[PATCH AUTOSEL 5.15 012/188] drm/bridge: dw-hdmi: handle ELD when DRM_BRIDGE_ATTACH_NO_CONNECTOR

2022-01-17 Thread Sasha Levin
From: Neil Armstrong [ Upstream commit 3f2532d65a571ca02258b547b5b68ab2e9406fdb ] The current ELD handling takes the internal connector ELD buffer and shares it to the I2S and AHB sub-driver. But with DRM_BRIDGE_ATTACH_NO_CONNECTOR, the connector is created elsewhere (or not), and an eventual

[PATCH AUTOSEL 5.15 007/188] drm/lima: fix warning when CONFIG_DEBUG_SG=y & CONFIG_DMA_API_DEBUG=y

2022-01-17 Thread Sasha Levin
From: Qiang Yu [ Upstream commit 89636a06fa2ee7826a19c39c19a9bc99ab9340a9 ] Otherwise get following warning: DMA-API: lima 1c4.gpu: mapping sg segment longer than device claims to support [len=4149248] [max=65536] See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5496 Reviewed-by:

[PATCH AUTOSEL 5.15 003/188] drm/panel: Delete panel on mipi_dsi_attach() failure

2022-01-17 Thread Sasha Levin
From: Brian Norris [ Upstream commit 9bf7123bb07f98dc76acb5daa91248e6f95713cb ] Many DSI panel drivers fail to clean up their panel references on mipi_dsi_attach() failure, so we're leaving a dangling drm_panel reference to freed memory. Clean that up on failure. Noticed by inspection, after

Re: [PATCH] drm/i915/debugfs: Do not return '0' if there is nothing to return

2022-01-17 Thread Andi Shyti
Ping... Lucas, do you mind merging this trivial refactoring? Thanks, Andi On Sat, Nov 27, 2021 at 03:17:15AM +0200, Andi Shyti wrote: > Change functions that always return '0' to be void type. > > Signed-off-by: Andi Shyti > Cc: Maciej Patelczyk > --- >

[PATCH AUTOSEL 5.16 188/217] amdgpu/pm: Make sysfs pm attributes as read-only for VFs

2022-01-17 Thread Sasha Levin
From: Marina Nikolic [ Upstream commit 11c9cc95f818f0f187e9b579a7f136f532b42445 ] == Description == Setting values of pm attributes through sysfs should not be allowed in SRIOV mode. These calls will not be processed by FW anyway, but error handling on sysfs level should be improved. ==

[PATCH AUTOSEL 5.16 186/217] drm/amdgpu: fixup bad vram size on gmc v8

2022-01-17 Thread Sasha Levin
From: Zongmin Zhou [ Upstream commit 11544d77e3974924c5a9c8a8320b996a3e9b2f8b ] Some boards(like RX550) seem to have garbage in the upper 16 bits of the vram size register. Check for this and clamp the size properly. Fixes boards reporting bogus amounts of vram. after add this patch,the

[PATCH AUTOSEL 5.16 185/217] drm/amdgpu: Don't inherit GEM object VMAs in child process

2022-01-17 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit fbcdbfde87509d523132b59f661a355c731139d0 ] When an application having open file access to a node forks, its shared mappings also get reflected in the address space of child process even though it cannot access them with the object permissions applied.

[PATCH AUTOSEL 5.16 177/217] drm/etnaviv: consider completed fence seqno in hang check

2022-01-17 Thread Sasha Levin
From: Lucas Stach [ Upstream commit cdd156955f946beaa5f3a00d8ccf90e5a197becc ] Some GPU heavy test programs manage to trigger the hangcheck quite often. If there are no other GPU users in the system and the test program exhibits a very regular structure in the commandstreams that are being

[PATCH AUTOSEL 5.16 144/217] drm/tegra: dc: rgb: Allow changing PLLD rate on Tegra30+

2022-01-17 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 0c921b6d4ba06bc899fd84d3ce1c1afd3d00bc1c ] Asus Transformer TF700T is a Tegra30 tablet device which uses RGB->DSI bridge that requires a precise clock rate in order to operate properly. Tegra30 has a dedicated PLL for each display controller, hence the

[PATCH AUTOSEL 5.16 141/217] drm/amd/amdgpu: fix gmc bo pin count leak in SRIOV

2022-01-17 Thread Sasha Levin
From: Jingwen Chen [ Upstream commit 948e7ce01413b71395723aaf846015062aea3a43 ] [Why] gmc bo will be pinned during loading amdgpu and reset in SRIOV while only unpinned in unload amdgpu [How] add amdgpu_in_reset and sriov judgement to skip pin bo v2: fix wrong judgement Signed-off-by:

[PATCH AUTOSEL 5.16 140/217] drm/amd/amdgpu: fix psp tmr bo pin count leak in SRIOV

2022-01-17 Thread Sasha Levin
From: Jingwen Chen [ Upstream commit 85dfc1d692c9434c37842e610be37cd4ae4e0081 ] [Why] psp tmr bo will be pinned during loading amdgpu and reset in SRIOV while only unpinned in unload amdgpu [How] add amdgpu_in_reset and sriov judgement to skip pin bo v2: fix wrong judgement Signed-off-by:

[PATCH AUTOSEL 5.16 131/217] drm/amdgpu: fix amdgpu_ras_mca_query_error_status scope

2022-01-17 Thread Sasha Levin
From: Isabella Basso [ Upstream commit 929bb8e200412da36aca4b61209ec26283f9c184 ] This commit fixes the compile-time warning below: warning: no previous prototype for ‘amdgpu_ras_mca_query_error_status’ [-Wmissing-prototypes] Changes since v1: - As suggested by Alexander Deucher: 1. Make

[PATCH AUTOSEL 5.16 130/217] drm/amdkfd: Fix error handling in svm_range_add

2022-01-17 Thread Sasha Levin
From: Felix Kuehling [ Upstream commit 726be40607264b180a2b336c81e1dcff941de618 ] Add null-pointer check after the last svm_range_new call. This was originally reported by Zhou Qingyang based on a static analyzer. To avoid duplicating the unwinding code from svm_range_handle_overlap, I merged

[PATCH AUTOSEL 5.16 096/217] drm: rcar-du: Fix CRTC timings when CMM is used

2022-01-17 Thread Sasha Levin
From: Laurent Pinchart [ Upstream commit f0ce591dc9a97067c6e783a2eaccd22c5476144d ] When the CMM is enabled, an offset of 25 pixels must be subtracted from the HDS (horizontal display start) and HDE (horizontal display end) registers. Fix the timings calculation, and take this into account in

[PATCH AUTOSEL 5.16 089/217] drm/amd/display: Use oriented source size when checking cursor scaling

2022-01-17 Thread Sasha Levin
From: Vlad Zahorodnii [ Upstream commit 69cb56290d9d10cdcc461aa2685e67e540507a96 ] dm_check_crtc_cursor() doesn't take into account plane transforms when calculating plane scaling, this can result in false positives. For example, if there's an output with resolution 3840x2160 and the output is

[PATCH AUTOSEL 5.16 088/217] drm: Return error codes from struct drm_driver.gem_create_object

2022-01-17 Thread Sasha Levin
From: Thomas Zimmermann [ Upstream commit 4ff22f487f8c26b99cbe1678344595734c001a39 ] GEM helper libraries use struct drm_driver.gem_create_object to let drivers override GEM object allocation. On failure, the call returns NULL. Change the semantics to make the calls return a pointer-encoded

[PATCH AUTOSEL 5.16 083/217] drm/vmwgfx: Introduce a new placement for MOB page tables

2022-01-17 Thread Sasha Levin
From: Zack Rusin [ Upstream commit f6be23264bbac88d1e2bb39658e1b8a397e3f46d ] For larger (bigger than a page) and noncontiguous mobs we have to create page tables that allow the host to find the memory. Those page tables just used regular system memory. Unfortunately in TTM those BO's are not

[PATCH AUTOSEL 5.16 082/217] drm/vmwgfx: Release ttm memory if probe fails

2022-01-17 Thread Sasha Levin
From: Zack Rusin [ Upstream commit 28b5f3b6121b7db2a44be499cfca0b6b801588b6 ] The ttm mem global state was leaking if the vmwgfx driver load failed. In case of a driver load failure we have to make sure we also release the ttm mem global state. Signed-off-by: Zack Rusin Reviewed-by: Martin

[PATCH AUTOSEL 5.16 065/217] drm/bridge: megachips: Ensure both bridges are probed before registration

2022-01-17 Thread Sasha Levin
From: Martyn Welch [ Upstream commit 11632d4aa2b3f126790e81a4415d6c23103cf8bb ] In the configuration used by the b850v3, the STDP2690 is used to read EDID data whilst it's the STDP4028 which can detect when monitors are connected. This can result in problems at boot with monitors connected

[PATCH AUTOSEL 5.16 064/217] drm/amd/display: add else to avoid double destroy clk_mgr

2022-01-17 Thread Sasha Levin
From: Martin Leung [ Upstream commit 11dff0e871037a6ad978e52f826a2eb7f5fb274a ] [Why & How] when changing some code we accidentally changed else if-> if. reverting that. Reviewed-by: Aric Cyr Acked-by: Qingqing Zhuo Signed-off-by: Martin Leung Tested-by: Daniel Wheeler Signed-off-by: Alex

[PATCH AUTOSEL 5.16 061/217] drm/amdgpu/display: set vblank_disable_immediate for DC

2022-01-17 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 92020e81ddbeac351ea4a19bcf01743f32b9c800 ] Disable vblanks immediately to save power. I think this was missed when we merged DC support. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1781 Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher

[PATCH AUTOSEL 5.16 060/217] drm/amd/display: check top_pipe_to_program pointer

2022-01-17 Thread Sasha Levin
From: Yang Li [ Upstream commit a689e8d1f80012f90384ebac9dcfac4201f9f77e ] Clang static analysis reports this error drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2870:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] if

[PATCH AUTOSEL 5.16 033/217] drm: panel-orientation-quirks: Add quirk for the Lenovo Yoga Book X91F/L

2022-01-17 Thread Sasha Levin
From: Hans de Goede [ Upstream commit bc30c3b0c8a1904d83d5f0d60fb8650a334b207b ] The Lenovo Yoga Book X91F/L uses a panel which has been mounted 90 degrees rotated. Add a quirk for this. Cc: Yauhen Kharuzhy Signed-off-by: Hans de Goede Acked-by: Simon Ser Tested-by: Yauhen Kharuzhy Link:

[PATCH AUTOSEL 5.16 017/217] drm/nouveau/pmu/gm200-: avoid touching PMU outside of DEVINIT/PREOS/ACR

2022-01-17 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 1d2271d2fb85e54bfc9630a6c30ac0feb9ffb983 ] There have been reports of the WFI timing out on some boards, and a patch was proposed to just remove it. This stuff is rather fragile, and I believe the WFI might be needed with our FW prior to GM200. However, we

[PATCH AUTOSEL 5.16 016/217] drm/bridge: dw-hdmi: handle ELD when DRM_BRIDGE_ATTACH_NO_CONNECTOR

2022-01-17 Thread Sasha Levin
From: Neil Armstrong [ Upstream commit 3f2532d65a571ca02258b547b5b68ab2e9406fdb ] The current ELD handling takes the internal connector ELD buffer and shares it to the I2S and AHB sub-driver. But with DRM_BRIDGE_ATTACH_NO_CONNECTOR, the connector is created elsewhere (or not), and an eventual

[PATCH AUTOSEL 5.16 011/217] drm/lima: fix warning when CONFIG_DEBUG_SG=y & CONFIG_DMA_API_DEBUG=y

2022-01-17 Thread Sasha Levin
From: Qiang Yu [ Upstream commit 89636a06fa2ee7826a19c39c19a9bc99ab9340a9 ] Otherwise get following warning: DMA-API: lima 1c4.gpu: mapping sg segment longer than device claims to support [len=4149248] [max=65536] See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5496 Reviewed-by:

[PATCH AUTOSEL 5.16 006/217] drm/sched: Avoid lockdep spalt on killing a processes

2022-01-17 Thread Sasha Levin
From: Andrey Grodzovsky [ Upstream commit 542cff7893a37445f98ece26aeb3c9c1055e9ea4 ] Probelm: Singlaning one sched fence from within another's sched fence singal callback generates lockdep splat because the both have same lockdep class of their fence->lock Fix: Fix bellow stack by rescheduling

[PATCH AUTOSEL 5.16 004/217] drm/panel: Delete panel on mipi_dsi_attach() failure

2022-01-17 Thread Sasha Levin
From: Brian Norris [ Upstream commit 9bf7123bb07f98dc76acb5daa91248e6f95713cb ] Many DSI panel drivers fail to clean up their panel references on mipi_dsi_attach() failure, so we're leaving a dangling drm_panel reference to freed memory. Clean that up on failure. Noticed by inspection, after

Re: [PATCH v4 2/2] drm/i915/gt: make a gt sysfs group and move power management files

2022-01-17 Thread Andi Shyti
Hi Michal, > > /sys/.../card0 > > ├── gt > > │   ├── gt0 > > │   │   ├── id > > │   │   ├── rc6_enable > > │   │   ├── rc6_residency_ms > > │   │   ├── rps_act_freq_mhz > > │   │   ├── rps_boost_freq_mhz > > │   │   ├──

[RFC 10/10] drm: test: Simplify testing on UML with kunit.py

2022-01-17 Thread Michał Winiarski
DRM depends on IOMEM and DMA, introduce an additional Kconfig to pull in IOMEM and DMA emulation on UML. Also, add .kunitconfig to simplify running DRM tests with: ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm Signed-off-by: Michał Winiarski --- drivers/gpu/drm/.kunitconfig |

[RFC 09/10] drm: selftests: Convert to KUnit

2022-01-17 Thread Michał Winiarski
Now that all tests were converted, remove the content that's no longer used and rename the directory to "test". Signed-off-by: Michał Winiarski --- drivers/gpu/drm/Kconfig | 17 --- drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/i915/Kconfig.debug

[RFC 08/10] drm: test-drm_mm: Convert to KUnit

2022-01-17 Thread Michał Winiarski
Tests that were looping over param (or combination of params) were converted to parameterized test cases. While the conversion should be roughly functionally equivalent, there are changes in the test content and organization: * sanitycheck was dropped (as it was only testing the test framework) *

[RFC 07/10] drm: test-drm_rect: Convert to KUnit

2022-01-17 Thread Michał Winiarski
One-to-one conversion, no functional changes. Now that all of the modeset selftests were converted, remove the helpers that are no longer used. Signed-off-by: Michał Winiarski --- drivers/gpu/drm/selftests/Makefile| 8 +- .../gpu/drm/selftests/drm_modeset_selftests.h | 12 -

[RFC 06/10] drm: test-drm_dp_mst_helper: Convert to KUnit

2022-01-17 Thread Michał Winiarski
igt_dp_mst_calc_pbn_mode was converted one-to-one, igt_dp_mst_sideband_msg_req_decode was refactored to parameterized test. Signed-off-by: Michał Winiarski --- drivers/gpu/drm/selftests/Makefile| 3 +- .../gpu/drm/selftests/drm_modeset_selftests.h | 2 -

[RFC 05/10] drm: test-drm_damage_helper: Convert to KUnit

2022-01-17 Thread Michał Winiarski
Mocking was moved to .init() in order to separate it from test logic. No functional changes. Signed-off-by: Michał Winiarski --- drivers/gpu/drm/selftests/Makefile| 5 +- .../gpu/drm/selftests/drm_modeset_selftests.h | 21 - .../drm/selftests/test-drm_damage_helper.c| 570

[RFC 04/10] drm: test-drm_framebuffer: Convert to KUnit

2022-01-17 Thread Michał Winiarski
Mocking was moved to .init() in order to separate it from test logic. No functional changes. Signed-off-by: Michał Winiarski --- drivers/gpu/drm/selftests/Makefile| 3 +- .../gpu/drm/selftests/drm_modeset_selftests.h | 1 - .../gpu/drm/selftests/test-drm_framebuffer.c | 109

[RFC 03/10] drm: test-drm_format: Convert to KUnit

2022-01-17 Thread Michał Winiarski
One-to-one conversion, no functional changes. Signed-off-by: Michał Winiarski --- drivers/gpu/drm/selftests/Makefile| 5 +- .../gpu/drm/selftests/drm_modeset_selftests.h | 3 - drivers/gpu/drm/selftests/test-drm_format.c | 538 ++

[RFC 02/10] drm: test-drm_plane_helper: Convert to KUnit

2022-01-17 Thread Michał Winiarski
Tests were converted into parameterized test cases. Negative tests were separated. Mocking was moved to test->init(). No functional changes. Signed-off-by: Michał Winiarski --- drivers/gpu/drm/Kconfig | 1 + drivers/gpu/drm/selftests/Makefile| 4 +-

[RFC 01/10] drm: test-drm_cmdline_parser: Convert to KUnit

2022-01-17 Thread Michał Winiarski
One-to-one conversion, no functional changes. Negative tests were merged into single parameterized test case. Signed-off-by: Michał Winiarski --- drivers/gpu/drm/Kconfig | 12 + drivers/gpu/drm/Makefile |2 +- drivers/gpu/drm/selftests/Makefile

[RFC 00/10] drm: selftests: Convert to KUnit

2022-01-17 Thread Michał Winiarski
KUnit unifies the test structure and provides helper tools that simplify the development. Basic use case allows running tests as regular processes, leveraging User Mode Linux. For example, to execute all DRM unit tests: ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm (the tool

Re: [PATCH v4 1/2] drm/i915: Prepare for multiple GTs

2022-01-17 Thread Andi Shyti
Hi Michal, > please find few late nits below thanks for the comments! > > On a multi-tile platform, each tile has its own registers + GGTT > > space, and BAR 0 is extended to cover all of them. > > > > Up to four gts are supported in i915->gt[], with slot zero > > s/gts/GTs (to match as

[Bug 204559] amdgpu: kernel oops with constant gpu resets while using mpv

2022-01-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204559 Maxim Sheviakov (shoeg...@tutanota.com) changed: What|Removed |Added Status|NEW |RESOLVED

Re: [PATCH v4 2/2] drm/i915/gt: make a gt sysfs group and move power management files

2022-01-17 Thread Michal Wajdeczko
Hi Andi, few more late nits below On 17.01.2022 20:32, Andi Shyti wrote: > The GT has its own properties and in sysfs they should be grouped > in the 'gt/' directory. > > Create a 'gt/' directory in sysfs which will contain gt0...gtN > directories related to each tile configured in the GPU.

[PATCH] drm: Add PSR version 4 macro

2022-01-17 Thread sunpeng.li
From: Leo Li eDP 1.5 specification defines PSR version 4. It defines PSR1 and PSR2 support with selective-update (SU) capabilities, with additional support for Y-coordinate and Early Transport of the selective-update region. This differs from PSR version 3 in that early transport is supported

Re: [PATCH v11 01/19] dyndbg: add _DPRINTK_FLAGS_ENABLED

2022-01-17 Thread jim . cromie
On Fri, Jan 14, 2022 at 4:57 AM Vincent Whitchurch wrote: > > On Fri, Jan 07, 2022 at 06:29:24AM +0100, Jim Cromie wrote: > > #ifdef CONFIG_JUMP_LABEL > > - if (dp->flags & _DPRINTK_FLAGS_PRINT) { > > - if (!(modifiers->flags & > >

Re: [PATCH v4 1/2] drm/i915: Prepare for multiple GTs

2022-01-17 Thread Michal Wajdeczko
Hi Andi, please find few late nits below On 17.01.2022 20:32, Andi Shyti wrote: > From: Tvrtko Ursulin > > On a multi-tile platform, each tile has its own registers + GGTT > space, and BAR 0 is extended to cover all of them. > > Up to four gts are supported in i915->gt[], with slot zero

Re: [PATCH 3/4] drm/msm/adreno: Expose speedbin to userspace

2022-01-17 Thread Akhil P Oommen
On 1/13/2022 12:43 PM, Dmitry Baryshkov wrote: On Thu, 13 Jan 2022 at 00:19, Rob Clark wrote: On Tue, Jan 11, 2022 at 1:31 PM Akhil P Oommen wrote: Expose speedbin through MSM_PARAM_CHIP_ID parameter to help userspace identify the sku. Signed-off-by: Akhil P Oommen ---

Re: [PATCH v2] Remove extra device acquisition method of i2c client in lt9611 driver

2022-01-17 Thread Zhiming Liu
Hi Robert, Sure, i have sent the v3 of this patch. So thankful for your guidance! Best Regards Zhiming Robert Foss 于2022年1月17日周一 23:23写道: > Hey Zhiming, > > Again, I think the code is good, but let's fix some small stuff with > the patch submission and then I'll happily apply this. > > On

[PATCH v5] drm/bridge: anx7625: Return -EPROBE_DEFER if the dsi host was not found

2022-01-17 Thread owen
From: owen It will connect to the mipi dsi host and find the corresponding mipi dsi host node, but the node registered by the mipi dsi host has not been loaded yet. of_find_mipi_dsi_host_by_node() returns -EINVAL which causes the calling driver to fail. If the anx7625 driver is loaded

[PATCH] drm/panel-orientation-quirks: add Lenovo Ideapad Duet 3i

2022-01-17 Thread Hendrik Borghorst
The Lenovo Ideapad Duet 3i has a 1200x1920 panel. Non-exact match is used because a non-LTE and LTE version exists with string "10IGL5" and "10IGL5-LTE". The patch is only tested on the non-LTE version. Signed-off-by: Hendrik Borghorst --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 7

Re: [PATCH v2 1/2] drm/i915: Prepare for multiple GTs

2022-01-17 Thread Abdiel Janulgue
On 14.1.2022 19.59, Andi Shyti wrote: Hi Matt, [...] -int intel_uncore_setup_mmio(struct intel_uncore *uncore) +int intel_uncore_setup_mmio(struct intel_uncore *uncore, phys_addr_t phys_addr) { struct drm_i915_private *i915 = uncore->i915; - struct pci_dev *pdev =

[PATCH v3] drm/bridge: Remove extra device acquisition method of i2c client in lt9611 driver

2022-01-17 Thread Zhiming Liu
drm/bridge: Remove extra device acquisition method of i2c client in lt9611 driver. We have got the device of i2c client in probe function.So we should remove extra device acquisition method of i2c client. Signed-off-by: Zhiming Liu --- drivers/gpu/drm/bridge/lontium-lt9611.c| 4 ++--

[PATCH] drm/panel: Add panel-edp: add lcd innolux,n140hca-eac

2022-01-17 Thread Rex Nie
innolux,n140hca-eac is a eDP-based LCD panel. This panel has 1920x1080 resolution in 14-inch TFT panel. Signed-off-by: Rex Nie --- .../display/panel/innolux,n140hca-eac.yaml| 43 +++ drivers/gpu/drm/panel/panel-edp.c | 26 +++ 2 files changed, 69

Re: [PATCH] MAINTAINERS: Add Helge as fbdev maintainer

2022-01-17 Thread Ilia Mirkin
On Mon, Jan 17, 2022 at 2:47 PM Helge Deller wrote: > > On 1/17/22 17:21, Helge Deller wrote: > > On 1/17/22 16:58, Thomas Zimmermann wrote: > >> Hi > >> > >> Am 17.01.22 um 16:42 schrieb Helge Deller: > >>> [...] > > c) reintroduce the state where fbcon is fast on fbdev. This is > >

  1   2   3   >