Unverified Commit 59bdc5d7 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2879 SCSI: hisi_raid: support SPxxx series RAID/HBA controllers

parents a88b4fb2 7c3e2387
Loading
Loading
Loading
Loading
+84 −0
Original line number Diff line number Diff line
.. SPDX-License-Identifier: GPL-2.0

==============================================
hisi_raid - HUAWEI SCSI RAID Controller driver
==============================================

This file describes the hisi_raid SCSI driver for HUAWEI
RAID controllers. The hisi_raid driver is the first
generation RAID driver.

For hisi_raid controller support, enable the hisi_raid driver
when configuring the kernel.

hisi_raid specific entries in /sys
=================================

hisi_raid host attributes
------------------------
  - /sys/class/scsi_host/host*/csts_pp
  - /sys/class/scsi_host/host*/csts_shst
  - /sys/class/scsi_host/host*/csts_cfs
  - /sys/class/scsi_host/host*/csts_rdy
  - /sys/class/scsi_host/host*/fw_version

  The host csts_pp attribute is a read only attribute. This attribute
  indicates whether the controller is processing commands. If this attribute
  is set to ‘1’, then the controller is processing commands normally. If
  this attribute is cleared to ‘0’, then the controller has temporarily stopped
  processing commands in order to handle an event (e.g., firmware activation).

  The host csts_shst attribute is a read only attribute. This attribute
  indicates status of shutdown processing.The shutdown status values are defined
  as:
        ======     ==============================
        Value      Definition
        ======     ==============================
        00b        Normal operation
        01b        Shutdown processing occurring
        10b        Shutdown processing complete
        11b        Reserved
        ======     ==============================
  The host csts_cfs attribute is a read only attribute. This attribute is set to
  ’1’ when a fatal controller error occurred that could not be communicated in the
  appropriate Completion Queue. This bit is cleared to ‘0’ when a fatal controller
  error has not occurred.

  The host csts_rdy attribute is a read only attribute. This attribute is set to
  ‘1’ when the controller is ready to process submission queue entries.

  The fw_version attribute is read-only and will return the driver version and the
  controller firmware version.

hisi_raid scsi device attributes
------------------------------
  - /sys/class/scsi_device/X\:X\:X\:X/device/raid_level
  - /sys/class/scsi_device/X\:X\:X\:X/device/raid_state
  - /sys/class/scsi_device/X\:X\:X\:X/device/raid_resync

  The device raid_level attribute is a read only attribute. This attribute indicates
  RAID level of scsi device(will dispaly "NA" if scsi device is not virtual disk type).

  The device raid_state attribute is read-only and indicates RAID status of scsi
  device(will dispaly "NA" if scsi device is not virtual disk type).

  The device raid_resync attribute is read-only and indicates RAID rebuild processing
  of scsi device(will dispaly "NA" if scsi device is not virtual disk type).

Supported devices
=================

        ===================     ======= =======================================
        PCI ID (pci.ids)        OEM     Product
        ===================     ======= =======================================
        19E5:3858               HUAWEI 	SP186-M-8i(HBA:8Ports)
        19E5:3858               HUAWEI 	SP186-M-16i(HBA:16Ports)
        19E5:3858               HUAWEI 	SP186-M-32i(HBA:32Ports)
        19E5:3858               HUAWEI 	SP186-M-40i(HBA:40Ports)
        19E5:3758               HUAWEI 	SP686C-M-16i(RAID:16Ports,2G cache)
        19E5:3758               HUAWEI 	SP686C-M-16i(RAID:16Ports,4G cache)
        19E5:3758               HUAWEI 	SP686C-MH-32i(RAID:32Ports,4G cache)
        19E5:3758               HUAWEI 	SP686C-M-40i(RAID:40Ports,2G cache)
        19E5:3758               HUAWEI 	SP686C-M-40i(RAID:40Ports,4G cache)
        ===================     ======= =======================================
+7 −0
Original line number Diff line number Diff line
@@ -8070,6 +8070,13 @@ M: Yonglong Liu <liuyonglong@huawei.com>
S:	Supported
F:	drivers/ptp/ptp_hisi.c
HISI_RAID SCSI RAID DRIVERS
M:	Zhang Lei <zhanglei48@huawei.com>
L:	linux-scsi@vger.kernel.org
S:	Maintained
F:	Documentation/scsi/hisi_raid.rst
F:	drivers/scsi/hisi_raid/
HMM - Heterogeneous Memory Management
M:	Jérôme Glisse <jglisse@redhat.com>
L:	linux-mm@kvack.org
+1 −0
Original line number Diff line number Diff line
@@ -2427,6 +2427,7 @@ CONFIG_SCSI_MPT2SAS_MAX_SGE=128
CONFIG_SCSI_MPT3SAS_MAX_SGE=128
CONFIG_SCSI_MPT2SAS=m
CONFIG_SCSI_SMARTPQI=m
CONFIG_SCSI_HISI_RAID=m
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_MYRB is not set
+1 −0
Original line number Diff line number Diff line
@@ -2371,6 +2371,7 @@ CONFIG_SCSI_MPT2SAS_MAX_SGE=128
CONFIG_SCSI_MPT3SAS_MAX_SGE=128
CONFIG_SCSI_MPT2SAS=m
CONFIG_SCSI_SMARTPQI=m
CONFIG_SCSI_HISI_RAID=m
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
+1 −0
Original line number Diff line number Diff line
@@ -473,6 +473,7 @@ source "drivers/scsi/megaraid/Kconfig.megaraid"
source "drivers/scsi/sssraid/Kconfig"
source "drivers/scsi/mpt3sas/Kconfig"
source "drivers/scsi/smartpqi/Kconfig"
source "drivers/scsi/hisi_raid/Kconfig"
source "drivers/scsi/ufs/Kconfig"

config SCSI_HPTIOP
Loading