[PATCH 1/2] ppc64/book3s: use the same masked bit values for 4K and 64K pagesizes
by Hari Bathini
Starting with kernel v4.7, masked bit values are the same for 4K and
64K pagesizes. This patch updates here accordingly.
Signed-off-by: Hari Bathini <hbathini(a)linux.vnet.ibm.com>
---
defs.h | 4 ++++
ppc64.c | 14 ++++++++++----
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/defs.h b/defs.h
index e730be3..142149e 100644
--- a/defs.h
+++ b/defs.h
@@ -3848,6 +3848,10 @@ struct efi_memory_desc_t {
#define PTE_RPN_MASK_L4_4_6 (((1UL << PTE_RPN_SIZE_L4_4_6) - 1) << PAGESHIFT())
#define PTE_RPN_SHIFT_L4_4_6 PAGESHIFT()
+#define PGD_MASKED_BITS_4_7 0xc0000000000000ffUL
+#define PUD_MASKED_BITS_4_7 0xc0000000000000ffUL
+#define PMD_MASKED_BITS_4_7 0xc0000000000000ffUL
+
#define PD_HUGE 0x8000000000000000
#define HUGE_PTE_MASK 0x03
#define HUGEPD_SHIFT_MASK 0x3f
diff --git a/ppc64.c b/ppc64.c
index 83ebd16..17c9a19 100644
--- a/ppc64.c
+++ b/ppc64.c
@@ -471,10 +471,16 @@ ppc64_init(int when)
}
m->pte_rpn_mask = PTE_RPN_MASK_DEFAULT;
- if (!(machdep->flags & BOOK3E) &&
- (THIS_KERNEL_VERSION >= LINUX(4,6,0))) {
- m->pte_rpn_mask = PTE_RPN_MASK_L4_4_6;
- m->pte_rpn_shift = PTE_RPN_SHIFT_L4_4_6;
+ if (!(machdep->flags & BOOK3E)) {
+ if (THIS_KERNEL_VERSION >= LINUX(4,6,0)) {
+ m->pte_rpn_mask = PTE_RPN_MASK_L4_4_6;
+ m->pte_rpn_shift = PTE_RPN_SHIFT_L4_4_6;
+ }
+ if (THIS_KERNEL_VERSION >= LINUX(4,7,0)) {
+ m->pgd_masked_bits = PGD_MASKED_BITS_4_7;
+ m->pud_masked_bits = PUD_MASKED_BITS_4_7;
+ m->pmd_masked_bits = PMD_MASKED_BITS_4_7;
+ }
}
/* Compute ptrs per each level */
8 years, 2 months
[PATCH 0/6] ppc64: Add support to understand Power ISA 3.0 based kernel
by Hari Bathini
With the introduction of radix MMU in Power ISA 3.0, there are changes
in kernel page table management accommodating it. This patch series
makes appropriate changes here to work for such kernels. Also, this
series fixes a few bugs along the way. Patches successfully tested on
BOOK3S. It would be great if someone can test these patches on BOOK3E.
The changes effecting BOOK3E are minimal though.
---
Hari Bathini (6):
ppc64: fix vtop page translation for 4K pages
ppc64: Use kernel terminology for each level in 4-level page table
ppc64/book3s: address changes in kernel v4.5
ppc64/book3s: address change in page flags for PowerISA v3.0
ppc64: use physical addresses and unfold pud for 64K page size
ppc64/book3s: support big endian Linux page tables
defs.h | 74 +++++++++-----
ppc64.c | 340 +++++++++++++++++++++++++++++++++++++++++++++++++--------------
tools.c | 16 +++
3 files changed, 332 insertions(+), 98 deletions(-)
--
- Hari
8 years, 2 months
[PATCH] extensions, ptdump: Build with RPM_OPT_FLAGS.
by Inoguchi, Yuki
Indoh-san,
The current ptdump-debuginfo package has no debug information.
Please merge this patch.
---
ptdump.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ptdump.mk b/ptdump.mk
index 685bd57..ffc43e6 100644
--- a/ptdump.mk
+++ b/ptdump.mk
@@ -43,7 +43,7 @@ ptdump.so: $(TARGET_CFILES) $(INCDIR)/defs.h $(SUBDIR)/map.h
ifeq ($(ARCH),UNSUPPORTED)
@echo "ptdump: architecture not supported"
else
- gcc $(CFLAGS) $(TARGET_CFLAGS) $(COMMON_CFLAGS) -nostartfiles -shared -rdynamic -o $@ $(TARGET_CFILES)
+ gcc $(RPM_OPT_FLAGS) $(CFLAGS) $(TARGET_CFLAGS) $(COMMON_CFLAGS) -nostartfiles -shared -rdynamic -o $@ $(TARGET_CFILES)
endif
debug: COMMON_CFLAGS+=-DDEBUG
8 years, 2 months
Fwd: RE: [PATCH 1/1] Speed up list/tree '-s' output.
by Dave Anderson
Sent from my Verizon Wireless 4G LTE smartphone
-------- Original message --------
From: Dave Anderson <anderson(a)prospeed.net>
Date: 07/26/2016 7:24 AM (GMT-08:00)
To: Alexandr Terekhov <Alexandr_Terekhov(a)epam.com>
Subject: RE: [Crash-utility] [PATCH 1/1] Speed up list/tree '-s' output.
Hi Alexandr,
I'm on vacation until August 8th, so I won't be able to check this patch out until later in that week.
Thanks, Dave
Sent from my Verizon Wireless 4G LTE smartphone
8 years, 2 months