Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp763538ybi; Fri, 26 Jul 2019 19:27:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhQgYRhbEK5uHjsoLX4Ceb1eQyFp3Xg2opNBEL9CTL+ewGrzCKOIhjZmXuIdpdIZ4ni5Fn X-Received: by 2002:a17:90a:24ac:: with SMTP id i41mr99897916pje.124.1564194474172; Fri, 26 Jul 2019 19:27:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564194474; cv=pass; d=google.com; s=arc-20160816; b=UVVjJRQmU0bi8W7SzKywDGGFxITmhmCp6e+oQg+wJYwRGNmXNH5WCjHkAo06yv2JVV 2NJGOGk2psQWkBv5kkt52TQSM7n0xxZ8qe6eaIwsre2tn6I8La/tkO4CGTgtOHBlVNO0 Y9v0+Qy4Z8CsXB5+DYGGh8Y2NEzgHvVj63vxUuS7chKtDgwI8IeD4ayTmzFA8ULOejBs E/UOdBnTOeqkZ3okG7uzSfhbvCDgtKc1amRSQw0jdqvxFfupgeH3wea3IiopeTrGPtor LLlLfEhpcbsEaXdeC1WOUptG0Z/CBdPrRjZKYrSQrmQlgRvpVyCfRZQVLQfuz0S7fg0e LkUQ== 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 :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=tf/2egYxx3sAP5LJbqmrXQoRpnllkQeClWzU/lungLA=; b=QMMvozAvMP0ECItQt1WpWdX5321nIGwILe1UMJe9Q0WkMj3sxNfzIvgQsnefLBB9Q7 jtV6gIxq/ts4n9PhsQ4rXzxln59P1Mt8CN0eZglXcjwTh2sJcKI1xQfTcJNp/apU37k/ musqjf6YJjMu85VJHOERFQQI/xVodAxCkut+Ip+THP92IsrIlfiDzOHBIrpxRTYmP/vj hxNWUSYA1k6CmztnrvEvAorVQ7qQ66plIjedR/CY6hKKqEkCq0O21vAgkQi1UMwQUIIT nRi3GZPEAmrIn38Itsu3MA4lX1nchfa+sPdIhGOXwIEaEx/msxvFWMtVB5IEKVxUTKHr C5FQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=BqZLobxi; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=e9dtuAZ4; 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 u9si5132149pgf.198.2019.07.26.19.27.38; Fri, 26 Jul 2019 19:27:54 -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=BqZLobxi; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=e9dtuAZ4; 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 S1727986AbfG0CXr (ORCPT + 99 others); Fri, 26 Jul 2019 22:23:47 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:52706 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbfG0CXq (ORCPT ); Fri, 26 Jul 2019 22:23:46 -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=1564194284; x=1595730284; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=tf/2egYxx3sAP5LJbqmrXQoRpnllkQeClWzU/lungLA=; b=BqZLobxiTt8qVPwsmL5dZafNKQtXZIsCrRt1um8xMOG8+e4T4AB0+EUF jlNwz2R5o2Nsxen2xJrCh0DivGif49x4vrFhQT1CrkSE7jnmjCfmmCWsj 4+uXLR9ffuakvSo3m9cSXV5ex0zyYxytZmOa31yI4eInutBuPaH9ZbtCy 8msmonG0lLLUQjSuU5POcwLm1knijtqjZTKNZbDXRWfm+C4OZdazyqRHs wZ8no5ruvTDwpfa7NZ5F9lmucazVbhlGv5vitS9hlgpUP54coZVE6KF3a GN/AFCAIH+v7oZE32HyST11peUV3FBCfRSaNqOK5PyRVr5fZcGKlzYaab Q==; IronPort-SDR: IG08Feq1nlzISLcH+DY7KIqznRC10cnOfp7xJ5+1NzElQ6WeI0u5+zztkf4/Wjro7cCcktu7W7 2dY9EvGknmnV1s+3EcA3s6p7U2b/D3IwOJGso1Q0qDx2jSnT7SyxEWo2BiQgQubZwhsH75zBt7 6wo7er8h9QtEvW4w0+Izv1WoqswkY8ayKUVQacdCJrd0Jr1/N/xrJRScNy3tvssy5kTfzdoFUm JlSYe6kNj0oC+9mu9ncu/kPM7ikChzKTzAE3yfyye83XPe3dv1lp6PGijFJPnUJDzp6pUI00nW iUM= X-IronPort-AV: E=Sophos;i="5.64,313,1559491200"; d="scan'208";a="214401934" Received: from mail-co1nam04lp2053.outbound.protection.outlook.com (HELO NAM04-CO1-obe.outbound.protection.outlook.com) ([104.47.45.53]) by ob1.hgst.iphmx.com with ESMTP; 27 Jul 2019 10:24:40 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CSLYNaB9AZazVIGmtWU6Q2jhuPR+/l3OxbtYyCxkStQCu/xZsOjglebDAYhE5+q3IVj8Cz2b/Av76wFTysjPtmp/JVkHQDmGnTsLLe9XLn32lEOkVx6FhUPeeaWVawI0/wJnYZoIq/JZnsmmJJ40c1ArCpb3Bj+y2yboy/GHa/GsYa0pp+s6plq6p8v2z2LQal0OfsoVZ+mpeBMK05+LjqnPda35aqbRJqSXPjeCSn39PVB/p+jaq0/+K9HdGwvAfZnLPMA1ASnu/k4Pg8EyuL+3kgDxysKbGfipg3SB6LVNj9QwRYk6ZF5GSxqnnAeDej+mwLyTcR/Eh7M7VHJj5g== 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=tf/2egYxx3sAP5LJbqmrXQoRpnllkQeClWzU/lungLA=; b=HdJieajhprGYF/Wel+K0UdpxRBrtgicoAW1MwbT09/dU9NoQWGG/exOL2SFip/0orA6HEWLxYZmealdxFrR8fXh455oTjoGa0QDjBRkpkUsKaj6B3XXDjEaIlbu/2AFQgihSVwIXNnFOR/jqX1Me5jh/Y+9lDtqY6ijWvnCzj7LlamWsprGwOGiShCZdIkZaukDhy5FaVNHyiayzyofnkOimMDMj+DaH3ecakFkX2wZh+oVovZE8G7XBJl4KCSbs2g0Qdow2EscQ0qXsgYvd8SNivWyn9Z9tbdf6mFlkomRihrGcYg2mxa/DUowGFhp4+A/m5YVnyla97/PrOSQGqA== 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=tf/2egYxx3sAP5LJbqmrXQoRpnllkQeClWzU/lungLA=; b=e9dtuAZ45Fjkd4U42J/6ElreWJOcwAx6p9eCgvM3TNgITZdzXRsObKJ+5r1QCEWbE7qWy2O9b+hYRZJNckSpA4A235Jo4u5m4ptfDdgr+ncljzVxsW8LtdEP2lJt1/isWKZbIlKCvw+qvDpt4YeevZXTDuBymJQxHKRgpc0HUbM= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.246.15) by MN2PR04MB5741.namprd04.prod.outlook.com (20.179.21.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.17; Sat, 27 Jul 2019 02:23:43 +0000 Received: from MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::a815:e61a:b4aa:60c8]) by MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::a815:e61a:b4aa:60c8%7]) with mapi id 15.20.2094.013; Sat, 27 Jul 2019 02:23:43 +0000 From: Anup Patel To: Paul Walmsley , Atish Patra CC: "linux-kernel@vger.kernel.org" , Alan Kao , Albert Ou , Allison Randal , Daniel Lezcano , Greg Kroah-Hartman , Johan Hovold , "linux-riscv@lists.infradead.org" , Palmer Dabbelt , Thomas Gleixner Subject: RE: [PATCH 3/4] RISC-V: Support case insensitive ISA string parsing. Thread-Topic: [PATCH 3/4] RISC-V: Support case insensitive ISA string parsing. Thread-Index: AQHVQ+reRtipAV+pTkKW6PXuUKYNbKbdXtyAgAAaDYCAABM8AIAAMB9A Date: Sat, 27 Jul 2019 02:23:42 +0000 Message-ID: References: <20190726194638.8068-1-atish.patra@wdc.com> <20190726194638.8068-3-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=Anup.Patel@wdc.com; x-originating-ip: [106.51.23.101] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f897e0ed-eee7-4aa4-cad9-08d7123971ee x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:MN2PR04MB5741; x-ms-traffictypediagnostic: MN2PR04MB5741: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 01110342A5 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(396003)(136003)(39860400002)(376002)(366004)(346002)(189003)(199004)(13464003)(51444003)(33656002)(74316002)(110136005)(14454004)(6636002)(54906003)(3846002)(2906002)(99286004)(71200400001)(68736007)(71190400001)(8676002)(7736002)(316002)(78486014)(66066001)(256004)(6116002)(446003)(11346002)(476003)(6506007)(7696005)(53546011)(966005)(55236004)(76116006)(76176011)(55016002)(102836004)(486006)(26005)(66476007)(66946007)(6436002)(64756008)(6246003)(4326008)(66446008)(7416002)(66556008)(9456002)(229853002)(5660300002)(52536014)(53936002)(6306002)(81166006)(86362001)(478600001)(81156014)(8936002)(25786009)(186003)(305945005)(9686003);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB5741;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: j1mcSrXBNZmyyybHdHfyrfw2+XRtJCtBLtiqhInTu4zeziVzoSo5ajIiqEJ54tJji69eXMjTRtmPzUBBcDcjl92zNLIMtP+zN0zdgKRUlGd7SQ/1VpqrQgCFSSxzmlrUBo1/Xfft+Bd4hDlmyGlnr7DLZjhRWSFOg4MJUHw83Obn86WD00dCMN4K9zpSsdA/DezbEuXV6Y6lHnmXXn5/C0Gf73t9LvByWQEv9QLwa7Qc7AW5QC6SPQ4ZuKjN9BoIuque8v+MP2KA/KrIjzrGD4yNpagdqD1Sw2MHcqyBMnlPH0Heeeqkdl7x8aW/T8mZUk4UeFexlEvXjVOtMtFEcSXZ/lbWTYf0QgXWoOi307UsANxFqhppAfHE7SKskq37xFHtLyVoceng4oEjjOd54ekqM6oOGMOrU/gwWUahQ9Y= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: f897e0ed-eee7-4aa4-cad9-08d7123971ee X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2019 02:23:42.7456 (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: Anup.Patel@wdc.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5741 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Paul Walmsley > Sent: Saturday, July 27, 2019 5:00 AM > To: Atish Patra > Cc: linux-kernel@vger.kernel.org; Alan Kao ; > Albert Ou ; Allison Randal ; > Anup Patel ; Daniel Lezcano > ; Greg Kroah-Hartman > ; Johan Hovold ; linux- > riscv@lists.infradead.org; Palmer Dabbelt ; Thomas > Gleixner > Subject: Re: [PATCH 3/4] RISC-V: Support case insensitive ISA string pars= ing. >=20 > On Fri, 26 Jul 2019, Atish Patra wrote: >=20 > > On 7/26/19 1:47 PM, Paul Walmsley wrote: > > > On Fri, 26 Jul 2019, Atish Patra wrote: > > > > > > > As per riscv specification, ISA naming strings are case > > > > insensitive. However, currently only lower case strings are parsed > > > > during cpu procfs. > > > > > > > > Support parsing of upper case letters as well. > > > > > > > > Signed-off-by: Atish Patra > > > > > > Is there a use case that's driving this, or > > > > Currently, we use all lower case isa string in kvmtool. But somebody > > can have uppercase letters in future as spec allows it. > > > > > > can we just say, "use > > > lowercase letters" and leave it at that? > > > > > > > In that case, it will not comply with RISC-V spec. Is that okay ? >=20 > I think that section of the specification is mostly concerned with someon= e > trying to define "f" as a different extension than "F", or something like= that. > I'm not sure that it imposes any constraint that software must accept bot= h > upper and lower case ISA strings. >=20 > What gives me pause here is that this winds up impacting DT schema > validation: >=20 > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/D= ocu > mentation/devicetree/bindings/riscv/cpus.yaml#n41 If 'f' and 'F' mean same extension as-per RISC-V spec then software should = also interpret it that way hence this patch. Regards, Anup