Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp491691ybl; Fri, 31 Jan 2020 02:43:02 -0800 (PST) X-Google-Smtp-Source: APXvYqymJhb+5wYik1qWDjvxI1EubMn1tXt+JC5lQeHf2Ntsn9J+QUuJpyeIazc2s6PL/QUR/GHA X-Received: by 2002:a05:6830:1248:: with SMTP id s8mr7056654otp.202.1580467382481; Fri, 31 Jan 2020 02:43:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580467382; cv=none; d=google.com; s=arc-20160816; b=Uv1v57o7O5sFdjFmvJ2BkOWehNSUuhXYvsJ/iMWJepVTkYz+0UdpO1gGRgcSB9Q/vI VATc2OcBu7Df2yeEBRvm6owG4bVoS4cwxGRC+jMmPDqnmXKr+yS3ZxoldNxVCEfZUjbL pqLplDGIB6WsBQuqSOwvtGNXSrbSHn5AHOcWssDm8PruA2FDL3KwKtKJrPCjwVprLuQf Tad78lrqrEsIK1sUiUSfmzzoh8QmJtynZGUviFyOBps419xSDtkv6prrxc8QpyLx63Ld 0o7ezsX2DU10s8/7LzktnCN0rPc6+GBc/JoMf/+gso9xIHeknlULdecLXT1mfSLEdkIr y2kA== 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=UA+N7dIYzSbTRQQWsYnJWLAFxjzI57XbnwVqyfnLqYA=; b=VsnJc61BKFsFHPmAP4YLeoZho4o6+yUQSDSRPLCI1ZL/OBMuKaZl2Dyb3s9p5lD1r6 g4x7YZK4vA7q0i/3hW/USWbSBt3ZekxJoQd/xCIE9kamYQvTMEC3WN2amF3D8L3lvSLi QCmFEsF8cafqQcEwLJuNvN2+A8KZ6SfZtSv6w/dFWXE7l2b3YqpKq6sBNStuznQAL4iQ Z3xsvgrW6YpDdDxtUAM2UjvbTApc7WY1hjmXeqOuuyQ0kQcNJOk9it6yidXdCYi8Nm7Y nEjacTaaNqAHY5QnG7KazAgAghDruUMGSN++BETd0T+xDu9oyY89qm1kyoFILgyOxMjz 15rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=Rti07r8w; 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 f22si4624088otp.145.2020.01.31.02.42.50; Fri, 31 Jan 2020 02:43:02 -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=Rti07r8w; 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 S1728442AbgAaKkX (ORCPT + 99 others); Fri, 31 Jan 2020 05:40:23 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:51609 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728368AbgAaKkV (ORCPT ); Fri, 31 Jan 2020 05:40:21 -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 488DJL5K8vz9sSP; Fri, 31 Jan 2020 21:40:18 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1580467218; bh=NpDbQvQ6a1gVpANE05CiJvGMkImEaOzhU76R7vlCsyM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Rti07r8wsEq5Cv2Oll1n+7tK55v/64zehHtajY+SpSJnAkMxgHfhLqY+HDr6VcpLS 8GUBZZQXne2NFCa3W1n7IiZmmOPgIg1pd2M/blkyTI8Drd/eqCh0OexnldSyBoWAeH SJlXSM1rAlKhvco/yHCRsXmQq6yVKFauxYBbAHMMLqNS0Ya/PRDsOjD6NK1Kr8vPyF xtknii2clX37PXMKAssNCLCMwtOLIEtWdt13YEyv5xtr+7YZLUQixrz65ZPrFIyE0D VN3gvs/J48BWFxpdiIRy0/b6Xl8CfC6mfgW9uxqAnAMn9tm/u8+uw0rR6mHly/IxeY 9HsYkw22XFWSg== From: Michael Ellerman To: Rob Herring Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, hch@lst.de, ulf.hansson@linaro.org, chzigotzky@xenosoft.de, linuxppc-dev@ozlabs.org Subject: Re: [PATCH] of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc In-Reply-To: <20200128142646.GA17341@bogus> References: <20200126115247.13402-1-mpe@ellerman.id.au> <20200128142646.GA17341@bogus> Date: Fri, 31 Jan 2020 21:40:17 +1100 Message-ID: <87k157gb8u.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 Rob Herring writes: > On Sun, 26 Jan 2020 22:52:47 +1100, 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 >> --- >> arch/powerpc/Kconfig | 1 + >> drivers/of/Kconfig | 4 ++++ >> drivers/of/address.c | 6 +++++- >> 3 files changed, 10 insertions(+), 1 deletion(-) >> > > Applied, thanks. Thanks. cheers