Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp22164400ybl; Mon, 6 Jan 2020 19:56:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwZ6E8KUzyPG4ReFQ9TMU9sEz+7A7h84MLuPwMc0N0oP5+pktZQv7vdI/wxeVo0ZfIhMeCQ X-Received: by 2002:a9d:6f0d:: with SMTP id n13mr124173082otq.165.1578369415424; Mon, 06 Jan 2020 19:56:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578369415; cv=pass; d=google.com; s=arc-20160816; b=CW4bnKdmZ0pmUV9jJPkK3lebVGKSi2itC5h9e4YT763F+cjAGLhg9EDabGeYSvJjhm wD3U9K8OR/ek/1k6WfL/1R8eO8WL8tX5POnAwsGj+5NJ/eBLgt72VwWUdDvgj52jtC7o r4rbGTXjDFblokgkPob4Uh6G9zr/GfL0ssKusc29Fyh6UHXqAbVyxzb4Qg7UFxHPRMqh a8TQbHHOwR8gCysUau1ZrzlFyCsucEgVs8L/dkdUx6yE2YfaMZmLJt7JS/Bn6zpTUwT+ KFMK9L8rsLaVkaIh1OTzZsauB1ggOjJDE1ASxNSd2cD8uyCEhh69X06/K15kWPFrEInp U8LQ== 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=AcF8IYQV/p+3Mw01DxDjOJz0cPFS+5OiYKdA5/8RNWU=; b=O3aYx1wBteqGj0yLL03eVp8xCGYQopLQO3QUBumZGFEzVFRjAJxAyB3cm11RrIL6jO 945Cx/EbfzyB1NC20RgtbNMwCXrUK/llZx0zwX8v7DUulx69FCOmi9iEZMaZ7FM5s29I Kn4epHZ75oyYY6VKDrQ8Uhqd19q2hBN436EvJIhlBr/asLCEjUy3dWH+akaYSnflNRt6 lve/uiAZUt4Xi+VW51lbFep/1ozvq148CNKn3fowSffxDsA4K8N2knRn23dX+dI33LS6 ad2PgzFxbMKe1ZEMpZIhomD2k1tIH57pBX4Y1xSPmWuruY7Dlmi8gjrDH3xwhEHzo6d/ UrEw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=selector1 header.b=JW18wGDI; 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 n11si35740914otq.112.2020.01.06.19.56.40; Mon, 06 Jan 2020 19:56:55 -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=JW18wGDI; 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 S1727464AbgAGDzz (ORCPT + 99 others); Mon, 6 Jan 2020 22:55:55 -0500 Received: from mail-bn7nam10on2082.outbound.protection.outlook.com ([40.107.92.82]:40704 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727430AbgAGDzz (ORCPT ); Mon, 6 Jan 2020 22:55:55 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZrXOmojJrxh61paJIRPYicWhtCaSyhodJ/LO0YPGnHewrcwgqImwGf9IrfCpWAuhJBwidxVbIlSchpAp8/WVkH0VyLdOBnTaJCfNNknKiAz40oaPpMsNV0qxNQgbQ7Nv/k5atvJyy/RMrtBWlM2hbJPSmTprzQImgJuXD/TVHvyWKSdh32769ZjFvFQ+V8v0zniVl52cJQMrK9FcXOXl6zqv2yDKvk4e5YZ0SzeTMwrxbDq1l5J0oLnXTn0BmE8BoO3lqh8zsqxYaVfbRqnnmclwoFIOv4DFHPbn8AnQJ/Zfwu8hRXwqPAo10IrvOrFuHSTN+e0RBFx9p+1N7iqQXg== 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=AcF8IYQV/p+3Mw01DxDjOJz0cPFS+5OiYKdA5/8RNWU=; b=mKATzE4hOymqM+O2elXmcsnsPeBLoAf/RTlBdnURxhVhoIOsJrxYV3ON8hmRp84MY0Pyybiw6iWqhc3vJRyZqS1joarKzBBH88EzXFWCaqiqEKOGr0Bi1d9bWAaMZyPyT6Jd56hBEgPcbI+ghLgQoNzKavLWUy+AAUfMBKPCvVGBQ8YC3DcKJ1I58cwvUoeE8vGeUAHLCe1omKNfYgabYFgZRB3/O1655J25SPoNGb4cBoTa8tYUuLd+PLkitY3FwGCpGMzTYpKiBfZrV12xhLP6+D5vST4QPvsNTbik8gH4h+U7FM1cGgT6j02venGJa53UzC/8pdAe/PVEKn8U2Q== 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=AcF8IYQV/p+3Mw01DxDjOJz0cPFS+5OiYKdA5/8RNWU=; b=JW18wGDISo3gON6yxR7UJsntPRk7m2eH1cWAjvx+k8Htdv4nc0tsTO/ti6DCB9rX1H3G45NgWWEgy8l8rmj1+o0YWZ55ew8KdPDV2eJnuv+w436QviZZo3m96lX8BFXL+e40NlAWF/gFamBy5NnJcMnPiiRrEt+6Wks1HvVOMeQ= Received: from CH2PR13MB3368.namprd13.prod.outlook.com (52.132.246.90) by CH2SPR01MB0023.namprd13.prod.outlook.com (20.180.14.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.8; Tue, 7 Jan 2020 03:55:49 +0000 Received: from CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::eccb:16ac:e897:85d5]) by CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::eccb:16ac:e897:85d5%3]) with mapi id 15.20.2623.008; Tue, 7 Jan 2020 03:55:49 +0000 From: Yash Shah To: Anup Patel CC: Rob Herring , Mark Rutland , "Paul Walmsley ( Sifive)" , Palmer Dabbelt , Albert Ou , Bin Meng , Green Wan , Allison Randal , Alexios Zavras , Greg Kroah-Hartman , Thomas Gleixner , "bp@suse.de" , "devicetree@vger.kernel.org" , linux-riscv , "linux-kernel@vger.kernel.org List" , Sachin Ghadi Subject: RE: [PATCH v2 2/2] riscv: cacheinfo: Add support to determine no. of L2 cache way enabled Thread-Topic: [PATCH v2 2/2] riscv: cacheinfo: Add support to determine no. of L2 cache way enabled Thread-Index: AQHVwew4Uxrz+iLoAkGC7gaBkWkw+qfdXmOAgAE5Y/A= Date: Tue, 7 Jan 2020 03:55:49 +0000 Message-ID: References: <1578024801-39039-1-git-send-email-yash.shah@sifive.com> <1578024801-39039-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: [114.143.65.226] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 54248c7f-ba2d-4654-26b7-08d793257be8 x-ms-traffictypediagnostic: CH2SPR01MB0023: 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:3044; x-forefront-prvs: 027578BB13 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39850400004)(346002)(396003)(136003)(376002)(366004)(13464003)(199004)(189003)(2906002)(107886003)(54906003)(186003)(9686003)(316002)(6506007)(55016002)(26005)(76116006)(53546011)(66556008)(52536014)(66446008)(7416002)(86362001)(81156014)(4326008)(64756008)(66946007)(478600001)(81166006)(66476007)(44832011)(8936002)(8676002)(5660300002)(6916009)(33656002)(71200400001)(7696005);DIR:OUT;SFP:1101;SCL:1;SRVR:CH2SPR01MB0023;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: SKWswHRpy+8xtmPQ6auYlMt65Vgvm8tHblCbmBfSJTO9INn9bPYBFuh7Hu3stH9xmnYCEZyeDH3cN54OGA7hZssIbGFqilgay9ReYIUbBy1NZpPi103YsfRY2DVkGSWuyf7BWmgBhT4npeo0tu4U0unoq0bAieaxtXimIKBXwjPC+SVDZPIZDrO04GkflSj7R/jmHqmxWgOKxliyiAUzxjljwMazQAsbwaKoK4eT9iJyACrIwnA3BMJ3TMSt1gm30R9xnzYZvqAuiPkq0G/PAOgkoPSADoAbM/R6tN/CTZz19KplUEXndViUeCovGL/DoRw0pQ9HDa3HvzDAHddiSpmd8fjRUMYVN51icAbine0LnUnpDU6w12Q66Ckr8BGUEUb0mpH4YdxUNt0zygRCDQs51XtTp3ANDg37R3OO5BEJotSEjtj9+aV/PY+UaDpIDSiywSSfLQ4smeVswXON8S3eEry83e0viJCFKzO3czIxKV+9NmFq8McBNRK6gPrT 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: 54248c7f-ba2d-4654-26b7-08d793257be8 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2020 03:55:49.6260 (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: w558/QEeYpY/nDv/mNQBZ8/2D0XWCx8o5hESXSd4JBuQc5F6YN3Ya2JT8d56UsGAgjo1picJCNUqrH8F2VIlEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2SPR01MB0023 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW51cCBQYXRlbCA8YW51 cEBicmFpbmZhdWx0Lm9yZz4NCj4gU2VudDogMDYgSmFudWFyeSAyMDIwIDE0OjQwDQo+IFRvOiBZ YXNoIFNoYWggPHlhc2guc2hhaEBzaWZpdmUuY29tPg0KPiBDYzogUm9iIEhlcnJpbmcgPHJvYmgr ZHRAa2VybmVsLm9yZz47IE1hcmsgUnV0bGFuZA0KPiA8bWFyay5ydXRsYW5kQGFybS5jb20+OyBQ YXVsIFdhbG1zbGV5ICggU2lmaXZlKQ0KPiA8cGF1bC53YWxtc2xleUBzaWZpdmUuY29tPjsgUGFs bWVyIERhYmJlbHQgPHBhbG1lckBkYWJiZWx0LmNvbT47DQo+IEFsYmVydCBPdSA8YW91QGVlY3Mu YmVya2VsZXkuZWR1PjsgQmluIE1lbmcgPGJtZW5nLmNuQGdtYWlsLmNvbT47DQo+IEdyZWVuIFdh biA8Z3JlZW4ud2FuQHNpZml2ZS5jb20+OyBBbGxpc29uIFJh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