Re: [PATCH v3 13/18] powerpc/64e: remove mmu_linear_psize

2021-10-21 Thread Christophe Leroy
Le 22/10/2021 à 00:30, Nicholas Piggin a écrit : mmu_linear_psize is only set at boot once on 64e, is not necessarily the correct size of the linear map pages, and is never used anywhere. Remove it. mmu_linear_psize is defined as a macro in: arch/powerpc/include/asm/book3s/32/mmu-hash.h

[PATCH 3/5] xen: flag hvc_xen to be not essential for system boot

2021-10-21 Thread Juergen Gross
The Xen pv console driver is not essential for boot. Set the respective flag. Signed-off-by: Juergen Gross --- drivers/tty/hvc/hvc_xen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c index f0bf01ea069a..71e0dd2c0ce5 100644 --- a/drivers

[PATCH v2] perf vendor events power10: Add metric events json file for power10 platform

2021-10-21 Thread Kajol Jain
Add pmu metric json file for power10 platform. Signed-off-by: Kajol Jain --- Changelog v1 -> v2: - Did some nit changes in BriefDescription field as suggested by Paul A. Clarke - Link to the v1 patch: https://lkml.org/lkml/2021/10/6/131 .../arch/powerpc/power10/metrics.json | 676 +++

[PATCH v2] powerpc: flexible GPR range save/restore macros

2021-10-21 Thread Nicholas Piggin
Introduce macros that operate on a (start, end) range of GPRs, which reduces lines of code and need to do mental arithmetic while reading the code. Reviewed-by: Segher Boessenkool Signed-off-by: Nicholas Piggin --- Since v1: - Removed unused OP_REG_IDX macro - Commented OP_REG macro arch/power

Re: [PATCH V2] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-10-21 Thread Nicholas Piggin
Excerpts from Michael Ellerman's message of October 22, 2021 10:19 am: > Nathan Lynch writes: >> Athira Rajeev writes: >>> During Live Partition Migration (LPM), it is observed that perf >>> counter values reports zero post migration completion. However >>> 'perf stat' with workload continues to

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.15-5 tag

2021-10-21 Thread pr-tracker-bot
The pull request you sent on Thu, 21 Oct 2021 22:32:45 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.15-5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/0a3221b65874b5089f1742de59ef89f032b9f2ea Thank you! -- Deet-doot-d

Re: [PATCH V2] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-10-21 Thread Madhavan Srinivasan
On 10/21/21 11:03 PM, Nathan Lynch wrote: Nicholas Piggin writes: Excerpts from Athira Rajeev's message of July 11, 2021 10:25 pm: During Live Partition Migration (LPM), it is observed that perf counter values reports zero post migration completion. However 'perf stat' with workload continue

Re: [PATCH 00/13] block: add_disk() error handling stragglers

2021-10-21 Thread Geoff Levand
Hi Luis, On 10/18/21 9:15 AM, Luis Chamberlain wrote: > On Sun, Oct 17, 2021 at 08:26:33AM -0700, Geoff Levand wrote: >> Hi Luis, >> >> On 10/15/21 4:52 PM, Luis Chamberlain wrote: >>> This patch set consists of al the straggler drivers for which we have >>> have no patch reviews done for yet. I'd

Re: [PATCH 2/2] soc: fsl: rcpm: Make use of the helper function devm_platform_ioremap_resource()

2021-10-21 Thread Li Yang
On Wed, Sep 8, 2021 at 2:20 AM Cai Huoqing wrote: > > Use the devm_platform_ioremap_resource() helper instead of > calling platform_get_resource() and devm_ioremap_resource() > separately > > Signed-off-by: Cai Huoqing Applied for next. Thanks. > --- > drivers/soc/fsl/rcpm.c | 7 +-- > 1

Re: [PATCH 1/2] soc: fsl: guts: Make use of the helper function devm_platform_ioremap_resource()

2021-10-21 Thread Li Yang
On Wed, Sep 8, 2021 at 2:19 AM Cai Huoqing wrote: > > Use the devm_platform_ioremap_resource() helper instead of > calling platform_get_resource() and devm_ioremap_resource() > separately > > Signed-off-by: Cai Huoqing Applied for next. Thanks. > --- > drivers/soc/fsl/guts.c | 4 +--- > 1 fil

Re: [PATCH] soc: fsl: guts: Fix a resource leak in the error handling path of 'fsl_guts_probe()'

2021-10-21 Thread Li Yang
On Wed, Aug 18, 2021 at 4:23 PM Christophe JAILLET wrote: > > If an error occurs after 'of_find_node_by_path()', the reference taken for > 'root' will never be released and some memory will leak. Thanks for finding this. This truly is a problem. > > Instead of adding an error handling path and

Re: [PATCH V2] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-10-21 Thread Michael Ellerman
Nathan Lynch writes: > Athira Rajeev writes: >> During Live Partition Migration (LPM), it is observed that perf >> counter values reports zero post migration completion. However >> 'perf stat' with workload continues to show counts post migration >> since PMU gets disabled/enabled during sched sw

[PATCH v3 18/18] powerpc/microwatt: Don't select the hash MMU code

2021-10-21 Thread Nicholas Piggin
Microwatt is radix-only, so it does not require hash MMU support. This saves 20kB compressed dtbImage and 56kB vmlinux size. Signed-off-by: Nicholas Piggin --- arch/powerpc/configs/microwatt_defconfig | 2 +- arch/powerpc/platforms/microwatt/Kconfig | 1 - 2 files changed, 1 insertion(+), 2 del

[PATCH v3 17/18] powerpc/configs/microwatt: add POWER9_CPU

2021-10-21 Thread Nicholas Piggin
Microwatt implements a subset of ISA v3.0 (which is equivalent to the POWER9_CPU option). Signed-off-by: Nicholas Piggin --- arch/powerpc/configs/microwatt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/microwatt_defconfig b/arch/powerpc/configs/microwatt_def

[PATCH v3 16/18] powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMU

2021-10-21 Thread Nicholas Piggin
Compiling out hash support code when CONFIG_PPC_64S_HASH_MMU=n saves 128kB kernel image size (90kB text) on powernv_defconfig minus KVM, 350kB on pseries_defconfig minus KVM, 40kB on a tiny config. Signed-off-by: Nicholas Piggin --- arch/powerpc/Kconfig | 2 +- arch/pow

[PATCH v3 15/18] powerpc/64s: Make hash MMU support configurable

2021-10-21 Thread Nicholas Piggin
This adds Kconfig selection which allows 64s hash MMU support to be disabled. It can be disabled if radix support is enabled, the minimum supported CPU type is POWER9 (or higher), and KVM is not selected. Signed-off-by: Nicholas Piggin --- arch/powerpc/Kconfig | 3 ++- arch/

[PATCH v3 14/18] powerpc/64s: Clear MMU_FTR_HPTE_TABLE when booting in radix

2021-10-21 Thread Nicholas Piggin
--- arch/powerpc/mm/init_64.c | 1 + arch/powerpc/mm/pgtable.c | 9 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 386be136026e..23fbb2b0277c 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c

[PATCH v3 13/18] powerpc/64e: remove mmu_linear_psize

2021-10-21 Thread Nicholas Piggin
mmu_linear_psize is only set at boot once on 64e, is not necessarily the correct size of the linear map pages, and is never used anywhere. Remove it. Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/nohash/tlb.c | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/powerpc/mm/nohash

[PATCH v3 12/18] powerpc: make memremap_compat_align 64s-only

2021-10-21 Thread Nicholas Piggin
memremap_compat_align is only relevant when ZONE_DEVICE is selected. ZONE_DEVICE depends on ARCH_HAS_PTE_DEVMAP, which is only selected by PPC_BOOK3S_64. Signed-off-by: Nicholas Piggin --- arch/powerpc/Kconfig | 2 +- arch/powerpc/mm/book3s64/pgtable.c | 20 a

[PATCH v3 11/18] powerpc/64: pcpu setup avoid reading mmu_linear_psize on 64e or radix

2021-10-21 Thread Nicholas Piggin
Radix never sets mmu_linear_psize so it's always 4K, which causes pcpu atom_size to always be PAGE_SIZE. 64e sets it to 1GB always. Make paths for these platforms to be explicit about what value they set atom_size to. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/setup_64.c | 21 ++

[PATCH v3 10/18] powerpc/64s: Rename hash_hugetlbpage.c to hugetlbpage.c

2021-10-21 Thread Nicholas Piggin
This file contains functions and data common to radix, so rename it to remove the hash_ prefix. Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/book3s64/Makefile | 2 +- arch/powerpc/mm/book3s64/{hash_hugetlbpage.c => hugetlbpage.c} | 0 2 files changed, 1 inserti

[PATCH v3 09/18] powerpc/64s: move page size definitions from hash specific file

2021-10-21 Thread Nicholas Piggin
The radix code uses some of the psize variables. Move the common ones from hash_utils.c to pgtable.c. Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/book3s64/hash_utils.c | 5 - arch/powerpc/mm/book3s64/pgtable.c| 7 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --gi

[PATCH v3 08/18] powerpc/64s: Make flush_and_reload_slb a no-op when radix is enabled

2021-10-21 Thread Nicholas Piggin
The radix test can exclude slb_flush_all_realmode() from being called because flush_and_reload_slb() is only expected to flush ERAT when called by flush_erat(), which is only on pre-ISA v3.0 CPUs that do not support radix. This helps the later change to make hash support configurable to not introd

[PATCH v3 07/18] powerpc/64s: move THP trace point creation out of hash specific file

2021-10-21 Thread Nicholas Piggin
In preparation for making hash MMU support configurable, move THP trace point function definitions out of an otherwise hash specific file. Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/book3s64/Makefile | 2 +- arch/powerpc/mm/book3s64/hash_pgtable.c | 1 - arch/powerpc/mm/book3s64/pg

[PATCH v3 06/18] powerpc/pseries: lparcfg don't include slb_size line in radix mode

2021-10-21 Thread Nicholas Piggin
This avoids a change in behaviour in the later patch making hash support configurable. This is possibly a user interface change, so the alternative would be a hard-coded slb_size=0 here. Signed-off-by: Nicholas Piggin --- arch/powerpc/platforms/pseries/lparcfg.c | 3 ++- 1 file changed, 2 insert

[PATCH v3 05/18] powerpc/pseries: move pseries_lpar_register_process_table() out from hash specific code

2021-10-21 Thread Nicholas Piggin
This reduces ifdefs in a later change making hash support configurable. Signed-off-by: Nicholas Piggin --- arch/powerpc/platforms/pseries/lpar.c | 56 +-- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc

[PATCH v3 04/18] powerpc/64s: Move and rename do_bad_slb_fault as it is not hash specific

2021-10-21 Thread Nicholas Piggin
slb.c is hash-specific SLB management, but do_bad_slb_fault deals with segment interrupts that occur with radix MMU as well. --- arch/powerpc/include/asm/interrupt.h | 2 +- arch/powerpc/kernel/exceptions-64s.S | 4 ++-- arch/powerpc/mm/book3s64/slb.c | 16 arch/powerpc/mm

[PATCH v3 03/18] powerpc/pseries: Stop selecting PPC_HASH_MMU_NATIVE

2021-10-21 Thread Nicholas Piggin
The pseries platform does not use the native hash code but the PAPR virtualised hash interfaces, so remove PPC_HASH_MMU_NATIVE. This requires moving tlbiel code from hash_native.c to hash_utils.c. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/book3s/64/tlbflush.h | 4 - arch/pow

[PATCH v3 02/18] powerpc: Rename PPC_NATIVE to PPC_HASH_MMU_NATIVE

2021-10-21 Thread Nicholas Piggin
PPC_NATIVE now only controls the native HPT code, so rename it to be more descriptive. Restrict it to Book3S only. Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/book3s64/Makefile | 2 +- arch/powerpc/mm/book3s64/hash_utils.c | 2 +- arch/powerpc/platforms/52xx/Kconfig|

[PATCH v3 00/18] powerpc: Make hash MMU code build configurable

2021-10-21 Thread Nicholas Piggin
Now that there's a platform that can make good use of it, here's a series that can prevent the hash MMU code being built for 64s platforms that don't need it. Since v2: - Split MMU_FTR_HPTE_TABLE clearing for radix boot into its own patch. - Remove memremap_compat_align from other sub archs entire

[PATCH v3 01/18] powerpc: Remove unused FW_FEATURE_NATIVE references

2021-10-21 Thread Nicholas Piggin
FW_FEATURE_NATIVE_ALWAYS and FW_FEATURE_NATIVE_POSSIBLE are always zero and never do anything. Remove them. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/firmware.h | 8 1 file changed, 8 deletions(-) diff --git a/arch/powerpc/include/asm/firmware.h b/arch/powerpc/includ

Re: [PATCH v3 01/25] PCI: Add PCI_ERROR_RESPONSE and it's related definitions

2021-10-21 Thread Pali Rohár
On Thursday 21 October 2021 20:37:26 Naveen Naidu wrote: > An MMIO read from a PCI device that doesn't exist or doesn't respond > causes a PCI error. There's no real data to return to satisfy the > CPU read, so most hardware fabricates ~0 data. > > Add a PCI_ERROR_RESPONSE definition for that and

Re: [PATCH v3 02/25] PCI: Set error response in config access defines when ops->read() fails

2021-10-21 Thread Pali Rohár
On Thursday 21 October 2021 20:37:27 Naveen Naidu wrote: > Make PCI_OP_READ and PCI_USER_READ_CONFIG set the data value with error > response (~0), when the PCI device read by a host controller fails. > > This ensures that the controller drivers no longer need to fabricate > (~0) value when they d

[PATCH] powerpc: Enhance pmem DMA bypass handling

2021-10-21 Thread Brian King
If ibm,pmemory is installed in the system, it can appear anywhere in the address space. This patch enhances how we handle DMA for devices when ibm,pmemory is present. In the case where we have enough DMA space to direct map all of RAM, but not ibm,pmemory, we use direct DMA for I/O to RAM and use t

Re: [PATCH V2] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-10-21 Thread Nathan Lynch
Nicholas Piggin writes: > Excerpts from Athira Rajeev's message of July 11, 2021 10:25 pm: >> During Live Partition Migration (LPM), it is observed that perf >> counter values reports zero post migration completion. However >> 'perf stat' with workload continues to show counts post migration >> si

Re: [PATCH V2] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-10-21 Thread Nathan Lynch
Athira Rajeev writes: > During Live Partition Migration (LPM), it is observed that perf > counter values reports zero post migration completion. However > 'perf stat' with workload continues to show counts post migration > since PMU gets disabled/enabled during sched switches. But incase > of syst

Re: [PATCH v4 5/8] PCI/DPC: Converge EDR and DPC Path of clearing AER registers

2021-10-21 Thread Bjorn Helgaas
On Thu, Oct 21, 2021 at 10:23:30PM +0530, Naveen Naidu wrote: > On 20/10, Bjorn Helgaas wrote: > > On Tue, Oct 05, 2021 at 10:48:12PM +0530, Naveen Naidu wrote: > > > In EDR path, AER status registers are cleared irrespective of whether > > > the error was an RP PIO or unmasked uncorrectable error

Re: [PATCH v4 4/8] PCI/DPC: Use pci_aer_clear_status() in dpc_process_error()

2021-10-21 Thread Bjorn Helgaas
On Thu, Oct 21, 2021 at 10:06:11PM +0530, Naveen Naidu wrote: > On 20/10, Bjorn Helgaas wrote: > > On Tue, Oct 05, 2021 at 10:48:11PM +0530, Naveen Naidu wrote: > > > dpc_process_error() clears both AER fatal and non fatal status > > > registers. Instead of clearing each status registers via a diff

Re: [PATCH v4 1/8] PCI/AER: Remove ID from aer_agent_string[]

2021-10-21 Thread Bjorn Helgaas
On Thu, Oct 21, 2021 at 10:00:21PM +0530, Naveen Naidu wrote: > On 20/10, Bjorn Helgaas wrote: > > On Tue, Oct 05, 2021 at 10:48:08PM +0530, Naveen Naidu wrote: > > > Currently, we do not print the "id" field in the AER error logs. Yet the > > > aer_agent_string[] has the word "id" in it. The AER e

Re: [PATCH v4 5/8] PCI/DPC: Converge EDR and DPC Path of clearing AER registers

2021-10-21 Thread Naveen Naidu
On 20/10, Bjorn Helgaas wrote: > [+cc Keith, Sinan, Oza] > > On Tue, Oct 05, 2021 at 10:48:12PM +0530, Naveen Naidu wrote: > > In the EDR path, AER registers are cleared *after* DPC error event is > > processed. The process stack in EDR is: > > > > edr_handle_event() > > dpc_process_error()

Re: [PATCH v4 4/8] PCI/DPC: Use pci_aer_clear_status() in dpc_process_error()

2021-10-21 Thread Naveen Naidu
On 20/10, Bjorn Helgaas wrote: > On Tue, Oct 05, 2021 at 10:48:11PM +0530, Naveen Naidu wrote: > > dpc_process_error() clears both AER fatal and non fatal status > > registers. Instead of clearing each status registers via a different > > function call use pci_aer_clear_status(). > > > > This help

Re: [PATCH v4 3/8] PCI/DPC: Initialize info->id in dpc_process_error()

2021-10-21 Thread Naveen Naidu
On 20/10, Bjorn Helgaas wrote: > On Tue, Oct 05, 2021 at 10:48:10PM +0530, Naveen Naidu wrote: > > In the dpc_process_error() path, info->id isn't initialized before being > > passed to aer_print_error(). In the corresponding AER path, it is > > initialized in aer_isr_one_error(). > > > > The erro

Re: [PATCH v4 1/8] PCI/AER: Remove ID from aer_agent_string[]

2021-10-21 Thread Naveen Naidu
On 20/10, Bjorn Helgaas wrote: > On Tue, Oct 05, 2021 at 10:48:08PM +0530, Naveen Naidu wrote: > > Currently, we do not print the "id" field in the AER error logs. Yet the > > aer_agent_string[] has the word "id" in it. The AER error log looks > > like: > > > > pcieport :00:03.0: PCIe Bus Er

Re: [PATCH 07/20] signal/powerpc: On swapcontext failure force SIGSEGV

2021-10-21 Thread Kees Cook
On Wed, Oct 20, 2021 at 12:43:53PM -0500, Eric W. Biederman wrote: > If the register state may be partial and corrupted instead of calling > do_exit, call force_sigsegv(SIGSEGV). Which properly kills the > process with SIGSEGV and does not let any more userspace code execute, > instead of just kil

[PATCH v3 19/25] PCI/DPC: Use RESPONSE_IS_PCI_ERROR() to check read from hardware

2021-10-21 Thread Naveen Naidu
An MMIO read from a PCI device that doesn't exist or doesn't respond causes a PCI error. There's no real data to return to satisfy the CPU read, so most hardware fabricates ~0 data. Use RESPONSE_IS_PCI_ERROR() to check the response we get when we read data from hardware. This helps unify PCI err

[PATCH v3 02/25] PCI: Set error response in config access defines when ops->read() fails

2021-10-21 Thread Naveen Naidu
Make PCI_OP_READ and PCI_USER_READ_CONFIG set the data value with error response (~0), when the PCI device read by a host controller fails. This ensures that the controller drivers no longer need to fabricate (~0) value when they detect error. It also gurantees that the error response (~0) is alw

[PATCH v3 01/25] PCI: Add PCI_ERROR_RESPONSE and it's related definitions

2021-10-21 Thread Naveen Naidu
An MMIO read from a PCI device that doesn't exist or doesn't respond causes a PCI error. There's no real data to return to satisfy the CPU read, so most hardware fabricates ~0 data. Add a PCI_ERROR_RESPONSE definition for that and use it where appropriate to make these checks consistent and easie

[PATCH v3 00/25] Unify PCI error response checking

2021-10-21 Thread Naveen Naidu
An MMIO read from a PCI device that doesn't exist or doesn't respond causes a PCI error. There's no real data to return to satisfy the CPU read, so most hardware fabricates ~0 data. This patch series adds PCI_ERROR_RESPONSE definition and other helper definition SET_PCI_ERROR_RESPONSE and RESPON

Re: coherency issue observed after hotplug on POWER8

2021-10-21 Thread Krzysztof Kozlowski
On 24/09/2021 19:17, Naveen N. Rao wrote: > Hi Cascardo, > Thanks for reporting this. > > > Thadeu Lima de Souza Cascardo wrote: >> Hi, there. >> >> We have been investigating an issue we have observed on POWER8 POWERNV >> systems. >> When running the kernel selftests reuseport_bpf_cpu after a C

Re: [PATCH 21/20] signal: Replace force_sigsegv(SIGSEGV) with force_fatal_sig(SIGSEGV)

2021-10-21 Thread Eric W. Biederman
Geert Uytterhoeven writes: > Hi Eric, > > Patch 21/20? In reviewing another part of the patchset Linus asked if force_sigsegv could go away. It can't completely but I can get this far. Given that it is just a cleanup it makes most sense to me as an additional patch on top of what is already he

Re: [PATCH v2] powerpc/pseries/mobility: ignore ibm, platform-facilities updates

2021-10-21 Thread Nathan Lynch
Daniel Axtens writes: >> On VMs with NX encryption, compression, and/or RNG offload, these >> capabilities are described by nodes in the ibm,platform-facilities device >> tree hierarchy: >> >> $ tree -d /sys/firmware/devicetree/base/ibm,platform-facilities/ >> /sys/firmware/devicetree/base/ibm

[GIT PULL] Please pull powerpc/linux.git powerpc-5.15-5 tag

2021-10-21 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.15: The following changes since commit cdeb5d7d890e14f3b70e8087e745c4a6a7d9f337: KVM: PPC: Book3S HV: Make idle_kvm_start_guest() return 0 if it went to guest (2021-10-16 00:40:03 +1100) are

Re: [PATCH v2] powerpc/smp: do not decrement idle task preempt count in CPU offline

2021-10-21 Thread Michael Ellerman
On Fri, 15 Oct 2021 12:39:02 -0500, Nathan Lynch wrote: > With PREEMPT_COUNT=y, when a CPU is offlined and then onlined again, we > get: > > BUG: scheduling while atomic: swapper/1/0/0x > no locks held by swapper/1/0. > CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.0-rc2+ #100 > Call Trac

Re: [PATCH] powerpc/idle: Don't corrupt back chain when going idle

2021-10-21 Thread Michael Ellerman
On Wed, 20 Oct 2021 20:48:26 +1100, Michael Ellerman wrote: > In isa206_idle_insn_mayloss() we store various registers into the stack > red zone, which is allowed. > > However inside the IDLE_STATE_ENTER_SEQ_NORET macro we save r2 again, > to 0(r1), which corrupts the stack back chain. > > We use

[PATCH] powerpc: mpc8349emitx: Make mcu_gpiochip_remove() return void

2021-10-21 Thread Uwe Kleine-König
Up to now mcu_gpiochip_remove() returns zero unconditionally. Make it return void instead which makes it easier to see in the callers that there is no error to handle. Also the return value of i2c remove callbacks is ignored anyway. Signed-off-by: Uwe Kleine-König --- arch/powerpc/platforms/83x

Re: [PATCH V2] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-10-21 Thread Nicholas Piggin
Excerpts from Athira Rajeev's message of July 11, 2021 10:25 pm: > During Live Partition Migration (LPM), it is observed that perf > counter values reports zero post migration completion. However > 'perf stat' with workload continues to show counts post migration > since PMU gets disabled/enabled d

Re: [PATCH v11 0/3] make hvc pass dma capable memory to its backend

2021-10-21 Thread Xianting Tian
I am very glad to get this reply:) Thank you and other experts' kindly help and guide, which improved me a lot. 在 2021/10/21 下午4:35, Greg KH 写道: On Fri, Oct 15, 2021 at 10:46:55AM +0800, Xianting Tian wrote: Dear all, This patch series make hvc framework pass DMA capable memory to put_chars()

Re: [PATCH v11 0/3] make hvc pass dma capable memory to its backend

2021-10-21 Thread Greg KH
On Fri, Oct 15, 2021 at 10:46:55AM +0800, Xianting Tian wrote: > Dear all, > > This patch series make hvc framework pass DMA capable memory to > put_chars() of hvc backend(eg, virtio-console), and revert commit > c4baad5029 ("virtio-console: avoid DMA from stack”) Thanks for sticking with this, l

Re: [PATCH 21/20] signal: Replace force_sigsegv(SIGSEGV) with force_fatal_sig(SIGSEGV)

2021-10-21 Thread Philippe Mathieu-Daudé
On Wed, Oct 20, 2021 at 11:52 PM Eric W. Biederman wrote: > > > Now that force_fatal_sig exists it is unnecessary and a bit confusing > to use force_sigsegv in cases where the simpler force_fatal_sig is > wanted. So change every instance we can to make the code clearer. > > Signed-off-by: "Eric W

Re: [PATCH 21/20] signal: Replace force_sigsegv(SIGSEGV) with force_fatal_sig(SIGSEGV)

2021-10-21 Thread Geert Uytterhoeven
Hi Eric, Patch 21/20? On Wed, Oct 20, 2021 at 11:52 PM Eric W. Biederman wrote: > Now that force_fatal_sig exists it is unnecessary and a bit confusing > to use force_sigsegv in cases where the simpler force_fatal_sig is > wanted. So change every instance we can to make the code clearer. > > Si

Re: [PATCH v2 16/16] powerpc/microwatt: Don't select the hash MMU code

2021-10-21 Thread Nicholas Piggin
Excerpts from Joel Stanley's message of October 21, 2021 3:19 pm: > On Thu, 21 Oct 2021 at 04:04, Nicholas Piggin wrote: >> >> Microwatt is radix-only, so it does not require hash MMU support. >> >> This saves 20kB compressed dtbImage and 56kB vmlinux size. >> >> Signed-off-by: Nicholas Piggin >>

Re: [PATCH v2 13/16] powerpc/64s: Move hash MMU code under a new Kconfig name

2021-10-21 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 21, 2021 3:43 pm: > > > Le 21/10/2021 à 05:54, Nicholas Piggin a écrit : >> Introduce a new option CONFIG_PPC_64S_HASH_MMU, and make 64s hash >> code depend on it. >> >> Signed-off-by: Nicholas Piggin >> --- >> arch/powerpc/Kconfig

Re: [PATCH v2 12/16] powerpc/64e: remove mmu_linear_psize

2021-10-21 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 21, 2021 3:03 pm: > > > Le 21/10/2021 à 05:54, Nicholas Piggin a écrit : >> mmu_linear_psize is only set at boot once on 64e, is not necessarily >> the correct size of the linear map pages, and is never used anywhere >> except memremap_compat_al

Re: [PATCH v2 11/16] powerpc/64: pcpu setup avoid reading mmu_linear_psize on 64e or radix

2021-10-21 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 21, 2021 2:52 pm: > > > Le 21/10/2021 à 05:54, Nicholas Piggin a écrit : >> Radix never sets mmu_linear_psize so it's always 4K, which causes pcpu >> atom_size to always be PAGE_SIZE. 64e sets it to 1GB always. >> >> Make paths for these platfo