Page MenuHomeFreeBSD

ufshci: correct the crypto/config register offsets and HCMID fields
AcceptedPublic

Authored by jaeyoon on Thu, Aug 13, 8:42 AM.

Details

Reviewers
imp
Summary

The reserved array after CCAP must be 127 dwords, but it was 511.
This pushed the config, MCQ config, and ESI registers from 0x300 and
0x380 up to 0x900. None of these registers are used yet, so nothing
broke.

Also fix the HCMID bank index field. The spec places it at bits
[23:16], but it was defined on top of the manufacturer code at [15:0].

Sponsored by: Samsung Electronics

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75555
Build 72438: arc lint + arc unit

Event Timeline

jaeyoon created this revision.

The change looks good, just wondering about the inconsistency.

sys/dev/ufshci/ufshci_reg.h
64

why the error? I think the new one is right, but there's got to be a better way to get the stride right. There's also a mix of uint32_t and uint8_t. Is there a reason for that?

This revision is now accepted and ready to land.Fri, Aug 14, 9:09 PM