Message ID | 20221111012715.2031481-1-fenghua.yu@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp476955wru; Thu, 10 Nov 2022 17:32:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4mVr7eBqMKQ+8Z7jqjecazqaau6d1mwiOQB+BVR+IjvjxHDF/psKO21oIquh+EYvD9f79C X-Received: by 2002:a17:907:5014:b0:7ab:2559:8bc4 with SMTP id fw20-20020a170907501400b007ab25598bc4mr131723ejc.682.1668130354428; Thu, 10 Nov 2022 17:32:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668130354; cv=none; d=google.com; s=arc-20160816; b=CMVLAximx0mDut7NrrmdfsjALwky/z1/s0s86+vaspOpzE3TlTtI4wWI1x1+y5hXMB WMLjywHwO707V/OY8N+qP1rF6XHJHWtlaz/9cn7MQEkdcyV8BqFNP1SfnD3nt5mZaQvU V7Ms27/J2gaiPiksNMD/6YfuzPFcwyVPNWB9i2FI3uEty9aV87g5F0v5nj02RhHUFjJW ZByp9HC16ycBkTnZLGO7B1iw+V1gwaL5lMC4vR7UabtUhNDyr7DedxcoKztWVp26/Na4 +1qCUWos1W+07oQOK8n76VDZDNlpqsXusPGsWYWuOPCOFV/3UJIc8tlD7793yvOIq7t+ GTiw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=DhV8sy8rQiX8vO5r/QbvlhAHsF+F7+sJP+m2E2UN008=; b=hD4ULEb7o5cT4oh2Q+O86XmFFVYopSQ43DcF/hlNl9Uy0EgPf3X151w/jF4D4se7nk NRKBV+6HoU43TdETI4WzAl4lFWRsNbbaHhVelUnS1+uBi8Xpl1IfcidBQZ4KTEKCOywc pouzkageY8XVRe+8i0GiTNQaFvimC5jg5CIBZUxtC0p9boNhvSP/S6/+B5G1CJmmZhFz zQQ53cRnvZ3VqTOsRLj3Z8KMNb+8HnBKH19dd9vmSDO4JgqHl0QDFDTCweabCPNNsIV2 EcfKUOiTBD/DJEs5pkghoK3nwk2ChnjuEIF/m5xDSS/G0B+L/q38MmP8iCj0tKEM7r1m cuhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MW0LRX09; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t4-20020a056402240400b00443088b40b7si1195018eda.123.2022.11.10.17.32.11; Thu, 10 Nov 2022 17:32:34 -0800 (PST) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=MW0LRX09; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232043AbiKKB1k (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Thu, 10 Nov 2022 20:27:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiKKB1i (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Nov 2022 20:27:38 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C6B445ED4; Thu, 10 Nov 2022 17:27:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668130057; x=1699666057; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/kM31rx5oqdFU+jyiipv1YnAwhJ5eiTKAf0Y5CGyT0U=; b=MW0LRX09lRMQeQElj4RK2GFqdxe8SFT8AH5BpK3fG+BUdQ4GRLdrx6z8 j1O6mJZFRRGjXUAmM8oYKMaRtVMNbvLyBFGMnprTE91GQ56vHaAEg3KC7 VROcx5ZTECa75QyhrAAnILQGCowSBF4i4KQO58LyLVPsTZsT2ZTMKiaLQ qWqDptSUYU6vaj9daAkGbLx/NDvCjgVIAJ9r2nBmqqfaw9skoIIuP2uCX 6b2mZ6Nm5VJn3zIiRIyVN2+/VVc6bOBCkE2WG26dCdgHlZgG7cy/FsOWE Yhex2jIev8cASMv7GvXlHAYvzVdwd5fzpJyb7DkE9s+Er/GP6WfkLxMLz Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="375750638" X-IronPort-AV: E=Sophos;i="5.96,155,1665471600"; d="scan'208";a="375750638" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2022 17:27:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="639839719" X-IronPort-AV: E=Sophos;i="5.96,155,1665471600"; d="scan'208";a="639839719" Received: from fyu1.sc.intel.com ([172.25.103.126]) by fmsmga007.fm.intel.com with ESMTP; 10 Nov 2022 17:27:36 -0800 From: Fenghua Yu <fenghua.yu@intel.com> To: "Vinod Koul" <vkoul@kernel.org>, "Dave Jiang" <dave.jiang@intel.com> Cc: "linux-kernel" <linux-kernel@vger.kernel.org>, dmaengine@vger.kernel.org, Fenghua Yu <fenghua.yu@intel.com>, Nirav N Shah <nirav.n.shah@intel.com> Subject: [PATCH] dmaengine: idxd: Fix crc_val field for completion record Date: Thu, 10 Nov 2022 17:27:15 -0800 Message-Id: <20221111012715.2031481-1-fenghua.yu@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749161454322282780?= X-GMAIL-MSGID: =?utf-8?q?1749161454322282780?= |
Series |
dmaengine: idxd: Fix crc_val field for completion record
|
|
Commit Message
Fenghua Yu
Nov. 11, 2022, 1:27 a.m. UTC
The crc_val in the completion record should be 64 bits and not 32 bits.
Fixes: 4ac823e9cd85 ("dmaengine: idxd: fix delta_rec and crc size field for completion record")
Reported-by: Nirav N Shah <nirav.n.shah@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
---
include/uapi/linux/idxd.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 11/10/2022 5:27 PM, Fenghua Yu wrote: > The crc_val in the completion record should be 64 bits and not 32 bits. > > Fixes: 4ac823e9cd85 ("dmaengine: idxd: fix delta_rec and crc size field for completion record") > > Reported-by: Nirav N Shah <nirav.n.shah@intel.com> > Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> > --- > include/uapi/linux/idxd.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/uapi/linux/idxd.h b/include/uapi/linux/idxd.h > index 61ee43823622..09947ae61663 100644 > --- a/include/uapi/linux/idxd.h > +++ b/include/uapi/linux/idxd.h > @@ -329,7 +329,7 @@ struct dsa_completion_record { > }; > > uint32_t delta_rec_size; > - uint32_t crc_val; > + uint64_t crc_val; > > /* DIF check & strip */ > struct {
On 10-11-22, 17:27, Fenghua Yu wrote: > The crc_val in the completion record should be 64 bits and not 32 bits. > > Fixes: 4ac823e9cd85 ("dmaengine: idxd: fix delta_rec and crc size field for completion record") > Please no empty line after the fixes tag! Applied after removing the empty line, thanks > Reported-by: Nirav N Shah <nirav.n.shah@intel.com> > Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> > --- > include/uapi/linux/idxd.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/uapi/linux/idxd.h b/include/uapi/linux/idxd.h > index 61ee43823622..09947ae61663 100644 > --- a/include/uapi/linux/idxd.h > +++ b/include/uapi/linux/idxd.h > @@ -329,7 +329,7 @@ struct dsa_completion_record { > }; > > uint32_t delta_rec_size; > - uint32_t crc_val; > + uint64_t crc_val; > > /* DIF check & strip */ > struct { > -- > 2.32.0
diff --git a/include/uapi/linux/idxd.h b/include/uapi/linux/idxd.h index 61ee43823622..09947ae61663 100644 --- a/include/uapi/linux/idxd.h +++ b/include/uapi/linux/idxd.h @@ -329,7 +329,7 @@ struct dsa_completion_record { }; uint32_t delta_rec_size; - uint32_t crc_val; + uint64_t crc_val; /* DIF check & strip */ struct {