Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3761191ybl; Tue, 20 Aug 2019 01:45:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZZLNtOmmhfKM9Fw+WnkLme/O5qYAf/HfnczpHHb+sOu/aRFrxUZXT4dYGEIzKfcHS/swo X-Received: by 2002:a17:90a:24ed:: with SMTP id i100mr25047125pje.47.1566290702311; Tue, 20 Aug 2019 01:45:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566290702; cv=pass; d=google.com; s=arc-20160816; b=gDcpam0isYCcFdI7fLMwc3MnEIY8gVBfJTJPl2A5c/nDqZp8fHRrtkgCh1kVvwn97o S1QSkyfHfrCuhkIZhI2p5NL61N1PTmHNjxcUM2aF8elJcydcrIcTHkBxg5D86mechPnv fEjsgFia7/ya/yTZmFrTdvVJmOJAaLRyoagjzRI+5ePQkFCIN774Q4djhxzEjMoJaB4L fK6xSC4MOFlaVJf4lU5tPKtzjNyCyXqKffk4flc7EswSQji7ndFAQtHE+nX0e5QLqBB3 vcsqmjpa2vpuGCCKJwqnyGkIp36qt802JIeSQ9CG4cAkQWgcCS3xAZQ/BR56j1oiZXgw YT8w== 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=9/+TwHj058yOzTfd6bqpGLe2KllYeZCcKrNBUVp78Tc=; b=CjmK4oacenX+rktKLUZ3z6tvCHdy4AAHF6M4HNoMjZUcPUo/qkMVJofWUrkSILKbh8 VaqA4Yg40Fj46QYoxMbQtZUBoCW35KtFWRoNN4hOMW/WutrGuHVmBztAsY4JwMSfcBYC bB5bo1PR/vVV582f6Te6YF9/wd9uwfE40XsCqyztA59E/J6fbC8m+aopR+lXbEg6YIhT 1pq6U9taUvjbXcaPNAGifJnaHOhj6L9jNfqI8ip1EdqX/3ycwuFKWvJNHwBZ012nFyDj mHZN6ulN/uP8MTTIghsboyPJ15LdwuqUSKQnNzZpuaWIeeXyFWe0uIQCyljSpp+LINs4 gc3Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=IoMmmrjf; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=kA2qpTiM; 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 l16si11695149pgt.568.2019.08.20.01.44.47; Tue, 20 Aug 2019 01:45:02 -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=IoMmmrjf; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=kA2qpTiM; 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 S1729675AbfHTImY (ORCPT + 99 others); Tue, 20 Aug 2019 04:42:24 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:1965 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728545AbfHTImY (ORCPT ); Tue, 20 Aug 2019 04:42:24 -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=1566290563; x=1597826563; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=9/+TwHj058yOzTfd6bqpGLe2KllYeZCcKrNBUVp78Tc=; b=IoMmmrjf1miCy5Q9K7rNmi6KC0rvjfWjJNoYw6Sk8DHiV5N1kVWpf13z ctu7ogq0v8+5DY/Phbr5De4Y/OJwczlx+T4XPvpwTyz8ukGi9muO20fBp flfda3w7YrG72N5VdHbiEpf4UVZEIcu5XKYA+G4alNs25p5xWZ+FFn6mU km+VMGwl0yPxS2VpsGfKLANB2xpMOz57o8LJI6q+JXAAdS7cfBlFbv2Nb Fxnkm6SsDO7RDtg0EnomG9GI5B+ba++dwggx4rATn04Z/Fz1McgjYomqZ ofC82T44hTxInXwzlRXkc6SA2q+IlTw/U6pCgLxv3gAtI96Ho2Iquh11Z A==; IronPort-SDR: j7PuodBqey8iNAqsic7j4QYmxJ3e4riQwSRxfFs5Xj/BHJLrZjsp1p8xPPcK6ipyOMDgWVuu9l 3guqk67ouKdKsmJyPVkNScuVL8Hm3a8PdW6WL/WRADL8paJLb5uHfl33Zf7IsTk0XyQdRbJoyc KUn9Bp1XBGJ4cqVbzrHZzHXB6W1hbaLFoq9gcrqWEk8649szmA4bQkaDo2ZagF2SY7d5VlcmQm JKVYMgA/7cRQHbwnrI5s1M7SLr5zykllAsWVYaTzZVOMZrE0fuL8ypbwVQa5KIIAh9UpD5kKXL FY4= X-IronPort-AV: E=Sophos;i="5.64,408,1559491200"; d="scan'208";a="216619242" Received: from mail-bn3nam04lp2055.outbound.protection.outlook.com (HELO NAM04-BN3-obe.outbound.protection.outlook.com) ([104.47.46.55]) by ob1.hgst.iphmx.com with ESMTP; 20 Aug 2019 16:42:40 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AQlFFDFqCttV1Jdz4Qbtn3AZIPdjJwQL4dG204QPmhxVczbS+dNdzwS7k7Ov/w2uWPNRNYP3h0LjNGpsXUyAvtxG1TrtSMxHiohuvnsP8U9/89fbL7rnEEO5XyOQ7SoHcI5UTUkY2XBImeOTZk1/jobbXNU4AWSCW4WmBnvZvD3BWYKul1RCoU8wOOVYdEAqyviwjb9sYWHSDUbD6TA6rejDOt1sk5bWywgZKA/7kEZahg5g6UHVduehrzsFzaySzEFtuWdlSXR/usPquBAOGMA0TfXnfUkJwMZKwuYD7DZz7JGrLv4C/B+zRHTPTp9S2IOu4iheHaN+zaoyJIJ44A== 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=9/+TwHj058yOzTfd6bqpGLe2KllYeZCcKrNBUVp78Tc=; b=Vn8bpEGI0mBGZbMeY+Y9kjG6LCfKrKvbfBG4+H47wGN+Mo6NCRu4zVYyLxVTwWy4z6Pz0xmSkMPDhxugJzlRxy8IlXHdgERmaRfFbklVOB8hf+2N69zU95jczbXZDFcERDla6stTUuRqmSqhrL4QGBUsjy7gGxvxwA5uHeZY6vyvhe/D1qiK+wmwqya4YNRJoSryg58VcAUVylKZH6S6UF+6l077WYx2u7F9iJPkJSEsKykla3hsWLdsam1BM58t/bEICu6QEdX9QEM6sbKGYzMOAaJLd7IiOQtT3SMCAaay0J+3q3dSlr6OYUZxrKyVkzie9VPaRU1jhdFOasBDFQ== 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=9/+TwHj058yOzTfd6bqpGLe2KllYeZCcKrNBUVp78Tc=; b=kA2qpTiM2786XMH3wgbH8ufOyYX54gu5RjEs5T0wDmCeqEKP5rpg3tPXV1rLhBA3Y5huOMKgkdzLJmu0NArsEQqOspZ2TvztB9v7a/64Dndb0rbozTwBH6hbS2U4nHwQ1LOLf8FnLEtzlKANyIgZiD086R1wZZwRixdqnmxG0Yw= Received: from BYAPR04MB3990.namprd04.prod.outlook.com (52.135.215.29) by BYAPR04MB4741.namprd04.prod.outlook.com (52.135.240.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Tue, 20 Aug 2019 08:42:19 +0000 Received: from BYAPR04MB3990.namprd04.prod.outlook.com ([fe80::24ca:5178:5475:9a0e]) by BYAPR04MB3990.namprd04.prod.outlook.com ([fe80::24ca:5178:5475:9a0e%4]) with mapi id 15.20.2178.018; Tue, 20 Aug 2019 08:42:19 +0000 From: Atish Patra To: "schwab@linux-m68k.org" CC: "linux-riscv@lists.infradead.org" , "paul.walmsley@sifive.com" , "aou@eecs.berkeley.edu" , "allison@lohutok.net" , "anup@brainfault.org" , "linux-kernel@vger.kernel.org" , "hch@infradead.org" , "palmer@sifive.com" Subject: Re: [v2 PATCH] RISC-V: Optimize tlb flush path. Thread-Topic: [v2 PATCH] RISC-V: Optimize tlb flush path. Thread-Index: AQHVVvDfUBJCIAOoL0y7jXfLdcYugacDqN07gAAPmgA= Date: Tue, 20 Aug 2019 08:42:19 +0000 Message-ID: References: <20190820004735.18518-1-atish.patra@wdc.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=Atish.Patra@wdc.com; x-originating-ip: [2601:646:8280:fdf0:69be:1cca:a557:65ea] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 34d8a53e-2485-4ec9-7b28-08d7254a5018 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:BYAPR04MB4741; x-ms-traffictypediagnostic: BYAPR04MB4741: x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 013568035E x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(396003)(346002)(136003)(39860400002)(376002)(366004)(199004)(189003)(14454004)(6916009)(478600001)(4326008)(6246003)(229853002)(6436002)(7736002)(5640700003)(1730700003)(53936002)(66446008)(76116006)(14444005)(66476007)(64756008)(6486002)(81166006)(6116002)(8676002)(2906002)(256004)(66556008)(66946007)(76176011)(36756003)(25786009)(54906003)(316002)(71200400001)(71190400001)(2501003)(99286004)(6512007)(486006)(81156014)(186003)(2616005)(6506007)(476003)(305945005)(46003)(446003)(8936002)(11346002)(102836004)(5660300002)(2351001)(118296001)(86362001);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR04MB4741;H:BYAPR04MB3990.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: b0c7Ak1u9Fe98fG9DPiQ9pmVbdRUDCL235wsFriQ4qrutif/AnRED2n3gv8bD7ecT+uy123bhFrDihR2GGNtGtmbZljsrQi8WdEzfUSutDsTHDevKJhodJJFERzOkDcB/93xcl51Ru6yKPLMsFhK/2HswCyVM9VKWq96GRo74S9NbQpxXi+Uvw0DRuiBNp/6BtOc9q0UKGqO+fmjoOqf2dTEANOAfw286cHVuFvRU/z9mauzMh1inrL+M/+xoLg4u3n9QlwXFFZzELk7BGs0wt548as9/ioRLqqSXxH1D1K4thzlERUTQ7wCq1sFXSOS43A64+oZkK4WuZjjVx1LVJquOsaL17MUS063c6fxKlGkyzeWp3E+VkB7Bow2Iqh9zcijFfpHiPJMQ6ABa8e/Merb/A7Fgx8BVs32TVQkyFk= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <392A880A5F7B66498DB7D6269537B457@namprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34d8a53e-2485-4ec9-7b28-08d7254a5018 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Aug 2019 08:42:19.6054 (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: mI+GuCd9YbRcXfi9nJvKKR9nbgjwOVOzsGo5+X4mQ/3r79yq+7BGFp7VUs2KDu+DAKrxTrYLFs3p5DqogM6uqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4741 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDE5LTA4LTIwIGF0IDA5OjQ2ICswMjAwLCBBbmRyZWFzIFNjaHdhYiB3cm90ZToN Cj4gT24gQXVnIDE5IDIwMTksIEF0aXNoIFBhdHJhIDxhdGlzaC5wYXRyYUB3ZGMuY29tPiB3cm90 ZToNCj4gDQo+ID4gQEAgLTQyLDIwICs0Myw0NCBAQCBzdGF0aWMgaW5saW5lIHZvaWQgZmx1c2hf dGxiX3JhbmdlKHN0cnVjdA0KPiA+IHZtX2FyZWFfc3RydWN0ICp2bWEsDQo+ID4gIA0KPiA+ICAj aW5jbHVkZSA8YXNtL3NiaS5oPg0KPiA+ICANCj4gPiAtc3RhdGljIGlubGluZSB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