linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] block/nvme: Fix DMA-noncoherent platforms support
@ 2022-09-09 19:19 Serge Semin
  2022-09-09 19:19 ` [PATCH 1/2] nvme-hwmon: Cache-line-align the NVME SMART log-buffer Serge Semin
  2022-09-09 19:19 ` [PATCH 2/2] block: sed-opal: Cache-line-align the cmd/resp buffers Serge Semin
  0 siblings, 2 replies; 17+ messages in thread
From: Serge Semin @ 2022-09-09 19:19 UTC (permalink / raw)
  To: Jonathan Derrick, Revanth Rajashekar, Jens Axboe, Keith Busch,
	Jens Axboe, Christoph Hellwig, Sagi Grimberg
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	Thomas Bogendoerfer, linux-nvme, linux-block, linux-kernel

Our SoC doesn't have the CPU caches coherent on DMA's. After getting the
kernel updated to the 6.0-rcX version we've discovered a problem with the
NVME hwmon probe. It turned out that the root cause of it was connected
with the cache-line-unaligned buffer passed to the DMA-engine. Due to the
cache-invalidation performed on the buffer mapping stage a part of the
structure the buffer was embedded to was lost. Here we suggest to fix the
problem just by aligning the buffer accordingly as the
Documentation/core-api/dma-api.rst document requires. (See the
corresponding patch log for more details.)

A potential root of a similar problem has been detected in the sed-opal
driver too. Even though we have not got any difficulties connected with
that part we still suggest to fix that in the same way as it is done for
the NVME hwmon driver.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Cc: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>
Cc: Pavel Parkhomenko <Pavel.Parkhomenko@baikalelectronics.ru>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-nvme@lists.infradead.org
Cc: linux-block@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

Serge Semin (2):
  nvme-hwmon: Cache-line-align the NVME SMART log-buffer
  block: sed-opal: Cache-line-align the cmd/resp buffers

 block/sed-opal.c          | 5 +++--
 drivers/nvme/host/hwmon.c | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

-- 
2.37.2


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-09-26 19:05 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-09 19:19 [PATCH 0/2] block/nvme: Fix DMA-noncoherent platforms support Serge Semin
2022-09-09 19:19 ` [PATCH 1/2] nvme-hwmon: Cache-line-align the NVME SMART log-buffer Serge Semin
2022-09-09 19:42   ` Keith Busch
2022-09-09 20:53     ` Serge Semin
2022-09-09 20:36   ` Guenter Roeck
2022-09-10  5:30   ` Christoph Hellwig
2022-09-10 12:35     ` Serge Semin
2022-09-10 18:09       ` Serge Semin
2022-09-12  8:29       ` Christoph Hellwig
2022-09-25 22:23         ` Serge Semin
2022-09-26 14:39           ` Christoph Hellwig
2022-09-26 19:04             ` Serge Semin
2022-09-10 14:33     ` Guenter Roeck
2022-09-09 19:19 ` [PATCH 2/2] block: sed-opal: Cache-line-align the cmd/resp buffers Serge Semin
2022-09-10  5:32   ` Christoph Hellwig
2022-09-11 16:28     ` Serge Semin
2022-09-25 22:30       ` Serge Semin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).