Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1287699pxj; Fri, 4 Jun 2021 10:24:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI8bzEE1E5fxNqADaB07qNGdlaezPg0LPzsUuQzbvbm1xrGlNzSj4aZfy4gWuWNHjiUWu/ X-Received: by 2002:a17:906:3888:: with SMTP id q8mr5165029ejd.15.1622827478171; Fri, 04 Jun 2021 10:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622827478; cv=none; d=google.com; s=arc-20160816; b=CtdRbhBGm+vD/hi0iGCL/TmpzjXh71vy7iYJaDpy9TfUR38bCAid8InkHHoFziz/Qu BYv8xi0YglnMUqpFApOHHSJDAe/GFEnq7CTcbJswPFMikcnVHVn9dXFF6bmj8HCS+CIp UohkKcY+gNRn1RSd/18MH0Uo69gKY/m/h0faYY/wkf9uEdzpOkJd6inPFV+AfCjeHXHj GarMEpiEv0zz5P/6yX20ZEgmZkslRh7Q6MUDKGrpvyGaMbUlI0lLlm+XKHwGyBbGwZ4l ++osc+zJ4l+CvLxaX+UKGSl49prx0gMyfFGoYbhQmdQnKBrjnURocU9U2Uu5JS16KhbS qNvQ== 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:date:cc:to:from:subject :message-id:dkim-signature; bh=0cE+9vTdeOWpXMMdEs0QoHgCpaz4oeeltpWGj3pS9oY=; b=woZehMPG9pG0jUln0xw8Wje5ijp6Uffvh1Q/RVoQDKMyUbEbGsChe6XunIkKS0ILfF s6pUQfbzUxQEsSd2Fu7Jgx2/asnDghvEmXpnzprUhA+590VvRav1pQnBOjoQ9Cjr8Q5A BNcaGl00QQ5aMO9384KInJum8AYlzaGxecpePFvsSOtl+s7jzei7cblzb//35jggGgC6 E+5Rs2gAKXb3FXWDJqpKcSwsI4mmBWbQK0UjlLds+ehgNBLLv0M541G2ic/X59BvjjvQ Yydf9dfv7Lnc1qfPjIhE2NYvvMrRz1PPktf7Kg/u7LSErktGw7itNpXGIxvKL1CbdU/Y K7cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qfBpg1G7; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si5737839ejh.472.2021.06.04.10.24.09; Fri, 04 Jun 2021 10:24:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qfBpg1G7; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S229850AbhFDRZm (ORCPT + 99 others); Fri, 4 Jun 2021 13:25:42 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53470 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229791AbhFDRZm (ORCPT ); Fri, 4 Jun 2021 13:25:42 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 154HHchW167368; Fri, 4 Jun 2021 13:23:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=0cE+9vTdeOWpXMMdEs0QoHgCpaz4oeeltpWGj3pS9oY=; b=qfBpg1G7a9DUcp23TFT6i1Ykfvq9WGn+09E7sUaEsXm7z8tlQ2FR1fln58um5MRuJGOy T7FQKL9phYqN4+PE3REsCwPRLuH8PomBwjI1YpSRobYxtOJkb4hQSn1QCTm03VMHuvdB 3E6jntIvSW0Zfg0jb6dHfBgm0dGR3DNI1YJsRsidFPrScXDVOuvtTilFnHuPwaXYIOlI 5PYC90GkaiKd7INChfaSGpDoJ6uz8/NwIYRpT6FhDGMVTtuLuJuwVu1Kp5kLuAT+Z484 KOOYPj3gbmfCTqc9KhEOZxf3cZ16UqKQng4y5chugtlD/mG7nCl35dkT0ixBLMiIHmGw gQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 38yrev83d0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Jun 2021 13:23:43 -0400 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 154HIIhc171798; Fri, 4 Jun 2021 13:23:43 -0400 Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0b-001b2d01.pphosted.com with ESMTP id 38yrev83ck-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Jun 2021 13:23:43 -0400 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 154HCoiG019774; Fri, 4 Jun 2021 17:23:42 GMT Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by ppma01dal.us.ibm.com with ESMTP id 38ud8ae672-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Jun 2021 17:23:41 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 154HNfQl24510920 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 4 Jun 2021 17:23:41 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 02FCE112062; Fri, 4 Jun 2021 17:23:41 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 63D71112066; Fri, 4 Jun 2021 17:23:39 +0000 (GMT) Received: from sig-9-77-136-17.ibm.com (unknown [9.77.136.17]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 4 Jun 2021 17:23:39 +0000 (GMT) Message-ID: <86b608e12f35d66a88e29e3bbc9e0cf37979bc36.camel@linux.ibm.com> Subject: Re: [PATCH v4 16/16] crypto/nx: Add sysfs interface to export NX capabilities From: Haren Myneni To: Michael Ellerman , Nicholas Piggin , herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: haren@us.ibm.com, hbabu@us.ibm.com Date: Fri, 04 Jun 2021 10:23:37 -0700 In-Reply-To: <87pmx1g83i.fsf@mpe.ellerman.id.au> References: <8d219c0816133a8643d650709066cf04c9c77322.camel@linux.ibm.com> <35bca44c5a8af7bdffbe03b22fd82713bced8d0e.camel@linux.ibm.com> <1622696109.949hlg4tnq.astroid@bobo.none> <340144138c53ae83588edcf0b4a5ae1880a01cd0.camel@linux.ibm.com> <87pmx1g83i.fsf@mpe.ellerman.id.au> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 731EFbOIJylECNK2ZMXq3ZvjcyYoqwyM X-Proofpoint-ORIG-GUID: bhekDnZbdDsxljwOJrX1dxc1stOhQlNh X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-06-04_11:2021-06-04,2021-06-04 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 impostorscore=0 suspectscore=0 spamscore=0 mlxlogscore=999 priorityscore=1501 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106040123 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, 2021-06-04 at 21:52 +1000, Michael Ellerman wrote: > Haren Myneni writes: > > On Thu, 2021-06-03 at 14:57 +1000, Nicholas Piggin wrote: > > > Excerpts from Haren Myneni's message of May 21, 2021 7:42 pm: > > > > Changes to export the following NXGZIP capabilities through > > > > sysfs: > > > > > > > > /sys/devices/vio/ibm,compression-v1/NxGzCaps: > > > > > > Where's the horrible camel case name coming from? PowerVM? > > > > Yes, pHyp provides the capabalities string. > > > > Capability Description Descriptor Value Descriptor ascii Value > > Overall NX Capabilities 0x4E78204361707320 “Nx Caps ” > > NX GZIP Capabilities 0x4E78477A43617073 “NxGzCaps” > > That doesn't mean we have to use that name in sysfs though. In fact > we > couldn't use the "Nx Caps " name, because it contains spaces. > > And we don't have to squeeze our name into 8 bytes, so it can be less > ugly. > > Like "nx_gzip_capabilities"? Thanks for your comments. 'NX Caps " provides the all available features in the hypervisor (only NX GZIP caps is supported right now) and we export information for the specific feature via sysfs. I will change it to "nx_gzip_caps" Thanks Haren > > cheers