Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1572225yba; Thu, 25 Apr 2019 02:00:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyU0vTmI/+73HajvNYrENU8X1y4D1Ph6wvi/qlLoiw/cjugsqGVAYOyrlCDijax2luuALfC X-Received: by 2002:a63:c104:: with SMTP id w4mr35425945pgf.409.1556182800428; Thu, 25 Apr 2019 02:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556182800; cv=none; d=google.com; s=arc-20160816; b=CJJqEri0IQa4xn/mVGA7QMYfLs7dfQS0DMPBavokWT1nm5TGdy0o++CD3IxqwP8xUe HNC0CFpK5fX9da3OAdULtfO3raCDPU4bqs9LZTKMZJm7FOrSNv2RwWadyYtHoCJuOvjS Ld/4DtZUHE71IIjwFdarfDCamvMCmkuhslwFTQcrHUhKkZnLfzZENo17G4LmU7IMn7CL b40joB2vh9GzXMTJfvASM40h1IazfE3QF2CwTw6YH1dQv8ypHiN2rIny7g08MxZ23KRj chDk06gkQEi98fhlkebaOsY31UIeQldpC5p22StCWGZso2kINbdPaxbGJvitYEO+HQbK bHgQ== 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=BU3jWJhcqMptiOKubIpzVh0ucOgBAC1uG527PRawgLE=; b=XR8NcJiZdaudrVHr74YuAVbHfZRgtjyHnKK7fO2J9nb46e0r9lycMPcNdj+qkp/WaF 8p4pw98U+Ctu5xfnq4pbMoZU2/BJNQG3V8beoaBiZYINjpvoyucIAF/JWzVzKmBA6HOL R0i2Zc5sT1N1tTnD4nHQlPOJK5MudAS7+XHkGl4T1ZOjTbOgYag0ZeeVkjy4SphyOreh CIPgWGyjMgX5556Dau09nOoNKcCHmKv28hKO/tcOa92Esek2/tgv56MuFH32pjD8v9TO /HGnJLUceJgGR7+qxGEZMmRZNbQ82P/9ZnpQ5YW3UnBbM9VHcFUQfdR/lJEXHOd5Xu1d a4sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=LoStr+Y9; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=VuwucUpt; 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 u17si2803069pgj.218.2019.04.25.01.59.45; Thu, 25 Apr 2019 02:00:00 -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=LoStr+Y9; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=VuwucUpt; 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 S1729933AbfDYIjJ (ORCPT + 99 others); Thu, 25 Apr 2019 04:39:09 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:29356 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726272AbfDYIi3 (ORCPT ); Thu, 25 Apr 2019 04:38:29 -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=1556181509; x=1587717509; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=BU3jWJhcqMptiOKubIpzVh0ucOgBAC1uG527PRawgLE=; b=LoStr+Y9diylGVHzKm/o/HpPkDbWgskBU9n/CgOZzX0d38fw2HfXbo2p 0+CHaHlKkLp/MdK7dxKPDgUH74V0TmqRC4FGWxn2cETeEGHZz8c0XaefV pvf/yJSma6a6oPdk4hpQFUEn1eY4g8aAHo/wPB9nQZWxF9W860ASdOVtM CzyHBOXOzTbPfPmyeux6R4crezARis7GISCdYLW3K1pbeyRsOQQJi23Re SrgJ4NdtFYj/QvQwfZLAute8it1gR5hXdgBWtKUxk0RcJ4p9xGxep7QZk a01Jqtc/26ZIBIq81jijc1u/bRSNcJiEl7yAM8110kv2jhL0aeSPOSSb7 w==; X-IronPort-AV: E=Sophos;i="5.60,393,1549900800"; d="scan'208";a="108506783" Received: from mail-dm3nam03lp2057.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([104.47.41.57]) by ob1.hgst.iphmx.com with ESMTP; 25 Apr 2019 16:38:28 +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=BU3jWJhcqMptiOKubIpzVh0ucOgBAC1uG527PRawgLE=; b=VuwucUptEow2Zk+rd/emUzhBgTOuVOBIGzy5hNckmsUDqOV6b2YIKuiH1D2U0nER49v9fC1OqRxrrgnWKZWyRBa1JIVgD/EJyJOmG+bASzXjLYSx+yyiJv0cvInqg7O9hVqRhtdBWRzATKMLqF1ymstxiaBCvCYUl0Pe37FIYLA= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.246.15) by MN2PR04MB5485.namprd04.prod.outlook.com (20.178.248.159) 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 08:38:25 +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 08:38:25 +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 v6 0/3] Allow accessing CSR using CSR number Thread-Topic: [PATCH v6 0/3] Allow accessing CSR using CSR number Thread-Index: AQHU+0I/yOG3HNRdnEGYGUxzrL33Bg== Date: Thu, 25 Apr 2019 08:38:24 +0000 Message-ID: <20190425083804.11991-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: 6033ff1b-9dcc-4f0b-b25f-08d6c959618c 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:MN2PR04MB5485; x-ms-traffictypediagnostic: MN2PR04MB5485: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-forefront-prvs: 0018A2705B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(396003)(376002)(366004)(39860400002)(136003)(189003)(199004)(99286004)(36756003)(66066001)(8676002)(81166006)(6486002)(71190400001)(6512007)(8936002)(478600001)(7736002)(50226002)(81156014)(71200400001)(6436002)(97736004)(305945005)(72206003)(86362001)(14454004)(6506007)(14444005)(186003)(6116002)(486006)(44832011)(25786009)(66446008)(52116002)(2906002)(102836004)(4326008)(73956011)(66946007)(26005)(110136005)(2616005)(1076003)(53936002)(386003)(476003)(64756008)(3846002)(54906003)(68736007)(256004)(66476007)(66556008)(2171002)(5660300002)(316002);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB5485;H:MN2PR04MB6061.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: FX9+LPL9BPMetvRhp9zVvTo/R7W9MUjYTg05roPNeAYwdv/EFEhUS4M5LHgXVThoezbjaZEXAUuDgeUZzKkEihYV+/iT11TTGMf1F9gEPcymKFksPJBvV0+vdaoN2yhjiCSgWzBlwFznSQWh7r+x4ysjdNtK/dTGyqHLwqVj7ayyKpVfr9DBtH0PkUE8x2sgW/1ioBgXvnEbTzaoAfgo5M9I0KKzaMBD6aUgwVGCTj0skB1xMO1R4115GL5aNJ2IWxI2I3YQF9TsaIT8aq3Dqf+BSxPzkg9QZJbasxlYWJRWQYwusN6j1l4T1bLjLvlr6BBsjMhNrIF0JEVSz83FQxgnBqAxXCMuNhSLBzyNxbfhQSyxPuN9wEVpdcWCanrjX/DpmEhbLZulAjN/5Qz9v5Q/q/qEmRDU/QNnHckN4/g= 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: 6033ff1b-9dcc-4f0b-b25f-08d6c959618c X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2019 08:38:24.8789 (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: MN2PR04MB5485 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 IGluIHJpc2N2X2Nzcl9udW1iZXJfdjYgYnJhbmNoIG9mDQpodHRwcy8vZ2l0aHViLmNvbS9hdnBh dGVsL2xpbnV4LmdpdA0KDQpDaGFuZ2VzIHNpbmNlIHY1Og0KIC0gRHJvcCByZWR1bmRhbnQgSU5U RVJSVVBUX0NBVVNFX0ZMQUcgZnJvbSBrZXJuZWwvaXJxLmMNCg0KQ2hhbmdlcyBzaW5jZSB2NDoN CiAtIEV4cHJlc3MgU0NBVVN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