Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8443574rwb; Tue, 13 Dec 2022 06:30:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tTozMW75/WYrYPxS/jhu7BPHR/DVVKGaBAqrGF3JONj/mQM13mxwezlrUpJn3vOV913pa X-Received: by 2002:a62:6081:0:b0:572:24b7:af17 with SMTP id u123-20020a626081000000b0057224b7af17mr19438307pfb.10.1670941806113; Tue, 13 Dec 2022 06:30:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670941806; cv=none; d=google.com; s=arc-20160816; b=kfFbzALSFsu02GGSQEbUYSoM5yE3TXlj6mCzNw7z2ZSF0lui7xAvkDAfxafFTHbmNq WP6R/sOv2tnxUqg3LwJeLPkGRpjeJ3lps1pXiJYQMtsMJcXrSfWwJeFLtob7x9UI2s3T vTvumb0p8ip2rYlhHdR4fRa3rjyW2qSH0fhtlwjzrmi+a1CjeAyUQxgxlFCqE6P4M893 4lM4xn7VaBNWzZ8qDKiVgumZ71xDDyKx4aKuwhr69pr0mz03S+JziY5KibUptY/86wcC 8SDIE/uxTtpTuVVxf759wHIafh/Od/uHRU4Z73lyQrqUSKYWk9ufPSs7VhyPg/rRnej9 HlFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=uPsNjA/oTpRCmchDtLzsD1RJws/pLFpv11WZLH9VSsU=; b=JExlDVEO9d7Lw3t8x+lt/0nIH+dEU5iZbYwnPzeW0WFS4Ye2KuK/qBVHyvzCfvmuOs 724cySjHRWHJKiIw/q/Ji4pNjvsrvZwNyVWnELKRvYGiHT/o02u+rR7CvTqdkJw680Vy qxf3/6kChCuSlPCHMFJR5XbYHBenfsViih+ll0pKUTcv9hh/54L3aNEKO7PbwZcXNIfR Dj63LJnm30e7zSuFAWGCKJN5Zjz3dxnXUN+Qa2EkkSEhY/0sPclj6CdhE2sMDilWYaun +6tgglVnO7ZalF3x6FJNdtwhy8SDIEuz+yr/u0CCMqPFmSMSn/chEZx+adDYPG1FmAim d/Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dqJEIpko; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v21-20020a056a00149500b00572dc2ed1f7si1916995pfu.191.2022.12.13.06.29.54; Tue, 13 Dec 2022 06:30:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dqJEIpko; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235523AbiLMNZK (ORCPT + 72 others); Tue, 13 Dec 2022 08:25:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235515AbiLMNZI (ORCPT ); Tue, 13 Dec 2022 08:25:08 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B9211929B; Tue, 13 Dec 2022 05:25:07 -0800 (PST) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BDD8Yfu028246; Tue, 13 Dec 2022 13:24:43 GMT 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 : content-transfer-encoding : mime-version; s=pp1; bh=uPsNjA/oTpRCmchDtLzsD1RJws/pLFpv11WZLH9VSsU=; b=dqJEIpko5w484cnb6ZuQM1yt5wVL1FmD14F2idIbn80k21s5L4G6Y6/WWMpZbL3ygR93 hChVbxapOArKaNahy0F/rOvjt4x+D2q215j8rM2cb4weUnc/09bxf6N+BYDamjSQbR73 hOt94tJNB2JQU6F3XBAUg6VS8mJQqGxtj6Mktgdb+HCOZCnpBIjsw4D0iKr09I2zqo18 SVeXD4movUPR5Fvl3zGeXlTVXQAv8+Lxe9ucCSyWTPLYn9xSHfB3S8OIbEDnnycaCWGs N9g5M8gvaUNBNT2+A2HphhH/lmfPJ+JwpQUY6suRtl8zR17fWiiVDjEnIIFbNJYRDVS3 DA== Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mestnrmgj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 13:24:43 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 2BD5OgN5028342; Tue, 13 Dec 2022 13:24:41 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma03ams.nl.ibm.com (PPS) with ESMTPS id 3mchr647qf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 13:24:41 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2BDDObY447382914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Dec 2022 13:24:37 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9E9A520040; Tue, 13 Dec 2022 13:24:37 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 41EE220043; Tue, 13 Dec 2022 13:24:37 +0000 (GMT) Received: from [9.155.211.163] (unknown [9.155.211.163]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 13 Dec 2022 13:24:37 +0000 (GMT) Message-ID: <74be1d4fff25840b8be2b786263c37840e5cca4c.camel@linux.ibm.com> Subject: Re: [PATCH] iommu: Allow .iotlb_sync_map to fail and handle s390's -ENOMEM return From: Niklas Schnelle To: Jason Gunthorpe Cc: Matthew Rosato , iommu@lists.linux.dev, Joerg Roedel , Pierre Morel , linux-s390@vger.kernel.org, linux-arm-kernel@lists.infradead.org, borntraeger@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, gerald.schaefer@linux.ibm.com, agordeev@linux.ibm.com, svens@linux.ibm.com, will@kernel.org, Robin Murphy , linux-kernel@vger.kernel.org, Suravee Suthikulpanit , Sven Peter Date: Tue, 13 Dec 2022 14:24:37 +0100 In-Reply-To: References: <20221213121104.1659412-1-schnelle@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.2 (3.46.2-1.fc37) MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: XWihPLDDGZYuwgAMLGJT0o07dTHAqqsU X-Proofpoint-GUID: XWihPLDDGZYuwgAMLGJT0o07dTHAqqsU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-13_03,2022-12-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 mlxscore=0 phishscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=688 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212130115 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2022-12-13 at 09:11 -0400, Jason Gunthorpe wrote: > On Tue, Dec 13, 2022 at 01:11:04PM +0100, Niklas Schnelle wrote: > > --- a/drivers/iommu/tegra-gart.c > > +++ b/drivers/iommu/tegra-gart.c > > @@ -252,8 +252,8 @@ static int gart_iommu_of_xlate(struct device *dev, > > return 0; > > } > > =20 > > -static void gart_iommu_sync_map(struct iommu_domain *domain, unsigned = long iova, > > - size_t size) > > +static int gart_iommu_sync_map(struct iommu_domain *domain, unsigned l= ong iova, > > + size_t size) > > { > > FLUSH_GART_REGS(gart_handle); > > } >=20 > return 0 ? >=20 > Jason Stupid me for not at least compile testing on more platforms. Will send a v2.