Re: [PATCH v5 4/4] sparc64: Add support for ADI (Application Data Integrity)

2017-01-31 Thread Khalid Aziz
On 01/30/2017 03:15 PM, David Miller wrote: From: Khalid Aziz Date: Wed, 25 Jan 2017 12:57:16 -0700 +static inline void enable_adi(void) +{ ... + __asm__ __volatile__( + "rdpr %%pstate, %%g1\n\t" + "or %%g1, %0, %%g1\n\t" + "wrpr %%g1, %%g0, %

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread Logan Gunthorpe
Hi Emil, Thanks for the feedback. On 31/01/17 01:48 PM, Emil Velikov wrote: >> +struct switchtec_ioctl_fw_info { >> + __u32 flash_length; >> + >> + struct { >> + __u32 address; >> + __u32 length; >> + __u32 active; > Something to keep in mind,

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread Emil Velikov
Hi Logan, NOTE: Please take my comments with a healthy pinch of salt. I'd imagine that core/more experienced developers have more thorough feedback, so I'll mention a few things on the less common part - robust/compat UABI. Above all, please read through the in-tree documentation on the topic [1]

Re: [PATCH] Documentation/gpu: drm-mm.rst: fix formatting for struct vm_operations_struct

2017-01-31 Thread Daniel Vetter
On Tue, Jan 31, 2017 at 05:41:09PM +, Liviu Dudau wrote: > drm-mm.rst contains some unformatted dump of the vm_operations_struct > structure. Add some C formatting around it and some context for the > dump. While there, update the structure to resemble the new signature > for the fault handler

[PATCH] Documentation/gpu: drm-mm.rst: fix formatting for struct vm_operations_struct

2017-01-31 Thread Liviu Dudau
drm-mm.rst contains some unformatted dump of the vm_operations_struct structure. Add some C formatting around it and some context for the dump. While there, update the structure to resemble the new signature for the fault handler after commit 25d3db7600b8 (mm, fs: reduce fault, page_mkwrite, and pf

[PATCH linux v5 5/6] hwmon: occ: Add hwmon implementation for the P8 OCC

2017-01-31 Thread eajames
From: "Edward A. James" Add code to tie the hwmon sysfs code and the POWER8 OCC code together, as well as probe the entire driver from the I2C bus. I2C is the communication method between the BMC and the P8 OCC. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/de

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread Logan Gunthorpe
On 31/01/17 11:57 AM, Greg Kroah-Hartman wrote: > Sorry, it was probably me :) Nope, it was Christoph Hellwig. I don't mind changing it. It's just hard to know what's expected all the time. > Why do you need this? Wherever you put it, it should be built as part > of the online kernel documenta

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread Greg Kroah-Hartman
On Tue, Jan 31, 2017 at 10:35:44AM -0700, Logan Gunthorpe wrote: > > > On 31/01/17 10:26 AM, Greg Kroah-Hartman wrote: > > That's one big patch to review, would you want to do that? > > Sorry, will do. > > > Can you break it up into smaller parts? At least put the documentation > > separately,

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread Logan Gunthorpe
On 31/01/17 10:49 AM, Jonathan Corbet wrote: > The good news is that your switchtec.txt file is already 99% in the RST > format, so there is little or nothing to do there. > > The bad news is that we don't quite have a place for it yet. This is > really user-space developer documentation, and w

Re: [RFC] tty: pl011: Work around stuck BUSY bit on QDF2400

2017-01-31 Thread Russell King - ARM Linux
On Mon, Jan 30, 2017 at 06:44:17PM -0500, Christopher Covington wrote: > { > struct uart_amba_port *uap = > container_of(port, struct uart_amba_port, port); > - unsigned int status = pl011_read(uap, REG_FR); > + unsigned int status = pl011_read(uap, REG_FR) ^ uap->vendor->i

[PATCH 0/1] DRAFT: New Microsemi PCI Switch Management Driver

2017-01-31 Thread Logan Gunthorpe
Hi, This is a continuation of the RFC we posted lasted month [1] which proposes a management driver for Microsemi's Switchtec line of PCI switches. This hardware is still looking to be used in the Open Compute Platform To make this entirely clear: the Switchtec products are compliant with the PCI

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread kbuild test robot
Hi Logan, [auto build test ERROR on pci/next] [also build test ERROR on v4.10-rc6 next-20170130] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Logan-Gunthorpe/MicroSemi-Switchtec-management-int

[PATCH RESEND] Documentation/sphinx: prevent generation of .pyc files in the source tree

2017-01-31 Thread Jani Nikula
Use PYTHONDONTWRITEBYTECODE=1 to prevent python from creating .pyc files in the source tree. Python 3.2 has a __pycache__ scheme [1], but before that the only alternative seems to be to copy the source files to the build tree to ensure the .pyc files are created there too. Just prevent .pyc file ge

Re: [PATCH v4 2/4] arm64: Work around Falkor erratum 1003

2017-01-31 Thread Marc Zyngier
On 31/01/17 17:48, Christopher Covington wrote: > On 01/31/2017 07:37 AM, Mark Rutland wrote: >> On Wed, Jan 25, 2017 at 10:52:30AM -0500, Christopher Covington wrote: >>> The Qualcomm Datacenter Technologies Falkor v1 CPU may allocate TLB entries >>> using an incorrect ASID when TTBRx_EL1 is being

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread Logan Gunthorpe
On 31/01/17 10:26 AM, Greg Kroah-Hartman wrote: > That's one big patch to review, would you want to do that? Sorry, will do. > Can you break it up into smaller parts? At least put the documentation > separately, right? Ha, funny. Last time I sent a patch someone asked for the documentation to

[PATCH v6] arm64: Work around Falkor erratum 1009

2017-01-31 Thread Christopher Covington
During a TLB invalidate sequence targeting the inner shareable domain, Falkor may prematurely complete the DSB before all loads and stores using the old translation are observed. Instruction fetches are not subject to the conditions of this erratum. If the original code sequence includes multiple T

Re: [PATCH v4 2/4] arm64: Work around Falkor erratum 1003

2017-01-31 Thread Christopher Covington
On 01/31/2017 07:37 AM, Mark Rutland wrote: > On Wed, Jan 25, 2017 at 10:52:30AM -0500, Christopher Covington wrote: >> The Qualcomm Datacenter Technologies Falkor v1 CPU may allocate TLB entries >> using an incorrect ASID when TTBRx_EL1 is being updated. When the erratum >> is triggered, page tabl

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread Jonathan Corbet
On Tue, 31 Jan 2017 10:35:44 -0700 Logan Gunthorpe wrote: > > And don't dump a .txt file into Documentation/ anymore, people are > > working to move to the newer format. > > Fair. I wasn't sure where a good place to put it was. Any suggestions? We're working toward a rational document hierarc

[PATCH linux v5 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-01-31 Thread eajames
From: "Edward A. James" Add core support for polling the OCC for it's sensor data and parsing that data into sensor-specific information. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hwmon/occ| 40 MAINTAINERS| 7 + drivers/hwmon/K

[PATCH linux v5 4/6] hwmon: occ: Add callbacks for parsing P8 OCC datastructures

2017-01-31 Thread eajames
From: "Edward A. James" Add functions to parse the data structures that are specific to the OCC on the POWER8 processor. These are the sensor data structures, including temperature, frequency, power, and "caps." Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hw

[PATCH linux v5 6/6] hwmon: occ: Add callbacks for parsing P9 OCC datastructures

2017-01-31 Thread eajames
From: "Edward A. James" Add functions to parse the data structures that are specific to the OCC on the POWER9 processor. These are the sensor data structures, including temperature, frequency, power, and "caps." Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hw

[PATCH linux v5 2/6] hwmon: occ: Add sysfs interface

2017-01-31 Thread eajames
From: "Edward A. James" Add a generic mechanism to expose the sensors provided by the OCC in sysfs. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hwmon/occ | 62 +++ drivers/hwmon/occ/Makefile| 2 +- drivers/hwmon/occ/occ_sysfs.c | 251 +++

[PATCH linux v5 0/6] drivers: hwmon: Add On-Chip Controller driver

2017-01-31 Thread eajames
From: "Edward A. James" This patchset adds a hwmon driver to support the OCC (On-Chip Controller) on the IBM POWER8 and POWER9 processors, from a BMC (Baseboard Management Controller). The OCC is an embedded processor that provides real time power and thermal monitoring. The driver provides an i

[PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread Logan Gunthorpe
Microsemi's "Switchtec" line of PCI switch devices is already well supported by the kernel with standard PCI switch drivers. However, the Switchtec device advertises a special management endpoint with a separate PCI function address and class code. This endpoint enables some additional functionalit

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread Greg Kroah-Hartman
On Tue, Jan 31, 2017 at 10:03:24AM -0700, Logan Gunthorpe wrote: > Microsemi's "Switchtec" line of PCI switch devices is already well > supported by the kernel with standard PCI switch drivers. However, the > Switchtec device advertises a special management endpoint with a separate > PCI function a

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-01-31 Thread Greg Kroah-Hartman
On Tue, Jan 31, 2017 at 10:03:24AM -0700, Logan Gunthorpe wrote: > Microsemi's "Switchtec" line of PCI switch devices is already well > supported by the kernel with standard PCI switch drivers. However, the > Switchtec device advertises a special management endpoint with a separate > PCI function a

Re: Sphinx builds always write to the source directory

2017-01-31 Thread Jonathan Corbet
On Tue, 31 Jan 2017 09:32:20 +0200 Jani Nikula wrote: > On Tue, 31 Jan 2017, Ben Hutchings wrote: > > I'm having trouble with the Debian packaging of kernel documentation. > > We try to build everything in a separate output directory (underneath > > debian/build), but the new Sphinx-based build

Re: [PATCH v5 2/2] arm64: Work around Falkor erratum 1009

2017-01-31 Thread Christopher Covington
On 01/31/2017 09:38 AM, Will Deacon wrote: > On Mon, Jan 30, 2017 at 06:08:17PM -0500, Christopher Covington wrote: >> diff --git a/arch/arm64/include/asm/tlbflush.h >> b/arch/arm64/include/asm/tlbflush.h >> index deab52374119..fc434f421c7b 100644 >> --- a/arch/arm64/include/asm/tlbflush.h >> +++

[PATCH linux v5 3/6] hwmon: occ: Add I2C transport implementation for SCOM operations

2017-01-31 Thread eajames
From: "Edward A. James" Add functions to send SCOM operations over I2C bus. The BMC can communicate with the Power8 host processor over I2C, but needs to use SCOM operations in order to access the OCC register space. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- drivers/hwm

Re: [PATCH 2/3] doc-rst: Delete output of failed dot-SVG conversion

2017-01-31 Thread Ben Hutchings
On Tue, 2017-01-31 at 09:36 +0200, Jani Nikula wrote: > On Tue, 31 Jan 2017, Ben Hutchings wrote: > > As we use redirection to create the SVG file, even a failed > > conversion > > will create the file and 'make' will consider it up-to-date if the > > build is retried.  We should delete it in case

Re: [RFC] tty: pl011: Work around stuck BUSY bit on QDF2400

2017-01-31 Thread Will Deacon
On Mon, Jan 30, 2017 at 06:44:17PM -0500, Christopher Covington wrote: > N.B. I'm not confident that this patch is ready to be included as-is. > Rather I'm hoping for guidance from reviewers and maintainers on > broad implementation choices--whether A) the bitmask of flags to invert > makes sense o

Re: [PATCH v5 2/2] arm64: Work around Falkor erratum 1009

2017-01-31 Thread Will Deacon
On Mon, Jan 30, 2017 at 06:08:17PM -0500, Christopher Covington wrote: > diff --git a/arch/arm64/include/asm/tlbflush.h > b/arch/arm64/include/asm/tlbflush.h > index deab52374119..fc434f421c7b 100644 > --- a/arch/arm64/include/asm/tlbflush.h > +++ b/arch/arm64/include/asm/tlbflush.h > @@ -36,9 +36

Re: [PATCH v5 2/2] arm64: Work around Falkor erratum 1009

2017-01-31 Thread Will Deacon
On Tue, Jan 31, 2017 at 12:42:23PM +, Mark Rutland wrote: > On Mon, Jan 30, 2017 at 06:08:17PM -0500, Christopher Covington wrote: > > During a TLB invalidate sequence targeting the inner shareable domain, > > Falkor may prematurely complete the DSB before all loads and stores using > > the old

Re: [PATCH 2/3] doc-rst: Delete output of failed dot-SVG conversion

2017-01-31 Thread Mauro Carvalho Chehab
Em Tue, 31 Jan 2017 14:00:59 +0100 Markus Heiser escreveu: > Am 31.01.2017 um 11:41 schrieb Mauro Carvalho Chehab : > > > Em Tue, 31 Jan 2017 09:44:10 +0100 > > Markus Heiser escreveu: > > > >> BTW, my 'convert' (ImageMagick) is very slow and CPU consuming: > >> > >> GENPDF Documentation

Re: [PATCH 2/3] doc-rst: Delete output of failed dot-SVG conversion

2017-01-31 Thread Markus Heiser
Am 31.01.2017 um 11:41 schrieb Mauro Carvalho Chehab : > Em Tue, 31 Jan 2017 09:44:10 +0100 > Markus Heiser escreveu: > >> BTW, my 'convert' (ImageMagick) is very slow and CPU consuming: >> >> GENPDF Documentation/media/uapi/v4l/selection.svg >> >> takes approximately 20% - 30% of the **co

Re: [PATCH v5 2/2] arm64: Work around Falkor erratum 1009

2017-01-31 Thread Mark Rutland
On Mon, Jan 30, 2017 at 06:08:17PM -0500, Christopher Covington wrote: > During a TLB invalidate sequence targeting the inner shareable domain, > Falkor may prematurely complete the DSB before all loads and stores using > the old translation are observed. Instruction fetches are not subject to > th

Re: [PATCH v4 2/4] arm64: Work around Falkor erratum 1003

2017-01-31 Thread Mark Rutland
On Wed, Jan 25, 2017 at 10:52:30AM -0500, Christopher Covington wrote: > The Qualcomm Datacenter Technologies Falkor v1 CPU may allocate TLB entries > using an incorrect ASID when TTBRx_EL1 is being updated. When the erratum > is triggered, page table entries using the new translation table base >

Re: [PATCH v3 1/1] DM: inplace compressed DM target

2017-01-31 Thread kbuild test robot
Hi Ram, [auto build test ERROR on dm/for-next] [also build test ERROR on v4.10-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ram-Pai/DM-inplace-compressed-DM-target/20170131-154811 base

Re: [PATCH 2/3] doc-rst: Delete output of failed dot-SVG conversion

2017-01-31 Thread Mauro Carvalho Chehab
Em Tue, 31 Jan 2017 09:44:10 +0100 Markus Heiser escreveu: > BTW, my 'convert' (ImageMagick) is very slow and CPU consuming: > >GENPDF Documentation/media/uapi/v4l/selection.svg > > takes approximately 20% - 30% of the **complete** build time > of the 'pdfdocs' target. Its only with 'selec

Re: [PATCH v3 1/1] DM: inplace compressed DM target

2017-01-31 Thread kbuild test robot
/20170131-154811 base: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next config: cris-allyesconfig (attached as .config) compiler: cris-linux-gcc (GCC) 6.2.0 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross

[PATCH] doc-rst: fixed cleandoc target when used with O=dir

2017-01-31 Thread Markus Heiser
The cleandocs target won't work if I use a different output folder:: $ make O=/tmp/kernel SPHINXDIRS="process" cleandocs make[1]: Entering directory '/tmp/kernel' make[3]: *** No rule to make target 'clean'. Stop. ... Documentation/Makefile.sphinx:100: recipe for target 'cleandocs' failed

[PATCH nf-next v2] netfilter: allow logging from non-init namespaces

2017-01-31 Thread Michal Kubecek
Commit 69b34fb996b2 ("netfilter: xt_LOG: add net namespace support for xt_LOG") disabled logging packets using the LOG target from non-init namespaces. The motivation was to prevent containers from flooding kernel log of the host. The plan was to keep it that way until syslog namespace implementati

Re: [PATCH 3/3] doc-rst: Fix recursive make invocation from macros

2017-01-31 Thread Markus Heiser
Am 31.01.2017 um 01:18 schrieb Ben Hutchings : > In any case where we recurse but don't mention $(MAKE) literally in > the recipe, we need to add a '+' at the start of the command to ensure > that parallel makes and various other options work properly. Tested-by: Markus Heiser Thanks! for tho

Re: [PATCH 2/3] doc-rst: Delete output of failed dot-SVG conversion

2017-01-31 Thread Markus Heiser
Am 31.01.2017 um 08:36 schrieb Jani Nikula : > On Tue, 31 Jan 2017, Ben Hutchings wrote: >> As we use redirection to create the SVG file, even a failed conversion >> will create the file and 'make' will consider it up-to-date if the >> build is retried. We should delete it in case of failure. >

Re: [PATCH 1/3] doc-rst: Break shell command sequences on failure

2017-01-31 Thread Markus Heiser
Am 31.01.2017 um 01:18 schrieb Ben Hutchings : > As $(SHELL) doesn't include the -e option, any loop or other sequence > needs to include explicit checks for failing commands. > > Fixes: 609afe6b49ef ("Documentation/sphinx: build the media intermediate ...") > Fixes: 606b9ac81a63 ("doc-rst: gene