Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1440028rwb; Fri, 5 Aug 2022 01:48:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR792yzOjkQ6OeqU5lbfVcZOeizpI9fPJUOPRYmuddRv6w/rUpiJrlwvQKikDTBnFfnMpYtq X-Received: by 2002:a17:902:7686:b0:16f:21bd:5146 with SMTP id m6-20020a170902768600b0016f21bd5146mr5979932pll.49.1659689299230; Fri, 05 Aug 2022 01:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659689299; cv=none; d=google.com; s=arc-20160816; b=vTtn+dUrgpFh2HV3WOpMmg6S+pzh5hcQj9a6V65oT0K8qNk1Welxi6lUlwG0okZbfh SgwsirMzDHIJenguYDM8cmjIu3bZimX9KqNZ5UnC3q9c2npk7+NFssNfidseRMscYqyT iMfKRKZYEp1yoMkG/CxXvUz5x3ms9cE+1Jb5l8YWVUviCnDi5YnS7a5iI7gDOdojXNGm AEwRHpojfYSmTpvY/4YmHUc2nbw1r5gyXlyEm1mTDCAmVTuTq848bjV/c2XjMj585FFe X2YtkKPz8QWHTf+3k3AL8nBLSaEs7gA8vQnIc8Q4yghtuiPJRZDJq7SHtAxR3ky7FO43 co7Q== 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=vGGQBw3eu7/xkmQdSFBcLx/GYnSr9U0NE67FxXuU7lA=; b=qw37WrX/JvsjmuPowCkkzhiaKE0OoVm4fRmexyb8Q75OiilVC0ZliD3ZXrscwMjePq 5bVKOLrHAZDbLoFh9fDT096O2F/8ayNYmBF920DfYyE6u2UDdQKUc63o+TMrKtPXTCWP y6Qkkcurdznx1OPWte56QFyFZCqgpQXQsO3VmmNK2yR8mAADaoE/FBZvuXEMIPN+5AaJ NYUuiT+zZpgWrbZjJso6+116+kIlqOXQKGHN2PEEd8zZ9cAS/T5l3Nj69Zf6wcm4DixR 8Af8utw+bR4x5R7RaQZyvTbxJ+ODpPu7Ka5edg7v44+9qLHfe6zz/kttMMNcSsRwRgOa znJA== 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 n13-20020a170902d2cd00b001637dbe1bc4si3983196plc.44.2022.08.05.01.48.05; Fri, 05 Aug 2022 01:48:19 -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 S240382AbiHEIer (ORCPT + 99 others); Fri, 5 Aug 2022 04:34:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240185AbiHEIeq (ORCPT ); Fri, 5 Aug 2022 04:34:46 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8510018362; Fri, 5 Aug 2022 01:34:45 -0700 (PDT) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Lzf4d5fvxzTgWS; Fri, 5 Aug 2022 16:33:21 +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; Fri, 5 Aug 2022 16:34:41 +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; Fri, 5 Aug 2022 16:34:40 +0800 From: Jie Hai To: , CC: , , , Subject: [PATCH v4 0/7] dmaengine: hisilicon: Add support for hisi dma driver Date: Fri, 5 Aug 2022 16:25:29 +0800 Message-ID: <20220805082536.41145-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: dggems703-chm.china.huawei.com (10.3.19.180) 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 4: - Fix hdma_dev->base to hdma_dev->queue_base in hisi_dma_reset_or_disable_hw_chan 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