x86, AMD IOMMU: add pre-allocation of protection domains
x86, AMD IOMMU: add pre-allocation of protection domains

This patch adds a function to pre-allocate protection domains. So we don't have
to allocate it on the first request for a device (which can happen in atomic
mode).

Signed-off-by: Joerg Roedel <ebd221a096cbc71dd9e1991db28795933c85f380@amd.com>
Cc: d4d3187dbcba3fb2e2e25a4ce499c8e441b6817d@lists.linux-foundation.org
Cc: d5987f51b7b436a73cf58d68217e3549546a1888@amd.com
Cc: a8028979c9a5468bd4f8500f0d764a298219188f@amd.com
Cc: 22a70fd9773e4de05b12c05075e9bcd605577f4d@amd.com
Cc: 4688a6871ff025801033b3c4b039d55a29f8f937@8bytes.org
Signed-off-by: Ingo Molnar <9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@elte.hu>

KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs