diff options
author | 2017-09-11 12:26:52 +0200 | |
---|---|---|
committer | 2017-10-18 18:28:46 +0300 | |
commit | 6b3a13173f23e798e1ba213dd4a2c065a3b8d751 (patch) | |
tree | cdccb6bb1c247a7a54497e1e1e52a2c01521cdc2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tpm/tpm_crb: Use start method value from ACPI table directly (diff) | |
download | wireguard-linux-6b3a13173f23e798e1ba213dd4a2c065a3b8d751.tar.xz wireguard-linux-6b3a13173f23e798e1ba213dd4a2c065a3b8d751.zip |
tpm_tis_spi: Use DMA-safe memory for SPI transfers
The buffers used as tx_buf/rx_buf in a SPI transfer need to be DMA-safe.
This cannot be guaranteed for the buffers passed to tpm_tis_spi_read_bytes
and tpm_tis_spi_write_bytes. Therefore, we need to use our own DMA-safe
buffer and copy the data to/from it.
The buffer needs to be allocated separately, to ensure that it is
cacheline-aligned and not shared with other data, so that DMA can work
correctly.
Fixes: 0edbfea537d1 ("tpm/tpm_tis_spi: Add support for spi phy")
Cc: stable@vger.kernel.org
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Alexander Steffen <Alexander.Steffen@infineon.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions