Re: [PATCH] drm/amd/display: Fix vblank refcount in vrr transition

2022-10-17 Thread Guenter Roeck
On Wed, Sep 21, 2022 at 05:20:19PM -0400, Yunxiang Li wrote: > manage_dm_interrupts disable/enable vblank using drm_crtc_vblank_off/on > which causes drm_crtc_vblank_get in vrr_transition to fail, and later > when drm_crtc_vblank_put is called the refcount on vblank will be messed > up. Therefore m

Re: [PATCH] drm/amd/display: Fix build breakage with CONFIG_DEBUG_FS=n

2022-10-17 Thread Linus Torvalds
On Fri, Oct 14, 2022 at 8:22 AM Nathan Chancellor wrote: > > After commit 8799c0be89eb ("drm/amd/display: Fix vblank refcount in vrr > transition"), a build with CONFIG_DEBUG_FS=n is broken due to a > misplaced brace, along the lines of: Thanks, applied. Linus

Re: [PATCH] drm/amd/display: Fix vblank refcount in vrr transition

2022-10-17 Thread Guenter Roeck
On Fri, Oct 14, 2022 at 02:27:35PM +, Li, Yunxiang (Teddy) wrote: > [AMD Official Use Only - General] > > > This patch results in a large number of compile errors if > > CONFIG_DEBUG_FS=n. Reverting it fixes the problem. > > > > This is an architecture independent problem. > > > > Guenter >

[RESEND PATCH] drm/amd/amdgpu: Replace kmap() with kmap_local_page()

2022-10-17 Thread Fabio M. De Francesco
kmap() is being deprecated in favor of kmap_local_page(). There are two main problems with kmap(): (1) It comes with an overhead as mapping space is restricted and protected by a global lock for synchronization and (2) it also requires global TLB invalidation when the kmap’s pool wraps and it migh

Re: [PATCH] drm/radeon: Replace kmap() with kmap_local_page()

2022-10-17 Thread Kees Cook
On Thu, Oct 13, 2022 at 11:07:14PM +0200, Fabio M. De Francesco wrote: > The use of kmap() is being deprecated in favor of kmap_local_page(). > > There are two main problems with kmap(): (1) It comes with an overhead as > the mapping space is restricted and protected by a global lock for > synchro

[PATCH] drm/amdgpu: Program GC registers through RLCG interface in gfx_v11/gmc_v11

2022-10-17 Thread Yifan Zha
[Why] L1 blocks most of GC registers accessing by MMIO. [How] Use RLCG interface to program GC registers under SRIOV VF in full access time. Signed-off-by: Yifan Zha Reviewed-by: Hawking Zhang --- .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c | 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

[PATCH] drm/amdgpu: Remove the unused function get_umc_v6_7_channel_index()

2022-10-17 Thread Jiapeng Chong
The function get_umc_v6_7_channel_index() is defined in the umc_v6_7.c file, but not called elsewhere, so delete this unused function. drivers/gpu/drm/amd/amdgpu/umc_v6_7.c:60:24: warning: unused function 'get_umc_v6_7_channel_index'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2413 Rep

[PATCH] drm/amdgpu: Remove the unused function amdgpu_ucode_print_imu_hdr()

2022-10-17 Thread Jiapeng Chong
The function amdgpu_ucode_print_imu_hdr() is defined in the amdgpu_ucode.c file, but not called elsewhere, so delete this unused function. drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c:129:6: warning: no previous prototype for function 'amdgpu_ucode_print_imu_hdr'. Link: https://bugzilla.openanolis.

Re: [PATCH] drm/amd/display: add a WARN() to irq service functions

2022-10-17 Thread Rodrigo Siqueira
Hi Hamza, On 10/14/22 11:31, Hamza Mahfooz wrote: Currently, if we encounter unimplemented functions, it is difficult to tell what caused them just by looking at dmesg and that is compounded by the fact that it is often hard to reproduce said issues. So, to have access to more detailed debugging

Re: [PATCH] drm/amd/display: add a WARN() to irq service functions

2022-10-17 Thread Hamza Mahfooz
On 2022-10-17 09:06, Rodrigo Siqueira wrote: Hi Hamza, On 10/14/22 11:31, Hamza Mahfooz wrote: Currently, if we encounter unimplemented functions, it is difficult to tell what caused them just by looking at dmesg and that is compounded by the fact that it is often hard to reproduce said issues.

Re: [PATCH] drm/amdgpu: Program GC registers through RLCG interface in gfx_v11/gmc_v11

2022-10-17 Thread Alex Deucher
On Mon, Oct 17, 2022 at 5:21 AM Yifan Zha wrote: > > [Why] > L1 blocks most of GC registers accessing by MMIO. > > [How] > Use RLCG interface to program GC registers under SRIOV VF in full access time. Acked-by: Alex Deucher > > Signed-off-by: Yifan Zha > Reviewed-by: Hawking Zhang > --- > .

Re: [PATCH v3 0/6] Add support for atomic async page-flips

2022-10-17 Thread André Almeida
On 10/13/22 13:02, Simon Ser wrote: So no tests that actually verify that the kernel properly rejects stuff stuff like modesets, gamma LUT updates, plane movement, etc.? Pondering this a bit more, it just occurred to me the current driver level checks might easily lead to confusing behaviour. E

Re: [PATCH] drm/amdgpu: Remove the unused function amdgpu_ucode_print_imu_hdr()

2022-10-17 Thread Alex Deucher
On Mon, Oct 17, 2022 at 5:04 AM Jiapeng Chong wrote: > > The function amdgpu_ucode_print_imu_hdr() is defined in the amdgpu_ucode.c > file, but not called elsewhere, so delete this unused function. > > drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c:129:6: warning: no previous > prototype for function

[PATCH v2] drm/amd/display: add an ASSERT() to irq service functions

2022-10-17 Thread Hamza Mahfooz
Currently, if we encounter unimplemented functions, it is difficult to tell what caused them just by looking at dmesg and that is compounded by the fact that it is often hard to reproduce said issues, for instance we have had reports of this condition being triggered when removing a secondary displ

Re: [PATCH v2] drm/amd/display: add an ASSERT() to irq service functions

2022-10-17 Thread Harry Wentland
On 2022-10-17 11:38, Hamza Mahfooz wrote: > Currently, if we encounter unimplemented functions, it is difficult to > tell what caused them just by looking at dmesg and that is compounded by > the fact that it is often hard to reproduce said issues, for instance we > have had reports of this cond

Re: Build regressions/improvements in v6.1-rc1

2022-10-17 Thread Geert Uytterhoeven
On Mon, 17 Oct 2022, Geert Uytterhoeven wrote: Below is the list of build error/warning regressions/improvements in v6.1-rc1[1] compared to v6.0[2]. Summarized: - build errors: +25/-13 [1] http://kisskb.ellerman.id.au/kisskb/branch/linus/head/9abf2313adc1ca1b6180c508c25f22f9395cc780/ (all

[PATCH v3] drm/amd/display: add an ASSERT() to irq service functions

2022-10-17 Thread Hamza Mahfooz
Currently, if we encounter unimplemented functions, it is difficult to tell what caused them just by looking at dmesg and that is compounded by the fact that it is often hard to reproduce said issues, for instance we have had reports of this condition being triggered when removing a secondary displ

[PATCH] drm/amdkfd: Fix type of reset_type parameter in hqd_destroy() callback

2022-10-17 Thread Nathan Chancellor
When booting a kernel compiled with CONFIG_CFI_CLANG on a machine with an RX 6700 XT, there is a CFI failure in kfd_destroy_mqd_cp(): [ 12.894543] CFI failure at kfd_destroy_mqd_cp+0x2a/0x40 [amdgpu] (target: hqd_destroy_v10_3+0x0/0x260 [amdgpu]; expected type: 0x8594d794) Clang's kernel Con

[PATCH] drm/amdgpu/sienna_cichlid: drop unused variables

2022-10-17 Thread Alex Deucher
They are no longer used so drop them. Fixes: 498acd86a942ae ("drm/amdgpu: Refactor mode2 reset logic for v11.0.7") Signed-off-by: Alex Deucher Cc: Victor Zhao --- drivers/gpu/drm/amd/amdgpu/sienna_cichlid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/

Re: [PATCH] drm/amd/display: Increase frame size limit for display_mode_vba_util_32.o

2022-10-17 Thread Alex Deucher
Applied. Thanks! On Thu, Oct 13, 2022 at 2:25 PM Guenter Roeck wrote: > > Building 32-bit images may fail with the following error. > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.c: > In function ‘dml32_UseMinimumDCFCLK’: > drivers/gpu/drm/amd/amdgpu/../d

Re: [PATCH] drm/radeon: Replace kmap() with kmap_local_page()

2022-10-17 Thread Alex Deucher
Applied. Thanks! On Fri, Oct 14, 2022 at 3:03 AM Christian König wrote: > > Am 13.10.22 um 23:07 schrieb Fabio M. De Francesco: > > The use of kmap() is being deprecated in favor of kmap_local_page(). > > > > There are two main problems with kmap(): (1) It comes with an overhead as > > the mappi

Re: [RESEND PATCH] drm/amd/amdgpu: Replace kmap() with kmap_local_page()

2022-10-17 Thread Alex Deucher
Applied. Thanks! On Sun, Oct 16, 2022 at 1:42 PM Fabio M. De Francesco wrote: > > kmap() is being deprecated in favor of kmap_local_page(). > > There are two main problems with kmap(): (1) It comes with an overhead as > mapping space is restricted and protected by a global lock for > synchroniza

Re: [PATCH] drm/amdkfd: Fix type of reset_type parameter in hqd_destroy() callback

2022-10-17 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Oct 17, 2022 at 12:30 PM Nathan Chancellor wrote: > > When booting a kernel compiled with CONFIG_CFI_CLANG on a machine with > an RX 6700 XT, there is a CFI failure in kfd_destroy_mqd_cp(): > > [ 12.894543] CFI failure at kfd_destroy_mqd_cp+0x2a/0x40 [amdgpu]

[PATCH v7 01/21] dma-buf: Add unlocked variant of vmapping functions

2022-10-17 Thread Dmitry Osipenko
Add unlocked variant of dma_buf_vmap/vunmap() that will be utilized by drivers that don't take the reservation lock explicitly. Acked-by: Sumit Semwal Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/dma-buf/dma-buf.c | 43 +++ include/li

[PATCH v7 04/21] drm/prime: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare DRM prime core to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Reviewed-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_prime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) dif

[PATCH v7 02/21] dma-buf: Add unlocked variant of attachment-mapping functions

2022-10-17 Thread Dmitry Osipenko
Add unlocked variant of dma_buf_map/unmap_attachment() that will be used by drivers that don't take the reservation lock explicitly. Acked-by: Sumit Semwal Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/dma-buf/dma-buf.c | 53 +++ inclu

[PATCH v7 09/21] drm/etnaviv: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare Etnaviv driver to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[PATCH v7 03/21] drm/gem: Take reservation lock for vmap/vunmap operations

2022-10-17 Thread Dmitry Osipenko
The new common dma-buf locking convention will require buffer importers to hold the reservation lock around mapping operations. Make DRM GEM core to take the lock around the vmapping operations and update DRM drivers to use the locked functions for the case where DRM core now holds the lock. This p

[PATCH v7 20/21] media: videobuf2: Stop using internal dma-buf lock

2022-10-17 Thread Dmitry Osipenko
All drivers that use dma-bufs have been moved to the updated locking specification and now dma-buf reservation is guaranteed to be locked by importers during the mapping operations. There is no need to take the internal dma-buf lock anymore. Remove locking from the videobuf2 memory allocators. Ack

[PATCH v7 10/21] RDMA/umem: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare InfiniBand drivers to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Jason Gunthorpe Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/infiniband/core/umem_dmabuf.c | 7 --- 1 file change

[PATCH v7 13/21] media: videobuf2: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare V4L2 memory allocators to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Tomasz Figa Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/media/common/videobuf2/videobuf2-dma-contig.c | 11 +

[PATCH v7 19/21] dma-buf: Document dynamic locking convention

2022-10-17 Thread Dmitry Osipenko
Add documentation for the dynamic locking convention. The documentation tells dma-buf API users when they should take the reservation lock and when not. Acked-by: Sumit Semwal Reviewed-by: Christian König Signed-off-by: Dmitry Osipenko --- Documentation/driver-api/dma-buf.rst | 6 +++ drivers

[PATCH v7 00/21] Move all drivers to a common dma-buf locking convention

2022-10-17 Thread Dmitry Osipenko
Hello, This series moves all drivers to a dynamic dma-buf locking specification. >From now on all dma-buf importers are made responsible for holding dma-buf's reservation lock around all operations performed over dma-bufs in accordance to the locking specification. This allows us to utilize reserv

[PATCH v7 06/21] drm/i915: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare i915 driver to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions and handling cases where importer now holds the reservation lock. Acked-by: Christian König Reviewed-by: Michael J. Ruhl Signed-off-by: Dmitry Osipenko --- dri

[PATCH v7 17/21] dma-buf: Move dma_buf_map_attachment() to dynamic locking specification

2022-10-17 Thread Dmitry Osipenko
Move dma-buf attachment mapping functions to the dynamic locking specification by asserting that the reservation lock is held. Acked-by: Sumit Semwal Reviewed-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/dma-buf/dma-buf.c | 10 ++ 1 file changed, 2 insertions(+), 8 de

[PATCH v7 11/21] misc: fastrpc: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare fastrpc to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Christian König Acked-by: Srinivas Kandagatla Signed-off-by: Dmitry Osipenko --- drivers/misc/fastrpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 d

[PATCH v7 12/21] xen/gntdev: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare gntdev driver to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Juergen Gross Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/xen/gntdev-dmabuf.c | 8 1 file changed, 4 insertions(

[PATCH v7 08/21] drm/tegra: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare Tegra DRM driver to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/gem.c | 17 + 1 file changed, 9 insertions(+), 8 deleti

[PATCH v7 16/21] dma-buf: Move dma_buf_attach() to dynamic locking specification

2022-10-17 Thread Dmitry Osipenko
Move dma-buf attachment API functions to the dynamic locking specification by taking the reservation lock around the mapping operations. The strict locking convention prevents deadlock situations for dma-buf importers and exporters. Acked-by: Sumit Semwal Reviewed-by: Christian König Signed-off-

[PATCH v7 05/21] drm/armada: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare Armada driver to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/armada/armada_gem.c | 8 1 file changed, 4 insertions(+), 4 deletions(-

[PATCH v7 21/21] dma-buf: Remove obsoleted internal lock

2022-10-17 Thread Dmitry Osipenko
The internal dma-buf lock isn't needed anymore because the updated locking specification claims that dma-buf reservation must be locked by importers, and thus, the internal data is already protected by the reservation lock. Remove the obsoleted internal lock. Acked-by: Sumit Semwal Acked-by: Chri

[PATCH v7 18/21] dma-buf: Move dma_buf_mmap() to dynamic locking specification

2022-10-17 Thread Dmitry Osipenko
Move dma_buf_mmap() function to the dynamic locking specification by taking the reservation lock. Neither of the today's drivers take the reservation lock within the mmap() callback, hence it's safe to enforce the locking. Acked-by: Sumit Semwal Acked-by: Christian König Signed-off-by: Dmitry Os

[PATCH v7 07/21] drm/omapdrm: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare OMAP DRM driver to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletio

[PATCH v7 14/21] media: tegra-vde: Prepare to dynamic dma-buf locking specification

2022-10-17 Thread Dmitry Osipenko
Prepare Tegra video decoder driver to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/media/platform/nvidia/tegra-vde/dmabuf-cache.c | 6 +++--- 1 file changed,

[PATCH v7 15/21] dma-buf: Move dma_buf_vmap() to dynamic locking specification

2022-10-17 Thread Dmitry Osipenko
Move dma_buf_vmap/vunmap() functions to the dynamic locking specification by asserting that the reservation lock is held. Acked-by: Sumit Semwal Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/dma-buf/dma-buf.c | 4 1 file changed, 4 insertions(+) diff --git a/driver

Re: [PATCH v3] drm/amd/display: add an ASSERT() to irq service functions

2022-10-17 Thread Harry Wentland
On 2022-10-17 12:13, Hamza Mahfooz wrote: > Currently, if we encounter unimplemented functions, it is difficult to > tell what caused them just by looking at dmesg and that is compounded by > the fact that it is often hard to reproduce said issues, for instance we > have had reports of this conditi

Re: [PATCH] drm/amdkfd: use vma_lookup() instead of find_vma()

2022-10-17 Thread Felix Kuehling
On 2022-10-06 22:48, Deming Wang wrote: Using vma_lookup() verifies the start address is contained in the found vma. This results in easier to read the code. Thank you for the patches. This and your other patch look good to me. However, you missed one use of find_vma in svm_range_is_valid.

Re: [Bug][5.18-rc0] Between commits ed4643521e6a and 34af78c4e616, appears warning "WARNING: CPU: 31 PID: 51848 at drivers/dma-buf/dma-fence-array.c:191 dma_fence_array_create+0x101/0x120" and some ga

2022-10-17 Thread Mikhail Gavrilov
On Wed, May 11, 2022 at 5:01 PM Christian König wrote: > > > We have implemented a workaround, but still don't know the exact root cause. > > If anybody wants to look into this it would be rather helpful to be able > to reproduce the issue. > > Regards, > Christian. I see that issue was returned

RE: [PATCH] drm/amdgpu/powerplay/psm: Fix memory leak in power state init

2022-10-17 Thread Quan, Evan
[AMD Official Use Only - General] Reviewed-by: Evan Quan > -Original Message- > From: Rafael Mendonca > Sent: Tuesday, October 18, 2022 8:54 AM > To: Quan, Evan ; Deucher, Alexander > ; Koenig, Christian > ; Pan, Xinhui ; David > Airlie ; Daniel Vetter > Cc: Rafael Mendonca ; amd- > g.

RE: [PATCH v3] drm/amdgpu: dequeue mes scheduler during fini

2022-10-17 Thread Wang, YuBiao
Hi Alex, Could you help review this patch? Thanks. Best Regards, Yubiao Wang -Original Message- From: Koenig, Christian Sent: Friday, October 14, 2022 3:08 PM To: Wang, YuBiao ; amd-gfx@lists.freedesktop.org Cc: Grodzovsky, Andrey ; Quan, Evan ; Chen, Horace ; Tuikov, Luben ; Deucher

[PATCH] drm/amdgpu: Update ras eeprom support for smu v13_0_0 and v13_0_10

2022-10-17 Thread Candice Li
Enable RAS EEPROM support for smu v13_0_0 and v13_0_10. Signed-off-by: Candice Li Reviewed-by: Hawking Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c b/drivers/gpu/drm/amd/a

[PATCH] drm/amdgpu: Add EEPROM I2C address support for ip discovery

2022-10-17 Thread Candice Li
1. Update EEPROM_I2C_MADDR_SMU_13_0_0 to EEPROM_I2C_MADDR_54H 2. Add EEPROM I2C address support for smu v13_0_0 and v13_0_10. Signed-off-by: Candice Li Reviewed-by: Tao Zhou --- .../gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c| 20 +-- 1 file changed, 18 insertions(+), 2 deletions

RE: [PATCH] drm/amdgpu/sienna_cichlid: drop unused variables

2022-10-17 Thread Chen, Guchun
Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: amd-gfx On Behalf Of Alex Deucher Sent: Tuesday, October 18, 2022 12:48 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Zhao, Victor Subject: [PATCH] drm/amdgpu/sienna_cichlid: drop unused variables They

Re: [PATCH v3] drm/amdgpu: dequeue mes scheduler during fini

2022-10-17 Thread Xiao, Jack
[AMD Official Use Only - General] >> + /* dequeue sched pipe via kiq */ >> + void(*kiq_dequeue_sched)(struct >> amdgpu_device *adev); >> + It's unnecessary to expose a new callback function proto to perform dequeuing scheduler queue, for kiq_fini or mes_

[PATCH] drm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x

2022-10-17 Thread Lijo Lazar
MMHUB 2.1.x versions don't have ATCL2. Remove accesses to ATCL2 registers. Since they are non-existing registers, read access will cause a 'Completer Abort' and gets reported when AER is enabled with the below patch. Tagging with the patch so that this is backported along with it. Fixes: 8795e182

Re: [PATCH] drm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x

2022-10-17 Thread Lazar, Lijo
On 10/18/2022 10:51 AM, Greg KH wrote: On Tue, Oct 18, 2022 at 10:17:24AM +0530, Lijo Lazar wrote: MMHUB 2.1.x versions don't have ATCL2. Remove accesses to ATCL2 registers. Since they are non-existing registers, read access will cause a 'Completer Abort' and gets reported when AER is enable

[PATCH v3] drm/amdgpu: dequeue mes scheduler during fini

2022-10-17 Thread YuBiao Wang
[Why] If mes is not dequeued during fini, mes will be in an uncleaned state during reload, then mes couldn't receive some commands which leads to reload failure. [How] Perform MES dequeue via MMIO after all the unmap jobs are done by mes and before kiq fini. v3: Move the dequeue operation inside

[PATCH] drm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x

2022-10-17 Thread Lijo Lazar
MMHUB 2.1.x versions don't have ATCL2. Remove accesses to ATCL2 registers. Since they are non-existing registers, read access will cause a 'Completer Abort' and gets reported when AER is enabled with the below patch. Tagging with the patch so that this is backported along with it. Fixes: 8795e182

RE: [PATCH] drm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x

2022-10-17 Thread Chen, Guchun
Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: amd-gfx On Behalf Of Lijo Lazar Sent: Tuesday, October 18, 2022 1:41 PM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; helg...@kernel.org; sta...@vger.kernel.org; Chen, Guchun ; Zhang, Hawking Subject: [PAT

Re: [PATCH] drm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x

2022-10-17 Thread Lazar, Lijo
Please ignore this one. A newer one with the correct format is sent. Thanks, Lijo On 10/18/2022 10:17 AM, Lijo Lazar wrote: MMHUB 2.1.x versions don't have ATCL2. Remove accesses to ATCL2 registers. Since they are non-existing registers, read access will cause a 'Completer Abort' and gets rep

[PATCH] drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()

2022-10-17 Thread Rafael Mendonca
If the number of pages from the userptr BO differs from the SG BO then the allocated memory for the SG table doesn't get freed before returning -EINVAL, which may lead to a memory leak in some error paths. Fix this by checking the number of pages before allocating memory for the SG table. Fixes: 2

答复: [PATCH] drm/amdkfd: use vma_lookup() instead of find_vma()

2022-10-17 Thread 王德明
Hi, The function vma_lookup show below. Vma valid check is included in it. Or, What other questions do you have? static inline struct vm_area_struct *vma_lookup(struct mm_struct *mm, unsigned long addr) { struct vm_area_struct *vma = find_vma(mm, addr); if (vma && addr < vma-

Re: [PATCH] drm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x

2022-10-17 Thread Greg KH
On Tue, Oct 18, 2022 at 10:17:24AM +0530, Lijo Lazar wrote: > MMHUB 2.1.x versions don't have ATCL2. Remove accesses to ATCL2 registers. > > Since they are non-existing registers, read access will cause a > 'Completer Abort' and gets reported when AER is enabled with the below patch. > Tagging wit

[PATCH] drm/amdgpu/powerplay/psm: Fix memory leak in power state init

2022-10-17 Thread Rafael Mendonca
Commit 902bc65de0b3 ("drm/amdgpu/powerplay/psm: return an error in power state init") made the power state init function return early in case of failure to get an entry from the powerplay table, but it missed to clean up the allocated memory for the current power state before returning. Fixes: 902

Re: [PATCH v7 00/21] Move all drivers to a common dma-buf locking convention

2022-10-17 Thread Dmitry Osipenko
On 10/17/22 20:22, Dmitry Osipenko wrote: > Hello, > > This series moves all drivers to a dynamic dma-buf locking specification. > From now on all dma-buf importers are made responsible for holding > dma-buf's reservation lock around all operations performed over dma-bufs > in accordance to the lo