Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1432640pxy; Thu, 29 Apr 2021 07:04:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc9OxhqlofzeEutfYzLYJ/y1RloMmJvlVGF5KTDvI9j/vmjYLezrbx1u16iSLqgHtlE1l7 X-Received: by 2002:a05:6402:4242:: with SMTP id g2mr18289368edb.329.1619705083594; Thu, 29 Apr 2021 07:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619705083; cv=none; d=google.com; s=arc-20160816; b=YSuT5cPQE4JRNWaCwCr3yVVaudqXztiClyCEx6FdWn2YD6Dl/iQYhkWHa14Q7ICM19 zTzeM3c1UMlaD2LuwsXJWhtaDM7d34mduLRiykg/ytlLyFFNVC1fd6xL7N1O6X0unuOU r0IqTWtuGD4Dasxgdluo4NNm2Sdwb4IGHTzvV2OKEJZ1sRiQ609Bv7pITgQWpfj3Nt1f 38YrMggEXyv9sLcIwdz573cYUbeGD3d3U/6nIIgHsxce+OWjY/VpHPCP6r1HaZYD+pQi 4cOLBkjKvQI2B6gDhEcxHkEN5helpTJTyi7lPMNW25qhjNCIpuyMva1p5Sy8ob9hs8Ao i7HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=ugsQUGFJGL8WOSUC6LiZCcsHCkzthe+gmn8AforhXFg=; b=uIsMDdyslWgKau+CYAbxCSSksu1T4HCMFHr6GfeN0BWIQOABRqcZ+LB/siP9zB6TXI uNgr/0PrrZ7dDSYIXE/n5lNnuwk3KZr3kwI5wK/rGRySs1ws3EKWercA9f3dg54L5F5U wvpefW8toNixSLoxHZ/8EKt7CF1fUxKcAP+wVRPBzQeGZ9IsQz6L/jCf8d96gIHAD6ap vQnFU0iB+aMf0y+QgGfhl8mgoE34dS++lThMeqq8lDMGY33Z7EfydBlNKs0kG1f27eC3 zPRsjFUbFX3a19cVDDYswZR/yneZegrwL/U12pNHYXfS1zrwf+hbmtV6/Lvg67s8vq3P tx3A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si3256194edv.206.2021.04.29.07.04.19; Thu, 29 Apr 2021 07:04:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239882AbhD2OD3 (ORCPT + 99 others); Thu, 29 Apr 2021 10:03:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239611AbhD2ODZ (ORCPT ); Thu, 29 Apr 2021 10:03:25 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66278C06138B for ; Thu, 29 Apr 2021 07:02:39 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4FWHJ85c88z9sXL; Fri, 30 Apr 2021 00:02:32 +1000 (AEST) From: Michael Ellerman To: Alexey Kardashevskiy , Benjamin Herrenschmidt , Nicolin Chen , Leonardo Bras , Michael Ellerman , Niklas Schnelle , Paul Mackerras Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: <20210318174414.684630-2-leobras.c@gmail.com> References: <20210318174414.684630-1-leobras.c@gmail.com> <20210318174414.684630-2-leobras.c@gmail.com> Subject: Re: [PATCH 1/1] powerpc/kernel/iommu: Use largepool as a last resort when !largealloc Message-Id: <161970488610.4033873.6555670052413265008.b4-ty@ellerman.id.au> Date: Fri, 30 Apr 2021 00:01:26 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Mar 2021 14:44:17 -0300, Leonardo Bras wrote: > As of today, doing iommu_range_alloc() only for !largealloc (npages <= 15) > will only be able to use 3/4 of the available pages, given pages on > largepool not being available for !largealloc. > > This could mean some drivers not being able to fully use all the available > pages for the DMA window. > > [...] Applied to powerpc/next. [1/1] powerpc/kernel/iommu: Use largepool as a last resort when !largealloc https://git.kernel.org/powerpc/c/fc5590fd56c9608f317729b59a56dad2a75d633f cheers