[PATCH V2 0/3] pm0xx : Updates for driver version 0.1.39.

2019-07-09 Thread Deepak Ukey
This patch set include some bug fixes for pm80xx driver. Changes from V1: For "Fixed kernel panic during error recovery for SATA drive" patch, -Acquired the spin lock after aborting all the requests. Deepak Ukey (3): pm80xx : Fixed kernel panic during error recovery for

[PATCH V2 3/3] pm80xx : Modified the logic to collect IOP event logs.

2019-07-09 Thread Deepak Ukey
Added the logic for collecting IOP log respective to event log size. Signed-off-by: Deepak Ukey Signed-off-by: Viswas G Reviewed-by: Jack Wang --- drivers/scsi/pm8001/pm8001_ctl.c | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/drivers/sc

[PATCH V2 1/3] pm80xx : Fixed kernel panic during error recovery for SATA drive.

2019-07-09 Thread Deepak Ukey
Disabling the SATA drive interface cause kernel panic. When the drive Interface is disabled, device should be deregistered after aborting all pending IO's. Also changed the port recovery timeout to 1 ms for PM8006 controller. V2: -Acquired spin lock after aborting all r

[PATCH V2 2/3] pm80xx : Event log size through sysfs.

2019-07-09 Thread Deepak Ukey
Added support to read event log size from MPI configuration table and export through sysfs. Signed-off-by: Deepak Ukey Signed-off-by: Viswas G Reviewed-by: Jack Wang --- drivers/scsi/pm8001/pm8001_ctl.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/scsi/pm800

Re: [PATCH] scsi: use scmd_printk() to print which command timed out

2019-07-09 Thread Ewan D. Milne
On Tue, 2019-07-02 at 13:27 +0200, Maurizio Lombardi wrote: > With a possibly faulty disk the following messages may appear in the logs: > > kernel: sd 0:0:9:0: timing out command, waited 180s > kernel: sd 0:0:9:0: timing out command, waited 20s > kernel: sd 0:0:9:0: timing out command, waited 20s

[Bug 204119] New: scsi_mod: Could not allocate 4104 bytes percpu data

2019-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204119 Bug ID: 204119 Summary: scsi_mod: Could not allocate 4104 bytes percpu data Product: IO/Storage Version: 2.5 Kernel Version: 5.2 Hardware: All OS: Linux Tree:

[Bug 204119] scsi_mod: Could not allocate 4104 bytes percpu data

2019-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204119 Bart Van Assche (bvanass...@acm.org) changed: What|Removed |Added CC||bvanass...@acm.org

Re: Slow I/O on USB media after commit f664a3cc17b7d0a2bc3b3ab96181e1029b0ec0e6

2019-07-09 Thread Andrea Vai
On 08/07/19 09:01:35, Ming Lei wrote: > > > > > > > > > > > > > > > > commit f664a3cc17b7d0a2bc3b3ab96181e1029b0ec0e6 > > > > > > > > > > > > > > > > [...] > > 1) run the bcc biosnoop trace in one terminal after mounting the fs on the > USB dirve > > 2) start the write test in another tem

[Bug 204119] scsi_mod: Could not allocate 4104 bytes percpu data

2019-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204119 --- Comment #2 from Jan Palus (jpa...@fastmail.com) --- >From 5.1.15 where it works reliably well. Now I've noticed that this error seems somewhat random -- in most cases insert fails but every 10 boots or so it succeeds. Note that attempt to loa

[Bug 204119] scsi_mod: Could not allocate 4104 bytes percpu data

2019-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204119 --- Comment #3 from Jan Palus (jpa...@fastmail.com) --- Not sure if that's relevant but reported percpu values differ between those versions 5.1: percpu: Embedded 46 pages/cpu s151552 r8192 d28672 u524288 5.2: percpu: Embedded 54 pages/cpu s18

[Bug 204119] scsi_mod: Could not allocate 4104 bytes percpu data

2019-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204119 --- Comment #4 from Bart Van Assche (bvanass...@acm.org) --- Can you share your kernel config? -- You are receiving this mail because: You are the assignee for the bug.

[Bug 204119] scsi_mod: Could not allocate 4104 bytes percpu data

2019-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204119 --- Comment #5 from Jan Palus (jpa...@fastmail.com) --- Created attachment 283597 --> https://bugzilla.kernel.org/attachment.cgi?id=283597&action=edit kernel config 5.2 -- You are receiving this mail because: You are the assignee for the bug.

Re: Slow I/O on USB media after commit f664a3cc17b7d0a2bc3b3ab96181e1029b0ec0e6

2019-07-09 Thread Ming Lei
On Tue, Jul 09, 2019 at 11:18:38PM +0200, Andrea Vai wrote: > On 08/07/19 09:01:35, Ming Lei wrote: > > > > > > > > > > > > > > > > > > commit f664a3cc17b7d0a2bc3b3ab96181e1029b0ec0e6 > > > > > > > > > > > > > > > > > > [...] > > > > 1) run the bcc biosnoop trace in one terminal after mount

[Bug 204119] scsi_mod: Could not allocate 4104 bytes percpu data

2019-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204119 --- Comment #6 from Bart Van Assche (bvanass...@acm.org) --- The "size=4104" in the error message probably refers to the SCSI log buffer. >From drivers/scsi/scsi_logging.c: #define SCSI_LOG_SPOOLSIZE 4096 struct scsi_log_buf { char buffer

[PATCH v2 2/4] scsi: ufs: Add fatal and auto-hibern8 error history

2019-07-09 Thread Stanley Chu
Provide more information of fatal errros and auto-hibern8 errors to improve debugging by extending extend existed UFS error history framework. Signed-off-by: Stanley Chu Reviewed-by: Avri Altman --- drivers/scsi/ufs/ufshcd.c | 11 ++- drivers/scsi/ufs/ufshcd.h | 10 +- 2 files c

[PATCH v2 1/4] scsi: ufs: Change names related to error history

2019-07-09 Thread Stanley Chu
Remove "uic" term in below error history functions and structures for more general usages, struct ufs_uic_err_reg_hist; void ufshcd_update_uic_reg_hist(struct ufs_uic_err_reg_hist *reg_hist, u32 reg); void ufshcd_print_uic_err_hist(struct ufs_hba *hba, struct ufs_uic)err_reg_hist *

[PATCH v2 4/4] scsi: ufs: Add history of fatal events

2019-07-09 Thread Stanley Chu
Currently only "interrupt-based" errors have their own history, however there are "non-interrupt-based" errors which may be fatal also needing history to improve debugging or help know the health status of UFS devices. For example, - Link startup fail - Suspend fail - Resume fail - Task or request

[PATCH v2 0/4] scsi: ufs: Provide fatal and auto-hibern8 error history

2019-07-09 Thread Stanley Chu
This patchset provides more information of fatal errros and auto-hibern8 errors to improve debugging by keeping their error history as completed as possible. Thanks Avri so much for prompt reviewing patchset v1. I would like to post v2 to add one more patch "scsi: ufs: Add history of fatal event

[PATCH v2 3/4] scsi: ufs: Do not reset error history during host reset

2019-07-09 Thread Stanley Chu
Currently UFS error history will be reset and lost during host reset flow by ufschd_probe_hba(). We shall not reset it and then error history can be kept as completed as possible to improve debugging. In addition, fix a minor display error in ufshcd_print_err_hist(). Signed-off-by: Stanley Chu