Page MenuHomeFreeBSD

tpm_if.m: declare bus addresses as bus_size_t not bus_addr_t
ClosedPublic

Authored by rlibby on May 21 2024, 5:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 6:25 PM
Unknown Object (File)
Sep 25 2024, 4:54 PM
Unknown Object (File)
Sep 15 2024, 8:41 PM
Unknown Object (File)
Sep 12 2024, 2:45 PM
Unknown Object (File)
Sep 4 2024, 4:43 AM
Unknown Object (File)
Aug 5 2024, 7:06 AM
Unknown Object (File)
Jul 26 2024, 11:12 AM
Unknown Object (File)
Jul 2 2024, 10:47 PM
Subscribers

Details

Summary

Do like bus_space(9) does. This fixes the build on platforms where
bus_addr_t and bus_size_t are different (like i386 PAE).

Fixes: c2e9c5bbf022 tpm: Refactor TIS and add a SPI attachment

Test Plan

I don't know how to test this beyond make tinderbox. @jhibbits please feel free to take this patch over if desired.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The only time this makes a difference is if the sizes of bus_addr_t and bus_size_t are different, and I don't have any test hardware where that's the case and I can test TPM. (Only hardware I have where that's the case is ppc Book-E, but that doesn't have a TPM).

This revision is now accepted and ready to land.May 21 2024, 5:34 PM

The only time this makes a difference is if the sizes of bus_addr_t and bus_size_t are different, and I don't have any test hardware where that's the case and I can test TPM. (Only hardware I have where that's the case is ppc Book-E, but that doesn't have a TPM).

Right. Not that I think this is risky, but would you like to do any testing of tpm at all before pushing to main? Otherwise I'll go ahead and push it without testing beyond make.

The only time this makes a difference is if the sizes of bus_addr_t and bus_size_t are different, and I don't have any test hardware where that's the case and I can test TPM. (Only hardware I have where that's the case is ppc Book-E, but that doesn't have a TPM).

Right. Not that I think this is risky, but would you like to do any testing of tpm at all before pushing to main? Otherwise I'll go ahead and push it without testing beyond make.

No need for me to test. There's no risk for any platform Juniper uses, or my RPi I tested the original change with. Thanks for taking this!