Re: [PATCH v3 9/9] scsi: ufs: Apply more limitations to user access

From: Can Guo
Date: Sat Jun 12 2021 - 03:13:34 EST


On 2021-06-12 05:03, Bart Van Assche wrote:
On 6/9/21 9:43 PM, Can Guo wrote:
Do not let user access HW if hba resume fails or hba is not in good state,
otherwise it may lead to various stability issues.

Just like for the previous patch, I'm wondering whether or not such a
failure perhaps indicates a hardware bug?


Indeed yes, but user access happens when power/clock is not ready will
lead to system stability issues, e.g., OCP or unclocked register access.

Nowadays, customers are heavily using UFS sysfs nodes during runtime,
so our test teams added quite a lot test scripts to simulate user access
to UFS sysfs nodes during their test.

Thanks,

Can Guo.

Thanks,

Bart.