Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1572459
| From | David Laight <David.Laight@ACULAB.COM> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: ibmvtpm byteswapping inconsistency |
| Date | 2017-02-02 16:20 +0100 |
| Message-ID | <t6rl0-5HE-23@gated-at.bofh.it> (permalink) |
| References | <t3YQa-3pI-15@gated-at.bofh.it> <t40oW-4qW-33@gated-at.bofh.it> <t41bk-4KV-23@gated-at.bofh.it> <t6hvj-7m6-9@gated-at.bofh.it> <t6o3L-3p1-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Michal Suchánek > Sent: 02 February 2017 11:30 ... > The word is marked correctly as __be64 in that patch because count and > handle are swapped to BE when saved to it and the whole word is then > swapped again when loaded. If you just load ((u64)IBMVTPM_VALID_CMD << > 56 | ((u64)VTPM_TPM_COMMAND << 48) | ((u64)count << 32) | > ibmvtpm->rtce_dma_handle in a register it works equally well > without any __be and swaps involved. And that version will almost certainly generate much better code. David
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: ibmvtpm byteswapping inconsistency Vicky <honclo@linux.vnet.ibm.com> - 2017-02-02 05:50 +0100
Re: ibmvtpm byteswapping inconsistency Michael Ellerman <mpe@ellerman.id.au> - 2017-02-02 12:00 +0100
Re: ibmvtpm byteswapping inconsistency Michal Suchánek <msuchanek@suse.de> - 2017-02-02 12:50 +0100
RE: ibmvtpm byteswapping inconsistency David Laight <David.Laight@ACULAB.COM> - 2017-02-02 16:20 +0100
csiph-web