Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1540060yba; Thu, 25 Apr 2019 01:17:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRLzA45T2hdLq6zaG2eH2QckRvRR+N/eugf12+botPvvSTyewNz2BNQ6Z+q9wg1g1iGJhN X-Received: by 2002:a62:5582:: with SMTP id j124mr38866330pfb.53.1556180239602; Thu, 25 Apr 2019 01:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556180239; cv=none; d=google.com; s=arc-20160816; b=k6B8L0dlnNkgb1qq/XWlDahzKlR+XqKxMBfAF9arpR6/hyZOF2mBvz9N03Smm6hfbb OU39YFPGsbVishS9NbDOQtd+feMnp4tgMWwNa/QhoDgZ9ETaQJbNtMufiR5V6vcD2Ohn Koqvlw/aW+nkkXWgA9hQmPR4NKeXcQoiiU2OK02ku7H7uswo6ttfTR3NheMLbXQ8YVDo /iy662+s8plwYTqhsFuZXCcTSLgoyDZcvGGVMvAtF5hD24823UCb0DQIQMfEMQMrbN+z 0xW3RFA6hjmHD5AUIzFQBFNXvDajyDU4w+H3eDsO+YHXQ+hIMdFCn/kfrLckj6qEN367 LB9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=rpildqgy8o5UmVecA6pVi+IR582CkbrPqwkLNiXaLMk=; b=JiHrwRl62XpyzrfjZ1QLqi1hqJQ7+kgsmBapTgfAbzUfYAH+wFPxl1IvvKRKpfd0Gm eB3Lkrp+0rNu2ShGne0D8fWHVy4r24ydjcsDYacHJNL4uvaIpyT3FWX27AMW7dLIpd5G nszeOIy3vD1cN022BUWOQRs7u4y5fmWlm4z/EKpSmITDj2eoDqwV/IElX5vv3Ix0PZqQ 8k4PhGS7OgtaIKRIPC0p0n1va3vNuFAAXY7D7Eab3E0RZuFadJIqI1i9/QzTONcvrY6G 4unE1ofVYfU/ifYqgVCXwAzwqn10797c9kC+KcCeUDk4G6Bx1ridCpn2sZ0J2aAYVolH jKYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=cIs0GbvS; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=R4TWqIA1; 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 w12si21648132plz.67.2019.04.25.01.17.05; Thu, 25 Apr 2019 01:17:19 -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=cIs0GbvS; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=R4TWqIA1; 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 S2388030AbfDYFuo (ORCPT + 99 others); Thu, 25 Apr 2019 01:50:44 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:26629 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727964AbfDYFuo (ORCPT ); Thu, 25 Apr 2019 01:50:44 -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=1556171443; x=1587707443; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=rpildqgy8o5UmVecA6pVi+IR582CkbrPqwkLNiXaLMk=; b=cIs0GbvSvTj6Z+JUoPCKjqlJb5rZokvI78X6iZ09AiRqvfhIYKg+sSvS am05r0oKHddLrEamGG+lnr1zsokkRmhpTcQBgCxgqikI7cFA1yF/bkrFj DoclVZNC/1VPtJWjRCroMghVdRnaApLD5oUzRx7x93O38UqCruThcB9T3 q+I53Iu7HpjESarjly8W8jBSbyzITaW8UqEVyozhLNZlYS9/OU84Qch1/ prIjsF3js/OLOceHnQEwlYyg8iWNkJVNULYrEE8LSeGjvKAS8VfEDNWWF HMe/5uGnKCl0zIMiVsXt8DgsMDBnctzumfnPJqTedw9CYuwvd998LQOIc g==; X-IronPort-AV: E=Sophos;i="5.60,392,1549900800"; d="scan'208";a="111723154" Received: from mail-dm3nam03lp2056.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([104.47.41.56]) by ob1.hgst.iphmx.com with ESMTP; 25 Apr 2019 13:50:42 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rpildqgy8o5UmVecA6pVi+IR582CkbrPqwkLNiXaLMk=; b=R4TWqIA1Mxj4SXl++c8puwQF5tGkFll8GcEylCCdTfqgqcmwXd4G5GQDyddNR4fF0iKmJWnzXQ1ZghtJKOj/5CY6mSvvZmNhsZOeONQYI21QshwQiuA6I3XkcaCJFPrDkM/Uq39VFr3DTUR8QMRaAeG3HucI3lNC8phObKDDmAU= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.246.15) by MN2PR04MB5552.namprd04.prod.outlook.com (20.178.247.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Thu, 25 Apr 2019 05:50:40 +0000 Received: from MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::ad2f:3a0f:2de1:6fb2]) by MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::ad2f:3a0f:2de1:6fb2%5]) with mapi id 15.20.1813.017; Thu, 25 Apr 2019 05:50:40 +0000 From: Anup Patel To: Palmer Dabbelt , Albert Ou CC: Atish Patra , Paul Walmsley , Christoph Hellwig , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Anup Patel Subject: [PATCH v4 0/3] Allow accessing CSR using CSR number Thread-Topic: [PATCH v4 0/3] Allow accessing CSR using CSR number Thread-Index: AQHU+yrQT0ofH6i420urVRWglJkVYw== Date: Thu, 25 Apr 2019 05:50:40 +0000 Message-ID: <20190425055015.45487-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR0101CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::25) To MN2PR04MB6061.namprd04.prod.outlook.com (2603:10b6:208:d8::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [129.253.179.161] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2dfedd7d-fdad-4e61-a25c-08d6c941f2b2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:MN2PR04MB5552; x-ms-traffictypediagnostic: MN2PR04MB5552: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-forefront-prvs: 0018A2705B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39860400002)(376002)(346002)(136003)(396003)(199004)(189003)(6486002)(1076003)(2616005)(476003)(14444005)(486006)(50226002)(256004)(66066001)(7736002)(305945005)(73956011)(2906002)(72206003)(14454004)(478600001)(6436002)(3846002)(6116002)(66476007)(316002)(64756008)(66446008)(66556008)(66946007)(54906003)(110136005)(6512007)(8676002)(6506007)(386003)(71200400001)(71190400001)(186003)(86362001)(4326008)(102836004)(68736007)(2171002)(5660300002)(81166006)(26005)(81156014)(53936002)(8936002)(97736004)(52116002)(25786009)(99286004)(44832011)(36756003);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB5552;H:MN2PR04MB6061.namprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: tfB/ucMA5oqtudkwCITOiNbCvr3NP+opL3G3JWhsT/+GmDHS4PvDsdw5oAMawF1a1wQfHq2y88qE9BWUM9LQKqkE36bri0gigbLWLuFHTox4wYcJxO5VfPK8Ug7Xw/0rXju4W0FSFwKY6vqxB0lNvZt9xvGac2WqIeB/uPUC59Xo9ntZmOxJHTJFHhtpChmRLl56M0NZVySkpLBl1mWyPp8I/MGR2NcTBrHzMwlraky1tyx9ki41gQ9pDgPn6M1O8EAfGSZIcpbTYOMc3ZNCWiFcoZn4PiPPvJ6ljexDBRkFzyhvzwB/RgVmp/7b+fvEtwMmv4mOQr1V+/Q7kBft1YDsrr8XWxpZZjPbQqBnOejB/0pDsVjKuj/7mM4kuoXPtCXuEsZluRG9o8Aob3RKyArZfHjXQmNy6BDfjlFw+38= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2dfedd7d-fdad-4e61-a25c-08d6c941f2b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2019 05:50:40.5497 (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-Transport-CrossTenantHeadersStamped: MN2PR04MB5552 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhpcyBwYXRjaCBzZXJpZXMgYWRkcyBzdXBwb3J0IHRvIGFjY2VzcyBDU1IgdXNpbmcgYm90aCBD U1IgbmFtZSBhbmQNCkNTUiBudW1iZXJzLg0KDQpBbHNvLCB3ZSBzaG91bGQgcHJlZmVyIGFjY2Vz c2luZyBDU1JzIHVzaW5nIHRoZWlyIENTUiBudW1iZXJzIGJlY2F1c2U6DQoxLiBJdCBjb21waWxl cyBmaW5lIHdpdGggb2xkZXIgdG9vbGNoYWlucy4NCjIuIFdlIGNhbiB1c2UgbGF0ZXN0IENTUiBu YW1lcyBpbiAjZGVmaW5lIG1hY3JvIG5hbWVzIG9mIENTUiBudW1iZXJzDQogICBhcy1wZXIgUklT Qy1WIHNwZWMuIChlLmcuIHNwdGJyID0+IENTUl9TQVRQLCBzYmFkYWRkciA9PiBDU1JfU1RWQUws IGV0Yy4pDQozLiBXZSBjYW4gYWNjZXNzIG5ld2x5IGFkZGVkIENTUnMgZXZlbiBpZiB0b29sY2hh aW4gZG9lcyBub3QgcmVjb2duaXplDQogICBuZXdseSBhZGRlcyBDU1JzIGJ5IG5hbWUuIChlLmcu IEJTU1RBVFVTLCBCU0lFLCBTU0lQLCBldGMuKQ0KDQpUaGUgcGF0Y2hzZXQgY2FuIGJlIGZvdW5k IGluIHJpc2N2X2Nzcl9udW1iZXJfdjQgYnJhbmNoIG9mDQpodHRwcy8vZ2l0aHViLmNvbS9hdnBh dGVsL2xpbnV4LmdpdA0KDQpDaGFuZ2VzIHNpbmNlIHYzOg0KIC0gS2VlcCBvbGQgSU5URVJSVVBU X3h5eiBkZWZpbmVzIGluIGtlcm5lbC9pcnEuYyBmb3IgUEFUQ0gyDQoNCkNoYW5nZXMgc2luY2Ug djI6DQogLSBEcm9w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