This refactors our PTE encoding functions, splitting them out into per-generation functions. Patch 2 fixes the page table entries for the latest revision of Bay Trail, which is necessary to avoid GPU hangs. I've tested these patches on Bay Trail and Haswell. Not SNB/IVB.