From patchwork Thu Jun 2 15:39:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9170747 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D169607DA for ; Fri, 10 Jun 2016 23:37:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1DF528325 for ; Fri, 10 Jun 2016 23:37:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E61012835E; Fri, 10 Jun 2016 23:37:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4E2CB28325 for ; Fri, 10 Jun 2016 23:37:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBVzv-0004bf-Sh; Fri, 10 Jun 2016 23:37:55 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8Ujr-0001Jf-Ea; Thu, 02 Jun 2016 15:40:52 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O85005W8I7F2K10@mailout3.w1.samsung.com>; Thu, 02 Jun 2016 16:40:28 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-b8-5750536bd9e9 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 63.F9.05254.B6350575; Thu, 2 Jun 2016 16:40:27 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O85008BCI6FXK50@eusync1.samsung.com>; Thu, 02 Jun 2016 16:40:27 +0100 (BST) From: Krzysztof Kozlowski To: Richard Henderson , Ivan Kokshaysky , Matt Turner , Vineet Gupta , Russell King , Stefano Stabellini , Catalin Marinas , Will Deacon , Haavard Skinnemoen , Hans-Christian Egtvedt , Steven Miao , Mark Salter , Aurelien Jacquiot , Mikael Starvik , Jesper Nilsson , Yoshinori Sato , Richard Kuo , Tony Luck , Fenghua Yu , Konrad Rzeszutek Wilk , Geert Uytterhoeven , James Hogan , Michal Simek , Ralf Baechle , David Howells , Ley Foon Tan , Jonas Bonn , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Arnd Bergmann , Olof Johansson , Geoff Levand , Martin Schwidefsky , Guan Xuetao , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Boris Ostrovsky , David Vrabel , Juergen Gross , Muli Ben-Yehuda , Bjorn Helgaas , David Airlie , Joerg Roedel , David Woodhouse , Andrew Morton , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, xen-devel@lists.xenproject.org, adi-buildroot-devel@lists.sourceforge.net, linux-c6x-dev@linux-c6x.org, linux-cris-kernel@axis.com, uclinux-h8-devel@lists.sourceforge.jp, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-metag@vger.kernel.org, linux-mips@linux-mips.org, linux-am33-list@redhat.com, nios2-dev@lists.rocketboards.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, discuss@x86-64.org, linux-pci@vger.kernel.org, linux-xtensa@linux-xtensa.org, dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-rdma@vger.kernel.org, iommu@lists.linux-foundation.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: [RFC v3 01/45] powerpc: dma-mapping: Don't hard-code the value of DMA_ATTR_WEAK_ORDERING Date: Thu, 02 Jun 2016 17:39:03 +0200 Message-id: <1464881987-13203-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1464881987-13203-1-git-send-email-k.kozlowski@samsung.com> References: <1464881987-13203-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzVSe0xTZxT3u999FLLGm/q6cQZNM+MjikMdOSox+s+8iVFRVBISH7VeQaFA WlDZ5tZRC1OBtSA+KCLSyktoKcSEkiDrjaFYrdJgypyiCyJI2KAQUVOkrpT53+91cn45ORIs e0ktlpxMzxLU6Yo0OR1JPgy6etamJsQnflt35zu44JhiwNWkpaHw8QMCym0NNEwXdzJgv2aj wJ+rx2DJTQHvVT0JY9UFCGpqd8GriecIRnOnSAj++w+Gp5NjNBjrSjBcsvYzkHdlO5QPeRAM /tVOgGV4Kzj/fM/AQ0MVAVfsi+DjpC406LZjqOzYAqMVbzG8stZTMCSWYSh/th4+XfcTcMHU xMDI2xioNr9B8MbwgobRvvsIyjr6SGh+7aPA2OFh4L7JQEDtHSuGW3kWErqK/BSMnW+lwf/b KAU9beU01Aw0YihouhuiOu9Mq3wSDKXFDJgsv5PQ7+4mwFPhomFQLCRh4u/PGAy3dBiuPbkX usenyxj0LxoJqPM0MiCWtiOY+hCktiXxA84Kgte3G2i+oaIB8T0+L+anAsWI77XG8yMlhpBU VEjwzn6R5quGtSTvKOtjeP/4Yb6yOZs3lfoQX+B4hPiW2tXxsUmRcceFtJOnBfW6rUcjU6ye ApQ5TZ8tszuwFr2jLqIICcdu5IIfuplZvJDrfmmjL6JIiYy9jbh84zgxS34luAlLL5pJ0ewG rqXGEk7NZ+0cp33txTMGZn/ihl2BcGgeq+SeFlaFdZJdzpnrnWFdyu7gHF2T/6+L4h50loRr RLA8Z7HVkTNYFsp4dS2UAUkr0Zx6tEDIVmZqjiWrYqI1CpUmOz05WpmhakazX/euFZk7N4uI lSD5V9LaVXsSZZTitCZHJSJOguXzpXm74hNl0uOKnB8EdcYRdXaaoBHR1xJSvkh6o21sv4xN VmQJqYKQKai/uIQkYrEWfXPdzbl1rc+r1WDMSJobTXafyPJOxGzrZS7ZVjxz7PyxSN2Hvzed aYqK1o+nTF8+FetbM+gKlIq7d0dt7jIeam4biHMuSfj5Zo7mjwNLPVansvFjqtu3snrTPjir DMoyYl02lZgwEli2J/D+lxsH8w+sWrp3Sdy57WYcN3TTTMlJTYoiZjVWaxT/AUptZkBxAwAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160602_084051_690161_478C3007 X-CRM114-Status: GOOD ( 15.94 ) X-Mailman-Approved-At: Fri, 10 Jun 2016 16:37:14 -0700 X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: hch@infradead.org, Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hard-coded value of DMA_ATTR_WEAK_ORDERING is then compared with the symbol. This will stop matching if the value of symbol is changed (when switching DMA attributes to unsigned long). Signed-off-by: Krzysztof Kozlowski --- arch/powerpc/platforms/cell/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index 14a582b21274..0c2794d2b6c0 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c @@ -1162,7 +1162,7 @@ static int __init setup_iommu_fixed(char *str) pciep = of_find_node_by_type(NULL, "pcie-endpoint"); if (strcmp(str, "weak") == 0 || (pciep && strcmp(str, "strong") != 0)) - iommu_fixed_is_weak = 1; + iommu_fixed_is_weak = DMA_ATTR_WEAK_ORDERING; of_node_put(pciep);