scsi: hisi_sas: Reject request of setting minimum_linkrate exceed 1.5 Gbit at...
scsi: hisi_sas: Reject request of setting minimum_linkrate exceed 1.5 Gbit at directly attached environment At directly attached env, we found out that user can successfully set a higher linkrate to minimum_linkrate than negotiated_linkrate. Like below: maximum_linkrate: 6.0 Gbit minimum_linkrate: 6.0 Gbit negotiated_linkrate: 3.0 Gbit It mean that the bound of max and min linkrate cannot limit the negotiated linkrate. This may cause trouble to user. Actually, we only send maximum_linkrate to SAS controller, and SAS controller will try all the linkrate under the setting value and finally negotiate with the highest possible linkrate. So to the SAS controller at directly attached env, the min linkrate is unnecessary. If we want to avoid this issue, the best way is to reject the request of setting minimum_linkrate exceed 1.5 Gbit. Signed-off-by: NLuo Jiaxing <luojiaxing@huawei.com> Signed-off-by: NJohn Garry <john.garry@huawei.com> Feature or Bugfix:Bugfix Signed-off-by: Nluojiaxing <luojiaxing@huawei.com> Reviewed-by: Nchenxiang <chenxiang66@hisilicon.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录