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

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

 



On 2018-09-11 10:20 a.m., Christian König wrote:
> Am 11.09.2018 um 09:55 schrieb Michel Dänzer:
>> On 2018-09-11 9:46 a.m., Christian König wrote:
>>> 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?
>> Doesn't sound like much better API than AMDGPU_GEM_CREATE_VRAM_CLEARED
>> to me. Why would any process be okay with leaking its BO contents to
>> other processes?
> 
> Well the content of most BOs is uninteresting to other processes, e.g.
> textures.

Textures can hold application window contents, which can be sensitive.
Not clearing BOs can result in such contents showing up in unexpected
places.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


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

  Powered by Linux