From patchwork Tue Aug 30 03:01:37 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: 12958637 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 71625ECAAD3 for ; Tue, 30 Aug 2022 03:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230015AbiH3DBw (ORCPT ); Mon, 29 Aug 2022 23:01:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbiH3DBt (ORCPT ); Mon, 29 Aug 2022 23:01:49 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1DB0C9C224; Mon, 29 Aug 2022 20:01:46 -0700 (PDT) Received: from loongson-pc.loongson.cn (unknown [10.20.42.105]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx72uTfQ1jmS0MAA--.50840S2; Tue, 30 Aug 2022 11:01:39 +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 V3 0/2] DMA: update acpi_dma_get_range to return dma map regions Date: Tue, 30 Aug 2022 11:01:37 +0800 Message-Id: <20220830030139.29899-1-lvjianmin@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Cx72uTfQ1jmS0MAA--.50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U= 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 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 | 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(-)