Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp110441pxm; Fri, 4 Mar 2022 17:23:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0aaqVzqkuHm13MuLEd020cRM7Es9JfBdqrJcXE3hHh0IpVM+dfspd8L4MyRtd+IfU+GWT X-Received: by 2002:a17:906:2cce:b0:6ce:e203:d207 with SMTP id r14-20020a1709062cce00b006cee203d207mr1210864ejr.242.1646443406198; Fri, 04 Mar 2022 17:23:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646443406; cv=none; d=google.com; s=arc-20160816; b=mioIB5Fe+ekfGDCH8MFf26k4m7gAgsggF1WnQH/MqByyfx7Ed7fuTotkx4yzQKMDIt 1UQCSb0UNE58OazadBJE4ifJ/jB9MyhaqbuQwg9P7iX12+qm4oE4ZJgZ8ELOK7seLcO/ kFlPJH7B4T/fZDS7iVVUy9KIUImlf8yqOQnMHVpq47P0wCHd9JOnwp+olldC56uvbj3M fPZ5ibLZiL1BaJftk7/XowIM3mFPFWT6dHKeV1qftbKuMryGb5gNFFgWoUP+dDdvya15 /8ROsh4SJnpoHtrWftFGpUKK5eUdW3jfEuWph5ZceZxFR9VFvZouiw8TjmZuF2qVPlIE 23bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=O6WuOI553W9D5ktMxGKuIKOOGvxcWBezKL+ifKoRdpg=; b=yhLwAdqg7+PH2JBlVIdaufrTmsMiVJe7Zn5R+v4wGhqDVL+eK4l0E3zbDqaRhxv3nc /NaoZlNdj66hVBlFTm1kVqeOruQhNgsGeLp4lo7LoCE1/iS8ZDy3UbPsIBCYGUImavvY C9JiUEQnrQu6okgD5mdjp9lrZAnEddk8N5oHA3YlUFbg+6r9cEbKYDYVWymHfze7nCHu i+bwGQK1sRqzHulJP1kZPsKU1grlh68Z7Z+qb8uAofELc1dQUCl7JjHxttl8pwj/Y2HI D4YqTfRlKL4/DTmq3DZ8DvI7YgNqIUlEpT0eOku+uhzZ4Xv3FrAnKeGmlODbxEAYixv5 ZGbQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a056402254700b00412d085989bsi6500173edb.211.2022.03.04.17.22.45; Fri, 04 Mar 2022 17:23:25 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230138AbiCEAEe (ORCPT + 99 others); Fri, 4 Mar 2022 19:04:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbiCEAEe (ORCPT ); Fri, 4 Mar 2022 19:04:34 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4121D207A0A; Fri, 4 Mar 2022 16:03:45 -0800 (PST) X-UUID: d4708299e3234759b8b7d1d628fb891a-20220305 X-UUID: d4708299e3234759b8b7d1d628fb891a-20220305 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 974430699; Sat, 05 Mar 2022 08:03:38 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Sat, 5 Mar 2022 08:03:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 5 Mar 2022 08:03:37 +0800 From: Miles Chen To: CC: , , , , , , , Subject: Re: [PATCH] iommu/iova: Improve 32-bit free space estimate Date: Sat, 5 Mar 2022 08:03:37 +0800 Message-ID: <20220305000337.24995-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <77b0c978-7caa-c333-6015-1d784b5daf3f@arm.com> References: <77b0c978-7caa-c333-6015-1d784b5daf3f@arm.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Hi Joerg, Robin, > Applied without stable tag for now. If needed, please consider > re-sending it for stable when this patch is merged upstream. > Yeah, having figured out the history, I ended up with the opinion that > it was a missed corner-case optimisation opportunity, rather than an > actual error with respect to intent or implementation, so I > intentionally left that out. Plus figuring out an exact Fixes tag might > be tricky - as above I reckon it probably only started to become > significant somwehere around 5.11 or so. > > All of these various levels of retry mechanisms are only a best-effort > thing, and ultimately if you're making large allocations from a small > space there are always going to be *some* circumstances that still > manage to defeat them. Over time, we've made them try harder, but that > fact that we haven't yet made them try hard enough to work well for a > particular use-case does not constitute a bug. However as Joerg says, > anyone's welcome to make a case to Greg to backport a mainline commit if > it's a low-risk change with significant benefit to real-world stable > kernel users. Got it, thank you. We will try to push to the android LTS trees we need. Thanks, Miles > > Thanks all! > > Robin.