Re: [PATCH v3 4/5] powerpc/mm: Allow up to 64 low slices

2018-01-28 Thread Aneesh Kumar K.V
Christophe Leroy writes: > While the implementation of the "slices" address space allows > a significant amount of high slices, it limits the number of > low slices to 16 due to the use of a single u64 low_slices_psize > element in struct mm_context_t > > On the 8xx, the minimum slice size is the

Re: [PATCH v3 1/5] powerpc/mm: Remove intermediate bitmap copy in 'slices'

2018-01-28 Thread Aneesh Kumar K.V
Christophe Leroy writes: > bitmap_or() and bitmap_andnot() can work properly with dst identical > to src1 or src2. There is no need of an intermediate result bitmap > that is copied back to dst in a second step. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Leroy > --- > v2: New

linux-next: manual merge of the nvdimm tree with the powerpc tree

2018-01-28 Thread Stephen Rothwell
Hi Dan, Today's linux-next merge of the nvdimm tree got a conflict in: arch/powerpc/sysdev/axonram.c between commit: 1d65b1c886be ("powerpc/cell: Remove axonram driver") from the powerpc tree and commit: 785a3fab4adb ("mm, dax: introduce pfn_t_special()") from the nvdimm tree. I fixed

linux-next: manual merge of the nvdimm tree with the powerpc tree

2018-01-28 Thread Stephen Rothwell
Hi Dan, Today's linux-next merge of the nvdimm tree got a conflict in: arch/powerpc/platforms/Kconfig between commit: 1d65b1c886be ("powerpc/cell: Remove axonram driver") from the powerpc tree and commit: 569d0365f571 ("dax: require 'struct page' by default for filesystem dax") from th

Re: macintosh/ams-input: Use true and false for boolean values

2018-01-28 Thread Michael Ellerman
On Wed, 2018-01-24 at 01:48:46 UTC, "Gustavo A. R. Silva" wrote: > Assign true or false to boolean variables instead of an integer value. > > This issue was detected with the help of Coccinelle > > Signed-off-by: Gustavo A. R. Silva > Reviewed-by: Michael Hanselmann Applied to powerpc next, th

Re: powerpc/mm/nohash: do not flush the entire mm when range is a single page

2018-01-28 Thread Michael Ellerman
On Tue, 2018-01-23 at 13:22:50 UTC, Christophe Leroy wrote: > Most of the time, flush_tlb_range() is called on single pages. > At the time being, flush_tlb_range() inconditionnaly calls > flush_tlb_mm() which flushes at least the entire PID pages and on > older CPUs like 4xx or 8xx it flushes the e

Re: macintosh: change some data types from int to bool

2018-01-28 Thread Michael Ellerman
On Wed, 2018-01-24 at 01:42:28 UTC, "Gustavo A. R. Silva" wrote: > Change the data type of the following variables from int to bool > across all macintosh drivers: > > started > slots_started > pm121_started > wf_smu_started > > Some of these issues were detected with the help of Coccinelle. > >

Re: [v2, 01/13] powerpc/powernv: Introduce new PHB type for opencapi links

2018-01-28 Thread Michael Ellerman
On Tue, 2018-01-23 at 11:31:36 UTC, Frederic Barrat wrote: > The NPU was already abstracted by opal as a virtual PHB for nvlink, > but it helps to be able to differentiate between a nvlink or opencapi > PHB, as it's not completely transparent to linux. In particular, PE > assignment differs and we'

Re: powerpc/64s: Improve RFI L1-D cache flush fallback

2018-01-28 Thread Michael Ellerman
On Wed, 2018-01-17 at 13:58:18 UTC, Nicholas Piggin wrote: > The fallback RFI flush is used when firmware does not provide a way > to flush the cache. It's a "displacement flush" that evicts useful > data by displacing it with an uninteresting buffer. > > The flush has to take care to work with im

Re: [v4,1/7] platform/pseries: Update VF config space after EEH

2018-01-28 Thread Michael Ellerman
On Fri, 2018-01-05 at 16:45:46 UTC, "Bryant G. Ly" wrote: > Add EEH platform operations for pseries to update VF > config space. With this change after EEH, the VF > will have updated config space for pseries platform. > > Signed-off-by: Bryant G. Ly > Signed-off-by: Juan J. Alvarez Series appl

Re: [v4,7/7] pseries/setup: Add Initialization of VF Bars

2018-01-28 Thread Michael Ellerman
On Fri, 2018-01-05 at 16:45:52 UTC, "Bryant G. Ly" wrote: > When enabling SR-IOV in pseries platform, > the VF bar properties for a PF are reported on > the device node in the device tree. > > This patch adds the IOV Bar resources to Linux > structures from the device tree for later use > when con

Re: [2/2] powerpc/pseries, ps3: panic flush kernel messages before halting system

2018-01-28 Thread Michael Ellerman
On Sat, 2017-12-23 at 16:49:23 UTC, Nicholas Piggin wrote: > Platforms with a panic handler that halts the system can have problems > getting kernel messages out, because the panic notifiers are called > before kernel/panic.c does its flushing of printk buffers an console > etc. > > This was attem

Re: [1/1] : powerpc: block interrupts when updating TIDR

2018-01-28 Thread Michael Ellerman
On Fri, 2017-12-01 at 21:31:40 UTC, Sukadev Bhattiprolu wrote: > From: Sukadev Bhattiprolu > Date: Tue, 28 Nov 2017 13:39:43 -0600 > Subject: [PATCH 1/1]: powerpc: block interrupts when updating TIDR > > clear_thread_tidr() is called in interrupt context as a part of delayed > put of the task str

Re: [V8,1/3] powerpc/nodes: Ensure enough nodes avail for operations

2018-01-28 Thread Michael Ellerman
On Tue, 2017-11-28 at 22:58:36 UTC, Michael Bringmann wrote: > On powerpc systems which allow 'hot-add' of CPU or memory resources, > it may occur that the new resources are to be inserted into nodes > that were not used for these resources at bootup. In the kernel, > any node that is used must be

Re: powerpc/cell: Remove axonram driver

2018-01-28 Thread Michael Ellerman
On Thu, 2017-11-02 at 23:56:32 UTC, Michael Ellerman wrote: > The QS21/22 IBM Cell blades had a southbridge chip called Axon. This > could have DDR DIMMs attached to it, though they were not directly > usable as RAM, instead they could be used as some sort of buffer, if > applications were written

Re: [kernel] powerpc/powernv/idoa: Remove unnecessary pcidev from pci_dn

2018-01-28 Thread Michael Ellerman
On Mon, 2017-10-23 at 08:07:02 UTC, Alexey Kardashevskiy wrote: > The pcidev value stored in pci_dn is only used for NPU/NPU2 > initialization. We can easily drop the cached pointer and > use an ancient helper - pci_get_domain_bus_and_slot() instead in order > to reduce complexity. > > Signed-off-

Re: [1/3] powerpc/watchdog: Tweak watchdog printks

2018-01-28 Thread Michael Ellerman
On Thu, 2017-10-12 at 04:44:32 UTC, Michael Ellerman wrote: > Use pr_fmt() in the watchdog code, so we don't have to say "Watchdog" > so many times. > > Rather than "CPU:%d" just spell it "CPU %d", "Hard" doesn't need a > capital in the middle of a sentence, and "LOCKUP other CPUS" should be > "LO

Re: [v2,3/9] powerpc: mpc52xx_gpt: make use of raw_spinlock variants

2018-01-28 Thread Michael Ellerman
On Tue, 2017-03-21 at 22:43:03 UTC, Julia Cartwright wrote: > The mpc52xx_gpt code currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Because

Re: [v2] adb: properly mark continued kernel messages

2018-01-28 Thread Michael Ellerman
On Mon, 2016-11-28 at 20:29:07 UTC, Andreas Schwab wrote: > Use pr_cont where appropriate, and switch to pr_foo throughout. > Additionally, lower messages in adb_probe_task to debug level. > > Signed-off-by: Andreas Schwab Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/f2be62

Re: rtc-opal: Fix handling of firmware error codes, prevent busy loops

2018-01-28 Thread Michael Ellerman
On Tue, 2016-08-02 at 01:50:16 UTC, Stewart Smith wrote: > According to the OPAL docs: > https://github.com/open-power/skiboot/blob/skiboot-5.2.5/doc/opal-api/opal-rtc-read-3.txt > https://github.com/open-power/skiboot/blob/skiboot-5.2.5/doc/opal-api/opal-rtc-write-4.txt > OPAL_HARDWARE may be retu

linux-next: manual merge of the mfd tree with the powerpc tree

2018-01-28 Thread Stephen Rothwell
Hi Lee, Today's linux-next merge of the mfd tree got conflicts in: drivers/misc/Kconfig drivers/misc/Makefile between commit: b97f02246e0d ("ocxl: Add Makefile and Kconfig") from the powerpc tree and commit: e455b69ddf9b ("misc: rtsx: Move Realtek Card Reader Driver to misc") from th

linux-next: manual merge of the pci tree with the powerpc tree

2018-01-28 Thread Stephen Rothwell
Hi Bjorn, Today's linux-next merge of the pci tree got a conflict in: arch/powerpc/platforms/powernv/eeh-powernv.c between commit: 64ba3dc7bf7c ("powerpc/eeh: Update VF config space after EEH") from the powerpc tree and commit: fdabc3fe9982 ("PCI: Add #defines for Completion Timeout Dis

linux-next: manual merge of the pci tree with the powerpc tree

2018-01-28 Thread Stephen Rothwell
Hi Bjorn, Today's linux-next merge of the pci tree got a conflict in: include/linux/pci.h between commit: 856e1eb9bdd4 ("PCI/AER: Add uevents in AER and EEH error/resume") from the powerpc tree and commit: 0aa0f5d1084c ("PCI: Clean up whitespace in linux/pci.h, pci/pci.h") from the pci

Re: [PATCH v2 3/6] gpio: Add GPIO driver for Nintendo Wii

2018-01-28 Thread Andy Shevchenko
On Mon, Jan 22, 2018 at 7:04 AM, Jonathan Neuschäfer wrote: Style issues below. > +#define HW_GPIO_OWNER 0x3c > + > + > +struct hlwd_gpio { No need extra empty line in between. > + struct gpio_chip gpioc; > + void __iomem *regs; > + struct device *dev; > +}; > + > +s