Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3112288pxj; Mon, 10 May 2021 19:14:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCHKT5qSjln91MCmElPLhaFEu3caKWpAtCXFKJF/MTPg83LP0YfGplNA5I4KNY/zOhbN5E X-Received: by 2002:a05:6638:2603:: with SMTP id m3mr24254917jat.95.1620699269823; Mon, 10 May 2021 19:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620699269; cv=none; d=google.com; s=arc-20160816; b=CGasn6l1fMBulWNSobXbAfyrtw0YZyRK6uOpMXzKGDIB5qoRC8ueYVEv/Fsxv2dWBt 9ProxfrzgjylrDfKBNwtK723X1w6h9jWtg7aFqT881fZatZA8uN1c/Oz8i0SJTW/uD8g RBM2voSuqxTJijTtvLickzvPsBsYN/imMuID/yDYYs/QTzqhP+Ok0pIxuVS2HZPJWpbJ UmqRBvPdpAt+7OQiQQj7hMzK1Bp179NxkQbtRakIDzewlbn/CyebnwYfDMiwZ4NY5YQN cMXiLHkomLmF9MTefydfjVEheQ68JHi7KvTtHTWkF2OIqiKZesGAdPYkro9NaArHdlMJ Ldvw== 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=8bvtt7dycOgwp1HhwDEIBsdwwSSjjp+gkqijsCGqi2s=; b=CWiUxb6KeqzcxwOtZPMoGovJDvKXfGf9ePKL7CtxF+D3GxUaUGHyFy/XHmTQzxwEWL FV7EDPqNXLXtPut1M4A/vMMrJF1ZWjQHWBA6Ws5X/xsJ+fCQRbv2d0x5qTSuI/b6unHc bBXrKJcDQH4mV/eowSkCGZNof4p7WWOBeNGrFkpyMWHEeGlaZX63gJ3nlCFSD4kQAnuc S6h6/EVC/KwMmX675xG1sPD13V0bSMVJViVvuSX8YUednWYVZaLoORQcBHn/KAMTEZCe mHx8L73EXvsW0xiAR4JxZKPbMRDHAbWSIe568V6kZ7n28lszFsjjp6sJxLGmXKqR9rr5 GLCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=TsKGaGSV; 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 h16si19626487jaj.74.2021.05.10.19.14.16; Mon, 10 May 2021 19:14:29 -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=TsKGaGSV; 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 S231131AbhEKCNb (ORCPT + 99 others); Mon, 10 May 2021 22:13:31 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:19570 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231162AbhEKCN1 (ORCPT ); Mon, 10 May 2021 22:13:27 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 14B23AxH019648; Mon, 10 May 2021 22:12:16 -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=8bvtt7dycOgwp1HhwDEIBsdwwSSjjp+gkqijsCGqi2s=; b=TsKGaGSV+YSbCEiVyIS7IpRWhjWM004uLY+s1qiMjxbL7AKg9HM8E+j1ym5uKETcPBiK oKyPDNbE76+Nyw+og+DEDLkb6U7/g9ydoYbOiSqI9NJf+Y3l+4RT0ULAgDCyV1aX0/kx EGr/ysJvZa588K3kQoxW91nj05Xk6kB/hD80rhPOmVZ2ffX3fd42Q3Y+cS9pOGK8wY8j tXiICAYslWVSM4/CtYX1+L2iQGJvXBxFTo63lkjGIYMxE5dXpTPpOAt2B4seTYDaDdcV o+O2BqwBz5ZmcOjN4ip5KN6f/7wVTKfTjy87GDdEl+sY308dx1YF4gq87VKRRORZfPTr 7A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 38ffdw1unr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 May 2021 22:12:16 -0400 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 14B23hCH023800; Mon, 10 May 2021 22:12:16 -0400 Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0a-001b2d01.pphosted.com with ESMTP id 38ffdw1unb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 May 2021 22:12:16 -0400 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 14B25bMG031153; Tue, 11 May 2021 02:12:15 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma01wdc.us.ibm.com with ESMTP id 38dj98jm5j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 May 2021 02:12:15 +0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 14B2CE2135062170 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 11 May 2021 02:12:14 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A9FDFB2066; Tue, 11 May 2021 02:12:14 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 71033B2065; Tue, 11 May 2021 02:12:13 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.194.217]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 11 May 2021 02:12:13 +0000 (GMT) Message-ID: <567f8eb33e3d2d2d7be7a922aa22566534f9a28a.camel@linux.ibm.com> Subject: Re: [V3 PATCH 07/16] powerpc/vas: Define QoS credit flag to allocate window From: Haren Myneni To: Nicholas Piggin , herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au Cc: haren@us.ibm.com, hbabu@us.ibm.com Date: Mon, 10 May 2021 19:12:11 -0700 In-Reply-To: <1620625758.4u2ddwmbaj.astroid@bobo.none> References: <90328d5aa92016434f3061ec7cadc812ea2c5dbc.camel@linux.ibm.com> <1620625758.4u2ddwmbaj.astroid@bobo.none> 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: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: bFgfPRlfyC_NxHIDcxrl3GvFjXUAZFOT X-Proofpoint-GUID: M1WMR9-D-LZ6TpUr7E8Q9-KthzLFqWRV X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-05-10_14:2021-05-10,2021-05-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 priorityscore=1501 phishscore=0 spamscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105110013 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, 2021-05-10 at 15:54 +1000, Nicholas Piggin wrote: > Excerpts from Haren Myneni's message of April 18, 2021 7:06 am: > > pHyp introduces two different type of credits: Default and Quality > > of service (QoS). > > > > The total number of default credits available on each LPAR depends > > on CPU resources configured. But these credits can be shared or > > over-committed across LPARs in shared mode which can result in > > paste command failure (RMA_busy). To avoid NX HW contention, phyp > > introduces QoS credit type which makes sure guaranteed access to NX > > resources. The system admins can assign QoS credits for each LPAR > > via HMC. > > > > Default credit type is used to allocate a VAS window by default as > > on powerVM implementation. But the process can pass > > VAS_WIN_QOS_CREDITS > > There's some interchanging of pHyp and PowerVM in the series. > > PowerVM is probably the better term to use, with uppercase P. > Unless you mean PAPR or pseries etc. > > I think you can say the PAPR VAS spec has two different types of > credits, rather than say a specific hypervisor is introducing them. DEF and QoS credits types are introduced by the hypervisor, not VAS PAPR. We did not have these types on powerNV. > > > flag with VAS_TX_WIN_OPEN ioctl to open QoS type window. > > > > Signed-off-by: Haren Myneni > > --- > > arch/powerpc/include/uapi/asm/vas-api.h | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/arch/powerpc/include/uapi/asm/vas-api.h > > b/arch/powerpc/include/uapi/asm/vas-api.h > > index ebd4b2424785..eb7c8694174f 100644 > > --- a/arch/powerpc/include/uapi/asm/vas-api.h > > +++ b/arch/powerpc/include/uapi/asm/vas-api.h > > @@ -13,11 +13,15 @@ > > #define VAS_MAGIC 'v' > > #define VAS_TX_WIN_OPEN _IOW(VAS_MAGIC, 0x20, struct > > vas_tx_win_open_attr) > > > > +/* Flags to VAS TX open window ioctl */ > > +/* To allocate a window with QoS credit, otherwise default credit > > is used */ > > +#define VAS_WIN_QOS_CREDITS 0x0000000000000001 > > + > > struct vas_tx_win_open_attr { > > Some consistency of naming might help, VAS_TX_WIN_FLAG_QOS_CREDIT. Sure, will change. > > > __u32 version; > > __s16 vas_id; /* specific instance of vas or -1 for > > default */ > > __u16 reserved1; > > - __u64 flags; /* Future use */ > > + __u64 flags; > > __u64 reserved2[6]; > > }; > > > > -- > > 2.18.2 > > > > > >