From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751251AbeDYG7c (ORCPT ); Wed, 25 Apr 2018 02:59:32 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:51692 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbeDYG7b (ORCPT ); Wed, 25 Apr 2018 02:59:31 -0400 Date: Tue, 24 Apr 2018 23:59:30 -0700 From: Christoph Hellwig To: David Rientjes Cc: Christoph Hellwig , Linus Torvalds , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] dma mapping fixes for 4.17-rc3 Message-ID: <20180425065930.GA16791@infradead.org> References: <20180425052225.GA2350@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 11:54:26PM -0700, David Rientjes wrote: > Shouldn't that test for dev->coherent_dma_mask < DMA_BIT_MASK(32) be more > accurately <=? No, it should really be <. The exactly 32-bit case is already covered with GFP_DMA32. Eventualy it should be < 24-bit with a separate GFP_DMA32 case for > 32-bit && < 64-bit. Takashi has been working on that, but it is 4.18 material.