From patchwork Fri Jan 20 06:59:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tang yuantian X-Patchwork-Id: 9527563 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 30B8C60113 for ; Fri, 20 Jan 2017 07:13:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21A63285CD for ; Fri, 20 Jan 2017 07:13:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16A622860A; Fri, 20 Jan 2017 07:13:26 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00 autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A2EBE285CD for ; Fri, 20 Jan 2017 07:13:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cUTNy-0007Gb-AX; Fri, 20 Jan 2017 07:13:22 +0000 Received: from mail-bn3nam01on0054.outbound.protection.outlook.com ([104.47.33.54] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUTNu-00078y-Af for linux-arm-kernel@lists.infradead.org; Fri, 20 Jan 2017 07:13:20 +0000 Received: from BN6PR03CA0007.namprd03.prod.outlook.com (10.168.230.145) by MWHPR03MB2480.namprd03.prod.outlook.com (10.169.200.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Fri, 20 Jan 2017 07:12:55 +0000 Received: from BN1AFFO11OLC004.protection.gbl (2a01:111:f400:7c10::187) by BN6PR03CA0007.outlook.office365.com (2603:10b6:404:23::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Fri, 20 Jan 2017 07:12:55 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11OLC004.mail.protection.outlook.com (10.58.53.75) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Fri, 20 Jan 2017 07:12:50 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v0K7Cjtv019439; Fri, 20 Jan 2017 00:12:46 -0700 From: To: Subject: [PATCH 1/3 v2] ahci: qoriq: added a condition to enable dma coherence Date: Fri, 20 Jan 2017 14:59:34 +0800 Message-ID: <1484895576-40379-1-git-send-email-yuantian.tang@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131293699759433624; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7916002)(39410400002)(39850400002)(39400400002)(39860400002)(39450400003)(39840400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(4326007)(92566002)(33646002)(2876002)(626004)(5660300001)(50226002)(97736004)(356003)(2906002)(53936002)(6916009)(8936002)(305945005)(54906002)(47776003)(86152003)(86362001)(8656002)(68736007)(110136003)(105606002)(38730400001)(36756003)(81156014)(48376002)(106466001)(6666003)(81166006)(5003940100001)(2351001)(77096006)(50466002)(50986999)(8676002)(7416002)(189998001)(85426001)(104016004); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2480; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC004; 1:svqqN8wRnVnRheMyzJ4SiEyqNDU0lt6veuKrzUWV+45jzHPH7qLBDvlrc0nwr0Mneb2zr5LgBiWv4c3IE322YcAwAY0N/0oWfNbaUZcLjmBQpBTHtR49nmI9asHG6pn1Sz/LWsycKtfmfxIAUuUIDj1NDfzqVrIS6aUSyHujhjFcAVWF8/f+GM15QIknnJuGFLZJXqG53he1Cz/NaivQqoogKUCjPDaFwYIpILXfCMLymrefO2Th/Ntog8Mg77vizdtHgAYFFzHiWyD1fmXqW6JNKnFi+Kf1026IV7VJ4Te0pJyXEHGHn4Gkpyf2IPLU+HUI01alGaRJRKTKr3CnjtBlA8xFx5zB10OPdLBW1+iENhCKiNRn4RqHtceIBKiRgMljh03A+bPhEicmqLp9/ekoen8n9Wo6+q5/wtQzdo2VF4FxkHf7GgBJPcMCuZv7iuxtsTlY3WlIV0CoDqV7KlyaVJNtQwl+djQXoFb1DNlUOSop8uxoVfLG8S6X7w9ADhdnIBCWCx9bRGcWhd30A1rAAdpa81Zow99AhA4g9sAHXrGrCvUpz4aoKLL1Vjg2Ni4ybjcid1/RXNbtOMqpmUF8S+Bk5Oh728Fi213t+jYphjk1QOyu/AjjFHW0WIM+fToS1TFnQ+sDeamW1xBU/X8B2ONIvED2W3o370sjIctiddwjWQzPxPlgRuOeYUbMa2qLq7WgJFpzfYC15gHV7TuVs1MijwHM/ZSb2KohgaQ= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: c610c0e4-6af8-44ef-5cb0-08d44103c1cc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR03MB2480; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2480; 3:7v8gBSWweCCuJtRuq3woYs1fNyU4TjLJGQNVvjtvNtx+sPAQ3+UweGY1izn8L5U7QuuYfU9gFmfOpmrF2ENFoKS2vP8lLKg9Q7WW71EOyOKP4Q0yflpSkerwY8H9obMKAh/JpEQmhFHlo8wFNl8xTXKl8Hn7EVsv6imh9tpDT9ioBZ0G2BI0PjxlkmrYpEr2g2tjneekLc/Kbsipy0GW3gNSkGORDUNN8WCuNml/8NDJwlrJXJdikmTpVJEzV7oyqbZQLXeNvPJ5dRVUOETbADABhGVPwz3Dv1hm7pw7XY5iXb+4uaY0D3/4Ar7tpjKtfIAg7dcnrN1Lc6bEfVsTwuoFKq/TJe4OEW/91iIuwSq5PKFH/c1M6hfhZ+cygJ6M; 25:CxzpdoxgHcSziSi3ig8gN50l3HLjOOLaSyo3gfSjzvGZ12DaSV22pieTS/5WzQx+kTZokn4sYZ+ftqRFRQxFgp3gYRLObi7R5Shl65Eq/O1sxySwnG1ZZCYzMALvnyXif9AWPp6VsUpPZ//Xo7458bqF+Z5gGl8kZNaO+2ks7mXbfMcSOzfTmY1UgkKUC18PQNgd6dJgHQEqmgMpBg5s+Tw5kKaAp/3bMQKCeuQSqE/3SmvLS+HPrj+JiLbaBVOLP2w9WZiMhym/ncOFwDP8iwRo07e0VI9Q35P3S79DSIZBrPjWdN2DYm8Qni1mj3TEsC4iQysYd3nCadYq+5CCpZ1ybkvxaHSQwasg4/oTYPF/dbAbJQrmovwFd5dd3HndmK7vGBZ/nG0xLBuPlZ2punB2ZNRXD0dXEh4+x+jSxFSlOiw5EEla04DIJd9qki5ZJuKCVDf7l/gfRB1VeM4f3g== X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2480; 31:w5ShhNZaBuARXvL5e5C+oSuiXFbRBot3gVC16nZSUBQKslxKX5eoMe0JC2q3tjWVNY3pcwaKo/8+friXVh9CrTPsbIc+tBhLAPEuYDyFVe0EFKeFsx1gjzIxxeYRdQjvvUTsFoQP30QaBI6EtjljQBXsINh7tU5KrtyYCehyEGR1GrOQ6GpKnFmqWonHXWKrjrven8p3slr966X2kUKAptTwL/22o5BAzuD6Y1sUc3CfHtBAhuSUVL7v6rGMIiF5hKSOLd7l33w2z2d4E9momA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13024025)(13023025)(13015025)(13018025)(13017025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(20161123559025)(20161123565025); SRVR:MWHPR03MB2480; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2480; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2480; 4:wxD7sHRbWZ7DoKvCPbI7SHpUbITiVC+//sX60LePjDaX6/ymf4S/ybG5y1ujfJt7w5PlsUxXUYjZuORJ5l7l1PzFSOPiuqcTyWZC2Dea5rKkRe+KkQsi0KluCFMDa1XHbNSPZUkM2naUaYQpsHgFaH6lZxbTHw3bLucHDJKJEYWrkFqhlAMkhzlqivuRi2abaOvHvW7nN6x/6aQT7eX62UGUp1QqcKbEuuvvZJPq+RhNjpw/LaXA6ljTV1PBjDDuOWcCS7uN0nwEb65v2m9WPBIT6yDNH14NGKMhtZ8XpeMeh4fGxHbMxObuQt4bFLa+Yvz+pQkKGRsrqmusCg5l/y1Y+nl40PYWrachLDLTAC59BwRASKoerbPY6Y4nC//8LGS20LI68IB5SW7h3PEKYuggNC3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?qeTdTZpaIZ8xwfCj96G00n5XINpJ0A0mHPdURoznLy2dNWh86eh7o9VzWg2Y?= =?us-ascii?Q?7zhSQ54GeuKGJIvI1fCM8xnW+0YQn932M9K0WR38GYkJAbfO8XS8SEsq8K5s?= =?us-ascii?Q?vwaP8gPw7M3UIQQX9mgB3pOvI+SZkXEHeM+147PDZDrWI2GENG8L6RDsC3lK?= =?us-ascii?Q?DR/eDdKkJT+RXkCovFgX0htfd/DLZUNMQ5mcSZNMWEnFbPJDniMd0gGKtmvz?= =?us-ascii?Q?5N9xw4JaFG+bDlZgFy/bQ3l86lo1Yxrx9JKM86SCuWyqTFoE2Y2n3Bg0zsZG?= =?us-ascii?Q?/DYfkN6g2trHHYwqAxB4jLZjqha3LIgu2WK4edmYFdpCegx+9Wl16XwJklnm?= =?us-ascii?Q?jiiWDGshuayc1cnur8XB8d0hqRc1he81SszPM84XDM2xoiWwgrJE0SWU0ps2?= =?us-ascii?Q?/E5ff2sR+bgW0glCr6VUyOzDf0UA3BI8KAR/86UKFiUm397jlz8TWFNRTnZr?= =?us-ascii?Q?6y7yfHIG0U8cInkzwq0pc0jiqXvuZqTU4Lc287CxiXV8CD38oFBCDJ83YG72?= =?us-ascii?Q?TQLJusjLCPAB/UlGNtLIaO6ZLNc364bu3EHvYjM671FaS14HcU1uHNJd3h3Y?= =?us-ascii?Q?9zsDunMDxm/aMloS395IhVdbVGKln0NKr51RHidFJNDZJon8zl8uMN4WuqFv?= =?us-ascii?Q?bgD2n369yUE7vXkh0z38xTHV1NA41pen70D0u4TmLICl91h/ip069RxU2Wou?= =?us-ascii?Q?c+RQdo1i6F0erjJUkmQcPYHBSS/1sJV9TTvHHmzAdmP4TOK3ABx1OJ6PJij5?= =?us-ascii?Q?kOPOrK0ST/PoG0aw7mfmJE=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2480; 6:wig9APuaMjN+Lk32vyxLEjsG2/wdnEFjJuNKoyDJO2ASrLQdy6o/4k8Zoho2fq6m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4ohea5CjM9QPLGUXeWJdL//ou1TuzyAesXmlOcKGwbMtlXzyWAvca/VRWwmMmoLa/APRF6S5b/rNrTqj+JN8zmVK4/AgkJw1guUv1gXvW1vH2w6Tb5kY4TyayODMGfht3bgSQJ+G12SPD2/C8yDGrIo609BQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 07:12:50.6706 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2480 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_231318_618941_7F994CA1 X-CRM114-Status: GOOD ( 14.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, mathieu.poirier@linaro.org, Tang Yuantian , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, robh+dt@kernel.org, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tang Yuantian Enable DMA coherence in SATA controller on condition that dma-coherent property exists in sata node in DTS. Signed-off-by: Tang Yuantian --- v2: - use of_dma_is_coherent() instead of open-coding. drivers/ata/ahci_qoriq.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/ata/ahci_qoriq.c b/drivers/ata/ahci_qoriq.c index 9884c8c..01ef662 100644 --- a/drivers/ata/ahci_qoriq.c +++ b/drivers/ata/ahci_qoriq.c @@ -59,6 +59,7 @@ struct ahci_qoriq_priv { struct ccsr_ahci *reg_base; enum ahci_qoriq_type type; void __iomem *ecc_addr; + bool is_dmacoherent; }; static const struct of_device_id ahci_qoriq_of_match[] = { @@ -164,26 +165,31 @@ static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv) writel(LS1021A_PORT_PHY4, reg_base + PORT_PHY4); writel(LS1021A_PORT_PHY5, reg_base + PORT_PHY5); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); - writel(AHCI_PORT_AXICC_CFG, reg_base + LS1021A_AXICC_ADDR); + if (qpriv->is_dmacoherent) + writel(AHCI_PORT_AXICC_CFG, + reg_base + LS1021A_AXICC_ADDR); break; case AHCI_LS1043A: writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); - writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); + if (qpriv->is_dmacoherent) + writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); break; case AHCI_LS2080A: writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); - writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); + if (qpriv->is_dmacoherent) + writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); break; case AHCI_LS1046A: writel(LS1046A_SATA_ECC_DIS, qpriv->ecc_addr); writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); - writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); + if (qpriv->is_dmacoherent) + writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); break; } @@ -221,6 +227,7 @@ static int ahci_qoriq_probe(struct platform_device *pdev) if (IS_ERR(qoriq_priv->ecc_addr)) return PTR_ERR(qoriq_priv->ecc_addr); } + qoriq_priv->is_dmacoherent = of_dma_is_coherent(np); rc = ahci_platform_enable_resources(hpriv); if (rc)