[tip: ras/core] x86/mce: Rename kill_it to kill_current_task

2020-12-01 Thread tip-bot2 for Gabriele Paoloni
The following commit has been merged into the ras/core branch of tip: Commit-ID: e1c06d2366e743475b91045ef0c2ce1bbd028cb6 Gitweb: https://git.kernel.org/tip/e1c06d2366e743475b91045ef0c2ce1bbd028cb6 Author:Gabriele Paoloni AuthorDate:Fri, 27 Nov 2020 16:18:19 Committer

[tip: ras/core] x86/mce: Panic for LMCE only if mca_cfg.tolerant < 3

2020-12-01 Thread tip-bot2 for Gabriele Paoloni
The following commit has been merged into the ras/core branch of tip: Commit-ID: 3a866b16fd2360a9c4ebf71cfbf7ebfe968c1409 Gitweb: https://git.kernel.org/tip/3a866b16fd2360a9c4ebf71cfbf7ebfe968c1409 Author:Gabriele Paoloni AuthorDate:Fri, 27 Nov 2020 16:18:17 Committer

[tip: ras/core] x86/mce: Move the mce_panic() call and 'kill_it' assignments to the right places

2020-12-01 Thread tip-bot2 for Gabriele Paoloni
The following commit has been merged into the ras/core branch of tip: Commit-ID: e273e6e12ab1db3eb57712bd60655744d0091fa3 Gitweb: https://git.kernel.org/tip/e273e6e12ab1db3eb57712bd60655744d0091fa3 Author:Gabriele Paoloni AuthorDate:Fri, 27 Nov 2020 16:18:16 Committer

[tip: ras/core] x86/mce: Remove redundant call to irq_work_queue()

2020-12-01 Thread tip-bot2 for Gabriele Paoloni
The following commit has been merged into the ras/core branch of tip: Commit-ID: d5b38e3d0fdb1a16994b449bc338fb8b26816b07 Gitweb: https://git.kernel.org/tip/d5b38e3d0fdb1a16994b449bc338fb8b26816b07 Author:Gabriele Paoloni AuthorDate:Fri, 27 Nov 2020 16:18:18 Committer

[tip: x86/urgent] x86/mce: Do not overwrite no_way_out if mce_end() fails

2020-11-27 Thread tip-bot2 for Gabriele Paoloni
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 25bc65d8ddfc17cc1d7a45bd48e9bdc0e729ced3 Gitweb: https://git.kernel.org/tip/25bc65d8ddfc17cc1d7a45bd48e9bdc0e729ced3 Author:Gabriele Paoloni AuthorDate:Fri, 27 Nov 2020 16:18:15 Committer

[PATCH v2 5/5] x86/mce: rename kill_it as kill_current_task

2020-11-27 Thread Gabriele Paoloni
Currently if an MCE happens in user-mode or while the kernel is copying data from user space, 'kill_it' is used to check if we can recover the execution of the interrupted task or not; the flag name however is not much meaningful, hence rename it to match its goal. Signed-off-by: Gabrie

[PATCH v2 4/5] x86/mce: remove redundant call to irq_work_queue()

2020-11-27 Thread Gabriele Paoloni
Right now in do_machine_check() __mc_scan_banks() triggers the following call tree: __mc_scan_banks()->mce_log()->irq_work_queue(&mce_irq_work). Hence the call of irq_work_queue() below after __mc_scan_banks() seems redundant. Just remove it. Signed-off-by: Gabriele Paoloni Reviewe

[PATCH v2 2/5] x86/mce: move the mce_panic() call and 'kill_it' assignments to the right places

2020-11-27 Thread Gabriele Paoloni
where mce_end() fails. Signed-off-by: Gabriele Paoloni Reviewed-by: Tony Luck --- arch/x86/kernel/cpu/mce/core.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index 32b7099e3511..50e9b0893a92

[PATCH v2 3/5] x86/mce: for LMCE panic only if mca_cfg.tolerant < 3

2020-11-27 Thread Gabriele Paoloni
Right now for LMCE if no_way_out is set mce_panic() is called regardless of mca_cfg.tolerant. This is not correct as, if mca_cfg.tolerant = 3, the code should never panic. Signed-off-by: Gabriele Paoloni Reviewed-by: Tony Luck --- arch/x86/kernel/cpu/mce/core.c | 2 +- 1 file changed, 1

[PATCH v2 1/5] x86/mce: do not overwrite no_way_out if mce_end() fails

2020-11-27 Thread Gabriele Paoloni
all severities of all CPUs that entered the MCE handler. If mce_end() fails, check first if no_way_out is already set and, if so, stick to it, otherwise use the local worst value. Cc: Signed-off-by: Gabriele Paoloni Reviewed-by: Tony Luck --- arch/x86/kernel/cpu/mce/core.c | 6 -- 1 fi

[PATCH v2 0/5] x86/MCE: some minor fixes

2020-11-27 Thread Gabriele Paoloni
named to kill_current_task Signed-off-by: Gabriele Paoloni Reviewed-by: Tony Luck Gabriele Paoloni (5): x86/mce: do not overwrite no_way_out if mce_end() fails x86/mce: move the mce_panic() call and 'kill_it' assignments to the right places x86/mce: for LMCE panic only if m

[PATCH 0/4] x86/MCE: some minor fixes

2020-11-18 Thread Gabriele Paoloni
During the safety analysis that was done in the context of the ELISA project by the safety architecture working group some incorrectnesses were spotted. This patchset proposes some fixes. Signed-off-by: Gabriele Paoloni Reviewed-by: Tony Luck Gabriele Paoloni (4): x86/mce: do not overwrite

[PATCH 1/4] x86/mce: do not overwrite no_way_out if mce_end() fails

2020-11-18 Thread Gabriele Paoloni
mce_end() fails we first check if no_way_out is already set and if so we stick to it, otherwise we use the local worst value Signed-off-by: Gabriele Paoloni Reviewed-by: Tony Luck --- arch/x86/kernel/cpu/mce/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86

[PATCH 4/4] x86/mce: remove redundant call to irq_work_queue()

2020-11-18 Thread Gabriele Paoloni
Right now in do_machine_check() we have: __mc_scan_banks()->mce_log()->irq_work_queue(&mce_irq_work) hence the call of irq_work_queue() below after __mc_scan_banks() seems redundant. Just remove it. Signed-off-by: Gabriele Paoloni Reviewed-by: Tony Luck --- arch/x86/kernel/cpu/mce/

[PATCH 2/4] x86/mce: move the mce_panic() call and kill_it assignments at the right places

2020-11-18 Thread Gabriele Paoloni
statement where mce_end() fails Signed-off-by: Gabriele Paoloni Reviewed-by: Tony Luck --- arch/x86/kernel/cpu/mce/core.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index b990892c6766

[PATCH 3/4] x86/mce: for LMCE panic only if mca_cfg.tolerant < 3

2020-11-18 Thread Gabriele Paoloni
Right now for LMCE if no_way_out is set mce_panic() is called regardless of mca_cfg.tolerant. This is not correct as if mca_cfg.tolerant = 3 we should never panic. Signed-off-by: Gabriele Paoloni Reviewed-by: Tony Luck --- arch/x86/kernel/cpu/mce/core.c | 2 +- 1 file changed, 1 insertion

RE: [PATCH v10 0/9] LPC: legacy ISA I/O support

2017-11-09 Thread Gabriele Paoloni
Hi Dann > -Original Message- > From: dann frazier [mailto:dann.fraz...@canonical.com] > Sent: 09 November 2017 16:16 > To: Gabriele Paoloni > Cc: Catalin Marinas; Will Deacon; Rob Herring; Frank Rowand; Bjorn > Helgaas; raf...@kernel.org; Arnd Bergmann; linux-arm-kernel

RE: [PATCH v10 6/9] LPC: Support the LPC host on Hip06/Hip07 with DT bindings

2017-11-09 Thread Gabriele Paoloni
Hi Dann [...] > > + > > +#define START_WORK 0x01 > > Any reason not to put this in the LPC_ namespace as well? No, not really. We'll make it consistent in the next patchset > > > +/* The minimal nanosecond interval for each query on LPC cycle > status. */ [...] > > + * hisilpc_tar

RE: [PATCH v10 2/9] PCI: remove unused __weak attribute in pci_register_io_range()

2017-11-07 Thread Gabriele Paoloni
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 07 November 2017 00:23 > To: Gabriele Paoloni > Cc: catalin.mari...@arm.com; will.dea...@arm.com; robh...@kernel.org; > frowand.l...@gmail.com; bhelg...@google.com; raf...@kernel.org; >

RE: [PATCH v10 2/9] PCI: remove unused __weak attribute in pci_register_io_range()

2017-11-07 Thread Gabriele Paoloni
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 07 November 2017 00:25 > To: Gabriele Paoloni > Cc: catalin.mari...@arm.com; will.dea...@arm.com; robh...@kernel.org; > frowand.l...@gmail.com; bhelg...@google.com; raf...@kernel.org; >

RE: [PATCH v10 9/9] MANTAINERS: Add maintainer for HiSilicon LPC driver

2017-11-07 Thread Gabriele Paoloni
Hi Bjorn Many Thanks for reviewing > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 07 November 2017 00:21 > To: Gabriele Paoloni > Cc: catalin.mari...@arm.com; will.dea...@arm.com; robh...@kernel.org; > frowand.l...@gmail.com; bhelg.

RE: [PATCH v10 6/9] LPC: Support the LPC host on Hip06/Hip07 with DT bindings

2017-10-30 Thread Gabriele Paoloni
Hi Randy > -Original Message- > From: Randy Dunlap [mailto:rdun...@infradead.org] > Sent: 27 October 2017 17:44 > To: Gabriele Paoloni; catalin.mari...@arm.com; will.dea...@arm.com; > robh...@kernel.org; frowand.l...@gmail.com; bhelg...@google.com; > raf...@kernel.

RE: [PATCH v10 1/9] LIB: Introduce a generic PIO mapping method

2017-10-30 Thread Gabriele Paoloni
Hi Corey Many Thanks for your comments [...] > > #define IO_SPACE_LIMIT 0x > > #endif > > > > +#include > > This whole thing would be a lot simpler if you had: > > #ifdef CONFIG_INDIRECT_PIO > #define inb logic_inb > #define outb logic outb > . > . > #endif /* CONFIG_INDIRECT_PIO */ >

RE: [PATCH v10 0/9] LPC: legacy ISA I/O support

2017-10-30 Thread Gabriele Paoloni
Hi David [...] > FWIW my thoughts on this are WTF! > > Looks to me horribly over complicated and over generalised. > > Surely is it could be done the same way that x86 does IO cycles? No > So you encode the information into the 'address' the driver passes > to ioread16() (etc) to allow it to

[PATCH v10 9/9] MANTAINERS: Add maintainer for HiSilicon LPC driver

2017-10-27 Thread Gabriele Paoloni
Added maintainer for drivers/bus/hisi_lpc.c Signed-off-by: Gabriele Paoloni --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f66488d..b49d4c0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6130,6 +6130,13 @@ F: include/uapi/linux

[PATCH v10 3/9] PCI: add fwnode handler as input param of pci_register_io_range()

2017-10-27 Thread Gabriele Paoloni
From: gabriele paoloni In preparation for having the PCI MMIO helpers to use the new generic I/O space management(LOGIC_PIO) we need to add the fwnode handler as extra input parameter. This patch changes the signature of pci_register_io_range() and of its callers as needed. Signed-off-by

[PATCH v10 2/9] PCI: remove unused __weak attribute in pci_register_io_range()

2017-10-27 Thread Gabriele Paoloni
From: gabriele paoloni Currently pci_register_io_range() has only one definition; therefore there is no use of the __weak attribute. Signed-off-by: Gabriele Paoloni Acked-by: Bjorn Helgaas --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci

[PATCH v10 8/9] LPC: Add the ACPI LPC support

2017-10-27 Thread Gabriele Paoloni
From: "zhichang.yuan" Based on the provious patches, this patch supports the ACPI LPC host on Hip06/Hip07. Signed-off-by: zhichang.yuan Signed-off-by: John Garry Signed-off-by: Gabriele Paoloni Tested-by: dann frazier --- drivers/acpi/arm64/acpi_indirectio.c | 3 + drivers/

[PATCH v10 4/9] PCI: Apply the new generic I/O management on PCI IO hosts

2017-10-27 Thread Gabriele Paoloni
From: gabriele paoloni After introducing the new generic I/O space management(LOGIC_PIO), the original PCI MMIO relevant helpers need to be updated based on the new interfaces defined in LOGIC_PIO. This patch adapts the corresponding code to match the changes introduced by LOGIC_PIO. Signed-off

[PATCH v10 5/9] OF: Add missing I/O range exception for indirect-IO devices

2017-10-27 Thread Gabriele Paoloni
on will be done in a different way from that one of PCI MMIO. In this way, the I/O 'reg' property of the special ISA/LPC devices will be parsed correctly. Signed-off-by: zhichang.yuan Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann #earlier draft Acked-by: Rob

[PATCH v10 7/9] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-10-27 Thread Gabriele Paoloni
From: gabriele paoloni On some platforms(such as Hip06/Hip07), the legacy ISA/LPC devices access I/O with some special host-local I/O ports known on x86. As their I/O space are not memory mapped like PCI/PCIE MMIO host bridges, this patch is meant to support a new class of I/O host controllers

[PATCH v10 6/9] LPC: Support the LPC host on Hip06/Hip07 with DT bindings

2017-10-27 Thread Gabriele Paoloni
ff-by: zhichang.yuan Signed-off-by: Gabriele Paoloni Acked-by: Rob Herring #dts part --- .../arm/hisilicon/hisilicon-low-pin-count.txt | 33 ++ drivers/bus/Kconfig| 9 + drivers/bus/Makefile | 1 + dr

[PATCH v10 0/9] LPC: legacy ISA I/O support

2017-10-27 Thread Gabriele Paoloni
From: gabriele paoloni This patchset supports the IPMI-bt device attached to the Low-Pin-Count interface implemented on Hisilicon Hip06/Hip07 SoC. --- | LPC host

[PATCH v10 1/9] LIB: Introduce a generic PIO mapping method

2017-10-27 Thread Gabriele Paoloni
s to either PCI MMIO devices or host-local I/O peripherals can be unified into the existing I/O accessors defined in asm-generic/io.h and be redirected to the right device-specific hooks based on the input logical PIO. Signed-off-by: zhichang.yuan Signed-off-by: Gabriele Paoloni --- include/asm

RE: [PATCH v3] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-10-02 Thread Gabriele Paoloni
[...] > > > > Applied to pci/aer for v4.15, thanks! > > > > I rewrote some of the changelog to say "non-fatal" instead of > > "uncorrectable", since "uncorrectable" also includes fatal errors, > > and you're not changing those. Take a look and let me know if > > I broke anything. > > Here it is

[PATCH v3] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-09-28 Thread Gabriele Paoloni
ch fixes a bug (filed as in the link below) Link: https://bugzilla.kernel.org/show_bug.cgi?id=197055 Fixes: 6c2b374d7485 ("PCI-Express AER implemetation: AER core and aerdriver") Signed-off-by: Gabriele Paoloni Signed-off-by: Dongdong Liu --- Changes from v2: - no functional changes -

RE: [PATCH v2] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-09-27 Thread Gabriele Paoloni
Hi Bjorn > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 25 September 2017 19:34 > To: Gabriele Paoloni > Cc: Linuxarm; liudongdong (C); linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH v2] PCIe AER:

RE: [PATCH V6 3/5] PCI: thunder-pem: Allow to probe PEM-specific register range for ACPI case

2017-09-26 Thread Gabriele Paoloni
Hi Ard Sorry to reply late on this > -Original Message- > From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] > Sent: 14 September 2017 15:07 > To: Gabriele Paoloni > Cc: Lorenzo Pieralisi; Hanjun Guo; Marcin Wojtas; Wangyijing; linux- > p...@vger.kernel.

RE: [PATCH v2] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-09-06 Thread Gabriele Paoloni
Hi Bjorn > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 02 September 2017 18:33 > To: Gabriele Paoloni > Cc: Linuxarm; liudongdong (C); linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH v2] PCIe AER:

RE: [PATCH v2] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-09-01 Thread Gabriele Paoloni
Hi Bjorn Many thanks for looking at this > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 01 September 2017 05:43 > To: Gabriele Paoloni > Cc: Linuxarm; liudongdong (C); linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org > S

RE: [PATCH v2] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-08-30 Thread Gabriele Paoloni
ping... > -Original Message- > From: Gabriele Paoloni > Sent: 18 August 2017 12:02 > To: helg...@kernel.org > Cc: Gabriele Paoloni; Linuxarm; liudongdong (C); linux- > p...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [PATCH v2] PCIe AER: report uncorre

[PATCH v2] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-08-18 Thread Gabriele Paoloni
r for non fatal errors. Signed-off-by: Gabriele Paoloni Signed-off-by: Dongdong Liu --- Changes from v1: - now errors are reported only to the fucntions that logged the error instead of all the functions in the same device. - the patch subject has changed to match the new implementation ---

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-07-04 Thread Gabriele Paoloni
Hi Andy [...] > > You may do it on stack. Define your cell statically (but not const) > and apply resources just before mfd_add_devices() call. Ok thanks got it > There are examples in the existing drivers. Intel LPC comes to my mind > and perhaps PMC (Broxton), though latter has too much othe

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-07-04 Thread Gabriele Paoloni
Hi Andy [...] > > JFYI: Mika on vacation. Thanks for letting me know > > > I had a look into the MFD framework. If my understanding is correct > the mfd > > framework create a platform device for each declared mfd_cell that is > passed > > to mfd_add_devices(). > > Right. > > > However ther

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-07-03 Thread Gabriele Paoloni
+CC Lee Jones > -Original Message- > From: Gabriele Paoloni > Sent: 03 July 2017 17:08 > To: Gabriele Paoloni; Mika Westerberg > Cc: Rafael J. Wysocki; Lorenzo Pieralisi; Rafael J. Wysocki; > catalin.mari...@arm.com; will.dea...@arm.com; robh...@kernel.org; > frowand.

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-07-03 Thread Gabriele Paoloni
Hi Mika > -Original Message- > From: linux-pci-ow...@vger.kernel.org [mailto:linux-pci- > ow...@vger.kernel.org] On Behalf Of Gabriele Paoloni > Sent: 19 June 2017 11:05 > To: Mika Westerberg > Cc: Rafael J. Wysocki; Lorenzo Pieralisi; Rafael J. Wysocki; > ca

RE: [PATCH v5 0/2] add MSI support for PCIe port services and DPC IRQ support

2017-06-19 Thread Gabriele Paoloni
Hi Bjorn [...] ++-- > -- > > 2 files changed, 50 insertions(+), 21 deletions(-) > > Applied to pci/portdrv for v4.13, thanks! > > I tweaked the PME/hotplug no-MSI logic in pcie_init_service_irqs() > because I thought it was getting hard to read with the negations and > conj

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-06-19 Thread Gabriele Paoloni
Hi Mika > -Original Message- > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Sent: 19 June 2017 11:02 > To: Gabriele Paoloni > Cc: Rafael J. Wysocki; Lorenzo Pieralisi; Rafael J. Wysocki; > catalin.mari...@arm.com; will.dea...@arm.com; robh...@kerne

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-06-19 Thread Gabriele Paoloni
Hi Rafael, Mika, Lorenzo > -Original Message- > From: rjwyso...@gmail.com [mailto:rjwyso...@gmail.com] On Behalf Of > Rafael J. Wysocki > Sent: 16 June 2017 13:23 > To: Mika Westerberg > Cc: Rafael J. Wysocki; Gabriele Paoloni; Lorenzo Pieralisi; Rafael J. >

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-06-15 Thread Gabriele Paoloni
Hi Mika > -Original Message- > From: linux-pci-ow...@vger.kernel.org [mailto:linux-pci- > ow...@vger.kernel.org] On Behalf Of Mika Westerberg > Sent: 13 June 2017 21:04 > To: Gabriele Paoloni > Cc: Lorenzo Pieralisi; raf...@kernel.org; Rafael J. Wysocki; > ca

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-06-13 Thread Gabriele Paoloni
Hi Mika > -Original Message- > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Sent: 13 June 2017 16:10 > To: Gabriele Paoloni > Cc: Lorenzo Pieralisi; raf...@kernel.org; Rafael J. Wysocki; > catalin.mari...@arm.com; will.dea...@arm.com; robh...@kerne

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-06-13 Thread Gabriele Paoloni
Hi Mika > -Original Message- > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Sent: 13 June 2017 09:49 > To: Lorenzo Pieralisi > Cc: Gabriele Paoloni; raf...@kernel.org; Rafael J. Wysocki; > catalin.mari...@arm.com; will.dea...@arm.com; robh...@kerne

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-06-13 Thread Gabriele Paoloni
Hi Lorenzo, Rafael > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: 12 June 2017 16:57 > To: Gabriele Paoloni; raf...@kernel.org; Rafael J. Wysocki; Mika > Westerberg > Cc: catalin.mari...@arm.com; will.dea...@arm.com;

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-05-31 Thread Gabriele Paoloni
Hi Lorenzo Many thanks for reviewing > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: 30 May 2017 14:24 > To: Gabriele Paoloni > Cc: catalin.mari...@arm.com; will.dea...@arm.com; robh...@kernel.org; > frowand.l...@gmail.com; b

RE: [PATCH v9 1/7] LIB: Introduce a generic PIO mapping method

2017-05-30 Thread Gabriele Paoloni
Hi Bjorn > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 26 May 2017 21:58 > To: Gabriele Paoloni > Cc: catalin.mari...@arm.com; will.dea...@arm.com; robh...@kernel.org; > frowand.l...@gmail.com; bhelg...@google.com; raf...@kernel.org; >

RE: [PATCH v9 2/7] PCI: Apply the new generic I/O management on PCI IO hosts

2017-05-30 Thread Gabriele Paoloni
Hi Bjorn > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 26 May 2017 22:20 > To: Gabriele Paoloni > Cc: catalin.mari...@arm.com; will.dea...@arm.com; robh...@kernel.org; > frowand.l...@gmail.com; bhelg...@google.com; raf...@kernel.org; >

RE: [PATCH v9 6/7] LPC: Add the ACPI LPC support

2017-05-26 Thread Gabriele Paoloni
[...] > Hi zhichang.yuan, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.12-rc2 next-20170525] > [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/

[PATCH v9 7/7] MANTAINERS: Add maintainer for HiSilicon LPC driver

2017-05-25 Thread Gabriele Paoloni
Added maintainer for drivers/bus/hisi_lpc.c Signed-off-by: Gabriele Paoloni --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9e98464..8fb9006 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6061,6 +6061,14 @@ F: include/uapi/linux

[PATCH v9 2/7] PCI: Apply the new generic I/O management on PCI IO hosts

2017-05-25 Thread Gabriele Paoloni
ned-off-by: zhichang.yuan Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann #earlier draft --- drivers/acpi/pci_root.c | 8 ++-- drivers/of/address.c | 5 ++- drivers/pci/pci.c| 101 ++- include/asm-generic/

[PATCH v9 0/7] LPC: legacy ISA I/O support

2017-05-25 Thread Gabriele Paoloni
From: gabriele paoloni This patchset supports the IPMI-bt device attached to the Low-Pin-Count interface implemented on Hisilicon Hip06/Hip07 SoC. --- | LPC host

[PATCH v9 3/7] OF: Add missing I/O range exception for indirect-IO devices

2017-05-25 Thread Gabriele Paoloni
on will be done in a different way from that one of PCI MMIO. In this way, the I/O 'reg' property of the special ISA/LPC devices will be parsed correctly. Signed-off-by: zhichang.yuan Signed-off-by: Gabriele Paoloni Signed-off-by: Arnd Bergmann #earlier draft Acked-by: Rob

[PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-05-25 Thread Gabriele Paoloni
: zhichang.yuan Signed-off-by: Gabriele Paoloni --- drivers/acpi/arm64/Makefile| 1 + drivers/acpi/arm64/acpi_indirect_pio.c | 301 + drivers/acpi/internal.h| 5 + drivers/acpi/scan.c| 1 + include/acpi

[PATCH v9 6/7] LPC: Add the ACPI LPC support

2017-05-25 Thread Gabriele Paoloni
From: "zhichang.yuan" Based on the provious patches, this patch supports the ACPI LPC host on Hip06/Hip07. Signed-off-by: zhichang.yuan Signed-off-by: John Garry Signed-off-by: Gabriele Paoloni Tested-by: dann frazier --- drivers/acpi/arm64/acpi_indirect_pio.c | 3 ++ d

[PATCH v9 1/7] LIB: Introduce a generic PIO mapping method

2017-05-25 Thread Gabriele Paoloni
/O accesses to either PCI MMIO devices or host-local I/O peripherals can be unified into the existing I/O accessors defined in asm-generic/io.h and be redirected to the right device-specific hooks based on the input logical PIO. Signed-off-by: zhichang.yuan Signed-off-by: Gabriele Paoloni --- i

[PATCH v9 4/7] LPC: Support the device-tree LPC host on Hip06/Hip07

2017-05-25 Thread Gabriele Paoloni
ff-by: zhichang.yuan Signed-off-by: Gabriele Paoloni Acked-by: Rob Herring #dts part --- .../arm/hisilicon/hisilicon-low-pin-count.txt | 33 ++ drivers/bus/Kconfig| 9 + drivers/bus/Makefile | 1 + dr

RE: [PATCH v3 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-23 Thread Gabriele Paoloni
Hi Christoph > -Original Message- > From: linux-pci-ow...@vger.kernel.org [mailto:linux-pci- > ow...@vger.kernel.org] On Behalf Of Christoph Hellwig > Sent: 22 May 2017 18:44 > To: Gabriele Paoloni > Cc: Christoph Hellwig; bhelg...@google.com; helg...@kernel.org;

[PATCH v5 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-23 Thread Gabriele Paoloni
pcie_port_enable_msix() to use MSI in case MSI-x allocation fails. Signed-off-by: Gabriele Paoloni Reviewed-by: Christoph Hellwig --- drivers/pci/pcie/portdrv.h | 8 +--- drivers/pci/pcie/portdrv_core.c | 38 -- 2 files changed, 25 insertions(+), 21 deletions

[PATCH v5 0/2] add MSI support for PCIe port services and DPC IRQ support

2017-05-23 Thread Gabriele Paoloni
From: gabriele paoloni This patchset: 1) adds support for MSI interrupt vectors to be used for Roor Port services 2) adds support for DPC Root Port service interrupt The patchset has been tested on Hisilicon Hip08 Chipset Changes from v4: - removed meaningless comment Changes from v3

[PATCH v5 2/2] PCI/portdrv: allocate MSI/MSIx vector for DPC RP service

2017-05-23 Thread Gabriele Paoloni
From: gabriele paoloni Currently the MSI/MSIx vectors for the root port services are allocated calling pcie_init_service_irqs(). At the moment these vectors are only allocated for AER, PME, HP. This patch allocate an MSI/MSIx vector also for DPC. Signed-off-by: Liudongdong Signed-off-by

[PATCH v4 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-22 Thread Gabriele Paoloni
pcie_port_enable_msix() to use MSI in case MSI-x allocation fails. Signed-off-by: Gabriele Paoloni Reviewed-by: Christoph Hellwig --- drivers/pci/pcie/portdrv.h | 8 +--- drivers/pci/pcie/portdrv_core.c | 41 +++-- 2 files changed, 28 insertions(+), 21 deletions

[PATCH v4 0/2] add MSI support for PCIe port services and DPC IRQ support

2017-05-22 Thread Gabriele Paoloni
From: gabriele paoloni This patchset: 1) adds support for MSI interrupt vectors to be used for Roor Port services 2) adds support for DPC Root Port service interrupt The patchset has been tested on Hisilicon Hip08 Chipset Changes from v3: - removed 2 extra lines at the bottom of comments

[PATCH v4 2/2] PCI/portdrv: allocate MSI/MSIx vector for DPC RP service

2017-05-22 Thread Gabriele Paoloni
From: gabriele paoloni Currently the MSI/MSIx vectors for the root port services are allocated calling pcie_init_service_irqs(). At the moment these vectors are only allocated for AER, PME, HP. This patch allocate an MSI/MSIx vector also for DPC. Signed-off-by: Liudongdong Signed-off-by

RE: [PATCH v3 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-21 Thread Gabriele Paoloni
Hi Christoph > -Original Message- > From: linux-pci-ow...@vger.kernel.org [mailto:linux-pci- > ow...@vger.kernel.org] On Behalf Of Christoph Hellwig > Sent: 21 May 2017 09:33 > To: Gabriele Paoloni > Cc: bhelg...@google.com; helg...@kernel.org; Linuxarm; linux- > p..

[PATCH v3 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-18 Thread Gabriele Paoloni
pcie_port_enable_msix() to use MSI in case MSI-x allocation fails. Signed-off-by: Gabriele Paoloni Reviewed-by: Christoph Hellwig --- drivers/pci/pcie/portdrv.h | 8 +--- drivers/pci/pcie/portdrv_core.c | 43 - 2 files changed, 30 insertions(+), 21 deletions

[PATCH v3 0/2] add MSI support for PCIe port services and DPC IRQ support

2017-05-18 Thread Gabriele Paoloni
From: gabriele paoloni This patchset: 1) adds support for MSI interrupt vectors to be used for Roor Port services 2) adds support for DPC Root Port service interrupt The patchset has been tested on Hisilicon Hip08 Chipset Changes from v2: - Fixed comment mismatch for function

[PATCH v3 2/2] PCI/portdrv: allocate MSI/MSIx vector for DPC RP service

2017-05-18 Thread Gabriele Paoloni
From: gabriele paoloni Currently the MSI/MSIx vectors for the root port services are allocated calling pcie_init_service_irqs(). At the moment these vectors are only allocated for AER, PME, HP. This patch allocate an MSI/MSIx vector also for DPC. Signed-off-by: Liudongdong Signed-off-by

RE: [PATCH v2 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-18 Thread Gabriele Paoloni
Hi Christoph > -Original Message- > From: linux-pci-ow...@vger.kernel.org [mailto:linux-pci- > ow...@vger.kernel.org] On Behalf Of Christoph Hellwig > Sent: 18 May 2017 10:27 > To: Gabriele Paoloni > Cc: bhelg...@google.com; helg...@kernel.org; Linuxarm; linux- > p..

[PATCH v2 0/2] add MSI support for PCIe port services and DPC IRQ support

2017-05-18 Thread Gabriele Paoloni
From: gabriele paoloni This patchset: 1) adds support for MSI interrupt vectors to be used for Roor Port services 2) adds support for DPC Root Port service interrupt The patchset has been tested on Hisilicon Hip08 Chipset Changes from v1: According to comments from Christoph Hellwig in https

[PATCH v2 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-18 Thread Gabriele Paoloni
pcie_port_enable_msix() to use MSI in case MSI-x allocation fails. Signed-off-by: Gabriele Paoloni --- drivers/pci/pcie/portdrv.h | 8 --- drivers/pci/pcie/portdrv_core.c | 46 + 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/drivers/pci

[PATCH v2 2/2] PCI/portdrv: allocate MSI/MSIx vector for DPC RP service

2017-05-18 Thread Gabriele Paoloni
From: gabriele paoloni Currently the MSI/MSIx vectors for the root port services are allocated calling pcie_init_service_irqs(). At the moment these vectors are only allocated for AER, PME, HP. This patch allocate an MSI/MSIx vector also for DPC. Signed-off-by: Liudongdong Signed-off-by

RE: [PATCH 2/2] PCI/portdrv: allocate MSI/MSIx vector for DPC RP service

2017-05-16 Thread Gabriele Paoloni
Hi Christoph > -Original Message- > From: Christoph Hellwig [mailto:h...@infradead.org] > Sent: 16 May 2017 13:11 > To: Gabriele Paoloni > Cc: bhelg...@google.com; helg...@kernel.org; Linuxarm; linux- > p...@vger.kernel.org; lu...@wunner.de; linux-kernel@vger.kernel.o

RE: [PATCH 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-16 Thread Gabriele Paoloni
Hi Christoph Many thanks for your comments > -Original Message- > From: Christoph Hellwig [mailto:h...@infradead.org] > Sent: 16 May 2017 13:07 > To: Gabriele Paoloni > Cc: bhelg...@google.com; helg...@kernel.org; Linuxarm; linux- > p...@vger.kernel.org; lu...@wunne

[PATCH 0/2] PCI/portdrv: add MSI support for PCIe port services and DPC IRQ support

2017-05-16 Thread Gabriele Paoloni
From: gabriele paoloni This patchset: 1) adds support for MSI interrupt vectors to be used for Roor Port services 2) adds support for DPC Root Port service interrupt The patchset has been tested on Hisilicon Hip08 Chipset Gabriele Paoloni (1): PCI/portdrv: add support for different MSI

[PATCH 2/2] PCI/portdrv: allocate MSI/MSIx vector for DPC RP service

2017-05-16 Thread Gabriele Paoloni
From: gabriele paoloni Currently the MSI/MSIx vectors for the root port services are allocated calling pcie_init_service_irqs(). At the moment these vectors are only allocated for AER, PME, HP. This patch allocate an MSI/MSIx vector also for DPC. Signed-off-by: Liudongdong Signed-off-by

[PATCH 1/2] PCI/portdrv: add support for different MSI interrupts for PCIe port services

2017-05-16 Thread Gabriele Paoloni
pcie_port_enable_msix() to use MSI in case MSI-x allocation fails. Signed-off-by: Gabriele Paoloni --- drivers/pci/pcie/portdrv.h | 5 + drivers/pci/pcie/portdrv_core.c | 33 +++-- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/drivers/pci/pcie/portdrv.h

RE: [PATCH] arm64: enable ARCH_WANT_RELAX_ORDER for aarch64

2017-04-07 Thread Gabriele Paoloni
Hi Robin and all > -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Robin Murphy > Sent: 20 March 2017 14:00 > To: Dingtianhong; Catalin Marinas; Will Deacon; linux-arm- > ker...@lists.infradead.org; linux-kernel@vger

RE: [PATCH V8 5/6] ACPI: Support the probing on the devices which apply indirect-IO

2017-04-02 Thread Gabriele Paoloni
vger.kernel.org; Linux PCI; Corey Minyard; Zou Rongrong; > John Garry; Gabriele Paoloni; kant...@163.com; xuwei (O) > Subject: Re: [PATCH V8 5/6] ACPI: Support the probing on the devices > which apply indirect-IO > > On Sat, Apr 1, 2017 at 4:16 AM, zhichang.yuan > wrote: > >

RE: [PATCH v9 15/15] irqchip: mbigen: Add ACPI support

2017-03-27 Thread Gabriele Paoloni
Hi Marc Many thanks for your comments > -Original Message- > From: linuxarm-boun...@huawei.com [mailto:linuxarm-boun...@huawei.com] > On Behalf Of Marc Zyngier > Sent: 27 March 2017 09:47 > To: John Garry; Lorenzo Pieralisi; Guohanjun (Hanjun Guo) > Cc: Rafael J. Wysocki; Yimin (Leo); Greg

RE: [PATCH V7 5/7] ACPI: Delay the enumeration on the devices whose dependency has not met

2017-03-23 Thread Gabriele Paoloni
Hi Arnd > -Original Message- > From: linuxarm-boun...@huawei.com [mailto:linuxarm-boun...@huawei.com] > On Behalf Of Gabriele Paoloni > Sent: 16 March 2017 16:14 > To: Arnd Bergmann; Yuanzhichang > Cc: Mark Rutland; Benjamin Herrenschmidt; Rafael Wysocki; linux-

RE: [PATCH V7 5/7] ACPI: Delay the enumeration on the devices whose dependency has not met

2017-03-16 Thread Gabriele Paoloni
Rafael Wysocki; Mark Rutland; Linux ARM; ACPI > Devel Maling List; Lorenzo Pieralisi; Benjamin Herrenschmidt; Linux > Kernel Mailing List; Linuxarm; devicet...@vger.kernel.org; linux-pci; > linux-ser...@vger.kernel.org; Corey Minyard; liviu.du...@arm.com; Zou > Rongrong; John Garr

RE: [PATCH V7 5/7] ACPI: Delay the enumeration on the devices whose dependency has not met

2017-03-14 Thread Gabriele Paoloni
; p...@vger.kernel.org; linux-ser...@vger.kernel.org; miny...@acm.org; > liviu.du...@arm.com; zourongr...@gmail.com; John Garry; Gabriele > Paoloni; zhichang.yua...@gmail.com; kant...@163.com; xuwei (O) > Subject: Re: [PATCH V7 5/7] ACPI: Delay the enumeration on the devices > whose dependency has not m

RE: Bad DT binding (hisi-pcie-almost-ecam)

2017-03-13 Thread Gabriele Paoloni
Hi Mark > -Original Message- > From: Mark Rutland [mailto:mark.rutl...@arm.com] > Sent: 13 March 2017 10:44 > To: Gabriele Paoloni > Cc: liudongdong (C); Bjorn Helgaas; Wangzhou (B); > devicet...@vger.kernel.org; linux-...@vger.kernel.org; linux- > ker...@vger.ker

RE: Bad DT binding (hisi-pcie-almost-ecam)

2017-03-13 Thread Gabriele Paoloni
Hi Geert [...] > > { > > - .compatible = "hisilicon,pcie-almost-ecam", > > + .compatible = "hisilicon,pcie-almost-ecam-hip06", > > Shouldn't that be "hisilicon,hip06-pcie-almost-ecam"? > > > + .data = (void *) &hisi_pcie_platform_ops, > > + }, > > +

RE: Bad DT binding (hisi-pcie-almost-ecam)

2017-03-13 Thread Gabriele Paoloni
Hi Mark > -Original Message- > From: Mark Rutland [mailto:mark.rutl...@arm.com] > Sent: 10 March 2017 17:41 > To: liudongdong (C); Bjorn Helgaas > Cc: Gabriele Paoloni; Wangzhou (B); devicet...@vger.kernel.org; linux- > p...@vger.kernel.org; linux-kernel@vger.kernel.org

RE: [PATCH 14/20] PCI: hisi: update PCI config space remap function

2017-03-02 Thread Gabriele Paoloni
[...] > > I will fold the changes into v2 (and I hope other host controllers > maintainers will follow suit - I do not have enough knowledge of > all host bridges drivers internals to understand what ioremap calls > need patching). Ok great, many thanks! Gab > > Thanks ! > Lorenzo

RE: [PATCH 14/20] PCI: hisi: update PCI config space remap function

2017-03-02 Thread Gabriele Paoloni
el.org; linux-a...@vger.kernel.org; Lorenzo > Pieralisi; Bjorn Helgaas; Gabriele Paoloni; Wangzhou (B) > Subject: [PATCH 14/20] PCI: hisi: update PCI config space remap > function > > PCI configuration space should be mapped with a memory region type that > generates on the CPU host

RE: [PATCH V6 1/5] LIB: Indirect ISA/LPC port IO introduced

2017-02-01 Thread Gabriele Paoloni
Hi Alex > -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] [...] > >> > >> I like the extio idea. That allows us to handle all PIO requests on > >> platforms that don't have native PIO support via different routes > >> depending on the region they're in. Unfortunately we

RE: [PATCH V6 4/5] LPC: Support the device-tree LPC host on Hip06/Hip07

2017-01-31 Thread Gabriele Paoloni
Hi Alex thanks for reviewing [...] > > > >>> + * The port size of legacy I/O devices is normally less than > 0x400. > >>> + * Defining the I/O range size as 0x400 here should be sufficient > for > >>> + * all peripherals under one bus. > >>> + */ > >> > >> This comment doesn't make a lot of sense

RE: [PATCH V5 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-11-25 Thread Gabriele Paoloni
Hi Arnd > -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: 25 November 2016 12:04 > To: Gabriele Paoloni > Cc: linux-arm-ker...@lists.infradead.org; mark.rutl...@arm.com; > catalin.mari...@arm.com; linux-...@vger.kernel.org; > liviu.du

RE: [PATCH V5 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-11-25 Thread Gabriele Paoloni
Hi Arnd Many thanks for your contribution, much appreciated I have some comments...see inline below > -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: 23 November 2016 23:23 > To: linux-arm-ker...@lists.infradead.org > Cc: Gabriele Paoloni; mark.

  1   2   3   >