tlb_nohash.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. /*
  2. * This file contains the routines for TLB flushing.
  3. * On machines where the MMU does not use a hash table to store virtual to
  4. * physical translations (ie, SW loaded TLBs or Book3E compilant processors,
  5. * this does -not- include 603 however which shares the implementation with
  6. * hash based processors)
  7. *
  8. * -- BenH
  9. *
  10. * Copyright 2008,2009 Ben Herrenschmidt <benh@kernel.crashing.org>
  11. * IBM Corp.
  12. *
  13. * Derived from arch/ppc/mm/init.c:
  14. * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
  15. *
  16. * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au)
  17. * and Cort Dougan (PReP) (cort@cs.nmt.edu)
  18. * Copyright (C) 1996 Paul Mackerras
  19. *
  20. * Derived from "arch/i386/mm/init.c"
  21. * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
  22. *
  23. * This program is free software; you can redistribute it and/or
  24. * modify it under the terms of the GNU General Public License
  25. * as published by the Free Software Foundation; either version
  26. * 2 of the License, or (at your option) any later version.
  27. *
  28. */
  29. #include <linux/kernel.h>
  30. #include <linux/export.h>
  31. #include <linux/mm.h>
  32. #include <linux/init.h>
  33. #include <linux/highmem.h>
  34. #include <linux/pagemap.h>
  35. #include <linux/preempt.h>
  36. #include <linux/spinlock.h>
  37. #include <linux/memblock.h>
  38. #include <linux/of_fdt.h>
  39. #include <asm/tlbflush.h>
  40. #include <asm/tlb.h>
  41. #include <asm/code-patching.h>
  42. #include "mmu_decl.h"
  43. #ifdef CONFIG_PPC_BOOK3E
  44. struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = {
  45. [MMU_PAGE_4K] = {
  46. .shift = 12,
  47. .ind = 20,
  48. .enc = BOOK3E_PAGESZ_4K,
  49. },
  50. [MMU_PAGE_16K] = {
  51. .shift = 14,
  52. .enc = BOOK3E_PAGESZ_16K,
  53. },
  54. [MMU_PAGE_64K] = {
  55. .shift = 16,
  56. .ind = 28,
  57. .enc = BOOK3E_PAGESZ_64K,
  58. },
  59. [MMU_PAGE_1M] = {
  60. .shift = 20,
  61. .enc = BOOK3E_PAGESZ_1M,
  62. },
  63. [MMU_PAGE_16M] = {
  64. .shift = 24,
  65. .ind = 36,
  66. .enc = BOOK3E_PAGESZ_16M,
  67. },
  68. [MMU_PAGE_256M] = {
  69. .shift = 28,
  70. .enc = BOOK3E_PAGESZ_256M,
  71. },
  72. [MMU_PAGE_1G] = {
  73. .shift = 30,
  74. .enc = BOOK3E_PAGESZ_1GB,
  75. },
  76. };
  77. static inline int mmu_get_tsize(int psize)
  78. {
  79. return mmu_psize_defs[psize].enc;
  80. }
  81. #else
  82. static inline int mmu_get_tsize(int psize)
  83. {
  84. /* This isn't used on !Book3E for now */
  85. return 0;
  86. }
  87. #endif
  88. /* The variables below are currently only used on 64-bit Book3E
  89. * though this will probably be made common with other nohash
  90. * implementations at some point
  91. */
  92. #ifdef CONFIG_PPC64
  93. int mmu_linear_psize; /* Page size used for the linear mapping */
  94. int mmu_pte_psize; /* Page size used for PTE pages */
  95. int mmu_vmemmap_psize; /* Page size used for the virtual mem map */
  96. int book3e_htw_enabled; /* Is HW tablewalk enabled ? */
  97. unsigned long linear_map_top; /* Top of linear mapping */
  98. #endif /* CONFIG_PPC64 */
  99. #ifdef CONFIG_PPC_FSL_BOOK3E
  100. /* next_tlbcam_idx is used to round-robin tlbcam entry assignment */
  101. DEFINE_PER_CPU(int, next_tlbcam_idx);
  102. EXPORT_PER_CPU_SYMBOL(next_tlbcam_idx);
  103. #endif
  104. /*
  105. * Base TLB flushing operations:
  106. *
  107. * - flush_tlb_mm(mm) flushes the specified mm context TLB's
  108. * - flush_tlb_page(vma, vmaddr) flushes one page
  109. * - flush_tlb_range(vma, start, end) flushes a range of pages
  110. * - flush_tlb_kernel_range(start, end) flushes kernel pages
  111. *
  112. * - local_* variants of page and mm only apply to the current
  113. * processor
  114. */
  115. /*
  116. * These are the base non-SMP variants of page and mm flushing
  117. */
  118. void local_flush_tlb_mm(struct mm_struct *mm)
  119. {
  120. unsigned int pid;
  121. preempt_disable();
  122. pid = mm->context.id;
  123. if (pid != MMU_NO_CONTEXT)
  124. _tlbil_pid(pid);
  125. preempt_enable();
  126. }
  127. EXPORT_SYMBOL(local_flush_tlb_mm);
  128. void __local_flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
  129. int tsize, int ind)
  130. {
  131. unsigned int pid;
  132. preempt_disable();
  133. pid = mm ? mm->context.id : 0;
  134. if (pid != MMU_NO_CONTEXT)
  135. _tlbil_va(vmaddr, pid, tsize, ind);
  136. preempt_enable();
  137. }
  138. void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr)
  139. {
  140. __local_flush_tlb_page(vma ? vma->vm_mm : NULL, vmaddr,
  141. mmu_get_tsize(mmu_virtual_psize), 0);
  142. }
  143. EXPORT_SYMBOL(local_flush_tlb_page);
  144. /*
  145. * And here are the SMP non-local implementations
  146. */
  147. #ifdef CONFIG_SMP
  148. static DEFINE_RAW_SPINLOCK(tlbivax_lock);
  149. static int mm_is_core_local(struct mm_struct *mm)
  150. {
  151. return cpumask_subset(mm_cpumask(mm),
  152. topology_thread_cpumask(smp_processor_id()));
  153. }
  154. struct tlb_flush_param {
  155. unsigned long addr;
  156. unsigned int pid;
  157. unsigned int tsize;
  158. unsigned int ind;
  159. };
  160. static void do_flush_tlb_mm_ipi(void *param)
  161. {
  162. struct tlb_flush_param *p = param;
  163. _tlbil_pid(p ? p->pid : 0);
  164. }
  165. static void do_flush_tlb_page_ipi(void *param)
  166. {
  167. struct tlb_flush_param *p = param;
  168. _tlbil_va(p->addr, p->pid, p->tsize, p->ind);
  169. }
  170. /* Note on invalidations and PID:
  171. *
  172. * We snapshot the PID with preempt disabled. At this point, it can still
  173. * change either because:
  174. * - our context is being stolen (PID -> NO_CONTEXT) on another CPU
  175. * - we are invaliating some target that isn't currently running here
  176. * and is concurrently acquiring a new PID on another CPU
  177. * - some other CPU is re-acquiring a lost PID for this mm
  178. * etc...
  179. *
  180. * However, this shouldn't be a problem as we only guarantee
  181. * invalidation of TLB entries present prior to this call, so we
  182. * don't care about the PID changing, and invalidating a stale PID
  183. * is generally harmless.
  184. */
  185. void flush_tlb_mm(struct mm_struct *mm)
  186. {
  187. unsigned int pid;
  188. preempt_disable();
  189. pid = mm->context.id;
  190. if (unlikely(pid == MMU_NO_CONTEXT))
  191. goto no_context;
  192. if (!mm_is_core_local(mm)) {
  193. struct tlb_flush_param p = { .pid = pid };
  194. /* Ignores smp_processor_id() even if set. */
  195. smp_call_function_many(mm_cpumask(mm),
  196. do_flush_tlb_mm_ipi, &p, 1);
  197. }
  198. _tlbil_pid(pid);
  199. no_context:
  200. preempt_enable();
  201. }
  202. EXPORT_SYMBOL(flush_tlb_mm);
  203. void __flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
  204. int tsize, int ind)
  205. {
  206. struct cpumask *cpu_mask;
  207. unsigned int pid;
  208. preempt_disable();
  209. pid = mm ? mm->context.id : 0;
  210. if (unlikely(pid == MMU_NO_CONTEXT))
  211. goto bail;
  212. cpu_mask = mm_cpumask(mm);
  213. if (!mm_is_core_local(mm)) {
  214. /* If broadcast tlbivax is supported, use it */
  215. if (mmu_has_feature(MMU_FTR_USE_TLBIVAX_BCAST)) {
  216. int lock = mmu_has_feature(MMU_FTR_LOCK_BCAST_INVAL);
  217. if (lock)
  218. raw_spin_lock(&tlbivax_lock);
  219. _tlbivax_bcast(vmaddr, pid, tsize, ind);
  220. if (lock)
  221. raw_spin_unlock(&tlbivax_lock);
  222. goto bail;
  223. } else {
  224. struct tlb_flush_param p = {
  225. .pid = pid,
  226. .addr = vmaddr,
  227. .tsize = tsize,
  228. .ind = ind,
  229. };
  230. /* Ignores smp_processor_id() even if set in cpu_mask */
  231. smp_call_function_many(cpu_mask,
  232. do_flush_tlb_page_ipi, &p, 1);
  233. }
  234. }
  235. _tlbil_va(vmaddr, pid, tsize, ind);
  236. bail:
  237. preempt_enable();
  238. }
  239. void flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr)
  240. {
  241. __flush_tlb_page(vma ? vma->vm_mm : NULL, vmaddr,
  242. mmu_get_tsize(mmu_virtual_psize), 0);
  243. }
  244. EXPORT_SYMBOL(flush_tlb_page);
  245. #endif /* CONFIG_SMP */
  246. #ifdef CONFIG_PPC_47x
  247. void __init early_init_mmu_47x(void)
  248. {
  249. #ifdef CONFIG_SMP
  250. unsigned long root = of_get_flat_dt_root();
  251. if (of_get_flat_dt_prop(root, "cooperative-partition", NULL))
  252. mmu_clear_feature(MMU_FTR_USE_TLBIVAX_BCAST);
  253. #endif /* CONFIG_SMP */
  254. }
  255. #endif /* CONFIG_PPC_47x */
  256. /*
  257. * Flush kernel TLB entries in the given range
  258. */
  259. void flush_tlb_kernel_range(unsigned long start, unsigned long end)
  260. {
  261. #ifdef CONFIG_SMP
  262. preempt_disable();
  263. smp_call_function(do_flush_tlb_mm_ipi, NULL, 1);
  264. _tlbil_pid(0);
  265. preempt_enable();
  266. #else
  267. _tlbil_pid(0);
  268. #endif
  269. }
  270. EXPORT_SYMBOL(flush_tlb_kernel_range);
  271. /*
  272. * Currently, for range flushing, we just do a full mm flush. This should
  273. * be optimized based on a threshold on the size of the range, since
  274. * some implementation can stack multiple tlbivax before a tlbsync but
  275. * for now, we keep it that way
  276. */
  277. void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
  278. unsigned long end)
  279. {
  280. flush_tlb_mm(vma->vm_mm);
  281. }
  282. EXPORT_SYMBOL(flush_tlb_range);
  283. void tlb_flush(struct mmu_gather *tlb)
  284. {
  285. flush_tlb_mm(tlb->mm);
  286. }
  287. /*
  288. * Below are functions specific to the 64-bit variant of Book3E though that
  289. * may change in the future
  290. */
  291. #ifdef CONFIG_PPC64
  292. /*
  293. * Handling of virtual linear page tables or indirect TLB entries
  294. * flushing when PTE pages are freed
  295. */
  296. void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address)
  297. {
  298. int tsize = mmu_psize_defs[mmu_pte_psize].enc;
  299. if (book3e_htw_enabled) {
  300. unsigned long start = address & PMD_MASK;
  301. unsigned long end = address + PMD_SIZE;
  302. unsigned long size = 1UL << mmu_psize_defs[mmu_pte_psize].shift;
  303. /* This isn't the most optimal, ideally we would factor out the
  304. * while preempt & CPU mask mucking around, or even the IPI but
  305. * it will do for now
  306. */
  307. while (start < end) {
  308. __flush_tlb_page(tlb->mm, start, tsize, 1);
  309. start += size;
  310. }
  311. } else {
  312. unsigned long rmask = 0xf000000000000000ul;
  313. unsigned long rid = (address & rmask) | 0x1000000000000000ul;
  314. unsigned long vpte = address & ~rmask;
  315. #ifdef CONFIG_PPC_64K_PAGES
  316. vpte = (vpte >> (PAGE_SHIFT - 4)) & ~0xfffful;
  317. #else
  318. vpte = (vpte >> (PAGE_SHIFT - 3)) & ~0xffful;
  319. #endif
  320. vpte |= rid;
  321. __flush_tlb_page(tlb->mm, vpte, tsize, 0);
  322. }
  323. }
  324. static void setup_page_sizes(void)
  325. {
  326. unsigned int tlb0cfg;
  327. unsigned int tlb0ps;
  328. unsigned int eptcfg;
  329. int i, psize;
  330. #ifdef CONFIG_PPC_FSL_BOOK3E
  331. unsigned int mmucfg = mfspr(SPRN_MMUCFG);
  332. if (((mmucfg & MMUCFG_MAVN) == MMUCFG_MAVN_V1) &&
  333. (mmu_has_feature(MMU_FTR_TYPE_FSL_E))) {
  334. unsigned int tlb1cfg = mfspr(SPRN_TLB1CFG);
  335. unsigned int min_pg, max_pg;
  336. min_pg = (tlb1cfg & TLBnCFG_MINSIZE) >> TLBnCFG_MINSIZE_SHIFT;
  337. max_pg = (tlb1cfg & TLBnCFG_MAXSIZE) >> TLBnCFG_MAXSIZE_SHIFT;
  338. for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) {
  339. struct mmu_psize_def *def;
  340. unsigned int shift;
  341. def = &mmu_psize_defs[psize];
  342. shift = def->shift;
  343. if (shift == 0)
  344. continue;
  345. /* adjust to be in terms of 4^shift Kb */
  346. shift = (shift - 10) >> 1;
  347. if ((shift >= min_pg) && (shift <= max_pg))
  348. def->flags |= MMU_PAGE_SIZE_DIRECT;
  349. }
  350. goto no_indirect;
  351. }
  352. #endif
  353. tlb0cfg = mfspr(SPRN_TLB0CFG);
  354. tlb0ps = mfspr(SPRN_TLB0PS);
  355. eptcfg = mfspr(SPRN_EPTCFG);
  356. /* Look for supported direct sizes */
  357. for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) {
  358. struct mmu_psize_def *def = &mmu_psize_defs[psize];
  359. if (tlb0ps & (1U << (def->shift - 10)))
  360. def->flags |= MMU_PAGE_SIZE_DIRECT;
  361. }
  362. /* Indirect page sizes supported ? */
  363. if ((tlb0cfg & TLBnCFG_IND) == 0)
  364. goto no_indirect;
  365. /* Now, we only deal with one IND page size for each
  366. * direct size. Hopefully all implementations today are
  367. * unambiguous, but we might want to be careful in the
  368. * future.
  369. */
  370. for (i = 0; i < 3; i++) {
  371. unsigned int ps, sps;
  372. sps = eptcfg & 0x1f;
  373. eptcfg >>= 5;
  374. ps = eptcfg & 0x1f;
  375. eptcfg >>= 5;
  376. if (!ps || !sps)
  377. continue;
  378. for (psize = 0; psize < MMU_PAGE_COUNT; psize++) {
  379. struct mmu_psize_def *def = &mmu_psize_defs[psize];
  380. if (ps == (def->shift - 10))
  381. def->flags |= MMU_PAGE_SIZE_INDIRECT;
  382. if (sps == (def->shift - 10))
  383. def->ind = ps + 10;
  384. }
  385. }
  386. no_indirect:
  387. /* Cleanup array and print summary */
  388. pr_info("MMU: Supported page sizes\n");
  389. for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) {
  390. struct mmu_psize_def *def = &mmu_psize_defs[psize];
  391. const char *__page_type_names[] = {
  392. "unsupported",
  393. "direct",
  394. "indirect",
  395. "direct & indirect"
  396. };
  397. if (def->flags == 0) {
  398. def->shift = 0;
  399. continue;
  400. }
  401. pr_info(" %8ld KB as %s\n", 1ul << (def->shift - 10),
  402. __page_type_names[def->flags & 0x3]);
  403. }
  404. }
  405. static void __patch_exception(int exc, unsigned long addr)
  406. {
  407. extern unsigned int interrupt_base_book3e;
  408. unsigned int *ibase = &interrupt_base_book3e;
  409. /* Our exceptions vectors start with a NOP and -then- a branch
  410. * to deal with single stepping from userspace which stops on
  411. * the second instruction. Thus we need to patch the second
  412. * instruction of the exception, not the first one
  413. */
  414. patch_branch(ibase + (exc / 4) + 1, addr, 0);
  415. }
  416. #define patch_exception(exc, name) do { \
  417. extern unsigned int name; \
  418. __patch_exception((exc), (unsigned long)&name); \
  419. } while (0)
  420. static void setup_mmu_htw(void)
  421. {
  422. /* Check if HW tablewalk is present, and if yes, enable it by:
  423. *
  424. * - patching the TLB miss handlers to branch to the
  425. * one dedicates to it
  426. *
  427. * - setting the global book3e_htw_enabled
  428. */
  429. unsigned int tlb0cfg = mfspr(SPRN_TLB0CFG);
  430. if ((tlb0cfg & TLBnCFG_IND) &&
  431. (tlb0cfg & TLBnCFG_PT)) {
  432. patch_exception(0x1c0, exc_data_tlb_miss_htw_book3e);
  433. patch_exception(0x1e0, exc_instruction_tlb_miss_htw_book3e);
  434. book3e_htw_enabled = 1;
  435. }
  436. pr_info("MMU: Book3E HW tablewalk %s\n",
  437. book3e_htw_enabled ? "enabled" : "not supported");
  438. }
  439. /*
  440. * Early initialization of the MMU TLB code
  441. */
  442. static void __early_init_mmu(int boot_cpu)
  443. {
  444. unsigned int mas4;
  445. /* XXX This will have to be decided at runtime, but right
  446. * now our boot and TLB miss code hard wires it. Ideally
  447. * we should find out a suitable page size and patch the
  448. * TLB miss code (either that or use the PACA to store
  449. * the value we want)
  450. */
  451. mmu_linear_psize = MMU_PAGE_1G;
  452. /* XXX This should be decided at runtime based on supported
  453. * page sizes in the TLB, but for now let's assume 16M is
  454. * always there and a good fit (which it probably is)
  455. */
  456. mmu_vmemmap_psize = MMU_PAGE_16M;
  457. /* XXX This code only checks for TLB 0 capabilities and doesn't
  458. * check what page size combos are supported by the HW. It
  459. * also doesn't handle the case where a separate array holds
  460. * the IND entries from the array loaded by the PT.
  461. */
  462. if (boot_cpu) {
  463. /* Look for supported page sizes */
  464. setup_page_sizes();
  465. /* Look for HW tablewalk support */
  466. setup_mmu_htw();
  467. }
  468. /* Set MAS4 based on page table setting */
  469. mas4 = 0x4 << MAS4_WIMGED_SHIFT;
  470. if (book3e_htw_enabled) {
  471. mas4 |= mas4 | MAS4_INDD;
  472. #ifdef CONFIG_PPC_64K_PAGES
  473. mas4 |= BOOK3E_PAGESZ_256M << MAS4_TSIZED_SHIFT;
  474. mmu_pte_psize = MMU_PAGE_256M;
  475. #else
  476. mas4 |= BOOK3E_PAGESZ_1M << MAS4_TSIZED_SHIFT;
  477. mmu_pte_psize = MMU_PAGE_1M;
  478. #endif
  479. } else {
  480. #ifdef CONFIG_PPC_64K_PAGES
  481. mas4 |= BOOK3E_PAGESZ_64K << MAS4_TSIZED_SHIFT;
  482. #else
  483. mas4 |= BOOK3E_PAGESZ_4K << MAS4_TSIZED_SHIFT;
  484. #endif
  485. mmu_pte_psize = mmu_virtual_psize;
  486. }
  487. mtspr(SPRN_MAS4, mas4);
  488. /* Set the global containing the top of the linear mapping
  489. * for use by the TLB miss code
  490. */
  491. linear_map_top = memblock_end_of_DRAM();
  492. #ifdef CONFIG_PPC_FSL_BOOK3E
  493. if (mmu_has_feature(MMU_FTR_TYPE_FSL_E)) {
  494. unsigned int num_cams;
  495. /* use a quarter of the TLBCAM for bolted linear map */
  496. num_cams = (mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY) / 4;
  497. linear_map_top = map_mem_in_cams(linear_map_top, num_cams);
  498. /* limit memory so we dont have linear faults */
  499. memblock_enforce_memory_limit(linear_map_top);
  500. memblock_analyze();
  501. patch_exception(0x1c0, exc_data_tlb_miss_bolted_book3e);
  502. patch_exception(0x1e0, exc_instruction_tlb_miss_bolted_book3e);
  503. }
  504. #endif
  505. /* A sync won't hurt us after mucking around with
  506. * the MMU configuration
  507. */
  508. mb();
  509. memblock_set_current_limit(linear_map_top);
  510. }
  511. void __init early_init_mmu(void)
  512. {
  513. __early_init_mmu(1);
  514. }
  515. void __cpuinit early_init_mmu_secondary(void)
  516. {
  517. __early_init_mmu(0);
  518. }
  519. void setup_initial_memory_limit(phys_addr_t first_memblock_base,
  520. phys_addr_t first_memblock_size)
  521. {
  522. /* On Embedded 64-bit, we adjust the RMA size to match
  523. * the bolted TLB entry. We know for now that only 1G
  524. * entries are supported though that may eventually
  525. * change. We crop it to the size of the first MEMBLOCK to
  526. * avoid going over total available memory just in case...
  527. */
  528. ppc64_rma_size = min_t(u64, first_memblock_size, 0x40000000);
  529. /* Finally limit subsequent allocations */
  530. memblock_set_current_limit(first_memblock_base + ppc64_rma_size);
  531. }
  532. #else /* ! CONFIG_PPC64 */
  533. void __init early_init_mmu(void)
  534. {
  535. #ifdef CONFIG_PPC_47x
  536. early_init_mmu_47x();
  537. #endif
  538. }
  539. #endif /* CONFIG_PPC64 */