Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp318276imu; Mon, 5 Nov 2018 01:09:44 -0800 (PST) X-Google-Smtp-Source: AJdET5eICoXmhvNRbTV1mZe8kR90VSzwg0aO4qoi23kZB8fnUOJqlT4PnvcrYLCxSX9U30yzU4i6 X-Received: by 2002:a63:2ad4:: with SMTP id q203-v6mr19047342pgq.356.1541408984628; Mon, 05 Nov 2018 01:09:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541408984; cv=none; d=google.com; s=arc-20160816; b=AP1nVOnJSP00h83UkMe5G7yCr92bfPdPvTCco6GTpoJM7tzti1SdwYSkLovmSY67Qj lfQs9X1OxZkkysOiHLf7ZQn5EdwoRzhoDVqr+AaAbn2XgnCpHVz1lnRwJbV4rFbFk62Z dTD5DKd6wPBBR41BUb8IfmebeVQ1Uvz5zOz4+bpMP429/5KLoYfGkQ5xPolH6JYvb1/L 3dbmEriwkAztiGg2HCAyfrtRj50yXAGQMo8hkqUyhDK5GADdELyecD7M/if0U7vMuGh0 jc2Bh5EtYBFd3L7BELm+aruB2OM1Xn7vtwiIDttIM04moaBlmJXcGf7H1iEHsCu7ujdb yorg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=l3y/CO+0xDtVPVTAZdr/0+Ai079D0gY/8QOevfiqFiw=; b=fosje4wtV/CepjVwFOSEjP0311wudHNn5W6brt5Z4Qw0kCmo1Riezqic6nLZt5sNTi 3rQFD06Cj/80/ilbfUKPBY0CRrAraJXHoDdO4mRPQeRjlcKvFrk18UF5ELrn0CAoKiL5 +C4m1yUw2oUTZwK+Z0zdfn9hlwo9UonSVnR4wsN5u1ljtm6v4o0ieYdz0L95mu/Zh1it Kx5OFcdHCvSDxJNrSQfgILN2DGdkduNR2VL5DuQeagIj1W+j+E7Pei2ZaGTqKQ3RheIg IjYimFds2ThLUw8iZJ8+FYP2hBQFcn85Qt3iXcw0k+6xy6C6wMWEkmFjGAq0URrwI4DG RbUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZJ7zAvdp; 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 p61-v6si21817614plb.382.2018.11.05.01.09.29; Mon, 05 Nov 2018 01:09:44 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZJ7zAvdp; 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 S1726706AbeKES1l (ORCPT + 99 others); Mon, 5 Nov 2018 13:27:41 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:53528 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbeKES1l (ORCPT ); Mon, 5 Nov 2018 13:27:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=l3y/CO+0xDtVPVTAZdr/0+Ai079D0gY/8QOevfiqFiw=; b=ZJ7zAvdpt6se/Q//+yR+VF1EVO o+6hS32l4lBXiXa6YaTte9wSj5Qirtpho4hpmJvANl2rh8LLxQjQ7JyIy91GG9C8BLlmuHKqmlJO4 5GN3uHjnYJ5WzdnCvPhWXvqCM5WLCbxjCE+qAnDXZDoqVouY8RxZcAvfbZUppN8bvfX8Zox7p6htE Y0L/yJiCWU46DBohoEO1RC8RBaavCw5Nh9ZtByqAhzhgKAsmdnt2LAyB9vm8N8OboRzCHQXfp0Mh5 v0L6mwkn6rS4Dey5J2frCPlLyyiPY9HgvtRbE93gmkd4ooG/33ya4izZeOgHwyhfruzJIwCIeOWqU WDSA/qDQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJasO-0004CY-CL; Mon, 05 Nov 2018 09:08:52 +0000 Date: Mon, 5 Nov 2018 01:08:52 -0800 From: Christoph Hellwig To: Arnd Bergmann Cc: Christoph Hellwig , Vincent Chen , aou@eecs.berkeley.edu, alankao@andestech.com, greentime@andestech.com, palmer@sifive.com, linux-kernel@vger.kernel.org, zong@andestech.com, kito@andestech.com, linux-riscv@lists.infradead.org, deanbo422@gmail.com Subject: Re: [RFC 0/2] RISC-V: A proposal to add vendor-specific code Message-ID: <20181105090852.GA14924@infradead.org> References: <20181101174857.du2zu4vnrhpu5asf@excalibur.cnev.de> <20181105065807.GA1286@andestech.com> <20181105070551.GA7274@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 05, 2018 at 09:52:52AM +0100, Arnd Bergmann wrote: > > I fundamentally disagree with this… and think it should be the contrary. > > > > 1. The kernel shall support no vendor specific instructions whatsoever, > > period. > > I think what was meant above is > > 1. If a vendor extension requires kernel support, that support > must be able to be built into a kernel image without breaking support > for CPUs that do not have that extension, to allow building a single > kernel image that works on all CPUs. No. This literally means no vendor extensions involving instructions or CSRs in the kernel. They are fine for userspace, or for the M-mode code including impementation of the SBI, but not for the kernel.