Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2261288iof; Wed, 8 Jun 2022 00:45:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaqh0cqUREJMMXwLkpJxTwSr7SsWWcZMDyKoPXs80mqF+6Op2z2tLt2fFTdSY3c4KrN/D+ X-Received: by 2002:a63:c5:0:b0:3fe:26a0:7abe with SMTP id 188-20020a6300c5000000b003fe26a07abemr2981516pga.152.1654674312999; Wed, 08 Jun 2022 00:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654674312; cv=none; d=google.com; s=arc-20160816; b=k+deKum/CKcO+hKDd4SLxPlvs+P3c44pcXx0N0Ced54LKjc004luJukRP9gnVsRxob KDcOXFGPAIUxtxTXHR4vG7Aostdtjnnk/NQLpH2XtKbY7LDAWEcFqpFLbDDPJKRmM5U9 Q7f/LaXf4/KWddUyCAwuPxZywpCoYoZxtjzl76M+Ztt8bDfFxWQbwjvjdK8HFOKN7MTD u83LzaGZ7AJAVv06EJ/mwBxp+Ivs5qApBSOnuRAp6pVKGJxfUj5YyImD1CO7+HlwLINT 7i7R+tahj6uZtAhkRYZo9C1wvaQS98J984/FoPZZmrLk44Xth/NZtjA44c5ZPPWs7tEJ G4dg== 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=GFZdNKODJL8iVJqGRLXLbjRRTSfknLF6ATK077mr4lE=; b=kKNHi8MH9qAnQXv4Thlx6DtowvETLn0h5zzG7UGznEDBr9np3jzvkVE1y8h9tlhFpe FxMK3ZRtjGs2x41CYhn5OSvsIevZGkSIsaB127t5Uh95KKZZc3LPVOT8ZIrl7wanklyG Oxq2eNn4xiaCQmI7YIoUNou6At16oQRmfHY68sup4ClvYR/9pvf26PnZMR0qwOdn0tWu 9lRcNOMKY2rB9dleF1thucsmAi9rqNni/34+itzDXK0pkkBigM9PRD0rMY6R0MaD0Ptr eCOZDnD0l6EdksxiPI/M7upSe/9F0EbDVtjnOD30C1dQru1CCGqxRgFs6ASKSiQyZ9qO EVcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mj2d7kKq; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a63d504000000b003fbfe86551fsi7141868pgg.301.2022.06.08.00.45.00; Wed, 08 Jun 2022 00:45:12 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=mj2d7kKq; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391558AbiFHAiX (ORCPT + 99 others); Tue, 7 Jun 2022 20:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383275AbiFGVxA (ORCPT ); Tue, 7 Jun 2022 17:53:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7676B192C6D; Tue, 7 Jun 2022 12:11:02 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 02CB6617D0; Tue, 7 Jun 2022 19:11:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 128CEC385A5; Tue, 7 Jun 2022 19:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629061; bh=CM5C21dDrdibEW+bcAZI1Uv43lEfqcd0JNHS1Y0rOKc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mj2d7kKqvumSf6iphU2/tXeXifIXFdw7b45V+6Rvsb54fKRvW5B1BPR7HmcwDhWdS ukwTp/U59fAhQpu1UObnLA/3p1CfSpRDa4dMTlCCNuyut7Zm9vsMuSY6JFJqfzdGQJ FZlKMGy7vlPAJdTa/GTU0WsZDwmZWHTq8+hXkjCI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Giovanni Cabiddu , Marco Chiappero , Herbert Xu , Sasha Levin Subject: [PATCH 5.18 556/879] crypto: qat - set COMPRESSION capability for DH895XCC Date: Tue, 7 Jun 2022 19:01:14 +0200 Message-Id: <20220607165019.003822906@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=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Giovanni Cabiddu [ Upstream commit 0eaa51543273fd0f4ba9bea83638f7033436e5eb ] The capability detection logic clears bits for the features that are disabled in a certain SKU. For example, if the bit associate to compression is not present in the LEGFUSE register, the correspondent bit is cleared in the capability mask. This change adds the compression capability to the mask as this was missing in the commit that enhanced the capability detection logic. Fixes: cfe4894eccdc ("crypto: qat - set COMPRESSION capability for QAT GEN2") Signed-off-by: Giovanni Cabiddu Signed-off-by: Marco Chiappero Reviewed-by: Marco Chiappero Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c b/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c index 8a526badf5bf..91095ad479dc 100644 --- a/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c +++ b/drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c @@ -61,7 +61,8 @@ static u32 get_accel_cap(struct adf_accel_dev *accel_dev) capabilities = ICP_ACCEL_CAPABILITIES_CRYPTO_SYMMETRIC | ICP_ACCEL_CAPABILITIES_CRYPTO_ASYMMETRIC | ICP_ACCEL_CAPABILITIES_AUTHENTICATION | - ICP_ACCEL_CAPABILITIES_CIPHER; + ICP_ACCEL_CAPABILITIES_CIPHER | + ICP_ACCEL_CAPABILITIES_COMPRESSION; /* Read accelerator capabilities mask */ pci_read_config_dword(pdev, ADF_DEVICE_LEGFUSE_OFFSET, &legfuses); -- 2.35.1