Re: [PATCH v3 1/3] powerpc/powernv: Add OPAL API interface to get secureboot state

2019-06-14 Thread Nayna
On 06/12/2019 07:04 PM, Daniel Axtens wrote: Hi Nayna, Since OPAL can support different types of backend which can vary in the variable interpretation, a new OPAL API call named OPAL_SECVAR_BACKEND, is added to retrieve the supported backend version. This helps the consumer to know how to

Re: [PATCH v4 19/28] docs: powerpc: convert docs to ReST and rename to *.rst

2019-06-14 Thread Bjorn Helgaas
t; drivers/scsi/ipr > > +>>> drivers/scsi/sym53c8xx_2 > > +>>> drivers/scsi/qla2xxx > > +>>> drivers/scsi/lpfc > > +>>> drivers/next/bnx2.c > > +>>> drivers/next/e100.c > > +>>> drivers/net/e1000 > > +>>> drivers/net/e1000e > > +>>> drivers/net/ixgb > > +>>> drivers/net/ixgbe > > +>>> drivers/net/cxgb3 > > +>>> drivers/net/s2io.c > > +>>> drivers/net/qlge > > ...of this, which has the look of a set of conflict markers that managed > to get committed...? I don't see these conflict markers in my local branch or in linux-next (next-20190614). Let me know if I need to do something. Bjorn

Re: [RESEND PATCH] Documentation/stackprotector: powerpc supports stack protector

2019-06-14 Thread Jonathan Corbet
On Mon, 10 Jun 2019 15:33:39 +0530 Bhupesh Sharma wrote: > powerpc architecture (both 64-bit and 32-bit) supports stack protector > mechanism since some time now [see commit 06ec27aea9fc ("powerpc/64: > add stack protector support")]. > > Update stackprotector arch support documentation to

Re: [PATCH v4 19/28] docs: powerpc: convert docs to ReST and rename to *.rst

2019-06-14 Thread Jonathan Corbet
On Wed, 12 Jun 2019 14:52:55 -0300 Mauro Carvalho Chehab wrote: > Convert docs to ReST and add them to the arch-specific > book. > > The conversion here was trivial, as almost every file there > was already using an elegant format close to ReST standard. > > The changes were mostly to mark

Re: [PATCH] powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac

2019-06-14 Thread Larry Finger
On 6/14/19 2:15 PM, Aaro Koskinen wrote: Hi, On Fri, Jun 14, 2019 at 09:24:16AM +0200, Mathieu Malaterre wrote: On Thu, Jun 13, 2019 at 10:27 AM Christoph Hellwig wrote: With the strict dma mask checking introduced with the switch to the generic DMA direct code common wifi chips on 32-bit

Re: [PATCH] powerpc: Enable kernel XZ compression option on PPC_85xx

2019-06-14 Thread Christian Lamparter
On Friday, June 14, 2019 12:06:48 PM CEST Christophe Leroy wrote: > > Le 13/06/2019 à 13:42, Michael Ellerman a écrit : > > Daniel Axtens writes: > >> Pawel Dembicki writes: > >> > >>> Enable kernel XZ compression option on PPC_85xx. Tested with > >>> simpleImage on TP-Link TL-WDR4900

Re: [PATCH v1 1/6] mm: Section numbers use the type "unsigned long"

2019-06-14 Thread David Hildenbrand
On 14.06.19 21:00, Andrew Morton wrote: > On Fri, 14 Jun 2019 12:01:09 +0200 David Hildenbrand wrote: > >> We are using a mixture of "int" and "unsigned long". Let's make this >> consistent by using "unsigned long" everywhere. We'll do the same with >> memory block ids next. >> >> ... >> >> -

Re: [PATCH] powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac

2019-06-14 Thread Aaro Koskinen
Hi, On Fri, Jun 14, 2019 at 09:24:16AM +0200, Mathieu Malaterre wrote: > On Thu, Jun 13, 2019 at 10:27 AM Christoph Hellwig wrote: > > With the strict dma mask checking introduced with the switch to > > the generic DMA direct code common wifi chips on 32-bit powerbooks > > stopped working. Add

Re: [PATCH] powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac

2019-06-14 Thread Aaro Koskinen
Hi, On Thu, Jun 13, 2019 at 10:24:46AM +0200, Christoph Hellwig wrote: > With the strict dma mask checking introduced with the switch to > the generic DMA direct code common wifi chips on 32-bit powerbooks > stopped working. Add a 30-bit ZONE_DMA to the 32-bit pmac builds > to allow them to

Re: [PATCH v1 1/6] mm: Section numbers use the type "unsigned long"

2019-06-14 Thread Andrew Morton
On Fri, 14 Jun 2019 12:01:09 +0200 David Hildenbrand wrote: > We are using a mixture of "int" and "unsigned long". Let's make this > consistent by using "unsigned long" everywhere. We'll do the same with > memory block ids next. > > ... > > - int i, ret, section_count = 0; > + unsigned

Re: [PATCH 00/14] Add support to generate ABI documentation at admin-guide

2019-06-14 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 11:04:06PM -0300, Mauro Carvalho Chehab wrote: > Greg, > > As promised, I'm resending the patch series with adds the Kernel ABI to > Documentation/admin-guide. > > Those patches are basically the version 3 patchset I sent back in 2017, > rebased on the top of linux-next

Re: [PATCH 01/14] ABI: fix some syntax issues at the ABI database

2019-06-14 Thread Greg Kroah-Hartman
On Fri, Jun 14, 2019 at 05:20:29PM +1000, Andrew Donnellan wrote: > On 14/6/19 12:04 pm, Mauro Carvalho Chehab wrote: > > diff --git a/Documentation/ABI/testing/sysfs-class-cxl > > b/Documentation/ABI/testing/sysfs-class-cxl > > index bbbabffc682a..fc7c6f7c21b3 100644 > > ---

[PATCH v2 8/9] powerpc/pseries: Protect against hogging the cpu while setting up the stats

2019-06-14 Thread Naveen N. Rao
When enabling or disabling the vcpu dispatch statistics, we do a lot of work including allocating/deallocating memory across all possible cpus for the DTL buffer. In order to guard against hogging the cpu for too long, track the time we're taking and yield the processor if necessary.

[PATCH v2 9/9] powerpc/pseries: Add documentation for vcpudispatch_stats

2019-06-14 Thread Naveen N. Rao
Add a document describing the fields provided by /proc/powerpc/vcpudispatch_stats. Signed-off-by: Naveen N. Rao --- Documentation/powerpc/vcpudispatch_stats.txt | 68 1 file changed, 68 insertions(+) create mode 100644 Documentation/powerpc/vcpudispatch_stats.txt diff

[PATCH v2 7/9] powerpc/pseries: Provide vcpu dispatch statistics

2019-06-14 Thread Naveen N. Rao
For Shared Processor LPARs, the POWER Hypervisor maintains a relatively static mapping of the LPAR processors (vcpus) to physical processor chips (representing the "home" node) and tries to always dispatch vcpus on their associated physical processor chip. However, under certain scenarios, vcpus

[PATCH v2 6/9] powerpc/pseries: Move mm/book3s64/vphn.c under platforms/pseries/

2019-06-14 Thread Naveen N. Rao
hcall_vphn() is specific to pseries and will be used in a subsequent patch. So, move it to a more appropriate place under arch/powerpc/platforms/pseries. Also merge vphn.h into plpar_wrappers.h Signed-off-by: Naveen N. Rao --- arch/powerpc/include/asm/plpar_wrappers.h | 19 +++

[PATCH v2 5/9] powerpc/pseries: Generalize hcall_vphn()

2019-06-14 Thread Naveen N. Rao
H_HOME_NODE_ASSOCIATIVITY hcall can take two different flags and return different associativity information in each case. Generalize the existing hcall_vphn() function to take flags as an argument and to return the result. Update the only existing user to pass the proper arguments. Signed-off-by:

[PATCH v2 3/9] powerpc/pseries: Factor out DTL buffer allocation and registration routines

2019-06-14 Thread Naveen N. Rao
Introduce new helpers for DTL buffer allocation and registration and have the existing code use those. Signed-off-by: Naveen N. Rao --- arch/powerpc/include/asm/plpar_wrappers.h | 2 + arch/powerpc/platforms/pseries/lpar.c | 66 ---

[PATCH v2 4/9] powerpc/pseries: Introduce helpers to gatekeep DTLB usage

2019-06-14 Thread Naveen N. Rao
Since we would be introducing a new user of the DTL buffer in a subsequent patch, add helpers to gatekeep use of the DTL buffer. The current usage of the DTL buffer from debugfs is at a per-cpu level (corresponding to the cpu debugfs file that is opened). Subsequently, we will have users

[PATCH v2 2/9] powerpc/pseries: Do not save the previous DTL mask value

2019-06-14 Thread Naveen N. Rao
When CONFIG_VIRT_CPU_ACCOUNTING_NATIVE is enabled, we always initialize DTL enable mask to DTL_LOG_PREEMPT (0x2). There are no other places where the mask is changed. As such, when reading the DTL log buffer through debugfs, there is no need to save and restore the previous mask value. We don't

[PATCH v2 1/9] powerpc/pseries: Use macros for referring to the DTL enable mask

2019-06-14 Thread Naveen N. Rao
Introduce macros to encode the DTL enable mask fields and use those instead of hardcoding numbers. Acked-by: Nathan Lynch Signed-off-by: Naveen N. Rao --- arch/powerpc/include/asm/lppaca.h | 11 +++ arch/powerpc/platforms/pseries/dtl.c | 8 +---

[PATCH v2 0/9] Provide vcpu dispatch statistics

2019-06-14 Thread Naveen N. Rao
Changes since v1: - Changes have been done primarily to address a few build issues, by moving changes out of mm/numa.c to other places. - Patches 1-5,8-9 have been rebased with patches 4 and 5 being interchanged, and patch 4 incorporating #ifdef CONFIG_PPC_SPLPAR. - Patch 6 is new and moves

[PATCH v2] crypto: nx: no need to check return value of debugfs_create functions

2019-06-14 Thread Greg Kroah-Hartman
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Also, there is no need to store the individual debugfs file names, especially as the whole directiry is deleted at

[PATCH] crypto: nx: no need to check return value of debugfs_create functions

2019-06-14 Thread Greg Kroah-Hartman
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Also, there is no need to store the individual debugfs file names, especially as the whole directiry is deleted at

Re: [PATCH 2/2] powerpc: expose secure variables via sysfs

2019-06-14 Thread Nayna
On 06/14/2019 02:34 AM, Greg Kroah-Hartman wrote: On Thu, Jun 13, 2019 at 04:50:27PM -0400, Nayna Jain wrote: As part of PowerNV secure boot support, OS verification keys are stored and controlled by OPAL as secure variables. These need to be exposed to the userspace so that sysadmins can

Re: [PATCH v3 2/4] crypto: talitos - fix hash on SEC1.

2019-06-14 Thread Horia Geanta
On 6/13/2019 3:48 PM, Christophe Leroy wrote: > @@ -336,15 +336,18 @@ static void flush_channel(struct device *dev, int ch, > int error, int reset_ch) > tail = priv->chan[ch].tail; > while (priv->chan[ch].fifo[tail].desc) { > __be32 hdr; > + struct

[PATCH v3 3/3] powerpc/boot: Add lzo support for uImage

2019-06-14 Thread Christophe Leroy
This patch allows to generate lzo compressed uImage Signed-off-by: Christophe Leroy --- v3: rebased following the drop of patch 3 (bzip2) which is not supported anymore by uboot. v2: restore alphabetic order in Kconfig --- arch/powerpc/Kconfig | 1 + arch/powerpc/boot/Makefile | 2 ++

[PATCH v3 1/3] powerpc/boot: don't force gzipped uImage

2019-06-14 Thread Christophe Leroy
This patch modifies the generation of uImage by handing over the selected compression type instead of forcing gzip Signed-off-by: Christophe Leroy --- v3: no change v2: no change --- arch/powerpc/boot/wrapper | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git

[PATCH v3 2/3] powerpc/boot: Add lzma support for uImage

2019-06-14 Thread Christophe Leroy
This patch allows to generate lzma compressed uImage Signed-off-by: Christophe Leroy --- v3: no change v2: restore alphabetic order in Kconfig --- arch/powerpc/Kconfig | 1 + arch/powerpc/boot/Makefile | 2 ++ arch/powerpc/boot/wrapper | 5 - 3 files changed, 7 insertions(+), 1

Re: [PATCH] powerpc: Enable kernel XZ compression option on PPC_85xx

2019-06-14 Thread Christophe Leroy
Le 13/06/2019 à 13:42, Michael Ellerman a écrit : Daniel Axtens writes: Pawel Dembicki writes: Enable kernel XZ compression option on PPC_85xx. Tested with simpleImage on TP-Link TL-WDR4900 (Freescale P1014 processor). Suggested-by: Christian Lamparter Signed-off-by: Pawel Dembicki

[PATCH v1 6/6] drivers/base/memory.c: Get rid of find_memory_block_hinted()

2019-06-14 Thread David Hildenbrand
No longer needed, let's remove it. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: Andrew Morton Cc: Stephen Rothwell Cc: Pavel Tatashin Cc: "mike.tra...@hpe.com" Signed-off-by: David Hildenbrand --- drivers/base/memory.c | 12 +++- include/linux/memory.h | 2 -- 2 files

[PATCH v1 5/6] mm/memory_hotplug: Move and simplify walk_memory_blocks()

2019-06-14 Thread David Hildenbrand
Let's move walk_memory_blocks() to the place where memory block logic resides and simplify it. While at it, add a type for the callback function. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: David Hildenbrand Cc: Andrew Morton Cc: Stephen Rothwell Cc: Pavel Tatashin Cc: Andrew Banman

[PATCH v1 3/6] mm: Make register_mem_sect_under_node() static

2019-06-14 Thread David Hildenbrand
It is only used internally. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: Andrew Morton Cc: Keith Busch Cc: Oscar Salvador Signed-off-by: David Hildenbrand --- drivers/base/node.c | 3 ++- include/linux/node.h | 7 --- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git

[PATCH v1 4/6] mm/memory_hotplug: Rename walk_memory_range() and pass start+size instead of pfns

2019-06-14 Thread David Hildenbrand
walk_memory_range() was once used to iterate over sections. Now, it iterates over memory blocks. Rename the function, fixup the documentation. Also, pass start+size instead of PFNs, which is what most callers already have at hand. (we'll rework link_mem_sections() most probably soon) Follow-up

[PATCH v1 2/6] drivers/base/memory: Use "unsigned long" for block ids

2019-06-14 Thread David Hildenbrand
Block ids are just shifted section numbers, so let's also use "unsigned long" for them, too. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Signed-off-by: David Hildenbrand --- drivers/base/memory.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git

[PATCH v1 0/6] mm: Further memory block device cleanups

2019-06-14 Thread David Hildenbrand
Some further cleanups around memory block devices. Especially, clean up and simplify walk_memory_range(). Including some other minor cleanups. Based on: linux-next Minor conflict with Dan's subsection hot-add series. Compiled + tested on x86 with DIMMs under QEMU. David Hildenbrand (6): mm:

[PATCH v1 1/6] mm: Section numbers use the type "unsigned long"

2019-06-14 Thread David Hildenbrand
We are using a mixture of "int" and "unsigned long". Let's make this consistent by using "unsigned long" everywhere. We'll do the same with memory block ids next. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: Andrew Morton Cc: Vlastimil Babka Cc: Michal Hocko Cc: Dan Williams Cc: Mel

Re: [PATCH v12 00/31] Speculative page faults

2019-06-14 Thread Laurent Dufour
Le 14/06/2019 à 10:37, Laurent Dufour a écrit : Please find attached the script I run to get these numbers. This would be nice if you could give it a try on your victim node and share the  result. Sounds that the Intel mail fitering system doesn't like the attached shell script. Please find

Re: [PATCH v12 00/31] Speculative page faults

2019-06-14 Thread Laurent Dufour
Le 06/06/2019 à 08:51, Haiyan Song a écrit : Hi Laurent, Regression test for v12 patch serials have been run on Intel 2s skylake platform, some regressions were found by LKP-tools (linux kernel performance). Only tested the cases that have been run and found regressions on v11 patch serials.

Re: [PATCH v2] cxl: no need to check return value of debugfs_create functions

2019-06-14 Thread Andrew Donnellan
On 13/6/19 1:54 am, Greg Kroah-Hartman wrote: When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Because there's no need to check, also make the return value of the

Re: [PATCH 01/14] ABI: fix some syntax issues at the ABI database

2019-06-14 Thread Rafael J. Wysocki
On Fri, Jun 14, 2019 at 4:04 AM Mauro Carvalho Chehab wrote: > > From: Mauro Carvalho Chehab > > On those three files, the ABI representation described at > README are violated. > > - at sysfs-bus-iio-proximity-as3935: > a ':' character is missing after "What" > > - at

Re: [PATCH v3 2/4] crypto: talitos - fix hash on SEC1.

2019-06-14 Thread Christophe Leroy
Le 13/06/2019 à 21:07, Horia Geanta a écrit : On 6/13/2019 3:48 PM, Christophe Leroy wrote: On SEC1, hash provides wrong result when performing hashing in several steps with input data SG list has more than one element. This was detected with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS: [

Re: remove asm-generic/ptrace.h v2

2019-06-14 Thread Christoph Hellwig
On Tue, Jun 04, 2019 at 09:02:05AM +0200, Christoph Hellwig wrote: > Is anyone going to pick this series up? ping? Arnd, this might be asm-generic tree material?

Re: [PATCH] powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac

2019-06-14 Thread Mathieu Malaterre
On Thu, Jun 13, 2019 at 10:27 AM Christoph Hellwig wrote: > > With the strict dma mask checking introduced with the switch to > the generic DMA direct code common wifi chips on 32-bit powerbooks > stopped working. Add a 30-bit ZONE_DMA to the 32-bit pmac builds > to allow them to reliably

Re: [PATCH 01/14] ABI: fix some syntax issues at the ABI database

2019-06-14 Thread Andrew Donnellan
On 14/6/19 12:04 pm, Mauro Carvalho Chehab wrote: diff --git a/Documentation/ABI/testing/sysfs-class-cxl b/Documentation/ABI/testing/sysfs-class-cxl index bbbabffc682a..fc7c6f7c21b3 100644 --- a/Documentation/ABI/testing/sysfs-class-cxl +++ b/Documentation/ABI/testing/sysfs-class-cxl @@ -1,6

[PATCH v3 10/10] powerpc/8xx: Add microcode patch to move SMC parameter RAM.

2019-06-14 Thread Christophe Leroy
Some SCC functions like the QMC requires an extended parameter RAM. On modern 8xx (ie 866 and 885), SPI area can already be relocated, allowing the use of those functions on SCC2. But SCC3 and SCC4 parameter RAM collide with SMC1 and SMC2 parameter RAMs. This patch adds microcode to allow the

[PATCH v3 09/10] powerpc/8xx: Use IO accessors in microcode programming.

2019-06-14 Thread Christophe Leroy
Change microcode functions to use IO accessors and get rid of volatile attributes. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 34 - 1 file changed, 16 insertions(+), 18 deletions(-) diff --git

[PATCH v3 08/10] powerpc/8xx: replace #ifdefs by IS_ENABLED() in microcode.c

2019-06-14 Thread Christophe Leroy
Reduce #ifdef mess by using IS_ENABLED() instead. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 33 + 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/arch/powerpc/platforms/8xx/micropatch.c

[PATCH v3 07/10] powerpc/8xx: refactor programming of microcode CPM params.

2019-06-14 Thread Christophe Leroy
The CPM registers RCCR and CPMCR1..4 registers has to be set in accordance with the microcode patch beeing programmed. Lets define them as part of the patch set and refactor their programming from that definition. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 45

[PATCH v3 06/10] powerpc/8xx: refactor printing of microcode patch name.

2019-06-14 Thread Christophe Leroy
Define patch name together with the patch code, and refactor the associated printk() while replacing it by a pr_info() Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git

[PATCH v3 05/10] powerpc/8xx: Refactor microcode write

2019-06-14 Thread Christophe Leroy
Add empty microcode tables so that all tables are defined all the time. Regroup the writing of the 3 tables regardless of the selected microcode. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-)

[PATCH v3 04/10] powerpc/8xx: refactor writing of CPM microcode arrays

2019-06-14 Thread Christophe Leroy
Create a function to refactor the writing of CPM microcode arrays. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 35 - 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/arch/powerpc/platforms/8xx/micropatch.c

[PATCH v3 03/10] powerpc/8xx: compact microcode arrays

2019-06-14 Thread Christophe Leroy
Compact obscure microcode arrays by putting 4 values per line in order to reduce number of lines in the file to increase readability. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 699 +++- 1 file changed, 140 insertions(+), 559

[PATCH v3 01/10] powerpc/8xx: move CPM1 related files from sysdev/ to platforms/8xx

2019-06-14 Thread Christophe Leroy
Only 8xx selects CPM1 and related CONFIG options are already in platforms/8xx/Kconfig Move the related C files to platforms/8xx/. Signed-off-by: Christophe Leroy --- v3: cpm_gpio is also used by CPM2, so it has to remain in sysdev for now ; no change to other patches of the series. v2: added

[PATCH v3 02/10] powerpc/8xx: drop verify_patch()

2019-06-14 Thread Christophe Leroy
verify_patch() has been opted out since many years, and the comment suggests it doesn't work. So drop it. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 40 - 1 file changed, 40 deletions(-) diff --git

Re: [PATCH 2/2] powerpc: expose secure variables via sysfs

2019-06-14 Thread Greg Kroah-Hartman
On Thu, Jun 13, 2019 at 04:50:27PM -0400, Nayna Jain wrote: > As part of PowerNV secure boot support, OS verification keys are stored > and controlled by OPAL as secure variables. These need to be exposed to > the userspace so that sysadmins can perform key management tasks. > > This patch adds