Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Jun 29, 2021
    • Wen Xiong's avatar
      scsi: ipr: System crashes when seeing type 20 error · 7df47cdf
      Wen Xiong authored
      Test team saw "4041: Incomplete multipath connection between enclosure and
      device" when I/O drawers/drives have bad connections. System crashes when
      handling these type 20 errors.
      
      [    5.332452] ipr: 3/00-06-09: 4041: Incomplete multipath connection between enclosure and device
      [    5.332460] ipr: 3/00-06-09: The IOA failed to detect an expected path to a device
      [    5.332465] ipr: 3/00-06-09: Inactive path is failed: Resource Path=3/00-04-09
      [    5.332471] ipr: 3/00-06-09: Functional IOA port: Resource Path=3/00-04, Link rate=unknown, WWN=5005076059C38E05
      [    5.332478] ipr: 3/00-06-09: Incorrectly connected Device LUN: Resource Path=3/00-00-00-00-00-00-00-00-00-20-00-00-24-00-00-00-0, Link rate=unknown, WWN=0020000024000000
      [    5.332487] ipr: 3/00-06-09: Path element=FF: Resource Path=3/50-05-07-60-45-56-5A-9C-00-00-00-00-00-00-00-00-0, Link rate=unknown WWN=0000000000000000
      [    5.332492] ipr: 00000000: 54520EC8 00000000 00000000 4E532050
      [    5.332495] ipr: 00000010: 45522054 49434B3D 00000050 278130E6
      [    5.332498] ipr: 00000020: 033B5300 03282584 4C4D00E0 278039F3
      [    5.332501] ipr: 00000030: 033B5180 03282404 4C4D00E0 276A0282
      [    5.332504] ipr: 00000040: 033B5000 03281E04 447000E0 27697D19
      [    5.332507] ipr: 00000050: 033B4E80 03281D84 447000E0 27690524
      [    5.332509] ipr: 00000060: 033B4D00 03281C84 447000E0 27687FDA
      [    5.332512] ipr: 00000070: 033B4B80 03281C04 447000E0 2767E787
      [    5.332515] ipr: 00000080: 033B4A00 03281B04 447000E0 27674F0A
      
      Link: https://lore.kernel.org/r/1624587085-10073-1-git-send-email-wenxiong@linux.vnet.ibm.com
      
      
      Acked-by: default avatarBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: default avatarWen Xiong <wenxiong@linux.vnet.ibm.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      7df47cdf
    • Quat Le's avatar
      scsi: core: Retry I/O for Notify (Enable Spinup) Required error · 104739ac
      Quat Le authored
      If the device is power-cycled, it takes time for the initiator to transmit
      the periodic NOTIFY (ENABLE SPINUP) SAS primitive, and for the device to
      respond to the primitive to become ACTIVE. Retry the I/O request to allow
      the device time to become ACTIVE.
      
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20210629155826.48441-1-quat.le@oracle.com
      
      
      Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
      Signed-off-by: default avatarQuat Le <quat.le@oracle.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      104739ac
    • Sreekanth Reddy's avatar
      scsi: mpi3mr: Fix warnings reported by smatch · 62e528b8
      Sreekanth Reddy authored
      Fix the following warning reported by static analysis tool smatch:
      
      smatch warnings:
      drivers/scsi/mpi3mr/mpi3mr_os.c:873 mpi3mr_update_tgtdev() error: we
      previously assumed 'mrioc->shost' could be null (see line 870
      
      Link: https://lore.kernel.org/r/20210629141153.3158-1-sreekanth.reddy@broadcom.com
      
      
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarSreekanth Reddy <sreekanth.reddy@broadcom.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      62e528b8
    • Javed Hasan's avatar
      scsi: qedf: Add check to synchronize abort and flush · df99446d
      Javed Hasan authored
      A race condition was observed between qedf_cleanup_fcport() and
      qedf_process_error_detect()->qedf_initiate_abts():
      
       [2069091.203145] BUG: unable to handle kernel NULL pointer dereference at 0000000000000030
       [2069091.213100] IP: [<ffffffffc0666cc6>] qedf_process_error_detect+0x96/0x130 [qedf]
       [2069091.223391] PGD 1943049067 PUD 194304e067 PMD 0
       [2069091.233420] Oops: 0000 [#1] SMP
       [2069091.361820] CPU: 1 PID: 14751 Comm: kworker/1:46 Kdump: loaded Tainted: P           OE  ------------   3.10.0-1160.25.1.el7.x86_64 #1
       [2069091.388474] Hardware name: HPE Synergy 480 Gen10/Synergy 480 Gen10 Compute Module, BIOS I42 04/08/2020
       [2069091.402148] Workqueue: qedf_io_wq qedf_fp_io_handler [qedf]
       [2069091.415780] task: ffff9bb9f5190000 ti: ffff9bacaef9c000 task.ti: ffff9bacaef9c000
       [2069091.429590] RIP: 0010:[<ffffffffc0666cc6>]  [<ffffffffc0666cc6>] qedf_process_error_detect+0x96/0x130 [qedf]
       [2069091.443666] RSP: 0018:ffff9bacaef9fdb8  EFLAGS: 00010246
       [2069091.457692] RAX: 0000000000000000 RBX: ffff9bbbbbfb18a0 RCX: ffffffffc0672310
       [2069091.471997] RDX: 00000000000005de RSI: ffffffffc066e7f0 RDI: ffff9beb3f4538d8
       [2069091.486130] RBP: ffff9bacaef9fdd8 R08: 0000000000006000 R09: 0000000000006000
       [2069091.500321] R10: 0000000000001551 R11: ffffb582996ffff8 R12: ffffb5829b39cc18
       [2069091.514779] R13: ffff9badab380c28 R14: ffffd5827f643900 R15: 0000000000000040
       [2069091.529472] FS:  0000000000000000(0000) GS:ffff9beb3f440000(0000) knlGS:0000000000000000
       [2069091.543926] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
       [2069091.558942] CR2: 0000000000000030 CR3: 000000193b9a2000 CR4: 00000000007607e0
       [2069091.573424] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
       [2069091.587876] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
       [2069091.602007] PKRU: 00000000
       [2069091.616010] Call Trace:
       [2069091.629902]  [<ffffffffc0663969>] qedf_process_cqe+0x109/0x2e0 [qedf]
       [2069091.643941]  [<ffffffffc0663b66>] qedf_fp_io_handler+0x26/0x60 [qedf]
       [2069091.657948]  [<ffffffff85ebddcf>] process_one_work+0x17f/0x440
       [2069091.672111]  [<ffffffff85ebeee6>] worker_thread+0x126/0x3c0
       [2069091.686057]  [<ffffffff85ebedc0>] ? manage_workers.isra.26+0x2a0/0x2a0
       [2069091.700033]  [<ffffffff85ec5da1>] kthread+0xd1/0xe0
       [2069091.713891]  [<ffffffff85ec5cd0>] ? insert_kthread_work+0x40/0x40
      
      Add check in qedf_process_error_detect(). When flush is active, let the
      cmds be completed from the cleanup contex.
      
      Link: https://lore.kernel.org/r/20210624171802.598-1-jhasan@marvell.com
      
      
      Signed-off-by: default avatarJaved Hasan <jhasan@marvell.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      df99446d
  2. Jun 28, 2021
  3. Jun 22, 2021
  4. Jun 18, 2021