[PATCH] drm/amdgpu: cleanup coding style in amdgpu_acpi.c

2022-09-05 Thread Jingyu Wang
Fix everything checkpatch.pl complained about in amdgpu_acpi.c Signed-off-by: Jingyu Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp

[PATCH] drm: amd: This is a patch to the amdgpu_drv.c file that fixes some warnings and errors found by the checkpatch.pl tool

2022-09-05 Thread Jingyu Wang
Signed-off-by: Jingyu Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 40 - 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index de7144b06e93..5c2ac8123450 100644 --- a/d

[PATCH] amd: amdgpu: fix coding style issue

2022-09-05 Thread Jingyu Wang
This is a patch to the amdgpu_sync.c file that fixes some warnings found by the checkpatch.pl tool Signed-off-by: Jingyu Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/driv

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

2022-09-05 Thread Dmitry Osipenko
02.09.2022 13:31, Dmitry Osipenko пишет: > 01.09.2022 17:02, Ruhl, Michael J пишет: > ... >>> --- a/drivers/gpu/drm/i915/gem/i915_gem_object.c >>> +++ b/drivers/gpu/drm/i915/gem/i915_gem_object.c >>> @@ -331,7 +331,19 @@ static void __i915_gem_free_objects(struct >>> drm_i915_private *i915, >>>

[PATCH] drm:Fix the blank screen problem of some 1920x1080 75Hz monitors using R520 graphics card

2022-09-05 Thread zhongpei
We found that in the scenario of AMD R520 graphics card and some 1920x1080 monitors,when we switch the refresh rate of the monitor to 75Hz,the monitor will have a blank screen problem, and the restart cannot be restored.After testing, it is found that when we limit the maximum value of ref_div_max

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

2022-09-05 Thread Srinivas Kandagatla
On 31/08/2022 16:37, Dmitry Osipenko wrote: Prepare fastrpc to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Signed-off-by: Dmitry Osipenko --- LGTM, Incase you plan to take it via another tree. Acked-by: Srinivas Kandaga

[PATCH] drm/amdgpu: cleanup coding style in amdgpu_fence.c

2022-09-05 Thread Jingyu Wang
Fix everything checkpatch.pl complained about in amdgpu_fence.c Signed-off-by: Jingyu Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdg

Re: [PATCH] drm/amd/display: fix memory leak when using debugfs_lookup()

2022-09-05 Thread Greg Kroah-Hartman
On Fri, Sep 02, 2022 at 03:01:05PM +0200, Greg Kroah-Hartman wrote: > When calling debugfs_lookup() the result must have dput() called on it, > otherwise the memory will leak over time. Fix this up by properly > calling dput(). > > Cc: Harry Wentland > Cc: Leo Li > Cc: Rodrigo Siqueira > Cc: A

[PATCH linux-next] drm/amdgpu: Remove the unneeded result variable

2022-09-05 Thread cgel . zte
From: zhang songyi Return the sdma_v6_0_start() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot Signed-off-by: zhang songyi --- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/

[PATCH] drm/amdgpu: cleanup coding style in amdgpu_sync.c file

2022-09-05 Thread Jingyu Wang
This is a patch to the amdgpu_sync.c file that fixes some warnings found by the checkpatch.pl tool Signed-off-by: Jingyu Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/g

[PATCH] drm/amd/display: fix memory leak when using debugfs_lookup()

2022-09-05 Thread Greg Kroah-Hartman
When calling debugfs_lookup() the result must have dput() called on it, otherwise the memory will leak over time. Fix this up by properly calling dput(). Cc: Harry Wentland Cc: Leo Li Cc: Rodrigo Siqueira Cc: Alex Deucher Cc: "Christian König" Cc: "Pan, Xinhui" Cc: David Airlie Cc: Daniel

[PATCH] drm/amdgpu: cleanup coding style in amdgpu_atpx_handler.c

2022-09-05 Thread Jingyu Wang
Fix everything checkpatch.pl complained about in amdgpu_atpx_handler.c Signed-off-by: Jingyu Wang --- .../gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 27 +++ 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c b/driver

[PATCH linux-next] drm/amd/display: Remove the unneeded result variable

2022-09-05 Thread cgel . zte
From: zhang songyi Return the enable_link_dp() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot Signed-off-by: zhang songyi --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/g

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

2022-09-05 Thread Srinivas Kandagatla
On 31/08/2022 16:37, Dmitry Osipenko wrote: Prepare fastrpc to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Signed-off-by: Dmitry Osipenko --- LGTM, Incase you plan to take it via another tree. Acked-by: Srinivas Kandaga

[PATCH] drm/amdgpu: cleanup coding style in amdgpu_drv.c

2022-09-05 Thread Jingyu Wang
Fix something checkpatch.pl complained about in amdgpu_drv.c Signed-off-by: Jingyu Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 31 + 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgp

[PATCH] drm/amdgpu: getting fan speed pwm for vega10 properly

2022-09-05 Thread Yury Zhuravlev
Hello, During the setup, the fan manager https://github.com/markusressel/fan2go I found that my Vega56 was not working correctly. This fan manager expects what read PWM value should be the same as you wrote before, but it's not the case. PWM value was volatile, and what is more critical, if I wrot

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

2022-09-05 Thread Dmitry Osipenko
01.09.2022 17:02, Ruhl, Michael J пишет: ... >> --- a/drivers/gpu/drm/i915/gem/i915_gem_object.c >> +++ b/drivers/gpu/drm/i915/gem/i915_gem_object.c >> @@ -331,7 +331,19 @@ static void __i915_gem_free_objects(struct >> drm_i915_private *i915, >> continue; >> } >> >

Re: [PATCH] drm/ttm: update bulk move object of ghost BO

2022-09-05 Thread Yin, ZhenGuo (Chris)
Inside the function ttm_bo_set_bulk_move, it calls ttm_resource_del_bulk_move to remove the old resource from the bulk_move list. If we set the bulk_move to NULL manually as suggested, the old resource attached in the ghost BO seems won't be removed from the bulk_move. On 9/1/2022 7:13 PM, C

Re: [PATCH] drm/ttm: update bulk move object of ghost BO

2022-09-05 Thread Christian König
Yeah, I realized that as well after sending the first mail. The problem is that we keep the bulk move around when there currently isn't any resource associated with the template. So the correct code should look something like this: if (fbo->base.resource) {     ttm_resource_set_bo(fbo->base.r

Re: 回复: Re: [PATCH] drm:Fix the blank screen problem of some 1920x1080 75Hz monitors using R520 graphics card

2022-09-05 Thread Christian König
Am 05.09.22 um 10:10 schrieb 钟沛: Thanks for your reply! We found that in the amdgpu_pll_compute function, when the target_clock is the value contained in the drm_dmt_modes defined in drm_edid.c, the diff is 0. When target_clock is some special value, we cannot find a diff value of 0, so we

[PATCH 02/12] drm/amdgpu: remove SRIOV and MCBP dependencies from the CS

2022-09-05 Thread Christian König
We should not have any different CS constrains based on the execution environment. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/dr

[PATCH 01/12] drm/sched: move calling drm_sched_entity_select_rq

2022-09-05 Thread Christian König
We already discussed that the call to drm_sched_entity_select_rq() needs to move to drm_sched_job_arm() to be able to set a new scheduler list between _init() and _arm(). This was just not applied for some reason. Signed-off-by: Christian König Reviewed-by: Andrey Grodzovsky --- drivers/gpu/drm

[PATCH 05/12] drm/amdgpu: use DMA_RESV_USAGE_BOOKKEEP v2

2022-09-05 Thread Christian König
Use DMA_RESV_USAGE_BOOKKEEP for VM page table updates and KFD preemption fence. v2: actually update all usages for KFD Signed-off-by: Christian König --- .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 26 --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c | 3 ++- 2 files chang

[PATCH 03/12] drm/amdgpu: move setting the job resources

2022-09-05 Thread Christian König
Move setting the job resources into amdgpu_job.c Signed-off-by: Christian König Reviewed-by: Andrey Grodzovsky Reviewed-by: Luben Tuikov --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 21 ++--- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 17 + drivers/gpu/drm/amd/a

[PATCH 06/12] drm/amdgpu: cleanup and reorder amdgpu_cs.c v3

2022-09-05 Thread Christian König
Sort the functions in the order they are called and cleanup the coding style and function names to represent the data they process. Check the size of the IB chunk. v2: fix job initialisation order and use correct scheduler instance v3: try to move all functional changes into a separate patch. Si

[PATCH 09/12] drm/amdgpu: cleanup instance limit on VCN4

2022-09-05 Thread Christian König
Similar to what we did for VCN3 use the job instead of the parser entity. Cleanup the coding style quite a bit as well. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 46 +++ 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/drive

[PATCH 08/12] drm/amdgpu: revert "fix limiting AV1 to the first instance on VCN3"

2022-09-05 Thread Christian König
This reverts commit 250195ff744f260c169f5427422b6f39c58cb883. The job should now be initialized when we reach the parser functions. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/dri

[PATCH 04/12] drm/amdgpu: revert "partial revert "remove ctx->lock" v2"

2022-09-05 Thread Christian König
This reverts commit 94f4c4965e5513ba624488f4b601d6b385635aec. We found that the bo_list is missing a protection for its list entries. Since that is fixed now this workaround can be removed again. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 21 ++-

[PATCH 07/12] drm/amdgpu: move entity selection and job init earlier during CS

2022-09-05 Thread Christian König
Initialize the entity for the CS and scheduler job much earlier. v2: fix job initialisation order and use correct scheduler instance Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 54 - drivers/gpu/drm/amd/amdgpu/amdgpu_job.h | 5 +++ 2 fil

[PATCH 12/12] drm/amdgpu: cleanup VCN3 and VCN4 instance limiting v2

2022-09-05 Thread Christian König
Check if the entity is already limited, not if it's assigned to the first instance. v2: only a cleanup, not a fix Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 5 ++--- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-)

[PATCH 10/12] drm/amdgpu: add gang submit backend v2

2022-09-05 Thread Christian König
Allows submitting jobs as gang which needs to run on multiple engines at the same time. Basic idea is that we have a global gang submit fence representing when the gang leader is finally pushed to run on the hardware last. Jobs submitted as gang are never re-submitted in case of a GPU reset since

[PATCH 11/12] drm/amdgpu: add gang submit frontend v4

2022-09-05 Thread Christian König
Allows submitting jobs as gang which needs to run on multiple engines at the same time. All members of the gang get the same implicit, explicit and VM dependencies. So no gang member will start running until everything else is ready. The last job is considered the gang leader (usually a submissio

Re: [PATCH V2] drm/amdgpu: TA unload messages are not actually sent to psp when amdgpu is uninstalled

2022-09-05 Thread Zhang, Hawking
Reviewed-by: Hawking Zhang Regards, Hawking From: Chai, Thomas Date: Monday, September 5, 2022 at 14:35 To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking , Zhou1, Tao Subject: RE: [PATCH V2] drm/amdgpu: TA unload messages are not actually sent to psp when amdgpu is uninstalled [AMD Officia

Re: amd iommu configuration

2022-09-05 Thread Vasant Hegde
Steven, [+Felix, amd-fgx list] On 9/3/2022 4:29 AM, Steven J Abner wrote: > Hi > I was referred to you from linux-ker...@vger.kernel.org about the following > issue. > Here is as was written: > On 9/1/22 11:36, Steven J Abner wrote: > Hi > Building a kernel tailored for AMD 2400g on ASRock B450

RE: Gang submit

2022-09-05 Thread Liu, Monk
[AMD Official Use Only - General] Hi Christian > A gang submission guarantees that multiple IBs can run on different engines > at the same time. > The effect is that as long as members of a gang are waiting to be submitted > no other gang can start pushing jobs to the hardware and so deadlocks

[PATCH] drm/amdgpu: correct doorbell range/size value for CSDMA_DOORBELL_RANGE

2022-09-05 Thread Yifan Zhang
current function mixes CSDMA_DOORBELL_RANGE and SDMA0_DOORBELL_RANGE range/size manipulation, while these 2 registers have difference size field mask. Remove range/size manipulation for SDMA0_DOORBELL_RANGE. Signed-off-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c | 6 -- 1 file

[PATCH] drm/amdkfd: print address in hex format rather than decimal

2022-09-05 Thread Yifan Zhang
Addresses should be printed in hex format. Signed-off-by: Yifan Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c inde