All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] fix dma_addressing_limited() if dma_range_map
@ 2023-10-28 10:20 Jia He
  2023-10-28 10:20 ` [PATCH v4 1/2] dma-mapping: move dma_addressing_limited() out of line Jia He
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jia He @ 2023-10-28 10:20 UTC (permalink / raw)
  To: Christoph Hellwig, Marek Szyprowski, Robin Murphy, iommu
  Cc: linux-kernel, nd, Jia He

This is to fix the hangs at boot. The root cause is the nvme device dma
mapping is failed in the checking path of phys_to_dma() since
dma_max_mapping_size() gave the wrong answer to start with.

---
Changelog:
v1: https://lore.kernel.org/all/20230912084002.2168-1-justin.he@arm.com/
v2:
https://lore.kernel.org/lkml/20231010020835.3678-1-justin.he@arm.com/
  - refine the subject and commit msg (By Robin Murphy)
  - refactor the checking loop in check_ram_in_range_map() in the pages
    unit to avoid wrap to 0 on 32bits platforms (Robin)
v3:
https://lore.kernel.org/lkml/20231016125254.1875-1-justin.he@arm.com/
  - move and export dma_addressing_limited() to avoid adding a new
    exported helper (by Christoph Hellwig)
v4:
  - refine the commit msg in patch01
  - address patch02 coding style issues
  - add the dma ops check in dma_addressing_limited() (Christoph) 
  - move dma_direct_all_ram_mapped() to direct.c (Christoph)

Jia He (2):
  dma-mapping: move dma_addressing_limited() out of line
  dma-mapping: fix dma_addressing_limited() if dma_range_map can't cover
    all system RAM

 include/linux/dma-mapping.h | 19 +++++------------
 kernel/dma/direct.c         | 41 +++++++++++++++++++++++++++++++++++++
 kernel/dma/direct.h         |  1 +
 kernel/dma/mapping.c        | 23 +++++++++++++++++++++
 4 files changed, 70 insertions(+), 14 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2023-11-06  9:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-28 10:20 [PATCH v4 0/2] fix dma_addressing_limited() if dma_range_map Jia He
2023-10-28 10:20 ` [PATCH v4 1/2] dma-mapping: move dma_addressing_limited() out of line Jia He
2023-11-06  7:37   ` Christoph Hellwig
2023-10-28 10:20 ` [PATCH v4 2/2] dma-mapping: fix dma_addressing_limited() if dma_range_map can't cover all system RAM Jia He
2023-11-06  7:37   ` Christoph Hellwig
2023-11-06  7:36 ` [PATCH v4 0/2] fix dma_addressing_limited() if dma_range_map Christoph Hellwig
2023-11-06  9:11   ` Justin He

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.