[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: Gabriele Paoloni

[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(_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: Ton

[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
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 file changed, 4 insertions(+), 2 deletions

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

2020-11-27 Thread Gabriele Paoloni
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 mca_cfg.tolerant

[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
. if 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(_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/core

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

2020-11-18 Thread Gabriele Paoloni
into the 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 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. */ [...] > > + *

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. */ [...] > > + *

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: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 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 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 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 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

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 <gabriele.paol...@huawei.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f66488d..b49d4c0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6130,6 +6

[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 <gabriele.paol...@huawei.com> 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 c

[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

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

2017-10-27 Thread Gabriele Paoloni
From: gabriele paoloni <gabriele.paol...@huawei.com> Currently pci_register_io_range() has only one definition; therefore there is no use of the __weak attribute. Signed-off-by: Gabriele Paoloni <gabriele.paol...@huawei.com> Acked-by: Bjorn Helgaas <helg...@kernel.org> --- dri

[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" <yuanzhich...@hisilicon.com> Based on the provious patches, this patch supports the ACPI LPC host on Hip06/Hip07. Signed-off-by: zhichang.yuan <yuanzhich...@hisilicon.com> Signed-off-by: John Garry <john.ga...@huawei.com> Signed-off-by: Gab

[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 <gabriele.paol...@huawei.com> 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 c

[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
I/O translation 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 <yuanzhich...@hisilicon.com> Signed-off-by: Gabriele Paoloni <gabriele.paol...@huawei

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

2017-10-27 Thread Gabriele Paoloni
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 Herring --- drivers/of/addr

[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 <gabriele.paol...@huawei.com> 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

[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
by: Zou Rongrong <zourongr...@huawei.com> Signed-off-by: zhichang.yuan <yuanzhich...@hisilicon.com> Signed-off-by: Gabriele Paoloni <gabriele.paol...@huawei.com> Acked-by: Rob Herring <r...@kernel.org> #dts part --- .../arm/hisilicon/hisilicon-low-pin-coun

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

2017-10-27 Thread Gabriele Paoloni
chang.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 + drivers/bus/

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

2017-10-27 Thread Gabriele Paoloni
From: gabriele paoloni <gabriele.paol...@huawei.com> This patchset supports the IPMI-bt device attached to the Low-Pin-Count interface implemented on Hisilicon Hip06/Hip07 SoC. --- | LP

[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
...@hisilicon.com> Signed-off-by: Gabriele Paoloni <gabriele.paol...@huawei.com> --- include/asm-generic/io.h | 26 + include/linux/logic_pio.h | 118 +++ lib/Kconfig | 26 + lib/Makefile | 2 + lib/logic_pio.c | 286 +

[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

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
o this patch 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 <gabriele.paol...@huawei.com> Signed-off-by: Dongdong Liu <liudongdo...@h

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

2017-09-28 Thread Gabriele Paoloni
o this patch 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 chang

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 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 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-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-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 unco

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 unco

[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 <gabriele.paol...@huawei.com> Signed-off-by: Dongdong Liu <liudongdo...@huawei.com> --- Changes from v1: - now errors are reported only to the fucntions that logged the error instead of all the functions in the same device.

[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

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

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

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

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
+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 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 >

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 >

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 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-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-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 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 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-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 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 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 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/

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 <gabriele.paol...@huawei.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9e98464..8fb9006 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6061,6 +6

[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

  1   2   3   4   5   >