Just to clarify about the `retained` flag: if userspace does a madvise(WILLNEED) and we find out that retained=0, what's supposed to happen?
Should userspace evict the BO from its local cache and allocate one fresh?
Yes. Just like msm/freedreno.
Got it. In that case, the series has my A-b :)