forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fpga: region: handle compat_id as an uuid
An fpga region's compat_id is exported by the sysfs as a 128 bit hex string formed by concatenating two 64 bit values together. The only user of compat_id is dfl. Its user library opae converts this value into a uuid. ex/ $ cat /sys/class/fpga_region/region1/compat_id f3c9941350814aadbced07eb84a6d0bb Is reported as $ fpgainfo bmc ... Pr Interface Id : f3c99413-5081-4aad-bced-07eb84a6d0bb Storing a uuid as 2 64 bit values is vendor specific. And concatenating them together is vendor specific. It is better to store and print out as a vendor neutral uuid. Change fpga_compat_id from a struct to a union. Keep the old 64 bit values for dfl. Sysfs output is now f3c99413-5081-4aad-bced-07eb84a6d0bb Signed-off-by: Tom Rix <trix@redhat.com>
- Loading branch information
1 parent
ff11764
commit fc6e727
Showing
5 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters