From mboxrd@z Thu Jan 1 00:00:00 1970 From: Meelis Roos Subject: Re: pata-macio WARNING at dmam_alloc_coherent+0xec/0x110 Date: Tue, 13 Feb 2018 18:46:20 +0200 (EET) Message-ID: References: <20180213145120.GA14657@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20180213145120.GA14657@lst.de> Sender: linux-kernel-owner@vger.kernel.org To: Christoph Hellwig Cc: linuxppc-dev@lists.ozlabs.org, iommu@lists.linux-foundation.org, Linux Kernel list List-Id: iommu@lists.linux-foundation.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)