Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1494944rwb; Thu, 10 Nov 2022 17:33:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf5aXxQ2tyxVhFWIHlXJBaQyYOOyGoYqkv2uy/+USVsKDo1B8OPyQ8SOoG9ceyKzfhvfH1yF X-Received: by 2002:a17:906:28da:b0:78d:95d8:f8db with SMTP id p26-20020a17090628da00b0078d95d8f8dbmr143721ejd.592.1668130426803; Thu, 10 Nov 2022 17:33:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668130426; cv=none; d=google.com; s=arc-20160816; b=Dv5TDfRD3hBci5W0sdgsaj/poQPFTAvPf0oBImCSgd4MofIMLLhfC/GqBlj/QdonJB KpHeIP/gDh/IA23OFGg6bDEld6qEJV1nkzfvxgzy4iTxK0Z0HpVRF4FHy56ca8r6xTSw 6XE04V86eaO+ifumJ+Jq2SJ8gDM8r2M+2SlT8/lUTmDOZ6JI+vK1JXHsgsBzsVcavusL Y/1Qkt29QBahpduLp5p2V7rPKHA6LWT1e415x/r7MVGVzkHFdlo5yk3U6JfqfLxCqkHT aYh80KgqZRubwON626YY+cJaCfoEYkwKBlt2ppXXKXrsj3zg1yYdx5lW3NOpugabGHn0 D/oA== 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 Return-Path: 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.33.24; Thu, 10 Nov 2022 17:33:46 -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 + 93 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 ); 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 To: "Vinod Koul" , "Dave Jiang" Cc: "linux-kernel" , dmaengine@vger.kernel.org, Fenghua Yu , Nirav N Shah 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Fenghua Yu --- 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