From patchwork Mon Mar 13 10:39:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Richter X-Patchwork-Id: 9620439 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 4274D60244 for ; Mon, 13 Mar 2017 10:40:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3522D283F9 for ; Mon, 13 Mar 2017 10:40:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2767728458; Mon, 13 Mar 2017 10:40:02 +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=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham 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 B84A7283F9 for ; Mon, 13 Mar 2017 10:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=M7l8E9znIAoLV1Qd9PhvbO/e/ol2N/JGae34z+bQxwI=; b=R4ua8+xhjGgLj4 Zco0Q2gxygDqXGGqbJOH4Vrzl/pvac1PSafFW9gU44prRP9TNGsoY95yRleBQCk0WFp7nZ0yCMOnw 3ZOOF5cvrGp6DYCl0yBox1sw3jFOtTOoZB8RF6GiOMD12EOSu92EtPO9Cms6LO8lx1VraB1TPw4P6 oJG0O6KJyZAbk7PvoumH29CG7Z1jcm1xKnJSAQI0Gs+oY6N7hRpyxfB/unIV33W0d4WQ3XHSfBOM9 qL/C/xP9gLn7QRZSJ4J5/MEUC+0jxEDlOjpD192ojgWAI3ndC5zffkm4PUWM1/pRl1Jbsy2I+CUV9 +mJyVIn1pbNhZsKu4Eyw==; 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 1cnNOR-0008Ky-3D; Mon, 13 Mar 2017 10:39:59 +0000 Received: from mail-by2nam01on0089.outbound.protection.outlook.com ([104.47.34.89] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnNOM-0008IY-MF for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2017 10:39:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xfbADcNMJR/AqbxwpFzAy6iwD3Ko6R3NY1+vOq/c1/g=; b=P28RRGw/RLhy1cx8j/gu294aqghJoJTmkyKabp1f8Fg8IHKZD8m/TeW12X/pZfFWOWWalG4m3rlS7J37JQe5TxqT6vtZJD/6rD/AiVyhhRlTLFGLHVTNt7fn/rKVD1oTbw5LCso4Dlkgm47K8uH5kXNJT9SPGtCRmbEfnoB9VpA= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none; arm.com; dmarc=none action=none header.from=cavium.com; Received: from rric.localdomain (92.229.89.143) by BY2PR07MB2341.namprd07.prod.outlook.com (10.166.114.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.961.17; Mon, 13 Mar 2017 10:39:30 +0000 From: Robert Richter To: Will Deacon , Robin Murphy , Joerg Roedel Subject: [PATCH] iommu/arm-smmu: Print message when Cavium erratum 27704 was detected Date: Mon, 13 Mar 2017 11:39:01 +0100 Message-Id: <20170313103902.17423-1-rrichter@cavium.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Originating-IP: [92.229.89.143] X-ClientProxiedBy: AM4PR0802CA0007.eurprd08.prod.outlook.com (10.172.214.17) To BY2PR07MB2341.namprd07.prod.outlook.com (10.166.114.143) X-MS-Office365-Filtering-Correlation-Id: 8f6e9a79-c6c4-4370-350e-08d469fd3c1f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY2PR07MB2341; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2341; 3:FWhVKr3dmoqLluQAX8rYacA+0A2LR/vSzouXoYrD2yWhyOgIHpW0VbG4k5y4HkGCNjBuzwahbrc9AQcDbFr3DtJUTY/xMbUHA915wvhfJq7Wdd+07SKWXsCCd2Yurijc7PKgGLhqsdZXUa27PgwZbbr5Kx0jfgQH1cvxCn4NSpLmsXgwbRW5anAAekx80G/Vk3Q6PzsnVzMCl0lwqbws0h1VoJ3czV7RXuNTykeimFA9gTof42g9aDDh2E7m7u9tqkUCIDRftsjoUrtamx0n6w==; 25:FOAx3g4rkQxQI13OSWxzNRELyvHrasw0FVIzqXRk2JqRMP+31sM+ge2/dYUfIwYLusRgYHNOsb40AzTkn1AWbC795LgJ9GJWUWNabw/iDwVmgAc2Pot/arp4L/eQ794KCtv9Sz8idWf6XSpzfWPZRk3u0VkxB5Q/szx0vLaemD4TkbNFO2Tw/5JDlML56mZ+HmXRW6db2BIxgX5Hdkt3lgARCeGN6p5fmlpZ4oW01unbtEAPSIfNSoOdaa7wYOsYsJ00fjtFKbTwiBVnBmmyr7OsGkdeYPDD8rtQMW9bYMDuecLLPVPXdJYwKroljCZgeVX0z7wbol2snyLwX0qi9wGGfFHGqYrg7BGriD89u4OX7Cqf0KdR0NJDP8mj465b60EO/V86tReZCkuArRJR/iLLsAcHJ/cQlpMUbxw+6hX9FDAg/RnBsXk9C3vgPLnRx9CkcocvZJQ3TvPdZ1cN3Q== X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2341; 31:hkT3/558gCzU92ROCuLqEB5lmX7VEhZo2LlbIZ1CqNcuezm+nCZ3/kSGPHu6ejD50NMAr5FD0E8pI2zoImVRZoC3BY1NDnK1LaJbqaiItt/Ln/UX2i2fVIZy3+2g0jZ5UFv0RBAzFRP93kyJHcJqdWUfCgv2AH+xc8j37e11ABTJw4iyGqvZddodt89R8tj2fyEq/v14biscCNQ6S6AWyModrUK7UkUoiSxc+J1l5nU=; 20:PVX869BHYH1Cq1Mxqpoa+DacpEXBbVf/WZ4WwfFE/K3fgPtyfpS3WjwyvDiDJEnRa5zubjljtofMBwC4HLRb2osar60rAEYxZEQz4WBuzX49hiv1Mcy4qlsWkNouWkZAOjiMownc7Ush2rOdCpCGR7EugkhqhtjnRMD1Kbix8MVuDThbL0QprxbP141j9Tvy35NB64Uwq6xs3DqklB9JKyS3hA1wvkduLrXxiBOINI2q/GZ5e16UPrWrKIc2L4x3K4CY6yCxcVRqJW5sNwfJorLmp+eG6ih+lbv+qTd1j8GmvXktQExHsZh3H0T8oSdjqelEYn8M3oOXJqTMoqPJ7r77cFFJKJTxt2Sd79OsXosZ9guie2C7kEQZbOY2aiuLwLac1wZweFOIDkf9qY/lo/l4pksysyrYuz/x6N3APpvFs76dQigvbmd1LbmgpVNSFc7DenjsTGTDhKmBiLP2zpkUkcpfXt7CTgaDvK+LPSsjJCkt/RfFgWE/iDzVK987 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123558025)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148); SRVR:BY2PR07MB2341; BCL:0; PCL:0; RULEID:; SRVR:BY2PR07MB2341; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2341; 4:i+/+VzLHVj2M/hzEc8r+bSMlsiplwp+OtbbcMlcWbeTN0k6TQ+hOuIWlmXCuxOaPjwx4UYHt6PeFhl/6MMV0Gd2KsqhE5zJf/LZ+8Qpj9uceFSmU2a7+vyBq6AjnSyIQw2cp2JcTg15wi72RzNS1Cr0qJLlSl0YWObrBs5Mb5kTburMkvwi8AjuuNb+KAceO2DaWYxGkJDZ5y3rS41nvb0BFELVfYLEcrzcs9Yzkew2JrRF7GuFglUk36bPT5j4zffqI0i5Rqm7Unw3/TiIgkGo3mW6PTTkzfEuQcJPh1/e7JkDz9E9DatB6HkHNTY7b+sSyUrid6qC9dzToFb1rvgyFIagUIBf5xBK5e9eEYJmIE5cQCTpeEx4+sZ7yqR7VcoZyJCSQct2ZIX38bV7WvU6/Up/oTxi13PnndW2a8iNWkqSmBV5jQ1uoQsFaaiQG3nALhqzXPzamanidjpW7skItefk7eUn3WryGL7Gsl+WGTBHT1vE6oTCNhsY5AdmNfL/8cLH4kprKNYXGAtygNFX1Gy2itIggbEknkBzG7cLZ450mvghRkWz7XGXwlHyihatVIH0Ir8uXZTgRvNjz7bu++LVmQAYXvlRl7pFPA8Q= X-Forefront-PRVS: 0245702D7B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(979002)(6009001)(39450400003)(6506006)(3846002)(7736002)(6486002)(1076002)(15650500001)(6512007)(305945005)(25786008)(36756003)(6116002)(2906002)(5003940100001)(189998001)(8676002)(81166006)(5660300001)(50986999)(6666003)(53936002)(50466002)(38730400002)(48376002)(42186005)(66066001)(47776003)(33646002)(4326008)(50226002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB2341; H:rric.localdomain; FPR:; SPF:None; ML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Ty6VjNGYBZkZFfIg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2017 10:39:30.6465 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB2341 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170313_033954_925190_D2F98713 X-CRM114-Status: UNSURE ( 5.27 ) X-CRM114-Notice: Please train this message. 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: Robert Richter , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, 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 Firmware is responsible for properly enabling smmu workarounds. Print a message for better diagnostics when Cavium erratum 27704 was detected. Signed-off-by: Robert Richter Reviewed-by: Robin Murphy --- drivers/iommu/arm-smmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index abf6496843a6..c88bf8deb958 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1887,6 +1887,7 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu) atomic_add_return(smmu->num_context_banks, &cavium_smmu_context_count); smmu->cavium_id_base -= smmu->num_context_banks; + dev_notice(smmu->dev, "\tenabling workaround for Cavium erratum 27704\n"); } /* ID2 */