From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f46.google.com (mail-pg0-f46.google.com [74.125.83.46]) by dpdk.org (Postfix) with ESMTP id 538507D86 for ; Mon, 21 Aug 2017 11:34:26 +0200 (CEST) Received: by mail-pg0-f46.google.com with SMTP id m133so14703440pga.5 for ; Mon, 21 Aug 2017 02:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9lY6Sxc/TKtWaQIfp6ahnuVc+JN3LVGv4iFL9nP6N90=; b=TSlDAg1KhpybhDqJlUWuDUS/ulXO0RjG0GcPpLf8vkZw9EYrPhC1P2+Yk2XcgtRcQl HZlC4vc5htCmgCFvX8qJqMzqHWXP6htKhwoSIi8xuo2L6j26hrSTkANwyXn0ZwKyq0id 56D6jXaIiHdAOx3lZdvRcRCGUyxZK/GUcQGvLFHjwsE6JdNhhVgyQcauxR39ibZNDqW2 N5iNR69zXwfItXCd0MSOICTz17pktuwYbsDyMZ2nzz2RXfmMguLHUljav1LM7IPEYhIb wQTIo2Bc1QcQ5aO7VMaWiYloxX4D7dzd6oa0umxJeVJapLBGwhkeV9njLMGTWCYLTTLO IAbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9lY6Sxc/TKtWaQIfp6ahnuVc+JN3LVGv4iFL9nP6N90=; b=BqKM26XekWdNmRUivg5fkTqSWqE8DDC2sbMT2zcU9aqHBVURF0qMkHAtsPDKEm34KH hqPieGZ6kAz9KewdEVAklxemSebtBSUhSgE6uOjrRMnkFn8zIVKCfKjalSgUzhlf43eN yAhhQgpOsgdcCjNCVjAY/8YDwcrNfkGlDDMuqN71bFUz8SnMNHY/SqGrKx/tv9BXAt46 BF9AEm8tcS3rU6szqK5kH4hDXG4Rgoimo68dhpWSLYAe1x5urYliG3Prul+GvVQkAM+S H5dC/cR0Gb7BITpN/OJX3tU1drjXoaMYk4jtuHMwtHVDIzCcRtLJpb7qOZMeePjIxVtT HYWQ== X-Gm-Message-State: AHYfb5g3scYaUGMRDwVEpH0QlzPycM7IqNdbldpZC8xmMfHEeGCC7PiY KQx7uc4GDBlT6RqA X-Received: by 10.98.192.209 with SMTP id g78mr4754899pfk.215.1503308065668; Mon, 21 Aug 2017 02:34:25 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.34.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:34:24 -0700 (PDT) From: Yuanhan Liu To: Arek Kusztal Cc: Fiona Trahe , dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:30:30 +0800 Message-Id: <1503307878-16728-16-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'crypto/qat: fix NULL authentication hang' has been queued to stable release 17.05.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 09:34:26 -0000 Hi, FYI, your patch has been queued to stable release 17.05.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 08/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From d45f07b03277f05c7fbf2b9960d5049dbe69d559 Mon Sep 17 00:00:00 2001 From: Arek Kusztal Date: Fri, 21 Apr 2017 09:11:30 +0100 Subject: [PATCH] crypto/qat: fix NULL authentication hang [ upstream commit 426dc9e3018dcdb0db9b2c58405d9ee5f28b0b00 ] To avoid a possible HW problem when dealing with NULL authentication case, the state sizes in the request descriptor are set. Fixes: db0e952a5c01 ("crypto/qat: add NULL capability") Signed-off-by: Arek Kusztal Acked-by: Fiona Trahe --- drivers/crypto/qat/qat_adf/qat_algs_build_desc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c b/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c index 154e1dd..10b25ff 100644 --- a/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c +++ b/drivers/crypto/qat/qat_adf/qat_algs_build_desc.c @@ -121,6 +121,9 @@ static int qat_hash_get_state1_size(enum icp_qat_hw_auth_algo qat_hash_alg) case ICP_QAT_HW_AUTH_ALGO_KASUMI_F9: return QAT_HW_ROUND_UP(ICP_QAT_HW_KASUMI_F9_STATE1_SZ, QAT_HW_DEFAULT_ALIGNMENT); + case ICP_QAT_HW_AUTH_ALGO_NULL: + return QAT_HW_ROUND_UP(ICP_QAT_HW_NULL_STATE1_SZ, + QAT_HW_DEFAULT_ALIGNMENT); case ICP_QAT_HW_AUTH_ALGO_DELIMITER: /* return maximum state1 size in this case */ return QAT_HW_ROUND_UP(ICP_QAT_HW_SHA512_STATE1_SZ, @@ -868,6 +871,9 @@ int qat_alg_aead_session_create_content_desc_auth(struct qat_session *cdesc, state2_size = ICP_QAT_HW_MD5_STATE2_SZ; break; case ICP_QAT_HW_AUTH_ALGO_NULL: + state1_size = qat_hash_get_state1_size( + ICP_QAT_HW_AUTH_ALGO_NULL); + state2_size = ICP_QAT_HW_NULL_STATE2_SZ; break; case ICP_QAT_HW_AUTH_ALGO_KASUMI_F9: state1_size = qat_hash_get_state1_size( -- 2.7.4