答复: [PATCH 2/2] drm/amdgpu: calc addr with domain's gpu_offset

Submitted by Qu, Jim on Sept. 9, 2016, 6:40 a.m.

Details

Message ID BY2PR12MB0614EF244A65792FCFDF273099FA0@BY2PR12MB0614.namprd12.prod.outlook.com
State New
Headers show
Series "答复: [PATCH 2/2] drm/amdgpu: calc addr with domain's gpu_offset" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Qu, Jim Sept. 9, 2016, 6:40 a.m.
Hi Flora:

What is the purpose of these patches?

Thanks
JimQu

________________________________________
发件人: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> 代表 Flora Cui <Flora.Cui@amd.com>
发送时间: 2016年9月9日 14:30:51
收件人: amd-gfx@lists.freedesktop.org
抄送: Cui, Flora
主题: [PATCH 2/2] drm/amdgpu: calc addr with domain's gpu_offset

Change-Id: I8112e9d85866104559ecef7449f50fbb94167382
Signed-off-by: Flora Cui <Flora.Cui@amd.com>

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index a549abd..3d7a3ab 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -1151,7 +1151,7 @@  int amdgpu_vm_bo_update(struct amdgpu_device *adev,
                        break;

                case TTM_PL_VRAM:
-                       addr += adev->vm_manager.vram_base_offset;
+                       addr += bo_va->bo->tbo.bdev->man[mem->mem_type].gpu_offset;
                        break;

                default: