From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Zhao Subject: Re: [PATCH] drm/ttm: properly unmap dma page upon failure Date: Sat, 6 Jul 2019 11:33:09 -0600 Message-ID: <20190706173309.GA111051@google.com> References: <20190325202250.212801-1-yuzhao@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20190325202250.212801-1-yuzhao@google.com> Sender: linux-kernel-owner@vger.kernel.org To: Christian Koenig , Huang Rui , Junwei Zhang , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org On Mon, Mar 25, 2019 at 02:22:50PM -0600, Yu Zhao wrote: > dma_unmap_page() must be called with exactly the same dma address > and size returned by dma_map_page(). Otherwise, the function may > fail. > > This is at least the case for debug_dma_unmap_page() and AMD iommu > unmap_page callback. Hi, can we please take this fix? Thanks.