Re: [PATCH] prime_self_import: Assure no pending requests before object counting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 01, 2013 at 12:53:42PM +0000, oscar.mateo@xxxxxxxxx wrote:
> From: Oscar Mateo <oscar.mateo@xxxxxxxxx>
> 
> We don't want a previously used object to be freed in the middle of a
> before/after object counting operation (or we would get a "-1 objects
> leaked" message). We have seen this happening, e.g., when a context
> from a previous run dies, but its backing object is alive waiting for
> a retire_work to kick in.
> 
> Signed-off-by: Oscar Mateo <oscar.mateo@xxxxxxxxx>
> Cc: Ben Widawsky <ben@xxxxxxxxxxxx>

Since as far as we know this can't happen until the 'context per fd'
code lands, I think we may as well hold off.

Instead how about 3 patches:

1. Introduce a library version of drop caches in igt. Move existing
callers.
2. Update prime_self_import.c
3. Update gem_flink_close

Meanwhile, I will merge this patch to the PPGTT IGT branch, so QA will
use it.

What do you think? If you don't want to do that, then simply merging
this afterwards is also fine with me.

[snip]

-- 
Ben Widawsky, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux