From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AFB76C52D6D for ; Thu, 1 Aug 2024 08:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iBkpu/qY3LqoVLM0x1+jY6wR7ksgoxue3JKxb/MhuFU=; b=py1L5H6/arrbpdKQPgU3zpFxTK cswgIR3rsvWHr4hXetfo7cMnw0G+8BO5wh5DWsEZlgRow/Zt1+3qI6yBj/+2ows5531wt/QuSd+nj Kj4SRB6w3bbjrCsbSs4DZO21cy/MueDyO9yQB1SJTeJclN7svO8XDwFCAnLJJqw3TWOkKcaiNDmIp 6+WQfrp5F5efz0fYHFYy6V1tMj7jVOBct7x+NG8tb3NbmNjA7kHmGCLIQgqXjLYp1jXRPRE93OpBD hWslES+ttDheoX7K6gYyD8IwU1UnSk74JmSUus6aEokk9ok7aEHEYLby26YpPwlCvVh501ybQx93P ONhx5DVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZReF-00000004Rlm-0MMH; Thu, 01 Aug 2024 08:58:59 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZRbs-00000004RFW-0AEh for linux-arm-kernel@lists.infradead.org; Thu, 01 Aug 2024 08:56:54 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 38CF5CE12D4; Thu, 1 Aug 2024 08:56:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E209C32786; Thu, 1 Aug 2024 08:56:26 +0000 (UTC) Date: Thu, 1 Aug 2024 09:56:23 +0100 From: Catalin Marinas To: Baruch Siach Cc: Christoph Hellwig , Marek Szyprowski , Will Deacon , Robin Murphy , iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, Petr =?utf-8?B?VGVzYcWZw61r?= , Ramon Fried , Elad Nachman Subject: Re: [PATCH v4 1/2] dma: improve DMA zone selection Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_015632_281949_0F3895B6 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Aug 01, 2024 at 11:25:06AM +0300, Baruch Siach wrote: > When device DMA limit does not fit in DMA32 zone it should use DMA zone, > even when DMA zone is stricter than needed. > > Same goes for devices that can't allocate from the entire normal zone. > Limit to DMA32 in that case. > > Reported-by: Catalin Marinas > Signed-off-by: Baruch Siach This looks fine to me now. Reviewed-by: Catalin Marinas