Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751522AbdF0N4g (ORCPT ); Tue, 27 Jun 2017 09:56:36 -0400 Received: from mail-cys01nam02on0052.outbound.protection.outlook.com ([104.47.37.52]:47952 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750829AbdF0N40 (ORCPT ); Tue, 27 Jun 2017 09:56:26 -0400 Authentication-Results: caviumnetworks.com; dkim=none (message not signed) header.d=none;caviumnetworks.com; dmarc=none action=none header.from=cavium.com; Date: Tue, 27 Jun 2017 15:56:10 +0200 From: Robert Richter To: Geetha sowjanya Cc: 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, robh@kernel.org, Charles.Garcia-Tobin@arm.com, Geetha Sowjanya , geethasowjanya.akula@gmail.com, jcm@redhat.com, linu.cherian@cavium.com, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, catalin.marinas@arm.com, sgoutham@cavium.com, linux-arm-kernel@lists.infradead.org, devel@acpica.org Subject: Re: [Devel] [RESEND PATCH v9 3/3] iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #126 Message-ID: <20170627135610.GX658@rric.localdomain> References: <1498224876-5200-1-git-send-email-gakula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1498224876-5200-1-git-send-email-gakula@caviumnetworks.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [78.52.248.197] X-ClientProxiedBy: AM5PR0701CA0017.eurprd07.prod.outlook.com (2603:10a6:203:51::27) To BL2PR07MB2338.namprd07.prod.outlook.com (2a01:111:e400:c753::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 631c008c-d20a-4a01-418c-08d4bd644b8e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095);SRVR:BL2PR07MB2338; X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2338;3:F96VbePaUFFVonr0lXeVWNdtQdsrV+QjJ1s6pVAwMeP419cGIfO8pG4hBslVkL5hCfDrjRbvQII+FjFmCMnivyk6rlaAjCfNIQMGGMFT5rmDqSEssUKoQlO3myYAyV09pZMdFuNXZQXLoEVazfr8k0N1defty3pImtQa/LXdEbL/spMU0QyIQMaSTBV7xdtNoEs/H1L7ruf3pTlc2qgO0Hch49WvOGQNeCsvZYFLFqnvFP3tQf2DOya/lMZeZoSuOP+GLYM07UHX+C0V236QBd16XBOxaoMImtGAALu9vHalHrXHd4bhA+/1tEOCqg6k4d8zaTWDguzh+deZuwxWB2ItGFU06Z9sEirt9mMkyA6ITwcCdA9khyFvXoXIStlFwjaaZI7lKgNZzqtZpfvLzeY/sLKScV4lXEKXb1z2Yxle+hLnTsUSdDmtWBKY4PE+QVNcokODdW/lOIp08IQHSJljo98e3EcnR5bc53uZZSmG8yG+5UQwUZCqify5WZ+QK+aC9l/7jPFFUPCcgt7ns5s9geTFA9tXHXOiB8K9K00X0TDxC1I2M2zcXWhnaNPQ2Kwe0yF6C33QzPkRCIprW/YaKPKmv6tmRtvTnX4buSBw3AHaB2ReInqQHGxiQquEiZ31l/NheBFh+K8N5Nle1PCdxP+xE5hVPyw2b9Rm3x/a/fpY4lLIWjj4RsfUPy7n1kvvg5cASyYN2C5LxNC2NfFXVf80/NJAR4X0e2y8opE= X-MS-TrafficTypeDiagnostic: BL2PR07MB2338: X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2338;25:+4OHGE0odurS4AOeuw+KqsrlkSHr0FjKryH3N3mCmqdcd/x4SPVZontGnLBirDEJEQ9P6cAvIzxJ7GYdBb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Test: UriScan:(133145235818549)(236129657087228)(148574349560750)(50300203121483); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6041248)(20161123558100)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BL2PR07MB2338;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BL2PR07MB2338; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR07MB2338;4:/UQTXZVEwZfTGaMfVm8ckY6z3KdqqJrlr6/xwwAusv?= =?us-ascii?Q?hvowzkwoIpeMy+4PAjThRMkd8xUR9+6Df+a/kNxwJ0LfHIwzokBGHwzLKZm9?= =?us-ascii?Q?fdaychmzU03kLYpzxlWpOBJiOFOBa/uqWQTrOHT7jWbu6AyPG3jHxF9N0Y4y?= =?us-ascii?Q?1YxcU3THqJJxPFlmbDh30LyNBLZcDi6IYAf1TqhQER++I4owiHOWTJ+K+9j0?= =?us-ascii?Q?N9bAbtGBTUvfe3RrQ/y/J4kqsCzwNIBvp4VnGdjh6SgtNSwRJTc3nYoIEkJd?= =?us-ascii?Q?s1Kxb72yFXO/LO0OV2FQXPIj0QdJJNxzF8I9GnhJEnkzz/dyFiwXN+jjH+38?= =?us-ascii?Q?w7GB2jkeU/F1NZA5cc6qKULxAHOkauU1Fni/+X3fSw4NniQqt71zV6BxqMO1?= =?us-ascii?Q?TpbQgH5WTHbkhOG6jIGvY1Z/A40NwyIiNoCdyVLOG7TR6tQyBedlM+XnqHRV?= =?us-ascii?Q?hqyB8Bt2X7s+BPdTcy1pKF+IoM3Ui4tfZpbgjnyPLfYJO3AHS/JGjARyJSZX?= =?us-ascii?Q?pjYUf9m5NhxjVezjsOmO+si93PUuZkGCQkQVuq8/MSHxzhWxVBh8oIXjIc6Z?= =?us-ascii?Q?nn//hfqec+RSRd3XTsRPujsRylOJG5CKFZB6rj35i7Mvez5Rzsm+tR8O0bPM?= =?us-ascii?Q?2Uie+w+a0xtCAB4RlfRgrfgbykDZZDGXu9BQkt1AZHm9S4koZTCeDL3WMncR?= =?us-ascii?Q?MGRXo786P2kxSLiJBjuFEQUmh509CYDchSmAVQl8yEJuXuMOgb8UtqRbllFF?= =?us-ascii?Q?5q/s5WmyyE9QKvV01irNszFDD3cze3TTK77YqnamUA0KMoBnFnI9w1FLQ1qp?= =?us-ascii?Q?+6shS1jb2G9QB7OaSIlyptT2ao5EfP9GQfuqbZyTRl6te15gccUX7eUnRgis?= =?us-ascii?Q?2OVizMEsoZm038pqom8vwgRGtLNbtQzAiL7Tg9xb/MdoXkJ+LQKtbgkZBQAi?= =?us-ascii?Q?uQKgJIh2+T3uZwHGncRMTSvpB5ws/lq2rg8XaKW1qBF9rPAkFgVRnyTqb+5i?= =?us-ascii?Q?ZbvBzXHJpGVVpk2Ruvo3X6vJ1qcIXCj9gswtWIdTBjuh6IMk9uE38ZZCdrOR?= =?us-ascii?Q?TWKmeQq94n2lo5jTz2agHiQijba890cv7xBkcwtIuXsWNh7xdHWF/Kb7dA5i?= =?us-ascii?Q?WTsV9R0QeyViwSjcnLrzMcaeRwJR91RzJCGrd4vn3+BgpYViopC3yohxcoTO?= =?us-ascii?Q?Nzg9zVxL10VAWz5Cr5fwFb4tUCICpWWtOWrWSV5Nyj4gEVplmMrTuFvl59Tq?= =?us-ascii?Q?naLpTGw9RTm3HOMgUvm4jgp1xBpvge93Ph4UU5e7gaX5M77fHE2jiIJ4HBHQ?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39450400003)(39840400002)(39410400002)(39400400002)(39850400002)(24454002)(7416002)(50986999)(54356999)(53936002)(1076002)(55016002)(2950100002)(5660300001)(6246003)(23726003)(47776003)(229853002)(38730400002)(6666003)(7736002)(110136004)(66066001)(2906002)(6116002)(8676002)(6506006)(83506001)(86362001)(9686003)(81166006)(3846002)(53546010)(478600001)(6862004)(230783001)(25786009)(50466002)(4001350100001)(76176999)(189998001)(305945005)(72206003)(33656002)(4326008)(42186005)(18370500001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR07MB2338;H:rric.localdomain;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR07MB2338;23:TKlpScRflrsofn7t2WHbgxci45f4Ap9VCcAVa4e75?= =?us-ascii?Q?RlzLpykCq1Kc/qjDpwBmqeUaIEPeJiI5UWfu8jsvkVxCWNAbDVFrRPAOTxi8?= =?us-ascii?Q?IsaS8Y9fRWCapa8YJAs7b0kudSXbYLIgXFb//JdL6ovDCBaCBRvVWvJuU4h7?= =?us-ascii?Q?isSwyIsQ1Ws8Sw9/i5eKDzzI38ROXjTOikKHNCwogD0khCVJtuz4ljQ965fc?= =?us-ascii?Q?X2N4e7kNBCFNozGjtE1h4l77q6zmcx/Adohcg5L+Oys0xnvlFqi17UfiYKNl?= =?us-ascii?Q?1EeMUfsDqmLX1p7kiW5qYScWm7jNW7SiRaszwJhF7hq5GKY4A4komLGy4cJm?= =?us-ascii?Q?SB3Gqrn9COrYrrld4L8twGGrNy/rlyVpQc+yb8HCYzGdX27f3xHhDfPrOzuO?= =?us-ascii?Q?DFculNuYq+F4waN0kqu5tiXGq+pFVJpTFvH3M1SykzRP7jUDoy86jXUX/oKS?= =?us-ascii?Q?KYYi8B02L5vSkrCKoVGeHz3H16wHVPsWWrInFWbZgn3PIIdTVe5Fz7VAGKBo?= =?us-ascii?Q?OoQu8tByZk7Jw7ANkY/PEYHfEQWY4MS5YjJg/+9AAlpjYvsOUbN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vKPe7taNpeBwne9K3VuSk/9BldOHRUYg?= =?us-ascii?Q?qtfYg7NYX9/abZPIJSC+awZHimE8xDPs3sR7cnWD4zkABQ/7SSiMKgR7viA2?= =?us-ascii?Q?7kM6jAVmkzacwh2x0AnaSSnGhT/DyM24k1NTfpifC+gCEBSvcpJ7d0IvNKMC?= =?us-ascii?Q?I5Md9QFL8Rc85+jq/swr9NQc4KcWlR8qTENetJVv1z+RQikLaAaW+h4go9h7?= =?us-ascii?Q?gc8j5W9328enaykmCQHtP7hDqx7mh6THxU+sdEOrBJmP5un+Ewc8fHfIVhfC?= =?us-ascii?Q?LM/2e7IIKI/kl3KaoTv7sap8BeuL08z2lMYAxrhlWT4NpCiSp7E8E0P8hv9i?= =?us-ascii?Q?2YvJTd9dKNT/PLrSh+7kDvFlCZDiD0jK3tABX1TJrHLabhdV+vCglbihxuIy?= =?us-ascii?Q?9oXiv3dWbJCiEDotQqLCmFibTKykq7610dH8FedAvHC3UPDIurPMPoeo51Gb?= =?us-ascii?Q?CqsKD3LGbRfG1nD30SYw8muCwseASGRFO0KpjY/eyNzlm/0yP4yoBSA/MhjM?= =?us-ascii?Q?zZisc4P6Wj/kB5M1ROo8lrkh87IJK0AKac0Txlwpjr2xoCZBieFdOslnxK9e?= =?us-ascii?Q?x127pwb1i5JcWuOGQuegN7fEHFJPHbJXx9XZWyml7vu8jeHBPDJN475lGETa?= =?us-ascii?Q?w8ndG/4ugtfhz3dMoWkLWkDHVeGthF/igYOVuUGtgxNxs1+70Wz8kX5EIYU0?= =?us-ascii?Q?T/mTWupVLvuMFyh9FWp2QdQJd20NZITQDmaPQozh7Hy+s9pIiXxXa9tu0/a8?= =?us-ascii?Q?WWqOV5ghOOVWiAhNkVErGLnAgo35C3qz0omvoi9aOSTl+8c4H2OpIJ0ET+3y?= =?us-ascii?Q?qE5cfH9GClpGpWtqvElWisN3q6vDXEo5LQFCD/MNkvYduBG/5xF0yI2XN7uO?= =?us-ascii?Q?Y=3D?= X-Microsoft-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PH31cCwZd2QsvWVAkBeekrfMN2WajkzLdboEqEraHrosQwH/NGi93HDY3Guk9WjhXlqxmbpIgC77iBA/fM/FHIwgVe2m2M8DgR4xbGgMu67N+kPPDOzf1PpXW+HeUzRkANyQJajZuBJE7np7hTHTzn+9cMKH3WCtJH4KMlxWjZA/u0E8uPx3SzxJYKbRKUUgAUC8/pMmSry33MntcdFTTIjvwXY6VTcBaMxbaFsGvC2t8V4sov8zJ47Pq/eQiGm2hukFQ8kHJ+LBSWT28Bn/upVNLAU2nIAbV/HvY7SqtkkAxp0CHRayogEbzCk6W9eJ0q4gdvIuVZLaPPw/hU+RVQVT1Eglt7sd7C2U015bce1yo2nPASZxrnWKiZLeS+IObf7erHRfPGP4aP003khl07UrzFugtkr5uzAgpKuF/OQwxbLErtr8QFoiVvF6NB88W/sBcFevAGT2/H2OM= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 13:56:20.1044 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR07MB2338 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3611 Lines: 79 On 23.06.17 19:04:36, Geetha sowjanya wrote: > From: Geetha Sowjanya > > Cavium ThunderX2 SMMU doesn't support MSI and also doesn't have unique irq > lines for gerror, eventq and cmdq-sync. > > New named irq "combined" is set as a errata workaround, which allows to > share the irq line by register single irq handler for all the interrupts. > > Signed-off-by: Geetha sowjanya > --- > Documentation/arm64/silicon-errata.txt | 1 + > .../devicetree/bindings/iommu/arm,smmu-v3.txt | 6 + > drivers/acpi/arm64/iort.c | 57 ++++++++--- > drivers/iommu/arm-smmu-v3.c | 100 ++++++++++++++----- > 4 files changed, 121 insertions(+), 43 deletions(-) > +static int arm_smmu_setup_irqs(struct arm_smmu_device *smmu) > +{ > + int ret, irq; > + u32 irqen_flags = IRQ_CTRL_EVTQ_IRQEN | IRQ_CTRL_GERROR_IRQEN; > + > + /* Disable IRQs first */ > + ret = arm_smmu_write_reg_sync(smmu, 0, ARM_SMMU_IRQ_CTRL, > + ARM_SMMU_IRQ_CTRLACK); > + if (ret) { > + dev_err(smmu->dev, "failed to disable irqs\n"); > + return ret; > + } > + > + irq = smmu->combined_irq; > + if (irq) { > + /* > + * Cavium ThunderX2 implementation doesn't not support unique > + * irq lines. Use single irq line for all the SMMUv3 interrupts. > + */ > + ret = devm_request_threaded_irq(smmu->dev, irq, > + arm_smmu_combined_irq_handler, > + arm_smmu_combined_irq_thread, > + IRQF_ONESHOT, Without the IRQF_SHARED flag set I see the following on a dual node system now: [ 17.403260] arm-smmu-v3 arm-smmu-v3.0.auto: option mask 0x2 [ 17.408853] arm-smmu-v3 arm-smmu-v3.0.auto: ias 44-bit, oas 44-bit (features 0x0000172d) [ 17.417259] arm-smmu-v3 arm-smmu-v3.1.auto: option mask 0x2 [ 17.422856] arm-smmu-v3 arm-smmu-v3.1.auto: ias 44-bit, oas 44-bit (features 0x0000172d) [ 17.431193] arm-smmu-v3 arm-smmu-v3.2.auto: option mask 0x2 [ 17.436787] arm-smmu-v3 arm-smmu-v3.2.auto: ias 44-bit, oas 44-bit (features 0x0000172d) [ 17.445123] arm-smmu-v3 arm-smmu-v3.3.auto: option mask 0x2 [ 17.450697] arm-smmu-v3 arm-smmu-v3.3.auto: ias 44-bit, oas 44-bit (features 0x0000172d) [ 17.458984] genirq: Flags mismatch irq 5. 00002001 (arm-smmu-v3-combined-irq) vs. 00002001 (arm-smmu-v3-combined-irq) [ 17.610636] arm-smmu-v3 arm-smmu-v3.3.auto: failed to enable combined irq [ 17.617491] arm-smmu-v3 arm-smmu-v3.4.auto: option mask 0x2 [ 17.623073] arm-smmu-v3 arm-smmu-v3.4.auto: ias 44-bit, oas 44-bit (features 0x0000172d) [ 17.631339] genirq: Flags mismatch irq 6. 00002001 (arm-smmu-v3-combined-irq) vs. 00002001 (arm-smmu-v3-combined-irq) [ 17.782944] arm-smmu-v3 arm-smmu-v3.4.auto: failed to enable combined irq [ 17.789780] arm-smmu-v3 arm-smmu-v3.5.auto: option mask 0x2 [ 17.795367] arm-smmu-v3 arm-smmu-v3.5.auto: ias 44-bit, oas 44-bit (features 0x0000172d) [ 17.803640] genirq: Flags mismatch irq 7. 00002001 (arm-smmu-v3-combined-irq) vs. 00002001 (arm-smmu-v3-combined-irq) [ 17.955248] arm-smmu-v3 arm-smmu-v3.5.auto: failed to enable combined irq In __setup_irq() in kernel/irq/manage.c there is a check if that flag is set which causes the error is shown. -Robert > + "arm-smmu-v3-combined-irq", smmu); > + if (ret < 0) > + dev_warn(smmu->dev, "failed to enable combined irq\n"); > + } else > + arm_smmu_setup_unique_irqs(smmu); > + > + if (smmu->features & ARM_SMMU_FEAT_PRI) > + irqen_flags |= IRQ_CTRL_PRIQ_IRQEN; > > /* Enable interrupt generation on the SMMU */ > ret = arm_smmu_write_reg_sync(smmu, irqen_flags,