libdrm: fix inefficient vamgr algorithm
PATCH 1/2 libdrm: fix inefficient vamgr algorithm
issue: UMD allocates top 4GB, but don't do anything, just reserve top 4GB space, but the performance of VP13 drops from 162fps to 99fps.
root cause:
our va hole list of vamgr is too long by time going.
fix:
reusing old hole as much as possible can make the list shortest.
result:
performance recovers as non-list path, next patch will remove non-list code path.
--- amdgpu/amdgpu_vamgr.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
amdgpu/amdgpu_vamgr.c +2 -6
@@ -94,9 +94,7 @@ amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size,return AMDGPU_INVALID_VA_ADDRESS ;pthread_mutex_lock (&mgr->bo_va_mutex); -/* TODO: using more appropriate way to track the holes */ -/* first look for a hole */ - LIST_FOR_EACH_ENTRY_SAFE(hole, n, &mgr->va_holes, list) { + LIST_FOR_EACH_ENTRY_SAFE_REV(hole, n, &mgr->va_holes, list) {if (base_required) {if (hole->offset > base_required || (hole->offset + hole->size) < (base_required + size))
@@ -183,9 +181,7 @@ static uint64_t amdgpu_vamgr_find_va_in_range(struct amdgpu_bo_va_mgr *mgr, uint size =ALIGN (size, mgr->va_alignment);pthread_mutex_lock (&mgr->bo_va_mutex); -/* TODO: using more appropriate way to track the holes */ -/* first look for a hole */ - LIST_FOR_EACH_ENTRY_SAFE(hole, n, &mgr->va_holes, list) { + LIST_FOR_EACH_ENTRY_SAFE_REV(hole, n, &mgr->va_holes, list) { if (hole->offset > range_max || hole->offset + hole->size < range_min || (hole->offset > range_min && hole->offset + size > range_max) ||
Signature · 6 lines
2.14.1 _______________________________________________ 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): [email protected]
PATCH 2/2 libdrm: clean up non list code path for vamgr
--- amdgpu/amdgpu_internal.h | 2 - amdgpu/amdgpu_vamgr.c | 152 ++++++++++++++--------------------------------- 2 files changed, 46 insertions(+), 108 deletions(-)
amdgpu/amdgpu_internal.h +0 -2
@@ -53,8 +53,6 @@ struct amdgpu_bo_va_hole { };struct amdgpu_bo_va_mgr { -/* the start virtual address */ -uint64_t va_offset;uint64_t va_min;uint64_t va_max;struct list_head va_holes;
amdgpu/amdgpu_vamgr.c +46 -106
196 lines not on this page · raw message
Signature · 6 lines
2.14.1 _______________________________________________ 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): [email protected]
Re: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr
Am 12.01.2018 um 06:45 schrieb Chunming Zhou:
Quoted 12 lines
Change-Id I7ca19a1f6404356a6c69ab4af27c8e13454f0279Signed-off-by Chunming Zhou <[email protected]>--- amdgpu/amdgpu_internal.h | 2 - amdgpu/amdgpu_vamgr.c | 152 ++++++++++++++--------------------------------- 2 files changed, 46 insertions(+), 108 deletions(-)amdgpu/amdgpu_internal.h +0
-0
amdgpu/amdgpu_internal.h struct amdgpu_bo_va_hole { · line 57
Quoted 7 lines
amdgpu/amdgpu_internal.h +0
-2@@ -53,8 +53,6 @@ struct amdgpu_bo_va_hole { };struct amdgpu_bo_va_mgr { -/* the start virtual address */ -uint64_t va_offset;uint64_t va_min;uint64_t va_max;
Is va_min and va_max actually still used after that series? If not I would remove them as well.
Apart from that I would indeed add the warning when the calloc during free fails.
With that fixed the series is Reviewed-by: Christian König <[email protected]>.
Regards,
Christian.
Quoted 195 lines
amdgpu/amdgpu_internal.h +0
-0struct list_head va_holes;amdgpu/amdgpu_vamgr.c +39
-106@@ -61,13 +61,20 @@ int amdgpu_va_range_query(amdgpu_device_handle dev, drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start,uint64_t max,uint64_t alignment) { - mgr->va_offset = start; +struct amdgpu_bo_va_hole *n; + mgr->va_min = start; mgr->va_max = max; mgr->va_alignment = alignment;list_inithead (&mgr->va_holes);pthread_mutex_init (&mgr->bo_va_mutex,NULL ); +pthread_mutex_lock (&mgr->bo_va_mutex); + n =calloc (1 ,sizeof (struct amdgpu_bo_va_hole )); + n->size = mgr->va_max; + n->offset = mgr->va_min; +list_add (&n->list, &mgr->va_holes); +pthread_mutex_unlock (&mgr->bo_va_mutex); } drm_private void amdgpu_vamgr_deinit(struct amdgpu_bo_va_mgr *mgr)@@ -136,35 +143,8 @@ amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size, } } -if (base_required) { -if (base_required < mgr->va_offset) { -pthread_mutex_unlock (&mgr->bo_va_mutex); -return AMDGPU_INVALID_VA_ADDRESS ; - } - offset = mgr->va_offset; - waste = base_required - mgr->va_offset; - }else { - offset = mgr->va_offset; - waste = offset % alignment; - waste = waste ? alignment - waste :0 ; - } - -if (offset + waste + size > mgr->va_max) { -pthread_mutex_unlock (&mgr->bo_va_mutex); -return AMDGPU_INVALID_VA_ADDRESS ; - } - -if (waste) { - n =calloc (1 ,sizeof (struct amdgpu_bo_va_hole )); - n->size = waste; - n->offset = offset; -list_add (&n->list, &mgr->va_holes); - } - - offset += waste; - mgr->va_offset += size + waste;pthread_mutex_unlock (&mgr->bo_va_mutex); -return offset; +return AMDGPU_INVALID_VA_ADDRESS ; } static uint64_t amdgpu_vamgr_find_va_in_range(struct amdgpu_bo_va_mgr *mgr, uint64_t size,@@ -232,41 +212,14 @@ static uint64_t amdgpu_vamgr_find_va_in_range(struct amdgpu_bo_va_mgr *mgr, uint } } -if (mgr->va_offset > range_max) { -pthread_mutex_unlock (&mgr->bo_va_mutex); -return AMDGPU_INVALID_VA_ADDRESS ; - }else if (mgr->va_offset > range_min) { - offset = mgr->va_offset; - waste = offset % alignment; - waste = waste ? alignment - waste :0 ; -if (offset + waste + size > range_max) { -pthread_mutex_unlock (&mgr->bo_va_mutex); -return AMDGPU_INVALID_VA_ADDRESS ; - } - }else { - offset = mgr->va_offset; - waste = range_min % alignment; - waste = waste ? alignment - waste :0 ; - waste += range_min - offset ; - } - -if (waste) { - n =calloc (1 ,sizeof (struct amdgpu_bo_va_hole )); - n->size = waste; - n->offset = offset; -list_add (&n->list, &mgr->va_holes); - } - - offset += waste; - mgr->va_offset = size + offset;pthread_mutex_unlock (&mgr->bo_va_mutex); -return offset; +return AMDGPU_INVALID_VA_ADDRESS ; } drm_private voidamdgpu_vamgr_free_va (struct amdgpu_bo_va_mgr *mgr,uint64_t va,uint64_t size) { -struct amdgpu_bo_va_hole *hole; +struct amdgpu_bo_va_hole *hole, *next;if (va ==AMDGPU_INVALID_VA_ADDRESS )return ;@@ -274,61 +227,48 @@ amdgpu_vamgr_free_va(struct amdgpu_bo_va_mgr *mgr, uint64_t va, uint64_t size) size =ALIGN (size, mgr->va_alignment);pthread_mutex_lock (&mgr->bo_va_mutex); -if ((va + size) == mgr->va_offset) { - mgr->va_offset = va; -/* Delete uppermost hole if it reaches the new top */ -if (!LIST_IS_EMPTY (&mgr->va_holes)) { - hole =container_of (mgr->va_holes.next, hole, list); -if ((hole->offset + hole->size) == va) { - mgr->va_offset = hole->offset; -list_del (&hole->list); -free (hole); - } - } - }else { -struct amdgpu_bo_va_hole *next; - hole =container_of (&mgr->va_holes, hole, list); - LIST_FOR_EACH_ENTRY(next, &mgr->va_holes, list) { -if (next->offset < va) -break ; - hole = next; - } + hole =container_of (&mgr->va_holes, hole, list); + LIST_FOR_EACH_ENTRY(next, &mgr->va_holes, list) { +if (next->offset < va) +break ; + hole = next; + } -if (&hole->list != &mgr->va_holes) { -/* Grow upper hole if it's adjacent */ -if (hole->offset == (va + size)) { - hole->offset = va; - hole->size += size; -/* Merge lower hole if it's adjacent */ -if (next != hole - && &next->list != &mgr->va_holes - && (next->offset + next->size) == va) { - next->size += hole->size; -list_del (&hole->list); -free (hole); - } - goto out; +if (&hole->list != &mgr->va_holes) { +/* Grow upper hole if it's adjacent */ +if (hole->offset == (va + size)) { + hole->offset = va; + hole->size += size; +/* Merge lower hole if it's adjacent */ +if (next != hole && + &next->list != &mgr->va_holes && + (next->offset + next->size) == va) { + next->size += hole->size; +list_del (&hole->list); +free (hole); } - } - -/* Grow lower hole if it's adjacent */ -if (next != hole && &next->list != &mgr->va_holes && - (next->offset + next->size) == va) { - next->size += size; goto out; } + } -/* FIXME on allocation failure we just lose virtual address space -* maybe print a warning -*/ - next =calloc (1 ,sizeof (struct amdgpu_bo_va_hole )); -if (next) { - next->size = size; - next->offset = va; -list_add (&next->list, &hole->list); - } +/* Grow lower hole if it's adjacent */ +if (next != hole && &next->list != &mgr->va_holes && + (next->offset + next->size) == va) { + next->size += size; + goto out; } + +/* FIXME on allocation failure we just lose virtual address space +* maybe print a warning +*/
amdgpu/amdgpu_vamgr.c amdgpu_vamgr_free_va(struct amdgpu_bo_va_mgr *mgr, uint64_t va, uint64_t size) · line 274
Quoted 10 lines
amdgpu/amdgpu_vamgr.c +7
-0+ next =calloc (1 ,sizeof (struct amdgpu_bo_va_hole )); +if (next) { + next->size = size; + next->offset = va; +list_add (&next->list, &hole->list); + } + out:pthread_mutex_unlock (&mgr->bo_va_mutex); }
_______________________________________________
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): 563c031e-2e11-eb51-bdce-589da435c9a8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Re: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr
Quoted 9 lines · Christian König
Am 12.01.2018 um 06:45 schrieb Chunming Zhou:
Quoted 8 lines
Change-Id I7ca19a1f6404356a6c69ab4af27c8e13454f0279Signed-off-by Chunming Zhou <[email protected]>---
amdgpu/amdgpu_internal.h| 2 -
amdgpu/amdgpu_vamgr.c | 152
++++++++++++++---------------------------------2 files changed, 46 insertions(+), 108 deletions(-)
Quoted 13 lines
amdgpu/amdgpu_internal.h struct amdgpu_bo_va_hole { · line 56
Quoted 11 lines
amdgpu/amdgpu_internal.h +0
-2@@ -53,8 +53,6 @@ struct amdgpu_bo_va_hole { }; struct amdgpu_bo_va_mgr { - /* the start virtual address */ - uint64_t va_offset; uint64_t va_min; uint64_t va_max;Is
va_minandva_maxactually still used after that series?
Yes, still used for svm manager.
Quoted 5 lines
If not I would remove them as well.
Apart from that I would indeed add the warning when the calloc during free fails.
With that fixed the series is Reviewed-by: Christian König <[email protected]>.
Thanks for review.
Regards,
David Zhou
Quoted 193 lines
Regards,
Christian.Quoted 189 lines
amdgpu/amdgpu_internal.h +0
-0struct list_head va_holes;amdgpu/amdgpu_vamgr.c +9
-28@@ -61,13 +61,20 @@ int amdgpu_va_range_query(amdgpu_device_handle dev, drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start, uint64_t max, uint64_t alignment) { - mgr->va_offset = start; + struct amdgpu_bo_va_hole *n; + mgr->va_min = start; mgr->va_max = max; mgr->va_alignment = alignment; list_inithead(&mgr->va_holes); pthread_mutex_init(&mgr->bo_va_mutex, NULL); + pthread_mutex_lock(&mgr->bo_va_mutex); + n = calloc(1, sizeof(struct amdgpu_bo_va_hole)); + n->size = mgr->va_max; + n->offset = mgr->va_min; + list_add(&n->list, &mgr->va_holes); + pthread_mutex_unlock(&mgr->bo_va_mutex); } drm_private void amdgpu_vamgr_deinit(struct amdgpu_bo_va_mgr *mgr)@@ -136,35 +143,8 @@ amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size, } } - if (base_required) { - if (base_required < mgr->va_offset) { - pthread_mutex_unlock(&mgr->bo_va_mutex); - return AMDGPU_INVALID_VA_ADDRESS; - } - offset = mgr->va_offset; - waste = base_required - mgr->va_offset; - } else { - offset = mgr->va_offset; - waste = offset % alignment; - waste = waste ? alignment - waste : 0; - } - - if (offset + waste + size > mgr->va_max) { - pthread_mutex_unlock(&mgr->bo_va_mutex); - return AMDGPU_INVALID_VA_ADDRESS; - } - - if (waste) { - n = calloc(1, sizeof(struct amdgpu_bo_va_hole)); - n->size = waste; - n->offset = offset; - list_add(&n->list, &mgr->va_holes); - } - - offset += waste; - mgr->va_offset += size + waste; pthread_mutex_unlock(&mgr->bo_va_mutex); - return offset; + return AMDGPU_INVALID_VA_ADDRESS; } static uint64_t amdgpu_vamgr_find_va_in_range(struct amdgpu_bo_va_mgr *mgr, uint64_t size,@@ -232,41 +212,14 @@ static uint64_tamdgpu_vamgr_find_va_in_range(struct
amdgpu_bo_va_mgr*mgr, uint }
}
- if (mgr->va_offset>range_max) {
-pthread_mutex_unlock(&mgr->bo_va_mutex);
- returnAMDGPU_INVALID_VA_ADDRESS;
- } else if (mgr->va_offset>range_min) {
- offset =mgr->va_offset;
- waste = offset % alignment;
- waste = waste ? alignment - waste : 0;
- if (offset + waste + size >range_max) {
-pthread_mutex_unlock(&mgr->bo_va_mutex); - returnAMDGPU_INVALID_VA_ADDRESS;
- }
- } else {
- offset =mgr->va_offset;
- waste =range_min% alignment;
- waste = waste ? alignment - waste : 0;
- waste +=range_min- offset ;
- }amdgpu/amdgpu_vamgr.c +0
-10- - if (waste) { - n = calloc(1, sizeof(struct amdgpu_bo_va_hole)); - n->size = waste; - n->offset = offset; - list_add(&n->list, &mgr->va_holes); - } - - offset += waste; - mgr->va_offset = size + offset;
pthread_mutex_unlock(&mgr->bo_va_mutex);
- return offset;
+ returnAMDGPU_INVALID_VA_ADDRESS;
}
drm_privatevoid
amdgpu_vamgr_free_va(struct amdgpu_bo_va_mgr *mgr, uint64_t va, uint64_t size){
- structamdgpu_bo_va_hole*hole;
+ structamdgpu_bo_va_hole*hole, *next;
if (va ==AMDGPU_INVALID_VA_ADDRESS)
return;amdgpu/amdgpu_vamgr.c +19
-37@@ -274,61 +227,48 @@ amdgpu_vamgr_free_va(struct amdgpu_bo_va_mgr *mgr, uint64_t va, uint64_t size) size = ALIGN(size, mgr->va_alignment); pthread_mutex_lock(&mgr->bo_va_mutex); - if ((va + size) == mgr->va_offset) { - mgr->va_offset = va; - /* Delete uppermost hole if it reaches the new top */ - if (!LIST_IS_EMPTY(&mgr->va_holes)) { - hole = container_of(mgr->va_holes.next, hole, list); - if ((hole->offset + hole->size) == va) { - mgr->va_offset = hole->offset; - list_del(&hole->list); - free(hole); - } - } - } else { - struct amdgpu_bo_va_hole *next; - hole = container_of(&mgr->va_holes, hole, list); - LIST_FOR_EACH_ENTRY(next, &mgr->va_holes, list) { - if (next->offset < va) - break; - hole = next; - } + hole = container_of(&mgr->va_holes, hole, list); + LIST_FOR_EACH_ENTRY(next, &mgr->va_holes, list) { + if (next->offset < va) + break; + hole = next; + } - if (&hole->list != &mgr->va_holes) { - /* Grow upper hole if it's adjacent */ - if (hole->offset == (va + size)) { - hole->offset = va; - hole->size += size; - /* Merge lower hole if it's adjacent */ - if (next != hole - && &next->list != &mgr->va_holes - && (next->offset + next->size) == va) { - next->size += hole->size; - list_del(&hole->list); - free(hole); - } - goto out; + if (&hole->list != &mgr->va_holes) { + /* Grow upper hole if it's adjacent */ + if (hole->offset == (va + size)) { + hole->offset = va; + hole->size += size; + /* Merge lower hole if it's adjacent */ + if (next != hole && + &next->list != &mgr->va_holes && + (next->offset + next->size) == va) { + next->size += hole->size; + list_del(&hole->list); + free(hole); } - } - - /* Grow lower hole if it's adjacent */ - if (next != hole && &next->list != &mgr->va_holes && - (next->offset + next->size) == va) { - next->size += size; goto out; } + }- /* FIXME on allocation failure we just lose virtual address space - * maybe print a warning
- */
- next =calloc(1, sizeof(struct amdgpu_bo_va_hole));
- if (next) {
-next->size= size;
-next->offset= va;
-list_add(&next->list, &hole->list);
- }
+ /* Grow lower hole if it's adjacent */
+ if (next != hole &&&next->list!=&mgr->va_holes&&
+ (next->offset+next->size) == va) {
+next->size+= size;
+ goto out;
}
+
+ /* FIXME on allocation failure we just lose virtual address space + * maybe print a warning
+ */
+ next =calloc(1, sizeof(struct amdgpu_bo_va_hole));
+ if (next) {
Quoted 9 lines
Quoted 8 lines
+
next->size= size;
+next->offset= va;
+list_add(&next->list, &hole->list);
+ }
+
out:
pthread_mutex_unlock(&mgr->bo_va_mutex);
}
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr
In reply to a message not in the archiveHi David,
this change completely broke radeonsi due to memory management errors (see valgrind output for glxgears below), so I had to revert it.
==4831== Memcheck, a memory error detector
==4831== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==4831== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==4831== Command: glxgears
==4831==
==4831== Invalid read of size 8
==4831== at 0xAE4E79B: list_add (util_double_list.h:56) ==4831== by 0xAE4E79B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:184) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address 0x151eccb8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E7B0: list_add (util_double_list.h:57) ==4831== by 0xAE4E7B0: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:184) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address 0x151eccb8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== ==4831== Invalid write of size 8 ==4831== at 0xAE4E7BB: list_add (util_double_list.h:58) ==4831== by 0xAE4E7BB: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:184) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address 0x151eccb8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E730: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:149) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address 0x150164b0 is 16 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E73D: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:148) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address 0x150164a8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid write of size 8 ==4831== at 0xAE4E983: list_del (util_double_list.h:80) ==4831== by 0xAE4E983: amdgpu_vamgr_deinit (amdgpu_vamgr.c:70) ==4831== by 0xAE4D883: amdgpu_device_free_internal (amdgpu_device.c:134) ==4831== by 0xAE4DD9B: amdgpu_device_reference (amdgpu_device.c:164) ==4831== by 0xAE4DD9B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==4831== by 0xA0FFD9A: do_winsys_deinit (amdgpu_winsys.c:84) ==4831== by 0xA0FFD9A: amdgpu_winsys_destroy (amdgpu_winsys.c:101) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by 0x535BD4E: glx_display_free (glxext.c:244) ==4831== by 0x535BE8D: __glXCloseDisplay (glxext.c:299) ==4831== Address 0x150164a0 is 0 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E98B: amdgpu_vamgr_deinit (amdgpu_vamgr.c:69) ==4831== by 0xAE4D883: amdgpu_device_free_internal (amdgpu_device.c:134) ==4831== by 0xAE4DD9B: amdgpu_device_reference (amdgpu_device.c:164) ==4831== by 0xAE4DD9B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==4831== by 0xA0FFD9A: do_winsys_deinit (amdgpu_winsys.c:84) ==4831== by 0xA0FFD9A: amdgpu_winsys_destroy (amdgpu_winsys.c:101) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by 0x535BD4E: glx_display_free (glxext.c:244) ==4831== by 0x535BE8D: __glXCloseDisplay (glxext.c:299) ==4831== Address 0x150164a8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E978: list_del (util_double_list.h:79) ==4831== by 0xAE4E978: amdgpu_vamgr_deinit (amdgpu_vamgr.c:70) ==4831== by 0xAE4D883: amdgpu_device_free_internal (amdgpu_device.c:134) ==4831== by 0xAE4DD9B: amdgpu_device_reference (amdgpu_device.c:164) ==4831== by 0xAE4DD9B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==4831== by 0xA0FFD9A: do_winsys_deinit (amdgpu_winsys.c:84) ==4831== by 0xA0FFD9A: amdgpu_winsys_destroy (amdgpu_winsys.c:101) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by 0x535BD4E: glx_display_free (glxext.c:244) ==4831== by 0x535BE8D: __glXCloseDisplay (glxext.c:299) ==4831== Address 0x150164a0 is 0 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E97F: list_del (util_double_list.h:80) ==4831== by 0xAE4E97F: amdgpu_vamgr_deinit (amdgpu_vamgr.c:70) ==4831== by 0xAE4D883: amdgpu_device_free_internal (amdgpu_device.c:134) ==4831== by 0xAE4DD9B: amdgpu_device_reference (amdgpu_device.c:164) ==4831== by 0xAE4DD9B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==4831== by 0xA0FFD9A: do_winsys_deinit (amdgpu_winsys.c:84) ==4831== by 0xA0FFD9A: amdgpu_winsys_destroy (amdgpu_winsys.c:101) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by 0x535BD4E: glx_display_free (glxext.c:244) ==4831== by 0x535BE8D: __glXCloseDisplay (glxext.c:299) ==4831== Address 0x150164a8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid free() / delete / delete[] / realloc() ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E98A: amdgpu_vamgr_deinit (amdgpu_vamgr.c:71) ==4831== by 0xAE4D883: amdgpu_device_free_internal (amdgpu_device.c:134) ==4831== by 0xAE4DD9B: amdgpu_device_reference (amdgpu_device.c:164) ==4831== by 0xAE4DD9B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==4831== by 0xA0FFD9A: do_winsys_deinit (amdgpu_winsys.c:84) ==4831== by 0xA0FFD9A: amdgpu_winsys_destroy (amdgpu_winsys.c:101) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by 0x535BD4E: glx_display_free (glxext.c:244) ==4831== Address 0x150164a0 is 0 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471)
==4831==
==4831==
==4831== HEAP SUMMARY:
==4831== in use at exit: 156,580 bytes in 1,724 blocks
==4831== total heap usage: 66,624 allocs, 64,901 frees, 32,392,118 bytes allocated
==4831==
==4831== LEAK SUMMARY:
==4831== definitely lost: 96 bytes in 3 blocks
==4831== indirectly lost: 0 bytes in 0 blocks
==4831== possibly lost: 0 bytes in 0 blocks
==4831== still reachable: 156,484 bytes in 1,721 blocks
==4831== suppressed: 0 bytes in 0 blocks
==4831== Rerun with --leak-check=full to see details of leaked memory ==4831==
==4831== For counts of detected and suppressed errors, rerun with: -v ==4831== ERROR SUMMARY: 19 errors from 10 contexts (suppressed: 0 from 0)
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ 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): e3722edc-8ca4-4730-d649-2b5a959b92c1-otUistvHUpPR7s880joybQ@public.gmane.org
Re: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr
Quoted 5 lines · Michel Dänzer
Hi David,
this change completely broke radeonsi due to memory management errors (see valgrind output for glxgears below), so I had to revert it.
ok, I will look into what happens. Sorry for broken.
Regards,
David Zhou
Quoted 468 lines
==4831== Memcheck, a memory error detector
==4831== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==4831== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==4831== Command: glxgears
==4831==
==4831== Invalid read of size 8==4831== at 0xAE4E79B: list_add (util_double_list.h:56) ==4831== by 0xAE4E79B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:184) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address 0x151eccb8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E7B0: list_add (util_double_list.h:57) ==4831== by 0xAE4E7B0: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:184) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address 0x151eccb8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== ==4831== Invalid write of size 8 ==4831== at 0xAE4E7BB: list_add (util_double_list.h:58) ==4831== by 0xAE4E7BB: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:184) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address 0x151eccb8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E730: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:149) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address 0x150164b0 is 16 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E73D: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:148) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address 0x150164a8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid write of size 8 ==4831== at 0xAE4E983: list_del (util_double_list.h:80) ==4831== by 0xAE4E983: amdgpu_vamgr_deinit (amdgpu_vamgr.c:70) ==4831== by 0xAE4D883: amdgpu_device_free_internal (amdgpu_device.c:134) ==4831== by 0xAE4DD9B: amdgpu_device_reference (amdgpu_device.c:164) ==4831== by 0xAE4DD9B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==4831== by 0xA0FFD9A: do_winsys_deinit (amdgpu_winsys.c:84) ==4831== by 0xA0FFD9A: amdgpu_winsys_destroy (amdgpu_winsys.c:101) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by 0x535BD4E: glx_display_free (glxext.c:244) ==4831== by 0x535BE8D: __glXCloseDisplay (glxext.c:299) ==4831== Address 0x150164a0 is 0 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E98B: amdgpu_vamgr_deinit (amdgpu_vamgr.c:69) ==4831== by 0xAE4D883: amdgpu_device_free_internal (amdgpu_device.c:134) ==4831== by 0xAE4DD9B: amdgpu_device_reference (amdgpu_device.c:164) ==4831== by 0xAE4DD9B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==4831== by 0xA0FFD9A: do_winsys_deinit (amdgpu_winsys.c:84) ==4831== by 0xA0FFD9A: amdgpu_winsys_destroy (amdgpu_winsys.c:101) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by 0x535BD4E: glx_display_free (glxext.c:244) ==4831== by 0x535BE8D: __glXCloseDisplay (glxext.c:299) ==4831== Address 0x150164a8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E978: list_del (util_double_list.h:79) ==4831== by 0xAE4E978: amdgpu_vamgr_deinit (amdgpu_vamgr.c:70) ==4831== by 0xAE4D883: amdgpu_device_free_internal (amdgpu_device.c:134) ==4831== by 0xAE4DD9B: amdgpu_device_reference (amdgpu_device.c:164) ==4831== by 0xAE4DD9B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==4831== by 0xA0FFD9A: do_winsys_deinit (amdgpu_winsys.c:84) ==4831== by 0xA0FFD9A: amdgpu_winsys_destroy (amdgpu_winsys.c:101) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by 0x535BD4E: glx_display_free (glxext.c:244) ==4831== by 0x535BE8D: __glXCloseDisplay (glxext.c:299) ==4831== Address 0x150164a0 is 0 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid read of size 8 ==4831== at 0xAE4E97F: list_del (util_double_list.h:80) ==4831== by 0xAE4E97F: amdgpu_vamgr_deinit (amdgpu_vamgr.c:70) ==4831== by 0xAE4D883: amdgpu_device_free_internal (amdgpu_device.c:134) ==4831== by 0xAE4DD9B: amdgpu_device_reference (amdgpu_device.c:164) ==4831== by 0xAE4DD9B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==4831== by 0xA0FFD9A: do_winsys_deinit (amdgpu_winsys.c:84) ==4831== by 0xA0FFD9A: amdgpu_winsys_destroy (amdgpu_winsys.c:101) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by 0x535BD4E: glx_display_free (glxext.c:244) ==4831== by 0x535BE8D: __glXCloseDisplay (glxext.c:299) ==4831== Address 0x150164a8 is 8 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471) ==4831== ==4831== Invalid free() / delete / delete[] / realloc() ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E98A: amdgpu_vamgr_deinit (amdgpu_vamgr.c:71) ==4831== by 0xAE4D883: amdgpu_device_free_internal (amdgpu_device.c:134) ==4831== by 0xAE4DD9B: amdgpu_device_reference (amdgpu_device.c:164) ==4831== by 0xAE4DD9B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==4831== by 0xA0FFD9A: do_winsys_deinit (amdgpu_winsys.c:84) ==4831== by 0xA0FFD9A: amdgpu_winsys_destroy (amdgpu_winsys.c:101) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== by 0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by 0x535BD4E: glx_display_free (glxext.c:244) ==4831== Address 0x150164a0 is 0 bytes inside a block of size 32 free'd ==4831== at 0x4C2DDBB: free (vg_replace_malloc.c:530) ==4831== by 0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0x9DD5067: pb_cache_release_all_buffers (pb_cache.c:241) ==4831== by 0x9DD5260: pb_cache_deinit (pb_cache.c:313) ==4831== by 0xA0FFD82: amdgpu_winsys_destroy (amdgpu_winsys.c:99) ==4831== by 0xA051D76: si_destroy_screen (si_pipe.c:515) ==4831== by 0x9D85448: dri_destroy_screen_helper (dri_screen.c:454) ==4831== by 0x9D85475: dri_destroy_screen (dri_screen.c:464) ==4831== by 0x9D82076: driDestroyScreen (dri_util.c:231) ==4831== by 0x5386222: dri3_destroy_screen (dri3_glx.c:584) ==4831== Block was alloc'd at ==4831== at 0x4C2EBA5: calloc (vg_replace_malloc.c:711) ==4831== by 0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by 0xAE4EB2C: amdgpu_vamgr_free_va (amdgpu_vamgr.c:141) ==4831== by 0xAE4EB2C: amdgpu_va_range_free (amdgpu_vamgr.c:246) ==4831== by 0xA0FA53E: amdgpu_bo_destroy (amdgpu_bo.c:178) ==4831== by 0xA12EADF: pb_destroy (pb_buffer.h:232) ==4831== by 0xA12EADF: pb_reference (pb_buffer.h:242) ==4831== by 0xA12EADF: r600_texture_destroy (r600_texture.c:825) ==4831== by 0x9D8490E: pipe_resource_reference (u_inlines.h:144) ==4831== by 0x9D8490E: dri2_destroy_image (dri_helpers.c:317) ==4831== by 0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by 0x538B347: loader_dri3_drawable_fini (loader_dri3_helper.c:238) ==4831== by 0x53861E4: dri3_destroy_drawable (dri3_glx.c:338) ==4831== by 0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by 0x53866C2: dri3_destroy_context (dri3_glx.c:166) ==4831== by 0x5358792: glXDestroyContext (glxcmds.c:471)
Quoted 19 lines
==4831==
==4831==
==4831== HEAP SUMMARY:
==4831== in use at exit: 156,580 bytes in 1,724 blocks
==4831== total heap usage: 66,624 allocs, 64,901 frees, 32,392,118 bytes allocated
==4831==
==4831== LEAK SUMMARY:
==4831== definitely lost: 96 bytes in 3 blocks
==4831== indirectly lost: 0 bytes in 0 blocks
==4831== possibly lost: 0 bytes in 0 blocks
==4831== still reachable: 156,484 bytes in 1,721 blocks
==4831== suppressed: 0 bytes in 0 blocks
==4831== Rerun with --leak-check=full to see details of leaked memory ==4831==
==4831== For counts of detected and suppressed errors, rerun with: -v ==4831== ERROR SUMMARY: 19 errors from 10 contexts (suppressed: 0 from 0)
_______________________________________________
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): 4a2036e5-820f-d62a-a773-2da1f575e1bc-5C7GfCeVMHo@public.gmane.org
Chunming Zhou
Reviewed-by Christian KönigRe: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr
Quoted 9 lines · Chunming Zhou
Quoted 5 lines · Michel Dänzer
Hi David,
this change completely broke radeonsi due to memory management errors (see valgrind output for glxgears below), so I had to revert it.
ok, I will look into what happens. Sorry for broken.
The patch lost a "goto out" in free_va when applying patch from hybrid to opensource. The attached fixes that, I tested successfully in my local side.
please review or test, if no problem, I will submit it again.
Thanks,
David Zhou
Quoted 492 lines
Regards,
David ZhouQuoted 476 lines
==4831== Memcheck, a memory error detector
==4831== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==4831== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==4831== Command: glxgears
==4831==
==4831== Invalid read of size 8
==4831== at0xAE4E79B:list_add(util_double_list.h:56)
==4831== by0xAE4E79B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:184) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== by0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address0x151eccb8is 8 bytes inside a block of size 32 free'd ==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== Block was alloc'd at
==4831== at0x4C2EBA5: calloc (vg_replace_malloc.c:711)
==4831== by0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831==
==4831== Invalid read of size 8
==4831== at0xAE4E7B0:list_add(util_double_list.h:57)
==4831== by0xAE4E7B0: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:184) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== by0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address0x151eccb8is 8 bytes inside a block of size 32 free'd ==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== Block was alloc'd at
==4831== at0x4C2EBA5: calloc (vg_replace_malloc.c:711)
==4831== by0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831==
==4831== Invalid write of size 8
==4831== at0xAE4E7BB:list_add(util_double_list.h:58)
==4831== by0xAE4E7BB: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:184) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== by0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address0x151eccb8is 8 bytes inside a block of size 32 free'd ==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== Block was alloc'd at
==4831== at0x4C2EBA5: calloc (vg_replace_malloc.c:711)
==4831== by0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831==
==4831== Invalid read of size 8
==4831== at0xAE4E730: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:149) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== by0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address0x150164b0is 16 bytes inside a block of size 32 free'd ==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== Block was alloc'd at
==4831== at0x4C2EBA5: calloc (vg_replace_malloc.c:711)
==4831== by0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0xA12EADF:pb_destroy(pb_buffer.h:232)
==4831== by0xA12EADF:pb_reference(pb_buffer.h:242)
==4831== by0xA12EADF:r600_texture_destroy(r600_texture.c:825) ==4831== by0x9D8490E:pipe_resource_reference(u_inlines.h:144) ==4831== by0x9D8490E:dri2_destroy_image(dri_helpers.c:317) ==4831== by0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by0x538B347:loader_dri3_drawable_fini(loader_dri3_helper.c:238) ==4831== by0x53861E4:dri3_destroy_drawable(dri3_glx.c:338) ==4831== by0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by0x53866C2:dri3_destroy_context(dri3_glx.c:166) ==4831== by0x5358792: glXDestroyContext (glxcmds.c:471)
==4831==
==4831== Invalid read of size 8
==4831== at0xAE4E73D: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:148) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== by0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== Address0x150164a8is 8 bytes inside a block of size 32 free'd ==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== Block was alloc'd at
==4831== at0x4C2EBA5: calloc (vg_replace_malloc.c:711)
==4831== by0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0xA12EADF:pb_destroy(pb_buffer.h:232)
==4831== by0xA12EADF:pb_reference(pb_buffer.h:242)
==4831== by0xA12EADF:r600_texture_destroy(r600_texture.c:825) ==4831== by0x9D8490E:pipe_resource_reference(u_inlines.h:144) ==4831== by0x9D8490E:dri2_destroy_image(dri_helpers.c:317) ==4831== by0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by0x538B347:loader_dri3_drawable_fini(loader_dri3_helper.c:238) ==4831== by0x53861E4:dri3_destroy_drawable(dri3_glx.c:338) ==4831== by0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by0x53866C2:dri3_destroy_context(dri3_glx.c:166) ==4831== by0x5358792: glXDestroyContext (glxcmds.c:471)
==4831==
==4831== Invalid write of size 8
==4831== at0xAE4E983:list_del(util_double_list.h:80)
==4831== by0xAE4E983:amdgpu_vamgr_deinit(amdgpu_vamgr.c:70) ==4831== by0xAE4D883:amdgpu_device_free_internal(amdgpu_device.c:134) ==4831== by0xAE4DD9B:amdgpu_device_reference(amdgpu_device.c:164) ==4831== by0xAE4DD9B:amdgpu_device_deinitialize(amdgpu_device.c:307) ==4831== by0xA0FFD9A:do_winsys_deinit(amdgpu_winsys.c:84) ==4831== by0xA0FFD9A:amdgpu_winsys_destroy(amdgpu_winsys.c:101) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== by0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by0x535BD4E:glx_display_free(glxext.c:244)
==4831== by0x535BE8D:__glXCloseDisplay(glxext.c:299)
==4831== Address0x150164a0is 0 bytes inside a block of size 32 free'd ==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== Block was alloc'd at
==4831== at0x4C2EBA5: calloc (vg_replace_malloc.c:711)
==4831== by0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0xA12EADF:pb_destroy(pb_buffer.h:232)
==4831== by0xA12EADF:pb_reference(pb_buffer.h:242)
==4831== by0xA12EADF:r600_texture_destroy(r600_texture.c:825) ==4831== by0x9D8490E:pipe_resource_reference(u_inlines.h:144) ==4831== by0x9D8490E:dri2_destroy_image(dri_helpers.c:317) ==4831== by0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by0x538B347:loader_dri3_drawable_fini(loader_dri3_helper.c:238) ==4831== by0x53861E4:dri3_destroy_drawable(dri3_glx.c:338) ==4831== by0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by0x53866C2:dri3_destroy_context(dri3_glx.c:166) ==4831== by0x5358792: glXDestroyContext (glxcmds.c:471)
==4831==
==4831== Invalid read of size 8
==4831== at0xAE4E98B:amdgpu_vamgr_deinit(amdgpu_vamgr.c:69) ==4831== by0xAE4D883:amdgpu_device_free_internal(amdgpu_device.c:134) ==4831== by0xAE4DD9B:amdgpu_device_reference(amdgpu_device.c:164) ==4831== by0xAE4DD9B:amdgpu_device_deinitialize(amdgpu_device.c:307) ==4831== by0xA0FFD9A:do_winsys_deinit(amdgpu_winsys.c:84) ==4831== by0xA0FFD9A:amdgpu_winsys_destroy(amdgpu_winsys.c:101) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== by0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by0x535BD4E:glx_display_free(glxext.c:244)
==4831== by0x535BE8D:__glXCloseDisplay(glxext.c:299)
==4831== Address0x150164a8is 8 bytes inside a block of size 32 free'd ==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== Block was alloc'd at
==4831== at0x4C2EBA5: calloc (vg_replace_malloc.c:711)
==4831== by0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0xA12EADF:pb_destroy(pb_buffer.h:232)
==4831== by0xA12EADF:pb_reference(pb_buffer.h:242)
==4831== by0xA12EADF:r600_texture_destroy(r600_texture.c:825) ==4831== by0x9D8490E:pipe_resource_reference(u_inlines.h:144) ==4831== by0x9D8490E:dri2_destroy_image(dri_helpers.c:317) ==4831== by0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by0x538B347:loader_dri3_drawable_fini(loader_dri3_helper.c:238) ==4831== by0x53861E4:dri3_destroy_drawable(dri3_glx.c:338) ==4831== by0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by0x53866C2:dri3_destroy_context(dri3_glx.c:166) ==4831== by0x5358792: glXDestroyContext (glxcmds.c:471)
==4831==
==4831== Invalid read of size 8
==4831== at0xAE4E978:list_del(util_double_list.h:79)
==4831== by0xAE4E978:amdgpu_vamgr_deinit(amdgpu_vamgr.c:70) ==4831== by0xAE4D883:amdgpu_device_free_internal(amdgpu_device.c:134) ==4831== by0xAE4DD9B:amdgpu_device_reference(amdgpu_device.c:164) ==4831== by0xAE4DD9B:amdgpu_device_deinitialize(amdgpu_device.c:307) ==4831== by0xA0FFD9A:do_winsys_deinit(amdgpu_winsys.c:84) ==4831== by0xA0FFD9A:amdgpu_winsys_destroy(amdgpu_winsys.c:101) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== by0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by0x535BD4E:glx_display_free(glxext.c:244)
==4831== by0x535BE8D:__glXCloseDisplay(glxext.c:299)
==4831== Address0x150164a0is 0 bytes inside a block of size 32 free'd ==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== Block was alloc'd at
==4831== at0x4C2EBA5: calloc (vg_replace_malloc.c:711)
==4831== by0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0xA12EADF:pb_destroy(pb_buffer.h:232)
==4831== by0xA12EADF:pb_reference(pb_buffer.h:242)
==4831== by0xA12EADF:r600_texture_destroy(r600_texture.c:825) ==4831== by0x9D8490E:pipe_resource_reference(u_inlines.h:144) ==4831== by0x9D8490E:dri2_destroy_image(dri_helpers.c:317) ==4831== by0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by0x538B347:loader_dri3_drawable_fini(loader_dri3_helper.c:238) ==4831== by0x53861E4:dri3_destroy_drawable(dri3_glx.c:338) ==4831== by0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by0x53866C2:dri3_destroy_context(dri3_glx.c:166) ==4831== by0x5358792: glXDestroyContext (glxcmds.c:471)
==4831==
==4831== Invalid read of size 8
==4831== at0xAE4E97F:list_del(util_double_list.h:80)
==4831== by0xAE4E97F:amdgpu_vamgr_deinit(amdgpu_vamgr.c:70) ==4831== by0xAE4D883:amdgpu_device_free_internal(amdgpu_device.c:134) ==4831== by0xAE4DD9B:amdgpu_device_reference(amdgpu_device.c:164) ==4831== by0xAE4DD9B:amdgpu_device_deinitialize(amdgpu_device.c:307) ==4831== by0xA0FFD9A:do_winsys_deinit(amdgpu_winsys.c:84) ==4831== by0xA0FFD9A:amdgpu_winsys_destroy(amdgpu_winsys.c:101) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== by0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by0x535BD4E:glx_display_free(glxext.c:244)
==4831== by0x535BE8D:__glXCloseDisplay(glxext.c:299)
==4831== Address0x150164a8is 8 bytes inside a block of size 32 free'd ==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== Block was alloc'd at
==4831== at0x4C2EBA5: calloc (vg_replace_malloc.c:711)
==4831== by0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0xA12EADF:pb_destroy(pb_buffer.h:232)
==4831== by0xA12EADF:pb_reference(pb_buffer.h:242)
==4831== by0xA12EADF:r600_texture_destroy(r600_texture.c:825) ==4831== by0x9D8490E:pipe_resource_reference(u_inlines.h:144) ==4831== by0x9D8490E:dri2_destroy_image(dri_helpers.c:317) ==4831== by0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by0x538B347:loader_dri3_drawable_fini(loader_dri3_helper.c:238) ==4831== by0x53861E4:dri3_destroy_drawable(dri3_glx.c:338) ==4831== by0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by0x53866C2:dri3_destroy_context(dri3_glx.c:166) ==4831== by0x5358792: glXDestroyContext (glxcmds.c:471)
==4831==
==4831== Invalidfree()/ delete / delete[] /realloc()
==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E98A:amdgpu_vamgr_deinit(amdgpu_vamgr.c:71) ==4831== by0xAE4D883:amdgpu_device_free_internal(amdgpu_device.c:134) ==4831== by0xAE4DD9B:amdgpu_device_reference(amdgpu_device.c:164) ==4831== by0xAE4DD9B:amdgpu_device_deinitialize(amdgpu_device.c:307) ==4831== by0xA0FFD9A:do_winsys_deinit(amdgpu_winsys.c:84) ==4831== by0xA0FFD9A:amdgpu_winsys_destroy(amdgpu_winsys.c:101) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== by0x535BCCE: FreeScreenConfigs.isra.3 (glxext.c:221) ==4831== by0x535BD4E:glx_display_free(glxext.c:244)
==4831== Address0x150164a0is 0 bytes inside a block of size 32 free'd ==4831== at0x4C2DDBB: free (vg_replace_malloc.c:530)
==4831== by0xAE4E85B: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:165) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0x9DD5067:pb_cache_release_all_buffers(pb_cache.c:241) ==4831== by0x9DD5260:pb_cache_deinit(pb_cache.c:313)
==4831== by0xA0FFD82:amdgpu_winsys_destroy(amdgpu_winsys.c:99) ==4831== by0xA051D76:si_destroy_screen(si_pipe.c:515)
==4831== by0x9D85448:dri_destroy_screen_helper(dri_screen.c:454) ==4831== by0x9D85475:dri_destroy_screen(dri_screen.c:464) ==4831== by0x9D82076: driDestroyScreen (dri_util.c:231)
==4831== by0x5386222:dri3_destroy_screen(dri3_glx.c:584) ==4831== Block was alloc'd at
==4831== at0x4C2EBA5: calloc (vg_replace_malloc.c:711)
==4831== by0xAE4E795: amdgpu_vamgr_free_va.part.0 (amdgpu_vamgr.c:180) ==4831== by0xAE4EB2C:amdgpu_vamgr_free_va(amdgpu_vamgr.c:141) ==4831== by0xAE4EB2C:amdgpu_va_range_free(amdgpu_vamgr.c:246) ==4831== by0xA0FA53E:amdgpu_bo_destroy(amdgpu_bo.c:178)
==4831== by0xA12EADF:pb_destroy(pb_buffer.h:232)
==4831== by0xA12EADF:pb_reference(pb_buffer.h:242)
==4831== by0xA12EADF:r600_texture_destroy(r600_texture.c:825) ==4831== by0x9D8490E:pipe_resource_reference(u_inlines.h:144) ==4831== by0x9D8490E:dri2_destroy_image(dri_helpers.c:317) ==4831== by0x538A94D: dri3_free_render_buffer.isra.3 (loader_dri3_helper.c:223) ==4831== by0x538B347:loader_dri3_drawable_fini(loader_dri3_helper.c:238) ==4831== by0x53861E4:dri3_destroy_drawable(dri3_glx.c:338) ==4831== by0x537F739: driReleaseDrawables (dri_common.c:481) ==4831== by0x53866C2:dri3_destroy_context(dri3_glx.c:166) ==4831== by0x5358792: glXDestroyContext (glxcmds.c:471)
==4831==
==4831==
==4831== HEAP SUMMARY:
==4831== in use at exit: 156,580 bytes in 1,724 blocks
==4831== total heap usage: 66,624 allocs, 64,901 frees, 32,392,118 bytes allocated ==4831==
==4831== LEAK SUMMARY:
==4831== definitely lost: 96 bytes in 3 blocksQuoted 11 lines
==4831== indirectly lost: 0 bytes in 0 blocks
==4831== possibly lost: 0 bytes in 0 blocks
==4831== still reachable: 156,484 bytes in 1,721 blocks ==4831== suppressed: 0 bytes in 0 blocks
==4831== Rerun with --leak-check=full to see details of leaked memory ==4831==
==4831== For counts of detected and suppressed errors, rerun with: -v ==4831== ERROR SUMMARY: 19 errors from 10 contexts (suppressed: 0 from 0)
Quoted 1 line
From
27a2e5af2c7fa4a050288d5f926adad9511afde3Mon Sep 17 00:00:00 2001
From: Chunming Zhou <[email protected]>
Date: Thu, 8 Feb 2018 14:52:11 +0800
Subject: [PATCH libdrm] amdgpu: clean up non list code path for vamgr
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
--- amdgpu/amdgpu_internal.h | 2 - amdgpu/amdgpu_vamgr.c | 122 +++++++++++++++++------------------------------ 2 files changed, 44 insertions(+), 80 deletions(-)
amdgpu/amdgpu_internal.h +0 -2
@@ -53,8 +53,6 @@ struct amdgpu_bo_va_hole { };struct amdgpu_bo_va_mgr { -/* the start virtual address */ -uint64_t va_offset;uint64_t va_max;struct list_head va_holes;pthread_mutex_t bo_va_mutex;
amdgpu/amdgpu_vamgr.c +44 -78
158 lines not on this page · raw message
Signature · 1 line
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): c6b30b81-8b6f-3b5a-5654-e8075939143e-5C7GfCeVMHo@public.gmane.org
Michel Dänzer
Tested-byRe: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr
Quoted 10 lines · Chunming Zhou
Quoted 5 lines · Chunming Zhou
Quoted 3 lines · Michel Dänzer
this change completely broke radeonsi due to memory management errors (see valgrind output for glxgears below), so I had to revert it.
ok, I will look into what happens. Sorry for broken.
The patch lost a "goto out" in
free_vawhen applying patch from hybrid to opensource.
The attached fixes that, I tested successfully in my local side. please review or test, if no problem, I will submit it again.
Please add:
v2: Add missing "goto out"
to the commit log before pushing.
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ 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): c7eaf026-f0f5-fab3-4bab-c11b39701e6a-otUistvHUpPR7s880joybQ@public.gmane.org
Re: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr
Hi David, I have an issue on Vega 10 where sudo xinit fails with
[ 5801.227] Failed to allocate front buffer memory [ 5801.227] (EE) AMDGPU(0): amdgpu_setup_kernel_mem failed [ 5801.227] (EE)
Fatal server error:
[ 5801.227] (EE) AddScreen/ScreenInit failed for driver 0 [ 5801.227] (EE)
[ 5801.227] (EE)
Also in MESA code si_create_context->si_common_context_init->pipe_buffer_create returns NULL.
Ellsmire works fine, on Vega 10 reverting this patch makes it work.
I am during my test system upgrade right now with some more issues after this one, so I can spend time on debugging this once my system is in good shape, unless you have an answer to this problem right away.
Thanks,
Andrey
Quoted 10 lines · Michel Dänzer
Quoted 9 lines · Chunming Zhou
Quoted 4 lines · Chunming Zhou
Quoted 2 lines · Michel Dänzer
this change completely broke radeonsi due to memory management errors (see valgrind output for glxgears below), so I had to revert it.
ok, I will look into what happens. Sorry for broken.
The patch lost a "goto out" in
free_vawhen applying patch from hybrid to opensource.
The attached fixes that, I tested successfully in my local side.
please review or test, if no problem, I will submit it again.
Quoted 8 lines
Please add:
v2: Add missing "goto out"
Tested-by Michel Dänzer <[email protected]>to the commit log before pushing.
_______________________________________________
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): 881720e0-3225-dd36-23f7-146b9bfb919d-5C7GfCeVMHo@public.gmane.org
Re: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr
Found time to do some debugging and found error in assigning of initial VA hole size, attached patch makes this issue go away, otherwise amdgpu_vamgr_find_va would always fail.
Thanks,
Andrey
Quoted 41 lines · Andrey Grodzovsky
Hi David, I have an issue on Vega 10 where sudo xinit fails with
[ 5801.227] Failed to allocate front buffer memory [ 5801.227] (EE) AMDGPU(0):
amdgpu_setup_kernel_memfailed [ 5801.227] (EE)
Fatal server error:
[ 5801.227] (EE) AddScreen/ScreenInit failed for driver 0 [ 5801.227] (EE)
[ 5801.227] (EE)Also in MESA code
si_create_context->si_common_context_init->pipe_buffer_createreturns NULL.Ellsmire works fine, on Vega 10 reverting this patch makes it work.
I am during my test system upgrade right now with some more issues after this one, so I can spend time on debugging this once my system is in good shape, unless you have an answer to this problem right away.
Thanks,
Andrey
Quoted 10 lines · Michel Dänzer
Quoted 9 lines · Chunming Zhou
Quoted 4 lines · Chunming Zhou
Quoted 2 lines · Michel Dänzer
this change completely broke radeonsi due to memory management errors (see valgrind output for glxgears below), so I had to revert it.
ok, I will look into what happens. Sorry for broken.
The patch lost a "goto out" in
free_vawhen applying patch from hybrid to opensource.
The attached fixes that, I tested successfully in my local side. please review or test, if no problem, I will submit it again.Quoted 8 lines
Please add:
v2: Add missing "goto out"
Tested-by Michel Dänzer <[email protected]>to the commit log before pushing.
Quoted 6 lines
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfxFrom
020b68cf0f5a3c5a1ea4dc48df6a895904da28b6Mon Sep 17 00:00:00 2001
From: Andrey Grodzovsky <[email protected]>
Date: Mon, 19 Feb 2018 02:18:36 -0500
Subject: amdgpu: Fix mistake in initial hole size calculation.
--- amdgpu/amdgpu_vamgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
amdgpu/amdgpu_vamgr.c +2 -1
@@ -57,7 +57,7 @@ drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start,pthread_mutex_init (&mgr->bo_va_mutex,NULL );pthread_mutex_lock (&mgr->bo_va_mutex); n =calloc (1 ,sizeof (struct amdgpu_bo_va_hole )); - n->size = mgr->va_max; + n->size = mgr->va_max - start; n->offset = start;list_add (&n->list, &mgr->va_holes);pthread_mutex_unlock (&mgr->bo_va_mutex);
@@ -80,6 +80,7 @@ amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size,struct amdgpu_bo_va_hole *hole, *n;uint64_t offset =0 , waste =0 ; + alignment =MAX2 (alignment, mgr->va_alignment); size =ALIGN (size, mgr->va_alignment);
Signature · 1 line
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): dcb5a4b1-f959-107b-d4af-18758fbf74cd-5C7GfCeVMHo@public.gmane.org
Re: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr
Patch is Acked-by: Christian König <[email protected]>
Regards,
Christian.
Am 19.02.2018 um 08:25 schrieb Andrey Grodzovsky:
Quoted 56 lines
Found time to do some debugging and found error in assigning of initial VA hole size, attached patch makes this issue go away, otherwise
amdgpu_vamgr_find_vawould always fail.Thanks,
Andrey
Quoted 37 lines · Andrey Grodzovsky
Hi David, I have an issue on Vega 10 where sudo xinit fails with
[ 5801.227] Failed to allocate front buffer memory [ 5801.227] (EE) AMDGPU(0):
amdgpu_setup_kernel_memfailed [ 5801.227] (EE)
Fatal server error:
[ 5801.227] (EE) AddScreen/ScreenInit failed for driver 0 [ 5801.227] (EE)
[ 5801.227] (EE)Also in MESA code
si_create_context->si_common_context_init->pipe_buffer_createreturns NULL.Ellsmire works fine, on Vega 10 reverting this patch makes it work.
I am during my test system upgrade right now with some more issues after this one, so I can spend time on debugging this once my system is in good shape, unless you have an answer to this problem right away.
Thanks,
Andrey
Quoted 15 lines · Michel Dänzer
Quoted 9 lines · Chunming Zhou
Quoted 4 lines · Chunming Zhou
Quoted 2 lines · Michel Dänzer
this change completely broke radeonsi due to memory management errors (see valgrind output for glxgears below), so I had to revert it.
ok, I will look into what happens. Sorry for broken.
The patch lost a "goto out" in
free_vawhen applying patch from hybrid to opensource.
The attached fixes that, I tested successfully in my local side. please review or test, if no problem, I will submit it again.Please add:
v2: Add missing "goto out"
Tested-by Michel Dänzer <[email protected]>Quoted 8 lines
Quoted 3 lines
to the commit log before pushing.
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
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): 032f5418-4b01-f269-7e0a-5e1dcad65e10-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Re: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr
Thanks for fix.
Regards,
David Zhou
Quoted 67 lines · Christian König
Patch is Acked-by: Christian König <[email protected]>
Regards,
Christian.Am 19.02.2018 um 08:25 schrieb Andrey Grodzovsky:
Quoted 60 lines
Found time to do some debugging and found error in assigning of initial VA hole size, attached patch makes this issue go away, otherwise
amdgpu_vamgr_find_vawould always fail.Thanks,
Andrey
Quoted 37 lines · Andrey Grodzovsky
Hi David, I have an issue on Vega 10 where sudo xinit fails with
[ 5801.227] Failed to allocate front buffer memory [ 5801.227] (EE) AMDGPU(0):
amdgpu_setup_kernel_memfailed [ 5801.227] (EE)
Fatal server error:
[ 5801.227] (EE) AddScreen/ScreenInit failed for driver 0 [ 5801.227] (EE)
[ 5801.227] (EE)Also in MESA code
si_create_context->si_common_context_init->pipe_buffer_createreturns NULL.Ellsmire works fine, on Vega 10 reverting this patch makes it work.
I am during my test system upgrade right now with some more issues after this one, so I can spend time on debugging this once my system is in good shape, unless you have an answer to this problem right away.
Thanks,
Andrey
Quoted 15 lines · Michel Dänzer
Quoted 9 lines · Chunming Zhou
Quoted 4 lines · Chunming Zhou
Quoted 2 lines · Michel Dänzer
this change completely broke radeonsi due to memory management errors (see valgrind output for glxgears below), so I had to revert it.
ok, I will look into what happens. Sorry for broken.
The patch lost a "goto out" in
free_vawhen applying patch from hybrid to opensource.
The attached fixes that, I tested successfully in my local side. please review or test, if no problem, I will submit it again.Please add:
v2: Add missing "goto out"
Tested-by Michel Dänzer <[email protected]>Quoted 8 lines
Quoted 3 lines
to the commit log before pushing.
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx