@@ -1554,7 +1554,7 @@ void megasas_configure_queue_sizes(struct megasas_instance *instance)
1554
1554
fusion = instance -> ctrl_context ;
1555
1555
max_cmd = instance -> max_fw_cmds ;
1556
1556
1557
- if (instance -> adapter_type = = VENTURA_SERIES )
1557
+ if (instance -> adapter_type > = VENTURA_SERIES )
1558
1558
instance -> max_mpt_cmds = instance -> max_fw_cmds * RAID_1_PEER_CMDS ;
1559
1559
else
1560
1560
instance -> max_mpt_cmds = instance -> max_fw_cmds ;
@@ -2721,7 +2721,7 @@ megasas_build_ldio_fusion(struct megasas_instance *instance,
2721
2721
cmd -> request_desc -> SCSIIO .MSIxIndex =
2722
2722
instance -> reply_map [raw_smp_processor_id ()];
2723
2723
2724
- if (instance -> adapter_type = = VENTURA_SERIES ) {
2724
+ if (instance -> adapter_type > = VENTURA_SERIES ) {
2725
2725
/* FP for Optimal raid level 1.
2726
2726
* All large RAID-1 writes (> 32 KiB, both WT and WB modes)
2727
2727
* are built by the driver as LD I/Os.
@@ -2789,7 +2789,7 @@ megasas_build_ldio_fusion(struct megasas_instance *instance,
2789
2789
rctx -> reg_lock_flags |=
2790
2790
(MR_RL_FLAGS_GRANT_DESTINATION_CUDA |
2791
2791
MR_RL_FLAGS_SEQ_NUM_ENABLE );
2792
- } else if (instance -> adapter_type = = VENTURA_SERIES ) {
2792
+ } else if (instance -> adapter_type > = VENTURA_SERIES ) {
2793
2793
rctx_g35 -> nseg_type |= (1 << RAID_CONTEXT_NSEG_SHIFT );
2794
2794
rctx_g35 -> nseg_type |= (MPI2_TYPE_CUDA << RAID_CONTEXT_TYPE_SHIFT );
2795
2795
rctx_g35 -> routing_flags |= (1 << MR_RAID_CTX_ROUTINGFLAGS_SQN_SHIFT );
@@ -2805,15 +2805,15 @@ megasas_build_ldio_fusion(struct megasas_instance *instance,
2805
2805
& io_info , local_map_ptr );
2806
2806
scp -> SCp .Status |= MEGASAS_LOAD_BALANCE_FLAG ;
2807
2807
cmd -> pd_r1_lb = io_info .pd_after_lb ;
2808
- if (instance -> adapter_type = = VENTURA_SERIES )
2808
+ if (instance -> adapter_type > = VENTURA_SERIES )
2809
2809
rctx_g35 -> span_arm = io_info .span_arm ;
2810
2810
else
2811
2811
rctx -> span_arm = io_info .span_arm ;
2812
2812
2813
2813
} else
2814
2814
scp -> SCp .Status &= ~MEGASAS_LOAD_BALANCE_FLAG ;
2815
2815
2816
- if (instance -> adapter_type = = VENTURA_SERIES )
2816
+ if (instance -> adapter_type > = VENTURA_SERIES )
2817
2817
cmd -> r1_alt_dev_handle = io_info .r1_alt_dev_handle ;
2818
2818
else
2819
2819
cmd -> r1_alt_dev_handle = MR_DEVHANDLE_INVALID ;
@@ -2847,7 +2847,7 @@ megasas_build_ldio_fusion(struct megasas_instance *instance,
2847
2847
(MR_RL_FLAGS_GRANT_DESTINATION_CPU0 |
2848
2848
MR_RL_FLAGS_SEQ_NUM_ENABLE );
2849
2849
rctx -> nseg = 0x1 ;
2850
- } else if (instance -> adapter_type = = VENTURA_SERIES ) {
2850
+ } else if (instance -> adapter_type > = VENTURA_SERIES ) {
2851
2851
rctx_g35 -> routing_flags |= (1 << MR_RAID_CTX_ROUTINGFLAGS_SQN_SHIFT );
2852
2852
rctx_g35 -> nseg_type |= (1 << RAID_CONTEXT_NSEG_SHIFT );
2853
2853
rctx_g35 -> nseg_type |= (MPI2_TYPE_CUDA << RAID_CONTEXT_TYPE_SHIFT );
@@ -2919,7 +2919,7 @@ static void megasas_build_ld_nonrw_fusion(struct megasas_instance *instance,
2919
2919
2920
2920
/* set RAID context values */
2921
2921
pRAID_Context -> config_seq_num = raid -> seqNum ;
2922
- if (instance -> adapter_type != VENTURA_SERIES )
2922
+ if (instance -> adapter_type < VENTURA_SERIES )
2923
2923
pRAID_Context -> reg_lock_flags = REGION_TYPE_SHARED_READ ;
2924
2924
pRAID_Context -> timeout_value =
2925
2925
cpu_to_le16 (raid -> fpIoTimeoutForLd );
@@ -3004,7 +3004,7 @@ megasas_build_syspd_fusion(struct megasas_instance *instance,
3004
3004
cpu_to_le16 (device_id + (MAX_PHYSICAL_DEVICES - 1 ));
3005
3005
pRAID_Context -> config_seq_num = pd_sync -> seq [pd_index ].seqNum ;
3006
3006
io_request -> DevHandle = pd_sync -> seq [pd_index ].devHandle ;
3007
- if (instance -> adapter_type = = VENTURA_SERIES ) {
3007
+ if (instance -> adapter_type > = VENTURA_SERIES ) {
3008
3008
io_request -> RaidContext .raid_context_g35 .routing_flags |=
3009
3009
(1 << MR_RAID_CTX_ROUTINGFLAGS_SQN_SHIFT );
3010
3010
io_request -> RaidContext .raid_context_g35 .nseg_type |=
@@ -3137,7 +3137,7 @@ megasas_build_io_fusion(struct megasas_instance *instance,
3137
3137
return 1 ;
3138
3138
}
3139
3139
3140
- if (instance -> adapter_type = = VENTURA_SERIES ) {
3140
+ if (instance -> adapter_type > = VENTURA_SERIES ) {
3141
3141
set_num_sge (& io_request -> RaidContext .raid_context_g35 , sge_count );
3142
3142
cpu_to_le16s (& io_request -> RaidContext .raid_context_g35 .routing_flags );
3143
3143
cpu_to_le16s (& io_request -> RaidContext .raid_context_g35 .nseg_type );
@@ -4656,7 +4656,7 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int reason)
4656
4656
for (i = 0 ; i < instance -> max_scsi_cmds ; i ++ ) {
4657
4657
cmd_fusion = fusion -> cmd_list [i ];
4658
4658
/*check for extra commands issued by driver*/
4659
- if (instance -> adapter_type = = VENTURA_SERIES ) {
4659
+ if (instance -> adapter_type > = VENTURA_SERIES ) {
4660
4660
r1_cmd = fusion -> cmd_list [i + instance -> max_fw_cmds ];
4661
4661
megasas_return_cmd_fusion (instance , r1_cmd );
4662
4662
}
@@ -4755,7 +4755,7 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int reason)
4755
4755
megasas_setup_jbod_map (instance );
4756
4756
4757
4757
/* reset stream detection array */
4758
- if (instance -> adapter_type = = VENTURA_SERIES ) {
4758
+ if (instance -> adapter_type > = VENTURA_SERIES ) {
4759
4759
for (j = 0 ; j < MAX_LOGICAL_DRIVES_EXT ; ++ j ) {
4760
4760
memset (fusion -> stream_detect_by_ld [j ],
4761
4761
0 , sizeof (struct LD_STREAM_DETECT ));
0 commit comments