Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp352124ybh; Wed, 11 Mar 2020 02:20:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtFk7iMAmk5Am3Vp94YoA+oXWt63Msbf9sj4beqLLOu+h3C+0dJ35KkATxfRkZSPzOG5p9M X-Received: by 2002:aca:be56:: with SMTP id o83mr1255865oif.25.1583918422732; Wed, 11 Mar 2020 02:20:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1583918422; cv=pass; d=google.com; s=arc-20160816; b=rvM8gt0UygviPU3sxoKi9K6l9PCU2fwxNvXlMGJ9iooyhXbK6UISzyHXPJCq3Lh5Pk OyD25Bzn3mG30La8UbizcTPQrAlKO4LNp0FU+OI1NEn8VUsTATDpfaRvxnX1RprJmmeT Vp5ABfb+6cK9juhM5X8HNZ8Sk2WKF0F4YqSaAqnw0mAqzIUe9zaXTcfusVRyHUy/z4H9 m/SeTatiH5HHI7As0tAuJtKh4HKee3j03xmRo22qlXlO739yFktzYYkLHI7eaWrhg8pB jV9MdBrObWy2T7AJ6IMnTH2uxA06wiGug1plykVPXfySgxZjILyeRGJEyUHNg6LZAhHj cDQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=QzLOescWEVxZpG3gRQKush8+1AsCO0Y0iAOQCv12VG4=; b=Zd46NLUla1aH16zZEFWZPoQZ4dr7FPLXMyIBIS8soT0u7pdWonJhn4jTsGgZFJFjXw aYustpiopNjVmffmSBOia2lhnIIMRNvIm9MVocTbRWbH3Bu9bHxued0NDq240UoxqD1y 89DMDtWM2dXdCmcQzcwTffr2R4PU370LdxWzMksUUYOhgtyXqIpDigfPbDax0j5ewf2Z ZBhIppYRksCxoDNwJNgT6+jOZpeXCpi2SlwF7wBt84xUYAy+YyYyptyyt5PJr/DApffk 77aqLwUksg1GNqPm3Up23leVzTEp82YzzY3yPe1xy8KemRQkdoim76kwCMewXZ/rkVJq Y0kA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=DXUwmDsa; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b="E0of12/4"; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si1098176ots.130.2020.03.11.02.20.10; Wed, 11 Mar 2020 02:20:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0818 header.b=DXUwmDsa; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b="E0of12/4"; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728606AbgCKJSt (ORCPT + 99 others); Wed, 11 Mar 2020 05:18:49 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:36358 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726160AbgCKJSt (ORCPT ); Wed, 11 Mar 2020 05:18:49 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02B96GAF029149; Wed, 11 Mar 2020 02:18:29 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=pfpt0818; bh=QzLOescWEVxZpG3gRQKush8+1AsCO0Y0iAOQCv12VG4=; b=DXUwmDsaBfNUsTTF2Z8Kk580bBUFiyPDSVkfHp1bC4gHDhW+lOZK33lhmZdifULmfVWB CrvZY+v5QVqJIE/x/5pEgLXrz+mKWRbhNBfWyyHEKN1UeQr8inRQ65g9Z7wzWRA9Kc95 f/CoAxXD7j2WnEURg/fmUe53EuBVmAuKB9h/Is9WrHX3BqnpxX0gLAPdQuINH+RwdGJ1 Mz3j+Pelyj/CdAC/G9JvEPzZdYV5i3eqEWodevxQd0oOe+lzC16CW51+lGrTTdawC7SV uqvP2Cssmr7eCNWXSrdbVQc0zH6hIZqV4QkUNFiTvDPLNjbzSowVP3i6rmptrlIv1loD iw== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2yp04ft313-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 11 Mar 2020 02:18:27 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 11 Mar 2020 02:18:25 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.171) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Wed, 11 Mar 2020 02:18:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RcwuSWso4AxZwJZNEpfgl2ROM2wrNf144kPeDFSgiEH44PsIib+zoKrJePE8kRMpdDUIPvAAslh2oFq5ukyt6NXAvEtDrBTi4KBONIvZJsfSQ4GhTbFQYfb2/CyIa22HWoWfLEZAEqK4JBb6z302GHCwGRcoOuUz88vPViUzWP3zyQha+OJaJLvNOjVq3c3znZNTuPBa8M/q0OiqDosMZjGJiiNA+2WhmKFdanlz4Xmgt+chkOCVW0ev2rubcZJ7EMk7bkrgtlrNWabtAvOMZgMUkn0yzhXrYK94ccXwi2FaD8OJDyLAnfhd1pnWZN/DCKq7PUB+oIR1W9I1063ycw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QzLOescWEVxZpG3gRQKush8+1AsCO0Y0iAOQCv12VG4=; b=Rxe4QZ+KMb4xCB6qD7YfSewnLVO6PRTNEBwmedR1U46OP3FPUmmEOcUBx7b3v0W4XFd0FeKCt+GqIDAM3/eUazxMqSsdSPKYWPWmPyTB6hMxvgmbXrV6LOuhh/hfrL4vZqSWjnz3XX0Aew1iPPwQbyuPcREygOHqseD+3f1xv6C0A0ExB2tuiRVGVbBAqsMztbtTXwVzplax0J8jeE8yvQkIS/E0IDx7OjWLimAhFnEJ7bOLwGXO4KBBmbe699wDr9G2qGI7Tw01EXy51uA7ysCCv44PMPk++Z5pp27ZPkWhxt2Hr8Qai7Czode417Fka7ABYeIscPExvYGPieDYOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QzLOescWEVxZpG3gRQKush8+1AsCO0Y0iAOQCv12VG4=; b=E0of12/4FqgrF00gueL4jilerXgQw+F3/zW0IcqmItlXzFf3S7OsMDm3ixz6R5ML1UULzxSoWve6PjuS3ivaK/jynenSeMd7bA26NwEtDL/yHpZqAPgZzxjl+eQBp9Xpyy7A4NH4dI7d416bxjR8iMmlyGvPqffxPr3G/plpmHo= Received: from MN2PR18MB3408.namprd18.prod.outlook.com (2603:10b6:208:165::10) by MN2PR18MB3688.namprd18.prod.outlook.com (2603:10b6:208:260::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.14; Wed, 11 Mar 2020 09:18:24 +0000 Received: from MN2PR18MB3408.namprd18.prod.outlook.com ([fe80::30c4:52fe:fdf8:faff]) by MN2PR18MB3408.namprd18.prod.outlook.com ([fe80::30c4:52fe:fdf8:faff%7]) with mapi id 15.20.2793.018; Wed, 11 Mar 2020 09:18:24 +0000 Date: Wed, 11 Mar 2020 10:18:15 +0100 From: Robert Richter To: Marc Zyngier CC: , , Eric Auger , James Morse , Julien Thierry , Suzuki K Poulose , Thomas Gleixner , Jason Cooper , Lorenzo Pieralisi , Andrew Murray , Zenghui Yu Subject: Re: [PATCH v3 03/32] irqchip/gic-v3: Workaround Cavium TX1 erratum when reading GICD_TYPER2 Message-ID: <20200311091814.kp4xfsofalutlbv6@rric.localdomain> References: <20191224111055.11836-1-maz@kernel.org> <20191224111055.11836-4-maz@kernel.org> <20200309221137.5pjh4vkc62ft3h2a@rric.localdomain> <20200311084515.5vbfudbls3cj2cre@rric.localdomain> <74682a83c75bc8e517462d181e6c24c7@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <74682a83c75bc8e517462d181e6c24c7@kernel.org> User-Agent: NeoMutt/20170113 (1.7.2) X-ClientProxiedBy: HE1PR0102CA0063.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::40) To MN2PR18MB3408.namprd18.prod.outlook.com (2603:10b6:208:165::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from rric.localdomain (31.208.96.227) by HE1PR0102CA0063.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.15 via Frontend Transport; Wed, 11 Mar 2020 09:18:21 +0000 X-Originating-IP: [31.208.96.227] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b10614f1-e795-4184-8ec5-08d7c59d264a X-MS-TrafficTypeDiagnostic: MN2PR18MB3688: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 0339F89554 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4636009)(346002)(39850400004)(396003)(376002)(366004)(136003)(199004)(5660300002)(4326008)(86362001)(66946007)(66556008)(66476007)(26005)(956004)(9686003)(316002)(8676002)(8936002)(478600001)(81166006)(81156014)(55016002)(16526019)(7416002)(186003)(2906002)(7696005)(1076003)(52116002)(54906003)(6666004)(53546011)(6506007)(6916009);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR18MB3688;H:MN2PR18MB3408.namprd18.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1; Received-SPF: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bQWrEsPg95/beV1ooE8BhYf1rSkMcMGKiJtUfKn4P0yUs8mzlD8u7oVh7Wnovp9NLl5PT8lCGsBv7aza1rpwn+R+MHnHSxphwt1n9KFd2koT/IntxuDsSkGjPV2ihjBozloJXpJ3SwcyY54XtARDqJBHjB0kUO1J65AEXqp/emEpZ0leDPjw7Elin5lEPWh911PoMkY8SapUlTcp/zom7m7d3LyUia4bG8SywnbANCTIUpECyrY0KPktZrmsprIHbAyl5QBbbo+APQZZZ5gx6CZjW3HyWasee45k7FGaaXmfo/w1Jr0M1bAP4SgnTcz8FR+Zqz3fXALexrRO6UtcO1FFa5DbHns2moQwtrIjVF6ytoPeCMGtipsG4S7ln8aqQ/6cluHGSvhxRcIQjtf/nmormyjGV8uwbkHkky6+z1knafuhg0K5odQfFGBk5cMw X-MS-Exchange-AntiSpam-MessageData: 7WtyD512l4kCxqX5B7gVk485urlzTIX96HblqGjh9sdRB7xNYCzNBMWP6CI5XFGNjaIQ8dHGCeeu/qLVeHDEsXsEppTRxAJbFib3ihY0qdNv8VqxXv+7eOpC00QS0F16NOI3IdnZjBWwBJl8F3Tt7A== X-MS-Exchange-CrossTenant-Network-Message-Id: b10614f1-e795-4184-8ec5-08d7c59d264a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2020 09:18:24.0251 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vpaoQNTNd0N+8QwjBvxH8XSFZ4gUlny0ykYjd5o7M4LrLKnanyvk988m3dNa1Em0IKuanA8uwQfvCeORVK6Y9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3688 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-03-11_02:2020-03-10,2020-03-11 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.03.20 09:03:48, Marc Zyngier wrote: > Hi Robert, > > On 2020-03-11 08:45, Robert Richter wrote: > > Hi Marc, > > > > On 10.03.20 11:41:09, Marc Zyngier wrote: > > > On 2020-03-09 22:11, Robert Richter wrote: > > > > On 24.12.19 11:10:26, Marc Zyngier wrote: > > > > > > > @@ -1502,6 +1512,12 @@ static const struct gic_quirk gic_quirks[] = { > > > > > .mask = 0xffffffff, > > > > > .init = gic_enable_quirk_hip06_07, > > > > > }, > > > > > + { > > > > > + .desc = "GICv3: Cavium TX1 GICD_TYPER2 erratum", > > > > > > > > There is no errata number yet. > > > > > > Please let me know when/if you obtain one. > > > > GIC-38539: GIC faults when accessing reserved GICD_TYPER2 register > > > > Applies to (covered with iidr mask below): > > > > ThunderX: CN88xx > > OCTEON TX: CN83xx, CN81xx > > OCTEON TX2: CN93xx, CN96xx, CN98xx, CNF95xx* > > > > Issue: Access to GIC reserved registers results in an exception. > > Notes: > > 1) This applies to other reserved registers too. > > 2) The errata number is unique over all IP blocks, so a macro > > CAVIUM_ERRATUM_38539 is ok. > > Great, thanks a lot for chasing this. One question though: does this > apply to the distributor only? Or to all reserved registers regardless > of the architectural block they are in? It is the whole GIC IP block covered by GICv3 spec. It was implemented during a very early state of the spec and the RES0 requirement was added later to reserved registers. CN8xxx GIC CSR access checking is stricter implemented, so if no register is present, an access results in a fault other than simply returning a RAZ/WI. Thanks, -Robert > > It won't change the workaround for now, but knowing the scope of the > erratum will help future developments. > > Thanks, > > M. > -- > Jazz is not dead. It just smells funny...