Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1861795pxb; Fri, 10 Sep 2021 16:20:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4b33sHeBBAU0mtZ01SN/501141YGawa4n7pMm1QoKpxfTjok05Q7K9pCu4GeWHQkTTvOz X-Received: by 2002:a05:6638:d0a:: with SMTP id q10mr186416jaj.14.1631316036503; Fri, 10 Sep 2021 16:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631316036; cv=none; d=google.com; s=arc-20160816; b=sOdZPK5iJIt9gOaVrFQ5yin04nuqyaO55Ib1aqnixyvLdlbE7Glo3m37LsZ9zBxsWY XvMnBnAFDjK3oI/lDc8/hIaYVtXZFZ/4ezvIyNYfbkNHGCqQMUS9Q5+bAQ8d86RtLLaT PVnTeWZivOz3E4nVVasP8x67AFgrYw+TcH1YtpIARtpTrSzUk6ryK3UUVZAn5/oql6vZ ivreqTIPj0ITbVYb6LxQPHblteCesojyBcjshrmL8o+LlER47+PIpkWl3PdtKKRrX9qU +rUf6FZqQivmgd4J97NjQTBuH0fwUIAXQY86lAwHOIpZRIHuFVh8jzugslgJvmYemmBi CVMQ== 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:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=+ku7SyFoRCOL/rlHIkJNAT7jQeCGKAnX+EQugNOERZM=; b=r6S84l+DW34g9K3tDVIParj4XK4qolQyLEQrk89GkY4PNQC3ZkbUiZi/RIsqiN7FcZ fZuybnOwGB6xFJv17C4qP9zqKguqspWvn+lVvH5bBXbdV5TghUwTfrEU08hUiAC5hzmr 9IXRfJqg3aWaqdGa4djI+7I8P/9BOXI8VqHymB/G6o0vGXTKmIxeRMBrJiYyhxxvFWxD lIwkKmEBUKHsYAHo2a6WWpKhlIHNKFE+UZwE9bzMOwHxIqULg9eb7AV6a3CVknJnTXvg UJyMIyOZIK2hqc3GeoCjw0t9Oh2Jt1QTSYWUcYIMiA7e+bLMg1IFvuRdx03U7OdLWSM4 ONBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vMjSAGX3; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si6714377ili.37.2021.09.10.16.20.24; Fri, 10 Sep 2021 16:20:36 -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=@kernel.org header.s=k20201202 header.b=vMjSAGX3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234814AbhIJXTn (ORCPT + 99 others); Fri, 10 Sep 2021 19:19:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:60012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234826AbhIJXTc (ORCPT ); Fri, 10 Sep 2021 19:19:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8C5D261167; Fri, 10 Sep 2021 23:18:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631315900; bh=HNuFXlUzzdE3O5BLAoHNZ+FVASkIymP1ujqpRkY0Rrw=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=vMjSAGX3eIpKKZ/2aboK5CtMRUyJ851TY0/yJLTuynzkG56DVaLrA0/4BQnNPuSAA s9E3eJNRFsxeQ1g6+5CAU+W/vsRqEdaL5k+H1UFLsA09myTLjSUK5ilOvW/TKw1CaY zmFJLiQWOD3Ox3UVyhthYpzR2hEEjvXGe8SsUbUqMqg5ZSon32sGzkG3ZHySvwsqtP 2SXkUNorUoCBNZVNblByQWetiBDvRdGwUTZl1egiCDnbrb1L2qJABEIA35Znsj0/ma 4unw9gFtcb8SI3Rk7IXEivt+urmWWJLFGSJgvbTE4vDk4yY5V8+waHBNk/EKlycYl3 3q4waikb+Y5Rg== Date: Fri, 10 Sep 2021 16:18:20 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: Jan Beulich cc: Juergen Gross , Boris Ostrovsky , Stefano Stabellini , lkml , "xen-devel@lists.xenproject.org" Subject: Re: [PATCH 05/12] swiotlb-xen: suppress certain init retries In-Reply-To: <56477481-87da-4962-9661-5e1b277efde0@suse.com> Message-ID: References: <588b3e6d-2682-160c-468e-44ca4867a570@suse.com> <56477481-87da-4962-9661-5e1b277efde0@suse.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Sep 2021, Jan Beulich wrote: > Only on the 2nd of the paths leading to xen_swiotlb_init()'s "error" > label it is useful to retry the allocation; the first one did already > iterate through all possible order values. > > Signed-off-by: Jan Beulich Reviewed-by: Stefano Stabellini > --- > I'm not convinced of the (lack of) indentation of the label, but I made > the new one matzch the existing one. > > --- a/drivers/xen/swiotlb-xen.c > +++ b/drivers/xen/swiotlb-xen.c > @@ -184,7 +184,7 @@ retry: > order--; > } > if (!start) > - goto error; > + goto exit; > if (order != get_order(bytes)) { > pr_warn("Warning: only able to allocate %ld MB for software IO TLB\n", > (PAGE_SIZE << order) >> 20); > @@ -214,6 +214,7 @@ error: > pr_info("Lowering to %luMB\n", bytes >> 20); > goto retry; > } > +exit: > pr_err("%s (rc:%d)\n", xen_swiotlb_error(m_ret), rc); > return rc; > } >