diff options
author | Toshi Kani <[email protected]> | 2015-09-17 12:24:21 -0600 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2015-09-22 21:27:33 +0200 |
commit | daf3e35c5888e8bd6a2f5ed15ed392b2df362ecf (patch) | |
tree | 25cd9853a171e0691de368b90336b8b8d29e47b7 /drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | |
parent | 34437e67a6727885bdf6cbfd8441b1ac43a1ee65 (diff) |
x86/mm: Fix gup_huge_p?d() to handle large PAT bit
gup_huge_pud() and gup_huge_pmd() cast *pud and *pmd to *pte,
and use pte_xxx() interfaces to obtain the flags and PFN.
However, the pte_xxx() interface does not handle the large
PAT bit properly for PUD/PMD.
Fix gup_huge_pud() and gup_huge_pmd() to use pud_xxx() and
pmd_xxx() interfaces according to their type.
Signed-off-by: Toshi Kani <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Juergen Gross <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Konrad Wilk <[email protected]>
Cc: Robert Elliot <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c')
0 files changed, 0 insertions, 0 deletions