Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2999950pxk; Mon, 21 Sep 2020 02:40:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmgD8sQuTuGwr20mWxoJrAZIHZjmLZHsaeWwmiJg+zAt4yzPyyJfzt9NWKYDzfbzMA46Lj X-Received: by 2002:a17:906:c0c8:: with SMTP id bn8mr12030072ejb.256.1600681238524; Mon, 21 Sep 2020 02:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600681238; cv=none; d=google.com; s=arc-20160816; b=AFOQ0cFP807Vu34rC/hf9EgmmlORgQFKapuFezjQWKmh+Yi8gKzTvGXuAnFVLKPPOe nGGAPS8nhZFGiRNTyQriss1DFcuSoCfgR8BD64t3aw54w+3U9wNKEDM6Qbev5jKeMGxN WHWca2/vz9h05gaYCp8EkyZUH1DWJ4IuJl92b7HdAC9Bz1wXWyhUER5vh0LkmLfxhn5v 5ns0ndpu2sbaIAoy592EzOxRQFu/Gk+QOvMbP2WOKXTueNo77I0pXNz5ffVbwkecCXcc Qt7XLAw5HQV7FTTOWd7iaSB8dXi5bYHYaQRdOfOYo6aldj2aEbBOIgluEMe1SSpM/PSs qV8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:dkim-signature; bh=zC0qbv7mfy7DEhUUZDjhb2qbN4fJPIoQ9h2oF7sKsOM=; b=fjZfmOYOMQjzlO86by6gbWUEt40lIV93Eu2XwKwqZO4esrk9babmJ7FZFSYtldL/FC GdKpo/d4KwGejl118PkfFwTqn0EZ2Dwuejdbq3+aewRexZ94oIzNwaSc5p8HzxnVc3BT jOTyKMsmyh3IUFd3TqV2HpBC4p8zhpTHzuSJnOHYR+W1jpJa8K+7Ki0eTgqUsjQb7nKI /uZ5M/LDJMt/AvnfwAneg8u1PyJAIRyWL5B/wD2LCnqDbycuDzfYhW0zy5L6yMsJ5Ogl 89EUUelNrxDz3UBtbwf1yAIgKd3dhrulgiNCXyr+KpUNtsgZV87f5MCAcr4jANcLXmME 8SVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=YeuN4Epr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si9286879edk.11.2020.09.21.02.40.15; Mon, 21 Sep 2020 02:40:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=YeuN4Epr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726498AbgIUJiu (ORCPT + 99 others); Mon, 21 Sep 2020 05:38:50 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:57478 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbgIUJit (ORCPT ); Mon, 21 Sep 2020 05:38:49 -0400 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08L9VsPc120506; Mon, 21 Sep 2020 05:38:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=zC0qbv7mfy7DEhUUZDjhb2qbN4fJPIoQ9h2oF7sKsOM=; b=YeuN4EprRElwxW4K0JIdMT5fGRbqon84/DkgodGMnRU9FESUO9+fFwcTs5cVUFiyqKZu hy+TvABwllopTEWT5jJdqcFtbadihW+IRkpIAcmrnDSfxoUkirQF3kcs2RuzpXcFnclR IretbLVH1wEEAw5dJ3P1gzsDJ9h+dngpI35J6pQLnbwxjdHmNe8XkqAR6+BT1syiKF4R yC1MOXwmS9f9aw4Yc7b/wDr3Di26UphN6c829PcYwBqdrFRwQdcUo7EeWOdpkOmQEo7e Ho8m0jaGjBC1J9le0+kAZ6R/5blVWyNA6vHHwT57pijlGVKrHIwgtIRMKjq4t1jv+kmM IA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 33ps3r11jy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Sep 2020 05:38:48 -0400 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 08L9WVaD122134; Mon, 21 Sep 2020 05:38:47 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 33ps3r11j5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Sep 2020 05:38:47 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 08L9SRTu019898; Mon, 21 Sep 2020 09:38:44 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma06ams.nl.ibm.com with ESMTP id 33n98gsw98-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Sep 2020 09:38:44 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 08L9cfqD16384464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Sep 2020 09:38:42 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D0F77A4060; Mon, 21 Sep 2020 09:38:41 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4729CA405C; Mon, 21 Sep 2020 09:38:41 +0000 (GMT) Received: from oc7455500831.ibm.com (unknown [9.145.163.1]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 21 Sep 2020 09:38:41 +0000 (GMT) Subject: Re: [PATCH 2/4] s390/pci: track whether util_str is valid in the zpci_dev To: Matthew Rosato , alex.williamson@redhat.com, cohuck@redhat.com, schnelle@linux.ibm.com Cc: pmorel@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, gerald.schaefer@linux.ibm.com, linux-s390@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1600529318-8996-1-git-send-email-mjrosato@linux.ibm.com> <1600529318-8996-3-git-send-email-mjrosato@linux.ibm.com> From: Christian Borntraeger Autocrypt: addr=borntraeger@de.ibm.com; prefer-encrypt=mutual; keydata= xsFNBE6cPPgBEAC2VpALY0UJjGmgAmavkL/iAdqul2/F9ONz42K6NrwmT+SI9CylKHIX+fdf J34pLNJDmDVEdeb+brtpwC9JEZOLVE0nb+SR83CsAINJYKG3V1b3Kfs0hydseYKsBYqJTN2j CmUXDYq9J7uOyQQ7TNVoQejmpp5ifR4EzwIFfmYDekxRVZDJygD0wL/EzUr8Je3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vR/a1GRZpppQbn1jgE44hgF559K6/yYemcvTR7r 6Xt7cjWGS4wfaR0+pkWV+2dbw8Xi4DI07/fN00NoVEpYUUnOnupBgychtVpxkGqsplJZQpng v6fauZtyEcUK3dLJH3TdVQDLbUcL4qZpzHbsuUnTWsmNmG4Vi0NsEt1xyd/Wuw+0kM/oFEH1 4BN6X9xZcG8GYUbVUd8+bmio8ao8m0tzo4pseDZFo4ncDmlFWU6hHnAVfkAs4tqA6/fl7RLN JuWBiOL/mP5B6HDQT9JsnaRdzqF73FnU2+WrZPjinHPLeE74istVgjbowvsgUqtzjPIG5pOj cAsKoR0M1womzJVRfYauWhYiW/KeECklci4TPBDNx7YhahSUlexfoftltJA8swRshNA/M90/ i9zDo9ySSZHwsGxG06ZOH5/MzG6HpLja7g8NTgA0TD5YaFm/oOnsQVsf2DeAGPS2xNirmknD jaqYefx7yQ7FJXXETd2uVURiDeNEFhVZWb5CiBJM5c6qQMhmkS4VyT7/+raaEGgkEKEgHOWf ZDP8BHfXtszHqI3Fo1F4IKFo/AP8GOFFxMRgbvlAs8z/+rEEaQYjxYJqj08raw6P4LFBqozr nS4h0HDFPrrp1C2EMVYIQrMokWvlFZbCpsdYbBI= Message-ID: <72aa9ba3-cb88-c8ab-4cfe-dcd54e7a1426@de.ibm.com> Date: Mon, 21 Sep 2020 11:38:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <1600529318-8996-3-git-send-email-mjrosato@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-21_01:2020-09-21,2020-09-20 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 adultscore=0 spamscore=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 phishscore=0 mlxlogscore=993 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009210067 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19.09.20 17:28, Matthew Rosato wrote: > We'll need to keep track of whether or not the byte string in util_str is > valid and thus needs to be passed to a vfio-pci passthrough device. > > Signed-off-by: Matthew Rosato If this goes via the vfio tree, Acked-by: Christian Borntraeger (please wait for an ack from Niklas Schnelle as well) > --- > arch/s390/include/asm/pci.h | 3 ++- > arch/s390/pci/pci_clp.c | 1 + > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h > index 882e233..32eb975 100644 > --- a/arch/s390/include/asm/pci.h > +++ b/arch/s390/include/asm/pci.h > @@ -132,7 +132,8 @@ struct zpci_dev { > u8 rid_available : 1; > u8 has_hp_slot : 1; > u8 is_physfn : 1; > - u8 reserved : 5; > + u8 util_avail : 1; > + u8 reserved : 4; > unsigned int devfn; /* DEVFN part of the RID*/ > > struct mutex lock; > diff --git a/arch/s390/pci/pci_clp.c b/arch/s390/pci/pci_clp.c > index 48bf316..d011134 100644 > --- a/arch/s390/pci/pci_clp.c > +++ b/arch/s390/pci/pci_clp.c > @@ -168,6 +168,7 @@ static int clp_store_query_pci_fn(struct zpci_dev *zdev, > if (response->util_str_avail) { > memcpy(zdev->util_str, response->util_str, > sizeof(zdev->util_str)); > + zdev->util_avail = 1; > } > zdev->mio_capable = response->mio_addr_avail; > for (i = 0; i < PCI_STD_NUM_BARS; i++) { >