Received: by 10.223.185.116 with SMTP id b49csp3857646wrg; Tue, 13 Feb 2018 08:47:52 -0800 (PST) X-Google-Smtp-Source: AH8x2279ZatRE7m7gzIOnzE5qr2/Zi3hRhFwdt7yVvvU2c5HMFUjS4Szt+sWxbbF/hPjtOXC9op5 X-Received: by 10.98.66.86 with SMTP id p83mr1820999pfa.229.1518540472528; Tue, 13 Feb 2018 08:47:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518540472; cv=none; d=google.com; s=arc-20160816; b=OOGWupVxmCbr1XNGJSrsr4fWqVp0tN+lH8+7qToGeAky3ZzcXQ9HMcJcHiYLXsVqd9 Lk2EVby+6eubWcyIuc70R32XOngOHqGf2eBmzO3mRf4plLvi3nsonrC9Yh1xjQyxhqRf 968yqOJeScWPQWkqU9rRI6c04R9b3uT5j0j+qG/pInZME/xUgG6aDpuKqlVXS7r3fPs0 Rg8Iob9qoErOrA6lJUDpwgP7qgFERpsWKGZmQvwnG5KxC/O7UMjgyg69bhAWuHp+WqTb HeWLlwYYUHZDH4Ed7+kR+ojCbxdM8EPb75F4YWhT6IluLTF07NFfnHkJvGgO7kxmuluk /19A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=YUhUHmHuABbamhJxkFjsYHaJaACj0SsBRwPNHyxWJGM=; b=WSm+zxWU+UJtxbYW5aUME0oUIZIPaB+1ahA4mxxmcrXHigVFKZZbxSwxExelM+w0zN qr7C64YDF1lg5qHr88j8UX/ZP42KThZsk2kgE5+PvfHsHQ96GQCjvkIjkD6CxgWJPn/H lBtvvr3geYK9vTmbcqx5Vjeva/+dSOSzM/FY9eA2prAa2vBoXNhyEra/CSYdc+vXM6nB E5Mhe4RziqrzjV1mzOsAOtrMVFRK1C9+/v8MDOPV4+Ts0kV9imiqCEP0p6cMPQi3y097 82UQassSej19QZOxgUI/68a4L5qJwypjMQgZYVJEWXXwoAnnKtMn5O+qG3ZroNRusXc/ 68Sw== 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 31-v6si7592615pli.832.2018.02.13.08.47.38; Tue, 13 Feb 2018 08:47:52 -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 S934615AbeBMQqZ (ORCPT + 99 others); Tue, 13 Feb 2018 11:46:25 -0500 Received: from smtp1.it.da.ut.ee ([193.40.5.66]:41984 "EHLO smtp1.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934360AbeBMQqY (ORCPT ); Tue, 13 Feb 2018 11:46:24 -0500 Received: from math.ut.ee (unknown [IPv6:2001:bb8:2002:2400:5054:ff:fe3b:8db9]) by smtp1.it.da.ut.ee (Postfix) with ESMTP id 302CB90015; Tue, 13 Feb 2018 18:46:23 +0200 (EET) Received: by math.ut.ee (Postfix, from userid 1014) id 14C55221E35; Tue, 13 Feb 2018 18:46:21 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by math.ut.ee (Postfix) with ESMTP id 05C5A2208CA; Tue, 13 Feb 2018 18:46:20 +0200 (EET) Date: Tue, 13 Feb 2018 18:46:20 +0200 (EET) From: Meelis Roos To: Christoph Hellwig cc: linuxppc-dev@lists.ozlabs.org, iommu@lists.linux-foundation.org, Linux Kernel list Subject: Re: pata-macio WARNING at dmam_alloc_coherent+0xec/0x110 In-Reply-To: <20180213145120.GA14657@lst.de> Message-ID: References: <20180213145120.GA14657@lst.de> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Does this fix your warning? > > diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c > index 62f541f968f6..07074820a167 100644 > --- a/drivers/macintosh/macio_asic.c > +++ b/drivers/macintosh/macio_asic.c > @@ -375,6 +375,7 @@ static struct macio_dev * macio_add_one_device(struct macio_chip *chip, > dev->ofdev.dev.of_node = np; > dev->ofdev.archdata.dma_mask = 0xffffffffUL; > dev->ofdev.dev.dma_mask = &dev->ofdev.archdata.dma_mask; > + dev->ofdev.dev.coherent_dma_mask = dev->ofdev.archdata.dma_mask; > dev->ofdev.dev.parent = parent; > dev->ofdev.dev.bus = &macio_bus_type; > dev->ofdev.dev.release = macio_release_dev; Yes, it does - thank you! Tested-by: Meelis Roos -- Meelis Roos (mroos@linux.ee)