Re: [RFC PATCH] x86/doc/boot_protocol: Correct the description of "reloc"

2019-09-26 Thread Cao jin
On 9/26/19 2:01 PM, Ingo Molnar wrote: > * Cao jin wrote: > >> The fields marked with (reloc) actually are not dedicated for writing, >> but communicating info for relocatable kernel with boot loaders. For >> example: >> >> >> Field name: pref_address >>

Re: [RFC PATCH] x86/doc/boot_protocol: Correct the description of "reloc"

2019-09-26 Thread hpa
On September 26, 2019 12:55:51 AM PDT, Cao jin wrote: >On 9/26/19 2:01 PM, Ingo Molnar wrote: >> * Cao jin wrote: >> >>> The fields marked with (reloc) actually are not dedicated for >writing, >>> but communicating info for relocatable kernel with boot loaders. For >>> example: >>> >>> =

Re: [RFC PATCH] x86/doc/boot_protocol: Correct the description of "reloc"

2019-09-26 Thread Cao jin
On 9/26/19 3:58 PM, h...@zytor.com wrote: > On September 26, 2019 12:55:51 AM PDT, Cao jin > wrote: >> On 9/26/19 2:01 PM, Ingo Molnar wrote: >>> * Cao jin wrote: >>> The fields marked with (reloc) actually are not dedicated for >> writing, but communicating info for relocatable kernel

Re: [PATCH 0/3] LTC2947 support

2019-09-26 Thread Sa, Nuno
On Tue, 2019-09-24 at 14:49 +0200, Nuno Sá wrote: > > This series adds support for the LTC2947 hwmon device. The device > supports power[1-*]_min_alarm, so that it makes use of > the HWMON_P_MIN_ALARM mask. This brings me to the first patch, which > is a > fix on the hwmon subsystem for the HWMON_

[RFC PATCH 00/21] Implement NTB Controller using multiple PCI

2019-09-26 Thread Kishon Vijay Abraham I
This series is sent as RFC since this series is dependent on [1] (cannot be merged before that series) and to get early review comments. I'll also split this series into smaller chunk when I post the next revision. This series is about implementing SW defined NTB using multiple endpoint instances

[RFC PATCH 02/21] dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF Device

2019-09-26 Thread Kishon Vijay Abraham I
Add device tree bindings for PCI endpoint function device. The nodes for PCI endpoint function device should be attached to PCI endpoint function bus. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/endpoint/pci-epf.txt | 28 +++ 1 file changed, 28 insertions(+

[RFC PATCH 05/21] PCI: endpoint: Add API to get reference to EPC from device-tree

2019-09-26 Thread Kishon Vijay Abraham I
Add of_pci_epc_get() and of_pci_epc_get_by_name() to get reference to EPC from device-tree. This is added in preparation to define an endpoint function from device tree. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 61 + include/linu

[RFC PATCH 06/21] PCI: endpoint: Add API to create EPF device from device tree

2019-09-26 Thread Kishon Vijay Abraham I
Add API to create EPF device from device tree and the device managed interface corresponding to it. This is added in order to define an endpoint function completely from device tree. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c | 68 +

[RFC PATCH 01/21] dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF Bus

2019-09-26 Thread Kishon Vijay Abraham I
Add device tree bindings for PCI endpoint function bus to which endpoint function devices should be attached. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/endpoint/pci-epf-bus.txt | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devi

[RFC PATCH 10/21] PCI: endpoint: Make pci_epf_driver ops optional

2019-09-26 Thread Kishon Vijay Abraham I
pci_epf_driver had two ops for bind and unbind which will be invoked when an endpoint controller is bound to an endpoint function (using configfs). Now that endpoint core has support to define an endpoint function using device tree alone, the bind and unbind ops can be optional. Make pci_epf_driver

[RFC PATCH 03/21] dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF NTB Device

2019-09-26 Thread Kishon Vijay Abraham I
Add device tree bindings for PCI endpoint NTB function device. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/endpoint/pci-epf-ntb.txt | 31 +++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/endpoint/pci-epf-ntb.txt d

[RFC PATCH 09/21] PCI: endpoint: Add helper API to get the 'next' unreserved BAR

2019-09-26 Thread Kishon Vijay Abraham I
Add an API to get the next unreserved BAR starting from a given BAR number that can be used by the endpoint function. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 26 ++ include/linux/pci-epc.h | 2 ++ 2 files changed, 24 in

[RFC PATCH 11/21] PCI: endpoint: Add helper API to populate header with values from DT

2019-09-26 Thread Kishon Vijay Abraham I
Add helper API pci_epc_of_parse_header() to populate header with values from device tree. These values will be written to the configuration space header in the endpoint controller. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 23 +++ include

[RFC PATCH 07/21] PCI: endpoint: Add "pci-epf-bus" driver

2019-09-26 Thread Kishon Vijay Abraham I
Add "pci-epf-bus" driver that helps to create EPF device from device tree. This is added in order to define an endpoint function completely from device tree. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Makefile | 3 +- drivers/pci/endpoint/pci-epf-bus.c | 54

[RFC PATCH 04/21] Documentation: PCI: Add specification for the *PCI NTB* function device

2019-09-26 Thread Kishon Vijay Abraham I
Add specification for the *PCI NTB* 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/endpoint/pci-test-ntb.txt | 315 1 file changed, 315 insertion

[RFC PATCH 13/21] PCI: endpoint: Add pci_epc_ops to map MSI irq

2019-09-26 Thread Kishon Vijay Abraham I
Add pci_epc_ops to map physical address to MSI address and return MSI data. The physical address is an address in the outbound region. This is required to implement doorbell functionality of NTB (non transparent bridge) wherein EPC on either side of the interface (primary and secondary) can directl

[RFC PATCH 14/21] PCI: cadence: Implement ->msi_map_irq() ops

2019-09-26 Thread Kishon Vijay Abraham I
Implement ->msi_map_irq() ops in order to map physical address to MSI address and return MSI data. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/pcie-cadence-ep.c | 59 1 file changed, 59 insertions(+) diff --git a/drivers/pci/controller/pcie-cadence-

[RFC PATCH 12/21] PCI: endpoint: Add support to associate secondary EPC with EPF

2019-09-26 Thread Kishon Vijay Abraham I
In the case of standard endpoint functions, only one endpoint controller (EPC) will be associated with an endpoint function (EPF). However for providing NTB (non transparent bridge) functionality, two EPCs should be associated with a single EPF. Add support to associate secondary EPC with EPF. This

[RFC PATCH 08/21] PCI: endpoint: Make *_get_first_free_bar() take into account 64 bit BAR

2019-09-26 Thread Kishon Vijay Abraham I
pci_epc_get_first_free_bar() uses only "reserved_bar" member in epc_features to get the first unreserved BAR. However if the reserved BAR is also a 64-bit BAR, then the next BAR shouldn't be returned (since 64-bit BAR uses two BARs). Make pci_epc_get_first_free_bar() take into account 64 bit BAR w

[RFC PATCH 20/21] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2019-09-26 Thread Kishon Vijay Abraham I
Add support for EPF PCI-Express Non-Transparent Bridge (NTB) device. This driver is platform independent and could be used by any platform which have multiple PCIe endpoint instances configured using the pci-epf-ntb driver. The driver connnects to the standard NTB sub-system interface. The EPF NTB

[RFC PATCH 21/21] NTB: tool: Enable the NTB/PCIe link on the local or remote side of bridge

2019-09-26 Thread Kishon Vijay Abraham I
Invoke ntb_link_enable() to enable the NTB/PCIe link on the local or remote side of the bridge. Signed-off-by: Kishon Vijay Abraham I --- drivers/ntb/test/ntb_tool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ntb/test/ntb_tool.c b/drivers/ntb/test/ntb_tool.c index d592c0ffbd19..

[RFC PATCH 18/21] PCI: endpoint: Add EP function driver to provide NTB functionality

2019-09-26 Thread Kishon Vijay Abraham I
Add a new endpoint function driver to provide NTB functionality using multiple PCIe endpoint instances. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/Kconfig | 12 + drivers/pci/endpoint/functions/Makefile |1 + drivers/pci/endpoint/functions/pci-epf-n

[RFC PATCH 19/21] PCI: Add TI J721E device to pci ids

2019-09-26 Thread Kishon Vijay Abraham I
Add TI J721E device to the pci id database. Since this device has a configurable PCIe endpoint, it could be used with different drivers. Signed-off-by: Kishon Vijay Abraham I --- include/linux/pci_ids.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/pci_ids.h b/include/linux/p

[RFC PATCH 17/21] PCI: endpoint: *_free_bar() to return error codes on failure

2019-09-26 Thread Kishon Vijay Abraham I
Modify pci_epc_get_next_free_bar() and pci_epc_get_first_free_bar() to return error values if there are no free BARs available. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 9 - include/linux/pci-epc.h | 7 +++ 2 files changed, 7 inserti

[RFC PATCH 16/21] PCI: endpoint: Fix missing mutex_unlock in error case

2019-09-26 Thread Kishon Vijay Abraham I
There is a missing mutex_unlock() in pci_epc_add_epf() in one of the error scenarios. Fix it here. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/pci/endpoint/pci-epc-core.c b/

[RFC PATCH 15/21] PCI: endpoint: Remove unused pci_epf_match_device()

2019-09-26 Thread Kishon Vijay Abraham I
Remove unused pci_epf_match_device() function added in pci-epf-core.c Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c | 16 include/linux/pci-epf.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/drivers/pci/endpoint/pci-epf-core

Re: [RFC PATCH] x86/doc/boot_protocol: Correct the description of "reloc"

2019-09-26 Thread Randy Dunlap
On 9/26/19 12:58 AM, h...@zytor.com wrote: > On September 26, 2019 12:55:51 AM PDT, Cao jin > wrote: >> On 9/26/19 2:01 PM, Ingo Molnar wrote: >>> * Cao jin wrote: >>> The fields marked with (reloc) actually are not dedicated for >> writing, but communicating info for relocatable kerne

Re: [PATCH 1/3] docs: fix some broken references

2019-09-26 Thread Shannon Nelson
On 9/24/19 6:01 AM, Mauro Carvalho Chehab wrote: There are a number of documentation files that got moved or renamed. update their references. Signed-off-by: Mauro Carvalho Chehab drivers/net/ethernet/pensando/ionic/ionic_if.h| 4 ++-- Acked-by: Shannon Nelson

Re: [RFC PATCH] x86/doc/boot_protocol: Correct the description of "reloc"

2019-09-26 Thread hpa
On September 26, 2019 8:20:28 AM PDT, Randy Dunlap wrote: >On 9/26/19 12:58 AM, h...@zytor.com wrote: >> On September 26, 2019 12:55:51 AM PDT, Cao jin > wrote: >>> On 9/26/19 2:01 PM, Ingo Molnar wrote: * Cao jin wrote: > The fields marked with (reloc) actually are not dedicated f

Re: [RFC PATCH] x86/doc/boot_protocol: Correct the description of "reloc"

2019-09-26 Thread hpa
On September 26, 2019 1:20:02 AM PDT, Cao jin wrote: >On 9/26/19 3:58 PM, h...@zytor.com wrote: >> On September 26, 2019 12:55:51 AM PDT, Cao jin > wrote: >>> On 9/26/19 2:01 PM, Ingo Molnar wrote: * Cao jin wrote: > The fields marked with (reloc) actually are not dedicated for >>>

Re: [RFC PATCH] x86/doc/boot_protocol: Correct the description of "reloc"

2019-09-26 Thread Cao jin
On 9/27/19 3:18 AM, h...@zytor.com wrote: > On September 26, 2019 1:20:02 AM PDT, Cao jin > wrote: >> On 9/26/19 3:58 PM, h...@zytor.com wrote: >>> On September 26, 2019 12:55:51 AM PDT, Cao jin >> wrote: On 9/26/19 2:01 PM, Ingo Molnar wrote: > * Cao jin wrote: > >> The fields