Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2112195rdh; Sun, 29 Oct 2023 01:02:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2mZYXjtD1jlOdDRMr8uRXilopluTBI9cHZhHFnk+2nxvp9OjW0EZ06mXVHGSC8UzvSN+F X-Received: by 2002:a05:6e02:1a42:b0:351:1647:5fa0 with SMTP id u2-20020a056e021a4200b0035116475fa0mr9787406ilv.18.1698566542027; Sun, 29 Oct 2023 01:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698566541; cv=none; d=google.com; s=arc-20160816; b=aP/J+6xBra/i7CBhGAhBB9pEs5DkRzG0hR4r0RSZrGJVzji5pBuolN77aMcj3i/nZ1 PgyvLuhlJC4mm5qGgRE8wQ9ent5H0E7VTY76Bsrynpr+D5YpzJPhiake9Y8Q+cC05/7i Crpu2aBmRrhfgih4LGeiptxPEkZc8GcqR+aaky3q0MsJ6Tbp4PihCLtJDYhLuzIdK7TU 3dFcBzljXr3E/8KPY4E8SkwJXkcqiFAXqdVJ5acTlOSj76YAMXivRQ6anS2qj2U3jbb8 omaBQVUW5LoaiCIa/LXx+M4ufr0TrqL8Ii0WkaZf/uOvkNUPqLsWgnnJcJcGA/X57dTH nkCQ== 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=kZYfVcmzC598f07t/L5LuJE8pLhRXXeA4ttNG2OT630=; fh=QBHJhMFaY+lWbqr2wKEcOz8zsPIdmcjBYs3CtaAVoV4=; b=wP0oC/J6PXf1h27FuacFmpXS44p70coMz9I2NfzCsOoQKXMqxo3WE+RohK1tjLuXhw tLCoADKxRsGey9knLPXkgUmQGCpP3+2IBmh0HHgzGCho6D1xrtoRclTL6NbeMDNqmxft PP0I/xzrqdC80WmKnmBzGC9RUm/uYTmvW6ajSPLO3TeoSCG9Xbz1MbbAG3jFsszz70hx 5/Bgc1uxLbtQ2a/v1RCM5cJVo/2Gr3o0vtX/B0Y3xRInFbr4SG78mrvNXSmpl3XoNH++ zcOFQ9E+d6tqRbuldwOp58jQkb3gGwS7Qnvz4dJFvEvDqvn8bDs6YlUuqV2hoS9wgpXL o4pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l1-20020a056a00140100b0068e4704fd5bsi3414315pfu.346.2023.10.29.01.02.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 01:02:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3D5E3807FC0A; Sun, 29 Oct 2023 01:01:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbjJ2IBH (ORCPT + 99 others); Sun, 29 Oct 2023 04:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbjJ2IBC (ORCPT ); Sun, 29 Oct 2023 04:01:02 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A772F3; Sun, 29 Oct 2023 01:00:58 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=guanjun@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0Vv31XX4_1698566453; Received: from localhost(mailfrom:guanjun@linux.alibaba.com fp:SMTPD_---0Vv31XX4_1698566453) by smtp.aliyun-inc.com; Sun, 29 Oct 2023 16:00:53 +0800 From: 'Guanjun' To: dave.jiang@intel.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, vkoul@kernel.org, tony.luck@intel.com, fenghua.yu@intel.com Cc: jing.lin@intel.com, ashok.raj@intel.com, sanjay.k.kumar@intel.com, megha.dey@intel.com, jacob.jun.pan@intel.com, yi.l.liu@intel.com, tglx@linutronix.de Subject: [PATCH v1 2/2] dmaengine: idxd: Fix the incorrect descriptions Date: Sun, 29 Oct 2023 16:00:49 +0800 Message-Id: <20231029080049.1482701-3-guanjun@linux.alibaba.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231029080049.1482701-1-guanjun@linux.alibaba.com> References: <20231029080049.1482701-1-guanjun@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 29 Oct 2023 01:01:36 -0700 (PDT) From: Guanjun Fix the incorrect descriptions for the GRPCFG register. No functional changes Signed-off-by: Guanjun --- drivers/dma/idxd/registers.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/dma/idxd/registers.h b/drivers/dma/idxd/registers.h index 7b54a3939ea1..385a162a55f2 100644 --- a/drivers/dma/idxd/registers.h +++ b/drivers/dma/idxd/registers.h @@ -440,12 +440,15 @@ union wqcfg { /* * This macro calculates the offset into the GRPCFG register * idxd - struct idxd * - * n - wq id - * ofs - the index of the 32b dword for the config register + * n - group id + * ofs - the index of the 64b qword for the config register * - * The WQCFG register block is divided into groups per each wq. The n index - * allows us to move to the register group that's for that particular wq. - * Each register is 32bits. The ofs gives us the number of register to access. + * The GRPCFG register block is divided into three different types, that + * includes GRPWQCFG, GRPENGCFG and GRPFLGCFG. The n index in each group + * allows us to move to the register group that's for that particular wq, + * engine or group flag. + * Each register is 64bits. And the ofs in GRPWQCFG gives us the number + * of register to access. */ #define GRPWQCFG_OFFSET(idxd_dev, n, ofs) ((idxd_dev)->grpcfg_offset +\ (n) * GRPCFG_SIZE + sizeof(u64) * (ofs)) -- 2.39.3