Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752397AbdF0P0I (ORCPT ); Tue, 27 Jun 2017 11:26:08 -0400 Received: from mail-bn3nam01on0065.outbound.protection.outlook.com ([104.47.33.65]:14926 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753199AbdF0PSU (ORCPT ); Tue, 27 Jun 2017 11:18:20 -0400 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=cavium.com; Date: Tue, 27 Jun 2017 17:18:01 +0200 From: Robert Richter To: Geetha Akula Cc: Will Deacon , Geetha sowjanya , Robin Murphy , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Linux IOMMU , Rob Herring , Charles Garcia-Tobin , Geetha Sowjanya , jcm@redhat.com, Linu Cherian , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Catalin Marinas , Sunil Goutham , 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: <20170627151801.GT31368@rric.localdomain> References: <1498224876-5200-1-git-send-email-gakula@caviumnetworks.com> <20170627135610.GX658@rric.localdomain> <20170627140559.GK14041@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [78.52.248.197] X-ClientProxiedBy: HE1PR0502CA0010.eurprd05.prod.outlook.com (10.175.36.148) To SN1PR07MB2352.namprd07.prod.outlook.com (10.169.127.18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78c816b6-8a53-42a8-5616-08d4bd6fbca8 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:SN1PR07MB2352; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2352;3:ww5CRi1UpjqEG1fXCsBtp08i2mSNJ8jwmNj4XjVVyGhDN8foWUitpxYEu+dR0K7KVw23QqyOAAT8Vr+SOYAoEAWbONC27ytsD+onVWMdvlRiqP6al8KgJ9ifkL6xIFaFVue0uIHE2iMX1Ng9ySd6o+KP9HPs9l3Iu3qbhd0z8lJRAMFi/egTt1jUtP3JSYuCfpmqZ2hJJoCLPkyMQEPgofjadXwlKKnqMZDWUyFPS4WwyzXJL8/5dY7c+ak6vI2DZZvi6vOvNUPGchY3bQQq/9hrhpdV01Jbp9oU7utZjF6vsSrhcsg+iXmvnEeJip5i23FBWfY60BNCKBOAoX4eX0RRAfSJU0lO//5QRyPQyMDLnAdirQBMRnxeFGZti++blfP/Ke1HRpUymaprLbmi+p1+WA0uBt8UoWWBarAB50/bj/4b1EO4N37d3zoxKpM8zTJEu8Ssw2PNnO7VqFcBFRufvNe6s0KNBvGC0s2uuKrTnbt+979k8qLIXiOB5I0foxoNmUkKTRP8RxCAdghnBilnkUK7VNgZPVYJAI9OwJhj3AO5B2XdbICD+YSKnuVRCM9rD3VnoyVi7yxzd/anm8YSc5L4fk0U2gMywI4Oee3qlDsdA6xzFbB+88MIZ4hB0JKUp+VZefg9sIFYYjOSKYzfopaofvDs5z3kl8fqTlPenRgnqsPzU0mMPAzOzqZK6kFT5OO0c6jqIxVheNE9ruDYsn/MkGxBq8u+7lRArMA= X-MS-TrafficTypeDiagnostic: SN1PR07MB2352: X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2352;25:m+WmVSqHGXHTUWsRynUEOnICeWJvjHtw5Na/wNoo13HPoJZC0eNcQvWSPOHwm5ApzOJitnMAgqGALuKUDPpQwvsdwNZwDZpseq5NC0wmvcEOtKfh3uFxqpWtXGGidQLaXJgZoBJaHnP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L3qX9eF9SPiU2tr+rd+IgrFZEEJSgFUc+96KbMa97RqxZqFoeBv5nA254pJpFLj+3sw5+CBTKTCv0Jas5hlMZ80ra5DrR29togvcN5D5hM5hdWgxUIMNBRpkz0GUwZffT5vh5lIBQFiYjN0ce+sCmVZfr0F+DRRdTEGZB3da5TTwc2kNAiz+L/bC3cuSsuMDNpeYThUlREoqSyAWDh2ZGFtAOO72+hJsttVTmEO0kC31uquJCjiic1f7WCdvwhH9WjQlbbJRl+VDfHKzEcW+XPE9IdJAM8Q8UxOh38kYGK15M5V8uFCNbOSgvE8Ao1/jowDKoqkC/PNaHCrfbWktcveCcQK8Yqb9u+g0h7euHogYGwdaDln4sLE/DiULTOO972kU4pcIUCJ5QQAaRi3vYq0fgvrM+MUdv7QpuHO1XEuALfW/C3XO3/DVWTVhC9J9YqLG0= X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2352;20:NOHVIGzzcAQU7D3JPsctDYt5nsa2Xx6WIOd0xTpJgDZGKYY40kx639RQzAbwvE6dNTTLW597G33VwiNkaRvNyOov5e0+/u9/qTTjNXSmR5MyGHBurHDd1Bq3v3ZsRvqkWT+RMZzcYu2Yn8pAdyxjNNgzTGt3+J8CUHX/sN2t4Qu9Tp2AYoZc0A8M/IviJ0YVi3OiuDSVXmHSoNnQohcyqggsDBgZu8s/VxjUkEe33jApldN0Q6qfudCA9e3v67sEK+8YZdnBoH5fq/ZYS6jpn5eOhHE78L6ChF3ozFLtigWz1NivYirYgbbjULSF7aXjk2QauLCteRtdl0Y6pxykawgCDC50otXCToNSmNn6Km4jF+uQOXZgKRIFYSPgkq09OmWGvZ5pMzM3oZjyxIKkg+dIcU2j49qmliSv+qnrKFWYvUV6q0KQLFinJFnF98YgTjAz0c7xfD7IukyqA4YaWDCyVxL6M3kR1rg2oqK6mFTfrPjwrFnsoQ3pSr+I+8Sz X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(133145235818549)(236129657087228)(148574349560750)(167848164394848); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(20161123564025)(20161123555025)(20161123560025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN1PR07MB2352;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN1PR07MB2352; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR07MB2352;4:OZHdGR/jfMl5KStq4XpR3lxx955aE19ubWW2ynEuEZ?= =?us-ascii?Q?oPuagqINFEIKGLHuyrBPptq/hZRCKg44FpaSsnJ5YNHKvMHfE5BgjVgbo7o0?= =?us-ascii?Q?TyRGjglCSfamAZtCVYYyvIdisAvXWX1KQn2OBJ7P7B54ZQGuru4BFBL73vP4?= =?us-ascii?Q?+nwd99CSceYGwBlHAXNj8WvEDRP0T2DzHx2cNK6CEdCYNRe27k5rnDf9BZgM?= =?us-ascii?Q?/R/W16jKpcmmKo7GcWcS4utysYoO+CwO8sJ37YN5OMQQeZvNN9l5z3Rta8mV?= =?us-ascii?Q?hQQkFRL2SPjYOxqisXYIyk4kj36FPMHhw7hYNXrl1UyexmpRMWh2dr1vXUEt?= =?us-ascii?Q?GPhlIYULAPxQHtnQTnhpfIg4qjgIqJBlewwx2sGq2i2lUqSmbJZIGErJe0ox?= =?us-ascii?Q?ksOIKG9XORLUE6bsGPhIGW7cLk2iFNXqgTrnThXnQs8PTuusUikllIaqzPg0?= =?us-ascii?Q?sKKaWo6kT6v1ErGdD+lLBHTaTl8yf8Ep2AVDYUS0eSiljE6AGFs5H7XANQIi?= =?us-ascii?Q?FpIbz/Ie05SM9SCEFjMJRoqLtM9rL0kJ8MOOxayjRGlf/g4P8t4dl3r/dDDw?= =?us-ascii?Q?ZNrygXymTnFt6dhdxvtFI+ia4kUit7G8QRURQjERlQlJe9bqwpnxhL1ihewV?= =?us-ascii?Q?mcrpCFTJMVklbnJsAX6EEmrtsPLBXQEGzNy4TluCNjaJg0sg7Hb1/YZ80XPi?= =?us-ascii?Q?1k4STxE1ytqSzrugzl5SXFZE03VXlWRJxNEzvsLFNsKNRJAILOTaR3Hn29Av?= =?us-ascii?Q?uU3AkGAX1rPFeIjj4M/YNcLYugDdak/rjG0ShHcayU84SPd4bv43YGNU4xgj?= =?us-ascii?Q?AHazs/xIB7JqU0+OyZsIuCp0eaR3rbFar4NFcLcyoGbNLYXPJdZpGAUNypfb?= =?us-ascii?Q?I4DVB/PCCuYT/mF2SXifH6qTlRlbC5eVdtunPEUosrmnzZgvPrYAki8L0RK9?= =?us-ascii?Q?6ymwbLw3SaRtZja7tbNhBzdzb3SBMDawTQN1W1XftsE0N4qB3mdvhmTOCGti?= =?us-ascii?Q?45XbRZ550MDHaS3cGBmQ2wTuQECqkVA5aeRVeuzdyyU8jf/4Kda+ta2kNWEs?= =?us-ascii?Q?651nNBplXrFEnr2jNORSEWIi3tQJKA5yZxIMb3PRRrxwgqmHzb6/pPA3bIsz?= =?us-ascii?Q?AUAqV6phcoJ8M9nqxg4pke8JxVAS315XGH11+Gp9Zhk8mMNapTzJXoIRaA2i?= =?us-ascii?Q?wKwEMIJN3gU9jmtP9YzAnnBHIitkDjjWUmiveCExrf5UF9DDWv3u3+RFA+r7?= =?us-ascii?Q?z1qUEkqoa2LfexAKbdwaIBJXNO4f/3iTqgVafFBmCrPJOxThVJa9NdIALYyl?= =?us-ascii?Q?BdArZw/6aKrc1nTBV/Aenh2NE7GRCb8a4315URyPDc?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(979002)(6009001)(39850400002)(39410400002)(39400400002)(39450400003)(39840400002)(24454002)(377454003)(83506001)(3846002)(6116002)(23726003)(1076002)(66066001)(6506006)(47776003)(53936002)(9686003)(55016002)(54906002)(305945005)(5660300001)(42186005)(7416002)(86362001)(93886004)(230783001)(229853002)(50466002)(50986999)(76176999)(54356999)(2950100002)(6916009)(6666003)(33656002)(4001350100001)(72206003)(478600001)(2906002)(189998001)(81166006)(81156014)(7736002)(8676002)(4326008)(38730400002)(25786009)(6246003)(110136004)(53546010)(18370500001)(217873001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR07MB2352;H:rric.localdomain;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR07MB2352;23:bJFNrmss25J9loPxGTLhvgDj1rwnUylnHd4XZCJuO?= =?us-ascii?Q?tAAeLLdw49hluh1iaTBw5ENETksG8J/+ePQQF3kSUQw+0+uqrmZ3CqbDp8JR?= =?us-ascii?Q?bN/hTRXGfUJxDy1rUvXolaCxhZZJBoO4Js89cbwbThnOCrH9+vu/56s2FxOF?= =?us-ascii?Q?OCuFjjZOuWD+NjpNjOrJ8ZhjZY93QOMIxwggijwpaCviSsO32wG7Lvp4NZQG?= =?us-ascii?Q?xBukt/6FQSxcZCtxLYquGu6QqZAPirZXcQtjvoAVyjeJMp+YQfxukKW9eWUm?= =?us-ascii?Q?Tcn7xM5GjPD2Qg6d5r1lps67MOOGOriEBTffB8UVrUkFCb1yNuWx9pSSAt48?= =?us-ascii?Q?GyaEdC7XMbUZxbwgbaZ2vH9s+G8dyFB0nqYYy6IiUHei92d5+iUbFPgcwS7S?= =?us-ascii?Q?Jfix3I2qwXwez24kCJ6Cb6xtdzlGoNHfkhSnBmtQTOgvCOOyL8P1JEfATMg6?= =?us-ascii?Q?L+kqKKgdwh9LZPIMuYwxfwtkCg+WUW+pcckpH6TP23hXjD1aSMDOmEObp5Tr?= =?us-ascii?Q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X06Uh?= =?us-ascii?Q?RfBmPo9amHlwys1vpVSAuEgo9RQVjW0XrzsPP3zmIVCvoYzvNYP4/Xnx/YkO?= =?us-ascii?Q?JFr8ROZf6F8lq+3MP2IjnMhu1uaMgdvgcoYHx/1od3KAdz8S5alhTOpWWx2l?= =?us-ascii?Q?HiWTvRheLN/cW1BP6peZ0WAIBjA6emwx37uZId3GkS2pCdffv4KgbsGwIvVh?= =?us-ascii?Q?I=3D?= X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2352;5:pLhqfQl7vmuzl50QojAuVhAaL3GRFCRV6gWiHWevo3N9PlKsdm4/n4H47SGm1lXLWnftusiyM5nweoZm4s5DpdhNhIDzXOqx7gUHfFsn1WWx9Xfo9vQ7q+RBdo3wKfdEPf0WVZG9iNJ5tBadI3WXyjCRFqCXiy8aaSDHpZlyutzo+t5/O06oEVJwHpNif/Q9HWLPCP0iMuI5sX6XbVOhCNq0MlNhGPWIcjK5yhEsMzpRZLtFjDFJtx1C/3HxLB/RUD4d6sneQt6SZzvg7EL5qRAA39gXPSqF57AkcjKDJT8ssnorQMW2fIqJe2kwHB2pWn2m9ofgQoDqJlWo8rG2czp0H4JSchVImvNK2ij9WQKOLIXabJ78BeA6mTHz3kP0tXY00f+W4p4J4ab8h6qqk5XfWu86XicOSMXulfDmaL4e7yJM9Uc9aJM3nfr7+ryrqW5ptlbL/klMfPJX78uADng2WZPOXL+YlmZvlr3m2iebxyZDnw8hkNuxyyCRwKuO;24:fpDtl0GAif1pP669eYhNIzws6MRusGlEmiQ6zsyKdc4DVBND559yjqFgzSA8BBQ17092Nldq11U/8zbgJhRtbyVWJcm4AHI7Zhee2E1i+CU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2352;7:d5vSVjw07h8TfS3DrDh0j1J9OgiG7cibAR4tZ8QMPF4zZZo7bJSaM2FtZRSTvVRgBtmZi7ZD8Ec21A08sWT3vIUykRDhBICtfXBtik2WFzwXZzTQsTyA8NJKux+QznzqQkZtHy+PG/r7RiXqI65GG36IOwkV/vqXk+pJNqmyCraF87A96Zc1Fd+npFzJVsgTkUUfEK24aBMm+lUPhiMfePuxJwArWQuiOZkk97LBVoI+e9wYbiBlmdQ6ArBdyeHg7vJL1eJHHNenv2bBSg4FkeiJX9Yb/EpndFGfWy+iIttPRCmF9KSVdmTNYtVkPgKNZrVKC6ffNB2w6HDjhTU0hCgmooqGxWWAX5XvkJXMXcP8WMcMYKT/IxWVB3e6/5j3aE3Qx8/vpmSw1f0gYSOZGZE1qPCkFGWPixEmK00cBn+wMh6VLVYIDMoC9/fJ1cncERKidUR7AzN9wJZpzsCwPSlxquqtbrcA7LOHfXY11NhrOB7ZjEvjkDeOGESlRBSqUDVQWsk6eRjYhW+Xg/fF9GXICzS5xgBIBk/Eqm3h2lJkZrVNyJmB9i8ULg6DqkOjJQFkxoAsmo2MUYfn9bUGf5DkjDJnKqKVAvmSFW9WJTd+4q+H6X8UD74erxPc2YrxgP8Ramsly/Ly92oXNTjAZGeZd5/wEKdk1holhs3KQkgnI8jYHhBNevz7n3xELTV6sWI8qvNGLXA00wXXH9JzaCKh//J/VxRbSCBthypad2wZk7tcuuhNiMLfwt/BpCCawU0G//JCew2z5DAh4YbCFRTqXzRvqIRbmuazx1AgfrY= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:18:12.4311 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2352 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2446 Lines: 56 On 27.06.17 20:28:14, Geetha Akula wrote: > On Tue, Jun 27, 2017 at 7:36 PM, Will Deacon wrote: > > On Tue, Jun 27, 2017 at 03:56:10PM +0200, Robert Richter wrote: > >> 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: > Node1 SMMU interrupts are programmed wrong in the firmware. > Node 0 and Node1 SMMU do not share interrupts. > I have verified the patch on dual node with correct interrupt numbers > programmed in firmware. Ah, ok, will update to latest fw. Thanks, -Robert