Re: ttm usage inconsistency

2024-02-26 Thread Christian König
Oh, I though we have fixed all of those. Basic idea is that TTM always only works with bytes or rather arbitrary units in the resource backend instead of pages. Background is that we have resources like GDS, GWS and OA which are allocated in units of 4 bytes (GDS) or arbitrary hardware engine

ttm usage inconsistency

2024-02-25 Thread Dave Airlie
This is probably something I knew about and forgot, but I'll ask if anyone has considered cleaning it up (or maybe I should fix nouveau). nouveau sets up the resource manager using vram_size >> PAGE_SHIFT as the bounds, but the bo sizes are in bytes, hence usage ends up being accounted in bytes, s