Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1224368
| From | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] tpm, tpm_crb: fix unaligned read of the command buffer address |
| Date | 2015-09-14 19:40 +0200 |
| Message-ID | <q8FTs-4AL-31@gated-at.bofh.it> (permalink) |
| References | <q8FA6-4ei-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Sep 14, 2015 at 08:15:23PM +0300, Jarkko Sakkinen wrote: > The command buffer address is necessarily not naturally aligned. > The hardware drops the entire read on some platforms and fills the > address with 1's. This patch fixes the issue by splitting the read > into two 32 bit reads. Is this necessary? The packed attribution means that unaligned members are allowed and the compiler deals with it where necessary. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] tpm, tpm_crb: fix unaligned read of the command buffer address Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2015-09-14 19:20 +0200
Re: [PATCH] tpm, tpm_crb: fix unaligned read of the command buffer address Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2015-09-14 19:40 +0200
Re: [PATCH] tpm, tpm_crb: fix unaligned read of the command buffer address Jarkko Sakkinen <jarkko.sakkinen@intel.com> - 2015-09-15 12:20 +0200
Re: [PATCH] tpm, tpm_crb: fix unaligned read of the command buffer address Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2015-09-15 18:40 +0200
Re: [PATCH] tpm, tpm_crb: fix unaligned read of the command buffer address Jarkko Sakkinen <jarkko.sakkinen@intel.com> - 2015-09-15 18:50 +0200
csiph-web