Page MenuHomeFreeBSD

Add PNP metadata to a few drivers
ClosedPublic

Authored by cem on Sep 14 2017, 2:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 28, 1:01 PM
Unknown Object (File)
Tue, Oct 22, 8:06 PM
Unknown Object (File)
Oct 9 2024, 7:10 AM
Unknown Object (File)
Oct 1 2024, 3:12 PM
Unknown Object (File)
Sep 30 2024, 1:48 PM
Unknown Object (File)
Sep 24 2024, 9:43 AM
Unknown Object (File)
Sep 24 2024, 5:11 AM
Unknown Object (File)
Sep 23 2024, 5:41 PM
Subscribers
None

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/dev/amdsmn/amdsmn.c
92 ↗(On Diff #33045)

W16:vendor;W16:product

I think is what you want here.

sys/dev/amdtemp/amdtemp.c
78 ↗(On Diff #33045)

There's no need to make this change.... The old format would work just fine

157 ↗(On Diff #33045)

Again, these changes aren't needed.

sys/dev/amdsmn/amdsmn.c
92 ↗(On Diff #33045)

Why? The type is a uint32 — wouldn't W16+W16 be wrong on big endian (not that AMD makes big endian CPUs, but still)?

sys/dev/amdtemp/amdtemp.c
78 ↗(On Diff #33045)

Hm, for some reason I thought only the 32-bit form was supported. Will revert it.

cem marked 2 inline comments as done.

Drop unneeded amdtemp changes.

sys/dev/amdsmn/amdsmn.c
92 ↗(On Diff #33045)

I just checked the source. The type is two 16-bit ints, consecutive in memory before your changes. So U16 is what you need instead of W16.

sys/dev/amdtemp/amdtemp.c
78 ↗(On Diff #33045)

No, a lot of different types are supported...

sys/dev/amdsmn/amdsmn.c
92 ↗(On Diff #33045)

Are you sure you're looking at the right module? amdsmn uses a single uint32_t. I wrote it last week. (amdtemp, below, uses two consecutive 16 bit ints.)

Thanks for the changes. Now that my eyes are uncrossed, this looks sane to me now.

Thanks for doing this! We need more of it.

This revision is now accepted and ready to land.Sep 14 2017, 5:30 AM
This revision was automatically updated to reflect the committed changes.