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 X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4445CC004C9 for ; Tue, 7 May 2019 06:36:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1BD302087F for ; Tue, 7 May 2019 06:36:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726412AbfEGGgj (ORCPT ); Tue, 7 May 2019 02:36:39 -0400 Received: from verein.lst.de ([213.95.11.211]:57698 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726313AbfEGGgj (ORCPT ); Tue, 7 May 2019 02:36:39 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 0A8B967358; Tue, 7 May 2019 08:36:19 +0200 (CEST) Date: Tue, 7 May 2019 08:36:18 +0200 From: Christoph Hellwig To: Bartlomiej Zolnierkiewicz Cc: Christoph Hellwig , Ralf Baechle , Paul Burton , James Hogan , Ley Foon Tan , Michal Simek , linux-mips@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH 2/7] au1100fb: fix DMA API abuse Message-ID: <20190507063618.GA28147@lst.de> References: <20190430110032.25301-1-hch@lst.de> <20190430110032.25301-3-hch@lst.de> <7a63eeae-4ec3-c82e-c497-8adc7bcb3cea@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7a63eeae-4ec3-c82e-c497-8adc7bcb3cea@samsung.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org On Mon, May 06, 2019 at 03:49:35PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On 04/30/2019 01:00 PM, Christoph Hellwig wrote: > > Virtual addresses return from dma(m)_alloc_coherent are opaque in what > > backs then, and drivers must not poke into them. Switch the driver > > to use the generic DMA API mmap helper to avoid these games. > > > > Signed-off-by: Christoph Hellwig > > Acked-by: Bartlomiej Zolnierkiewicz Given this actually fixes issues with the current driver, what do you think of taking it for 5.2 through your tree? Also au1200fb has basically the same issues, just without abusing the CAC_ADDR helper, I could send you a patch for that one as well.