Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1750546imu; Sat, 10 Nov 2018 00:35:55 -0800 (PST) X-Google-Smtp-Source: AJdET5eGP/0fM3jQV0luHc0BbbHtR3fGPJPS25PGzAgmUGjA/mG0HLwtn7Iu4DogOLOuyc2ywfBX X-Received: by 2002:a62:8145:: with SMTP id t66-v6mr12165928pfd.246.1541838955637; Sat, 10 Nov 2018 00:35:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541838955; cv=none; d=google.com; s=arc-20160816; b=tRG9kgStiVfOimBSnAIzCoG16rWxf+8FcGwj/igpDQbyw2K4l1627y/M+h0LXysBJg AK1hJb5mIB9MnTk1ul056aQqJWeJAzWDDvMCGRKJnRNkz7n4yNyKclBS6NGtWA9sLPG3 jLcu8+VuO7TLH8Unj7rpEo/NznoSMmloMsK3EZckGHnE8xAIYF7Coyc1qJ0M2OrZHDxe hEm/EMnLxCV+dO9QJly1mN35Fa0ovjq6eR8zqFO9f15T5sOQT1A1JvJNpmjOkXzpbf/N +Ss3pn2nV0tmx019g+yKC0orAiuQep9CrejPeJxWh5p4XN6KxRGr6u6m2j/VhmtEXS/p /4DA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:to:subject; bh=PeZStZ/lxkGvwhx8seB62dOFl14N0/DNfPRJj5QzmrA=; b=YcN9ZvWgB6iyiojlrlOXQX98LuKuzv7sYv5WE2iWwQyoOrVjtjVm91uHTPvS/zDrAr c+eN8QmXUvikqNoDO2+5JUMGFKoRmiholR3jQegeZFfN/MpE1t2FFQuW3CvbhI+k9SU9 GoRuHb/Xqim38iuiKqcnmo+ObpzPKYRTJW0aBu4TGAGFChdf8NV8r4Ra/7VqtKrUzZal MRu/xakpOye781IvUkgkPE2XIcgFyorx62cWd9lWyEsN0zCYvTczwpJOyqBuDJyRodVx lpEElSV0GX0puUD+OkvvCx5WayBApDYWrjmGyrSZkZaPsL5LefCXaeBXswJYr1SkGhE8 6qrw== 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 d10-v6si10514105plo.184.2018.11.10.00.35.40; Sat, 10 Nov 2018 00:35:55 -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; 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 S1729044AbeKJST1 (ORCPT + 99 others); Sat, 10 Nov 2018 13:19:27 -0500 Received: from mail.binarylogic.ch ([88.198.23.72]:45788 "EHLO mail.binarylogic.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728791AbeKJST1 (ORCPT ); Sat, 10 Nov 2018 13:19:27 -0500 Received: from [IPv6:2001:8e0:2002:7300:11c7:1b28:a349:1c6c] (unknown [IPv6:2001:8e0:2002:7300:11c7:1b28:a349:1c6c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.binarylogic.ch (Postfix) with ESMTPSA id AD4B4DF386; Sat, 10 Nov 2018 09:35:15 +0100 (CET) Subject: Re: [PATCH] riscv: add S and U modes to ISA string To: David Abdurachmanov , palmer@sifive.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: <20181110064543.12411-1-david.abdurachmanov@gmail.com> From: Patrick Staehlin Openpgp: preference=signencrypt Autocrypt: addr=me@packi.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ptZab/MTJhVpuaWQrZfrCRZ6LQvYT p9JozxZv0Pgf6bntVqMPhMe/dZdaL/ti+kBk86YyemKxyWK5Q5rRMxS8qDEuvJ7lc80y0K2B bjiin8NS25xZ5p30mHLMYvOLj0kSH0oGQszRn6e1z+KNloICk7A+DykOuJWjcSAyxDFdABEB AAHCwHwEGAEKACYCGwwWIQR9yIKJQW2d0IKUGDgLDiHrZr8WEwUCW1AxJQUJCw98PwAKCRAL DiHrZr8WE+7xB/9I0MhfuJZkVy42ApQpRJljHg6bRlt8kfbj31t/9/qG5oy1DU6DtsZQjChV JUrowoxlMecLhIHHkwqrX9xcz+YxZTWp5qbalZ+au1JxzjJPDIyeImx0Emg41NVzcxNrTfQD +Vu7sIG57U8aIltJPIvg1KvAg6LA2XAM2iz4JgRKFtxPt6R5uFuwVy5AJGOKYLtBVDIMCXeh QblQSwszFmlErg1xDqp2ynUvgpq67x8ushAKyOnLfb/T5CFBW0Xg2igZYx+UQAOduZfi3NQi BnOM4Yr7WWVPQ5GCckYX0KxVBbxm4PgwQyPWZ9Ya6T4UKJNiXAIhDWBNV+CsOTxPFtI5 Message-ID: <7958aa50-8808-e909-753c-e232b3d1f84e@packi.ch> Date: Sat, 10 Nov 2018 09:35:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181110064543.12411-1-david.abdurachmanov@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Patrick