* [PATCH] drm/amd/amdgpu: fix performance drop
@ 2016-12-28 3:17 Roger.He
[not found] ` <1482895031-17046-1-git-send-email-Hongbo.He-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Roger.He @ 2016-12-28 3:17 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Hongbo.He
From: "Hongbo.He" <Hongbo.He@amd.com>
rollback to ttm default callback since OCL perf benchmark huge performance drop
Change-Id: If4cfc5a52872a7e00a7cbcad6efa46c57ee533de
Signed-off-by: Roger.He <Hongbo.He@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 0f3c358..8b973be 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -1137,9 +1137,8 @@ static struct ttm_bo_driver amdgpu_bo_driver = {
.fault_reserve_notify = &amdgpu_bo_fault_reserve_notify,
.io_mem_reserve = &amdgpu_ttm_io_mem_reserve,
.io_mem_free = &amdgpu_ttm_io_mem_free,
- .lru_removal = &amdgpu_ttm_lru_removal,
- .lru_tail = &amdgpu_ttm_lru_tail,
- .swap_lru_tail = &amdgpu_ttm_swap_lru_tail,
+ .lru_tail = &ttm_bo_default_lru_tail,
+ .swap_lru_tail = &ttm_bo_default_swap_lru_tail,
};
int amdgpu_ttm_init(struct amdgpu_device *adev)
--
2.7.4
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/amd/amdgpu: fix performance drop
[not found] ` <1482895031-17046-1-git-send-email-Hongbo.He-5C7GfCeVMHo@public.gmane.org>
@ 2017-01-04 10:29 ` Christian König
0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2017-01-04 10:29 UTC (permalink / raw)
To: Roger.He, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Am 28.12.2016 um 04:17 schrieb Roger.He:
> From: "Hongbo.He" <Hongbo.He@amd.com>
>
> rollback to ttm default callback since OCL perf benchmark huge performance drop
>
> Change-Id: If4cfc5a52872a7e00a7cbcad6efa46c57ee533de
> Signed-off-by: Roger.He <Hongbo.He@amd.com>
NAK, as I wrote internally as well we need this for further KFD features.
Additional to that this patch would leave unused code in the kernel driver.
I will work on properly fixing this.
Regards,
Christian.
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> index 0f3c358..8b973be 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> @@ -1137,9 +1137,8 @@ static struct ttm_bo_driver amdgpu_bo_driver = {
> .fault_reserve_notify = &amdgpu_bo_fault_reserve_notify,
> .io_mem_reserve = &amdgpu_ttm_io_mem_reserve,
> .io_mem_free = &amdgpu_ttm_io_mem_free,
> - .lru_removal = &amdgpu_ttm_lru_removal,
> - .lru_tail = &amdgpu_ttm_lru_tail,
> - .swap_lru_tail = &amdgpu_ttm_swap_lru_tail,
> + .lru_tail = &ttm_bo_default_lru_tail,
> + .swap_lru_tail = &ttm_bo_default_swap_lru_tail,
> };
>
> int amdgpu_ttm_init(struct amdgpu_device *adev)
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-04 10:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-28 3:17 [PATCH] drm/amd/amdgpu: fix performance drop Roger.He
[not found] ` <1482895031-17046-1-git-send-email-Hongbo.He-5C7GfCeVMHo@public.gmane.org>
2017-01-04 10:29 ` Christian König
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.