Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2136357iof; Tue, 7 Jun 2022 20:58:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1N5zYTWXRgXrOVgKeQzGQpOLrfNsAP4blnuHXMF8/fLGDgdSN4YuYdCCV+8ZOKcm1GBFZ X-Received: by 2002:a17:903:1249:b0:15e:8b15:b7d2 with SMTP id u9-20020a170903124900b0015e8b15b7d2mr33941630plh.150.1654660708963; Tue, 07 Jun 2022 20:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654660708; cv=none; d=google.com; s=arc-20160816; b=gskkBHnlfn5XMEkypLZWDBr5sALfBnV/mad1uzVp3JY+vqgAvo+qBGPhccCdRqsgr/ aGdQyCqaFqOKgUCRIAnALCHXjQY9sjQaDvMtnhd3O1nhdFjpPfJX6OzrPXjRCaBbP7xY b1L4BpL0v4fc9fiZo28YGBzrOQ0BDYJiiqGBAvNk4VPfdb0A9cwv+VprDAjuIgx+ZUp3 /mclZ3kcF/Hnz4vZ/BBboe8w7lTgTRXG79cKg20zkXqa2vuDQiXhHqyLSQ9u/fhjbMuB 3VZJOiELMGxtv5FKg4axToh4oO1Qi3L8NuiQI2cx4DgA1U6BObdTqQDWftayLFV90TA+ WUpQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+R69z7AtEN+Q6pRvSeQxOUleVU39Cx09eDqIRJ6AsD8=; b=HwykTjOq4OCMPjU6TZ3gFMv1g7/9s2MJO0DEhtX9u2g0WOBuDUfzrKGFKVR6ZCPNu9 gUSMa78HOO7gCisHvC4k3AehmsszwIL+j+SjXBaIbwlzi7o/gSAwnZ4+gRp+B/XJ+nbf 0O3lZ69UhUBjKbU2YlXBwZn7VInuCx3+0IzhV2EQSezVzUZahiEnchm108x4jnuR5mUn W3Md569NZurCJRd1pFnGHLskQ299yfy8tVdj3hNiV2/1mJ4SdItTUqSdij2qCbTYr/GB FIyucuNasfeYFy3xGLLZTEiQFzMPPet4XvFTlW10xuR8Y+qhIyYHOgMgbJg/l7Jh0tUU aY6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j9p03+Tx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 17-20020a630411000000b003c64eaa98cbsi28117112pge.58.2022.06.07.20.58.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:58:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j9p03+Tx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 39F5A69CCB; Tue, 7 Jun 2022 20:21:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349263AbiFGWcJ (ORCPT + 99 others); Tue, 7 Jun 2022 18:32:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380616AbiFGVQf (ORCPT ); Tue, 7 Jun 2022 17:16:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 274A321E320; Tue, 7 Jun 2022 11:55:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B63CDB8220B; Tue, 7 Jun 2022 18:55:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20042C385A2; Tue, 7 Jun 2022 18:55:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628135; bh=etlSzNB3grrboXbbp7K/HPtPiQ3/vS9tQOuqaVtCEwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j9p03+Txtx5dYwz4YRWmVLTumSRQPf8r16ZTj4WkYIJWC0Zb9FwsgbOEJcX8A1+8C LJo3oSxdapE0PM79lPtTc8azCPlPNd0nNpqCb2Aw0imkneib6yrotRTkU0tr0j26Fq YSMMMm2qAx5znGYCXeitvI7USMXcQjY8PrqBeFuA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marco Chiappero , Giovanni Cabiddu , Herbert Xu , Sasha Levin Subject: [PATCH 5.18 219/879] crypto: qat - fix off-by-one error in PFVF debug print Date: Tue, 7 Jun 2022 18:55:37 +0200 Message-Id: <20220607165009.211537519@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Marco Chiappero [ Upstream commit dd3d081b7ea6754913222ed0313fcf644edcc7e6 ] PFVF Block Message requests for CRC use 0-based values to indicate amounts, which have to be remapped to 1-based values on the receiving side. This patch fixes one debug print which was however using the wire value. Signed-off-by: Marco Chiappero Reviewed-by: Giovanni Cabiddu Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c b/drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c index 588352de1ef0..d17318d3f63a 100644 --- a/drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c +++ b/drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c @@ -154,7 +154,7 @@ static struct pfvf_message handle_blkmsg_req(struct adf_accel_vf_info *vf_info, if (FIELD_GET(ADF_VF2PF_BLOCK_CRC_REQ_MASK, req.data)) { dev_dbg(&GET_DEV(vf_info->accel_dev), "BlockMsg of type %d for CRC over %d bytes received from VF%d\n", - blk_type, blk_byte, vf_info->vf_nr); + blk_type, blk_byte + 1, vf_info->vf_nr); if (!adf_pf2vf_blkmsg_get_data(vf_info, blk_type, blk_byte, byte_max, &resp_data, -- 2.35.1