Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5525925ybv; Mon, 17 Feb 2020 22:27:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwGK5Ym8OjalH7ycc22VJs7PpkR9rQg8q/ADRUR5zJGP0et4IEdGYdkMaqyhgH6EquV3dd+ X-Received: by 2002:a9d:865:: with SMTP id 92mr2212556oty.6.1582007221361; Mon, 17 Feb 2020 22:27:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1582007221; cv=pass; d=google.com; s=arc-20160816; b=P2S0wq0kAiEXZQRzUH+ckvS5t5z92AtenpAndkvJAf9BFZmG7bi8AuYbKbbNm5RVHx 7OaYJ2JRqp+ZoDgE79saUjzD+K8Sfs0I1/RYIXOV/wVwXnGj/B4mJAOyfMFlXSbYBS5/ Q9y6xBdhYgSoG0sRy/XI82BFm5gkJvDEtc1IUkqJq+UVKavtUxgn5buf8FijhT6i43Fn ix+14q5/YmSDa+71a5kfr5qrSvZ9e6wGvKc+hbrwp8c7XWNYlSnzuWdinaBjLfToUK+c SruDEV306FaixFmM+CQEJrcwShD7x6Myg3QUD0EypmLc5dJNZhxdBU0C/biAwc888G4s 2vMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=L/Ddfhs1i2Hx2NZQD2rNIN14IJ2Djvb9/YcMi3xTALI=; b=KF4H6E3vUlTYjnm0FerN0GZb3naS5EzzdtY5udov1by8kVzKIeQHXRnUhHdS9spOGG Og1DyotNYS4RZJ9ObsHHie+YrqsUsaZiouekCQ1eMCwqIK9csQw7ElXanZR/z85CIi66 mk5P6q3pWL+/z1A4Vr8IWCLu/zlIR2kFv8bziqGPV2GSp5CPRPQTPme1YlrBR+GmRg4/ y8VGRYy2tmLwfflJvltn8+b1pCijynWryc+U8dATzPa9bZYlmzNwFkTZfBQwGaX6XJdp xzYO15c08XWYxj6CAwZu5GTRzU3Zn4h2zzLprRZoFFTI5nfqKQlrmpUPiuL3u5Jdfu8a 0iMw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=selector1 header.b=pt3blCZa; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si1306878otp.260.2020.02.17.22.26.47; Mon, 17 Feb 2020 22:27:01 -0800 (PST) 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=@sifive.com header.s=selector1 header.b=pt3blCZa; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726105AbgBRG0L (ORCPT + 99 others); Tue, 18 Feb 2020 01:26:11 -0500 Received: from mail-eopbgr690057.outbound.protection.outlook.com ([40.107.69.57]:8419 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726065AbgBRG0L (ORCPT ); Tue, 18 Feb 2020 01:26:11 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AV+tjZjX/fQWEmlsIFFw7Jmb3OaNDNnKT7lM13SjRrq1S9+pgt1lNY31NIHqljca5A4Zpjtl9QHHb+D6c5zK8VOPgn3M5EDveXV0RniNXwZklnwrsPcLXftzxD+Ch9zLmIm4iQMGf4FXGMLk+KQyEtxNoctBRpYZq3Y+bVHmcfvLsiIphVbSmho4djFWepguqoN7lrOQxL7Jitp+JUQxYRjZSHJeaY1GeCGaqJfdkr7gFKJNAjmN6KFO0wi7LCrRrUG1eAQ5HMbhxJDQAhiqCG6R9S0WEqrZ4D+h93lZvjvremw3/yHAf1VxIxDDt/xoPBRD8bAsimKYWyW4tLZAKQ== 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=L/Ddfhs1i2Hx2NZQD2rNIN14IJ2Djvb9/YcMi3xTALI=; b=fB0ut5f8N9VHy7yR4hGLfn5wEVol1CnjLmSwchCeSrpaQ8eS9qvO8PT6QJtOh6FnDHbZgW9xjbNDcv0KRsbap6hkFhwHZbApX6Q5iR3HRyyQrtBMolZzoEQznVcpMxXiBMtGcWl5SdEGb52COBG2pVBiCc3p4awlhLgB/lXLjQHICREhs0RIytJ0t9jTsMaL+We5IU7v551qEBZFYD2AY8BkdonmLqFr52bk59OtoUPEB2g3zdPlRMGEhkEBsyqGb83RP7zCLcr6gOFgYKpU6hmpelhzHJlH0MRAOyDoT1i+38sAtL1VabtWve0tOSHHZfhzTXyxzpsw0AlPs5ctUg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sifive.com; dmarc=pass action=none header.from=sifive.com; dkim=pass header.d=sifive.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L/Ddfhs1i2Hx2NZQD2rNIN14IJ2Djvb9/YcMi3xTALI=; b=pt3blCZai3UWGKtlaBX92KTmUoVIaSdpkanokTpuxdYirdHp70k3a21VuYs+5uyS1RPyhJ+WC1GcKpQ2jMSe7/T7k63oftoenWu0miRjO4sFkt4O/l5ah1/lA85upXmYQ0Itx0OiHkjhosgs3RUTKIV42S5Vz4odEG6rn5t27RI= Received: from CH2PR13MB3368.namprd13.prod.outlook.com (52.132.246.90) by CH2PR13MB3333.namprd13.prod.outlook.com (52.132.244.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.9; Tue, 18 Feb 2020 06:25:28 +0000 Received: from CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::55a5:5dab:67de:b5d8]) by CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::55a5:5dab:67de:b5d8%5]) with mapi id 15.20.2750.016; Tue, 18 Feb 2020 06:25:28 +0000 From: Yash Shah To: Palmer Dabbelt CC: "Paul Walmsley ( Sifive)" , "aou@eecs.berkeley.edu" , "allison@lohutok.net" , "alexios.zavras@intel.com" , Greg KH , "tglx@linutronix.de" , "bp@suse.de" , "anup@brainfault.org" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Sachin Ghadi Subject: RE: [PATCH v4 2/2] riscv: Add support to determine no. of L2 cache way enabled Thread-Topic: [PATCH v4 2/2] riscv: Add support to determine no. of L2 cache way enabled Thread-Index: AQHVzQnpYxF/wak8m0+oehsxG26T4KgQLYuAgBCAWHA= Date: Tue, 18 Feb 2020 06:25:27 +0000 Message-ID: References: <1579247018-6720-3-git-send-email-yash.shah@sifive.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yash.shah@sifive.com; x-originating-ip: [49.248.91.34] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b23585ca-0632-4abb-e1fa-08d7b43b58c4 x-ms-traffictypediagnostic: CH2PR13MB3333: x-ld-processed: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 031763BCAF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(346002)(366004)(396003)(376002)(39840400004)(199004)(189003)(6916009)(8676002)(4326008)(66446008)(64756008)(107886003)(8936002)(81166006)(81156014)(52536014)(5660300002)(66556008)(66476007)(7416002)(44832011)(33656002)(316002)(76116006)(53546011)(7696005)(9686003)(55236004)(186003)(478600001)(2906002)(6506007)(71200400001)(54906003)(66946007)(86362001)(26005)(55016002);DIR:OUT;SFP:1101;SCL:1;SRVR:CH2PR13MB3333;H:CH2PR13MB3368.namprd13.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: sifive.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RQT3RiniUXK9fIckIAjk3tzia3nQOGI6XbM75vwdTR5OgB9Z9gxEfbI4NL21y//GaySf45a7ruz8KhOc05p3lfAGaAtzioQ9dKNDidEH/rKb6ZVFOQLSv9+z9Dd68vMjyFLRby/AJ75gyAotDocuo0Et3uwPMVdSvmMwUAa1p2VS8+QOXhHBTzJK1j8XwkYdUsKnkpfJBLcO4a/9N+rg2adcJ/jRGRaOvuUOHbjqZ2N38eDM/kLtOQGSJTJXecwg5fbvcH7E/aSBANDbla8wsa29p6XH7WUh8AV/RXyLZAsg+g7nvmwtIqdLoJM/B+zORqmQwH0ONKD6KtGsM/fYKIJWLqS0z6tZgApnbReV1R4w7hJtRltxGbK+hLF8OLpmwdvpPLKKQiTyJSMEFBD8nSyj+rT3/bmBsg+Z4UPlR2iCBGtx6Qe9dEY9BzvOga84 x-ms-exchange-antispam-messagedata: JZLTpFAFq52ha0vrah+/ktfxZc+3oH2xCldraErxrYQhK5ldc28aM7uRiAgylTRNnFhhRI8bAdI3odANJP1GrH2YFcByGSKJHV9rdaFLP4U7wR4z4Ycwet2ZRPCCT3H1IVhgg9RcNKjQu/Pjsx9NFw== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: b23585ca-0632-4abb-e1fa-08d7b43b58c4 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2020 06:25:28.0173 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: kYTyjaVKOXst7VAhQ1wqdJ6f5pAsYkOe3YPT4y10jVDY7aui3eyAngbZLj06DNT5EcZh66/3iPUkmj1jXGJYgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3333 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBQYWxtZXIgRGFiYmVsdCA8cGFs bWVyZGFiYmVsdEBnb29nbGUuY29tPg0KPiBTZW50OiAwNyBGZWJydWFyeSAyMDIwIDIzOjU0DQo+ IFRvOiBZYXNoIFNoYWggPHlhc2guc2hhaEBzaWZpdmUuY29tPg0KPiBDYzogUGF1bCBXYWxtc2xl eSAoIFNpZml2ZSkgPHBhdWwud2FsbXNsZXlAc2lmaXZlLmNvbT47DQo+IGFvdUBlZWNzLmJlcmtl bGV5LmVkdTsgYWxsaXNvbkBsb2h1dG9rLm5ldDsgYWxleGlvcy56YXZyYXNAaW50ZWwuY29tOw0K PiBHcmVnIEtIIDxncmVna2hAbGludXhmb3VuZGF0aW9uLm9yZz47IHRnbHhAbGludXRyb25peC5k ZTsgYnBAc3VzZS5kZTsNCj4gYW51cEBicmFpbmZhdWx0Lm9yZzsgbGludXgtcmlzY3ZAb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