Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp194146rdh; Mon, 30 Oct 2023 19:55:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8ICWWok/pl6dEvPyuAjszZB6wG0uIocE0cGfhd20/bbIWa9kdKy9PYypDL5DFaFELjuLc X-Received: by 2002:a05:6808:14c7:b0:3af:8672:36f8 with SMTP id f7-20020a05680814c700b003af867236f8mr15039700oiw.7.1698720954623; Mon, 30 Oct 2023 19:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698720954; cv=none; d=google.com; s=arc-20160816; b=MEA1ndQmWIRumuxtpN80JO3B5KPZ6pddM+n4UL2OSGe9vLoxX4qj+DyH8U0fugmGs7 vQhapAxykh4XSJk05pz4w/Yd/J1wHyGMnTYH296ejYHEsoCrXzb7Sz5cKpcfUTLUkVID Lq342b0gJ8xxHi0oOekoOGqjMsrJeLPhYGuPYZFjEuCRTodzvhsGmEvdfSvvKKmNR9yQ veTpiaEPThcl4yh+VLia9LrfEvHypfLH8qrWGfNLECD/ehwzRGuIz4Vy9hAfw8rjXYPK 1XsOrh5NUZLn4b0JFSDU/JIumaqydclmJtAf9qbgfdGrgSsvMCWWAzj45dY6fNmFF86e +VkQ== 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=9IHWGdm0XYBO+tueU8aqbF1MmmQC3C8I+zJhP/zxaOU=; fh=QBHJhMFaY+lWbqr2wKEcOz8zsPIdmcjBYs3CtaAVoV4=; b=V7PuxWfR58INRHcGv9ZLmtoD4sf/EMNz3vLFnwp2JhMIbldSgRpYcUgO2ULwDfFe0H 4CfzQpHiQp669xwPTAj2jNyPyKC/5bvURnGMABJwmYbvu0q36HhLUJsSqegbYeLavyqy xrPsuFVAoZrlu2XKRvyUsFCG3z+4pM79M+/bJBmpL+KnBotDuyPuB00/WBwv/Yfefi0T 2zoId5VPTrCrE2Kuwx6q361/DADSCTvx7MFFd7Lq+vgVoMUwvQ7PjLwj1B9gV/5fots1 11/NDgtMNUTzO9zSLLWC4MFbVhLPamY/wUnvy2pC0sk4Zh6StWrsEAu/qwxdUeTBLWIq zAmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b17-20020a6567d1000000b005b869e53b1csi346122pgs.797.2023.10.30.19.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 19:55:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 88051805E01D; Mon, 30 Oct 2023 19:55:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234793AbjJaCzZ (ORCPT + 99 others); Mon, 30 Oct 2023 22:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231825AbjJaCzV (ORCPT ); Mon, 30 Oct 2023 22:55:21 -0400 Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 090A3DA; Mon, 30 Oct 2023 19:55:18 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R691e4;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_---0VvFgpUV_1698720914; Received: from localhost(mailfrom:guanjun@linux.alibaba.com fp:SMTPD_---0VvFgpUV_1698720914) by smtp.aliyun-inc.com; Tue, 31 Oct 2023 10:55:15 +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 v4 2/2] dmaengine: idxd: Fix incorrect descriptions for GRPCFG register Date: Tue, 31 Oct 2023 10:55:11 +0800 Message-Id: <20231031025511.1516342-3-guanjun@linux.alibaba.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231031025511.1516342-1-guanjun@linux.alibaba.com> References: <20231031025511.1516342-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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 30 Oct 2023 19:55:51 -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 Reviewed-by: Fenghua Yu --- drivers/dma/idxd/registers.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/dma/idxd/registers.h b/drivers/dma/idxd/registers.h index 7b54a3939ea1..315c004f58e4 100644 --- a/drivers/dma/idxd/registers.h +++ b/drivers/dma/idxd/registers.h @@ -440,12 +440,14 @@ 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 allows us to move + * to the register block that contains the three sub-registers. + * Each register block is 64bits. And the ofs gives us the offset + * within the GRPWQCFG register to access. */ #define GRPWQCFG_OFFSET(idxd_dev, n, ofs) ((idxd_dev)->grpcfg_offset +\ (n) * GRPCFG_SIZE + sizeof(u64) * (ofs)) -- 2.39.3