Re: [RESEND][v2][PATCH] KVM: PPC: Book3S HV: Migrate pinned pages out of CMA

2016-09-06 Thread Balbir Singh
On 06/09/16 15:49, Aneesh Kumar K.V wrote: > Balbir Singh writes: > >> From: Balbir Singh >> Subject: [RESEND][v2][PATCH] KVM: PPC: Book3S HV: Migrate pinned pages out >> of CMA >> >> When PCI Device pass-through is enabled via VFIO, KVM-PPC will >> pin pages using get_user_pages_fast(). One

[PATCH] hwrng: pasemi-rng - Use linux/io.h instead of asm/io.h

2016-09-06 Thread PrasannaKumar Muralidharan
Checkpatch.pl warns about usage of asm/io.h. Use linux/io.h instead. Signed-off-by: PrasannaKumar Muralidharan --- drivers/char/hw_random/pasemi-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/pasemi-rng.c in

[v11, 0/8] Fix eSDHC host version register bug

2016-09-06 Thread Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To match the SoC version and revision, 10 previous version patchsets had tried many methods but all of them were rejected by reviewers. Such as - dts compatible method - syscon method

[v11, 1/8] dt: bindings: update Freescale DCFG compatible

2016-09-06 Thread Yangbo Lu
Update Freescale DCFG compatible with 'fsl,-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips such as ls1021a, ls1043a, and ls2080a. Signed-off-by: Yangbo Lu Acked-by: Rob Herring Signed-off-by: Scott Wood --- Changes for v8: - Added this patch Changes for v9: - Added a

[v11, 2/8] ARM64: dts: ls2080a: add device configuration node

2016-09-06 Thread Yangbo Lu
Add the dts node for device configuration unit that provides general purpose configuration and status for the device. Signed-off-by: Yangbo Lu Acked-by: Scott Wood --- Changes for v5: - Added this patch Changes for v6: - None Changes for v7: - None Changes for v8:

[v11, 3/8] dt: bindings: move guts devicetree doc out of powerpc directory

2016-09-06 Thread Yangbo Lu
Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property. Signed-off-by: Yangbo Lu Acked-by: Rob Herring Acked-by: Scott Wood --- Changes for v4: - Added this patch Chang

[v11, 4/8] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-09-06 Thread Yangbo Lu
Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. This SVR numberspace is used on some ARM chips as well as PPC, and even to check for a PPC SVR multi-arch drivers would otherwise need to ifdef the header inclusion and all references to the SVR symbols. Signed-of

[v11, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-09-06 Thread Yangbo Lu
The global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control. This patch adds a driver to manage and access global utilities block. Initially only reading SVR and regis

[v11, 6/8] MAINTAINERS: add entry for Freescale SoC drivers

2016-09-06 Thread Yangbo Lu
Add maintainer entry for Freescale SoC drivers including the QE library and the GUTS driver now. Also add maintainer for QE library. Signed-off-by: Yangbo Lu Acked-by: Scott Wood Acked-by: Qiang Zhao --- Changes for v8: - Added this patch Changes for v9: - Added linux-arm mail l

[v11, 7/8] base: soc: introduce soc_device_match() interface

2016-09-06 Thread Yangbo Lu
We keep running into cases where device drivers want to know the exact version of the a SoC they are currently running on. In the past, this has usually been done through a vendor specific API that can be called by a driver, or by directly accessing some kind of version register that is not part of

[v11, 8/8] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-09-06 Thread Yangbo Lu
The eSDHC of T4240-R1.0-R2.0 has incorrect vender version and spec version. Acturally the right version numbers should be VVN=0x13 and SVN = 0x1. This patch adds the GUTS driver support for eSDHC driver to match SoC. And fix host version to avoid that incorrect version numbers break down the ADMA d

Re: [PATCH 01/13] perf/core: Add perf_arch_regs and mask to perf_regs structure

2016-09-06 Thread Peter Zijlstra
On Tue, Sep 06, 2016 at 09:55:43AM +0530, Madhavan Srinivasan wrote: > > > On Thursday 01 September 2016 12:56 PM, Peter Zijlstra wrote: > >On Mon, Aug 29, 2016 at 02:30:46AM +0530, Madhavan Srinivasan wrote: > >>It's a perennial request from hardware folks to be able to > >>see the raw values of

Re: [v11, 7/8] base: soc: introduce soc_device_match() interface

2016-09-06 Thread Ulf Hansson
On 6 September 2016 at 10:28, Yangbo Lu wrote: > We keep running into cases where device drivers want to know the exact > version of the a SoC they are currently running on. In the past, this has > usually been done through a vendor specific API that can be called by a > driver, or by directly acc

[PATCH] powerpc: Remove all usages of NO_IRQ

2016-09-06 Thread Michael Ellerman
NO_IRQ has been == 0 on powerpc for just over ten years (since commit 0ebfff1491ef ("[POWERPC] Add new interrupt mapping core and change platforms to use it")). It's also 0 on most other arches. Although it's fairly harmless, every now and then it causes confusion when a driver is built on powerpc

Re: [PATCH v3] KVM: PPC: Book3S HV: Migrate pinned pages out of CMA

2016-09-06 Thread Anshuman Khandual
On 09/06/2016 11:57 AM, Balbir Singh wrote: > > When PCI Device pass-through is enabled via VFIO, KVM-PPC will > pin pages using get_user_pages_fast(). One of the downsides of > the pinning is that the page could be in CMA region. The CMA > region is used for other allocations like the hash page t

How to submit patche to this list?

2016-09-06 Thread MeghanSaitwal
Hi, I want to know about the procedure to submit the patch to this list. Thanks, Meghan Saitwal

[PATCH] powerpc: squash lines for simple wrapper functions

2016-09-06 Thread Masahiro Yamada
Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada --- arch/powerpc/kernel/ptrace.c| 42 ++--- arch/powerpc/kvm/booke.c| 5 +--- arch/powerpc/platforms/ps3/repository.c | 22 - 3 files changed, 18 in

[PATCH] ALSA: squash lines for simple wrapper functions

2016-09-06 Thread Masahiro Yamada
Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada --- sound/aoa/fabrics/layout.c | 7 +-- sound/pci/asihpi/hpifunc.c | 7 ++- sound/pci/ctxfi/ctvmem.c| 6 +- sound/pci/emu10k1/p16v.c

Re: [v11, 7/8] base: soc: introduce soc_device_match() interface

2016-09-06 Thread Arnd Bergmann
On Tuesday, September 6, 2016 1:44:23 PM CEST Ulf Hansson wrote: > On 6 September 2016 at 10:28, Yangbo Lu wrote: > > We keep running into cases where device drivers want to know the exact > > version of the a SoC they are currently running on. In the past, this has > > usually been done through a

Re: How to submit patche to this list?

2016-09-06 Thread Arnd Bergmann
On Monday, September 5, 2016 8:37:24 AM CEST meghansait...@eaton.com wrote: > > I want to know about the procedure to submit the patch to this list. > > See Documentation/SubmittingPatches in the kernel sources. Arnd

[PATCH v3 0/9] ima: carry the measurement list across kexec

2016-09-06 Thread Mimi Zohar
The TPM PCRs are only reset on a hard reboot. In order to validate a TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list of the running kernel must be saved and then restored on the subsequent boot, possibly of a different architecture. The existing securityfs binary_runtime_

[PATCH v3 2/9] ima: permit duplicate measurement list entries

2016-09-06 Thread Mimi Zohar
Measurements carried across kexec need to be added to the IMA measurement list, but should not prevent measurements of the newly booted kernel from being added to the measurement list. This patch adds support for allowing duplicate measurements. The "boot_aggregate" measurement entry is the delimi

[PATCH v3 1/9] ima: on soft reboot, restore the measurement list

2016-09-06 Thread Mimi Zohar
The TPM PCRs are only reset on a hard reboot. In order to validate a TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list of the running kernel must be saved and restored on boot. This patch restores the measurement list. Changelog v2: - redefined ima_kexec_hdr to use types w

[PATCH v3 3/9] ima: maintain memory size needed for serializing the measurement list

2016-09-06 Thread Mimi Zohar
In preparation for serializing the binary_runtime_measurements, this patch maintains the amount of memory required. Changelog v3: - include the ima_kexec_hdr size in the binary_runtime_measurement size. Signed-off-by: Mimi Zohar --- security/integrity/ima/Kconfig | 12 + security/in

[PATCH v3 4/9] ima: serialize the binary_runtime_measurements

2016-09-06 Thread Mimi Zohar
The TPM PCRs are only reset on a hard reboot. In order to validate a TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list of the running kernel must be saved and restored on boot. This patch serializes the IMA measurement list in the binary_runtime_measurements format. Signed

[PATCH v3 5/9] ima: on soft reboot, save the measurement list

2016-09-06 Thread Mimi Zohar
From: Thiago Jung Bauermann This patch uses the kexec buffer passing mechanism to pass the serialized IMA binary_runtime_measurements to the next kernel. Changelog v3: - Request a kexec segment for storing the measurement list a half page, not a full page, more than needed for additional measure

[PATCH v3 6/9] ima: store the builtin/custom template definitions in a list

2016-09-06 Thread Mimi Zohar
The builtin and single custom templates are currently stored in an array. In preparation for being able to restore a measurement list containing multiple builtin/custom templates, this patch stores the builtin and custom templates as a linked list. This will permit defining more than one custom t

[PATCH v3 7/9] ima: support restoring multiple template formats

2016-09-06 Thread Mimi Zohar
The configured IMA measurement list template format can be replaced at runtime on the boot command line, including a custom template format. This patch adds support for restoring a measuremement list containing multiple builtin/custom template formats. Changelog v3: - initialize template format li

[PATCH v3 8/9] ima: define a canonical binary_runtime_measurements list format

2016-09-06 Thread Mimi Zohar
The IMA binary_runtime_measurements list is currently in platform native format. To allow restoring a measurement list carried across kexec with a different endianness than the targeted kernel, this patch defines little-endian as the canonical format. For big endian systems wanting to save/restor

[PATCH v3 9/9] ima: platform-independent hash value

2016-09-06 Thread Mimi Zohar
From: Andreas Steffen For remote attestion it is important for the ima measurement values to be platform-independent. Therefore integer fields to be hashed must be converted to canonical format. Changelog: - Define canonical format as little endian (Mimi) Signed-off-by: Andreas Steffen Signed-

Re: [PATCH] powerpc: Remove all usages of NO_IRQ

2016-09-06 Thread Arnd Bergmann
On Tuesday, September 6, 2016 9:53:24 PM CEST Michael Ellerman wrote: > drivers/macintosh/macio_asic.c | 4 ++-- > drivers/macintosh/rack-meter.c | 2 +- > drivers/macintosh/smu.c | 18 +- > drivers/macintosh/via-cuda.c

Re: [PATCH v4 3/5] PCI: Do not disable memory decoding in pci_reassigndev_resource_alignment()

2016-09-06 Thread Bjorn Helgaas
On Fri, Aug 12, 2016 at 01:42:24PM +0800, Yongji Xie wrote: > We should not disable memory decoding when we reassign alignment > in pci_reassigndev_resource_alignment(). It's meaningless and > have some side effects. For example, we found it would break > this kind of P2P bridge: > > 0001:02:02.0

Re: [PATCH v4 5/5] PCI: Add a macro to set default alignment for all PCI devices

2016-09-06 Thread Bjorn Helgaas
On Fri, Aug 12, 2016 at 01:42:26PM +0800, Yongji Xie wrote: > When vfio passthroughs a PCI device of which MMIO BARs are > smaller than PAGE_SIZE, guest will not handle the mmio > accesses to the BARs which leads to mmio emulations in host. > > This is because vfio will not allow to passthrough on

Re: [RFC] fs: add userspace critical mounts event support

2016-09-06 Thread Linus Torvalds
On Tue, Sep 6, 2016 at 10:46 AM, Bjorn Andersson wrote: > > Linus, I reversed the order of your questions/answers to fit my answer > better. Nobody has actually answered the "why don't we just tie the firmware and module together" question. Really. If the driver doesn't work without the firmware

[PATCH 0/3] corenet: Add power/reset support to Cyrus

2016-09-06 Thread Andy Fleming
Cyrus has gpio pins for power and reset, so we should support them Andy Fleming (3): cyrus: Add poweroff/reset support corenet: Support gpio power/reset for corenet Cyrus: create a defconfig arch/powerpc/Makefile | 5 + arch/powerpc/boot/dts/fsl/cyrus_p5020.dts

[PATCH 1/3] cyrus: Add poweroff/reset support

2016-09-06 Thread Andy Fleming
Cyrus uses GPIOs to complete board shutdown/reset. Add nodes to indicate that support to the device tree. Signed-off-by: Andy Fleming --- arch/powerpc/boot/dts/fsl/cyrus_p5020.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts b/arch/p

[PATCH 2/3] corenet: Support gpio power/reset for corenet

2016-09-06 Thread Andy Fleming
Boards can implement power and reset functionality over gpio using these drivers: drivers/power/reset/gpio-poweroff.c drivers/power/reset/gpio-restart.c While not all corenet boards use gpio for power/reset, this support can be added without interfering with boards that do not use this functio

[PATCH 3/3] Cyrus: create a defconfig

2016-09-06 Thread Andy Fleming
This sets up the proper config elements for Power and Reset to work properly (using the gpio pins). Signed-off-by: Andy Fleming --- arch/powerpc/Makefile | 5 + arch/powerpc/configs/cyrus_basic_defconfig | 9 + 2 files changed, 14 insertions(+) create mode 10064

Re: [PATCH 2/6] cxlflash: Remove the device cleanly in the system shutdown path

2016-09-06 Thread Uma Krishnan
On 9/5/2016 2:12 AM, Andrew Donnellan wrote: On 03/09/16 06:39, Uma Krishnan wrote: Commit 704c4b0ddc03 ("cxlflash: Shutdown notify support for CXL Flash cards") was recently introduced to notify the AFU when a system is going down. Due to the position of the cxlflash driver in the device stac

Re: [PATCH 3/3] Cyrus: create a defconfig

2016-09-06 Thread Scott Wood
On 09/06/2016 02:12 PM, Andy Fleming wrote: > This sets up the proper config elements for Power and Reset to work > properly (using the gpio pins). > > Signed-off-by: Andy Fleming > --- > arch/powerpc/Makefile | 5 + > arch/powerpc/configs/cyrus_basic_defconfig | 9 +

Re: [RFC] fs: add userspace critical mounts event support

2016-09-06 Thread Bjorn Andersson
On Fri 02 Sep 21:11 PDT 2016, Linus Torvalds wrote: Linus, I reversed the order of your questions/answers to fit my answer better. > On Fri, Sep 2, 2016 at 5:20 PM, Luis R. Rodriguez wrote: > > > > Thoughts ? > What are the drivers that need this, and why can't those drivers just > be fixed to n

Build regression introduced by 31cdd0c39c7544ced79da53aa0b7e989f3a39582

2016-09-06 Thread John Paul Adrian Glaubitz
Hi Paul! I'm referring to your change [1]: "powerpc/xmon: Fix SPR read/write commands and add command to dump SPRs" which introduced assembly code in the new file arch/powerpc/xmon/spr_access.S. Unfortunately, this code contains assembly instructions which are not available on all ppc targets.

Re: [RFC] fs: add userspace critical mounts event support

2016-09-06 Thread Bjorn Andersson
On Tue 06 Sep 11:32 PDT 2016, Linus Torvalds wrote: > On Tue, Sep 6, 2016 at 10:46 AM, Bjorn Andersson > wrote: > > > > Linus, I reversed the order of your questions/answers to fit my answer > > better. > > Nobody has actually answered the "why don't we just tie the firmware > and module togethe

Re: [RFC] fs: add userspace critical mounts event support

2016-09-06 Thread Linus Torvalds
On Tue, Sep 6, 2016 at 2:11 PM, Bjorn Andersson wrote: > On Tue 06 Sep 11:32 PDT 2016, Linus Torvalds wrote: > >> On Tue, Sep 6, 2016 at 10:46 AM, Bjorn Andersson >> Nobody has actually answered the "why don't we just tie the firmware >> and module together" question. > > The answer to this depend

Re: [RFC] fs: add userspace critical mounts event support

2016-09-06 Thread Luis R. Rodriguez
On Sat, Sep 03, 2016 at 11:10:02AM -0700, Dmitry Torokhov wrote: > On Sat, Sep 3, 2016 at 11:01 AM, Linus Torvalds > wrote: > > On Sat, Sep 3, 2016 at 10:49 AM, Dmitry Torokhov > > wrote: > >> > >> Unfortunately module loading and availability of firmware is very > >> loosely coupled. > > > > The

Re: [RFC] fs: add userspace critical mounts event support

2016-09-06 Thread Bjorn Andersson
On Tue 06 Sep 14:52 PDT 2016, Luis R. Rodriguez wrote: > We already have MODULE_FIRMWARE(), we could have MODULE_FIRMWARE_REQ() or > something like it to help annotate the the driver was only functional with the > firmware, punt things to kmod to deal with the requirements. That implies that a si

Re: [PATCH 2/3] corenet: Support gpio power/reset for corenet

2016-09-06 Thread Scott Wood
On 09/06/2016 02:12 PM, Andy Fleming wrote: > Boards can implement power and reset functionality over gpio using > these drivers: > drivers/power/reset/gpio-poweroff.c > drivers/power/reset/gpio-restart.c > > While not all corenet boards use gpio for power/reset, this > support can be added wi

Re: [RFC] fs: add userspace critical mounts event support

2016-09-06 Thread Luis R. Rodriguez
On Tue, Sep 06, 2016 at 11:32:05AM -0700, Linus Torvalds wrote: > On Tue, Sep 6, 2016 at 10:46 AM, Bjorn Andersson > wrote: > > > > Linus, I reversed the order of your questions/answers to fit my answer > > better. > > Nobody has actually answered the "why don't we just tie the firmware This is

Re: [PATCH] powerpc/8xx: add system_reset_exception

2016-09-06 Thread Scott Wood
On Mon, 2016-09-05 at 08:42 +0200, Christophe Leroy wrote: > When the watchdog is in NMI mode, the system reset interrupt is > generated when the watchdog counter expires. > > Signed-off-by: Christophe Leroy > --- >  arch/powerpc/kernel/head_8xx.S | 2 +- >  arch/powerpc/kernel/traps.c| 2 +- >

Re: [RFC] fs: add userspace critical mounts event support

2016-09-06 Thread Luis R. Rodriguez
On Tue, Sep 06, 2016 at 02:50:51PM -0700, Linus Torvalds wrote: > On Tue, Sep 6, 2016 at 2:11 PM, Bjorn Andersson > wrote: > > On Tue 06 Sep 11:32 PDT 2016, Linus Torvalds wrote: > > > >> On Tue, Sep 6, 2016 at 10:46 AM, Bjorn Andersson > >> Nobody has actually answered the "why don't we just tie

Re: [RFC] fs: add userspace critical mounts event support

2016-09-06 Thread Luis R. Rodriguez
On Tue, Sep 06, 2016 at 03:28:47PM -0700, Bjorn Andersson wrote: > On Tue 06 Sep 14:52 PDT 2016, Luis R. Rodriguez wrote: > > > We already have MODULE_FIRMWARE(), we could have MODULE_FIRMWARE_REQ() or > > something like it to help annotate the the driver was only functional with > > the > > firm

Re: Kexec regression in next-20160906

2016-09-06 Thread Thiago Jung Bauermann
Hello Tony, Am Dienstag, 06 September 2016, 15:09:37 schrieb Tony Lindgren: > Looks like commit 5c01cdd2d4bc ("kexec_file: allow skipping checksum > calculation for some segments") makes next-20160916 stop working for > me at least on ARM. > > I now get "kexec_load failed: Invalid argument error"

Re: [PATCH v3] KVM: PPC: Book3S HV: Migrate pinned pages out of CMA

2016-09-06 Thread Balbir Singh
On 06/09/16 21:54, Anshuman Khandual wrote: > On 09/06/2016 11:57 AM, Balbir Singh wrote: >> >> When PCI Device pass-through is enabled via VFIO, KVM-PPC will >> pin pages using get_user_pages_fast(). One of the downsides of >> the pinning is that the page could be in CMA region. The CMA >> regio

[PATCH v4 2/5] firmware: annotate thou shalt not request fw on init or probe

2016-09-06 Thread Luis R. Rodriguez
Thou shalt not make firmware calls early on init or probe. systemd already ripped support out for the usermode helper a while ago, there are still users that require the usermode helper, however systemd's use of the usermode helper exacerbated a long lasting issue of the fact that we have many dri

Re: [PATCH v4 3/5] kexec_file: Allow skipping checksum calculation for some segments.

2016-09-06 Thread Eric W. Biederman
Thiago Jung Bauermann writes: 2> Add skip_checksum member to struct kexec_buf to specify whether the > corresponding segment should be part of the checksum calculation. > > The next patch will add a way to update segments after a kimage is loaded. > Segments that will be updated in this way shoul

Re: [PATCH v4 5/5] PCI: Add a macro to set default alignment for all PCI devices

2016-09-06 Thread Yongji Xie
On 2016/9/7 0:59, Bjorn Helgaas wrote: On Fri, Aug 12, 2016 at 01:42:26PM +0800, Yongji Xie wrote: When vfio passthroughs a PCI device of which MMIO BARs are smaller than PAGE_SIZE, guest will not handle the mmio accesses to the BARs which leads to mmio emulations in host. This is because vfio

RE: [v11, 7/8] base: soc: introduce soc_device_match() interface

2016-09-06 Thread Y.B. Lu
Hi Anrd and Uffe, Thank you for your comment. Please see my comment inline. Best regards, Yangbo Lu > -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Tuesday, September 06, 2016 8:46 PM > To: Ulf Hansson > Cc: Y.B. Lu; linux-mmc; Scott Wood; linuxppc-dev@lists.o

Re: [PATCH 3/3] powerpc/mm: Speed up computation of base and actual page size for a HPTE

2016-09-06 Thread Paul Mackerras
On Mon, Sep 05, 2016 at 10:34:16AM +0530, Aneesh Kumar K.V wrote: > > +static void init_hpte_page_sizes(void) > > +{ > > + long int ap, bp; > > + long int shift, penc; > > + > > + for (bp = 0; bp < MMU_PAGE_COUNT; ++bp) { > > + if (!mmu_psize_defs[bp].shift) > > +

Re: Build regression introduced by 31cdd0c39c7544ced79da53aa0b7e989f3a39582

2016-09-06 Thread Paul Mackerras
On Tue, Sep 06, 2016 at 11:01:02PM +0200, John Paul Adrian Glaubitz wrote: > Hi Paul! > > I'm referring to your change [1]: > > "powerpc/xmon: Fix SPR read/write commands and add command to dump SPRs" > > which introduced assembly code in the new file arch/powerpc/xmon/spr_access.S. > > Unfortu

Re: [PATCH] powerpc/8xx: add system_reset_exception

2016-09-06 Thread Christophe Leroy
Le 07/09/2016 à 00:40, Scott Wood a écrit : On Mon, 2016-09-05 at 08:42 +0200, Christophe Leroy wrote: When the watchdog is in NMI mode, the system reset interrupt is generated when the watchdog counter expires. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 2 +- arch

[PATCH] powernv: Restore SPRs correctly upon wake up from hypervisor state loss

2016-09-06 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" pnv_wakeup_tb_loss function currently expects the cr4 to be "eq" if the CPU is waking up from a complete hypervisor state loss. Hence, it currently restores the SPR contents only if cr4 is "eq". However, after the commit bcef83a00dc4 ("powerpc/powernv: Add platform supp

Re: [PATCH 2/3] powerpc/mm: Preserve CFAR value on SLB miss caused by access to bogus address

2016-09-06 Thread Paul Mackerras
On Sun, Sep 04, 2016 at 05:00:13PM +0530, Aneesh Kumar K.V wrote: [snip] > > @@ -1389,6 +1393,7 @@ unrecover_mce: > > * r3 has the faulting address > > * r9 - r13 are saved in paca->exslb. > > * r3 is saved in paca->slb_r3 > > + * cr6.eq is set for a D-SLB miss, clear for a I-SLB miss > > *

[PATCH v2 3/3] powerpc/mm: Speed up computation of base and actual page size for a HPTE

2016-09-06 Thread Paul Mackerras
This replaces a 2-D search through an array with a simple 8-bit table lookup for determining the actual and/or base page size for a HPT entry. The encoding in the second doubleword of the HPTE is designed to encode the actual and base page sizes without using any more bits than would be needed for