I've got patches pending to replace all that code withdma_direct_alloc, which will do the right thing. They weresubmitted for 4.16, and I will resend them after -rc1.