[0/6] scsi: pm80xx: Enhanced debug logs for HW events

Message ID 20230418190101.696345-1-pranavpp@google.com
Headers
Series scsi: pm80xx: Enhanced debug logs for HW events |

Message

Pranav Prasad April 18, 2023, 7 p.m. UTC
  This patch series enhances debug logs for pm80xx HW events, and provides
a minor fix in the case of a hard reset. The log enhancement involves
changing the log severity level to enable logging for HW events
which consequently help debug disk discovery issues.

1. Changed log severity level from MSG to EVENT for HW events.
Enhanced the HW event logs by adding the phyid.

2. Enabled INIT logging.

3. Log portid along with the PHY_UP event.

4. Print phyid and portid sent as part of device registration
request.

5. Log port state during HW events.

6. Update phy_state and phy_attached to correct values after
a hard reset.

Akshat Jain (5):
  scsi: pm80xx: Enable init logging
  scsi: pm80xx: Print port_id in hardware events
  scsi: pm80xx: Log phyid and portid device register request
  scsi: pm80xx: Log port state during HW event
  scsi: pm80xx: Log some HW events by default

Changyuan Lyu (1):
  scsi: pm80xx: Update PHY state after hard reset

 drivers/scsi/pm8001/pm8001_init.c |   3 +-
 drivers/scsi/pm8001/pm8001_sas.h  |   1 +
 drivers/scsi/pm8001/pm80xx_hwi.c  | 126 +++++++++++++++++++-----------
 3 files changed, 85 insertions(+), 45 deletions(-)
  

Comments

Martin K. Petersen May 6, 2023, 9:59 p.m. UTC | #1
Pranav,

> This patch series enhances debug logs for pm80xx HW events, and
> provides a minor fix in the case of a hard reset. The log enhancement
> involves changing the log severity level to enable logging for HW
> events which consequently help debug disk discovery issues.

Applied to 6.5/scsi-staging, thanks!
  
Martin K. Petersen May 17, 2023, 2:12 a.m. UTC | #2
On Tue, 18 Apr 2023 19:00:55 +0000, Pranav Prasad wrote:

> This patch series enhances debug logs for pm80xx HW events, and provides
> a minor fix in the case of a hard reset. The log enhancement involves
> changing the log severity level to enable logging for HW events
> which consequently help debug disk discovery issues.
> 
> 1. Changed log severity level from MSG to EVENT for HW events.
> Enhanced the HW event logs by adding the phyid.
> 
> [...]

Applied to 6.5/scsi-queue, thanks!

[1/6] scsi: pm80xx: Log some HW events by default
      https://git.kernel.org/mkp/scsi/c/b7d26c1d8c51
[2/6] scsi: pm80xx: Enable init logging
      https://git.kernel.org/mkp/scsi/c/6a516506aad6
[3/6] scsi: pm80xx: Print port_id in HW events
      https://git.kernel.org/mkp/scsi/c/a6cf6b8bd6e2
[4/6] scsi: pm80xx: Log phy_id and port_id in the device registration request
      https://git.kernel.org/mkp/scsi/c/5f797120d853
[5/6] scsi: pm80xx: Log port state during HW event
      https://git.kernel.org/mkp/scsi/c/d309422d7dc6
[6/6] scsi: pm80xx: Update PHY state after hard reset
      https://git.kernel.org/mkp/scsi/c/3aa65f7e25ac