linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V5 0/2] DMA: update acpi_dma_get_range to return dma map regions
@ 2022-09-11  9:06 Jianmin Lv
  2022-09-11  9:06 ` [PATCH V5 1/2] ACPI / scan: Support multiple dma windows with different offsets Jianmin Lv
  2022-09-11  9:06 ` [PATCH V5 2/2] LoongArch: Use acpi_arch_dma_setup() and remove ARCH_HAS_PHYS_TO_DMA Jianmin Lv
  0 siblings, 2 replies; 16+ messages in thread
From: Jianmin Lv @ 2022-09-11  9:06 UTC (permalink / raw)
  To: lpieralisi, robin.murphy, chenhuacai
  Cc: guohanjun, sudeep.holla, rafael, lenb, robert.moore,
	linux-kernel, linux-acpi, loongarch

The patch series changed acpi_dma_get_range to return dma regions
as of_dma_get_range, so that dev->dma_range_map can be initialized
conveniently.

And acpi_arch_dma_setup for ARM64 is changed wih removing dma_base
and size from it's parameters.

Remove ARCH_HAS_PHYS_TO_DMA for LoongArch and use generic
phys_to_dma/dma_to_phys in include/linux/dma-direct.h.

V1 -> V2
- Removed dma_base and size from acpi_arch_dma_setup' parameters
- Add patch to remove ARCH_HAS_PHYS_TO_DMA for LoongArch

V2 -> V3
- Add kerneldoc for acpi_dma_get_range changing
- Remove redundant code in acpi_arch_dma_setup, and check map

V3 -> V4
- Change title to "Use acpi_arch_dma_setup() and remove ARCH_HAS_PHYS_TO_DMA"
- Use resource_size() to get size 

V4 -> V5
- Change commit log for patch: Support multiple dma windows with different offsets
- Remove a unnecessary blank line
- Fix a bug of acpi_dma_get_range

Jianmin Lv (2):
  ACPI / scan: Support multiple dma windows with different offsets
  LoongArch: Use acpi_arch_dma_setup() and remove ARCH_HAS_PHYS_TO_DMA

 arch/loongarch/Kconfig        |  1 -
 arch/loongarch/kernel/dma.c   | 52 ++++++++++++++--------------------
 arch/loongarch/kernel/setup.c |  2 +-
 drivers/acpi/arm64/dma.c      | 28 ++++++++++--------
 drivers/acpi/scan.c           | 53 +++++++++++++++--------------------
 include/acpi/acpi_bus.h       |  3 +-
 include/linux/acpi.h          | 12 ++++----
 7 files changed, 70 insertions(+), 81 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2022-10-19  8:22 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-11  9:06 [PATCH V5 0/2] DMA: update acpi_dma_get_range to return dma map regions Jianmin Lv
2022-09-11  9:06 ` [PATCH V5 1/2] ACPI / scan: Support multiple dma windows with different offsets Jianmin Lv
2022-09-13  8:21   ` Lorenzo Pieralisi
2022-09-24 16:40     ` Rafael J. Wysocki
2022-10-18  2:08   ` Jeremy Linton
2022-10-18  9:33   ` Yicong Yang
2022-10-18 10:08     ` Rafael J. Wysocki
2022-10-18 12:00       ` Robin Murphy
2022-10-18 12:32         ` Yicong Yang
2022-10-18 12:50           ` Jianmin Lv
2022-10-18 12:56             ` Rafael J. Wysocki
2022-10-18 13:00               ` Jianmin Lv
2022-10-18 13:06                 ` Robin Murphy
2022-10-18 13:14                   ` Jianmin Lv
2022-10-19  8:21       ` Lorenzo Pieralisi
2022-09-11  9:06 ` [PATCH V5 2/2] LoongArch: Use acpi_arch_dma_setup() and remove ARCH_HAS_PHYS_TO_DMA Jianmin Lv

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).