RE: [PATCH 1/2] scsi: ufs: Add Multi-Circular Queue support

Avri Altman
2022-07-22T14:42:32Z

> desc_buf[DEVICE_DESC_PARAM_SPEC_VER + 1];
> +
> + dev_info->bqueuedepth = desc_buf[DEVICE_DESC_PARAM_Q_DPTH];
> +
> b_ufs_feature_sup = desc_buf[DEVICE_DESC_PARAM_UFS_FEAT];
>
> model_index = desc_buf[DEVICE_DESC_PARAM_PRDCT_NAME];
> @@ -8184,6 +8315,9 @@ static int ufshcd_probe_hba(struct ufs_hba *hba,
> bool init_dev_params)
> ret = ufshcd_device_params_init(hba);
> if (ret)
> goto out;
> +
> + if (is_mcq_enabled(hba) && hba->dev_info.bqueuedepth)
> + ufshcd_mcq_config_mac(hba);
> }
So what happens if the device does not implements the shared queueing architecture.
MCQ is still enabled?

Thanks,
Avri