Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp637010ybi; Fri, 26 Jul 2019 16:31:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzV7idgnDGFd1p/E0GODO2vnLO9SeHwmLicRmsCLoJWOIxx6J16EZYvGGInDA+AOe/V/pW+ X-Received: by 2002:a63:2784:: with SMTP id n126mr90572892pgn.92.1564183898602; Fri, 26 Jul 2019 16:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564183898; cv=none; d=google.com; s=arc-20160816; b=opxViFje8IgUYZ5OaLKC/fa7lYR2HYTal26bkgn9BlP8aZMK8nVwyg7HDDmKUKMIGt gffPW2xurZ1B+iLbt84y3nKLiUmIb64qAppv1sNdqaaQ17eBvszkCZCVxctKj9HENy35 u6xjO9r3RdjnODJ3AvMBKLNtl66PYQ/VML3uQ6VQH/xGPeG3tx+D4Zz71nFlEv/k6kVW mz/xHmU4wtraO+ugDNQ42xZ81xWfQ7M9+RiG9766KaFLZcr0/osFZqtQQYnG/3Yl2JDR uT80Uu8qewZ67tntNr5/GXgdkS0Q+y9Zh14T5FIVzNsnzpwiLt8OjqG1fVZb1c82Seel RlNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=f0NauJHVqo/HIKObdVkdw9yTl/4NywZItEu7j8mg3M0=; b=ZCQhhf0JJzgSdfQspNomgG02Q23Jfiraw8whXETNZmYofTXYLxjJbGB1yjkr1/PZx2 CtWqGyJKdH2P6eG0XLpZ/c4+UsULkkleTAOj/mLEHakt1Oq0Uma7A0OEKRs6d1e2zE4Z OsjMiBy92JUuNPh4RLvpnFJpKUUXrcZrNZ41i40IeULi0WmkBhs62ngZ6mSyxAAEPIfz KugjFPtX7Mqs2oZcTU4t7HciT/nKu2I/kL88QQYYxvctnwaLfQvXTGBNfZlzp2arnl5H 7ciGJlwF9Ij9J7DVl9GsqQceZ0bcYa8gfQstJgR5OK/PJuH8cRGBmaIXpo40p1LNcOl1 ROLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=LVruWYJs; 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 q31si18911569pjc.33.2019.07.26.16.31.22; Fri, 26 Jul 2019 16:31:38 -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=pass header.i=@sifive.com header.s=google header.b=LVruWYJs; 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 S1727202AbfGZX3l (ORCPT + 99 others); Fri, 26 Jul 2019 19:29:41 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:36413 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbfGZX3l (ORCPT ); Fri, 26 Jul 2019 19:29:41 -0400 Received: by mail-io1-f65.google.com with SMTP id o9so4544340iom.3 for ; Fri, 26 Jul 2019 16:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=f0NauJHVqo/HIKObdVkdw9yTl/4NywZItEu7j8mg3M0=; b=LVruWYJsd3bjeNXq3I2xolL9voc9Yk1+77O3/kR4rln3y9Svg6v4WdWHkyaFKL0T0f cFfOXSawqqUdLG7bNbuZIZ4hWhi/FEM5ZaCqLQ0Alt/LtYn8sgnlnHCSKSQjF8JaxwVL HPlBrIWyvIwW0JBa476SDk1xrjw/VXS01l/gIp1t/nCo6I10x8XsldgLfDqlbrx43DY4 YA5h5hXLyD6tGPppVY74MabkYpC3wmz//jlD+RN9PyFexGFTkrawNpFHSR3A5p4HWVj3 HGn6JfMJEMRwafxo6+6gs4TXmwAs/MnXNNR9bJeNJhq+6jE/btoTJJJYbhZwKT422qC3 jVqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=f0NauJHVqo/HIKObdVkdw9yTl/4NywZItEu7j8mg3M0=; b=PwFtQUEmWhwVHgO0PPEWzDA74RwkPmHAdYlgz1zqn65Qa2BytqHc78OaoTYjOxrtm0 2ys+ONU6o8T2u8cc8ZvTIJFVh17D8eboQXxbMcAKtlYA+AJwJ5JQIW0VaiQITY3gvggA 2CpNW3AKTq3eYixgXZonAfAhMKizki/IrYXHPTe+SAf4tD0Qr7QeAsOmJ3njof8KxOUY H6rygb485/iVdoRHpxHS/kbQjGBMrwocvKnFpqHrxfai0hbSWsOWJz/uiiOjx8eMRYL8 H/3ECsxC7is9RSeT5r+ENOACECZ2SjfwKJcQyzo33XBuF7NrFpLPy4FACOsQpHSgRXB1 rcdw== X-Gm-Message-State: APjAAAV+FLFj1ngzszO9velfiiXdrC2e7RUO8Xd9KwwHrFGWp+2ni955 XdhwpOGUYIVckalf73hVpera/w== X-Received: by 2002:a5d:928a:: with SMTP id s10mr64008087iom.29.1564183780127; Fri, 26 Jul 2019 16:29:40 -0700 (PDT) Received: from localhost (67-0-24-96.albq.qwest.net. [67.0.24.96]) by smtp.gmail.com with ESMTPSA id p25sm44650795iol.48.2019.07.26.16.29.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 16:29:39 -0700 (PDT) Date: Fri, 26 Jul 2019 16:29:38 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com 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 parsing. In-Reply-To: Message-ID: References: <20190726194638.8068-1-atish.patra@wdc.com> <20190726194638.8068-3-atish.patra@wdc.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Jul 2019, 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 ? I think that section of the specification is mostly concerned with someone 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 both upper and lower case ISA strings. What gives me pause here is that this winds up impacting DT schema validation: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/riscv/cpus.yaml#n41 - Paul