Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933932AbbGHK3G (ORCPT ); Wed, 8 Jul 2015 06:29:06 -0400 Received: from mail-bn1bon0065.outbound.protection.outlook.com ([157.56.111.65]:22240 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932863AbbGHK3C (ORCPT ); Wed, 8 Jul 2015 06:29:02 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none; Date: Wed, 8 Jul 2015 12:28:46 +0200 From: Robert Richter To: Marc Zyngier CC: Robert Richter , Thomas Gleixner , Jason Cooper , Tirumalesh Chalamarla , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 3/4] irqchip, gicv3: Implement Cavium ThunderX erratum 23154 Message-ID: <20150708102846.GT10428@rric.localhost> References: <1435673643-31676-1-git-send-email-rric@kernel.org> <1435673643-31676-4-git-send-email-rric@kernel.org> <559A5BB6.2040509@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <559A5BB6.2040509@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [78.53.81.42] X-ClientProxiedBy: AMSPR04CA0028.eurprd04.prod.outlook.com (10.242.87.146) To CY1PR0701MB1616.namprd07.prod.outlook.com (25.163.20.153) X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1616;2:WjXqPdc5/24Lp2IxJzOkmuuvX0+YpoA24lRE3+k5Sx9Lge45BlJkMjsIBQeLUSO3;3:JjZh4qTanWJ9SQogxBSBUlblBjGcheuY7jxT0kuJueCv1cN5D2o3b0ZiXKcKn8J8Ukd9mY/dZfJSAxvng0ZxdBW9B4iIMKYNJuQCNQO1ohaNIZ3aFfDnYv9Vfh56idzk0Ql5eSMVZMYhXkkVp44VaA==;25:eKrFsMHQJuYapErl1JeapROYVLZ0NZj4QvoTwXOW+3MVBfpnJqPsH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8Quypz3G8WIzvK5mIWAfME9VRaR76H0AovaMFkHUoGErnaMCMlRPNLEc2T1wC4Kmr3z2rW+Tr8RjbSV/35/MV1HadiUN4P/vKLGV2umnkAjZBVUlxZ0TV6+nXiZsMo8M3uOrmd584YnMOTU9MOvPlnQo+OOTkE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR0701MB1616;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0701MB1616; X-Forefront-PRVS: 0631F0BC3D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(24454002)(51704005)(164054003)(479174004)(77096005)(46406003)(66066001)(189998001)(92566002)(46102003)(83506001)(5001960100002)(110136002)(23726002)(40100003)(122386002)(2950100001)(87976001)(33656002)(54356999)(97756001)(77156002)(76176999)(86362001)(76506005)(42186005)(50986999)(575784001)(50466002)(62966003)(4001350100001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0701MB1616;H:rric.localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1616;23:bH1gAzWhdx9YqSzC8LMmgnP2xbuWmi8lpJa66bYG2g9hR9+eellM7T+irHYSx+J2m3smZ/uT5SdxvU01fdkBqu+DcmSAHPg12lGWAfxpppcpYKsTe6nCZ3CbXFkkvN7mnS+wAAAmljKrsptchVyj/Hpi/wHCDakADEOezzZfx0ylDXGP+IVf1d3rjWE6qwEcmbSRS8wz+akRRBUbO09vJDHx6vLLyd+zAdh92eQFfnT4zYVsUHYcowqRXz6oAyCoKebWTUYbQEUf/PyeteJsIKRR6/3WOSI0SiC/JQ6tWElg4I1z93qrLLR5AZBDB4mt4+FHKklu3cXpGu1/F7S98VUHXd/dWojmumXRuY7BI2qhAFaVY0pxaRdjthy2ZhBFswNcO3Lc5vUBoUdR5xWVttnUuLrhNG83wJ6sNUHVc5qgpCFdQsRWxbt+sjebR0VXZX9tVgWYuXBlBMbL5zsNw5O4Fi7vDGvONNz4O+oQzNT/VC0EIOrE7+TThBib4/2gnJoO2mhs4Z4Lhnt6fz+66GIe7j0+w6E/G2V5QdzRb1wEJtO+lTefAtMUZUsBxRmkD96l7Zn3wwMUuedd//Ex9xw94K/axyXVOCmdnq3diDtkdJONQnPaky6QLIkOywzq+/V/CvAJm0desTWc93Woyj6xgBl0b+RhwPxhK58xl54SAGtCt7nD2wSj4U9NXuVnSDSYecJ/TAqxz+Q0H0HBN6zsAFU50aI5wI/bLnD2ZtlMkhCgaVIDB8gz6vKFiOqqMif4k4DaSwDUvXaDiZ/+UeZ6WQvFQG4gHWRMVXa6RPF6VWswpN8oNRyx+NZ3wH0hIrF9GNWUcsa8AF1JXkYbFBbNQS/nW95rpJVIV1A9OXS788V3f/gVrLadO+3G5Ber X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1616;5:RIcRXtCvXoYS2hI/BzsLT4dKsfx9HHJxybsMNp172sIdpvlXkByNXqlEZZ5CrDj+zfxyc9aaPZFVUzVrUZVVHzVoSsmfIYlDgsDJenYixBCjQVNagv7/I1IXbURFehrAYtA/TCbIFlRHuIi0tFKsOA==;24:s2FyaH9oNDsE7WuXixNlPSSv6X/OhfHSAgR7Nom3pkGdnn6VAq+1I2gidQTDcuHloYjjfxiqXKD8R0iloBK6Ld8AtgMQzGqu3JOzYbow4u8=;20:PvcpybjFIDqPqKEcr0wGANiwkX9bdJvCaGtRLxSA8C04o6SeznedcfWWkZP3WSPYogiFkCq4FKu8NrGCEDsCcw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2015 10:28:57.9143 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1616 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1099 Lines: 36 Marc, On 06.07.15 11:43:02, Marc Zyngier wrote: > On 30/06/15 15:14, Robert Richter wrote: > > static const struct gic_capabilities gicv3_errata[] = { > > { > > + .desc = "GIC: Cavium erratum 23154", > > + .id = 0xa100034c, /* ThunderX pass 1.x */ > > + .mask = 0xffff0fff, > > + .init = gicv3_enable_cavium_thunderx, > > + }, > > + { > > } > > }; > > > > > > How does this work when running a guest? Does the virtualized access > suffer from the same erratum? If that's the case, we need a better > workaround... We need to apply the workaround also for guests. So you are right, evaluating GICD_IIDR does not enable the workaround then as the register is emulated with ARM as implementer. We considering MIDR_EL1 as a version check for this errata now. This should be the host's cpuid when running as a guest, right? Thanks, -Robert -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/