Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752330AbdCMKjl (ORCPT ); Mon, 13 Mar 2017 06:39:41 -0400 Received: from mail-by2nam01on0082.outbound.protection.outlook.com ([104.47.34.82]:16576 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751507AbdCMKjf (ORCPT ); Mon, 13 Mar 2017 06:39:35 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=cavium.com; From: Robert Richter To: Will Deacon , Robin Murphy , Joerg Roedel Cc: Robert Richter , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org 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 Content-Type: text/plain 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/Vk3Q6PzsnVzMCl0lwqbws0h1VoJ3czV7RXuNTykeimFA9gTof42g9aDDh2E7m7u9tqkUCIDRftsjoUrtamx0n6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oOXJqTMoqPJ7r77cFFJKJTxt2Sd79OsXosZ9guie2C7kEQZbOY2aiuLwLac1wZweFOIDkf9qY/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;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2341;23:IOgi2F9TSVMC6TcGT7klaN1Sw0n1TzuxkJ0zBjfiLLtE4pQolnDVPAlJMhOBE2qmTwOC3UtV/ik5Pw9bgtx/gN2MMl+TWCz10a/Tt/XYfdUKi/LKkTIEEW93R0Fr8dI0VetxUN1Q+wkQDp2nYlAeKu+7NABbueu11q4lomAsoEe/snKlmzMgeUy41P7o8wHwmEVa1+IUk/uSjdZt7eL1qqZlEnnVlkTKkK+qDEw6VjfewZ7TyytwvK2KYgpYrxZm5rHiCIj+P4r5VDeAaMYZ+wYGYTeMhpV7BCQgrni1+Ma1La3633L2sxa3Z+LLrlNy0TteytJ6wDRkbMuamsAYo+AhWRT43RG6K6Gnj5zdy96t8TEcSgdGblM6xU1+Xn2DIgb7D4mZsG2B4nLKYTEkHHz0GgBPw/r/ZjmWfNd6dvR8yBHZubUTpzdKGed66PWzTX5V1MU+vMoM8Rx1V/2L9464mJMQHDhocbbPaD/8TKYZSjrC8M8Fy2gvi0WMRdWn5G+RyNPlPVpVeHKNCBQVirB0PUry609Wc6sL3uGNV+DAPf/CptGQZbS4pOKopShD9apB3jOzQVMyhbyfqFfI4OzHlSoESWcqaKAwUVjZMCTCSKW9pWl0TVBsEbq3Fs/LHpiMDTwB9FJNwOgHWXgs+ajvveJrGgvHdZ5JwBxK0z6ifvNifjxLSbt+0Js65UOKTuEcgXElC6BMzV3jj5xFwG8zQixiGvvaLvMIQqXGMEqUymJb7lVjY+LiOH5yzzAn8XrbQ7rfBflch2GY83Gpmuog2iHpAo4KEIZeG/SnpNmlKaVtABRQb6NOQvb7yLBYN+huQhd7YjG/+BpJYn/TSdlXOaJ8LMHMufIxjlIaRBvIhq07/QRUXftJEbReGTaTmZSFbuuzzGjW7uyFi6+NQhMabsVk+abWdWpso5YHppk= X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2341;6:XCEjtanK96Ajae1SlwZhvRNLC3k8BIltcQLsKTkcVeCOEUG6ReoipWYTnLlZwM4iLDL4w3JSGRzPofNin86UZ4YsmBKkvw32wTUN2SUnBn4PLE8Uu3NhOWRKfh5DIgXfDZskd/8GlBRt55xF8nKKg8oEA0BodaMe/xVnQZn0CyK3PwcauJEsrrlLetP2N+07Af6vb5MUb9Klw6A3wQYXxJhrOO4++VQxx416EOKVeqNFj+g8q0h8+sosreO71UKhMEe4qRzgrcv9a17pvBp29XmKoBTF0bIgCvTEvNvD8zSxKdzgV1n6Ja+nol1jvmXELA1S6fjYq+YA2EdRlU/8y4br/rBGtN2pfyZyLWoN+15ok87wuQJXZxaDTe3RH/2zz5olgqXwfufAWk7DUvDocQ==;5:Ft+apF/GL0mmmipnfnowJ+px/24tta6jGNZY3BjcI2U47gi4cjyVob2SVHZhIWDmTexSVOZqxTGugxoSaZe8byGZDdQ79OE4/SE9QpHTK8ARdvAFUNTwTV04o0Lq63T9dvqZbuXOIP6DGAsE90XbZDfbwNQ5F6IYn7QlWuajaeQ=;24:G94Glc0VYgrba5Bi2v8iKCrfsUii2Sl9ii4jF5tWeTXd2rEmvTPQDr4RCZL8tzWm8ZYXZo3xstdY0PsRVtgkZpWnEAkoaRWDCnR58X/88Eo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2341;7:+T8zb/b2k82YY9VKESEznXRVvwx+QdqCeRx7r/HTh9TxE5YxT5eTWCAUHwZRTFnUWeIALRn9HxhbJIhISfqILFVZSdBM0ULO/+yJJVeoiafh4b2h87kOYuyS5Vj5Hi0xT6TdW2LCrl1wzlb+ZLry1r5inZ6uAq17LnSYJ8pCDlRLXpo6gBanKi1vrnPzQvfV2tBoveuS3FbSvT5tTm3JBK38OOURvBtKHmGw5Y3tUxUKdH524Weo06QL/Z1xT6URZDphPlFK0zIt8SbqVtHQD21Rrp2R+wSYgTVUvELj4AAONcgQ6IZoW21Bwvez5kk9/Ak0lLTy6VjNGYBZkZFfIg== 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 764 Lines: 23 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 --- 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 */ -- 2.11.0