[PATCH] drm/amdgpu: Use kvmalloc_array for allocating VRAM manager nodes array

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

 



On 2018-06-15 05:05 PM, Christian König wrote:
> Am 15.06.2018 um 16:27 schrieb Michel Dänzer:
>> From: Michel Dänzer <michel.daenzer at amd.com>
>>
>> It can be quite big, and there's no need for it to be physically
>> contiguous. This is less likely to fail under memory pressure (has
>> actually happened while running piglit).
> 
> Mhm, the last time I looked a drm_mm node had around 160 bytes, which
> means that you need to allocate more than 50MB of VRAM to fill up a 4K
> page.

I'm attaching the failure that prompted me to write this patch. It was
trying to allocate order 5, i.e. more than 16 pages / 64 KB.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kern.log
Type: text/x-log
Size: 11295 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20180615/2cbc7891/attachment.bin>


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

  Powered by Linux