Commit 895427b
scsi: lpfc: NVME Initiator: Base modifications
NVME Initiator: Base modifications
This patch adds base modifications for NVME initiator support.
The base modifications consist of:
- Formal split of SLI3 rings from SLI-4 WQs (sometimes referred to as
rings as well) as implementation now widely varies between the two.
- Addition of configuration modes:
SCSI initiator only; NVME initiator only; NVME target only; and
SCSI and NVME initiator.
The configuration mode drives overall adapter configuration,
offloads enabled, and resource splits.
NVME support is only available on SLI-4 devices and newer fw.
- Implements the following based on configuration mode:
- Exchange resources are split by protocol; Obviously, if only
1 mode, then no split occurs. Default is 50/50. module attribute
allows tuning.
- Pools and config parameters are separated per-protocol
- Each protocol has it's own set of queues, but share interrupt
vectors.
SCSI:
SLI3 devices have few queues and the original style of queue
allocation remains.
SLI4 devices piggy back on an "io-channel" concept that
eventually needs to merge with scsi-mq/blk-mq support (it is
underway). For now, the paradigm continues as it existed
prior. io channel allocates N msix and N WQs (N=4 default)
and either round robins or uses cpu # modulo N for scheduling.
A bunch of module parameters allow the configuration to be
tuned.
NVME (initiator):
Allocates an msix per cpu (or whatever pci_alloc_irq_vectors
gets)
Allocates a WQ per cpu, and maps the WQs to msix on a WQ #
modulo msix vector count basis.
Module parameters exist to cap/control the config if desired.
- Each protocol has its own buffer and dma pools.
I apologize for the size of the patch.
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
----
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 1d9d5a9 commit 895427b
File tree
22 files changed
+3353
-1634
lines changed- drivers/scsi/lpfc
22 files changed
+3353
-1634
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
117 | 126 | | |
118 | 127 | | |
119 | 128 | | |
| |||
131 | 140 | | |
132 | 141 | | |
133 | 142 | | |
134 | | - | |
| 143 | + | |
| 144 | + | |
135 | 145 | | |
136 | 146 | | |
137 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
138 | 161 | | |
139 | 162 | | |
140 | 163 | | |
| |||
442 | 465 | | |
443 | 466 | | |
444 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
445 | 473 | | |
446 | 474 | | |
447 | 475 | | |
| |||
459 | 487 | | |
460 | 488 | | |
461 | 489 | | |
462 | | - | |
463 | 490 | | |
464 | 491 | | |
465 | | - | |
| 492 | + | |
466 | 493 | | |
467 | 494 | | |
468 | 495 | | |
| |||
652 | 679 | | |
653 | 680 | | |
654 | 681 | | |
| 682 | + | |
| 683 | + | |
655 | 684 | | |
656 | 685 | | |
657 | 686 | | |
| |||
700 | 729 | | |
701 | 730 | | |
702 | 731 | | |
| 732 | + | |
| 733 | + | |
703 | 734 | | |
704 | 735 | | |
705 | 736 | | |
| |||
725 | 756 | | |
726 | 757 | | |
727 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
728 | 762 | | |
729 | 763 | | |
730 | 764 | | |
| |||
770 | 804 | | |
771 | 805 | | |
772 | 806 | | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
773 | 813 | | |
774 | 814 | | |
775 | 815 | | |
| |||
784 | 824 | | |
785 | 825 | | |
786 | 826 | | |
787 | | - | |
788 | 827 | | |
789 | 828 | | |
790 | 829 | | |
791 | | - | |
| 830 | + | |
| 831 | + | |
792 | 832 | | |
793 | 833 | | |
794 | 834 | | |
| |||
843 | 883 | | |
844 | 884 | | |
845 | 885 | | |
846 | | - | |
847 | | - | |
848 | | - | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
849 | 897 | | |
850 | 898 | | |
851 | 899 | | |
| |||
856 | 904 | | |
857 | 905 | | |
858 | 906 | | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
859 | 912 | | |
860 | 913 | | |
861 | 914 | | |
862 | 915 | | |
863 | 916 | | |
864 | 917 | | |
865 | | - | |
| 918 | + | |
866 | 919 | | |
867 | 920 | | |
868 | 921 | | |
869 | 922 | | |
| 923 | + | |
870 | 924 | | |
871 | 925 | | |
872 | 926 | | |
| |||
1092 | 1146 | | |
1093 | 1147 | | |
1094 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
0 commit comments