[PATCH] nvme: Apply the same fix Kingston SKC2000 nVME SSD as A2000

2021-02-20 Thread Zoltán Böszörményi
From: Zoltán Böszörményi My 2TB SKC2000 showed the exact same symptoms that were provided in 538e4a8c57 ("nvme-pci: avoid the deepest sleep state on Kingston A2000 SSDs"), i.e. a complete NVME lockup that needed cold boot to get it back. According to some sources, the A2000 is simply

[PATCH 3/5 v4] usb: pci-quirks: Protect the I/O port pair of SB800

2017-06-22 Thread Zoltán Böszörményi
the new release_declared_region() macro. Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu> --- drivers/usb/host/pci-quirks.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c index a9a1e4c..593942a 100644 --- a/drivers/us

[PATCH 3/5 v4] usb: pci-quirks: Protect the I/O port pair of SB800

2017-06-22 Thread Zoltán Böszörményi
the new release_declared_region() macro. Signed-off-by: Zoltán Böszörményi --- drivers/usb/host/pci-quirks.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c index a9a1e4c..593942a 100644 --- a/drivers/usb/host/pci-quirks.c

[PATCH 0/5 v4] Fix sp5100_tco watchdog driver regression

2017-06-22 Thread Zoltán Böszörményi
Vendor ID: 0x1002, Device ID: 0x4385, Revision ID: 0x42 sp5100_tco: Using 0xfed80b00 for watchdog MMIO address sp5100_tco: Last reboot was not triggered by watchdog. sp5100_tco: initialized (0xba2f4192db00). heartbeat=60 sec (nowayout=0) Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu>

[PATCH 0/5 v4] Fix sp5100_tco watchdog driver regression

2017-06-22 Thread Zoltán Böszörményi
: 0x4385, Revision ID: 0x42 sp5100_tco: Using 0xfed80b00 for watchdog MMIO address sp5100_tco: Last reboot was not triggered by watchdog. sp5100_tco: initialized (0xba2f4192db00). heartbeat=60 sec (nowayout=0) Signed-off-by: Zoltán Böszörményi --- drivers/i2c/busses/i2c-piix4.c | 41

[PATCH 5/5 v4] watchdog: sp5100_tco: Use request_declared_muxed_region()

2017-06-22 Thread Zoltán Böszörményi
and use the new release_declared_region() macro. Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu> --- drivers/watchdog/sp5100_tco.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100

[PATCH 5/5 v4] watchdog: sp5100_tco: Use request_declared_muxed_region()

2017-06-22 Thread Zoltán Böszörményi
and use the new release_declared_region() macro. Signed-off-by: Zoltán Böszörményi --- drivers/watchdog/sp5100_tco.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100_tco.c index 028618c

[PATCH 4/5 v4] i2c: i2c-piix4: Use request_declared_muxed_region()

2017-06-22 Thread Zoltán Böszörményi
v4: Fixed checkpatch.pl warnings and use the new release_declared_region() macro. Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu> --- drivers/i2c/busses/i2c-piix4.c | 41 + 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/driver

[PATCH 4/5 v4] i2c: i2c-piix4: Use request_declared_muxed_region()

2017-06-22 Thread Zoltán Böszörményi
v4: Fixed checkpatch.pl warnings and use the new release_declared_region() macro. Signed-off-by: Zoltán Böszörményi --- drivers/i2c/busses/i2c-piix4.c | 41 + 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/drivers/i2c/busses/i2c-piix4.c

[PATCH 2/5 v2] Modify behaviour of request_*muxed_region()

2017-06-22 Thread Zoltán Böszörményi
-by: Zoltán Böszörményi <zbos...@pr.hu> --- kernel/resource.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/resource.c b/kernel/resource.c index 2be7029..5df2731 100644 --- a/kernel/resource.c +++ b/kernel/resource.c @@ -1125,6 +1125,7 @@ resource_size_t resource_ali

[PATCH 2/5 v2] Modify behaviour of request_*muxed_region()

2017-06-22 Thread Zoltán Böszörményi
-by: Zoltán Böszörményi --- kernel/resource.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/resource.c b/kernel/resource.c index 2be7029..5df2731 100644 --- a/kernel/resource.c +++ b/kernel/resource.c @@ -1125,6 +1125,7 @@ resource_size_t resource_alignment(struct resource

[PATCH 1/5 v2] Extend the request_region() infrastructure

2017-06-22 Thread Zoltán Böszörményi
checkpatch.pl warnings and errors and extended the macro API with request_declared_region() and release_declared_region() Reversed the order of __request_declared_region and __request_region Added high level description of the muxed and declared variants of the macros. Signed-off-by: Zoltán

[PATCH 1/5 v2] Extend the request_region() infrastructure

2017-06-22 Thread Zoltán Böszörményi
checkpatch.pl warnings and errors and extended the macro API with request_declared_region() and release_declared_region() Reversed the order of __request_declared_region and __request_region Added high level description of the muxed and declared variants of the macros. Signed-off-by: Zoltán

[PATCH 1/5] Extend the request_region() infrastructure

2017-06-20 Thread Zoltán Böszörményi
-by: Zoltán Böszörményi <zbos...@pr.hu> --- include/linux/ioport.h | 5 + kernel/resource.c | 55 +++--- 2 files changed, 44 insertions(+), 16 deletions(-) diff --git a/include/linux/ioport.h b/include/linux/ioport.h index 6230064..a

[PATCH 5/5] watchdog: sp5100_tco: Use request_declared_muxed_region()

2017-06-20 Thread Zoltán Böszörményi
, similarly to i2c-piix4 so the code is now uniform across the three drivers. Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu> --- drivers/watchdog/sp5100_tco.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/wa

[PATCH 1/5] Extend the request_region() infrastructure

2017-06-20 Thread Zoltán Böszörményi
-by: Zoltán Böszörményi --- include/linux/ioport.h | 5 + kernel/resource.c | 55 +++--- 2 files changed, 44 insertions(+), 16 deletions(-) diff --git a/include/linux/ioport.h b/include/linux/ioport.h index 6230064..a3c4e08 100644

[PATCH 5/5] watchdog: sp5100_tco: Use request_declared_muxed_region()

2017-06-20 Thread Zoltán Böszörményi
, similarly to i2c-piix4 so the code is now uniform across the three drivers. Signed-off-by: Zoltán Böszörményi --- drivers/watchdog/sp5100_tco.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100_tco.c

[PATCH 3/5] usb: pci-quirks: Protect the I/O port pair of SB800

2017-06-20 Thread Zoltán Böszörményi
This patch uses the previously introduced macro called request_declared_muxed_region() to synchronize access to the I/O port pair 0xcd6 / 0xcd7 on SB800. These I/O ports are also used by i2c-piix4 and sp5100_tco, the next two patches port these drivers to use the new macro. Signed-off-by: Zoltán

[PATCH 0/5 v3] Fix sp5100_tco watchdog driver regression

2017-06-20 Thread Zoltán Böszörményi
alized (0xba2f4192db00). heartbeat=60 sec (nowayout=0) Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu> --- drivers/i2c/busses/i2c-piix4.c | 42 ++ drivers/usb/host/pci-quirks.c | 3 +++ drivers/watchdog/sp5100_tco.c | 25 +- include/linux/ioport.h

[PATCH 0/5 v3] Fix sp5100_tco watchdog driver regression

2017-06-20 Thread Zoltán Böszörményi
). heartbeat=60 sec (nowayout=0) Signed-off-by: Zoltán Böszörményi --- drivers/i2c/busses/i2c-piix4.c | 42 ++ drivers/usb/host/pci-quirks.c | 3 +++ drivers/watchdog/sp5100_tco.c | 25 +- include/linux/ioport.h | 5 kernel/resource.c

[PATCH 3/5] usb: pci-quirks: Protect the I/O port pair of SB800

2017-06-20 Thread Zoltán Böszörményi
This patch uses the previously introduced macro called request_declared_muxed_region() to synchronize access to the I/O port pair 0xcd6 / 0xcd7 on SB800. These I/O ports are also used by i2c-piix4 and sp5100_tco, the next two patches port these drivers to use the new macro. Signed-off-by: Zoltán

[PATCH 4/5] i2c: i2c-piix4: Use request_declared_muxed_region()

2017-06-20 Thread Zoltán Böszörményi
, caused by: commit 2fee61d22e606fc99ade9079fda15fdee83ec33e Author: Christian Fetzer <fetzer...@gmail.com> Date: Thu Nov 19 20:13:48 2015 +0100 i2c: piix4: Add support for multiplexed main adapter in SB800 Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu> --- drivers/i2c/busses

[PATCH 4/5] i2c: i2c-piix4: Use request_declared_muxed_region()

2017-06-20 Thread Zoltán Böszörményi
, caused by: commit 2fee61d22e606fc99ade9079fda15fdee83ec33e Author: Christian Fetzer Date: Thu Nov 19 20:13:48 2015 +0100 i2c: piix4: Add support for multiplexed main adapter in SB800 Signed-off-by: Zoltán Böszörményi --- drivers/i2c/busses/i2c-piix4.c | 42

[PATCH 2/5] Modify behaviour of request_*muxed_region()

2017-06-20 Thread Zoltán Böszörményi
it. This change modifies IORESOURCE_MUXED behaviour so it always goes to sleep waiting for the resuorce to be freed and the inconsistent resource flag usage is logged with KERN_ERR. Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu> --- kernel/resource.c | 4 +++- 1 file changed, 3 insertions

[PATCH 2/5] Modify behaviour of request_*muxed_region()

2017-06-20 Thread Zoltán Böszörményi
it. This change modifies IORESOURCE_MUXED behaviour so it always goes to sleep waiting for the resuorce to be freed and the inconsistent resource flag usage is logged with KERN_ERR. Signed-off-by: Zoltán Böszörményi --- kernel/resource.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH 0/3] Fix sp5100_tco watchdog driver regression

2017-04-01 Thread Zoltán Böszörményi
mutex across these driver was chosen to synchronize I/O port accesses and request_region() calls are removed from both i2c-piix4 and sp5100_tco to make the code uniform. This patch series implements this and restores the watchdog function. Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu> driv

[PATCH 0/3] Fix sp5100_tco watchdog driver regression

2017-04-01 Thread Zoltán Böszörményi
accesses and request_region() calls are removed from both i2c-piix4 and sp5100_tco to make the code uniform. This patch series implements this and restores the watchdog function. Signed-off-by: Zoltán Böszörményi drivers/i2c/busses/i2c-piix4.c | 59

[PATCH 3/3] watchdog: sp5100_tco: Synchronize I/O port accesses

2017-04-01 Thread Zoltán Böszörményi
remove the request_region() call to reserve these I/O ports, similarly to i2c-piix4 so the code is now uniform across the three individual drivers. Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu> --- drivers/watchdog/sp5100_tco.c | 24 +++- drivers/watchdog/sp5100_tco.h | 10 ++-

[PATCH 3/3] watchdog: sp5100_tco: Synchronize I/O port accesses

2017-04-01 Thread Zoltán Böszörményi
to reserve these I/O ports, similarly to i2c-piix4 so the code is now uniform across the three individual drivers. Signed-off-by: Zoltán Böszörményi --- drivers/watchdog/sp5100_tco.c | 24 +++- drivers/watchdog/sp5100_tco.h | 10 ++ 2 files changed, 17 insertions(+), 17

[PATCH 1/3] usb: pci-quirks: Add a header for SB800 I/O ports and mutex for locking

2017-04-01 Thread Zoltán Böszörményi
he I/O port access for SB800 Signed-off-by: Zoltán Böszörményi <zbos...@pr.hu> --- drivers/usb/host/pci-quirks.c | 14 ++ include/linux/sb800.h | 15 +++ 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 include/linux/sb800.h diff --git a

[PATCH 1/3] usb: pci-quirks: Add a header for SB800 I/O ports and mutex for locking

2017-04-01 Thread Zoltán Böszörményi
for SB800 Signed-off-by: Zoltán Böszörményi --- drivers/usb/host/pci-quirks.c | 14 ++ include/linux/sb800.h | 15 +++ 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 include/linux/sb800.h diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb