* [PATCH] amdgpu: fix missing deinit on vamgr_32
@ 2015-08-31 14:36 Alex Deucher
2015-09-01 3:38 ` Zhou, Jammy
2015-09-01 7:15 ` Emil Velikov
0 siblings, 2 replies; 3+ messages in thread
From: Alex Deucher @ 2015-08-31 14:36 UTC (permalink / raw)
To: dri-devel; +Cc: Alex Deucher, monk.liu
From: "monk.liu" <monk.liu@amd.com>
Signed-off-by: monk.liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
amdgpu/amdgpu_device.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index 75b12e2..e5a923e 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -132,6 +132,8 @@ static void amdgpu_device_free_internal(amdgpu_device_handle dev)
{
amdgpu_vamgr_deinit(dev->vamgr);
free(dev->vamgr);
+ amdgpu_vamgr_deinit(dev->vamgr_32);
+ free(dev->vamgr_32);
util_hash_table_destroy(dev->bo_flink_names);
util_hash_table_destroy(dev->bo_handles);
pthread_mutex_destroy(&dev->bo_table_mutex);
--
1.8.3.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] amdgpu: fix missing deinit on vamgr_32
2015-08-31 14:36 [PATCH] amdgpu: fix missing deinit on vamgr_32 Alex Deucher
@ 2015-09-01 3:38 ` Zhou, Jammy
2015-09-01 7:15 ` Emil Velikov
1 sibling, 0 replies; 3+ messages in thread
From: Zhou, Jammy @ 2015-09-01 3:38 UTC (permalink / raw)
To: Alex Deucher, dri-devel; +Cc: Deucher, Alexander, Liu, Monk
It looks like it was missed when I rebased my original patches. Patch is Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Regards,
Jammy
-----Original Message-----
From: dri-devel [mailto:dri-devel-bounces@lists.freedesktop.org] On Behalf Of Alex Deucher
Sent: Monday, August 31, 2015 10:37 PM
To: dri-devel@lists.freedesktop.org
Cc: Deucher, Alexander; Liu, Monk
Subject: [PATCH] amdgpu: fix missing deinit on vamgr_32
From: "monk.liu" <monk.liu@amd.com>
Signed-off-by: monk.liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
amdgpu/amdgpu_device.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c index 75b12e2..e5a923e 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -132,6 +132,8 @@ static void amdgpu_device_free_internal(amdgpu_device_handle dev) {
amdgpu_vamgr_deinit(dev->vamgr);
free(dev->vamgr);
+ amdgpu_vamgr_deinit(dev->vamgr_32);
+ free(dev->vamgr_32);
util_hash_table_destroy(dev->bo_flink_names);
util_hash_table_destroy(dev->bo_handles);
pthread_mutex_destroy(&dev->bo_table_mutex);
--
1.8.3.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] amdgpu: fix missing deinit on vamgr_32
2015-08-31 14:36 [PATCH] amdgpu: fix missing deinit on vamgr_32 Alex Deucher
2015-09-01 3:38 ` Zhou, Jammy
@ 2015-09-01 7:15 ` Emil Velikov
1 sibling, 0 replies; 3+ messages in thread
From: Emil Velikov @ 2015-09-01 7:15 UTC (permalink / raw)
To: Alex Deucher; +Cc: Alex Deucher, monk.liu, ML dri-devel
Hi Alex,
Still reading through/learning about amdgpu, so a couple of (not too
silly) questions :-)
On 31 August 2015 at 15:36, Alex Deucher <alexdeucher@gmail.com> wrote:
> From: "monk.liu" <monk.liu@amd.com>
>
> Signed-off-by: monk.liu <monk.liu@amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> amdgpu/amdgpu_device.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
> index 75b12e2..e5a923e 100644
> --- a/amdgpu/amdgpu_device.c
> +++ b/amdgpu/amdgpu_device.c
> @@ -132,6 +132,8 @@ static void amdgpu_device_free_internal(amdgpu_device_handle dev)
> {
Do we want to keep fd_mutex held as/just before we get here ?
> amdgpu_vamgr_deinit(dev->vamgr);
> free(dev->vamgr);
> + amdgpu_vamgr_deinit(dev->vamgr_32);
> + free(dev->vamgr_32);
Based off amdgpu_device_initialize(), shouldn't one also keep track of
the 'start' va and and "free" it ?
> util_hash_table_destroy(dev->bo_flink_names);
> util_hash_table_destroy(dev->bo_handles);
Mildly related suggestion for a follow up patch -
amdgpu_device_initialize() seems to be missing the these two.
Thanks
Emil
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-01 7:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-31 14:36 [PATCH] amdgpu: fix missing deinit on vamgr_32 Alex Deucher
2015-09-01 3:38 ` Zhou, Jammy
2015-09-01 7:15 ` Emil Velikov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.