Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5811346ybh; Wed, 7 Aug 2019 11:50:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPS1q0mG1818dEf7q2bz+8dTshBir00ayQcaNEpKY164a5Agx0mVOWa1doBK7Hno/Op6NK X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr9467761plb.283.1565203808989; Wed, 07 Aug 2019 11:50:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565203808; cv=pass; d=google.com; s=arc-20160816; b=waV2nSL+IwgemowJlftieXD6cRRzJCFTsASZ6OPvBi0q9jxsKK1Q1MLwvvMTAOcMi1 aGrqxsrgs0BrWA8wCm8huzNgZz3Y1ePj/lYfUph6zu4FrRXDmRClWzh897frd5y0EnsV 0PNAqF7Gwei77TZKleHRPn1TvAropdpA/TjiQqQdcbM9W1NG4C3fgzrhGFkBAYrSWp12 D83tkfrN3z2AH4La+6Dikh+tfKwS7thyv6oAQHkk8XHs9xPunkPf6fIpiU/yO7zgCnHE p+e6yufDQwZLuN4hnA+cZB/GAvg4zX+ZRYyaoa0x82jF/g/YTBZlOHcQSlPzz10+/1lR vfKA== 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-id:wdcipoutbound:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature:ironport-sdr:dkim-signature; bh=/5YonVRLW2yKki6aZkgXx3v3RLqtovvvOIpbZIXYHpg=; b=VLVdflMbfLwv2UQ+lX8Z4d7zlVLAwZtG3hm2T4baf4Cn8bNZAg1MiapTLZOC/hyP/Y lJCkXVOADW/RyGIoIYb1pak7atziVV+izYwgg7o/jBQFXoq81LOcd5rwv5UYAmYiWNke Mqfd+bbLBg6c+H5qgc7AcPCDwmSapIfsAypuwyo+y02mLgL65crBtCqVeoivGvXjvAu8 AJjGGg/ko6ol5P6Spd5zGsmFPNWWIk7aXvSWxgtADlnsjG8wConlGq9F4GB/90EPdbJn oODfT4vsAYlOivjnJl/yhUe+dyKI0/+Yyba82OE2Jn2aQLp837vgdeR5PWKNQVzAIj4w pejw== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=bE5s2nfW; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b="EHEQXl/X"; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si523409pjn.44.2019.08.07.11.49.52; Wed, 07 Aug 2019 11:50:08 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=bE5s2nfW; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b="EHEQXl/X"; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389405AbfHGSsJ (ORCPT + 99 others); Wed, 7 Aug 2019 14:48:09 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:49782 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389310AbfHGSsJ (ORCPT ); Wed, 7 Aug 2019 14:48:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1565203689; x=1596739689; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=/5YonVRLW2yKki6aZkgXx3v3RLqtovvvOIpbZIXYHpg=; b=bE5s2nfWwLMa797qE12r3Tt0Ch/c0NxibjRskUECVICXV2Nasg1umKeR tD1qSBSRuJFyHoYccVuYD/C2Apuegwu5xhp9NJMzXCD0pm9ngtTsqH5VM Wch2FIeSquSac1kxUceTLNRvnDcRSkLZA8SbOgd4NxkbZONm8fF6Y3J1V RXU2cw/AC/HKoYu+bo/G4kYjZZDID3vHnoxQD3+joK+KzFEUESA99KLyl ELly3MN2h/+kf7+Gt5StgaU8fL4yKWaIk0icg/BL9bo0zKbCg6VqvDSvb gblnhxKBAaow1LvtnbQPp1maxlY1nijfVtKk0xepwSFId9//sq6FmNVo2 A==; IronPort-SDR: wuPjjE3Yi8m4mImHPtuvz8oabR6dugvX9mGTz7CJGo9n5ImWtkj5Z6mIz1CKM6V2I8Csxy7aXw wtRWPw9mAJZ0PMO1/UiTxSCymBukQN7D6WalaT5oseJyDQpA/s43++gKG1u0H+0GUQG8WN12Jj L+0XzkpCzdO0xQcM7xn2AQYLKodh1ppdfQgK6KAu8mKvyiD43d9Jd1x7pELWrsmBhRkKeaZGlE 6pDIxBA0O6A06tKWPNO8iv99EcEyA5dbQIxpcb2ifP9c1ZJZuPj0IZsOIATgeZWtL5zzJNr3JX Ri0= X-URL-LookUp-ScanningError: 1 X-IronPort-AV: E=Sophos;i="5.64,358,1559491200"; d="scan'208";a="115289244" Received: from mail-sn1nam04lp2058.outbound.protection.outlook.com (HELO NAM04-SN1-obe.outbound.protection.outlook.com) ([104.47.44.58]) by ob1.hgst.iphmx.com with ESMTP; 08 Aug 2019 02:47:55 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X/mjA3V2NLkZmxf01SGG0YSruIHJq/OxDTMFNAZLTL3Zh4RGqwe419MYDSYmjNLDphDUCP6G1ZhHYsyH63ZmTjCJCG0pR9OGgmloEzJ8fLXrnRT8qScFqFBwsjgKE3rfwXN7mUmzqB+yTP20IlOasbXpAMY0UGJCyrHiLhv04OpcDCKabJd8UozfBASnoIidXkfzxHPxuSkIBBKv6QDZvclf5qUyw+KNXREUWqC3xNOt8JWQzvoB5p18Ol7UG3VKqXkgskh/LIXwjVs1wwT6DbEdRCLujCVrvOTHYm2Rf6qFDzAuCLeqQo9WHC2k5iKroiEKyt3LUm76i2ZCG6hxIQ== 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=/5YonVRLW2yKki6aZkgXx3v3RLqtovvvOIpbZIXYHpg=; b=GykXTJT7X32qjwh4uqJIZEbktDXY4xcTO3eOPog1m1HRrM80f0IBXqbUcvXkQRklIOQzsETX/pFfkRPIVNdgXFI4rFYMpOwnHehmM/l4lFiNlG687FAMErImiBlBbfL1S3iWYASzd5vtffgEihN25sbpjYNbkm41aB0BKluxwI0kzTa2zpmvjJ6WRHRq+ztmrquxblcAyNkD6cxdt9jfl11WKOQ2+zTmyTRYDWoNZoDAVCF0WEb1lEWp4ERh1SFFeIjvqR1abbZF1TA6dI112DmVHPGLIK7v6KlyUfn73S3ZuNpb3S2i8AzYKXGkCGNSkCNMkP9eBmkT8BRZx2D1qg== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=wdc.com;dmarc=pass action=none header.from=wdc.com;dkim=pass header.d=wdc.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/5YonVRLW2yKki6aZkgXx3v3RLqtovvvOIpbZIXYHpg=; b=EHEQXl/XA4ZhIqFNh9ile06Hjtb3ahYyUWCFenrWpGF0q5B1G7/WAZb/ghRmZCx1wLbhPGp/6uOPc1dEaA9Gtp3EBNqVHNmKdxResPv/xXl9ks/+NnWhiTp5KVkHJDplJtgeqhj+MjGbzLhQ/RRb8iOyNohYwBaWf6hNTTwrV8o= Received: from BYAPR04MB3782.namprd04.prod.outlook.com (52.135.214.142) by BYAPR04MB4679.namprd04.prod.outlook.com (52.135.240.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.13; Wed, 7 Aug 2019 18:47:53 +0000 Received: from BYAPR04MB3782.namprd04.prod.outlook.com ([fe80::ac9a:967e:70a5:e926]) by BYAPR04MB3782.namprd04.prod.outlook.com ([fe80::ac9a:967e:70a5:e926%7]) with mapi id 15.20.2115.005; Wed, 7 Aug 2019 18:47:53 +0000 From: Atish Patra To: "paul.walmsley@sifive.com" , "rkrcmar@redhat.com" , "pbonzini@redhat.com" , "palmer@sifive.com" , Anup Patel CC: "linux-riscv@lists.infradead.org" , "daniel.lezcano@linaro.org" , Alistair Francis , Damien Le Moal , "hch@infradead.org" , "tglx@linutronix.de" , "anup@brainfault.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v4 02/20] RISC-V: Add bitmap reprensenting ISA features common across CPUs Thread-Topic: [PATCH v4 02/20] RISC-V: Add bitmap reprensenting ISA features common across CPUs Thread-Index: AQHVTRuUzwWCWNtkKEePaQqrt349jabwBwQA Date: Wed, 7 Aug 2019 18:47:53 +0000 Message-ID: <750dc9365c02d20616ae8ca22ac454d0e54e994e.camel@wdc.com> References: <20190807122726.81544-1-anup.patel@wdc.com> <20190807122726.81544-3-anup.patel@wdc.com> In-Reply-To: <20190807122726.81544-3-anup.patel@wdc.com> 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=Atish.Patra@wdc.com; x-originating-ip: [199.255.44.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6e4edf90-89cd-48fe-36af-08d71b67c181 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:BYAPR04MB4679; x-ms-traffictypediagnostic: BYAPR04MB4679: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:454; x-forefront-prvs: 01221E3973 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(346002)(376002)(136003)(396003)(366004)(39860400002)(189003)(199004)(118296001)(8676002)(2616005)(476003)(11346002)(446003)(81166006)(81156014)(2201001)(256004)(6306002)(71190400001)(71200400001)(486006)(6512007)(3846002)(6116002)(8936002)(6436002)(53936002)(7736002)(6486002)(25786009)(5660300002)(229853002)(66066001)(6246003)(316002)(2501003)(26005)(66556008)(478600001)(2906002)(66946007)(14454004)(7416002)(186003)(99286004)(110136005)(4326008)(66446008)(64756008)(54906003)(102836004)(6506007)(966005)(305945005)(86362001)(76176011)(36756003)(6636002)(66476007)(76116006);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR04MB4679;H:BYAPR04MB3782.namprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: oYOjKZBZdxRBL3WJE0KAfQTBAMgz/df9NwAePo1XOlyQjA+Ac8DF3WfK0WofJCsZCawHp0wMNk7iuky5/hfvn0C/dMOulHBDM//B7VhbHdwgCzpx62KVn+gdH+xe28apWSR5al6D4FfDAIuQ6e0OvKyZXkwsb8kC/WRayqL97OoaoUWrj64y6TNn1/MrlwVC5Jbzfd+8Nf7KKrrbc3frTVgqxey21KCojKI+vze9/e5xRgjE4vacE/uGZE82jAaQNr8OOm0TlHaaNTLF4aTQkUKmugo/BhnV9/2glkvV1ZKLcV/uIzM5/Z+INzKclBoN923/aDAj9q++BP8PUicHNMdzZCewyDKMQvhYnjFNmkkbwv2cxBq7Gao0x5ybl2WRKhF+h9qKl4jYi3/Dg8gj3Eqr/dbNQ8kFGd0HUqLpAK8= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e4edf90-89cd-48fe-36af-08d71b67c181 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2019 18:47:53.6008 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Atish.Patra@wdc.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4679 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDE5LTA4LTA3IGF0IDEyOjI4ICswMDAwLCBBbnVwIFBhdGVsIHdyb3RlOg0KPiBU aGlzIHBhdGNoIGFkZHMgcmlzY3ZfaXNhIGJpdG1hcCB3aGljaCByZXByZXNlbnRzIEhvc3QgSVNB IGZlYXR1cmVzDQo+IGNvbW1vbiBhY3Jvc3MgYWxsIEhvc3QgQ1BVcy4gVGhlIHJpc2N2X2lzYSBp cyBub3Qgc2FtZSBhcyBlbGZfaHdjYXANCj4gYmVjYXVzZSBlbGZfaHdjYXAgd2lsbCBvbmx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