Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2849865rdb; Mon, 4 Dec 2023 09:06:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHc1KAKRD2503KJ2UZYBtbMwR/fm301o1GcCJ/C/d0zS6DbPFqOmHVZpkXtgCrm6W7Zb9+5 X-Received: by 2002:a05:6a20:7488:b0:18c:5795:669c with SMTP id p8-20020a056a20748800b0018c5795669cmr2434038pzd.46.1701709570327; Mon, 04 Dec 2023 09:06:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701709570; cv=none; d=google.com; s=arc-20160816; b=jPBJg5eSXmLJ995FGsMHOSy8EhZShy8bXJ/vWpC6+swxHA3zu+OvTJHvo3p+Bw7PBr fEOnpp4UwtN4IIcCN7vMcndkGd/FX1XI+uhuoB+PyDJ2ZypRvtjryQvbsUrME3mKx5FJ CS1eS6slUQVhWkjDMlY7jBnBUaH8J7qtV/k5Y9gLRRfr0DcNRo7lL0lTJD2XvElMnIZO dqnDsWb9Cj5Bb9uhKiPh6Rg3eGIXR3D/jibmz5AdLc8+BVA/SMpwOyQ49B6zbs3aR9JI TCryzXtm5g4/UOW5KD3R4rBtXJyXi7dKUG3irRa1T2dvkVfE9zokZaBALmKNfHwiLtqG MdCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=2llLb1kIui/MWBK5f5v9qS/SbcOOe6s6AriAs60t8Ug=; fh=nHznzSq2Rkt4EwTNL6txFPBplITNLtRMyrBv4WUuR38=; b=bhK6AdBRWadoPB7y2xnDXUQKoeknraC5S2fD0aVxVl7mwBwY741GeMxR//+RP/q2um 1XUqumy183vlgjwTpdm+c3RhhoKxM9D6FkclmaeQomxvnL3KrH2dUZ1tan6aXVf+35Yi XriOa6t/WopEVDzJr99DAPIWgQjtrKLtHQtwcMt1D9cgD+NYewGOo7+zirvpXq6Az02I Hq25xMOCN4HMlF+ZZRlmbaHoozrWpH4zF6aeT+TyYgZdkwykQti2U+wM1+Kb3lbocAFo /oFgOi6MjBRlAun2ZyK3pkOAxBDqFBP+ItjwJTsh4r6/GKiBC/q4LnYMNJXeW4euFC+S Nf3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=fzLLvkQb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bh10-20020a056a02020a00b005893a7c438esi8294309pgb.689.2023.12.04.09.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 09:06:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=fzLLvkQb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id CB9E2806141E; Mon, 4 Dec 2023 09:06:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbjLDRFZ (ORCPT + 99 others); Mon, 4 Dec 2023 12:05:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjLDRFY (ORCPT ); Mon, 4 Dec 2023 12:05:24 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1BEDBB; Mon, 4 Dec 2023 09:05:30 -0800 (PST) Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B4GlQeQ027506; Mon, 4 Dec 2023 17:05:29 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=2llLb1kIui/MWBK5f5v9qS/SbcOOe6s6AriAs60t8Ug=; b=fzLLvkQb1DM2gdh/LTi4hceHSy7WHxg/kahmGee1PjA4qUbbTB55PtXtrnNEXf/vFYE7 7p6cmnTVpEvtd18li++iH/lCJltYEvh0EOdcMjVH0emYOkYei84mtqqCI/fbhRlXsP7a Ya6CcvP7cL41Sd8VUMz+Q5ww8hFkhgX8ttGaBml8cjVGOsaI6ATtqCkLDSD7j984j6wa her+WZZm+hBox1T8CUvDHBtpv0YJJiqRELYPntWzWI627Wrq9ictmEuPf6UflSCOxIra UuIjPruLRF9x9Q/FrfIUQveElaXueB8git7XZrbTwUh8mxQ6LQl/wl9qJ3HE4mXYL2rZ uQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3usjkm0xfw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 17:05:28 +0000 Received: from m0353729.ppops.net (m0353729.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3B4Glf3s029337; Mon, 4 Dec 2023 17:05:28 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3usjkm0x63-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 17:05:27 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3B4GwtZ1030022; Mon, 4 Dec 2023 17:05:23 GMT Received: from smtprelay06.dal12v.mail.ibm.com ([172.16.1.8]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3urgdksdkr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 17:05:23 +0000 Received: from smtpav05.wdc07v.mail.ibm.com (smtpav05.wdc07v.mail.ibm.com [10.39.53.232]) by smtprelay06.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3B4H5LjY17957484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Dec 2023 17:05:21 GMT Received: from smtpav05.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E659C58061; Mon, 4 Dec 2023 17:05:20 +0000 (GMT) Received: from smtpav05.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B071358043; Mon, 4 Dec 2023 17:05:19 +0000 (GMT) Received: from [9.61.175.104] (unknown [9.61.175.104]) by smtpav05.wdc07v.mail.ibm.com (Postfix) with ESMTP; Mon, 4 Dec 2023 17:05:19 +0000 (GMT) Message-ID: Date: Mon, 4 Dec 2023 12:05:19 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] s390/vfio-ap: handle response code 01 on queue reset Content-Language: en-US To: Halil Pasic , Christian Borntraeger Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, jjherne@linux.ibm.com, alex.williamson@redhat.com, kwankhede@nvidia.com, frankja@linux.ibm.com, imbrenda@linux.ibm.com, david@redhat.com, Reinhard Buendgen References: <20231129143529.260264-1-akrowiak@linux.ibm.com> <1f4720d7-93f1-4e38-a3ad-abaf99596e7c@linux.ibm.com> <05cfc382-d01d-4370-b8bb-d3805e957f2e@linux.ibm.com> <20231204171506.42aa687f.pasic@linux.ibm.com> From: Tony Krowiak Organization: IBM In-Reply-To: <20231204171506.42aa687f.pasic@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: SXw2yfieEr_ilkyrdHoK7SZ5XNph7GGM X-Proofpoint-ORIG-GUID: VHLfMhw46t83gHS96TO14pddBVkFGPeI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-04_16,2023-12-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 phishscore=0 spamscore=0 adultscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 bulkscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312040130 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 04 Dec 2023 09:06:02 -0800 (PST) On 12/4/23 11:15, Halil Pasic wrote: > On Mon, 4 Dec 2023 16:16:31 +0100 > Christian Borntraeger wrote: > >> Am 04.12.23 um 15:53 schrieb Tony Krowiak: >>> >>> >>> On 11/29/23 12:12, Christian Borntraeger wrote: >>>> Am 29.11.23 um 15:35 schrieb Tony Krowiak: >>>>> In the current implementation, response code 01 (AP queue number not valid) >>>>> is handled as a default case along with other response codes returned from >>>>> a queue reset operation that are not handled specifically. Barring a bug, >>>>> response code 01 will occur only when a queue has been externally removed >>>>> from the host's AP configuration; nn this case, the queue must >>>>> be reset by the machine in order to avoid leaking crypto data if/when the >>>>> queue is returned to the host's configuration. The response code 01 case >>>>> will be handled specifically by logging a WARN message followed by cleaning >>>>> up the IRQ resources. >>>>> >>>> >>>> To me it looks like this can be triggered by the LPAR admin, correct? So it >>>> is not desireable but possible. >>>> In that case I prefer to not use WARN, maybe use dev_warn or dev_err instead. >>>> WARN can be a disruptive event if panic_on_warn is set. >>> >>> Yes, it can be triggered by the LPAR admin. I can't use dev_warn here because we don't have a reference to any device, but I can use pr_warn if that suffices. >> >> Ok, please use pr_warn then. > > Shouldn't we rather make this an 'info'. I mean we probably do not want > people complaining about this condition. Yes it should be a best practice > to coordinate such things with the guest, and ideally remove the resource > from the guest first. But AFAIU our stack is supposed to be able to > handle something like this. IMHO issuing a warning is excessive measure. > I know Reinhard and Tony probably disagree with the last sentence > though. I don't feel strongly one way or the other. Anybody else? > > Regards, > Halil