Change minimum alignment to 4k rather than 64k in some cases
For example PTEs should really be 4k aligned rather 64k aligned. This leads to wasted memory.
cat /sys/kernel/debug/dri/0/vram0_mm
...
0x0000000000002df0-0x0000000000002df1: 1: used
0x0000000000002df1-0x0000000000002e00: 15: free
0x0000000000002e00-0x0000000000002e01: 1: used
0x0000000000002e01-0x0000000000002e10: 15: free
0x0000000000002e10-0x0000000000002e11: 1: used
0x0000000000002e11-0x0000000000002e50: 63: free
0x0000000000002e50-0x0000000000002e51: 1: used
0x0000000000002e51-0x0000000000002e60: 15: free
0x0000000000002e60-0x0000000000002e61: 1: used
0x0000000000002e61-0x0000000000002e70: 15: free
0x0000000000002e70-0x0000000000002e71: 1: used
0x0000000000002e71-0x0000000000002e80: 15: free
0x0000000000002e80-0x0000000000002e81: 1: used
0x0000000000002e81-0x0000000000002e90: 15: free
0x0000000000002e90-0x0000000000002e91: 1: used
0x0000000000002e91-0x0000000000002ea0: 15: free
0x0000000000002ea0-0x0000000000002ea1: 1: used
0x0000000000002ea1-0x0000000000002eb0: 15: free
0x0000000000002eb0-0x0000000000002eb1: 1: used
0x0000000000002eb1-0x0000000000002ec0: 15: free
0x0000000000002ec0-0x0000000000002ec1: 1: used
0x0000000000002ec1-0x0000000000002f00: 63: free
0x0000000000002f00-0x0000000000002f01: 1: used
0x0000000000002f01-0x0000000000002f10: 15: free
0x0000000000002f10-0x0000000000002f11: 1: used
0x0000000000002f11-0x0000000000002f20: 15: free
0x0000000000002f20-0x0000000000002f21: 1: used
0x0000000000002f21-0x0000000000002f30: 15: free
0x0000000000002f30-0x0000000000002f31: 1: used
0x0000000000002f31-0x0000000000002f40: 15: free
0x0000000000002f40-0x0000000000002f41: 1: used
0x0000000000002f41-0x0000000000002f60: 31: free
0x0000000000002f60-0x0000000000002f61: 1: used
0x0000000000002f61-0x0000000000002f70: 15: free
0x0000000000002f70-0x0000000000002f71: 1: used
0x0000000000002f71-0x0000000000002f80: 15: free
0x0000000000002f80-0x0000000000002f81: 1: used
0x0000000000002f81-0x0000000000002f90: 15: free
0x0000000000002f90-0x0000000000002f91: 1: used
0x0000000000002f91-0x0000000000002fa0: 15: free
0x0000000000002fa0-0x0000000000002fa1: 1: used
0x0000000000002fa1-0x0000000000002fb0: 15: free
0x0000000000002fb0-0x0000000000002fb1: 1: used
0x0000000000002fb1-0x0000000000002fe0: 47: free
0x0000000000002fe0-0x0000000000002fe1: 1: used
0x0000000000002fe1-0x0000000000002ff0: 15: free
0x0000000000002ff0-0x0000000000002ff1: 1: used
0x0000000000002ff1-0x0000000000003000: 15: free
0x0000000000003000-0x0000000000003001: 1: used
0x0000000000003001-0x0000000000003010: 15: free
0x0000000000003010-0x0000000000003011: 1: used
0x0000000000003011-0x0000000000003020: 15: free
0x0000000000003020-0x0000000000003021: 1: used
0x0000000000003021-0x0000000000003030: 15: free
0x0000000000003030-0x0000000000003031: 1: used
0x0000000000003031-0x0000000000003050: 31: free
0x0000000000003050-0x0000000000003051: 1: used
0x0000000000003051-0x0000000000003060: 15: free
0x0000000000003060-0x0000000000003061: 1: used
0x0000000000003061-0x0000000000003070: 15: free
0x0000000000003070-0x0000000000003071: 1: used
0x0000000000003071-0x0000000000003080: 15: free
0x0000000000003080-0x0000000000003081: 1: used
0x0000000000003081-0x0000000000003090: 15: free
0x0000000000003090-0x0000000000003091: 1: used
0x0000000000003091-0x00000000000030a0: 15: free
0x00000000000030a0-0x00000000000030a1: 1: used
0x00000000000030a1-0x00000000000030b0: 15: free
0x00000000000030b0-0x00000000000030b1: 1: used
0x00000000000030b1-0x00000000000030d0: 31: free
0x00000000000030d0-0x00000000000030d1: 1: used
0x00000000000030d1-0x00000000000030e0: 15: free
0x00000000000030e0-0x00000000000030e1: 1: used
0x00000000000030e1-0x00000000000030f0: 15: free
0x00000000000030f0-0x00000000000030f1: 1: used
0x00000000000030f1-0x0000000000003110: 31: free
0x0000000000003110-0x0000000000003111: 1: used
0x0000000000003111-0x0000000000003120: 15: free
0x0000000000003120-0x0000000000003121: 1: used
0x0000000000003121-0x0000000000003150: 47: free
0x0000000000003150-0x0000000000003151: 1: used
0x0000000000003151-0x0000000000003160: 15: free
0x0000000000003160-0x0000000000003161: 1: used
0x0000000000003161-0x0000000000003170: 15: free
0x0000000000003170-0x0000000000003171: 1: used
0x0000000000003171-0x0000000000003180: 15: free
0x0000000000003180-0x0000000000003181: 1: used
0x0000000000003181-0x0000000000003190: 15: free
0x0000000000003190-0x0000000000003191: 1: used
0x0000000000003191-0x00000000000031a0: 15: free
0x00000000000031a0-0x00000000000031a1: 1: used
0x00000000000031a1-0x00000000000031c0: 31: free
0x00000000000031c0-0x00000000000031c1: 1: used
0x00000000000031c1-0x00000000000031d0: 15: free
0x00000000000031d0-0x00000000000031d1: 1: used
0x00000000000031d1-0x00000000000031e0: 15: free
0x00000000000031e0-0x00000000000031e1: 1: used
0x00000000000031e1-0x00000000000031f0: 15: free
0x00000000000031f0-0x00000000000031f1: 1: used
0x00000000000031f1-0x0000000000003200: 15: free
0x0000000000003200-0x0000000000003201: 1: used
0x0000000000003201-0x0000000000003210: 15: free
0x0000000000003210-0x0000000000003211: 1: used
0x0000000000003211-0x0000000000003220: 15: free
0x0000000000003220-0x0000000000003221: 1: used
0x0000000000003221-0x0000000000003230: 15: free
0x0000000000003230-0x0000000000003231: 1: used
0x0000000000003231-0x0000000000003240: 15: free
0x0000000000003240-0x0000000000003241: 1: used
0x0000000000003241-0x0000000000003250: 15: free
0x0000000000003250-0x0000000000003251: 1: used
0x0000000000003251-0x0000000000003260: 15: free
0x0000000000003260-0x0000000000003261: 1: used
0x0000000000003261-0x00000000002fe000: 3124639: free
total: 3137536, used 11262 free 3126274
man size:3137536 pages
It should be as easy as changing a argument to ttm_bo_init_reserved.