Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp184739rdh; Mon, 30 Oct 2023 19:20:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF69c0yH0Z9Cuv00heMVi6EO3Kt4WGdv2soMWx6gDJ+dW5rPoIp0iioSpGusMho5fZz04c6 X-Received: by 2002:a05:6358:903:b0:168:e958:a4b with SMTP id r3-20020a056358090300b00168e9580a4bmr10187588rwi.21.1698718845127; Mon, 30 Oct 2023 19:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698718845; cv=none; d=google.com; s=arc-20160816; b=tkxWR3fNyOjjJzjUMarH0G2lwzvHVvrH64A8UnKe6eaNwoOjgtMdu8t60QdNi1kH6U tQxe6gpjr+DVTFcir6S7p9xKWMujxpLlYRI0wz1uuWu5SvBEJheG/mAg+6Hiq8EiLtNU cwUX9f/sIeh7N/7r5F5+mXYYcvuh+fck2N78v8PYkPQBvF3B45CaFKHn9qFaM9oGPuRl 9LzppMUkUNwTLQzkz0tsycSI8dfzxbAr0qnxwzf7xOilzBmpCGG/EwzRLbkuSKKKkmgB Vu8/YMOqxFYd2TGONolejT0YCnk6tmYS7yFHG5YsrpMIbs5RpZtndaqGjPvYY6PmThNM DmnA== 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=EN+s/+eWhb0n3aZeVex4iQkcAfFcJBwxLgnuP3y5rwc=; fh=QBHJhMFaY+lWbqr2wKEcOz8zsPIdmcjBYs3CtaAVoV4=; b=GM0fZWVw+tsGeXObBKCG4BY+ByXJGGeyQuxRpclKdo8KxkoHwNTh/ugwJVabdW0IfH XRxGfC7Si7c+oionW5tzdK2vYt4/RNlgyjlL22wmGnJ28eYSjlPEcvro8RA8Nee6qlHb urydnudzeBSP1HRYuMWBYKv/MDukyemxy+ZqjsAA1HuzpNR7+Gca7ROK118nKix5Q96P x2Rgba5Nyiafqa6ovz5AcWBPFCBmQ+RqIQVt7BciIDjM8RKDi6XV2TZss8jHKA5eacPw IxYPZBGFokiLBu4MApZ/Qyf9C7AX+oVJurz5omqSvxfsSyL9Un9pZj+3quK4hz/o9UWr Nj4g== 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:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id k73-20020a633d4c000000b005b902b61cbbsi332088pga.125.2023.10.30.19.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 19:20:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 1E82180B6328; Mon, 30 Oct 2023 19:20:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229766AbjJaCUf (ORCPT + 99 others); Mon, 30 Oct 2023 22:20:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231228AbjJaCU2 (ORCPT ); Mon, 30 Oct 2023 22:20:28 -0400 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F8FDE9; Mon, 30 Oct 2023 19:20:25 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=guanjun@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0VvFn-Ut_1698718821; Received: from localhost(mailfrom:guanjun@linux.alibaba.com fp:SMTPD_---0VvFn-Ut_1698718821) by smtp.aliyun-inc.com; Tue, 31 Oct 2023 10:20:21 +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 v2 2/2] dmaengine: idxd: Fix incorrect descriptions for GRPCFG register Date: Tue, 31 Oct 2023 10:20:17 +0800 Message-Id: <20231031022017.1515471-3-guanjun@linux.alibaba.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231031022017.1515471-1-guanjun@linux.alibaba.com> References: <20231031022017.1515471-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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 19:20:42 -0700 (PDT) From: Guanjun Fix incorrect descriptions for the GRPCFG register which has three sub-registers (GRPWQCFG, GRPENGCFG and GRPFLGCFG). No functional changes Signed-off-by: Guanjun Reviewed-by: Dave Jiang --- 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..133bd0c170ae 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 sub-registers, which + * are GRPWQCFG, GRPENGCFG and GRPFLGCFG. The n index in each group + * allows us to move to the register group that's for that contains the + * three sub-registers. + * Each register is 64bits. And the ofs in GRPWQCFG gives us the offset + * within the GRPCFG register to access. */ #define GRPWQCFG_OFFSET(idxd_dev, n, ofs) ((idxd_dev)->grpcfg_offset +\ (n) * GRPCFG_SIZE + sizeof(u64) * (ofs)) -- 2.39.3