Skip to content

firehose: do not probe sector size when storage init is skipped - #297

Merged
konradybcio merged 1 commit into
linux-msm:masterfrom
igoropaniuk:fix/provision-sector-probe
Jul 23, 2026
Merged

firehose: do not probe sector size when storage init is skipped#297
konradybcio merged 1 commit into
linux-msm:masterfrom
igoropaniuk:fix/provision-sector-probe

Conversation

@igoropaniuk

@igoropaniuk igoropaniuk commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

firehose_try_configure() discovers the storage sector size by reading sector 1 of partition 0 with each candidate size. The provisioning path also runs this probe, and on a device with unprovisioned UFS the reads fail inside the programmer with "OPEN handle NULL and no error, weird": there is no LU 0 to open. The programmer does not recover from that failed open - the subsequent provisioning commit fails with "ufs_open(0, WLUN_DEV) failed for configure" and the device is left unprovisioned, while the same programmer, device and XML provision fine through QFIL, which sends no reads before the ufs tags.

Gate the probe on skip_storage_init: the probe reads force the programmer to initialize the very storage the caller declared uninitialized, and provisioning - the only path passing skip_storage_init - expresses UFS geometry in kilobytes and never needs a sector size. Reported in issue [1].

[1] #294

firehose_try_configure() discovers the storage sector size by reading
sector 1 of partition 0 with each candidate size. The provisioning
path also runs this probe, and on a device with unprovisioned UFS the
reads fail inside the programmer with "OPEN handle NULL and no error,
weird": there is no LU 0 to open. The programmer does not recover
from that failed open - the subsequent provisioning commit fails with
"ufs_open(0, WLUN_DEV) failed for configure" and the device is left
unprovisioned, while the same programmer, device and XML provision
fine through QFIL, which sends no reads before the ufs tags.

Gate the probe on skip_storage_init: the probe reads force the
programmer to initialize the very storage the caller declared
uninitialized, and provisioning - the only path passing
skip_storage_init - expresses UFS geometry in kilobytes and never
needs a sector size. Reported in the github issue [1].

[1] linux-msm#294

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
@igoropaniuk
igoropaniuk force-pushed the fix/provision-sector-probe branch 2 times, most recently from 8d987c7 to 43b5ac8 Compare July 23, 2026 08:45
@igoropaniuk igoropaniuk changed the title [TEST NEEDED] firehose: do not probe sector size when storage init is skipped firehose: do not probe sector size when storage init is skipped Jul 23, 2026
@igoropaniuk
igoropaniuk marked this pull request as ready for review July 23, 2026 11:52
@igoropaniuk
igoropaniuk requested a review from a team as a code owner July 23, 2026 11:52
@konradybcio
konradybcio merged commit e5feb4b into linux-msm:master Jul 23, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants