Hi Lucas,
we tested your patch on PHYTEC i.MX6Q phyCORE with 1GiB and 2GiB RAM variants.
I can happily report that the previous issues with "command buffer outside valid memory window" are gone when using kernel's cmdline parameter cma=256M for example!
If you want you can add:
Tested-by: Primoz Fiser primoz.fiser@norik.com
Otherwise, thank you for prompt response and implemented fix.
BR, Primoz