Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937293AbdD0MF2 (ORCPT ); Thu, 27 Apr 2017 08:05:28 -0400 Received: from mail-by2nam01on0048.outbound.protection.outlook.com ([104.47.34.48]:29312 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1034062AbdD0MFU (ORCPT ); Thu, 27 Apr 2017 08:05:20 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; From: Geetha sowjanya To: will.deacon@arm.com, robin.murphy@arm.com, lorenzo.pieralisi@arm.com, hanjun.guo@linaro.org, sudeep.holla@arm.com, iommu@lists.linux-foundation.org Cc: jcm@redhat.com, linux-kernel@vger.kernel.org, robert.richter@cavium.com, catalin.marinas@arm.com, sgoutham@cavium.com, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, geethasowjanya.akula@gmail.com, linu.cherian@cavium.com, Geetha Subject: [PATCH 0/3] Cavium ThunderX2 SMMUv3 errata workarounds Date: Thu, 27 Apr 2017 17:16:21 +0530 Message-Id: <1493293584-20287-1-git-send-email-gakula@caviumnetworks.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: PN1PR01CA0077.INDPRD01.PROD.OUTLOOK.COM (10.174.144.145) To BN3PR07MB2500.namprd07.prod.outlook.com (10.167.4.137) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a1096c92-181d-4644-d21a-08d48d65ab7a X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BN3PR07MB2500; X-Microsoft-Exchange-Diagnostics: 1;BN3PR07MB2500;3:rZ9hdZFgnzC/RsSsU/IFoRAbMLL4uqv1I3584xX8O8otOguACfEIU/dd0LmTrdDCUdgE3rsLIlnU+fxth8Z68l/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27TQHgYnv5e26yG4SXDA5LLZSTh+6iSqWojbkvKlpwqSiBx17ft1JzdOJ2TODqZvjI4P+q0gF98VJI1FQf5IAYivLFjhkexx1gRmug28OKLwgyUzERaTuIGKrou/83Ep1rU6zH4RMnE+tKyTttEK3kWcbuti5agmXuC79yky0t7d6M5OjQmf4wy2JZC0fWOwHL8Ck7dxun3vPw1EOY4bgc+oH9RaZOOxTsKaUz1DJGgKY2YHofznlz8Yq9K+5OJZaS0i8RIZXYzO+VtbklSknWandIIhPqtub1lcfcwBXHrdbi2FAXl+cUzSkDXzTgWM8PQHBbWj7XTqZcvnqG/bLDaH5EYl6LGbbqYdjPNzq1jGn8TEn51eSK3esyrD1EEBRTwSPi5GxTD+nAK2ZwSsoIyBAaZPCt7uSS2Udn0CMfZbOia8rpeotlAbvcr3iCxHFolk9amLwRe8IP0ls+T/epkeQLcPiuUhDQGc82EIy1jW8ZKaFYeA0mqjjQV3Qg6k7emZt9GidXTJTtqhlMcP1I= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148);SRVR:BN3PR07MB2500;BCL:0;PCL:0;RULEID:;SRVR:BN3PR07MB2500; X-Microsoft-Exchange-Diagnostics: 1;BN3PR07MB2500;4:KQYuABXfH2g4iX9SIKtDkOfDBssm7fGfyZepsv3mxoabkD3t+m699ISVDhE431R1+BXWXynwaafX8tJjSmx14CmOgsnywd52bJI392uCHkn5J5WQQk0zEOGL9vstupIf/bL7TUycbjTQ8Y7txQB8m8CQ9wTNa/MQTW+frqIgoEqu9ABkaq19oLWq0s8gxKOSmhr5EIYU+nG3+jMQ1ET3iQTf2QnRj02puBHzVUCt+LB1OfQx27x9Gmpq6bEfcBupw/Cr+k5aGiwcHCTJZUGF7NkcjIEbI9f4sgWHzXigMoEeqb+RgXtNsRbJ0MxVRtQo9IZAmMREAeS/Ddkx/uvY8abeC1g5WR8PwmDfbQ9qiAw6vPSrfdqMkYcTc9cYu/nntAwGgS8kVgjyO6UVw9d2FflCbLZCqSAKr9Pemq8eDOj7zHkBYtINaQ409+7Nvr2xIe1GCN1+0XyN8fESHzdajYjo+JkVH8N96v+ygzeO/bYQSKzj56OoBMm8v3zzO/9oOBo1dLkFqQt8aNoWOXMQlchEZJ3L8VIAbZIvsNX4VFqj1+3iXU645kKPZrGPqpuTeWSAybljB7AWa+/OE0r911u5H3sQPB0Tykt3IwumvvLW2KstJr2gbjZWeB0LTw9+Pgd4sTYN7oPeqrfefDX0Da8PYby93bF908RBqZJ/1jwCF++p+UUxBFVVOaN6JOnv/35zoxfjhCrqAT9Ej9Ue8g== X-Forefront-PRVS: 029097202E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(39840400002)(39410400002)(39400400002)(39850400002)(39450400003)(6486002)(5003940100001)(33646002)(5009440100003)(50986999)(36756003)(106356001)(189998001)(53936002)(6666003)(2906002)(42882006)(3846002)(42186005)(6116002)(6506006)(6306002)(6512007)(50466002)(48376002)(8676002)(81166006)(5660300001)(110136004)(25786009)(107886003)(38730400002)(7416002)(4326008)(50226002)(66066001)(305945005)(7736002)(47776003)(110426004)(42262002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR07MB2500;H:localhost.localdomain;FPR:;SPF:None;MLV:nov;PTR:InfoNoRecords;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR07MB2500;23:54N1wWRhSudR0+EpULfaIhXpndOZ/dz+OrtKcUpJj?= =?us-ascii?Q?yQmnZNJyUoZq+XQvErFjdnkKGxYzPJYCosEYFOrRLlGvH6ld9ov89NYazBwT?= =?us-ascii?Q?W9EwSLbJUz0L3SlE/MJSOo61iNFkq/oW9KsE1kDbG58tMbB5kezXs/b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AMpP4aDvv2soOCgIhLy8+RFrhFZct77XR64jp5tqoD9D4jwpe8BOLLyNo5YRvbiD/YkPBI8k2rurrAkJlGI5tNGghlNbgt2YXds7L6SBrCkAxSh84UBjeNlX7AhPomCiJ76BV2RiikFWPHcnRNb27N706b8CNhid0GykO0P2lHmCelEaaP35UXNbYq95fXDq7rVTpXN4loVF0zHAUB5lV1VPNPyT5KEF6th/625gSAsyUEDk5l8XcjUd5o81Yz5CwVOcxmjAPl2eKZ38PdzZNPklHMdt7z8AkwZPArCBiIXoIcgPQNT/WOxTWzkazk6dEqCFDD8R6ug== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2017 12:05:13.4495 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2500 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1028 Lines: 31 From: Geetha Cavium CN99xx SMMUv3 implementation has two Silicon Erratas. 1. Errata ID #74 SMMU register alias Page 1 is not implemented 2. Errata ID #126 SMMU doesnt support unique IRQ lines for gerror, eventq and cmdq-sync The following patchset does software workaround for these two erratas. This series is based on RFC patch. https://www.spinics.net/lists/arm-kernel/msg575739.html As suggested by Will Deacon, code is modified to use silicon id to enable errata#74 workaround. Linu Cherian (1): iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #74 Geetha (2): arm64: Add MIDR values for Cavium cn99xx SoCs iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #126 Documentation/arm64/silicon-errata.txt | 2 ++ arch/arm64/include/asm/cputype.h | 3 ++ drivers/acpi/arm64/iort.c | 14 +++++++- drivers/iommu/arm-smmu-v3.c | 64 +++++++++++++++++++++++++++++----- 4 files changed, 73 insertions(+), 10 deletions(-) -- 1.9.1