Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1954043rbb; Tue, 27 Feb 2024 06:30:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVKZwToXYlEU4hrmwuP+cwax1mzzndMDynDcC72+JVj4NuKN/yudMrXm0FqqPpB8QvoF4iw3Uykaf92K2i7UdsVsqiYfFOaHeOjNdJdXw== X-Google-Smtp-Source: AGHT+IFlURzI0hkkEQcYiwHIms8dIbVIANCY2qIylCdeNF1OhxcAeXk8fa8Os/EgdICHZW50nMfc X-Received: by 2002:a17:906:565a:b0:a3e:34b2:a2fc with SMTP id v26-20020a170906565a00b00a3e34b2a2fcmr7392106ejr.1.1709044257615; Tue, 27 Feb 2024 06:30:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709044257; cv=pass; d=google.com; s=arc-20160816; b=prrOZSzRjKGpf3nzhqEh7WCh5N4JxPDxHXxcTFZqlI/l5uvfFiXQVstw03l8+AZ+AI xrBWvmlFVF1QaRWrnUj8GNK8B3zRjWq+nqDOjWzF6aa32jhsjAL4R/PoNA3D0Cvy/h4F 5FokitIZXaCuN75i3xI7mYiaariNzyy9b5b0qU+5byQp7xJKsn9hS0sCUlH8vsSLFgz5 pnxVatCkET8bkSOxMUAQ2SlfxTS/iyWJz5Y02hm9HclTCaKI4FCKsPoYgG16B2MGwFaI kruWFaueCJsluWRiv4rL97t+LJEq9uNjds0h/DyWYkNgGeGjWzaDZHWVEAmc5hAmBgoA kwSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=etvuMIsXye1NyMwaxEALvpT3llw8g+DZmDk8l12N12Y=; fh=6S8mdel5qiVOTYb6Ll9uooawZNK6frmJ40cDDZ/6PGE=; b=nrqqnj7T2Rk/txSZ/o57JsaJvyPpvHg6ANyrx4V+zC38317Fo2nalCCMiI74dDqBdd b4k9q4s+R8mf/n/i+69/Mzmg0wIVRzqGtNRiCiip35NqNwGn8yKL+I43qrPRppDJrFhG iZSH7m5Z62zyN89yOGjKIZmMXhD+7+b2p3s0NKR+5zMdw7rM0JWnVtFZpGyxrxObEfkM +K5XJaJaJrft3euPCmGAY2V5sA5CFqcvZi5m2qRO8igmms8r7p5kI+50ZcsQwyEHFbHy Ts/r+y1dLDpYMEWHXjn4lWmXFaOp7dynkW9p7fviGtDeNOzxOM4uLOYKvrAPKH/ry4KV c9UQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oBGfoSNe; 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-83401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t22-20020a1709060c5600b00a3e3965250dsi763824ejf.883.2024.02.27.06.30.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 06:30:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oBGfoSNe; 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-83401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83401-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5EC791F2CECF for ; Tue, 27 Feb 2024 14:30:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15AA4145B06; Tue, 27 Feb 2024 14:29:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="oBGfoSNe" 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 61E6B1419A0; Tue, 27 Feb 2024 14:29:26 +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=1709044168; cv=none; b=Y16Ef5V8anLVrmFnNB4Sn2fl0MjtuBxpGjWzEv/e2VeTzk1rWCXzq/IiWB522QeilZWh8HuB0qVO72Pitd+ym22beDv1rOXQcFaV4H/wa15MHZn8F7c9dPesMHiF200C1TzN4Z1b5zTccjFp8IpjpqGJ54B6zFeMLx33TWaxf6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709044168; c=relaxed/simple; bh=L8Y8rnwu95x33EnTIXSjk4pEIYFULOLfxNY8Ak2Vvh4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YJ/8PH4Jvj8jeBoDjPhfkrsEzzjEEH2BFF9w4ujNZDLKlnjtRkoW5ZuzehIoT6Q3qUI3mb1UCn1Vx1IFFVH0AsMA24xKOIYlIuOgxBOxKupfdpnI3Y2V20GL512NEojVbIXZAL0mbmWhTDRC97fW6Po78CfWszSjfje/Eq0qG34= 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=oBGfoSNe; 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 (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41RDrKcO029324; Tue, 27 Feb 2024 14:29:25 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=etvuMIsXye1NyMwaxEALvpT3llw8g+DZmDk8l12N12Y=; b=oBGfoSNeSBC20vxMRJaiJlOIuYrzNyRZ7TnHU8dXZ8PPshNUZ3Zk1I353wii3xb8UZ8l 4bSY4iNy/MoJqIXIVlNMk8x6ZJhUqP42uDVRLq/5BHkjEGUIZ9E+gZ5AkxAVfnm4QarC 7pkWUcQ5lIbxAuWhOthlNvZjgkc/nguLuznaEPmziXJlK1lIHUM9Pcq+xAiqrzvLrQnK VaxaZ5cCNJN+zVcNoecoKJXzX0w0rW5dftxby4eGssh2fIlo5d7e7plArc9mkYPVQ/ev Hx0dktiwT+fBL/j4cDpY4tqMESa0R42bzuUBpdo/0+PSfFqK45EPY9cBLbbjb/T5g0JH Og== 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 3whh11948p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Feb 2024 14:29:25 +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 41RC3qqP008787; Tue, 27 Feb 2024 14:29:24 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3wftstgerw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Feb 2024 14:29:24 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 41RETJZ67799396 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Feb 2024 14:29:21 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 106412004D; Tue, 27 Feb 2024 14:29:19 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CE9E820040; Tue, 27 Feb 2024 14:29:18 +0000 (GMT) Received: from osiris (unknown [9.152.212.60]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTPS; Tue, 27 Feb 2024 14:29:18 +0000 (GMT) Date: Tue, 27 Feb 2024 15:29:17 +0100 From: Heiko Carstens To: "Jason J. Herne" Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, pasic@linux.ibm.com, akrowiak@linux.ibm.com, borntraeger@de.ibm.com, agordeev@linux.ibm.com, gor@linux.ibm.com Subject: Re: [PATCH] s390/vfio-ap: handle hardware checkstop state on queue reset operation Message-ID: <20240227142917.6127-B-hca@linux.ibm.com> References: <20240215153144.14747-1-jjherne@linux.ibm.com> <3b5a812d-3832-6f34-a528-c67e59d76e65@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3b5a812d-3832-6f34-a528-c67e59d76e65@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: PmuyNpjsypTJA_M5gy-_YD3xJcSAAnhW X-Proofpoint-GUID: PmuyNpjsypTJA_M5gy-_YD3xJcSAAnhW 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-02-26_11,2024-02-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402270111 On Tue, Feb 27, 2024 at 08:25:21AM -0500, Jason J. Herne wrote: > Polite Ping :) > > Patch already has R-b. > Thanks for taking a look. > > On 2/15/24 10:31 AM, Jason J. Herne wrote: > > Update vfio_ap_mdev_reset_queue() to handle an unexpected checkstop (hardware error) the > > same as the deconfigured case. This prevents unexpected and unhelpful warnings in the > > event of a hardware error. > > > > We also stop lying about a queue's reset response code. This was originally done so we > > could force vfio_ap_mdev_filter_matrix to pass a deconfigured device through to the guest > > for the hotplug scenario. vfio_ap_mdev_filter_matrix is instead modified to allow > > passthrough for all queues with reset state normal, deconfigured, or checkstopped. In the > > checkstopped case we choose to pass the device through and let the error state be > > reflected at the guest level. > > > > Signed-off-by: Jason J. Herne > > Reviewed-by: Anthony Krowiak > > --- > > drivers/s390/crypto/vfio_ap_ops.c | 35 ++++++++++++++++--------------- > > 1 file changed, 18 insertions(+), 17 deletions(-) Applied, thanks!