[PATCH 01/11] drm/amdgpu: try allocating VRAM as power of two

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

 



Am 11.09.2018 um 09:37 schrieb Michel Dänzer:
> On 2018-09-11 8:49 a.m., Christian König wrote:
>> But another question: Why do you want to clear VRAM on allocation? We
>> perfectly support allocating VRAM without clearing it.
> Which is a problem of its own, as it can leak information from one
> process to another.

How about adding a AMDGPU_GEM_CREATE_VRAM_SECRED flag which triggers 
clearing VRAM when the BO is freed?

> Anyway, not clearing when userspace sets AMDGPU_GEM_CREATE_VRAM_CLEARED
> would break the userspace ABI, so that's no go.
Yeah, exactly my point.

What Felix seems to try is to avoid clearing VRAM when the allocated 
memory came from the same process.

But that isn't the intention of the AMDGPU_GEM_CREATE_VRAM_CLEARED flag.

Regards,
Christian.


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

  Powered by Linux