Re: [PATCH] drm/amdgpu: Fixup bad vram size on gmc v6 and v7

2024-04-23 Thread Qiang Ma
On Mon, 22 Apr 2024 16:47:36 +0200 Christian König wrote: > Am 22.04.24 um 16:40 schrieb Alex Deucher: > > On Mon, Apr 22, 2024 at 9:00 AM Christian König > > wrote: > >> Am 22.04.24 um 14:33 schrieb Qiang Ma: > >>> On Mon, 22 Apr 2024 11:40:2

Re: [PATCH] drm/amdgpu: Fixup bad vram size on gmc v6 and v7

2024-04-22 Thread Qiang Ma
On Mon, 22 Apr 2024 14:59:36 +0200 Christian König wrote: > Am 22.04.24 um 14:33 schrieb Qiang Ma: > > On Mon, 22 Apr 2024 11:40:26 +0200 > > Christian König wrote: > > > >> Am 22.04.24 um 07:26 schrieb Qiang Ma: > >>> Some boards(like Oland PRO:

Re: [PATCH] drm/amdgpu: Fixup bad vram size on gmc v6 and v7

2024-04-22 Thread Qiang Ma
On Mon, 22 Apr 2024 11:40:26 +0200 Christian König wrote: > Am 22.04.24 um 07:26 schrieb Qiang Ma: > > Some boards(like Oland PRO: 0x1002:0x6613) seem to have > > garbage in the upper 16 bits of the vram size register, > > kern log as follows: > > > > [

[PATCH] drm/amdgpu: Fixup bad vram size on gmc v6 and v7

2024-04-21 Thread Qiang Ma
[2.789062] [drm] amdgpu: 2048M of VRAM memory ready Signed-off-by: Qiang Ma --- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 11 +-- drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 13 ++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0

Re: [PATCH v2] drm/amdgpu: Clear the hotplug interrupt ack bit before hpd initialization

2024-03-26 Thread Qiang Ma
On Tue, 26 Mar 2024 23:51:45 -0400 Alex Deucher wrote: > On Tue, Mar 26, 2024 at 11:41 PM Qiang Ma > wrote: > > > > On Thu, 14 Mar 2024 14:40:40 + > > "Deucher, Alexander" wrote: > > > > > [Public] > > > > > > >

Re: [PATCH v2] drm/amdgpu: Clear the hotplug interrupt ack bit before hpd initialization

2024-03-26 Thread Qiang Ma
On Thu, 14 Mar 2024 14:40:40 + "Deucher, Alexander" wrote: > [Public] > > > -Original Message----- > > From: Qiang Ma > > Sent: Wednesday, March 13, 2024 2:18 AM > > To: Deucher, Alexander ; Koenig, > > Christian ; Pan, Xinhui > >

Re: [PATCH v2] drm/amdgpu: Clear the hotplug interrupt ack bit before hpd initialization

2024-03-13 Thread Qiang Ma
On Wed, 31 Jan 2024 15:57:03 +0800 Qiang Ma wrote: Hello everyone, please help review this patch. Qiang Ma > Problem: > The computer in the bios initialization process, unplug the HDMI > display, wait until the system up, plug in the HDMI display, did not > enter the hotpl

[PATCH v2] drm/amdgpu: Clear the hotplug interrupt ack bit before hpd initialization

2024-01-31 Thread Qiang Ma
should be cleared during hpd_init initialization so that when the driver is ready, it can respond to the hpd interrupt normally. Signed-off-by: Qiang Ma --- v2: - Remove unused variable 'tmp' - Fixed function spelling errors drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 ++ drivers/gpu/drm/amd

[PATCH] drm/amdgpu: Clear the hotplug interrupt ack bit before hpd initialization

2024-01-30 Thread Qiang Ma
should be cleared during hpd_init initialization so that when the driver is ready, it can respond to the hpd interrupt normally. Signed-off-by: Qiang Ma --- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 20

[PATCH] drm/amdgpu: Clear the hotplug interrupt ack bit before hpd initialization

2024-01-30 Thread Qiang Ma
should be cleared during hpd_init initialization so that when the driver is ready, it can respond to the hpd interrupt normally. Signed-off-by: Qiang Ma --- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 ++ drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 20

[PATCH] drm/radeon: fix UVD suspend error

2022-01-16 Thread Qiang Ma
dev); radeon_uvd_suspend(rdev); } In radeon_ib_schedule function, we check the 'ring->ready' state, but in uvd_v1_0_fini funciton, we've cleared the ready state. So, just modify the suspend code flow to fix error. Signed-off-by: Qiang Ma --- drivers/gpu/drm/radeon/cik.c | 2 +- drivers/g

[PATCH] drm/auth: Move master pointer from drm_device to drm_file

2021-06-17 Thread Qiang Ma
The drm_file pointer clears to zero during multi-user switching, so it needs to call drm_new_set_master for master pointer from drm_file. Signed-off-by: Qiang Ma --- drivers/gpu/drm/drm_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_auth.c b