Re: [Mesa-dev] [PATCH 1/9] util: Add a virtual memory allocator

2018-05-02 Thread Marek Olšák
Hi Jason, The radeon kernel driver only allows 4GB or 8GB of virtual address space, so we are talking about 33 usable bits. The radeon winsys also has to support 32-bit allocations where the high bits are 0, and it uses a separate allocator if the address space size is 8GB, or not if it's just 4GB

Re: [Mesa-dev] [PATCH 1/9] util: Add a virtual memory allocator

2018-05-02 Thread Jason Ekstrand
Marek & Nicolai, FYI, I am NOT trying to NIH anything here. My hope was that eventually, the radeon winsys code and the Intel drivers should share an allocator. I considered starting by pulling the one out of the radeon winsys code and modifying it but there were a couple of issues (mentioned be

[Mesa-dev] [PATCH 1/9] util: Add a virtual memory allocator

2018-05-02 Thread Scott D Phillips
From: Jason Ekstrand This is simple linear-walk first-fit allocator roughly based on the allocator in the radeon winsys code. This allocator has two primary functional differences: 1) It cleanly returns 0 on allocation failure 2) It allocates addresses top-down instead of bottom-up. The sec