[PATCH] bug: Use normal relative pointers in 'struct bug_entry'

2022-05-05 Thread Josh Poimboeuf
With CONFIG_GENERIC_BUG_RELATIVE_POINTERS, the addr/file relative pointers are calculated weirdly: based on the beginning of the bug_entry struct address, rather than their respective pointer addresses. Make the relative pointers less surprising to both humans and tools by calculating them the nor

Re: [PATCH V2 2/2] tools/perf/tests: Fix session topology test to skip the test in guest environment

2022-05-05 Thread Michael Ellerman
Athira Rajeev writes: > The session topology test fails in powerpc pSeries platform. > Test logs: > <<>> > Session topology : FAILED! > <<>> > > This testcases tests cpu topology by checking the core_id and > socket_id stored in perf_env from perf session. The data from > perf session is compared

Re: [PATCH 1/3] mm: change huge_ptep_clear_flush() to return the original pte

2022-05-05 Thread Baolin Wang
On 5/6/2022 7:15 AM, Mike Kravetz wrote: On 4/29/22 01:14, Baolin Wang wrote: It is incorrect to use ptep_clear_flush() to nuke a hugetlb page table when unmapping or migrating a hugetlb page, and will change to use huge_ptep_clear_flush() instead in the following patches. So this is a prepa

Re: [PATCH 2/3] mm: rmap: Fix CONT-PTE/PMD size hugetlb issue when migration

2022-05-05 Thread Baolin Wang
On 5/6/2022 7:53 AM, Mike Kravetz wrote: On 4/29/22 01:14, Baolin Wang wrote: On some architectures (like ARM64), it can support CONT-PTE/PMD size hugetlb, which means it can support not only PMD/PUD size hugetlb: 2M and 1G, but also CONT-PTE/PMD size: 64K and 32M if a 4K page size specified.

Re: [PATCH] powerpc: fix typos in comments

2022-05-05 Thread Michael Ellerman
Julia Lawall writes: > On Thu, 5 May 2022, Joel Stanley wrote: >> On Sat, 30 Apr 2022 at 18:58, Julia Lawall wrote: >> > Various spelling mistakes in comments. >> > Detected with the help of Coccinelle. >> > >> > Signed-off-by: Julia Lawall >> >> I read the patch and it appears that all of the c

[PATCH kernel v2] KVM: PPC: Book3s: Retire H_PUT_TCE/etc real mode handlers

2022-05-05 Thread Alexey Kardashevskiy
LoPAPR defines guest visible IOMMU with hypercalls to use it - H_PUT_TCE/etc. Implemented first on POWER7 where hypercalls would trap in the KVM in the real mode (with MMU off). The problem with the real mode is some memory is not available and some API usage crashed the host but enabling MMU was a

[PATCH 1/2] powerpc/perf: Fix the threshold compare group constraint for power10

2022-05-05 Thread Kajol Jain
Thresh compare bits for a event is used to program thresh compare field in Monitor Mode Control Register A (MMCRA: 8-18 bits for power10). When scheduling events as a group, all events in that group should match value in threshold bits. Otherwise event open for the sibling events should fail. But i

[PATCH 2/2] powerpc/perf: Fix the threshold compare group constraint for power9

2022-05-05 Thread Kajol Jain
Thresh compare bits for a event is used to program thresh compare field in Monitor Mode Control Register A (MMCRA: 9-18 bits for power9). When scheduling events as a group, all events in that group should match value in threshold bits (like thresh compare, thresh control, thresh select). Otherwise

<    1   2