Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1845994ybe; Sat, 14 Sep 2019 02:54:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfyiyhDP23vDGOjR0O3O/iJkFQIi8HVrHsAkI6CvIjCZXSdAayfK5tMZoqg7Q9O1v3yzaD X-Received: by 2002:a50:fb0c:: with SMTP id d12mr50800404edq.275.1568454887924; Sat, 14 Sep 2019 02:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568454887; cv=none; d=google.com; s=arc-20160816; b=tPPd6UNgsQodvjD6WIlLpi4G5lu18hedjo/gdJl8nN9TrqdXPxpfUnYcsDFisoi9+x IkI3lKFC1sEpRl2nLYDvH1FIm5nENxH4Dtfnz6O1I/h3oYkWqkcp9i+DDCc/R4W0bEj/ WNEPUUJE0sZLZBQFHe4iM4UfrsJSW35zPZNyuTJCkOGHZoNYg8NaJsb/vMjn0ShgtZT1 Lgg3ssr2hQh9M9f+XjuxWhrLMcyQXjAQAk2fFeoxSEnNQrKBM7TOBGFispA+8Sp7HDA0 /6UqojA85678EWFdd0XlDceh/gtvqtAPDlFgSqRRbiAgG6KZxXJEF6xqSUcx1c/TSliN Q/7Q== 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=QGt5Azf3+0XZwNWPdJzqQycZhJFLYdeBQtKL97p4dH4=; b=doRMm4V0D1L/1ulA4Xa4JoCq1Pav30XiLFxOwDWiMSvmMoZq7TRW0U6eA++4ql9IlW 1IdAjpIYy/KGoiOZWyXl1+dkGuCGGREEVWXzhxD795ZEAcJ2b4/M0VRF/PA6TzzvBTCq ADxOUo5Frhfh7AX3+5QegAKxZg7kVmAoLZuh4u64xsy9oOQE82HZufvKgA65Cxn51ug0 Q12mkW8qIMvr4J9V05gzAikY8TxfWS2xV8dRJWid38BokRPghOhgXOfi8oBMSdao0sl9 YGO9tkwaWDl5K3+622VfKfslyjLqVjt+0+oLQx9IT3GQ5GthZdU0Wtx6XCEKZqatzFNy gvkw== 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 v5si19757291edm.313.2019.09.14.02.54.25; Sat, 14 Sep 2019 02:54:47 -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 S2389767AbfIMUr3 (ORCPT + 99 others); Fri, 13 Sep 2019 16:47:29 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:45102 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388865AbfIMUr2 (ORCPT ); Fri, 13 Sep 2019 16:47:28 -0400 Received: by mail-pl1-f196.google.com with SMTP id x3so13728307plr.12 for ; Fri, 13 Sep 2019 13:47:27 -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=QGt5Azf3+0XZwNWPdJzqQycZhJFLYdeBQtKL97p4dH4=; b=Uw6ks0dbRm/Wtjd312NjhtsdFY5AjJaCb3YI8COev+jnnXSJ0j+3ZImzPI3YXs5nl7 tQubdFLJc33RbI7kpLxtpTCvTD1awVV4+wqa+myc58F60h0CQv948RCvWNyUmmZAgMum 1mk/6WjFb6NuOn4nxRWnsnM+Rwt0XlfqFEs2KutJdhyKJO7jds/dfrWLT4hioIb3Ebzt 5auVzN6L5B/yIfwJvhKQGW0Goq+E7q4YpXb1qecBedpvGrWuaioS9J/d6ylo7KJ1KF0U Okax/HUDiWSymO7pisXFCqf6S6XtQ1ktiC8KZzX1hOOTvI4ulLG7XiBCb+3ASFqhZfV2 wIzA== X-Gm-Message-State: APjAAAXtzB3jacWFMoCLDjoDN8WoJWF0eHKJd4/6+b48xBs2AY9pxOCH dWl117gkfVuBRxp0xgBmUoXMUw== X-Received: by 2002:a17:902:6507:: with SMTP id b7mr51141019plk.37.1568407646516; Fri, 13 Sep 2019 13:47:26 -0700 (PDT) Received: from localhost (amx-tls3.starhub.net.sg. [203.116.164.13]) by smtp.gmail.com with ESMTPSA id 202sm58241328pfu.161.2019.09.13.13.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 13:47:25 -0700 (PDT) Date: Fri, 13 Sep 2019 13:47:25 -0700 (PDT) X-Google-Original-Date: Fri, 13 Sep 2019 13:46:05 PDT (-0700) Subject: Re: [v5 PATCH] RISC-V: Fix unsupported isa string info. In-Reply-To: <20190910060010.GA6027@infradead.org> CC: Atish Patra , Christoph Hellwig , anup@brainfault.org, Paul Walmsley , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, aou@eecs.berkeley.edu, johan@kernel.org From: Palmer Dabbelt To: Christoph Hellwig 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 Mon, 09 Sep 2019 23:00:10 PDT (-0700), Christoph Hellwig wrote: > On Fri, Sep 06, 2019 at 11:27:57PM +0000, Atish Patra wrote: >> > Agreed. May be something like this ? >> > >> > Let's say f/d is enabled in kernel but cpu doesn't support it. >> > "unsupported isa" will only appear if there are any unsupported isa. >> > >> > processor : 3 >> > hart : 4 >> > isa : rv64imac >> > unsupported isa : fd >> > mmu : sv39 >> > uarch : sifive,u54-mc >> > >> > May be I am just trying over optimize one corner case :) :). >> > /proc/cpuinfo should just print all the isa string. That's it. >> > >> >> Ping ? > > Yes, I agree with the "dumb" reporting of all capabilities. I agree: it looks like other architectures are passing info (ie, x86 flags) that isn't supported by userspace. We have the ELF hwcap stuff for those who want to tell which instructions they can run, so it's sane to just keep this simple.