[linux-next:master] BUILD SUCCESS WITH WARNING e922ba281a8d84f640d8c8e18a385d032c19e185

2023-05-12 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: e922ba281a8d84f640d8c8e18a385d032c19e185 Add linux-next specific files for 20230512 Warning reports: https://lore.kernel.org/oe-kbuild-all/202305130809.sjnm01fl-...@intel.com Warning

[PATCH 10/10] drm/amdgpu: initialize RAS for gfx_v9_4_3

2023-05-12 Thread Alex Deucher
From: Tao Zhou Register GFX RAS functions and initialize GFX RAS. v2: remove xcp operations. v3: reuse the return value of gfx_ras_sw_init. Signed-off-by: Tao Zhou Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 18 +- 1

[PATCH 07/10] drm/amdgpu: add RAS error count query for gfx_v9_4_3

2023-05-12 Thread Alex Deucher
From: Tao Zhou Query GFX RAS ce/ue count. Signed-off-by: Tao Zhou Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 56 + 1 file changed, 56 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c

[PATCH 09/10] drm/amdgpu: add sq timeout status functions for gfx_v9_4_3

2023-05-12 Thread Alex Deucher
From: Tao Zhou Query and reset sq timeout status. v2: change instance from 0 to xcc_id for register access. Signed-off-by: Tao Zhou Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 98 + 1 file changed, 98

[PATCH 08/10] drm/amdgpu: add RAS error count reset for gfx_v9_4_3

2023-05-12 Thread Alex Deucher
From: Tao Zhou Add GFX RAS error count reset function. v2: remove xcp operation. only select_se_sh when instance number is more than 1. v3: add check for se_num before select_se_sh. change instance from 0 to xcc_id for register access. Signed-off-by: Tao Zhou Reviewed-by: Hawking

[PATCH 06/10] drm/amdgpu: add RAS error count definitions for gfx_v9_4_3

2023-05-12 Thread Alex Deucher
From: Tao Zhou Prepare for the query of GFX RAS ce/ue count. v2: remove xcp operation. only select_se_sh when instance number is more than 1. v3: add more CE/UE registsers to query list. add check for se_num before select_se_sh. change instance from 0 to xcc_id for register access.

[PATCH 05/10] drm/amdgpu: add RAS definitions for GFX

2023-05-12 Thread Alex Deucher
From: Tao Zhou Add common GFX RAS definitions. v2: remove instance from amdgpu_gfx_ras_reg_entry, amdgpu_ras_err_status_reg_entry has already defined it. v3: remove memory id definitions from amdgpu_gfx.h, they are related to IP version. Signed-off-by: Tao Zhou Reviewed-by: Hawking

[PATCH 03/10] drm/amdgpu: add RAS status reset for gfx_v9_4_3

2023-05-12 Thread Alex Deucher
From: Tao Zhou Reset GFX RAS status registers. v2: fix typo in title. remove xcp operation. v3: change instance from 0 to xcc_id for register access. Signed-off-by: Tao Zhou Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 41

[PATCH 02/10] drm/amdgpu: add RAS status query for gfx_v9_4_3

2023-05-12 Thread Alex Deucher
From: Tao Zhou Query GFX RAS status. v2: remove xcp operation. v3: change instance from 0 to xcc_id for register access. Signed-off-by: Tao Zhou Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 75 + 1 file

[PATCH 01/10] drm/amdgpu: add GFX RAS common function

2023-05-12 Thread Alex Deucher
From: Tao Zhou The common function can help reduce redundant code. v2: remove xcp operation, only need to do RAS operations for all instances. v3: remove check for GFX RAS support, will be checked in higher level. add amdgpu prefix for the function name. Signed-off-by: Tao Zhou

Re: [PATCH 2/2] drm/amdgpu/gfx11: Adjust gfxoff before powergating on gfx11 as well

2023-05-12 Thread Guilherme G. Piccoli
On 12/05/2023 10:29, Alex Deucher wrote: > [...] >> BTW, I couldn't test this one since I don't have GFX11 HW, so appreciate >> if anyone from AMD (or any community member) could give it a try... > > We've tested this on gfx11 and applied the patches. Thanks! > > Alex > That's great, thanks a

Re: [PATCH] drm/amdgpu: improve wait logic at fence polling

2023-05-12 Thread Alex Deucher
On Mon, May 1, 2023 at 11:13 AM Felix Kuehling wrote: > > Am 2023-04-26 um 12:15 schrieb Alex Sierra: > > Accomplish this by reading the seq number right away instead of sleep > > for 5us. There are certain cases where the fence is ready almost > > immediately. Sleep number granularity was also

Re: [Intel-gfx] [PATCH 07/11] drm/omapdrm: Use regular fbdev I/O helpers

2023-05-12 Thread kernel test robot
Hi Thomas, kernel test robot noticed the following build errors: [auto build test ERROR on 451e49cfbaa90720149e63f4fa9c7824013c783d] url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Zimmermann/drm-armada-Use-regular-fbdev-I-O-helpers/20230512-164432 base

Re: Fwd: Linux 6.3.1 + AMD RX 570 on ppc64le 4K: Kernel attempted to read user page (1128) - exploit attempt? (uid: 0)

2023-05-12 Thread Christophe Leroy
Le 12/05/2023 à 17:16, Christophe Leroy a écrit : > > > Le 11/05/2023 à 19:25, Niccolò Belli a écrit : >> [Vous ne recevez pas souvent de courriers de >> darkba...@linuxsystems.it. D?couvrez pourquoi ceci est important ? >> https://aka.ms/LearnAboutSenderIdentification ] >> >> Il 2023-05-12

Re: Fwd: Linux 6.3.1 + AMD RX 570 on ppc64le 4K: Kernel attempted to read user page (1128) - exploit attempt? (uid: 0)

2023-05-12 Thread Alex Deucher
On Fri, May 12, 2023 at 11:16 AM Christophe Leroy wrote: > > > > Le 11/05/2023 à 19:25, Niccolò Belli a écrit : > > [Vous ne recevez pas souvent de courriers de darkba...@linuxsystems.it. > > D?couvrez pourquoi ceci est important ? > > https://aka.ms/LearnAboutSenderIdentification ] > > > > Il

Re: Fwd: Linux 6.3.1 + AMD RX 570 on ppc64le 4K: Kernel attempted to read user page (1128) - exploit attempt? (uid: 0)

2023-05-12 Thread Christophe Leroy
Le 11/05/2023 à 19:25, Niccolò Belli a écrit : > [Vous ne recevez pas souvent de courriers de darkba...@linuxsystems.it. > D?couvrez pourquoi ceci est important ? > https://aka.ms/LearnAboutSenderIdentification ] > > Il 2023-05-12 10:32 Bagas Sanjaya ha scritto: >> #regzbot introduced:

Re: [PATCH] amd/amdgpu: perform soft reset for sdma fed error

2023-05-12 Thread Alex Deucher
On Fri, May 12, 2023 at 3:49 AM YiPeng Chai wrote: > > When testing sdma ib ring fails to detect sdma > hang for sdma fed error, force to perform soft > reset. > > Signed-off-by: YiPeng Chai Acked-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 16 > 1 file

Re: [PATCH] drm/amd/display: Simplify the calculation of variables

2023-05-12 Thread Hamza Mahfooz
On 5/12/23 03:04, Jiapeng Chong wrote: ./drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c:586:37-39: WARNING !A || A && B is equivalent to !A || B. ./drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c:595:37-39: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Link:

RE: [PATCH 04/11] drm/radeon: Use regular fbdev I/O helpers

2023-05-12 Thread Deucher, Alexander
[Public] > -Original Message- > From: Thomas Zimmermann > Sent: Friday, May 12, 2023 4:42 AM > To: dan...@ffwll.ch; airl...@gmail.com; maarten.lankho...@linux.intel.com; > mrip...@kernel.org; javi...@redhat.com > Cc: dri-de...@lists.freedesktop.org; linux-arm-ker...@lists.infradead.org;

Re: [PATCH 00/11] drm/fbdev: Remove DRM's helpers for fbdev I/O

2023-05-12 Thread Sam Ravnborg
Hi Thomas, > > > > Nice cleanup. > > > > From one of the patches: > > > > > +config DRM_ARMADA_FBDEV_EMULATION > > > + bool > > > + depends on DRM_ARMADA > > > + select FB_CFB_COPYAREA > > > + select FB_CFB_FILLRECT > > > + select FB_CFB_IMAGEBLIT > > > > This seems like a

Re: [PATCH 2/2] drm/amdgpu/gfx11: Adjust gfxoff before powergating on gfx11 as well

2023-05-12 Thread Alex Deucher
On Tue, May 9, 2023 at 1:04 PM Guilherme G. Piccoli wrote: > > On 09/05/2023 13:49, Bas Nieuwenhuizen wrote: > > From: "Guilherme G. Piccoli" > > > > (Bas: speculative change to mirror gfx10/gfx9) > > > > Signed-off-by: Guilherme G. Piccoli > > Cc: Alex Deucher > > --- > > Thanks a lot for

Re: drm/amdgpu: Differentiate between Raven2 and Raven/Picasso according to revision id.

2023-05-12 Thread Alex Deucher
Acked-by: Alex Deucher On Thu, May 11, 2023 at 9:20 PM Zhang, Jesse(Jie) wrote: > > [AMD Official Use Only - General] > > > drm/amdgpu: Differentiate between Raven2 and Raven/Picasso according to > revision id. > > > > Due to the raven2 and raven/picasso maybe have the same GC_HWIP

Re: [PATCH 06/11] drm/msm: Use regular fbdev I/O helpers

2023-05-12 Thread Dmitry Baryshkov
On Fri, 12 May 2023 at 11:41, Thomas Zimmermann wrote: > > Use the regular fbdev helpers for framebuffer I/O instead of DRM's > helpers. Msm does not use damage handling, so DRM's fbdev helpers > are mere wrappers around the fbdev code. > > Add CONFIG_DRM_MSM_FBDEV_EMULATION to select the

Re: [PATCH] drm/amdgpu: fix S3 issue if MQD in VRAM

2023-05-12 Thread Alex Deucher
On Fri, May 12, 2023 at 4:16 AM Jack Xiao wrote: > > Make the preemption optimization effect only for SRIOV, > for it caused failure to resume from S3. Can you elaborate? We ultimately want MQDs in VRAM for performance reasons even for bare metal. Alex > > Signed-off-by: Jack Xiao > --- >

Re: [PATCH 00/11] drm/fbdev: Remove DRM's helpers for fbdev I/O

2023-05-12 Thread Thomas Zimmermann
Hi Sam Am 12.05.23 um 12:29 schrieb Sam Ravnborg: Hi Thomas, On Fri, May 12, 2023 at 10:41:41AM +0200, Thomas Zimmermann wrote: DRM provides a number of wrappers around fbdev cfb_() sys_(), fb_io_() and fb_sys_() helpers. The DRM functions don't provide any additional functionality for most

RE: [PATCH] drm/amdgpu: Remove IMU ucode in vf2pf

2023-05-12 Thread Chen, Horace
[AMD Official Use Only - General] Reviewed-By: Horace Chen -Original Message- From: YuanShang Mao (River) Sent: Tuesday, May 9, 2023 3:32 PM To: amd-gfx@lists.freedesktop.org Cc: Yin, ZhenGuo (Chris) ; Chen, Horace ; YuanShang Mao (River) Subject: [PATCH] drm/amdgpu: Remove IMU ucode

Re: [PATCH 00/11] drm/fbdev: Remove DRM's helpers for fbdev I/O

2023-05-12 Thread Sam Ravnborg
Hi Thomas, On Fri, May 12, 2023 at 10:41:41AM +0200, Thomas Zimmermann wrote: > DRM provides a number of wrappers around fbdev cfb_() sys_(), fb_io_() > and fb_sys_() helpers. The DRM functions don't provide any additional > functionality for most DRM drivers. So remove them and call the fbdev >

Re: Fwd: Linux 6.3.1 + AMD RX 570 on ppc64le 4K: Kernel attempted to read user page (1128) - exploit attempt? (uid: 0)

2023-05-12 Thread Michael Ellerman
Bagas Sanjaya writes: > Hi, > > I notice a regression report on bugzilla ([1]). As many developers > don't keep an eye on it, I decide to forward it by email. Bugs filed against powerpc do get Cc'ed to linuxppc-dev, so we do see them. Though that doesn't always mean we have time to fix them :)

[PATCH] drm/amd/display: Simplify the calculation of variables

2023-05-12 Thread Jiapeng Chong
./drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c:586:37-39: WARNING !A || A && B is equivalent to !A || B. ./drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c:595:37-39: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Link:

Re: Fwd: Linux 6.3.1 + AMD RX 570 on ppc64le 4K: Kernel attempted to read user page (1128) - exploit attempt? (uid: 0)

2023-05-12 Thread Bagas Sanjaya
On 5/11/23 15:06, Bagas Sanjaya wrote: > Hi, > > I notice a regression report on bugzilla ([1]). As many developers > don't keep an eye on it, I decide to forward it by email. > > Quoting from it: > >> darkbasic 2023-05-10 13:36:37 UTC >> >> I'm using Gentoo Linux on a Raptor CS Talos 2

Re: Fwd: Linux 6.3.1 + AMD RX 570 on ppc64le 4K: Kernel attempted to read user page (1128) - exploit attempt? (uid: 0)

2023-05-12 Thread Niccolò Belli
Il 2023-05-12 10:32 Bagas Sanjaya ha scritto: #regzbot introduced: f4f3b7dedbe849 #regzbot link: https://gitlab.freedesktop.org/drm/amd/-/issues/2553 It doesn't look like the aforementioned patch made its way into 6.3 yet: niko@talos2 ~/devel/linux-stable $ git branch * linux-6.3.y master

[PATCH 05/11] drm/fbdev-dma: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Fbdev-dma does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_FBDEV_DMA_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 10/11] drm/fbdev-generic: Implement dedicated fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Implement dedicated fbdev helpers for framebuffer I/O instead of using DRM's helpers. Fbdev-generic was the only caller of the DRM helpers, so remove them from the helper module. Add CONFIG_DRM_FBDEV_GENERIC_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation

[PATCH 06/11] drm/msm: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Msm does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_MSM_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend on

[PATCH 09/11] drm/fb-helper: Export helpers for marking damage areas

2023-05-12 Thread Thomas Zimmermann
Export drm_fb_helper_damage() and drm_fb_helper_damage_range(), which handle damage areas for fbdev emulation. This is a temporary export that allows to move the DRM I/O helpers for fbdev into drivers. Only fbdev-generic and i915 need them. Both will be updated to implement damage handling by

[PATCH 08/11] drm/tegra: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Tegra does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_TEGRA_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 02/11] drm/exynos: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Exynos does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_EXYNOS_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 01/11] drm/armada: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Armada does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_ARMADA_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 11/11] drm/i915: Implement dedicated fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Implement dedicated fbdev helpers for framebuffer I/O instead of using DRM's helpers. i915 was the only caller of the DRM helpers, so remove them from the helper module. Add CONFIG_DRM_I915_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend on the

[PATCH 03/11] drm/gma500: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Gma500 does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_GMA500_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 04/11] drm/radeon: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Radeon does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_RADEON_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 07/11] drm/omapdrm: Use regular fbdev I/O helpers

2023-05-12 Thread Thomas Zimmermann
Use the regular fbdev helpers for framebuffer I/O instead of DRM's helpers. Omapdrm does not use damage handling, so DRM's fbdev helpers are mere wrappers around the fbdev code. Add CONFIG_DRM_OMAP_FBDEV_EMULATION to select the necessary Kconfig options automatically. Make fbdev emulation depend

[PATCH 00/11] drm/fbdev: Remove DRM's helpers for fbdev I/O

2023-05-12 Thread Thomas Zimmermann
DRM provides a number of wrappers around fbdev cfb_() sys_(), fb_io_() and fb_sys_() helpers. The DRM functions don't provide any additional functionality for most DRM drivers. So remove them and call the fbdev I/O helpers directly. The DRM fbdev I/O wrappers were originally added because does

[PATCH] drm/amdgpu: fix S3 issue if MQD in VRAM

2023-05-12 Thread Jack Xiao
Make the preemption optimization effect only for SRIOV, for it caused failure to resume from S3. Signed-off-by: Jack Xiao --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 3 ++- drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 7 +-- drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 7 +-- 3 files

[PATCH] amd/amdgpu: perform soft reset for sdma fed error

2023-05-12 Thread YiPeng Chai
When testing sdma ib ring fails to detect sdma hang for sdma fed error, force to perform soft reset. Signed-off-by: YiPeng Chai --- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c

RE: [PATCH] drm/amdgpu/gmc11: implement get_vbios_fb_size()

2023-05-12 Thread Khatri, Sunil
[AMD Official Use Only - General] Acked-by: Sunil Khatri -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Thursday, May 11, 2023 8:13 PM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: [PATCH] drm/amdgpu/gmc11: implement get_vbios_fb_size() Implement