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)
Mar 19 2024, 1:08 AM
Unknown Object (File)
Mar 18 2024, 8:12 PM
Unknown Object (File)
Mar 7 2024, 8:55 PM
Unknown Object (File)
Dec 20 2023, 7:42 AM
Unknown Object (File)
Nov 12 2023, 5:48 AM
Unknown Object (File)
Nov 7 2023, 3:40 AM
Unknown Object (File)
Nov 5 2023, 6:43 PM
Unknown Object (File)
Nov 4 2023, 7:56 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.