drm/amdgpu: reduce the time of reading VBIOS
Subsystems (2)
PATCH 1/1 drm/amdgpu: reduce the time of reading VBIOS
From: Xiangliang Yu <[email protected]>
Change ioremap mode from noncache to write combine and it will reduce the read vbios time from 188ms to 8ms.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c +1 -1
@@ -104,7 +104,7 @@ static bool igp_read_bios_from_vram(struct amdgpu_device *adev) adev->bios =NULL ; vram_base =pci_resource_start (adev->pdev,0 ); - bios =ioremap (vram_base, size); + bios =ioremap_wc (vram_base, size);if (!bios) {return false; }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1500605542-5956-1-git-send-email-Xiangliang.Yu-5C7GfCeVMHo@public.gmane.org
Am 21.07.2017 um 04:52 schrieb Xiangliang.Yu:
Quoted 4 lines
From: Xiangliang Yu <[email protected]>
Change ioremap mode from noncache to write combine and it will reduce the read vbios time from 188ms to 8ms.
Nice improvement, but I think you need to improve the commit message a bit.
Changing the ioremap mode from noncache to write combine should actually not improve the read performance (reads are uncached in both modes).
I think this patch makes a difference because VRAM is usually marked write combined and so ioremap needs to change that for no good reason and that in turn takes quite some time.
I think you should write something like "Avoid changing the mapping mode of VRAM while reading the vbios from it, this reduce the time from....".
Quoted 3 lines
Signed-off-by Xiangliang Yu <[email protected]>Signed-off-by Xiangliang.Yu <[email protected]>
You added the signed-off-by line twice, please fix this.
With that fixed and the commit message improved a bit the patch is Reviewed-by: Christian König <[email protected]>.
Regards,
Christian.
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c static bool igp_read_bios_from_vram(struct amdgpu_device *adev) · line 110
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c +1
-1@@ -104,7 +104,7 @@ static bool igp_read_bios_from_vram(struct amdgpu_device *adev) adev->bios =NULL ; vram_base =pci_resource_start (adev->pdev,0 ); - bios =ioremap (vram_base, size); + bios =ioremap_wc (vram_base, size);if (!bios) {return false; }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): b5c6f410-f473-eac8-c1a6-fecd4a01093b-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org
Yu, Xiangliang
Reviewed-by Christian KönigOk, thanks!
-----Original Message-----
From: Christian König [mailto:[email protected]]
Sent: Friday, July 21, 2017 10:12 PM
To: Yu, Xiangliang <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdgpu: reduce the time of reading VBIOS
Am 21.07.2017 um 04:52 schrieb Xiangliang.Yu:
Quoted 4 lines
From: Xiangliang Yu <[email protected]>
Change ioremap mode from noncache to write combine and it will reduce the read vbios time from 188ms to 8ms.
Nice improvement, but I think you need to improve the commit message a bit.
Changing the ioremap mode from noncache to write combine should actually not improve the read performance (reads are uncached in both modes).
I think this patch makes a difference because VRAM is usually marked write combined and so ioremap needs to change that for no good reason and that in turn takes quite some time.
I think you should write something like "Avoid changing the mapping mode of VRAM while reading the vbios from it, this reduce the time from....".
Quoted 3 lines
Signed-off-by Xiangliang Yu <[email protected]>Signed-off-by Xiangliang.Yu <[email protected]>
You added the signed-off-by line twice, please fix this.
With that fixed and the commit message improved a bit the patch is
Regards,
Christian.
Quoted 18 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c +1
-1@@ -104,7 +104,7 @@ static bool igp_read_bios_from_vram(struct amdgpu_device *adev) adev->bios = NULL; vram_base =pci_resource_start (adev->pdev,0 ); - bios =ioremap (vram_base, size); + bios =ioremap_wc (vram_base, size);if (!bios) {return false;
Quoted 1 line
}
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx