lkml.org 
[lkml]   [2022]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 6.0 659/862] ARM/dma-mappіng: d ont override ->dma coherent when set from a bus notifier
    From
    On 10/19/22 15:32, Greg Kroah-Hartman wrote:
    > From: Christoph Hellwig <hch@lst.de>
    >
    > [ Upstream commit 49bc8bebae79c8516cb12f91818f3a7907e3ebce ]
    >
    > Commit ae626eb97376 ("ARM/dma-mapping: use dma-direct unconditionally")
    > caused a regression on the mvebu platform, wherein devices that are
    > dma-coherent are marked as dma-noncoherent, because although
    > mvebu_hwcc_notifier() after that commit still marks then as coherent,
    > the arm_coherent_dma_ops() function, which is called later, overwrites
    > this setting, since it is being called from drivers/of/device.c with
    > coherency parameter determined by of_dma_is_coherent(), and the
    > device-trees do not declare the 'dma-coherent' property.
    >
    > Fix this by defaulting never clearing the dma_coherent flag in
    > arm_coherent_dma_ops().
    >

    The patch subject looks mangled, right?

    --
    An old man doll... just what I always wanted! - Clara

    \
     
     \ /
      Last update: 2022-10-20 03:46    [W:3.005 / U:1.400 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site