[PATCH] drm/radeon: add a force flush to delay work when radeon

2022-08-11 Thread Zhenneng Li
Although radeon card fence and wait for gpu to finish processing current batch rings, there is still a corner case that radeon lockup work queue may not be fully flushed, and meanwhile the radeon_suspend_kms() function has called pci_set_power_state() to put device in D3hot state. Per PCI spec r

Re: [PATCH 0/2] Add DP MST DSC support to i915

2022-08-11 Thread Lisovskiy, Stanislav
On Wed, Aug 10, 2022 at 04:02:08PM -0400, Lyude Paul wrote: > Btw, what's the plan for this? Figured I'd ask since I noticed this on the ML, > nd I'm now finishing up getting the atomic only MST patches I've been working > on merged :) Current plan is that I need to fix this, as current implementa

Re: [PATCH 1/3] dt-bindings: display/msm: Add binding for SC8280XP MDSS

2022-08-11 Thread Krzysztof Kozlowski
On 11/08/2022 07:01, Bjorn Andersson wrote: > Add binding for the display subsystem and display processing unit in the > Qualcomm SC8280XP platform. > > Signed-off-by: Bjorn Andersson > --- > .../bindings/display/msm/dpu-sc8280xp.yaml| 284 ++ > 1 file changed, 284 insertions

Re: [PATCH v3 01/10] drm/fourcc: Add drm_format_info_bpp() helper

2022-08-11 Thread Geert Uytterhoeven
Hi Daniel, On Wed, Aug 10, 2022 at 5:59 PM Daniel Vetter wrote: > On Fri, Jul 08, 2022 at 08:20:46PM +0200, Geert Uytterhoeven wrote: > > Add a helper to retrieve the actual number of bits per pixel for a > > plane, taking into account the number of characters and pixels per > > block for tiled f

Re: [PATCH 1/3] dt-bindings: display/msm: Add binding for SC8280XP MDSS

2022-08-11 Thread Krzysztof Kozlowski
On 11/08/2022 10:56, Krzysztof Kozlowski wrote: > On 11/08/2022 07:01, Bjorn Andersson wrote: >> Add binding for the display subsystem and display processing unit in the >> Qualcomm SC8280XP platform. >> >> Signed-off-by: Bjorn Andersson >> --- >> .../bindings/display/msm/dpu-sc8280xp.yaml| 2

Re: [PATCH v2 06/11] dt-bindings: display/msm: move qcom, sc7180-mdss schema to mdss.yaml

2022-08-11 Thread Krzysztof Kozlowski
On 10/07/2022 12:00, Dmitry Baryshkov wrote: > Move schema for qcom,sc7180-mdss from dpu-sc7180.yaml to mdss.yaml so > that the dpu file describes only the DPU schema. > > Signed-off-by: Dmitry Baryshkov > --- > .../bindings/display/msm/dpu-sc7180.yaml | 149 +- > .../device

Re: [PATCH 1/3] dt-bindings: display/msm: Add binding for SC8280XP MDSS

2022-08-11 Thread Krzysztof Kozlowski
On 11/08/2022 11:04, Krzysztof Kozlowski wrote: >> >> additionalProperties:false on this level >> >> which will point to missing properties (e.g. opp-table) > > I'll fix existing bindings which have similar issue. Hm, I think Dmitry is already working on this: https://lore.kernel.org/all/20220710

Re: [Intel-gfx] [PATCH v6 0/4] drm/i915/display: stop HPD workers before display driver unregister

2022-08-11 Thread Andrzej Hajda
Hi Imre, Jani, Ville, Since one of CI test machines is back (bat-rpls-2) tests are regularly aborted on this machine due to bugs this patchset resolves [1], reviewing/merging these patches would allow to cure the situation on CI. [1]: https://intel-gfx-ci.01.org/tree/drm-tip/bat-rpls-2.html

[PATCH 0/5] dt-bindings: display/msm: dpu: opp-table fixes

2022-08-11 Thread Krzysztof Kozlowski
Hi, There is a conflicting series of https://lore.kernel.org/all/20220710090040.35193-1-dmitry.barysh...@linaro.org/ but I think this one here should go before to fix the issue before the refactoring. Best regards, Krzysztof Cc: Dmitry Baryshkov Cc: Rob Clark Cc: Sean Paul Cc: Abhinav Kumar

[PATCH 2/5] dt-bindings: display/msm: dpu-qcm2290: add missing DPU opp-table

2022-08-11 Thread Krzysztof Kozlowski
The 'display-controller' child (DPU) of Display SubSystem (MDSS) uses opp-table, so reference it which allows restricting DPU schema to fixed list of properties. Fixes: 164f69d9d45a ("dt-bindings: msm: disp: add yaml schemas for QCM2290 DPU bindings") Signed-off-by: Krzysztof Kozlowski --- Cc:

[PATCH 3/5] dt-bindings: display/msm: dpu-sc7180: add missing DPU opp-table

2022-08-11 Thread Krzysztof Kozlowski
The 'display-controller' child (DPU) of Display SubSystem (MDSS) uses opp-table, so reference it which allows restricting DPU schema to fixed list of properties. Fixes: 3d7a0dd8f39b ("dt-bindings: msm: disp: add yaml schemas for DPU bindings") Signed-off-by: Krzysztof Kozlowski --- Cc: Dmitry

[PATCH 1/5] dt-bindings: display/msm: dpu-msm8998: add missing DPU opp-table

2022-08-11 Thread Krzysztof Kozlowski
The 'display-controller' child (DPU) of Display SubSystem (MDSS) uses opp-table, so reference it which allows restricting DPU schema to fixed list of properties. Fixes: 6e986a8f1cf1 ("dt-bindings: display: msm: Add binding for msm8998 dpu") Signed-off-by: Krzysztof Kozlowski --- Cc: Dmitry Bary

[PATCH 4/5] dt-bindings: display/msm: dpu-sc7280: add missing DPU opp-table

2022-08-11 Thread Krzysztof Kozlowski
The 'display-controller' child (DPU) of Display SubSystem (MDSS) uses opp-table, so reference it which allows restricting DPU schema to fixed list of properties. Fixes: 57fd4f34ddac ("dt-bindings: msm: add DT bindings for sc7280") Signed-off-by: Krzysztof Kozlowski --- Cc: Dmitry Baryshkov Cc:

[PATCH 5/5] dt-bindings: display/msm: dpu-sdm845: add missing DPU opp-table

2022-08-11 Thread Krzysztof Kozlowski
The 'display-controller' child (DPU) of Display SubSystem (MDSS) uses opp-table, so reference it which allows restricting DPU schema to fixed list of properties. Fixes: 3d7a0dd8f39b ("dt-bindings: msm: disp: add yaml schemas for DPU bindings") Signed-off-by: Krzysztof Kozlowski --- Cc: Dmitry

[bug report] drm/ttm: Fix dummy res NULL ptr deref bug

2022-08-11 Thread Dan Carpenter
Hello Arunpravin Paneer Selvam, This is a semi-automatic email about new static checker warnings. The patch cf4b7387c0a8: "drm/ttm: Fix dummy res NULL ptr deref bug" from Aug 9, 2022, leads to the following Smatch complaint: drivers/gpu/drm/ttm/ttm_bo.c:915 ttm_bo_validate() warn: variab

Re: [PATCH v5] drm: Add initial ci/ subdirectory

2022-08-11 Thread Tomeu Vizoso
On 8/10/22 8:24 PM, Rodrigo Siqueira Jordao wrote: Hi Tomeu, First of all, nice patch! I just saw it, and I have some basic questions (I don't understand many of these CI details). I also CC some CI folks from the display team at AMD. Thanks for the feedback! On 2022-07-26 14:16, Tomeu Viz

Re: [bug report] drm/ttm: Fix dummy res NULL ptr deref bug

2022-08-11 Thread Arunpravin Paneer Selvam
Hi Dan, drm-misc-fixes doesn't have the updated ttm_bo.c file, we have the updated ttm_bo.c version in drm-misc-next branch. Please find below for the line number 907. On 8/11/2022 3:25 PM, Dan Carpenter wrote: Hello Arunpravin Paneer Selvam, This is a semi-automatic email about new static c

[PATCH] drm/amdgpu: use native mode for dp aux transfer

2022-08-11 Thread Zhenneng Li
When using amdgpu for e8860, the monitor sometimes haven't any signal, and the kernel reports some errors: [ 17.317302][ 2] [ T1045] [drm:amdgpu_atombios_dp_link_train [amdgpu]] *ERROR* channel eq failed: 5 tries [ 17.326963][ 2] [ T1045] [drm:amdgpu_atombios_dp_link_train [amdgpu]] *ERROR* c

Re: [PATCH 0/5] clk/qcom: Support gdsc collapse polling using 'reset' inteface

2022-08-11 Thread Akhil P Oommen
On 8/10/2022 2:35 AM, Bjorn Andersson wrote: On Sat 30 Jul 04:17 CDT 2022, Akhil P Oommen wrote: Some clients like adreno gpu driver would like to ensure that its gdsc is collapsed at hardware during a gpu reset sequence. This is because it has a votable gdsc which could be ON due to a vote fro

Re: [PATCH] drm/fb-helper: add virtual screen size check to drm_fb_helper_check_var()

2022-08-11 Thread Geert Uytterhoeven
Hi Andrey, On Thu, Aug 11, 2022 at 12:23 PM Andrey Strachuk wrote: > Add virtual screen size check to drm_fb_helper_check_var() in > order to validate userspace input. > > Found by Linux Verification Center (linuxtesting.org) with syzkaller. > > Signed-off-by: Andrey Strachuk Thanks for your pa

Re: [bug report] drm/ttm: Fix dummy res NULL ptr deref bug

2022-08-11 Thread Dan Carpenter
On Thu, Aug 11, 2022 at 04:36:33PM +0530, Arunpravin Paneer Selvam wrote: > Hi Dan, > > drm-misc-fixes doesn't have the updated ttm_bo.c file, we have the updated > ttm_bo.c version in > drm-misc-next branch. Please find below for the line number 907. > > On 8/11/2022 3:25 PM, Dan Carpenter wrote

Re: [PATCH] i2c: qcom-geni: Fix GPI DMA buffer sync-back

2022-08-11 Thread Wolfram Sang
On Sun, Aug 07, 2022 at 11:04:54PM +0900, Robin Reckmann wrote: > Fix i2c transfers using GPI DMA mode for all message types that do not set > the I2C_M_DMA_SAFE flag (e.g. SMBus "read byte"). > > In this case a bounce buffer is returned by i2c_get_dma_safe_msg_buf(), > and it has to synced back t

Re: [GIT PULL] printk for 5.20

2022-08-11 Thread Daniel Vetter
On Tue, Aug 09, 2022 at 03:18:20AM +0200, Thomas Gleixner wrote: > On Tue, Aug 02 2022 at 20:19, Linus Torvalds wrote: > > On Mon, Aug 1, 2022 at 8:08 AM Petr Mladek wrote: > >> > >> - Completely disable printing on consoles with CONFIG_RT. > > And guys, I want to make it really clear how disappoi

[PATCH 0/1] tee: Add tee_shm_register_fd

2022-08-11 Thread Olivier Masse
Add a new ioctl called TEE_IOC_SHM_REGISTER_FD to register a shared memory from a dmabuf file descriptor. Etienne Carriere (1): tee: new ioctl to a register tee_shm from a dmabuf file descriptor drivers/tee/tee_core.c | 38 +++ drivers/tee/tee_shm.c| 99 ++

[PATCH 1/1] tee: new ioctl to a register tee_shm from a dmabuf file descriptor

2022-08-11 Thread Olivier Masse
From: Etienne Carriere This change allows userland to create a tee_shm object that refers to a dmabuf reference. Userland provides a dmabuf file descriptor as buffer reference. The created tee_shm object exported as a brand new dmabuf reference used to provide a clean fd to userland. Userland sh

Re: [PATCH] drm/amdgpu: use native mode for dp aux transfer

2022-08-11 Thread Alex Deucher
On Thu, Aug 11, 2022 at 7:32 AM Zhenneng Li wrote: > > When using amdgpu for e8860, the monitor sometimes haven't any signal, > and the kernel reports some errors: > [ 17.317302][ 2] [ T1045] [drm:amdgpu_atombios_dp_link_train [amdgpu]] > *ERROR* channel eq failed: 5 tries > [ 17.326963][ 2]

[PATCH] drm/fb-helper: add virtual screen size check to drm_fb_helper_check_var()

2022-08-11 Thread Andrey Strachuk
Add virtual screen size check to drm_fb_helper_check_var() in order to validate userspace input. Found by Linux Verification Center (linuxtesting.org) with syzkaller. Signed-off-by: Andrey Strachuk Fixes: 6c11df58fd1a ("fbmem: Check virtual screen sizes in fb_set_var()") --- drivers/gpu/drm/drm

Re: [PATCH v2 2/3] drm/amd/display: consider DSC pass-through during mode validation

2022-08-11 Thread Anders Roxell
onfig kernel from todays next tag, next-20220811. I can see the following build error. ERROR: modpost: "dc_dsc_compute_bandwidth_range" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "dc_dsc_get_policy_for_timing" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefine

[PATCH v2] drm/fb-helper: add virtual screen size check to drm_fb_helper_check_var()

2022-08-11 Thread Andrey Strachuk
Add virtual screen size check to drm_fb_helper_check_var() in order to validate userspace input. Found by Linux Verification Center (linuxtesting.org) with syzkaller. Signed-off-by: Andrey Strachuk Fixes: 785b93ef8c30 ("drm/kms: move driver specific fb common code to helper functions (v2)") ---

Re: [PATCH v2] drm/fb-helper: add virtual screen size check to drm_fb_helper_check_var()

2022-08-11 Thread Geert Uytterhoeven
Hi Andrey, On Thu, Aug 11, 2022 at 4:49 PM Andrey Strachuk wrote: > Add virtual screen size check to drm_fb_helper_check_var() in > order to validate userspace input. > > Found by Linux Verification Center (linuxtesting.org) with syzkaller. > > Signed-off-by: Andrey Strachuk Thanks for the upda

Re: [PATCH v3] drm/msm/dp: check hpd_state before push idle pattern at dp_bridge_disable()

2022-08-11 Thread Kuogee Hsieh
On 8/10/2022 6:00 PM, Abhinav Kumar wrote: Hi Stephen On 8/10/2022 5:09 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-08-10 16:57:51) On 8/10/2022 3:22 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-08-10 12:25:51) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/dr

[PATCH AUTOSEL 5.19 001/105] fbdev: Restart conflicting fb removal loop when unregistering devices

2022-08-11 Thread Sasha Levin
From: Javier Martinez Canillas [ Upstream commit 3367aa7d74d240261de2543ddb35531ccad9d884 ] Drivers that want to remove registered conflicting framebuffers prior to register their own framebuffer, call to remove_conflicting_framebuffers(). This function takes the registration_lock mutex, to pre

[PATCH AUTOSEL 5.19 002/105] drm/r128: Fix undefined behavior due to shift overflowing the constant

2022-08-11 Thread Sasha Levin
From: Borislav Petkov [ Upstream commit 6556551f8848f98eff356c8aacae42c8dd65b2df ] Fix: drivers/gpu/drm/r128/r128_cce.c: In function ‘r128_do_init_cce’: drivers/gpu/drm/r128/r128_cce.c:417:2: error: case label does not reduce to an integer constant case R128_PM4_64BM_64VCBM_64INDBM:

[PATCH AUTOSEL 5.19 006/105] drm/panfrost: Handle HW_ISSUE_TTRX_2968_TTRX_3162

2022-08-11 Thread Sasha Levin
From: Alyssa Rosenzweig [ Upstream commit 382435709516c1a7dc3843872792abf95e786c83 ] Add handling for the HW_ISSUE_TTRX_2968_TTRX_3162 quirk. Logic ported from kbase. kbase lists this workaround as used on Mali-G57. Reviewed-by: Steven Price Signed-off-by: Alyssa Rosenzweig Link: https://pat

[PATCH AUTOSEL 5.19 005/105] drm/nouveau: clear output poll workers before nouveau_fbcon_destroy()

2022-08-11 Thread Sasha Levin
From: Mark Menzynski [ Upstream commit 6b03816f869529393b37d03e5d75b68f7365a7a4 ] Resources needed for output poll workers are destroyed in nouveau_fbcon_fini() before output poll workers are cleared in nouveau_display_fini(). This means there is a time between fbcon_fini() and display_fini(), w

[PATCH AUTOSEL 5.19 007/105] drm/panfrost: Don't set L2_MMU_CONFIG quirks

2022-08-11 Thread Sasha Levin
From: Alyssa Rosenzweig [ Upstream commit d8e53d8a4e0ae842ef5e83e0dfb0796980f710cf ] L2_MMU_CONFIG is an implementation-defined register. Different Mali GPUs define slightly different MAX_READS and MAX_WRITES fields, which throttle outstanding reads and writes when set to non-zero values. When l

[PATCH AUTOSEL 5.19 008/105] drm/panfrost: Add arm, mali-valhall-jm compatible

2022-08-11 Thread Sasha Levin
From: Alyssa Rosenzweig [ Upstream commit 952cd974509251d6b5074bc3677b8297826a6ef1 ] The most important Valhall-specific quirks have been handled, so add the Valhall compatible and probe. v2: Use arm,mali-valhall-jm compatible. Reviewed-by: Steven Price Signed-off-by: Alyssa Rosenzweig Link:

[PATCH AUTOSEL 5.19 013/105] drm/probe-helper: Default to 640x480 if no EDID on DP

2022-08-11 Thread Sasha Levin
From: Douglas Anderson [ Upstream commit fae7d186403ee5a9375ec75938e0de99718e066a ] If we're unable to read the EDID for a display because it's corrupt / bogus / invalid then we'll add a set of standard modes for the display. Since we have no true information about the connected display, these m

[PATCH AUTOSEL 5.19 012/105] drm/amd/display: Detect dpcd_rev when hotplug mst monitor

2022-08-11 Thread Sasha Levin
From: Wayne Lin [ Upstream commit 453b0016a054df0f442fda8a145b97a33816cab9 ] [Why] Once mst topology is constructed, later on new connected monitors are reported to source by CSN message. Within CSN, there is no carried info of DPCD_REV comparing to LINK_ADDRESS reply. As the result, we might le

[PATCH AUTOSEL 5.19 011/105] drm/amd/display: fix system hang when PSR exits

2022-08-11 Thread Sasha Levin
From: David Zhang [ Upstream commit 6cc5c77300afbb285c4f41e04f3435ae3c484c40 ] [why] When DC driver send PSR exit dmub command to DMUB FW, it might not wait until PSR exit. Then it may hit the following deadlock situation. 1. DC driver send HW LOCK command to DMUB FW due to frame update 2. DMUB

[PATCH AUTOSEL 5.19 016/105] drm/amd/display: Correct min comp buffer size

2022-08-11 Thread Sasha Levin
From: Duncan Ma [ Upstream commit 0c56705d8aae9696348cc320b71d531ede001b79 ] [Why] In 3-way mpo pipes, there is a case that we overbook the CRB buffer size. At rare instances, overbooking the crb will cause underflow. This only happens when det_size changes dynamically based on pipe_cnt. [How]

[PATCH AUTOSEL 5.19 017/105] drm/amd/display: Fix dpp dto for disabled pipes

2022-08-11 Thread Sasha Levin
From: Duncan Ma [ Upstream commit d4965c53b95d7533dfc2309d2fc25838bd33220e ] [Why] When switching from 1 pipe to 4to1 mpc combine, DppDtoClk aren't enabled for the disabled pipes pior to programming the pipes. Upon optimizing bandwidth, DppDto are enabled causing intermittent underflow. [How] U

[PATCH AUTOSEL 5.19 019/105] drm/radeon: integer overflow in radeon_mode_dumb_create()

2022-08-11 Thread Sasha Levin
From: Xiaohui Zhang [ Upstream commit feb54650bae25f2a2adfc493e3e254e7c27a3fba ] Similar to the handling of amdgpu_mode_dumb_create in commit 54ef0b5461c0 ("drm/amdgpu: integer overflow in amdgpu_mode_dumb_create()"), we thought a patch might be needed here as well. args->size is a u64. arg->p

[PATCH AUTOSEL 5.19 020/105] drm/radeon: Initialize fences array entries in radeon_sa_bo_next_hole

2022-08-11 Thread Sasha Levin
From: Xiaohui Zhang [ Upstream commit 0381ac3ca2e727d4dfb7264d9416a8ba6bb6c18b ] Similar to the handling of amdgpu_sa_bo_next_hole in commit 6a15f3ff19a8 ("drm/amdgpu: Initialize fences array entries in amdgpu_sa_bo_next_hole"), we thought a patch might be needed here as well. The entries were

[PATCH AUTOSEL 5.19 018/105] drm/amd/display: Reduce frame size in the bouding box for DCN20

2022-08-11 Thread Sasha Levin
From: Rodrigo Siqueira [ Upstream commit c55300ad4a1814bac9191a4d2c7b0d74273aec7c ] GCC throw warnings for the function dcn20_update_bounding_box due to its frame size that looks like this: error: the frame size of 1936 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] This commit

[PATCH AUTOSEL 5.19 021/105] udmabuf: Set the DMA mask for the udmabuf device (v2)

2022-08-11 Thread Sasha Levin
From: Vivek Kasireddy [ Upstream commit 9e9fa6a9198b767b00f48160800128e83a038f9f ] If the DMA mask is not set explicitly, the following warning occurs when the userspace tries to access the dma-buf via the CPU as reported by syzbot here: WARNING: CPU: 1 PID: 3595 at kernel/dma/mapping.c:188 __d

[PATCH AUTOSEL 5.19 025/105] drm/amd/display: Fix monitor flash issue

2022-08-11 Thread Sasha Levin
From: Shah Dharati [ Upstream commit b840b64bc8ed3fc46f6d6aa7f97c43862a33bea5 ] [Why & How] For a some specific monitors, when connected on boot or hot plug, monitor flash for 1/2 seconds can happen during first HDCP query operation. Ading some delay in the init sequence for these monitors fixes

[PATCH AUTOSEL 5.19 038/105] drm/bridge/tc358775: Fix DSI clock division for vsync delay calculation

2022-08-11 Thread Sasha Levin
From: Jiri Vanek [ Upstream commit 993a87917c2af59efb0ee1ce43c878ca8790ba1c ] Use the same PCLK divide option (divide DSI clock to generate pixel clock) which is set to LVDS Configuration Register (LVCFG) also for a VSync delay calculation. Without this change an auxiliary variable could underfl

[PATCH AUTOSEL 5.19 044/105] drm/amdkfd: Free queue after unmap queue success

2022-08-11 Thread Sasha Levin
From: Philip Yang [ Upstream commit ab8529b0cdb271d9b222cbbddb2641f3fca5df8f ] After queue unmap or remove from MES successfully, free queue sysfs entries, doorbell and remove from queue list. Otherwise, application may destroy queue again, cause below kernel warning or crash backtrace. For out

[PATCH AUTOSEL 5.19 045/105] amdgpu/pm: Fix possible array out-of-bounds if SCLK levels != 2

2022-08-11 Thread Sasha Levin
From: Darren Powell [ Upstream commit ceb180361e3851007547c55035cd1de03f108f75 ] [v2] simplified fix after Lijo's feedback removed clocks.num_levels from calculation of loop count removed unsafe accesses to shim table freq_values retained corner case output only min,now if clocks.num_le

[PATCH AUTOSEL 5.19 046/105] drm/ast: Fixed the casting issue reported by sparse

2022-08-11 Thread Sasha Levin
From: KuoHsiang Chou [ Upstream commit 232b95ba4e83ca0a77f19fc772ccc6581051e5cc ] V1: 1.Fixed sparse:cast truncates bits form constant value ()cast truncates bits from constant value (ff00 becomes 0) Reported-by: kernel test robot Signed-off-by: KuoHsiang Chou Signed-off-by: Tho

[PATCH AUTOSEL 5.19 052/105] drm/amdgpu/display/dc: Fix null pointer exception

2022-08-11 Thread Sasha Levin
From: Rahul Kumar [ Upstream commit 1c4dae3e4639540fb567e570cc56a3c292afb6fe ] We observed hard hang due to NULL derefrence This issue is seen after running system all the time after two or three days struct dc *dc = plane_state->ctx->dc; Randomly in long run we found plane_state or plane_state

[PATCH AUTOSEL 5.19 057/105] drm/amdgpu: skip whole ras bad page framework on sriov

2022-08-11 Thread Sasha Levin
From: "Stanley.Yang" [ Upstream commit e0e146d5567317d6ba7d0169bed55d1d9ea05a61 ] It should not init whole ras bad page framework on sriov guest side due to it is handled on host side. Signed-off-by: Stanley.Yang Reviewed-by: Hawking Zhang Reviewed-by: Tao Zhou Signed-off-by: Alex Deucher S

[PATCH AUTOSEL 5.19 058/105] drm/amd/display: Guard against ddc_pin being NULL for AUX

2022-08-11 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit bc19909f19fdc8253d720d11c948935786fbfa08 ] [Why] In the case where we don't support DMUB aux but we have DPIA links in the configuration we might try to message AUX using the legacy path - where DDC pin is NULL. This causes a NULL pointer dereference.

[PATCH AUTOSEL 5.19 059/105] drm/amd/display: Fix dmub soft hang for PSR 1

2022-08-11 Thread Sasha Levin
From: Fangzhi Zuo [ Upstream commit 22676bc500c27d987a0b42cbe162aebf783f1c38 ] [Why] Unexpected change of aux hw mapping causes dmub soft hang when initiate aux transation at wrong aux channel. ddc_channel stands for hw dp aux index which is from vbios, but link_index is pure software concept f

[PATCH AUTOSEL 5.19 060/105] drm/amd/display: disable otg toggle w/a on boot

2022-08-11 Thread Sasha Levin
From: Dmytro Laktyushkin [ Upstream commit 8a077d9caa3a274de36ee2fe7b608041f5690343 ] This w/a has a bad interaction with seamless boot toggling an active stream. Most panels recover, however some fail leading to display corruption. Reviewed-by: Charlene Liu Acked-by: Rodrigo Siqueira Signed-

[PATCH AUTOSEL 5.19 062/105] drm/msm/gem: Drop obj lock in msm_gem_free_object()

2022-08-11 Thread Sasha Levin
From: Rob Clark [ Upstream commit a414fe3a2129b490e1e9b8ad66f0364f4f961887 ] The only reason we grabbed the lock was to satisfy a bunch of places that WARN_ON() if called without the lock held. But this angers lockdep which doesn't realize no one else can be holding the lock by the time we end

[PATCH AUTOSEL 5.19 064/105] drm/amdgpu: Fix one list corruption when create queue fails

2022-08-11 Thread Sasha Levin
From: xinhui pan [ Upstream commit cc3cb791f19ad0c4f951f38c98aa513b042ab329 ] Queue would be freed when create_queue_cpsch fails So lets do queue cleanup otherwise various list and memory issues happen. Signed-off-by: xinhui pan Reviewed-by: Philip Yang Signed-off-by: Alex Deucher Signed-off

[PATCH AUTOSEL 5.19 069/105] drm/nouveau/nvkm: use list_add_tail() when building object tree

2022-08-11 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 61c1f340bc809a1ca1e3c8794207a91cde1a7c78 ] Fixes resume from hibernate failing on (at least) TU102, where cursor channel init failed due to being performed before the core channel. Not solid idea why suspend-to-ram worked, but, presumably HW being in an entire

[PATCH AUTOSEL 5.19 070/105] drm/amdgpu: fix file permissions on some files

2022-08-11 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 0a94608f0f7de9b1135ffea3546afe68eafef57f ] Drop execute. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2085 Reviewed-by: Guchun Chen Reviewed-by: Christian König Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/inclu

[PATCH AUTOSEL 5.19 075/105] drm/amdgpu: Call trace info was found in dmesg when loading amdgpu

2022-08-11 Thread Sasha Levin
From: lin cao [ Upstream commit 748262eb400e809aa13e3485f4983c3db3d0ebb3 ] In the case of SRIOV, the register smnMp1_PMI_3_FIFO will get an invalid value which will cause the "shift out of bound". In Ubuntu22.04, this issue will be checked an related call trace will be reported in dmesg. Signed

[PATCH AUTOSEL 5.19 091/105] drm/amdkfd: Correct mmu_notifier_get failure handling

2022-08-11 Thread Sasha Levin
From: Philip Yang [ Upstream commit 0593ad215359d51514c1e6c81ce28ea598efed6b ] If process has signal pending, mmu_notifier_get_locked fails and calls ops->free_notifier, kfd_process_free_notifier will schedule kfd_process_wq_release as process refcount is 1, but process structure is already free

[PATCH AUTOSEL 5.19 092/105] drm/amdkfd: Process notifier release callback don't take mutex

2022-08-11 Thread Sasha Levin
From: Philip Yang [ Upstream commit 74097f9fd2f5ebdae04fcba59da345386415cbf3 ] Move process queues cleanup to deferred work kfd_process_wq_release, to avoid potential deadlock circular locking warning: WARNING: possible circular locking dependency detected the existing dependenc

[PATCH AUTOSEL 5.18 01/93] fbdev: Restart conflicting fb removal loop when unregistering devices

2022-08-11 Thread Sasha Levin
From: Javier Martinez Canillas [ Upstream commit 3367aa7d74d240261de2543ddb35531ccad9d884 ] Drivers that want to remove registered conflicting framebuffers prior to register their own framebuffer, call to remove_conflicting_framebuffers(). This function takes the registration_lock mutex, to pre

[PATCH AUTOSEL 5.18 02/93] drm/r128: Fix undefined behavior due to shift overflowing the constant

2022-08-11 Thread Sasha Levin
From: Borislav Petkov [ Upstream commit 6556551f8848f98eff356c8aacae42c8dd65b2df ] Fix: drivers/gpu/drm/r128/r128_cce.c: In function ‘r128_do_init_cce’: drivers/gpu/drm/r128/r128_cce.c:417:2: error: case label does not reduce to an integer constant case R128_PM4_64BM_64VCBM_64INDBM:

[PATCH AUTOSEL 5.18 05/93] drm/nouveau: clear output poll workers before nouveau_fbcon_destroy()

2022-08-11 Thread Sasha Levin
From: Mark Menzynski [ Upstream commit 6b03816f869529393b37d03e5d75b68f7365a7a4 ] Resources needed for output poll workers are destroyed in nouveau_fbcon_fini() before output poll workers are cleared in nouveau_display_fini(). This means there is a time between fbcon_fini() and display_fini(), w

[PATCH AUTOSEL 5.18 08/93] drm/panfrost: Add arm, mali-valhall-jm compatible

2022-08-11 Thread Sasha Levin
From: Alyssa Rosenzweig [ Upstream commit 952cd974509251d6b5074bc3677b8297826a6ef1 ] The most important Valhall-specific quirks have been handled, so add the Valhall compatible and probe. v2: Use arm,mali-valhall-jm compatible. Reviewed-by: Steven Price Signed-off-by: Alyssa Rosenzweig Link:

[PATCH AUTOSEL 5.18 07/93] drm/panfrost: Don't set L2_MMU_CONFIG quirks

2022-08-11 Thread Sasha Levin
From: Alyssa Rosenzweig [ Upstream commit d8e53d8a4e0ae842ef5e83e0dfb0796980f710cf ] L2_MMU_CONFIG is an implementation-defined register. Different Mali GPUs define slightly different MAX_READS and MAX_WRITES fields, which throttle outstanding reads and writes when set to non-zero values. When l

[PATCH AUTOSEL 5.18 06/93] drm/panfrost: Handle HW_ISSUE_TTRX_2968_TTRX_3162

2022-08-11 Thread Sasha Levin
From: Alyssa Rosenzweig [ Upstream commit 382435709516c1a7dc3843872792abf95e786c83 ] Add handling for the HW_ISSUE_TTRX_2968_TTRX_3162 quirk. Logic ported from kbase. kbase lists this workaround as used on Mali-G57. Reviewed-by: Steven Price Signed-off-by: Alyssa Rosenzweig Link: https://pat

[PATCH AUTOSEL 5.18 11/93] drm/amd/display: fix system hang when PSR exits

2022-08-11 Thread Sasha Levin
From: David Zhang [ Upstream commit 6cc5c77300afbb285c4f41e04f3435ae3c484c40 ] [why] When DC driver send PSR exit dmub command to DMUB FW, it might not wait until PSR exit. Then it may hit the following deadlock situation. 1. DC driver send HW LOCK command to DMUB FW due to frame update 2. DMUB

[PATCH AUTOSEL 5.18 13/93] drm/probe-helper: Default to 640x480 if no EDID on DP

2022-08-11 Thread Sasha Levin
From: Douglas Anderson [ Upstream commit fae7d186403ee5a9375ec75938e0de99718e066a ] If we're unable to read the EDID for a display because it's corrupt / bogus / invalid then we'll add a set of standard modes for the display. Since we have no true information about the connected display, these m

[PATCH AUTOSEL 5.18 12/93] drm/amd/display: Detect dpcd_rev when hotplug mst monitor

2022-08-11 Thread Sasha Levin
From: Wayne Lin [ Upstream commit 453b0016a054df0f442fda8a145b97a33816cab9 ] [Why] Once mst topology is constructed, later on new connected monitors are reported to source by CSN message. Within CSN, there is no carried info of DPCD_REV comparing to LINK_ADDRESS reply. As the result, we might le

[PATCH AUTOSEL 5.18 16/93] drm/amd/display: Fix dpp dto for disabled pipes

2022-08-11 Thread Sasha Levin
From: Duncan Ma [ Upstream commit d4965c53b95d7533dfc2309d2fc25838bd33220e ] [Why] When switching from 1 pipe to 4to1 mpc combine, DppDtoClk aren't enabled for the disabled pipes pior to programming the pipes. Upon optimizing bandwidth, DppDto are enabled causing intermittent underflow. [How] U

[PATCH AUTOSEL 5.18 17/93] drm/amd/display: Reduce frame size in the bouding box for DCN20

2022-08-11 Thread Sasha Levin
From: Rodrigo Siqueira [ Upstream commit c55300ad4a1814bac9191a4d2c7b0d74273aec7c ] GCC throw warnings for the function dcn20_update_bounding_box due to its frame size that looks like this: error: the frame size of 1936 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] This commit

[PATCH AUTOSEL 5.18 18/93] drm/radeon: integer overflow in radeon_mode_dumb_create()

2022-08-11 Thread Sasha Levin
From: Xiaohui Zhang [ Upstream commit feb54650bae25f2a2adfc493e3e254e7c27a3fba ] Similar to the handling of amdgpu_mode_dumb_create in commit 54ef0b5461c0 ("drm/amdgpu: integer overflow in amdgpu_mode_dumb_create()"), we thought a patch might be needed here as well. args->size is a u64. arg->p

[PATCH AUTOSEL 5.18 19/93] drm/radeon: Initialize fences array entries in radeon_sa_bo_next_hole

2022-08-11 Thread Sasha Levin
From: Xiaohui Zhang [ Upstream commit 0381ac3ca2e727d4dfb7264d9416a8ba6bb6c18b ] Similar to the handling of amdgpu_sa_bo_next_hole in commit 6a15f3ff19a8 ("drm/amdgpu: Initialize fences array entries in amdgpu_sa_bo_next_hole"), we thought a patch might be needed here as well. The entries were

[PATCH AUTOSEL 5.18 20/93] udmabuf: Set the DMA mask for the udmabuf device (v2)

2022-08-11 Thread Sasha Levin
From: Vivek Kasireddy [ Upstream commit 9e9fa6a9198b767b00f48160800128e83a038f9f ] If the DMA mask is not set explicitly, the following warning occurs when the userspace tries to access the dma-buf via the CPU as reported by syzbot here: WARNING: CPU: 1 PID: 3595 at kernel/dma/mapping.c:188 __d

[PATCH AUTOSEL 5.18 24/93] drm/amd/display: Fix monitor flash issue

2022-08-11 Thread Sasha Levin
From: Shah Dharati [ Upstream commit b840b64bc8ed3fc46f6d6aa7f97c43862a33bea5 ] [Why & How] For a some specific monitors, when connected on boot or hot plug, monitor flash for 1/2 seconds can happen during first HDCP query operation. Ading some delay in the init sequence for these monitors fixes

[PATCH AUTOSEL 5.18 35/93] drm/bridge/tc358775: Fix DSI clock division for vsync delay calculation

2022-08-11 Thread Sasha Levin
From: Jiri Vanek [ Upstream commit 993a87917c2af59efb0ee1ce43c878ca8790ba1c ] Use the same PCLK divide option (divide DSI clock to generate pixel clock) which is set to LVDS Configuration Register (LVCFG) also for a VSync delay calculation. Without this change an auxiliary variable could underfl

[PATCH AUTOSEL 5.18 41/93] amdgpu/pm: Fix possible array out-of-bounds if SCLK levels != 2

2022-08-11 Thread Sasha Levin
From: Darren Powell [ Upstream commit ceb180361e3851007547c55035cd1de03f108f75 ] [v2] simplified fix after Lijo's feedback removed clocks.num_levels from calculation of loop count removed unsafe accesses to shim table freq_values retained corner case output only min,now if clocks.num_le

[PATCH AUTOSEL 5.18 47/93] drm/amdgpu/display/dc: Fix null pointer exception

2022-08-11 Thread Sasha Levin
From: Rahul Kumar [ Upstream commit 1c4dae3e4639540fb567e570cc56a3c292afb6fe ] We observed hard hang due to NULL derefrence This issue is seen after running system all the time after two or three days struct dc *dc = plane_state->ctx->dc; Randomly in long run we found plane_state or plane_state

[PATCH AUTOSEL 5.18 51/93] drm/amdgpu: skip whole ras bad page framework on sriov

2022-08-11 Thread Sasha Levin
From: "Stanley.Yang" [ Upstream commit e0e146d5567317d6ba7d0169bed55d1d9ea05a61 ] It should not init whole ras bad page framework on sriov guest side due to it is handled on host side. Signed-off-by: Stanley.Yang Reviewed-by: Hawking Zhang Reviewed-by: Tao Zhou Signed-off-by: Alex Deucher S

[PATCH AUTOSEL 5.18 52/93] drm/amd/display: Guard against ddc_pin being NULL for AUX

2022-08-11 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit bc19909f19fdc8253d720d11c948935786fbfa08 ] [Why] In the case where we don't support DMUB aux but we have DPIA links in the configuration we might try to message AUX using the legacy path - where DDC pin is NULL. This causes a NULL pointer dereference.

[PATCH AUTOSEL 5.18 53/93] drm/amd/display: Fix dmub soft hang for PSR 1

2022-08-11 Thread Sasha Levin
From: Fangzhi Zuo [ Upstream commit 22676bc500c27d987a0b42cbe162aebf783f1c38 ] [Why] Unexpected change of aux hw mapping causes dmub soft hang when initiate aux transation at wrong aux channel. ddc_channel stands for hw dp aux index which is from vbios, but link_index is pure software concept f

[PATCH AUTOSEL 5.18 54/93] drm/amd/display: disable otg toggle w/a on boot

2022-08-11 Thread Sasha Levin
From: Dmytro Laktyushkin [ Upstream commit 8a077d9caa3a274de36ee2fe7b608041f5690343 ] This w/a has a bad interaction with seamless boot toggling an active stream. Most panels recover, however some fail leading to display corruption. Reviewed-by: Charlene Liu Acked-by: Rodrigo Siqueira Signed-

[PATCH AUTOSEL 5.18 56/93] drm/msm/gem: Drop obj lock in msm_gem_free_object()

2022-08-11 Thread Sasha Levin
From: Rob Clark [ Upstream commit a414fe3a2129b490e1e9b8ad66f0364f4f961887 ] The only reason we grabbed the lock was to satisfy a bunch of places that WARN_ON() if called without the lock held. But this angers lockdep which doesn't realize no one else can be holding the lock by the time we end

[PATCH AUTOSEL 5.18 62/93] drm/nouveau/nvkm: use list_add_tail() when building object tree

2022-08-11 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 61c1f340bc809a1ca1e3c8794207a91cde1a7c78 ] Fixes resume from hibernate failing on (at least) TU102, where cursor channel init failed due to being performed before the core channel. Not solid idea why suspend-to-ram worked, but, presumably HW being in an entire

[PATCH AUTOSEL 5.18 63/93] drm/amdgpu: fix file permissions on some files

2022-08-11 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 0a94608f0f7de9b1135ffea3546afe68eafef57f ] Drop execute. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2085 Reviewed-by: Guchun Chen Reviewed-by: Christian König Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/inclu

[PATCH AUTOSEL 5.18 67/93] drm/amdgpu: Call trace info was found in dmesg when loading amdgpu

2022-08-11 Thread Sasha Levin
From: lin cao [ Upstream commit 748262eb400e809aa13e3485f4983c3db3d0ebb3 ] In the case of SRIOV, the register smnMp1_PMI_3_FIFO will get an invalid value which will cause the "shift out of bound". In Ubuntu22.04, this issue will be checked an related call trace will be reported in dmesg. Signed

[PATCH AUTOSEL 5.18 83/93] drm/amdkfd: Process notifier release callback don't take mutex

2022-08-11 Thread Sasha Levin
From: Philip Yang [ Upstream commit 74097f9fd2f5ebdae04fcba59da345386415cbf3 ] Move process queues cleanup to deferred work kfd_process_wq_release, to avoid potential deadlock circular locking warning: WARNING: possible circular locking dependency detected the existing dependenc

[PATCH AUTOSEL 5.18 82/93] drm/amdkfd: Correct mmu_notifier_get failure handling

2022-08-11 Thread Sasha Levin
From: Philip Yang [ Upstream commit 0593ad215359d51514c1e6c81ce28ea598efed6b ] If process has signal pending, mmu_notifier_get_locked fails and calls ops->free_notifier, kfd_process_free_notifier will schedule kfd_process_wq_release as process refcount is 1, but process structure is already free

[PATCH AUTOSEL 5.15 01/69] fbdev: Restart conflicting fb removal loop when unregistering devices

2022-08-11 Thread Sasha Levin
From: Javier Martinez Canillas [ Upstream commit 3367aa7d74d240261de2543ddb35531ccad9d884 ] Drivers that want to remove registered conflicting framebuffers prior to register their own framebuffer, call to remove_conflicting_framebuffers(). This function takes the registration_lock mutex, to pre

[PATCH AUTOSEL 5.15 02/69] drm/r128: Fix undefined behavior due to shift overflowing the constant

2022-08-11 Thread Sasha Levin
From: Borislav Petkov [ Upstream commit 6556551f8848f98eff356c8aacae42c8dd65b2df ] Fix: drivers/gpu/drm/r128/r128_cce.c: In function ‘r128_do_init_cce’: drivers/gpu/drm/r128/r128_cce.c:417:2: error: case label does not reduce to an integer constant case R128_PM4_64BM_64VCBM_64INDBM:

[PATCH AUTOSEL 5.15 05/69] drm/nouveau: clear output poll workers before nouveau_fbcon_destroy()

2022-08-11 Thread Sasha Levin
From: Mark Menzynski [ Upstream commit 6b03816f869529393b37d03e5d75b68f7365a7a4 ] Resources needed for output poll workers are destroyed in nouveau_fbcon_fini() before output poll workers are cleared in nouveau_display_fini(). This means there is a time between fbcon_fini() and display_fini(), w

[PATCH AUTOSEL 5.15 07/69] drm/panfrost: Don't set L2_MMU_CONFIG quirks

2022-08-11 Thread Sasha Levin
From: Alyssa Rosenzweig [ Upstream commit d8e53d8a4e0ae842ef5e83e0dfb0796980f710cf ] L2_MMU_CONFIG is an implementation-defined register. Different Mali GPUs define slightly different MAX_READS and MAX_WRITES fields, which throttle outstanding reads and writes when set to non-zero values. When l

[PATCH AUTOSEL 5.15 06/69] drm/panfrost: Handle HW_ISSUE_TTRX_2968_TTRX_3162

2022-08-11 Thread Sasha Levin
From: Alyssa Rosenzweig [ Upstream commit 382435709516c1a7dc3843872792abf95e786c83 ] Add handling for the HW_ISSUE_TTRX_2968_TTRX_3162 quirk. Logic ported from kbase. kbase lists this workaround as used on Mali-G57. Reviewed-by: Steven Price Signed-off-by: Alyssa Rosenzweig Link: https://pat

[PATCH AUTOSEL 5.15 08/69] drm/panfrost: Add arm, mali-valhall-jm compatible

2022-08-11 Thread Sasha Levin
From: Alyssa Rosenzweig [ Upstream commit 952cd974509251d6b5074bc3677b8297826a6ef1 ] The most important Valhall-specific quirks have been handled, so add the Valhall compatible and probe. v2: Use arm,mali-valhall-jm compatible. Reviewed-by: Steven Price Signed-off-by: Alyssa Rosenzweig Link:

[PATCH AUTOSEL 5.15 11/69] drm/amd/display: fix system hang when PSR exits

2022-08-11 Thread Sasha Levin
From: David Zhang [ Upstream commit 6cc5c77300afbb285c4f41e04f3435ae3c484c40 ] [why] When DC driver send PSR exit dmub command to DMUB FW, it might not wait until PSR exit. Then it may hit the following deadlock situation. 1. DC driver send HW LOCK command to DMUB FW due to frame update 2. DMUB

[PATCH AUTOSEL 5.15 12/69] drm/amd/display: Detect dpcd_rev when hotplug mst monitor

2022-08-11 Thread Sasha Levin
From: Wayne Lin [ Upstream commit 453b0016a054df0f442fda8a145b97a33816cab9 ] [Why] Once mst topology is constructed, later on new connected monitors are reported to source by CSN message. Within CSN, there is no carried info of DPCD_REV comparing to LINK_ADDRESS reply. As the result, we might le

[PATCH AUTOSEL 5.15 13/69] drm/probe-helper: Default to 640x480 if no EDID on DP

2022-08-11 Thread Sasha Levin
From: Douglas Anderson [ Upstream commit fae7d186403ee5a9375ec75938e0de99718e066a ] If we're unable to read the EDID for a display because it's corrupt / bogus / invalid then we'll add a set of standard modes for the display. Since we have no true information about the connected display, these m

  1   2   >