Received: by 10.223.185.116 with SMTP id b49csp3725158wrg; Tue, 13 Feb 2018 06:52:21 -0800 (PST) X-Google-Smtp-Source: AH8x22768OQwxEcGmIA7OywOnqZWdJfmn5q61NVgsCEvXNAAckbwAY1TtEuNmBS/t8CZkbcxxVKj X-Received: by 10.101.93.142 with SMTP id f14mr1177225pgt.82.1518533541704; Tue, 13 Feb 2018 06:52:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518533541; cv=none; d=google.com; s=arc-20160816; b=HKELaUpZMjOVbGBh27Xx23HV1zM+wLWTXrPTz84bvoaHl9AocMpI8iSGzJu7QRlfzP 5IXMh+iMleD18Wv+5WIizr31veZWGnT6Verp3S2zyOa23kBLz2Uom4a6cKnaFEMT37Pb 2Ibh3LxEPu36sJNt5qqa8SgwmDuigzrQjlW+ZHM8dsf6Hl4TvY9fqat7Bg4ZvzTee2vU wdMPt8ctL7+JhYL/Rtpgqx04ul5232dowUivvaEQIS4CvN0D07GT9VDHmHsDKm8m7UsX 8Z2mvGRyGEme8MLBjFRehZS0/TmRZEW7VzHfLKaziNmhAKJ/CinmXjJ505Eq5JQJiQf2 QmHw== 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=2nXt+8BN3OWmO2fPrGvEqtGH7vC3JyKrA6ZBqAwvyTI=; b=j8cwDXlW1K96NgqAKPMsUr01Lxi7waCJrPuup5fc9heEPCNv8OQH8yh3byUHLOsH2Q Sc3WEJLdXgxfomQ0zQWn4jCY0692Q+frnNWm08ptCjg0TRskitMRR03HfV7d4PpbYbqA UGjNzoWrvZ8IXZv6ON5k1A0FpDiFjIEySh2ukxG1EeS5tNo9E01DkrXQ+AXMv9mIKuMP j1y4f6Cblfmc/M9zZd+5oH1UDkzhx0h4ptZQx92tVarZfwYDpEedvUXmkZZ3vjB/wyel wMQZf2W8gBLkRNDnm6saFdLpOQVbTS8wbFKiemf2WZzgqzKJDKBTZ0FNkGa+hc1HQxK6 CXiQ== 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 h62si6600142pge.13.2018.02.13.06.52.06; Tue, 13 Feb 2018 06:52:21 -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 S935478AbeBMOvX (ORCPT + 99 others); Tue, 13 Feb 2018 09:51:23 -0500 Received: from verein.lst.de ([213.95.11.211]:45400 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935258AbeBMOvW (ORCPT ); Tue, 13 Feb 2018 09:51:22 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id DCEFA6FAC4; Tue, 13 Feb 2018 15:51:20 +0100 (CET) Date: Tue, 13 Feb 2018 15:51:20 +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: <20180213145120.GA14657@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 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;