linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] DMA: update acpi_dma_get_range to return dma map regions
@ 2022-08-05  7:31 Jianmin Lv
  2022-08-05  7:31 ` [PATCH V2 1/2] ACPI / scan: Support multiple dma windows with different offsets Jianmin Lv
  2022-08-05  7:31 ` [PATCH V2 2/2] LoongArch: Remove ARCH_HAS_PHYS_TO_DMA Jianmin Lv
  0 siblings, 2 replies; 10+ messages in thread
From: Jianmin Lv @ 2022-08-05  7:31 UTC (permalink / raw)
  To: lpieralisi, robin.murphy, guohanjun, sudeep.holla, rafael, lenb,
	robert.moore
  Cc: linux-kernel, linux-acpi

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

Jianmin Lv (2):
  ACPI / scan: Support multiple dma windows with different offsets
  LoongArch: Remove ARCH_HAS_PHYS_TO_DMA

 arch/loongarch/Kconfig        |  1 -
 arch/loongarch/kernel/dma.c   | 62 +++++++++++++++++++++----------------------
 arch/loongarch/kernel/setup.c |  2 +-
 drivers/acpi/arm64/dma.c      | 44 ++++++++++++++++++++++--------
 drivers/acpi/scan.c           | 48 ++++++++++++++++-----------------
 include/acpi/acpi_bus.h       |  3 +--
 include/linux/acpi.h          | 12 +++++----
 7 files changed, 97 insertions(+), 75 deletions(-)

-- 
1.8.3.1


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

end of thread, other threads:[~2022-08-29 13:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-05  7:31 [PATCH V2 0/2] DMA: update acpi_dma_get_range to return dma map regions Jianmin Lv
2022-08-05  7:31 ` [PATCH V2 1/2] ACPI / scan: Support multiple dma windows with different offsets Jianmin Lv
2022-08-05 12:46   ` Robin Murphy
2022-08-06  6:13     ` Jianmin Lv
2022-08-06  7:21       ` Jianmin Lv
2022-08-08  8:24     ` Lorenzo Pieralisi
2022-08-12  7:52     ` Lorenzo Pieralisi
2022-08-29 13:00       ` Jianmin Lv
2022-08-05  7:31 ` [PATCH V2 2/2] LoongArch: Remove ARCH_HAS_PHYS_TO_DMA Jianmin Lv
2022-08-05 16:36   ` kernel test robot

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