Re: [PATCH 0/1] Documentation: convert sh interfaces to RST

2017-02-17 Thread Rob Landley
On 02/12/2017 05:35 PM, Jonathan Corbet wrote: > On Fri, 20 Jan 2017 09:06:41 +1100 > Steve Kowalik wrote: > >> The following patch converts the SuperH interfaces DocBook into RST, >> however, I've not added it to the toctree, since I'm not 100% clear >> where it best fits. > > So I have to ap

[RFC][PATCH] cpufreq: User/admin documentation update and consolidation

2017-02-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The user/admin documentation of cpufreq is badly outdated. It conains stale and/or inaccurate information along with things that are not particularly useful. Also, some of the important pieces are missing from it. For this reason, add a new user/admin document for cpufr

Re: [PATCH v4 1/4] x86/mm: Adapt MODULES_END based on Fixmap section size

2017-02-17 Thread Thomas Garnier
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/Thomas-Garnier/x86-mm-Adapt-MODULES_END-based-on-Fixmap-section-size/20170217-072759 >> config: x86_64

Re: [PATCH v2 0/4] New Microsemi PCI Switch Management Driver

2017-02-17 Thread Logan Gunthorpe
Hi Bjorn, Can you give us an idea of when you might be able to comment on our patchset? We've addressed all the outstanding issues and have a couple of reviewed and tested tags. So we'd like to see this move forward as soon as possible. I can do a respin with the tags collected or address any con

Re: [PATCHv3 2/2] arch: Rename CONFIG_DEBUG_RODATA and CONFIG_DEBUG_MODULE_RONX

2017-02-17 Thread Mark Rutland
On Thu, Feb 16, 2017 at 05:08:20PM -0800, Kees Cook wrote: > On Thu, Feb 16, 2017 at 2:25 PM, Pavel Machek wrote: > > Hi! > > > >> > >> -config DEBUG_RODATA > >> +config STRICT_KERNEL_RWX > >> bool "Make kernel text and rodata read-only" if > >> ARCH_OPTIONAL_KERNEL_RWX > >> depends o

Re: [PATCH] Documentation: Note QDF2400 SoC Erratum 44

2017-02-17 Thread Will Deacon
On Wed, Feb 15, 2017 at 04:54:07PM -0500, Christopher Covington wrote: > The Qualcomm Datacenter Technologies QDF2400 family of SoCs contains a > custom (non-PrimeCell) implementation of the SBSA UART. Occasionally the > BUSY bit in the Flag Register gets stuck as 1, erratum 44 for both 2432v1 > an

Re: [PATCH v2 08/22] PCI: dwc: designware: Add EP mode support

2017-02-17 Thread Joao Pinto
Às 9:50 AM de 2/17/2017, Kishon Vijay Abraham I escreveu: > Add endpoint mode support to designware driver. This uses the > EP Core layer introduced recently to add endpoint mode support. > *Any* function driver can now use this designware device > in order to achieve the EP functionality. > > Sig

Re: [PATCH v2 04/22] Documentation: PCI: Guide to use pci endpoint configfs

2017-02-17 Thread Christoph Hellwig
I'm commenting on the configfs layout here instead of the patch with the code as the issues are easier to explain that way. I think the layout is a bit confusing and could be cleaner by making use of pre-created entries and symlinks. Here is my suggestion: /sys/kernel/config/pci_ep/functions/

Re: [PATCH v2 03/22] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-02-17 Thread Christoph Hellwig
On Fri, Feb 17, 2017 at 03:20:23PM +0530, Kishon Vijay Abraham I wrote: > Introduce a new configfs entry to configure the EP function (like > configuring the standard configuration header entries) and to > bind the EP function with EP controller. > > Signed-off-by: Kishon Vijay Abraham I > --- >

Re: [RFC PATCH v4 19/28] swiotlb: Add warnings for use of bounce buffers with SME

2017-02-17 Thread Tom Lendacky
On 2/17/2017 9:59 AM, Konrad Rzeszutek Wilk wrote: On Thu, Feb 16, 2017 at 09:46:19AM -0600, Tom Lendacky wrote: Add warnings to let the user know when bounce buffers are being used for DMA when SME is active. Since the bounce buffers are not in encrypted memory, these notifications are to allo

Re: [RFC PATCH v4 26/28] x86: Allow kexec to be used with SME

2017-02-17 Thread Tom Lendacky
On 2/17/2017 9:57 AM, Konrad Rzeszutek Wilk wrote: On Thu, Feb 16, 2017 at 09:47:55AM -0600, Tom Lendacky wrote: Provide support so that kexec can be used to boot a kernel when SME is enabled. Is the point of kexec and kdump to ehh, dump memory ? But if the rest of the memory is encrypted you

Re: [RFC PATCH v4 19/28] swiotlb: Add warnings for use of bounce buffers with SME

2017-02-17 Thread Konrad Rzeszutek Wilk
On Thu, Feb 16, 2017 at 09:46:19AM -0600, Tom Lendacky wrote: > Add warnings to let the user know when bounce buffers are being used for > DMA when SME is active. Since the bounce buffers are not in encrypted > memory, these notifications are to allow the user to determine some > appropriate actio

Re: [RFC PATCH v4 26/28] x86: Allow kexec to be used with SME

2017-02-17 Thread Konrad Rzeszutek Wilk
On Thu, Feb 16, 2017 at 09:47:55AM -0600, Tom Lendacky wrote: > Provide support so that kexec can be used to boot a kernel when SME is > enabled. Is the point of kexec and kdump to ehh, dump memory ? But if the rest of the memory is encrypted you won't get much, will you? Would it make sense to i

Re: [RFC PATCH v4 02/28] x86: Set the write-protect cache mode for full PAT support

2017-02-17 Thread Tom Lendacky
On 2/17/2017 5:07 AM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:42:25AM -0600, Tom Lendacky wrote: For processors that support PAT, set the write-protect cache mode (_PAGE_CACHE_MODE_WP) entry to the actual write-protect value (x05). Acked-by: Borislav Petkov Signed-off-by: Tom Lendack

Re: [PATCH v2 08/22] PCI: dwc: designware: Add EP mode support

2017-02-17 Thread Kishon Vijay Abraham I
Hi, On Friday 17 February 2017 03:20 PM, Kishon Vijay Abraham I wrote: > Add endpoint mode support to designware driver. This uses the > EP Core layer introduced recently to add endpoint mode support. > *Any* function driver can now use this designware device > in order to achieve the EP functiona

Re: [PATCH v2 04/22] Documentation: PCI: Guide to use pci endpoint configfs

2017-02-17 Thread Joao Pinto
Às 9:50 AM de 2/17/2017, Kishon Vijay Abraham I escreveu: > Add Documentation to help users use pci endpoint to configure > pci endpoint function and to bind the endpoint function > with endpoint controller. > > Signed-off-by: Kishon Vijay Abraham I > --- > Documentation/PCI/00-INDEX

Re: [PATCH v2 03/22] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-02-17 Thread Kishon Vijay Abraham I
Hi, On Friday 17 February 2017 03:20 PM, Kishon Vijay Abraham I wrote: > Introduce a new configfs entry to configure the EP function (like > configuring the standard configuration header entries) and to > bind the EP function with EP controller. > > Signed-off-by: Kishon Vijay Abraham I > --- >

Re: [RFC PATCH v4 05/28] x86: Add Secure Memory Encryption (SME) support

2017-02-17 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 09:43:07AM -0600, Tom Lendacky wrote: > Add support for Secure Memory Encryption (SME). This initial support > provides a Kconfig entry to build the SME support into the kernel and > defines the memory encryption mask that will be used in subsequent > patches to mark pages a

Re: [PATCH v2 01/22] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-02-17 Thread Joao Pinto
Às 11:37 AM de 2/17/2017, Kishon Vijay Abraham I escreveu: > Hi Joao, > > On Friday 17 February 2017 04:56 PM, Joao Pinto wrote: >> >> Hi Kishon, >> >> Às 9:50 AM de 2/17/2017, Kishon Vijay Abraham I escreveu: >>> Introduce a new EP core layer in order to support endpoint functions >>> in linux ke

Re: [PATCH v2 02/22] Documentation: PCI: Guide to use PCI Endpoint Core Layer

2017-02-17 Thread Joao Pinto
Às 9:50 AM de 2/17/2017, Kishon Vijay Abraham I escreveu: > Add Documentation to help users use endpoint library to enable endpoint > mode in the PCI controller and add new PCI endpoint functions. > > Signed-off-by: Kishon Vijay Abraham I > --- > Documentation/PCI/00-INDEX |

Re: [PATCH v2 01/22] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-02-17 Thread Kishon Vijay Abraham I
Hi Joao, On Friday 17 February 2017 04:56 PM, Joao Pinto wrote: > > Hi Kishon, > > Às 9:50 AM de 2/17/2017, Kishon Vijay Abraham I escreveu: >> Introduce a new EP core layer in order to support endpoint functions >> in linux kernel. This comprises of EPC library >> (Endpoint Controller Library)

Re: [PATCH v2 01/22] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-02-17 Thread Joao Pinto
Hi Kishon, Às 9:50 AM de 2/17/2017, Kishon Vijay Abraham I escreveu: > Introduce a new EP core layer in order to support endpoint functions > in linux kernel. This comprises of EPC library > (Endpoint Controller Library) and EPF library (Endpoint > Function Library). EPC library implements functi

Re: [RFC PATCH v4 02/28] x86: Set the write-protect cache mode for full PAT support

2017-02-17 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 09:42:25AM -0600, Tom Lendacky wrote: > For processors that support PAT, set the write-protect cache mode > (_PAGE_CACHE_MODE_WP) entry to the actual write-protect value (x05). > > Acked-by: Borislav Petkov > Signed-off-by: Tom Lendacky Just a nit: Subject should have "

Re: [RFC PATCH v4 04/28] x86: Handle reduction in physical address size with SME

2017-02-17 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 09:42:54AM -0600, Tom Lendacky wrote: > When System Memory Encryption (SME) is enabled, the physical address > space is reduced. Adjust the x86_phys_bits value to reflect this > reduction. > > Signed-off-by: Tom Lendacky > --- > arch/x86/kernel/cpu/common.c | 10 +++

[PATCH v2 00/22] PCI: Support for configurable PCI endpoint

2017-02-17 Thread Kishon Vijay Abraham I
This patch series *) add PCI endpoint core layer *) modify designware/dra7xx driver to be configured in EP mode *) add a PCI endpoint *test* function driver and corresponding host driver Changes from v1: *) The preparation patches for adding EP support is removed and is sent separately *

[PATCH v2 02/22] Documentation: PCI: Guide to use PCI Endpoint Core Layer

2017-02-17 Thread Kishon Vijay Abraham I
Add Documentation to help users use endpoint library to enable endpoint mode in the PCI controller and add new PCI endpoint functions. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/endpoint/pci-endpoint.txt | 190 ++

[PATCH v2 07/22] Documentation: PCI: Add binding documentation for pci-test endpoint function

2017-02-17 Thread Kishon Vijay Abraham I
Add binding documentation for pci-test endpoint function that helps in adding and configuring pci-test endpoint function. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX |2 ++ .../PCI/endpoint/function/binding/pci-test.txt | 17

[PATCH v2 05/22] Documentation: PCI: Add specification for the *pci test* function device

2017-02-17 Thread Kishon Vijay Abraham I
Add specification for the *pci test* virtual function device. The endpoint function driver and the host pci driver should be created based on this specification. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/endpoint/pci-te

[PATCH v2 03/22] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-02-17 Thread Kishon Vijay Abraham I
Introduce a new configfs entry to configure the EP function (like configuring the standard configuration header entries) and to bind the EP function with EP controller. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Kconfig | 14 +- drivers/pci/endpoint/Makefile |1

[PATCH v2 09/22] dt-bindings: PCI: Add dt bindings for pci designware EP mode

2017-02-17 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci designware EP mode. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/designware-pcie.txt| 26 ++-- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetr

[PATCH v2 10/22] PCI: dwc: dra7xx: Facilitate wrapper and msi interrupts to be enabled independently

2017-02-17 Thread Kishon Vijay Abraham I
No functional change. Split dra7xx_pcie_enable_interrupts into dra7xx_pcie_enable_wrapper_interrupts and dra7xx_pcie_enable_msi_interrupts so that wrapper interrupts and msi interrupts can be enabled independently. This is in preparation for adding EP mode support to dra7xx driver since EP mode doe

[PATCH v2 14/22] dt-bindings: PCI: dra7xx: Add dt bindings to enable legacy mode

2017-02-17 Thread Kishon Vijay Abraham I
Update device tree binding documentation of TI's dra7xx PCI controller to include property for enabling legacy mode. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt |4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bind

[PATCH v2 11/22] PCI: dwc: dra7xx: Add EP mode support

2017-02-17 Thread Kishon Vijay Abraham I
The PCIe controller integrated in dra7xx SoCs is capable of operating in endpoint mode. Add endpoint mode support to dra7xx driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig | 31 +- drivers/pci/dwc/Makefile |4 +- drivers/pci/dwc/pci-dra7xx.c

[PATCH v2 12/22] dt-bindings: PCI: dra7xx: Add dt bindings for pci dra7xx EP mode

2017-02-17 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci dra7xx EP mode. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt | 37 ++ 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/b

[PATCH v2 13/22] PCI: dwc: dra7xx: Workaround for errata id i870

2017-02-17 Thread Kishon Vijay Abraham I
According to errata i870, access to the PCIe slave port that are not 32-bit aligned will result in incorrect mapping to TLP Address and Byte enable fields. Accessing non 32-bit aligned data causes incorrect data in the target buffer if memcpy is used. Implement the workaround for this errata here.

[PATCH v2 15/22] PCI: Add device IDs for DRA74x and DRA72x

2017-02-17 Thread Kishon Vijay Abraham I
Add device IDs for DRA74x and DRA72x devices. These devices have configurable PCI endpoint. Signed-off-by: Kishon Vijay Abraham I --- include/linux/pci_ids.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 73dda0e..e8bbc4b 100644 -

[PATCH v2 17/22] Documentation: misc-devices: Add Documentation for pci-endpoint-test driver

2017-02-17 Thread Kishon Vijay Abraham I
Add Documentation for pci-endpoint-test driver. Signed-off-by: Kishon Vijay Abraham I --- Documentation/misc-devices/pci-endpoint-test.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/misc-devices/pci-endpoint-test.txt diff --git a/Documentat

[PATCH v2 04/22] Documentation: PCI: Guide to use pci endpoint configfs

2017-02-17 Thread Kishon Vijay Abraham I
Add Documentation to help users use pci endpoint to configure pci endpoint function and to bind the endpoint function with endpoint controller. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/endpoint/pci-endpoint-cfs.txt |

[PATCH v2 01/22] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-02-17 Thread Kishon Vijay Abraham I
Introduce a new EP core layer in order to support endpoint functions in linux kernel. This comprises of EPC library (Endpoint Controller Library) and EPF library (Endpoint Function Library). EPC library implements functions that is specific to an endpoint controller and EPF library implements funct

[PATCH v2 16/22] misc: Add host side pci driver for pci test function device

2017-02-17 Thread Kishon Vijay Abraham I
Add PCI endpoint test driver that can verify base address register, legacy interrupt/MSI interrupt and read/write/copy buffers between host and device. The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/Kconfig

[PATCH v2 19/22] tools: PCI: Add sample test script to invoke pcitest

2017-02-17 Thread Kishon Vijay Abraham I
Add a simple test script that invokes the pcitest userspace tool to perform all the PCI endpoint tests (BAR tests, interrupt tests, read tests, write tests and copy tests). Signed-off-by: Kishon Vijay Abraham I --- tools/pci/pcitest.sh | 56 ++ 1

[PATCH v2 20/22] Documentation: PCI: Add userguide for PCI endpoint test function

2017-02-17 Thread Kishon Vijay Abraham I
Add documentation to help users use pci-epf-test function driver and pci_endpoint_test host driver for testing PCI. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/endpoint/pci-test-howto.txt | 167 + 1 file changed, 167 insertions(+) create mode 100644 Docu

[PATCH v2 18/22] tools: PCI: Add a userspace tool to test PCI endpoint

2017-02-17 Thread Kishon Vijay Abraham I
Add a userspace tool to invoke the ioctls exposed by the PCI endpoint test driver to perform various PCI tests. Signed-off-by: Kishon Vijay Abraham I --- tools/pci/pcitest.c | 186 +++ 1 file changed, 186 insertions(+) create mode 100644 tools/pc

[PATCH v2 08/22] PCI: dwc: designware: Add EP mode support

2017-02-17 Thread Kishon Vijay Abraham I
Add endpoint mode support to designware driver. This uses the EP Core layer introduced recently to add endpoint mode support. *Any* function driver can now use this designware device in order to achieve the EP functionality. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig

[PATCH v2 21/22] MAINTAINERS: add PCI EP maintainer

2017-02-17 Thread Kishon Vijay Abraham I
Add maintainer for the newly introduced PCI EP framework. Signed-off-by: Kishon Vijay Abraham I --- MAINTAINERS |9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8672f18..62b86af 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9407,6 +9407,15 @@ F:

[PATCH v2 22/22] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP

2017-02-17 Thread Kishon Vijay Abraham I
The PCIe programming sequence in TRM suggests CLKSTCTRL of PCIe should be set to SW_WKUP. There are no issues when CLKSTCTRL is set to HW_AUTO in RC mode. However in EP mode, the host system is not able to access the MEMSPACE and setting the CLKSTCTRL to SW_WKUP fixes it. Acked-by: Tony Lindgren

[PATCH v2 06/22] PCI: endpoint: functions: Add an EP function to test PCI

2017-02-17 Thread Kishon Vijay Abraham I
Adds a new endpoint function driver (to program the virtual test device) making use of the EP-core library. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Kconfig |2 + drivers/pci/endpoint/Makefile |2 +- drivers/pci/endpoint/functions/Kc

Re: [PATCHv3 2/2] arch: Rename CONFIG_DEBUG_RODATA and CONFIG_DEBUG_MODULE_RONX

2017-02-17 Thread Helge Deller
On 17.02.2017 02:08, Kees Cook wrote: > On Thu, Feb 16, 2017 at 2:25 PM, Pavel Machek wrote: >> Hi! >> >>> >>> -config DEBUG_RODATA >>> +config STRICT_KERNEL_RWX >>> bool "Make kernel text and rodata read-only" if >>> ARCH_OPTIONAL_KERNEL_RWX >>> depends on ARCH_HAS_STRICT_KERNEL_RWX