Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3403201imu; Sun, 11 Nov 2018 14:14:52 -0800 (PST) X-Google-Smtp-Source: AJdET5e+HU6Ts40MXrX5GB9KbbfpsC5uyzAK+ZJVqiR4H+51ATJ6vTp1ji/JedzMrNFoQxmHUUQf X-Received: by 2002:a17:902:67:: with SMTP id 94-v6mr17052302pla.225.1541974491972; Sun, 11 Nov 2018 14:14:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541974491; cv=none; d=google.com; s=arc-20160816; b=LnC5CIoXztZzm5PI738NPZo7V2R5wI3EF32cxzGIQ+cRlAFzLag1zVuHtcR6woH1pB kYN3GZmVbRosbrJATdqK0G0ifmWr+rB0usqQVwtCUltYWPNMxvLhY9XbB6wJMd5AmJ3L n4TYIu2Kc5wjADesQduvPIygGDyaVGKaE3/gScAcHH4+sNSJejfwK//9/Kxe6Q+8IzDR WI+0XeLunax4fneBKNNznkVAzbI0Myi7HRrcfmizaREDyjHAKPfZNhZBfgGML/NYzlbd Jg5vx2tbxU7L2Tgc9qFuxhSlHwzGOBAytDfilR+Im/Cppu2dop8nQH8vTuz4ScN9LIVy 2JZw== 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:dkim-signature; bh=LqvdH7aWIUli3FTLPBfFtEufjMreDC9Q1EDWd0tjc9k=; b=qUI5W7VWREOZwI6RgzETAbsbcTSiL0fFLAZPB0freBDGl0kTOGnMAfMJuafi5WuQWd WvtHES7g8iSN9iF4dK1k2A3/Url3ef4hA8qYJZaNkFUaZOp2Fws4GfFl1/vtxvhggTai svs+9KpT013nlauoTEC++Q8qftWPgFz3Y7lp8718/DRMetgkdkW+TeZ9nr8Sqh3oddjz SuV54HZM4tXyTpQ300kh/delTsd+r1ydkteW+asQXAD40FIU36gCG80ukFwLSl8TLQLB fd9/QrSFqvBoGP1g5s1YI0XFc0lnw/ewgbQ35UmoqVu1+4ZHVyuFCgX3M+Z7hFFVuDrE S0Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=FnNozWaM; 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 s14-v6si5006146plr.93.2018.11.11.14.14.36; Sun, 11 Nov 2018 14:14:51 -0800 (PST) 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=FnNozWaM; 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 S1729507AbeKLIEH (ORCPT + 99 others); Mon, 12 Nov 2018 03:04:07 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:39429 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbeKLIEH (ORCPT ); Mon, 12 Nov 2018 03:04:07 -0500 Received: by mail-pl1-f193.google.com with SMTP id b5-v6so3329753pla.6 for ; Sun, 11 Nov 2018 14:14:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=LqvdH7aWIUli3FTLPBfFtEufjMreDC9Q1EDWd0tjc9k=; b=FnNozWaMAPUNqnC649UESqVM97kb6TGA8VwmGxdYAVVd8jtOO7cnHF8gCdx8BEsVu+ c40PYw4mWkkVjGVZ8CRM32kSL4l3cCKDxXAlieFe2kEJ4Pn7Rt4vJUvRA1/IUlmEPyHb iIUMhLx6c/QRflDMgzzcUk8vJ1HwQgZ/+try5WcTqYgg9Ud4ldyTPlTMmomAJAPrcoFr nAMNpqgu5i5kJ1qrK9LR6dm31C9qZDuzTxReHhyKpogLYDcPWlLvwf7YgiE6Q2MHrqVr KDowszebGWUBzeXxugTqwmW460d+TZBKEhoyXr34ivmuoZ8JNbAR36+8C+S0oNgpclRI B28A== 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=LqvdH7aWIUli3FTLPBfFtEufjMreDC9Q1EDWd0tjc9k=; b=sRO1qi1tOcYyM6YNthsaCcAUefYTP/YA4GOARFjeiuz8Y7GBVFWnbZRDkcNVOvueas AvJUmvmM1GO7mrMr4b083zAXx/s9WHQiWybz2MVB2o/vfjn1Tn08ByGOVa79vzHCk7Iw cFXuDtx8nXFfRWlMo/TT2JGBFt9adWqBpXZQpT3sC69OVaJHI+44rpZUSyND+0xH0pzG Jniq6ElGHrrtMSmnqcxKoS7DAnbmcy5uI1Dc0JVtvZ/G5M3/+Tq0VfzsgSY9UBnFdlCM cTcA9Yaq3vJa/pRvFPOr7ifqJ9cPKwPS2Xy+fc/6tfl/1q/Oz705Xt8LWFHQ118qLZMt jxrg== X-Gm-Message-State: AGRZ1gI3mwk2u1eNiTUA4IkF27L12vbU8fpA20auP6bk1M/eh4zxLjMt QWCN9Tbiw55DAzwnfuIim0KHTA== X-Received: by 2002:a17:902:6b87:: with SMTP id p7-v6mr17879403plk.282.1541974453584; Sun, 11 Nov 2018 14:14:13 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id g8-v6sm15138725pfh.57.2018.11.11.14.14.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Nov 2018 14:14:12 -0800 (PST) Date: Sun, 11 Nov 2018 14:14:12 -0800 (PST) X-Google-Original-Date: Sun, 11 Nov 2018 14:13:43 PST (-0800) Subject: Re: [PATCH] riscv: add S and U modes to ISA string In-Reply-To: <7958aa50-8808-e909-753c-e232b3d1f84e@packi.ch> CC: david.abdurachmanov@gmail.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: me@packi.ch 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 Sat, 10 Nov 2018 00:35:15 PST (-0800), me@packi.ch wrote: > On 10.11.18 07:45, David Abdurachmanov wrote: >> >> The patch adds the missing S and U modes. > > This is the same patch I submitted earlier (see v2 here [1], based on > Palmer's feedback). Palmer stated that the "S" extension should not be > exposed to usermode. > > Since two people arrived at the same solution, I wonder if the > supervisor mode should really be hidden from userspace, as it's about > the CPU information, not about the environment the calling code is > running as. > > [1] https://lkml.org/lkml/2018/11/10/96 I still think S should be hidden from applications. This patch was fairly mechanical, so it probably just wasn't though about twice -- that's the problem with user ABI stuff, lots of times the obvious answer isn't the correct one :). I'll take your second patch, I just haven't gotten around to actually fully reviewing patches yet as I'm still in my email triage phase. Thanks!