Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp491497ybl; Fri, 31 Jan 2020 02:42:48 -0800 (PST) X-Google-Smtp-Source: APXvYqy9KztX2uEy7wf5hfrLHQpnW0bcrQ0OInUQ6uqzv/T4gVdcKaWci9MwRWuDRf6U7YgmwWRF X-Received: by 2002:aca:ab0f:: with SMTP id u15mr5967153oie.26.1580467368045; Fri, 31 Jan 2020 02:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580467368; cv=none; d=google.com; s=arc-20160816; b=AbQ0Sg48VsvzJs4EV5Z3tTCjNByk7j0+RLOImcydnHej/20aWT/3DC9TOPDk3hMftv WoNwuXNoOxczMNFf/l1uQL8OF19bMJBjRp8/y8BPNQYw3bpOWNAnJOrtv+buqgx6h7bu l4AHS6yk7jUv9EFqDOXsS9y/YU4GfNFeSizNauWYx3HozvD36Z0frfRs/GoV2DVSGCdv UreX0J+fH5Y5SXw6JUmt0XC4o9GQaUJJneykYWfr2MI2a1yUJO7m4nQuIKh2IN39FI05 oSvOhCECSiiHlW4AIMD3/n2HTva26KUaLRe9KqUvWqpq4dvVqbKd5AOzlN4tpkg95jEy 5ptw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=t+s8IXmWy8smiLWcBN6/ROFxyXt50DgN0gQz63dthJs=; b=Lcz1I4Rhy9/R2SrtnKEeSjqyJbQEeJNaWuUDxJlUI6wcQQUxM6pZTJDjComDuE79Bt QmDSi5ItwjVCFZDG9gA38rsY/3BvhI7Tk3a0BHD3B3ZOu0Rnk1pdR5rYrCXkn4im+z34 WR8Jmc4Mq4lUe+b2sQtaIBRTu67q+xgS8JdYm9u5KtD+F2Djr3dmlz4CykfOtp5/8ldE HAFAzDbKi5bXxPvfX/Eyh2JI6rvYmtJhxDptGsNvHJScHBeZoN6Lw7gaXhwKN99hmXLm +p7IDzsvM3c2qYmbXlSy1sdxjTm/LbgLwjc9yVUtnuYa8g5mELJ60e00TAlpJnntaQOU UBqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=eh+m0Uxt; 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 r6si4446326otn.216.2020.01.31.02.42.36; Fri, 31 Jan 2020 02:42:48 -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; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=eh+m0Uxt; 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 S1728625AbgAaKkM (ORCPT + 99 others); Fri, 31 Jan 2020 05:40:12 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:33137 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728326AbgAaKkI (ORCPT ); Fri, 31 Jan 2020 05:40:08 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 488DJ44WsFz9sSL; Fri, 31 Jan 2020 21:40:04 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1580467205; bh=t+s8IXmWy8smiLWcBN6/ROFxyXt50DgN0gQz63dthJs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=eh+m0UxtIKLSkLBM2+h1bfL7Sqbjt8HBh90YjNP4Rmh6apty+6QHqyakuoH5MivVz 1AVKSBRjL4LLJxYAl/MbKqfCvv7dlmlQ6zFRm90onc7za6+2tOMXKp6klsaVfIq9vc l4maU/5MoO05LVVvrZgtcp3TeOxB4UDWJWqbHDIIv6HbF4+Wr+3V1c8b9qylp07DNm ojI0PSCZuUcvtUyjvaKSz0thr/fU3zRP6IN1Zs+XS8a6UCXgSpJ6JHGcfwPv0HOaT0 nT25LXzSCa8/P8EYPWAJnD3Lm8cx6b9d+AnPDb3FU0X/e6RCQKy5rD167sAdsreVgM 6aAYUdIeub9fQ== From: Michael Ellerman To: Ulf Hansson Cc: Rob Herring , DTML , Linux Kernel Mailing List , Christoph Hellwig , Christian Zigotzky , linuxppc-dev@ozlabs.org Subject: Re: [PATCH] of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc In-Reply-To: References: <20200126115247.13402-1-mpe@ellerman.id.au> Date: Fri, 31 Jan 2020 21:40:03 +1100 Message-ID: <87mua3gb98.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ulf Hansson writes: > On Sun, 26 Jan 2020 at 12:53, Michael Ellerman wrote: >> There's an OF helper called of_dma_is_coherent(), which checks if a >> device has a "dma-coherent" property to see if the device is coherent >> for DMA. >> >> But on some platforms devices are coherent by default, and on some >> platforms it's not possible to update existing device trees to add the >> "dma-coherent" property. >> >> So add a Kconfig symbol to allow arch code to tell >> of_dma_is_coherent() that devices are coherent by default, regardless >> of the presence of the property. >> >> Select that symbol on powerpc when NOT_COHERENT_CACHE is not set, ie. >> when the system has a coherent cache. >> >> Fixes: 92ea637edea3 ("of: introduce of_dma_is_coherent() helper") >> Cc: stable@vger.kernel.org # v3.16+ >> Reported-by: Christian Zigotzky >> Tested-by: Christian Zigotzky >> Signed-off-by: Michael Ellerman > > Thanks Michael for helping out fixing and this! The patch looks good to me. > > Reviewed-by: Ulf Hansson Thanks for the review. cheers