lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+7wUsy80+5XJnbt5yXe-GYjD6V7Ea_wrAxu0Gwwh2kLs2fibQ@mail.gmail.com>
Date:   Tue, 13 Feb 2018 16:22:50 +0100
From:   Mathieu Malaterre <malat@...ian.org>
To:     Christoph Hellwig <hch@....de>
Cc:     Meelis Roos <mroos@...ux.ee>, iommu@...ts.linux-foundation.org,
        linuxppc-dev <linuxppc-dev@...ts.ozlabs.org>,
        Linux Kernel list <linux-kernel@...r.kernel.org>
Subject: Re: pata-macio WARNING at dmam_alloc_coherent+0xec/0x110

Hi,

On Tue, Feb 13, 2018 at 3:51 PM, Christoph Hellwig <hch@....de> wrote:
> 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;

Indeed, Thanks much! If needed:

Tested-by: Mathieu Malaterre <malat@...ian.org>

System: Mac Mini G4

ref:
https://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg128662.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ