Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp267851imw; Fri, 15 Jul 2022 02:51:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uQY6TVbnndKDd2e6e2ldjvlvYPGXT9pJ+ZUKK/AZpHLAn1tP8PkpAX5hNcHGmwobuiC9AL X-Received: by 2002:a63:8542:0:b0:415:3194:cc76 with SMTP id u63-20020a638542000000b004153194cc76mr11535786pgd.431.1657878666419; Fri, 15 Jul 2022 02:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657878666; cv=none; d=google.com; s=arc-20160816; b=aGimYJI5DxjWKTF/SDYGQf2gqe+FA2KHmkJMPS8rz2vRMht0Xbr8R27n5VtMChl3P9 Zvz3m//67dwAunKc5Ex1TeIpo1M701LBmfVjF58b+OL3JpRGIui6jpBfguIWkN9efJsy nLaOplCNXqYtg0JT/l8e5ye2PsfaLoUOCjyjVVBVA1p3ltlasxnYERFKP9pEjZMc3/oF DzaAY5NAwQOF4IZHzsmtYvFZxNZxfzY9fjcabYIoJEL39LtUaJdDHEsHDHAd0sUc7H1J J6lrTWCsIOxzq9fs8IOTLuuCivH0u7yctQdcBm2110MSoceLaQRY/AGfpr9ShJ36WX1x j9mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EZQGAGOk2zu+sYqsKw5vPpal+rn07Q1rm98HBuqU3XM=; b=kQgqQ43XSHTNCEgoLIYDI/lJX3aaSn+e5+G1Aigcjquhr6qaieXi96hRVANiQGNubO D+QtkxvqeBWPfpmruaevPF5/Bx2wdYWvAf/vzexs8AqhuPdtUlrh7cr54YNr/M7SJoKK /1riQYP6pYwLyq8sN+KqCJFIVXsO9xpwiN1ztZLo4vCLA1FkPLMv4KrTiouqX4wpbTYo pjR9ZhsSGGxJBOfIK4/go3MSdVvCaQOBBjwIFo1G20Lf4780rGNq+3LisXKOjPpk4AzU HJYBVr55TG2ghQk9SE6IZqGGFIVj56mmtZ7qGJuX84D6cJntEoybgRD7roHAMrQP2eAK OIRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=eUE93Xyb; 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=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a635c4c000000b00415d679d50asi4652041pgm.434.2022.07.15.02.50.49; Fri, 15 Jul 2022 02:51:06 -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=@ibm.com header.s=pp1 header.b=eUE93Xyb; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232785AbiGOJcS (ORCPT + 99 others); Fri, 15 Jul 2022 05:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229782AbiGOJcR (ORCPT ); Fri, 15 Jul 2022 05:32:17 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0A771147B; Fri, 15 Jul 2022 02:32:16 -0700 (PDT) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26F9SS4K013095; Fri, 15 Jul 2022 09:32:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=EZQGAGOk2zu+sYqsKw5vPpal+rn07Q1rm98HBuqU3XM=; b=eUE93XybX6JekCymAT1tXIfpGNx7xcgHAugFBMXhl5KMXmHzgAIgE2DBOXJ5ZJ5wKtVQ tUEfmAUlZ4jJVNhCDe7iT4QLroIayz8qOOuzMeQSsulJnZtHMdcGUBWDHrR/Qo9ddLfI v5fkWCe6L2crfBDsH2yrUxxh+xScOCxKpLgjGSwNhE8Xe/c8TuEr4wn+mRfgHtOjXz95 AbmJNfwITuwiEcC/hOVafGDYZZWhUh35yJyH5Tn3BBX+RFhOuU9KlmNrZvtMuhRngyb0 KpjCvV9TP+8nKrab11o/j/T+kC2GTEtF1/IyEXq40KxIQqOGy39qBkDuFnNH5z0kEWBV 8w== Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3hb5mq81g9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Jul 2022 09:32:13 +0000 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 26F9MBDn019258; Fri, 15 Jul 2022 09:32:11 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma04fra.de.ibm.com with ESMTP id 3h99s7b0s8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Jul 2022 09:32:11 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 26F9UX3A24248750 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Jul 2022 09:30:33 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A02DD5204F; Fri, 15 Jul 2022 09:32:08 +0000 (GMT) Received: from osiris (unknown [9.145.167.129]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 33FFB5204E; Fri, 15 Jul 2022 09:32:08 +0000 (GMT) Date: Fri, 15 Jul 2022 11:32:06 +0200 From: Heiko Carstens To: Hendrik Brueckner Cc: Steffen Eiden , Alexander Gordeev , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Vasily Gorbik , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, nrb@linux.ibm.com Subject: Re: [PATCH v2 1/3] s390/cpufeature: rework to allow more than only hwcap bits Message-ID: References: <20220713125644.16121-1-seiden@linux.ibm.com> <20220713125644.16121-2-seiden@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-GUID: uxpusP8BxJnU9AAzIWUty2EOtDTXQsTT X-Proofpoint-ORIG-GUID: uxpusP8BxJnU9AAzIWUty2EOtDTXQsTT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-15_03,2022-07-14_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxlogscore=719 mlxscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 malwarescore=0 spamscore=0 bulkscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207150039 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 On Fri, Jul 15, 2022 at 09:59:49AM +0200, Hendrik Brueckner wrote: > Regarding facility bits for cpu features: Initially, I used > MSA hwcap to cover all ciphers among all hw generations. With facility bit > checks, it makes more sense to fine-tune and load based on respective > MSA level or CPACF functions that is required for ciphers/hashes. ... > > -module_cpu_feature_match(MSA, init); > > +module_cpu_feature_match(S390_CPU_FEATURE_MSA, init); > > module_exit(fini); > > which becomes automatically loaded if (any) MSA is available and then > performs this check: > > cpacf_query_func(CPACF_KIMD, CPACF_KIMD_SHA_512 > > which in the worst case would fail. > > This might be a very useful follow-up patch to remove those mod init checks > into the cpu feature. Yes, that makes a lot of sense. Thanks for suggesting this!