[PATCH] drm: increase drm mmap_range size to 1TB

Thomas Zimmermann tzimmermann at suse.de
Thu Apr 18 07:29:39 UTC 2019


Hi

Am 18.04.19 um 00:16 schrieb Kuehling, Felix:
> Adding dri-devel
> 
> On 2019-04-17 6:15 p.m., Yang, Philip wrote:
>> After patch "drm: Use the same mmap-range offset and size for GEM and
>> TTM", application failed to create bo of system memory because drm
>> mmap_range size decrease to 64GB from original 1TB. This is not big
>> enough for applications. Increase the drm mmap_range size to 1TB.

That change in size was accidental. Thanks for restoring the original
value. The fix will affect GEM as well. If that is not a problem then

Reviewed-by: Thomas Zimmermann <tzimmermann at suse.de>

Best regards
Thomas

>> Change-Id: Id482af261f56f3289e8873f5985078da599a0998
>> Signed-off-by: Philip Yang <Philip.Yang at amd.com>
>> ---
>>   include/drm/drm_vma_manager.h | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/include/drm/drm_vma_manager.h b/include/drm/drm_vma_manager.h
>> index f4f8ff1cdeec..76ac5e97a559 100644
>> --- a/include/drm/drm_vma_manager.h
>> +++ b/include/drm/drm_vma_manager.h
>> @@ -35,7 +35,7 @@
>>    */
>>   #if BITS_PER_LONG == 64
>>   #define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFFUL >> PAGE_SHIFT) + 1)
>> -#define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFFUL >> PAGE_SHIFT) * 16)
>> +#define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFFUL >> PAGE_SHIFT) * 256)
>>   #else
>>   #define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFUL >> PAGE_SHIFT) + 1)
>>   #define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFUL >> PAGE_SHIFT) * 16)
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Linux GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20190418/092919b1/attachment.sig>


More information about the amd-gfx mailing list