Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp594854lql; Mon, 11 Mar 2024 11:21:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVM7WSrJJR3bjh2+AxgVpElHLVgkASoFifEf1ENZZetfGmKhPEZlJht2CUEgJMC7+KFZpvgsJEbnqociNvYLKp/do66AxLgG4PxkH/+Q== X-Google-Smtp-Source: AGHT+IHP6KjP5i7tGD1ptyPUVe/NLZf0U0IVWNXEGBqYx2LMnrQcJY2nCxs+jdLwBlvd5fMAFIoM X-Received: by 2002:a05:6870:648b:b0:21e:df12:9499 with SMTP id cz11-20020a056870648b00b0021edf129499mr7278882oab.51.1710181269691; Mon, 11 Mar 2024 11:21:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710181269; cv=pass; d=google.com; s=arc-20160816; b=GH1OlipauXzuDAboP/Ttky3WW9AO2wjTe11XkEyLf5eTorMypZtwxNjhkgNi/fOyYV RUSwVVGP4JoK4ODncaLIOmRfnMWQulFW4xph5KHh8bpCFBUjLMfrn/ulcmheMJBDMkgH L8Bdqgsxe+1FuTWw/B/AIo8XCHUvzVlAK3haBF6/riZfDHTDp7z8sf/8+djkFl6ESHIT uYY/BRUIw6OPbfqwcz4n+4QUbUM0LTLpikwiWt2EgiJ3fg6IpydMVJQDZvtNuJ0DG/vR VlbCeYnNnqOiTyPThtong2EYQtFZnBFzzmZzqpr5w7XQ1NNrD3UIC9eb+nTekITlGCe3 tomw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=bqtNjjrY09WFPvm4l2cpnXrSAK6us97T3iOoYmqP4TI=; fh=JS84NJyUgELz85Mw+vdCwZtZ2rNzDB4Mozhk5DnZFLU=; b=V++N+pMxIuZCBtKg0SiEWNS0KdE1vg4t5aN3GxMUiQKJY3+sey9AreZWQQZ9N5B5gk 0Fq0qGK3XGYkEpe7dL7MpXZQsGrgL8j2mtjEsQqI901ZRSsFjd/rqLL3lxNXPMxP1J7E Phf+qsAr29chU1Yg/aJFvO9tH/ujXs+xmKZPQhhwRd2sIYC4aGL+aVKUDbA/lU/w6plI iaBc1hDN1bEqIgEevkaMkvt+fF+oIib2f7Yi8Hhm0IuTI7EjiZAmZYyriymyOmRyrnSt d1C92+f+bm/x3IbX8lgSU81+VvSU5I1w61a0+YTTmm+1Yq6yQ2JwpqkaUTd+O+MoZvRN 8NGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=lOkZkdr3; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-99354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b34-20020a05620a272200b007887833a7f3si421284qkp.580.2024.03.11.11.21.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 11:21:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=lOkZkdr3; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-99354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7A0BD1C211DC for ; Mon, 11 Mar 2024 18:21:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 077B153E13; Mon, 11 Mar 2024 18:21:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="lOkZkdr3" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FF3F51C44; Mon, 11 Mar 2024 18:20:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710181260; cv=none; b=Gv6z9kLq5703iEaeog2j6hBs3a7YjG8oqwnORIyyadHmUhteqXFDq2vku8fP/BpBKC3JC5t9hZZ/UvOv2+S2QDHeSNIM3TgyM3D7CrvLgeZRur57CqnsttCaLL6ocrHdHa0Gd+NETkG5F6BZD6Jux3+7y8BHVqtt4O9kd+v9PLI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710181260; c=relaxed/simple; bh=NQQvqKzPU8v8dTdFW/yg3BWpbucbVKrL6/83G+86T+w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oBioEsrPBrNLwL8x1ykLfhKt+tDT1IlN84yYp0sWA0SxtbmXTIR2srUZUGvwt6429zOK81/q7VEfksyDhGMbfpUWRpJ/aYyeE16uEVTqT96K4u39Z4BOu0L8mlrgEGKe8con0C0dRhTx0mRTjf6SuoClgZQdUL+C1KruXXW/3Cs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=lOkZkdr3; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 42BGhPP4023998; Mon, 11 Mar 2024 18:20:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=bqtNjjrY09WFPvm4l2cpnXrSAK6us97T3iOoYmqP4TI=; b=lOkZkdr3BbaMZGMpTCBgLIERLJFYOv6wZFKz82MvFirXxNXVRsYYpQCxjWEHWRlaDJlb 6drWekd3XSXu5Bm3HrR/VEPS4UrJsSmN3PfMkhHlo2dmWh/85vO4lr2X4Y7euvypLLpN au1AMVo+rfAM6SZwX1RlppJ9frEz6WXruCyWstsFv8iEe4qMOHi7T//rtyKYGItBxuSh B9OSjzbkiufVPjGwr4Pet4wKjDraVfr2w8tfaLc5xxWMSzXG2PZH/4VZgfRBWZZ3LkW3 8nhrFP2jeT6tHE6VLVypeQ6zKn2POM9sEQVmnjzYuiN8knDSZT0jBGkZ8y+0fUX/Yg9u pg== Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3wt5qp2001-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Mar 2024 18:20:55 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 42BI6G7g018119; Mon, 11 Mar 2024 18:20:55 GMT Received: from smtprelay02.dal12v.mail.ibm.com ([172.16.1.4]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3ws23t2g0e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Mar 2024 18:20:55 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay02.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 42BIKqns24183120 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 11 Mar 2024 18:20:54 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2B2775806B; Mon, 11 Mar 2024 18:20:52 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7076858052; Mon, 11 Mar 2024 18:20:51 +0000 (GMT) Received: from [9.61.27.161] (unknown [9.61.27.161]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 11 Mar 2024 18:20:51 +0000 (GMT) Message-ID: <502b97e4-8ed4-402b-a025-3d023cae5a71@linux.ibm.com> Date: Mon, 11 Mar 2024 14:20:50 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 5/5] s390: doc: Update doc Content-Language: en-US To: "Jason J. Herne" , linux-s390@vger.kernel.org Cc: linux-kernel@vger.kernel.org, pasic@linux.ibm.com, borntraeger@de.ibm.com, agordeev@linux.ibm.com, gor@linux.ibm.com References: <20240306140843.10782-1-jjherne@linux.ibm.com> <20240306140843.10782-6-jjherne@linux.ibm.com> From: Anthony Krowiak In-Reply-To: <20240306140843.10782-6-jjherne@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: b4FuQatNi3XvB8e1qKUdCS59FCMyL7hI X-Proofpoint-ORIG-GUID: b4FuQatNi3XvB8e1qKUdCS59FCMyL7hI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-11_10,2024-03-11_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 lowpriorityscore=0 impostorscore=0 adultscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2403110139 On 3/6/24 9:08 AM, Jason J. Herne wrote: > fix me > > Signed-off-by: Jason J. Herne > --- > Documentation/arch/s390/vfio-ap.rst | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/Documentation/arch/s390/vfio-ap.rst b/Documentation/arch/s390/vfio-ap.rst > index 929ee1c1c940..af5ef60355a2 100644 > --- a/Documentation/arch/s390/vfio-ap.rst > +++ b/Documentation/arch/s390/vfio-ap.rst > @@ -380,6 +380,33 @@ matrix device. > control_domains: > A read-only file for displaying the control domain numbers assigned to the > vfio_ap mediated device. > + ap_config: > + A read/write file that, when written to, allows the entire vfio_ap mediated > + device's ap configuration to be replaced in one shot. Three masks are given, > + one for adapters, one for domains, and one for control domains. If the > + given state cannot be set, then no changes are made to the vfio-ap > + mediated device. > + > + The format of the data written to ap_config is as follows: > + {amask},{dmask},{cmask}\n > + > + \n is a newline character. > + > + amask, dmask, and cmask are masks identifying which adapters, domains, > + and control domains should be assigned to the mediated device. > + > + The format of a mask is as follows: > + 0xNN..NN > + > + Where NN..NN is 64 hexadecimal characters representing a 256-bit value. > + The leftmost (highest order) bit represents adapter/domain 0. Same comment I made in patch 4/5: I won't reject giving an r-b for the above, but could be more informative; maybe more along the lines of how this is described in all documentation: Where NN..NN is 64 hexadecimal characters comprising a bitmap containing 256 bits. Each bit, from left to right, corresponds to a number from 0 to 255. If a bit is set, the corresponding adapter, domain or control domain is assigned to the vfio_ap mdev. You could also mention that setting an adapter or domain number greater than the maximum allowed for for the system will result in an error. > + > + For an example set of masks that represent your mdev's current > + configuration, simply cat ap_config. > + > + This attribute is intended to be used by automation. End users would be > + better served using the respective assign/unassign attributes for > + adapters, domains, and control domains. > > * functions: >