-
Notifications
You must be signed in to change notification settings - Fork 122
[Deepin-Kernel-SIG] [linux 6.6-y] [3SNIC] SCSI: SSSRAID: Support 3SNIC 3S5XX serial RAID/HBA #1355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| .. SPDX-License-Identifier: GPL-2.0 | ||
|
|
||
| ============================================== | ||
| SSSRAID - 3SNIC SCSI RAID Controller driver | ||
| ============================================== | ||
|
|
||
| This file describes the SSSRAID SCSI driver for 3SNIC | ||
| (http://www.3snic.com) RAID controllers. The SSSRAID | ||
| driver is the first generation RAID driver for 3SNIC Corp. | ||
|
|
||
| For 3SNIC SSSRAID controller support, enable the SSSRAID driver | ||
| when configuring the kernel. | ||
|
|
||
| SSSRAID specific entries in /sys | ||
| ================================= | ||
|
|
||
| SSSRAID 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. | ||
|
|
||
| SSSRAID 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 | ||
| =================== ======= ======================================= | ||
| 1F3F:2100 3SNIC 3S510(HBA:8Ports,1G DDR) | ||
| 1F3F:2100 3SNIC 3S520(HBA:16Ports,1G DDR) | ||
| 1F3F:2100 3SNIC 3S530(HBA:32Ports,1G DDR) | ||
| 1F3F:2100 3SNIC 3S540(HBA:40Ports,1G DDR) | ||
| 1F3F:2200 3SNIC 3S580(RAID:16Ports,2G cache) | ||
| 1F3F:2200 3SNIC 3S585(RAID:16Ports,4G cache) | ||
| 1F3F:2200 3SNIC 3S590(RAID:32Ports,4G cache) | ||
| 1F3F:2200 3SNIC 3S5A0(RAID:40Ports,2G cache) | ||
| 1F3F:2200 3SNIC 3S5A5(RAID:40Ports,4G cache) | ||
| =================== ======= ======================================= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # | ||
| # Kernel configuration file for the 3SNIC | ||
| # | ||
|
|
||
| config SCSI_3SNIC_SSSRAID | ||
| tristate "3SNIC sssraid Adapter" | ||
| depends on PCI && SCSI | ||
| select BLK_DEV_BSGLIB | ||
| depends on ARM64 || X86_64 | ||
| help | ||
| This driver supports 3SNIC 3S5xx serial RAID controller, which has | ||
| PCI Express Gen4 interface with host and supports SAS/SATA HDD/SSD. | ||
| To compile this driver as a module, choose M here: the module will | ||
| be called sssraid. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # | ||
| # Makefile for the 3SNIC sssraid drivers. | ||
| # | ||
|
|
||
| obj-$(CONFIG_SCSI_3SNIC_SSSRAID) += sssraid.o | ||
|
|
||
| sssraid-objs := sssraid_os.o sssraid_fw.o |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: that was my oversight. There should be at least a "|| COMPILE_TEST" here.