Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2449537imn; Tue, 2 Aug 2022 03:19:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR4wGzg9qrUpZe59aGVle5giz/tJU/gT3hLhhTZ6uTFUEV+qMMjHy7iFAGzv92modOMHBM4W X-Received: by 2002:a17:90a:d58e:b0:1f4:f9a5:22a8 with SMTP id v14-20020a17090ad58e00b001f4f9a522a8mr11058650pju.58.1659435590105; Tue, 02 Aug 2022 03:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659435590; cv=none; d=google.com; s=arc-20160816; b=Cm8bE8ggVxfx3lWWwkZLOL/+Dt3ui0DljhUUdC79yUNR5ufqDmwX/uI+MHfwReKwxR 2QZiYvCXxR+Dch0RJlSkKLElauXgHJpHpREhSlJXh4xCp+nvf/RGNMp3VgidxEdCPVBg cvHLXORzvMtgikdRa03AoHmn3VRYsrqikHomoXLGqJxT+TBxvTWnL65lkdL9ntTjky4s /IKkwzGJjB9CBcBvT0nNG8vcSUOJYbUZKLQTmSd3Xhc4PqollnSiOplwfDuqoXvoyZ5s r8Pam0HeYcwldahELNPI2ByyK7C3bolOKcDflezxuj7V5/mTxaRyTby2uVQHQ6Z+vyrs 6YPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XB6f72SmrGRGpdkbxm62ZoLWmYuQ/J6SVJelfovf9LM=; b=f3eVTCuhL3l0ncmSvdr20e9Ke02Kxr30ccodmS2ZIn0fsJofzJW2ANG8wr69TczVBt NbAs1C6B1GRTwNS3C813gpjjU4VUeoTbk3prxToHum2ppI8vG7+L6Rogq0+7NK67SqvP Uowsz5uPnVbA8i/177lzMsBd/ViNA6rOOMMe661l6/mT3du/DDyg7h+MnveFY0hKSi4d VX9CQFpbMvOAhw53QrBDRmg2RzgHOERCjdFo6wmSwozj7KjUEteXDeiEGH+YwM/yRO0b cF3p4Bdkr4EskPBAuyMyYzVw15y2XMe9KqP7Ipra/ObdQyFDq2Di4DO+RqRcrUZv6i5t ZpIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a17090301c200b0016c6337a4d1si17462798plh.509.2022.08.02.03.19.36; Tue, 02 Aug 2022 03:19:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236622AbiHBKPl (ORCPT + 99 others); Tue, 2 Aug 2022 06:15:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233412AbiHBKPb (ORCPT ); Tue, 2 Aug 2022 06:15:31 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BACDC1D310; Tue, 2 Aug 2022 03:15:29 -0700 (PDT) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LxrQj5Z28zlVql; Tue, 2 Aug 2022 18:12:45 +0800 (CST) Received: from kwepemm600007.china.huawei.com (7.193.23.208) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 2 Aug 2022 18:15:27 +0800 Received: from localhost.localdomain (10.69.192.56) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 2 Aug 2022 18:15:26 +0800 From: Jie Hai To: , CC: , , , Subject: [PATCH v4 0/7] dmaengine: hisilicon: Add support for hisi dma driver Date: Tue, 2 Aug 2022 18:12:19 +0800 Message-ID: <20220802101226.9005-1-haijie1@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220625074422.3479591-1-haijie1@huawei.com> References: <20220625074422.3479591-1-haijie1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600007.china.huawei.com (7.193.23.208) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The HiSilicon IP08 and HiSilicon IP09 are DMA iEPs, they share the same pci device id but different pci revision and register layouts. The original version supports HiSilicon IP08 but not HiSilicon IP09. This series support DMA driver for HIP08 and HIP09: 1. Fix bugs for HIP08 DMA driver - Disable hardware channels when driver detached - Update cq_head whenever accessed it - Support multi-thread for one DMA channel 2. Use macros instead of magic number 3. Add support for HIP09 DMA driver 4. Add debugfs for HIP08 and HIP09 DMA driver 5. Add myself as maintainer of hisi_dma.c Changes since version 3: - remove reduldant braces - add "Acked-by: Zhou Wang " in commit log Changes since version 2: - fix unnecessary line breaks - fix register bit with BIT/GENMASK and adjust hisi_dma_update_bit to it - remove "Reported-by" in commit message - use dmaengine root instead of hisi_dma root - ignore errors for creating debugfs Changes since version 1: - remove error changes casuse compile failure - remove reduldant "*" in comment - remove debugfs-hisi-dma doc and path in MAINTAINERS Jie Hai (7): dmaengine: hisilicon: Disable channels when unregister hisi_dma dmaengine: hisilicon: Fix CQ head update dmaengine: hisilicon: Add multi-thread support for a DMA channel dmaengine: hisilicon: Use macros instead of magic number dmaengine: hisilicon: Adapt DMA driver to HiSilicon IP09 dmaengine: hisilicon: Dump regs to debugfs MAINTAINERS: Add myself as maintainer for hisi_dma MAINTAINERS | 1 + drivers/dma/hisi_dma.c | 650 +++++++++++++++++++++++++++++++++++------ 2 files changed, 555 insertions(+), 96 deletions(-) -- 2.33.0