[PATCH 1/2] powerpc/mm/book3s/radix: Drop the unnecessary retry when creating linear mapping

2018-07-18 Thread Aneesh Kumar K.V
Checking for mapping_size != PAGE_SIZE should make sure we handle the split_text_mapping correctly. Drop the retry loop. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/pgtable-radix.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/mm/pgtabl

[PATCH 2/2] powerpc/mm/book3s/radix: Add mapping statistics

2018-07-18 Thread Aneesh Kumar K.V
Add statistics that show how memory is mapped within the kernel linear mapping. This is similar to commit 37cd944c8d8f ("s390/pgtable: add mapping statistics") We don't do this with Hash translation mode. Hash uses one size (mmu_linear_psize) to map the kernel linear mapping and we print the line

Re: [RESEND][PATCH] powerpc/powernv : Save/Restore SPRG3 on entry/exit from stop.

2018-07-18 Thread Gautham R Shenoy
Hello Mikey, On Wed, Jul 18, 2018 at 09:24:19AM +1000, Michael Neuling wrote: > > > DEFINE(PPC_DBELL_SERVER, PPC_DBELL_SERVER); > > diff --git a/arch/powerpc/kernel/idle_book3s.S > > b/arch/powerpc/kernel/idle_book3s.S > > index d85d551..5069d42 100644 > > --- a/arch/powerpc/kernel/idle_book3

Re: [PATCH] ipmi/powernv: Fix spurious warnings at boot

2018-07-18 Thread Jeremy Kerr
Hi William, Sometimes we have stale messages showing up in the recv queue that are being processed by the pollers. We don't want to print out warnings for these messages not having an outstanding request as they can be expected when doing a kexec from the petitroot environment or from another ru

[PATCH v2] powerpc/powernv : Save/Restore SPRG3 on entry/exit from stop.

2018-07-18 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" On 64-bit servers, SPRN_SPRG3 and its userspace read-only mirror SPRN_USPRG3 are used as userspace VDSO write and read registers respectively. SPRN_SPRG3 is lost when we enter stop4 and above, and is currently not restored. As a result, any read from SPRN_USPRG3 return

Re: [PATCH] powerpc/prom_init: remove linux,stdout-package property

2018-07-18 Thread Michael Ellerman
Hi Murilo, Thanks for the patch. Murilo Opsfelder Araujo writes: > This property was added in 2004 by > > > https://github.com/mpe/linux-fullhistory/commit/689fe5072fe9a0dec914bfa4fa60aed1e54563e6 > > and the only use of it, which was already inside `#if 0`, was removed a month > later by >

Re: [PATCH] Mark ams driver as orphaned in MAINTAINERS

2018-07-18 Thread Michael Ellerman
Michael Hanselmann writes: > I no longer have any hardware with the Apple motion sensor and thus > relinquish maintainership of the driver. Thanks. I think I'll just remove the whole entry, meaning it will be caught under the "LINUX FOR POWER MACINTOSH" entry. Unless you object. Full patch belo

Re: [PATCH 2/3] [v2] m68k: mac: use time64_t in RTC handling

2018-07-18 Thread Geert Uytterhoeven
On Tue, Jun 19, 2018 at 4:04 PM Arnd Bergmann wrote: > The real-time clock on m68k (and powerpc) mac systems uses an unsigned > 32-bit value starting in 1904, which overflows in 2040, about two years > later than everyone else, but this gets wrapped around in the Linux > code in 2038 already becau

Re: [PATCH 3/3] [v2] m68k: remove unused set_clock_mmss() helpers

2018-07-18 Thread Geert Uytterhoeven
On Tue, Jun 19, 2018 at 4:04 PM Arnd Bergmann wrote: > Commit 397ac99c6cef ("m68k: remove dead timer code") removed set_rtc_mmss() > because it was unused in 2012. However, this was itself the only user of the > mach_set_clock_mmss() callback and the many implementations of that callback, > which

[PATCH 3/3] powerpc/dts/fsl: t2080rdb: use the Cortina PHY driver compatible

2018-07-18 Thread Camelia Groza
The Cortina PHY requires the use of the dedicated Cortina PHY driver instead of the generic one. Signed-off-by: Camelia Groza --- arch/powerpc/boot/dts/fsl/t2080rdb.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/boot/dts/fsl/t2080rdb.dts b/arch/powerpc/

[PATCH 2/3] powerpc/dts/fsl: t4240rdb: use the Cortina PHY driver compatible

2018-07-18 Thread Camelia Groza
The Cortina PHY requires the use of the dedicated Cortina PHY driver instead of the generic one. Signed-off-by: Camelia Groza --- arch/powerpc/boot/dts/fsl/t4240rdb.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/boot/dts/fsl/t4240rdb.dts b/arch/powe

[PATCH 1/3] powerpc/configs/dpaa: enable the Cortina PHY driver

2018-07-18 Thread Camelia Groza
Cortina PHYs are present on T4240RDB and T2080RDB. Enable the driver by default. Signed-off-by: Camelia Groza --- arch/powerpc/configs/dpaa.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config index 2fe76f5..4ffacaf 100644

[PATCH 0/3] powerpc/dpaa: use the Cortina PHY driver

2018-07-18 Thread Camelia Groza
The Cortina PHY on T2080RDB and T4240RDB requires the use of the dedicated Cortina PHY driver. This patch series enables it for DPAA platforms and uses it on T4240RDB and T2080RDB. Camelia Groza (3): powerpc/configs/dpaa: enable the Cortina PHY driver powerpc/dts/fsl: t4240rdb: use the Cortina

Re: [PATCH 2/3] [v2] m68k: mac: use time64_t in RTC handling

2018-07-18 Thread Finn Thain
On Wed, 18 Jul 2018, Geert Uytterhoeven wrote: > > Thanks for your patch! > > Applied and queued for v4.19, with the WARN_ON() dropped. > The patch you've committed to your for-v4.19 branch has this hunk: @@ -269,8 +275,12 @@ static long via_read_time(void) via_pram_command(0x

Re: [PATCH 2/3] [v2] m68k: mac: use time64_t in RTC handling

2018-07-18 Thread Arnd Bergmann
On Wed, Jul 18, 2018 at 2:02 PM, Finn Thain wrote: > On Wed, 18 Jul 2018, Geert Uytterhoeven wrote: > >> >> Thanks for your patch! >> >> Applied and queued for v4.19, with the WARN_ON() dropped. >> > > The patch you've committed to your for-v4.19 branch has this hunk: > > @@ -269,8 +275,12 @@ stat

Re: [PATCH 2/3] [v2] m68k: mac: use time64_t in RTC handling

2018-07-18 Thread Finn Thain
On Wed, 18 Jul 2018, Arnd Bergmann wrote: > Hmm, apparently I forgot to update via_read_time(), that one > is indeed bogus and now inconsistent with the other functions. > > The change in via_write_time() seems at least consistent wtih what we do > elsewhere, and using __u32 makes this code more

Re: [PATCH 2/3] [v2] m68k: mac: use time64_t in RTC handling

2018-07-18 Thread Arnd Bergmann
On Wed, Jul 18, 2018 at 3:49 PM, Finn Thain wrote: > On Wed, 18 Jul 2018, Arnd Bergmann wrote: >> >> -static long via_read_time(void) >> +static time64_t via_read_time(void) >> { >> union { >> __u8 cdata[4]; >> - long idata; >> + __u32 idata; >

Re: [PATCH v4 4/6] powerpc/fsl: Enable cpu vulnerabilities reporting for NXP PPC BOOK3E

2018-07-18 Thread Diana Madalina Craciun
On 7/17/2018 7:47 PM, LEROY Christophe wrote: > Diana Craciun a écrit : > >> The NXP PPC Book3E platforms are not vulnerable to meltdown and >> Spectre v4, so make them PPC_BOOK3S_64 specific. >> >> Signed-off-by: Diana Craciun >> --- >> History: >> >> v2-->v3 >> - used the existing functions for

Re: [PATCH v14 01/22] selftests/x86: Move protecton key selftest to arch neutral directory

2018-07-18 Thread Dave Hansen
Acked-by: Dave Hansen

Re: [PATCH v14 03/22] selftests/vm: move generic definitions to header file

2018-07-18 Thread Dave Hansen
Acked-by: Dave Hansen

Re: [PATCH v14 04/22] selftests/vm: move arch-specific definitions to arch-specific header

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > In preparation for multi-arch support, move definitions which have > arch-specific values to x86-specific header. Acked-by: Dave Hansen

Re: [PATCH v14 06/22] selftests/vm: typecast the pkey register

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > This is in preparation to accomadate a differing size register > across architectures. This is pretty fugly, and reading it again, I wonder whether we should have just made it 64-bit, at least in all the printk's. Or even prink("pk reg: %*llx\n",

Re: [PATCH v14 07/22] selftests/vm: generic function to handle shadow key register

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > - shifted_pkey_reg = (pkey_reg >> (pkey * PKEY_BITS_PER_PKEY)); > + shifted_pkey_reg = right_shift_bits(pkey, pkey_reg); > dprintf2("%s() shifted_pkey_reg: "PKEY_REG_FMT"\n", __func__, > shifted_pkey_reg); > masked_p

Re: [PATCH v14 08/22] selftests/vm: fix the wrong assert in pkey_disable_set()

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > If the flag is 0, no bits will be set. Hence we cant expect > the resulting bitmap to have a higher value than what it > was earlier. ... > --- a/tools/testing/selftests/vm/protection_keys.c > +++ b/tools/testing/selftests/vm/protection_keys.c > @@ -415,7 +4

Re: [PATCH v14 09/22] selftests/vm: fixed bugs in pkey_disable_clear()

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > instead of clearing the bits, pkey_disable_clear() was setting > the bits. Fixed it. Again, I know these are just selftests, but I'm seeing a real lack of attention to detail with these. Please at least go to the trouble of writing actual changelogs with f

Re: [PATCH v14 10/22] selftests/vm: fix alloc_random_pkey() to make it really random

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > alloc_random_pkey() was allocating the same pkey every time. > Not all pkeys were geting tested. fixed it. This fixes a real issue but also unnecessarily munges whitespace. If you rev these again, please fix the munging. Otherwise: Acked-by: Dave Hansen

Re: [PATCH v14 11/22] selftests/vm: introduce two arch independent abstraction

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > open_hugepage_file() <- opens the huge page file Folks, a sentence here would be nice: Different architectures have different huge page sizes and thus have different sysfs filees to manipulate when allocating huge pages. > get_star

Re: [PATCH v14 12/22] selftests/vm: pkey register should match shadow pkey

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > expected_pkey_fault() is comparing the contents of pkey > register with 0. This may not be true all the time. There > could be bits set by default by the architecture > which can never be changed. Hence compare the value against > shadow pkey register, which

Re: [PATCH v4 4/6] powerpc/fsl: Enable cpu vulnerabilities reporting for NXP PPC BOOK3E

2018-07-18 Thread LEROY Christophe
Diana Madalina Craciun a écrit : On 7/17/2018 7:47 PM, LEROY Christophe wrote: Diana Craciun a écrit : The NXP PPC Book3E platforms are not vulnerable to meltdown and Spectre v4, so make them PPC_BOOK3S_64 specific. Signed-off-by: Diana Craciun --- History: v2-->v3 - used the existing fu

Re: [PATCH v14 13/22] selftests/vm: generic cleanup

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > cleanup the code to satisfy coding styles. > > cc: Dave Hansen > cc: Florian Weimer > Signed-off-by: Ram Pai > --- > tools/testing/selftests/vm/protection_keys.c | 64 + > 1 files changed, 43 insertions(+), 21 deletions(-) > >

[PATCH v2] powerpc/prom_init: remove linux,stdout-package property

2018-07-18 Thread Murilo Opsfelder Araujo
This property was added in 2004 and the only use of it, which was already inside `#if 0`, was removed a month later. Signed-off-by: Murilo Opsfelder Araujo --- arch/powerpc/kernel/prom_init.c | 2 -- 1 file changed, 2 deletions(-) v1..v2: - Move github.com links to this section so they can stil

Re: [PATCH] powerpc/prom_init: remove linux,stdout-package property

2018-07-18 Thread Murilo Opsfelder Araujo
On Wed, Jul 18, 2018 at 07:37:37PM +1000, Michael Ellerman wrote: > Hi Murilo, > > Thanks for the patch. > > Murilo Opsfelder Araujo writes: > > This property was added in 2004 by > > > > > > https://github.com/mpe/linux-fullhistory/commit/689fe5072fe9a0dec914bfa4fa60aed1e54563e6 > > > > an

Re: [RFC PATCH v6 0/4] powerpc/fadump: Improvements and fixes for firmware-assisted dump.

2018-07-18 Thread Mahesh Jagannath Salgaonkar
On 07/17/2018 05:22 PM, Michal Hocko wrote: > On Tue 17-07-18 16:58:10, Mahesh Jagannath Salgaonkar wrote: >> On 07/16/2018 01:56 PM, Michal Hocko wrote: >>> On Mon 16-07-18 11:32:56, Mahesh J Salgaonkar wrote: One of the primary issues with Firmware Assisted Dump (fadump) on Power is tha

Re: [PATCH v7 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-07-18 Thread Andy Shevchenko
On Wed, Jul 18, 2018 at 5:49 AM, Baoquan He wrote: > reparent_resources() is duplicated in arch/microblaze/pci/pci-common.c > and arch/powerpc/kernel/pci-common.c, so move it to kernel/resource.c > so that it's shared. Some minor stuff. > +/** > + * reparent_resources - reparent resource childre

Re: [PATCH v7 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-07-18 Thread Andy Shevchenko
On Wed, Jul 18, 2018 at 7:36 PM, Andy Shevchenko wrote: > On Wed, Jul 18, 2018 at 5:49 AM, Baoquan He wrote: >> reparent_resources() is duplicated in arch/microblaze/pci/pci-common.c >> and arch/powerpc/kernel/pci-common.c, so move it to kernel/resource.c >> so that it's shared. >> + * Returns 0

Re: [PATCH v14 14/22] selftests/vm: Introduce generic abstractions

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > Introduce generic abstractions and provide architecture > specific implementation for the abstractions. I really wanted to see these two things separated: 1. introduce abstractions 2. introduce ppc implementation But, I guess most of it is done except for

Re: [PATCH v14 15/22] selftests/vm: powerpc implementation to check support for pkey

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > -static inline int cpu_has_pku(void) > +static inline bool is_pkey_supported(void) > { > - return 1; > + /* > + * No simple way to determine this. > + * Lets try allocating a key and see if it succeeds. > + */ > + int ret = sys_pk

Re: [PATCH v14 16/22] selftests/vm: fix an assertion in test_pkey_alloc_exhaust()

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > The maximum number of keys that can be allocated has to > take into consideration, that some keys are reserved by > the architecture for specific purpose. Hence cannot > be allocated. Back to incomplete sentences, I see. :) How about: Some pke

Re: [PATCH v14 20/22] selftests/vm: testcases must restore pkey-permissions

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > Generally the signal handler restores the state of the pkey register > before returning. However there are times when the read/write operation > can legitamely fail without invoking the signal handler. Eg: A > sys_read() operaton to a write-protected page s

Re: [PATCH v14 22/22] selftests/vm: test correct behavior of pkey-0

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > Ensure pkey-0 is allocated on start. Ensure pkey-0 can be attached > dynamically in various modes, without failures. Ensure pkey-0 can be > freed and allocated. > > Signed-off-by: Ram Pai > --- > tools/testing/selftests/vm/protection_keys.c | 66 > ++

Re: [PATCH] Mark ams driver as orphaned in MAINTAINERS

2018-07-18 Thread Michael Hanselmann
On 18.07.2018 12:00, Michael Ellerman wrote: > Michael Hanselmann writes: >> I no longer have any hardware with the Apple motion sensor and thus >> relinquish maintainership of the driver. > > Thanks. I think I'll just remove the whole entry, meaning it will be > caught under the "LINUX FOR POWER

[PATCH v6 2/2] hwmon: ibmpowernv: Add attributes to enable/disable sensor groups

2018-07-18 Thread Shilpasri G Bhat
On-Chip-Controller(OCC) is an embedded micro-processor in POWER9 chip which measures various system and chip level sensors. These sensors comprises of environmental sensors (like power, temperature, current and voltage) and performance sensors (like utilization, frequency). All these sensors are co

[PATCH v6 1/2] powernv:opal-sensor-groups: Add support to enable sensor groups

2018-07-18 Thread Shilpasri G Bhat
Adds support to enable/disable a sensor group at runtime. This can be used to select the sensor groups that needs to be copied to main memory by OCC. Sensor groups like power, temperature, current, voltage, frequency, utilization can be enabled/disabled at runtime. Signed-off-by: Shilpasri G Bhat

[PATCH v6 0/2] hwmon/powernv: Add attributes to enable/disable sensors

2018-07-18 Thread Shilpasri G Bhat
This patch series adds new attribute to enable or disable a sensor at runtime. Changes from v5: - Dont store the sensor node and parse the device-tree for each sensor to find the sensor-group during init v5 : https://lkml.org/lkml/2018/7/15/15 v4 : https://lkml.org/lkml/2018/7/6/379 v3 : https:

Re: [PATCH] mtd: powernv_flash: set of_node in mtd's dev

2018-07-18 Thread Boris Brezillon
On Fri, 13 Jul 2018 10:15:59 +0200 Rafał Miłecki wrote: > From: Rafał Miłecki > > This enables some features implemented in mtd subsystem like reading > label and partitioning info from DT. > > Reported-by: Timothy Pearson > Signed-off-by: Rafał Miłecki Applied. Thanks, Boris > --- > dr

[PATCH] powerpc/ps3: Set driver coherent_dma_mask

2018-07-18 Thread Geoff Levand
Set the coherent_dma_mask for the PS3 ehci, ohci, and snd devices. Silences WARN_ON_ONCE messages emitted by the dma_alloc_attrs() routine. Reported-by: Fredrik Noring Signed-off-by: Geoff Levand --- Hi Michael, This just silences some warnings. Can you take it through the powerpc tree? -Geo

Re: [PATCH] MAINTAINERS: Drop inactive Vitaly Bordug's email

2018-07-18 Thread David Miller
From: Krzysztof Kozlowski Date: Tue, 17 Jul 2018 18:41:54 +0200 > The Vitaly Bordug's email bounces ("ru.mvista.com: Name or service not > known") and there was no activity (ack, review, sign) since 2009. > > Cc: Vitaly Bordug > Cc: Pantelis Antoniou > Cc: "David S. Miller" > Signed-off-by: K

Re: [PATCH v7 4/4] kexec_file: Load kernel at top of system RAM if required

2018-07-18 Thread Andrew Morton
On Wed, 18 Jul 2018 10:49:44 +0800 Baoquan He wrote: > For kexec_file loading, if kexec_buf.top_down is 'true', the memory which > is used to load kernel/initrd/purgatory is supposed to be allocated from > top to down. This is what we have been doing all along in the old kexec > loading interface

Re: Improvements for the PS3

2018-07-18 Thread Geoff Levand
Hi Fredrik, On 07/14/2018 09:49 AM, Fredrik Noring wrote: > so I added a sleep with > > + msleep(1); > + > return 0; > > et voilà, the screen came alive and the kernel panic was revealed! It seems > the kernel panics so fast that the PS3 frame buffer is unprepared. This is, > of co

Re: [PATCH v3] PCI: Data corruption happening due to race condition

2018-07-18 Thread Bjorn Helgaas
[+cc Paul, Michael, linuxppc-dev] On Tue, Jul 03, 2018 at 02:35:41PM +0530, Hari Vyas wrote: > When a pci device is detected, a variable is_added is set to > 1 in pci device structure and proc, sys entries are created. > > When a pci device is removed, first is_added is checked for one > and then

[PATCH v3 1/1] KVM: PPC: Book3S HV: pack VCORE IDs to access full VCPU ID space

2018-07-18 Thread Sam Bobroff
From: Sam Bobroff It is not currently possible to create the full number of possible VCPUs (KVM_MAX_VCPUS) on Power9 with KVM-HV when the guest uses less threads per core than it's core stride (or "VSMT mode"). This is because the VCORE ID and XIVE offsets to grow beyond KVM_MAX_VCPUS even though

Re: [PATCH v3] PCI: Data corruption happening due to race condition

2018-07-18 Thread Benjamin Herrenschmidt
On Wed, 2018-07-18 at 18:29 -0500, Bjorn Helgaas wrote: > [+cc Paul, Michael, linuxppc-dev] > /... > > Debugging revealed a race condition between pcie core driver > > enabling is_added bit(pci_bus_add_device()) and nvme driver > > reset work-queue enabling is_busmaster bit (by pci_set_ma

Re: [PATCH v3 1/1] KVM: PPC: Book3S HV: pack VCORE IDs to access full VCPU ID space

2018-07-18 Thread David Gibson
On Thu, Jul 19, 2018 at 12:25:10PM +1000, Sam Bobroff wrote: > From: Sam Bobroff > > It is not currently possible to create the full number of possible > VCPUs (KVM_MAX_VCPUS) on Power9 with KVM-HV when the guest uses less > threads per core than it's core stride (or "VSMT mode"). This is > becau

Re: powerpc/Makefile: Assemble with -me500 when building for E500

2018-07-18 Thread Michael Ellerman
On Thu, 2018-07-12 at 21:41:49 UTC, James Clarke wrote: > Some of the assembly files use instructions specific to BookE or E500, > which are rejected with the now-default -mcpu=powerpc, so we must pass > -me500 to the assembler just as we pass -me200 for E200. > > Fixes: 4bf4f42a2feb ("powerpc/kbu

Re: powerpc/xmon: Fix disassembly since printf changes

2018-07-18 Thread Michael Ellerman
On Tue, 2018-07-17 at 00:50:38 UTC, Michael Ellerman wrote: > The recent change to add printf annotations to xmon inadvertently made > the disassembly output ugly, eg: > > c0002001e058 7ee00026 mfcrr23 > c0002001e05c fae101a0 std r23,416(r1) > c0002001

Re: [kernel, v7, 1/2] vfio/spapr: Use IOMMU pageshift rather than pagesize

2018-07-18 Thread Michael Ellerman
On Tue, 2018-07-17 at 07:19:12 UTC, Alexey Kardashevskiy wrote: > The size is always equal to 1 page so let's use this. Later on this will > be used for other checks which use page shifts to check the granularity > of access. > > This should cause no behavioral change. > > Reviewed-by: David Gibs

Re: [kernel, v7, 2/2] KVM: PPC: Check if IOMMU page is contained in the pinned physical page

2018-07-18 Thread Michael Ellerman
On Tue, 2018-07-17 at 07:19:13 UTC, Alexey Kardashevskiy wrote: > A VM which has: > - a DMA capable device passed through to it (eg. network card); > - running a malicious kernel that ignores H_PUT_TCE failure; > - capability of using IOMMU pages bigger that physical pages > can create an IOMMU

Re: [v2] powerpc/powernv : Save/Restore SPRG3 on entry/exit from stop.

2018-07-18 Thread Michael Ellerman
On Wed, 2018-07-18 at 08:33:16 UTC, "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > On 64-bit servers, SPRN_SPRG3 and its userspace read-only mirror > SPRN_USPRG3 are used as userspace VDSO write and read registers > respectively. > > SPRN_SPRG3 is lost when we enter stop4 and above,

Re: cpufreq: powernv: Remove global pstate ramp-down timer in POWER9

2018-07-18 Thread Michael Ellerman
On Wed, 2018-04-25 at 06:14:55 UTC, Shilpasri G Bhat wrote: > POWER9 doesnot support global pstate requests for the chip. So remove > the timer logic which slowly ramps down the global pstate in P9 > platforms. > > Signed-off-by: Shilpasri G Bhat > Acked-by: Viresh Kumar Applied to powerpc next

Re: powerpc/64s: Report SLB multi-hit rather than parity error

2018-07-18 Thread Michael Ellerman
On Wed, 2018-06-13 at 13:24:14 UTC, Michael Ellerman wrote: > When we take an SLB multi-hit on bare metal, we see both the multi-hit > and parity error bits set in DSISR. The user manuals indicates this is > expected to always happen on Power8, whereas on Power9 it says a > multi-hit will "usually"

Re: powerpc: enable kernel XZ compression option on BOOK3S_32

2018-07-18 Thread Michael Ellerman
On Tue, 2018-06-19 at 20:52:30 UTC, Aaro Koskinen wrote: > Enable kernel XZ compression option on BOOK3S_32. Tested on G4 PowerBook. > > Signed-off-by: Aaro Koskinen Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/26064848efbca49c643d1237dc1f82 cheers

Re: [RESEND, 1/3] powerpc: dts: use 'atmel' as at24 anufacturer for pdm360ng

2018-07-18 Thread Michael Ellerman
On Thu, 2018-06-21 at 08:33:03 UTC, Bartosz Golaszewski wrote: > Using 'at' as the part of the compatible string is now > deprecated. Use a correct string: 'atmel,'. > > Signed-off-by: Bartosz Golaszewski Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/835b706bab95141e

Re: powerpc/kdump: handle crashkernel memory reservation failure

2018-07-18 Thread Michael Ellerman
On Thu, 2018-06-28 at 05:19:56 UTC, Hari Bathini wrote: > Memory reservation for crashkernel could fail if there are holes around > kdump kernel offset (128M). Fail gracefully in such cases and print an > error message. > > Signed-off-by: Hari Bathini > Tested-by: David Gibson > Reviewed-by: Dav

Re: powerpc/msi: Remove VLA usage

2018-07-18 Thread Michael Ellerman
On Fri, 2018-06-29 at 18:52:54 UTC, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > switches from an unchanging variable to a constant expression to eliminate > the VLA generation. > > [1] > https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpx

Re: powerpc: Remove Power8 DD1 from cputable

2018-07-18 Thread Michael Ellerman
On Wed, 2018-07-11 at 06:02:58 UTC, Joel Stanley wrote: > This was added to support an early version of Power8 that did not have > working doorbells. These machines were not publicly available, and all of > the internal users have long since upgraded. > > Signed-off-by: Joel Stanley Applied to p

Re: [kernel] powerpc/powernv/ioda2: Add 256M IOMMU page size to the default POWER8 case

2018-07-18 Thread Michael Ellerman
On Mon, 2018-07-02 at 07:42:05 UTC, Alexey Kardashevskiy wrote: > The sketchy bypass uses 256M pages so add this page size as well. > > This should cause no behavioral change but will be used later. > > Fixes: 477afd6ea6 "powerpc/ioda: Use ibm,supported-tce-sizes for IOMMU page > size mask" > Si

Re: powerpc: Replaced msleep(x) with msleep(OPAL_BUSY_DELAY_MS)

2018-07-18 Thread Michael Ellerman
On Wed, 2018-07-11 at 22:03:04 UTC, Daniel Klamt wrote: > Replaced msleep(x) with with msleep(OPAL_BUSY_DELAY_MS) > to diocument these sleep is to wait for opal. > > Signed-off-by: Daniel Klamt > Signed-off-by: Bjoern Noetel Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/9c3

Re: [powerpc/powervm]Oops: Kernel access of bad area, sig: 11 [#1] while running stress-ng

2018-07-18 Thread vrbagal1
On 2018-07-10 19:12, Michael Ellerman wrote: vrbagal1 writes: On 2018-07-10 13:37, Nicholas Piggin wrote: On Tue, 10 Jul 2018 11:58:40 +0530 vrbagal1 wrote: Hi, Observing kernel oops on Power9(ZZ) box, running on PowerVM, while running stress-ng. Kernel: 4.18.0-rc4 Machine: Power9 ZZ (P

Re: [PATCH] powerpc/ps3: Set driver coherent_dma_mask

2018-07-18 Thread Takashi Iwai
On Thu, 19 Jul 2018 00:08:33 +0200, Geoff Levand wrote: > > Set the coherent_dma_mask for the PS3 ehci, ohci, and snd devices. > > Silences WARN_ON_ONCE messages emitted by the dma_alloc_attrs() routine. > > Reported-by: Fredrik Noring > Signed-off-by: Geoff Levand For sound bits, Reviewed-

Re: [PATCH] powerpc/ps3: Set driver coherent_dma_mask

2018-07-18 Thread Greg KH
On Thu, Jul 19, 2018 at 08:46:45AM +0200, Takashi Iwai wrote: > On Thu, 19 Jul 2018 00:08:33 +0200, > Geoff Levand wrote: > > > > Set the coherent_dma_mask for the PS3 ehci, ohci, and snd devices. > > > > Silences WARN_ON_ONCE messages emitted by the dma_alloc_attrs() routine. > > > > Reported-b

Re: [PATCH] powerpc/ps3: Set driver coherent_dma_mask

2018-07-18 Thread Greg KH
On Wed, Jul 18, 2018 at 03:08:33PM -0700, Geoff Levand wrote: > Set the coherent_dma_mask for the PS3 ehci, ohci, and snd devices. > > Silences WARN_ON_ONCE messages emitted by the dma_alloc_attrs() routine. > > Reported-by: Fredrik Noring > Signed-off-by: Geoff Levand > --- > Hi Michael, > >

Re: [PATCH v6 2/2] hwmon: ibmpowernv: Add attributes to enable/disable sensor groups

2018-07-18 Thread Stewart Smith
Shilpasri G Bhat writes: > On-Chip-Controller(OCC) is an embedded micro-processor in POWER9 chip > which measures various system and chip level sensors. These sensors > comprises of environmental sensors (like power, temperature, current > and voltage) and performance sensors (like utilization, fr