Received: by 10.223.185.116 with SMTP id b49csp2911316wrg; Mon, 12 Feb 2018 17:46:43 -0800 (PST) X-Google-Smtp-Source: AH8x227VuDONxwGbc90/m4Oa0N0m4qP5Jr7lZHL4tUnkwgWmrHDctNadvIbsZPQaFjjUsE/GQF8G X-Received: by 2002:a17:902:848c:: with SMTP id c12-v6mr12695659plo.329.1518486403132; Mon, 12 Feb 2018 17:46:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518486403; cv=none; d=google.com; s=arc-20160816; b=gDoOQ4VdjvVKlkxB9VIak9Ulfr4Kw5KhZbZ7qF2azjagvMFpxNXQvZa6gRdhcpsUR3 M1l6YCrhX7IwCPewn5CtWO3FGpdoos2sUzaDgsHsWGCgIX7+c+GSps33PhGpz2E/XTJL YWhQ5C+QoX5CeFYAdSfss9IuFfxOruhe8veb6pBBovOGg2hj99Ty0m9QF/RAo6+gEDof f9MKAhnyBUywo6mL2W7BCMiKrlNwUlHIwot6tuPzoMHLovrL1//171k3YX13uylVCKhH pY61NAbVUq6/KJzTJ4+BHlFjmFn5Iof973HpteW3i1SUGGWHhyXRNnCxFrg5c28cC7WC coYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=3gRqEDZ2q3wvTN4CUONPhSPrTbV2wTrY0raHTe2c5Kk=; b=fLm4QG0PGj+lwLI6Tkr0lk8SJ+3T/wn0H0zQTmrXIwN+ipyWye6r3k+5IXYBQK5osl Sdgc5sd5YtaBL09N6YHCJCFFk6BEqz7LmicrPmlU76nDBDqGpirg7LTtgqL3D/dOxOBJ X0wnuN33hRxnP5tIy1LJVjzjboJwPOehiZ6W8tqg0nGaZj+uV33S+PJstoPd3hMRHoK6 +iv9Mm14re6m7Xc71skJjze5nwkGsuoJL/u6lh/j5/uILRkFBDAySTUNyRdZmc5JbNR2 CM7FEGCrs/au94NzSFPHlz2QprC/ZfkkdJQF1Lk6hvmgka2zAjJFGsHhg+uR9UFpsAWH MFnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si772482pgr.271.2018.02.12.17.46.28; Mon, 12 Feb 2018 17:46:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933254AbeBMBps (ORCPT + 99 others); Mon, 12 Feb 2018 20:45:48 -0500 Received: from verein.lst.de ([213.95.11.211]:42727 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933102AbeBMBpr (ORCPT ); Mon, 12 Feb 2018 20:45:47 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 8A34768D10; Tue, 13 Feb 2018 02:45:46 +0100 (CET) Date: Tue, 13 Feb 2018 02:45:46 +0100 From: Christoph Hellwig To: Meelis Roos Cc: Christoph Hellwig , linuxppc-dev@lists.ozlabs.org, iommu@lists.linux-foundation.org, Linux Kernel list Subject: Re: pata-macio WARNING at dmam_alloc_coherent+0xec/0x110 Message-ID: <20180213014546.GB3303@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 10:52:46PM +0200, Meelis Roos wrote: > I tested 4.16-rc1 on my PowerMac G4 and got the following warning from > macio pata driver. Since pata-macio has no recent changes, dma-mapping.h > changes seem to be related. Thje are, as they add just that warning. But the root cause looks older, and that is that the macio bus doesn't seem to to set the dma coherent mask, which could cause all kinds of hidden issues. I'm travelling right now, but unless someone beats me to it I'll look into a patch to properly set the coherent mask ASAP.