From patchwork Fri Sep 9 09:28:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5ZCV5bu65rCR?= X-Patchwork-Id: 12971403 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C99AFECAAA1 for ; Fri, 9 Sep 2022 09:30:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231126AbiIIJaj (ORCPT ); Fri, 9 Sep 2022 05:30:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbiIIJaP (ORCPT ); Fri, 9 Sep 2022 05:30:15 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7059813CB1B; Fri, 9 Sep 2022 02:28:25 -0700 (PDT) Received: from loongson-pc.loongson.cn (unknown [10.20.42.105]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxBOIrBxtjH04VAA--.19971S2; Fri, 09 Sep 2022 17:28:11 +0800 (CST) From: Jianmin Lv To: lpieralisi@kernel.org, robin.murphy@arm.com, chenhuacai@loongson.cn Cc: guohanjun@huawei.com, sudeep.holla@arm.com, rafael@kernel.org, lenb@kernel.org, robert.moore@intel.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, loongarch@lists.linux.dev Subject: [PATCH V4 0/2] DMA: update acpi_dma_get_range to return dma map regions Date: Fri, 9 Sep 2022 17:28:09 +0800 Message-Id: <20220909092811.22627-1-lvjianmin@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxBOIrBxtjH04VAA--.19971S2 X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= X-CM-SenderInfo: 5oymxthqpl0qxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org 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 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 | 29 +++++++++++-------- drivers/acpi/scan.c | 53 +++++++++++++++-------------------- include/acpi/acpi_bus.h | 3 +- include/linux/acpi.h | 12 ++++---- 7 files changed, 71 insertions(+), 81 deletions(-)