lpar.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. /*
  2. * pSeries_lpar.c
  3. * Copyright (C) 2001 Todd Inglett, IBM Corporation
  4. *
  5. * pSeries LPAR support.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. #undef DEBUG_LOW
  22. #include <linux/kernel.h>
  23. #include <linux/dma-mapping.h>
  24. #include <linux/console.h>
  25. #include <asm/processor.h>
  26. #include <asm/mmu.h>
  27. #include <asm/page.h>
  28. #include <asm/pgtable.h>
  29. #include <asm/machdep.h>
  30. #include <asm/abs_addr.h>
  31. #include <asm/mmu_context.h>
  32. #include <asm/iommu.h>
  33. #include <asm/tlbflush.h>
  34. #include <asm/tlb.h>
  35. #include <asm/prom.h>
  36. #include <asm/cputable.h>
  37. #include <asm/udbg.h>
  38. #include <asm/smp.h>
  39. #include "plpar_wrappers.h"
  40. #include "pseries.h"
  41. #ifdef DEBUG_LOW
  42. #define DBG_LOW(fmt...) do { udbg_printf(fmt); } while(0)
  43. #else
  44. #define DBG_LOW(fmt...) do { } while(0)
  45. #endif
  46. /* in hvCall.S */
  47. EXPORT_SYMBOL(plpar_hcall);
  48. EXPORT_SYMBOL(plpar_hcall9);
  49. EXPORT_SYMBOL(plpar_hcall_norets);
  50. extern void pSeries_find_serial_port(void);
  51. int vtermno; /* virtual terminal# for udbg */
  52. #define __ALIGNED__ __attribute__((__aligned__(sizeof(long))))
  53. static void udbg_hvsi_putc(char c)
  54. {
  55. /* packet's seqno isn't used anyways */
  56. uint8_t packet[] __ALIGNED__ = { 0xff, 5, 0, 0, c };
  57. int rc;
  58. if (c == '\n')
  59. udbg_hvsi_putc('\r');
  60. do {
  61. rc = plpar_put_term_char(vtermno, sizeof(packet), packet);
  62. } while (rc == H_BUSY);
  63. }
  64. static long hvsi_udbg_buf_len;
  65. static uint8_t hvsi_udbg_buf[256];
  66. static int udbg_hvsi_getc_poll(void)
  67. {
  68. unsigned char ch;
  69. int rc, i;
  70. if (hvsi_udbg_buf_len == 0) {
  71. rc = plpar_get_term_char(vtermno, &hvsi_udbg_buf_len, hvsi_udbg_buf);
  72. if (rc != H_SUCCESS || hvsi_udbg_buf[0] != 0xff) {
  73. /* bad read or non-data packet */
  74. hvsi_udbg_buf_len = 0;
  75. } else {
  76. /* remove the packet header */
  77. for (i = 4; i < hvsi_udbg_buf_len; i++)
  78. hvsi_udbg_buf[i-4] = hvsi_udbg_buf[i];
  79. hvsi_udbg_buf_len -= 4;
  80. }
  81. }
  82. if (hvsi_udbg_buf_len <= 0 || hvsi_udbg_buf_len > 256) {
  83. /* no data ready */
  84. hvsi_udbg_buf_len = 0;
  85. return -1;
  86. }
  87. ch = hvsi_udbg_buf[0];
  88. /* shift remaining data down */
  89. for (i = 1; i < hvsi_udbg_buf_len; i++) {
  90. hvsi_udbg_buf[i-1] = hvsi_udbg_buf[i];
  91. }
  92. hvsi_udbg_buf_len--;
  93. return ch;
  94. }
  95. static int udbg_hvsi_getc(void)
  96. {
  97. int ch;
  98. for (;;) {
  99. ch = udbg_hvsi_getc_poll();
  100. if (ch == -1) {
  101. /* This shouldn't be needed...but... */
  102. volatile unsigned long delay;
  103. for (delay=0; delay < 2000000; delay++)
  104. ;
  105. } else {
  106. return ch;
  107. }
  108. }
  109. }
  110. static void udbg_putcLP(char c)
  111. {
  112. char buf[16];
  113. unsigned long rc;
  114. if (c == '\n')
  115. udbg_putcLP('\r');
  116. buf[0] = c;
  117. do {
  118. rc = plpar_put_term_char(vtermno, 1, buf);
  119. } while(rc == H_BUSY);
  120. }
  121. /* Buffered chars getc */
  122. static long inbuflen;
  123. static long inbuf[2]; /* must be 2 longs */
  124. static int udbg_getc_pollLP(void)
  125. {
  126. /* The interface is tricky because it may return up to 16 chars.
  127. * We save them statically for future calls to udbg_getc().
  128. */
  129. char ch, *buf = (char *)inbuf;
  130. int i;
  131. long rc;
  132. if (inbuflen == 0) {
  133. /* get some more chars. */
  134. inbuflen = 0;
  135. rc = plpar_get_term_char(vtermno, &inbuflen, buf);
  136. if (rc != H_SUCCESS)
  137. inbuflen = 0; /* otherwise inbuflen is garbage */
  138. }
  139. if (inbuflen <= 0 || inbuflen > 16) {
  140. /* Catch error case as well as other oddities (corruption) */
  141. inbuflen = 0;
  142. return -1;
  143. }
  144. ch = buf[0];
  145. for (i = 1; i < inbuflen; i++) /* shuffle them down. */
  146. buf[i-1] = buf[i];
  147. inbuflen--;
  148. return ch;
  149. }
  150. static int udbg_getcLP(void)
  151. {
  152. int ch;
  153. for (;;) {
  154. ch = udbg_getc_pollLP();
  155. if (ch == -1) {
  156. /* This shouldn't be needed...but... */
  157. volatile unsigned long delay;
  158. for (delay=0; delay < 2000000; delay++)
  159. ;
  160. } else {
  161. return ch;
  162. }
  163. }
  164. }
  165. /* call this from early_init() for a working debug console on
  166. * vterm capable LPAR machines
  167. */
  168. void __init udbg_init_debug_lpar(void)
  169. {
  170. vtermno = 0;
  171. udbg_putc = udbg_putcLP;
  172. udbg_getc = udbg_getcLP;
  173. udbg_getc_poll = udbg_getc_pollLP;
  174. register_early_udbg_console();
  175. }
  176. /* returns 0 if couldn't find or use /chosen/stdout as console */
  177. void __init find_udbg_vterm(void)
  178. {
  179. struct device_node *stdout_node;
  180. const u32 *termno;
  181. const char *name;
  182. /* find the boot console from /chosen/stdout */
  183. if (!of_chosen)
  184. return;
  185. name = of_get_property(of_chosen, "linux,stdout-path", NULL);
  186. if (name == NULL)
  187. return;
  188. stdout_node = of_find_node_by_path(name);
  189. if (!stdout_node)
  190. return;
  191. name = of_get_property(stdout_node, "name", NULL);
  192. if (!name) {
  193. printk(KERN_WARNING "stdout node missing 'name' property!\n");
  194. goto out;
  195. }
  196. /* Check if it's a virtual terminal */
  197. if (strncmp(name, "vty", 3) != 0)
  198. goto out;
  199. termno = of_get_property(stdout_node, "reg", NULL);
  200. if (termno == NULL)
  201. goto out;
  202. vtermno = termno[0];
  203. if (of_device_is_compatible(stdout_node, "hvterm1")) {
  204. udbg_putc = udbg_putcLP;
  205. udbg_getc = udbg_getcLP;
  206. udbg_getc_poll = udbg_getc_pollLP;
  207. add_preferred_console("hvc", termno[0] & 0xff, NULL);
  208. } else if (of_device_is_compatible(stdout_node, "hvterm-protocol")) {
  209. vtermno = termno[0];
  210. udbg_putc = udbg_hvsi_putc;
  211. udbg_getc = udbg_hvsi_getc;
  212. udbg_getc_poll = udbg_hvsi_getc_poll;
  213. add_preferred_console("hvsi", termno[0] & 0xff, NULL);
  214. }
  215. out:
  216. of_node_put(stdout_node);
  217. }
  218. void vpa_init(int cpu)
  219. {
  220. int hwcpu = get_hard_smp_processor_id(cpu);
  221. unsigned long addr;
  222. long ret;
  223. if (cpu_has_feature(CPU_FTR_ALTIVEC))
  224. lppaca[cpu].vmxregs_in_use = 1;
  225. addr = __pa(&lppaca[cpu]);
  226. ret = register_vpa(hwcpu, addr);
  227. if (ret) {
  228. printk(KERN_ERR "WARNING: vpa_init: VPA registration for "
  229. "cpu %d (hw %d) of area %lx returns %ld\n",
  230. cpu, hwcpu, addr, ret);
  231. return;
  232. }
  233. /*
  234. * PAPR says this feature is SLB-Buffer but firmware never
  235. * reports that. All SPLPAR support SLB shadow buffer.
  236. */
  237. addr = __pa(&slb_shadow[cpu]);
  238. if (firmware_has_feature(FW_FEATURE_SPLPAR)) {
  239. ret = register_slb_shadow(hwcpu, addr);
  240. if (ret)
  241. printk(KERN_ERR
  242. "WARNING: vpa_init: SLB shadow buffer "
  243. "registration for cpu %d (hw %d) of area %lx "
  244. "returns %ld\n", cpu, hwcpu, addr, ret);
  245. }
  246. }
  247. static long pSeries_lpar_hpte_insert(unsigned long hpte_group,
  248. unsigned long va, unsigned long pa,
  249. unsigned long rflags, unsigned long vflags,
  250. int psize, int ssize)
  251. {
  252. unsigned long lpar_rc;
  253. unsigned long flags;
  254. unsigned long slot;
  255. unsigned long hpte_v, hpte_r;
  256. if (!(vflags & HPTE_V_BOLTED))
  257. DBG_LOW("hpte_insert(group=%lx, va=%016lx, pa=%016lx, "
  258. "rflags=%lx, vflags=%lx, psize=%d)\n",
  259. hpte_group, va, pa, rflags, vflags, psize);
  260. hpte_v = hpte_encode_v(va, psize, ssize) | vflags | HPTE_V_VALID;
  261. hpte_r = hpte_encode_r(pa, psize) | rflags;
  262. if (!(vflags & HPTE_V_BOLTED))
  263. DBG_LOW(" hpte_v=%016lx, hpte_r=%016lx\n", hpte_v, hpte_r);
  264. /* Now fill in the actual HPTE */
  265. /* Set CEC cookie to 0 */
  266. /* Zero page = 0 */
  267. /* I-cache Invalidate = 0 */
  268. /* I-cache synchronize = 0 */
  269. /* Exact = 0 */
  270. flags = 0;
  271. /* Make pHyp happy */
  272. if (rflags & (_PAGE_GUARDED|_PAGE_NO_CACHE))
  273. hpte_r &= ~_PAGE_COHERENT;
  274. lpar_rc = plpar_pte_enter(flags, hpte_group, hpte_v, hpte_r, &slot);
  275. if (unlikely(lpar_rc == H_PTEG_FULL)) {
  276. if (!(vflags & HPTE_V_BOLTED))
  277. DBG_LOW(" full\n");
  278. return -1;
  279. }
  280. /*
  281. * Since we try and ioremap PHBs we don't own, the pte insert
  282. * will fail. However we must catch the failure in hash_page
  283. * or we will loop forever, so return -2 in this case.
  284. */
  285. if (unlikely(lpar_rc != H_SUCCESS)) {
  286. if (!(vflags & HPTE_V_BOLTED))
  287. DBG_LOW(" lpar err %d\n", lpar_rc);
  288. return -2;
  289. }
  290. if (!(vflags & HPTE_V_BOLTED))
  291. DBG_LOW(" -> slot: %d\n", slot & 7);
  292. /* Because of iSeries, we have to pass down the secondary
  293. * bucket bit here as well
  294. */
  295. return (slot & 7) | (!!(vflags & HPTE_V_SECONDARY) << 3);
  296. }
  297. static DEFINE_SPINLOCK(pSeries_lpar_tlbie_lock);
  298. static long pSeries_lpar_hpte_remove(unsigned long hpte_group)
  299. {
  300. unsigned long slot_offset;
  301. unsigned long lpar_rc;
  302. int i;
  303. unsigned long dummy1, dummy2;
  304. /* pick a random slot to start at */
  305. slot_offset = mftb() & 0x7;
  306. for (i = 0; i < HPTES_PER_GROUP; i++) {
  307. /* don't remove a bolted entry */
  308. lpar_rc = plpar_pte_remove(H_ANDCOND, hpte_group + slot_offset,
  309. (0x1UL << 4), &dummy1, &dummy2);
  310. if (lpar_rc == H_SUCCESS)
  311. return i;
  312. BUG_ON(lpar_rc != H_NOT_FOUND);
  313. slot_offset++;
  314. slot_offset &= 0x7;
  315. }
  316. return -1;
  317. }
  318. static void pSeries_lpar_hptab_clear(void)
  319. {
  320. unsigned long size_bytes = 1UL << ppc64_pft_size;
  321. unsigned long hpte_count = size_bytes >> 4;
  322. unsigned long dummy1, dummy2, dword0;
  323. long lpar_rc;
  324. int i;
  325. /* TODO: Use bulk call */
  326. for (i = 0; i < hpte_count; i++) {
  327. /* dont remove HPTEs with VRMA mappings */
  328. lpar_rc = plpar_pte_remove_raw(H_ANDCOND, i, HPTE_V_1TB_SEG,
  329. &dummy1, &dummy2);
  330. if (lpar_rc == H_NOT_FOUND) {
  331. lpar_rc = plpar_pte_read_raw(0, i, &dword0, &dummy1);
  332. if (!lpar_rc && ((dword0 & HPTE_V_VRMA_MASK)
  333. != HPTE_V_VRMA_MASK))
  334. /* Can be hpte for 1TB Seg. So remove it */
  335. plpar_pte_remove_raw(0, i, 0, &dummy1, &dummy2);
  336. }
  337. }
  338. }
  339. /*
  340. * This computes the AVPN and B fields of the first dword of a HPTE,
  341. * for use when we want to match an existing PTE. The bottom 7 bits
  342. * of the returned value are zero.
  343. */
  344. static inline unsigned long hpte_encode_avpn(unsigned long va, int psize,
  345. int ssize)
  346. {
  347. unsigned long v;
  348. v = (va >> 23) & ~(mmu_psize_defs[psize].avpnm);
  349. v <<= HPTE_V_AVPN_SHIFT;
  350. v |= ((unsigned long) ssize) << HPTE_V_SSIZE_SHIFT;
  351. return v;
  352. }
  353. /*
  354. * NOTE: for updatepp ops we are fortunate that the linux "newpp" bits and
  355. * the low 3 bits of flags happen to line up. So no transform is needed.
  356. * We can probably optimize here and assume the high bits of newpp are
  357. * already zero. For now I am paranoid.
  358. */
  359. static long pSeries_lpar_hpte_updatepp(unsigned long slot,
  360. unsigned long newpp,
  361. unsigned long va,
  362. int psize, int ssize, int local)
  363. {
  364. unsigned long lpar_rc;
  365. unsigned long flags = (newpp & 7) | H_AVPN;
  366. unsigned long want_v;
  367. want_v = hpte_encode_avpn(va, psize, ssize);
  368. DBG_LOW(" update: avpnv=%016lx, hash=%016lx, f=%x, psize: %d ... ",
  369. want_v, slot, flags, psize);
  370. lpar_rc = plpar_pte_protect(flags, slot, want_v);
  371. if (lpar_rc == H_NOT_FOUND) {
  372. DBG_LOW("not found !\n");
  373. return -1;
  374. }
  375. DBG_LOW("ok\n");
  376. BUG_ON(lpar_rc != H_SUCCESS);
  377. return 0;
  378. }
  379. static unsigned long pSeries_lpar_hpte_getword0(unsigned long slot)
  380. {
  381. unsigned long dword0;
  382. unsigned long lpar_rc;
  383. unsigned long dummy_word1;
  384. unsigned long flags;
  385. /* Read 1 pte at a time */
  386. /* Do not need RPN to logical page translation */
  387. /* No cross CEC PFT access */
  388. flags = 0;
  389. lpar_rc = plpar_pte_read(flags, slot, &dword0, &dummy_word1);
  390. BUG_ON(lpar_rc != H_SUCCESS);
  391. return dword0;
  392. }
  393. static long pSeries_lpar_hpte_find(unsigned long va, int psize, int ssize)
  394. {
  395. unsigned long hash;
  396. unsigned long i;
  397. long slot;
  398. unsigned long want_v, hpte_v;
  399. hash = hpt_hash(va, mmu_psize_defs[psize].shift, ssize);
  400. want_v = hpte_encode_avpn(va, psize, ssize);
  401. /* Bolted entries are always in the primary group */
  402. slot = (hash & htab_hash_mask) * HPTES_PER_GROUP;
  403. for (i = 0; i < HPTES_PER_GROUP; i++) {
  404. hpte_v = pSeries_lpar_hpte_getword0(slot);
  405. if (HPTE_V_COMPARE(hpte_v, want_v) && (hpte_v & HPTE_V_VALID))
  406. /* HPTE matches */
  407. return slot;
  408. ++slot;
  409. }
  410. return -1;
  411. }
  412. static void pSeries_lpar_hpte_updateboltedpp(unsigned long newpp,
  413. unsigned long ea,
  414. int psize, int ssize)
  415. {
  416. unsigned long lpar_rc, slot, vsid, va, flags;
  417. vsid = get_kernel_vsid(ea, ssize);
  418. va = hpt_va(ea, vsid, ssize);
  419. slot = pSeries_lpar_hpte_find(va, psize, ssize);
  420. BUG_ON(slot == -1);
  421. flags = newpp & 7;
  422. lpar_rc = plpar_pte_protect(flags, slot, 0);
  423. BUG_ON(lpar_rc != H_SUCCESS);
  424. }
  425. static void pSeries_lpar_hpte_invalidate(unsigned long slot, unsigned long va,
  426. int psize, int ssize, int local)
  427. {
  428. unsigned long want_v;
  429. unsigned long lpar_rc;
  430. unsigned long dummy1, dummy2;
  431. DBG_LOW(" inval : slot=%lx, va=%016lx, psize: %d, local: %d",
  432. slot, va, psize, local);
  433. want_v = hpte_encode_avpn(va, psize, ssize);
  434. lpar_rc = plpar_pte_remove(H_AVPN, slot, want_v, &dummy1, &dummy2);
  435. if (lpar_rc == H_NOT_FOUND)
  436. return;
  437. BUG_ON(lpar_rc != H_SUCCESS);
  438. }
  439. static void pSeries_lpar_hpte_removebolted(unsigned long ea,
  440. int psize, int ssize)
  441. {
  442. unsigned long slot, vsid, va;
  443. vsid = get_kernel_vsid(ea, ssize);
  444. va = hpt_va(ea, vsid, ssize);
  445. slot = pSeries_lpar_hpte_find(va, psize, ssize);
  446. BUG_ON(slot == -1);
  447. pSeries_lpar_hpte_invalidate(slot, va, psize, ssize, 0);
  448. }
  449. /* Flag bits for H_BULK_REMOVE */
  450. #define HBR_REQUEST 0x4000000000000000UL
  451. #define HBR_RESPONSE 0x8000000000000000UL
  452. #define HBR_END 0xc000000000000000UL
  453. #define HBR_AVPN 0x0200000000000000UL
  454. #define HBR_ANDCOND 0x0100000000000000UL
  455. /*
  456. * Take a spinlock around flushes to avoid bouncing the hypervisor tlbie
  457. * lock.
  458. */
  459. static void pSeries_lpar_flush_hash_range(unsigned long number, int local)
  460. {
  461. unsigned long i, pix, rc;
  462. unsigned long flags = 0;
  463. struct ppc64_tlb_batch *batch = &__get_cpu_var(ppc64_tlb_batch);
  464. int lock_tlbie = !cpu_has_feature(CPU_FTR_LOCKLESS_TLBIE);
  465. unsigned long param[9];
  466. unsigned long va;
  467. unsigned long hash, index, shift, hidx, slot;
  468. real_pte_t pte;
  469. int psize, ssize;
  470. if (lock_tlbie)
  471. spin_lock_irqsave(&pSeries_lpar_tlbie_lock, flags);
  472. psize = batch->psize;
  473. ssize = batch->ssize;
  474. pix = 0;
  475. for (i = 0; i < number; i++) {
  476. va = batch->vaddr[i];
  477. pte = batch->pte[i];
  478. pte_iterate_hashed_subpages(pte, psize, va, index, shift) {
  479. hash = hpt_hash(va, shift, ssize);
  480. hidx = __rpte_to_hidx(pte, index);
  481. if (hidx & _PTEIDX_SECONDARY)
  482. hash = ~hash;
  483. slot = (hash & htab_hash_mask) * HPTES_PER_GROUP;
  484. slot += hidx & _PTEIDX_GROUP_IX;
  485. if (!firmware_has_feature(FW_FEATURE_BULK_REMOVE)) {
  486. pSeries_lpar_hpte_invalidate(slot, va, psize,
  487. ssize, local);
  488. } else {
  489. param[pix] = HBR_REQUEST | HBR_AVPN | slot;
  490. param[pix+1] = hpte_encode_avpn(va, psize,
  491. ssize);
  492. pix += 2;
  493. if (pix == 8) {
  494. rc = plpar_hcall9(H_BULK_REMOVE, param,
  495. param[0], param[1], param[2],
  496. param[3], param[4], param[5],
  497. param[6], param[7]);
  498. BUG_ON(rc != H_SUCCESS);
  499. pix = 0;
  500. }
  501. }
  502. } pte_iterate_hashed_end();
  503. }
  504. if (pix) {
  505. param[pix] = HBR_END;
  506. rc = plpar_hcall9(H_BULK_REMOVE, param, param[0], param[1],
  507. param[2], param[3], param[4], param[5],
  508. param[6], param[7]);
  509. BUG_ON(rc != H_SUCCESS);
  510. }
  511. if (lock_tlbie)
  512. spin_unlock_irqrestore(&pSeries_lpar_tlbie_lock, flags);
  513. }
  514. void __init hpte_init_lpar(void)
  515. {
  516. ppc_md.hpte_invalidate = pSeries_lpar_hpte_invalidate;
  517. ppc_md.hpte_updatepp = pSeries_lpar_hpte_updatepp;
  518. ppc_md.hpte_updateboltedpp = pSeries_lpar_hpte_updateboltedpp;
  519. ppc_md.hpte_insert = pSeries_lpar_hpte_insert;
  520. ppc_md.hpte_remove = pSeries_lpar_hpte_remove;
  521. ppc_md.hpte_removebolted = pSeries_lpar_hpte_removebolted;
  522. ppc_md.flush_hash_range = pSeries_lpar_flush_hash_range;
  523. ppc_md.hpte_clear_all = pSeries_lpar_hptab_clear;
  524. }