[PATCH] amdkfd: use sizeof(long) granularity for the pasid bitmask

2014-12-04 Thread Oded Gabbay
On 12/03/2014 04:26 PM, Sasha Levin wrote: > All the bit operations (such as find_first_zero_bit()) read sizeof(long) bytes > at a time. If we allocated less than sizeof(long) bytes for the bitmask we > would be accessing invalid memory when working with the bitmask. > > Change the allocator to a

[PATCH] amdkfd: use sizeof(long) granularity for the pasid bitmask

2014-12-03 Thread Sasha Levin
All the bit operations (such as find_first_zero_bit()) read sizeof(long) bytes at a time. If we allocated less than sizeof(long) bytes for the bitmask we would be accessing invalid memory when working with the bitmask. Change the allocator to allocate sizeof(long) multiples for the bitmask. Signe