Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4495672ybi; Tue, 30 Jul 2019 03:05:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUIKIx9wN6a59FmdlJWTgW6sEWwJeR+WdXa3NP1GrIl1V708aKLy8njOBaX3r4Rv2Y8tKo X-Received: by 2002:a63:7887:: with SMTP id t129mr23120386pgc.309.1564481137939; Tue, 30 Jul 2019 03:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564481137; cv=none; d=google.com; s=arc-20160816; b=iRusc25OC5BUpVt4QsOyvFI/4uoNIh1i14gZri7vESJm0ZKrW59U0SPaQxqxmv3y4o A63w3nhGlMCl38HhRhYFwV6LK8vvKKbCZOxk01o9THpb0Bdf/rombkcttDIopeF1xy/R eZprRYNTfeCNnk+EW9tNgqK8oBO/555Pv2jlKlQhwRju6pnOBGdMHuGfa0tu5TD2U6Cd FkUkW1FXlPKQMQ2zRVTJ47g78SuRUvM63KjU/wZWHpPXamwR8St3rQlkL8DF9WSf7KCj X0mRSXQtbVEyHw3oW1fToYoVv62v6do5dLv/3XjW6oy9dUG+oanMNwByHYpaiC47y1Kr DjzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date; bh=KzQ2d5or7VQXiah+3vlOrWNhkXWwOjknOlmw+s8awSE=; b=0uusw7BCKCYKoHTRRQBbW2ALeUQcEgwYMMrplGxLm0BKOZB90t6p8goDA20/KMewsR 7aDrSLt63u9j/ncwc6wZmtv7ioVnpb2ZgTUbUCzNp6ia6BQZzgwgdl5G0NJgUZrlUwdw 4oADoGiundzihDk2OasugOlbF5zUldpIyCVg8aa+Zt5ZcLTbgAIOkPOeljQMosngchGl DGdulEmiT4AnbKEhdAINKHn5ZNYOXVJs7Q0lHD56gnr6hGNe42adJO5E8SWdxtUUGENW 8VUrEyLqngoBBEV/+4SmI1TQ0khCcnFJ4HXbRLpeHTAE7bnidzZd33ab6HjMJZBeRLsT QKKg== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si26245289plb.234.2019.07.30.03.05.22; Tue, 30 Jul 2019 03:05:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728011AbfG3DmZ (ORCPT + 99 others); Mon, 29 Jul 2019 23:42:25 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45413 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727944AbfG3DmZ (ORCPT ); Mon, 29 Jul 2019 23:42:25 -0400 Received: by mail-pf1-f195.google.com with SMTP id r1so29068066pfq.12 for ; Mon, 29 Jul 2019 20:42:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=KzQ2d5or7VQXiah+3vlOrWNhkXWwOjknOlmw+s8awSE=; b=nCyruRTj1PFWpzf044lV64Z7JigmgUGWjzJu0l1jF+7Oz4I9TJds7eHUjrVQsAnRBC LVeevmR2esgeRkAu4tScsDl2RfAWsBs5ajT+6FCr73WkYKoF7rZFUWW+UTogFKDyYma7 yLnXuBQznAwBqnqjcbpGHylOGyCo0PGeUfKKv7+jrVLW89sQSAOOIJWayVedWbz4Q3Pf oUi3ngoekRX6WQw1OVy7sQ0EgxOT1TAyyhqp/wUbf0Z7URQddEo5GHy51jLYYw3mPPyZ NXg2QGVNNF+byAry08R4hU/A7pcnmBpX/Mwf37ZLm68W1ZrgMyq2zQA9pqvAvCvSzPJI pzXw== X-Gm-Message-State: APjAAAXUykHfYdfXAzAoIriACaHsw1hXRhTwE9k5io6xZFWFVLlr4kRt 6n78Wa6fq4H6b4rL8yA+1Lk= X-Received: by 2002:aa7:82da:: with SMTP id f26mr40058645pfn.82.1564458143949; Mon, 29 Jul 2019 20:42:23 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id o35sm54590057pgm.29.2019.07.29.20.42.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 20:42:22 -0700 (PDT) Date: Mon, 29 Jul 2019 20:42:22 -0700 (PDT) X-Google-Original-Date: Mon, 29 Jul 2019 18:25:40 PDT (-0700) Subject: Re: [PATCH 3/4] RISC-V: Support case insensitive ISA string parsing. In-Reply-To: CC: Paul Walmsley , linux-kernel@vger.kernel.org, alankao@andestech.com, aou@eecs.berkeley.edu, allison@lohutok.net, Anup Patel , daniel.lezcano@linaro.org, Greg KH , johan@kernel.org, linux-riscv@lists.infradead.org, tglx@linutronix.de From: Palmer Dabbelt To: Atish Patra Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Jul 2019 15:20:47 PDT (-0700), Atish Patra wrote: > 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 ? We could make the platform spec say "use lowercase letters" and wipe our hands of it -- IIRC we still only support the lower case letters in GCC due to multilib headaches, so it's kind of the de-facto standard already. > >> >> - Paul >>