Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2918897rwl; Thu, 13 Apr 2023 12:50:05 -0700 (PDT) X-Google-Smtp-Source: AKy350apHXEhB25FmVz7eyd7QeDprPgjaWnz1+tW+SOnN3YwD+9oyzhbrE/zBHt4plqa+AGc4/x6 X-Received: by 2002:a05:6a21:328e:b0:ec:ff0e:8556 with SMTP id yt14-20020a056a21328e00b000ecff0e8556mr1029210pzb.1.1681415405753; Thu, 13 Apr 2023 12:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681415405; cv=none; d=google.com; s=arc-20160816; b=zL6n/T8nYfLRjjaMhO4OgynrwsA2pOAqmOXdnu7ktoNaxLnieroOOm5ym8WXszSKnP 8RM4G6AeVxasHvqPfFgYfqkZlcZj14cja0WmS+1elzRYblAT/KlsbekD+3GpKL+14ZLm AGJVDsrBzv5rhraB7GQwjgEoIxPb6E862mOLACxDT1pG+ocQ/lf7nZQ5IGRD/vOGc0D2 N2ezsamfWtx0jhFAKhH4TLF5LDAFdg9XyEUtc1ZhpEJLKe+OY7vCyvscYxUtHiV8pr6P furTmAu1SiYQVjgc8g+ojNDCN/9QqhWznfhYQ1ZeKcozprau9RizEgcEhI5rXLp1EUlc 5Hjw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QqJtw0YR6Qs9LHnWPAtvotjvbtopuiPZ5ZwiXoGzSKw=; b=guJKokV+u3yd3XdzdPBLvrLIr4lRQE7JSYSEBkCAg++3eLI0jeoupztlQmLbkImjek u8pbobrXUfJtJYsvVeHgGJ9ZDvzVD4L/dggpil8rgl4WtetJymPXLCT3zeJfFUrLezOG 8gDXscFbxfBvPVh3taet2GboXuBQfRWIlg7iFpVJfGS3odAldQN69GiMOVRd1hhbwFoS VSty5ojgi626XmT682DzkymvysHEAcsWq5P/K5e/qhToMxQLIVqa2maReO/Xkp55nnqm qCuSPTE73jyVygAy0rbrFK4+mwrNu4Q1UWr7e0Yh4VVfQBvhZJXSo9vGD01+UOiHgz1Y juDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ikC8JFDG; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a630d06000000b0051ae6c4084dsi2650029pgl.512.2023.04.13.12.49.50; Thu, 13 Apr 2023 12:50:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@ibm.com header.s=pp1 header.b=ikC8JFDG; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbjDMTrE (ORCPT + 99 others); Thu, 13 Apr 2023 15:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjDMTrB (ORCPT ); Thu, 13 Apr 2023 15:47:01 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9EEC5FFC; Thu, 13 Apr 2023 12:46:58 -0700 (PDT) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33DJepTj032206; Thu, 13 Apr 2023 19:46:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=QqJtw0YR6Qs9LHnWPAtvotjvbtopuiPZ5ZwiXoGzSKw=; b=ikC8JFDGIf80WkAOe/4pLHVZWYcdLrJX+Ov/cZJRrtYI0K9q15iK9tHr4/TZY6xpLPqk OSruMoz0Y0HB4sMtH2Vn90StNj2QbK7r431bxVI6Px2yBmLAOjW5Tdvt0/O7bCbB6Ukf 95RLS960vPnGdl9yWmAWVLdHq2irTtVUaEK+zhOpB3i98/ToaRtgqOfbReiMlDKbDhzF 9HlqJT69AI4xdXimzPmFeY3E6sEx5KDVsxpzHxzCpbVhnxhVK4tR9QtkVHLmDIdxhVGm 9Qz1VdyMDoxFl6UZ6POE1RsAzfbdnfEqv/HXF4Tp8DcM0gTvqfiHAWUVEjS2EeyoezAy ww== Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pxr3sg6h2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Apr 2023 19:46:45 +0000 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 33DHHAdb020727; Thu, 13 Apr 2023 19:46:43 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([9.208.129.116]) by ppma04wdc.us.ibm.com (PPS) with ESMTPS id 3pu0jhd4r7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Apr 2023 19:46:43 +0000 Received: from smtpav06.wdc07v.mail.ibm.com (smtpav06.wdc07v.mail.ibm.com [10.39.53.233]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 33DJkgGi13566660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Apr 2023 19:46:42 GMT Received: from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 393485804E; Thu, 13 Apr 2023 19:46:42 +0000 (GMT) Received: from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A0B135803F; Thu, 13 Apr 2023 19:46:41 +0000 (GMT) Received: from ltcden12-lp3.aus.stglabs.ibm.com (unknown [9.40.195.53]) by smtpav06.wdc07v.mail.ibm.com (Postfix) with ESMTP; Thu, 13 Apr 2023 19:46:41 +0000 (GMT) From: Danny Tsen To: linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, leitao@debian.org, nayna@linux.ibm.com, appro@cryptogams.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, ltcgcw@linux.vnet.ibm.com, dtsen@us.ibm.com, Danny Tsen Subject: [PATCH v2 1/2] Remove POWER10_CPU dependency. Date: Thu, 13 Apr 2023 15:46:24 -0400 Message-Id: <20230413194625.10631-2-dtsen@linux.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230413194625.10631-1-dtsen@linux.ibm.com> References: <20230413194625.10631-1-dtsen@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 7VLX_QjmA4Kcm7QEvWV-VO_USEmA1q70 X-Proofpoint-GUID: 7VLX_QjmA4Kcm7QEvWV-VO_USEmA1q70 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-13_14,2023-04-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=783 priorityscore=1501 spamscore=0 phishscore=0 suspectscore=0 malwarescore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304130174 X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TVD_SUBJ_WIPE_DEBT autolearn=no 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-crypto@vger.kernel.org Remove Power10 dependency in Kconfig and detect Power10 feature at runtime. Signed-off-by: Danny Tsen --- arch/powerpc/crypto/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/crypto/Kconfig b/arch/powerpc/crypto/Kconfig index 1f8f02b494e1..7113f9355165 100644 --- a/arch/powerpc/crypto/Kconfig +++ b/arch/powerpc/crypto/Kconfig @@ -96,7 +96,7 @@ config CRYPTO_AES_PPC_SPE config CRYPTO_AES_GCM_P10 tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)" - depends on PPC64 && POWER10_CPU && CPU_LITTLE_ENDIAN + depends on PPC64 && CPU_LITTLE_ENDIAN select CRYPTO_LIB_AES select CRYPTO_ALGAPI select CRYPTO_AEAD -- 2.31.1