Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4482265ooa; Tue, 14 Aug 2018 06:37:41 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyxMZkMk/rzs3NCQq1dHXowI/GVEgGjQDwx54Wl44e8Iah2UePTN4iboQWTal8nbrqkTNC6 X-Received: by 2002:a63:8b44:: with SMTP id j65-v6mr21328930pge.248.1534253861722; Tue, 14 Aug 2018 06:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534253861; cv=none; d=google.com; s=arc-20160816; b=qf6nExK/vIAqGH/NF4/qAiLuB7IpcVgYFhFkn9SPqHmVReOH6oQ9mcv6RRZOxiWMfX TTkvDZzemzNHq8+Z3yiJw4Y1+TAtGqbN9CKpt0RqhonaC1hx641cj3oFyFpztj/UNLLS nnzmf5NfrhOjAhp3LabhW2bYhI7HoGJDFjbVsdOF4N6UUn9w/5sKrJXWytgD0HOVF8xF GgraCMEITCCDbJAEarKYvMaBHm7unyOBTm4fW5C4QeAHL8fpM856eqkIAmUxuqjeGE1r SK5zdr6YP9Gz1iGIX5HrJUbzH5VeUGMEWNc0g3RgeIrVPbCXBTDMMNYzwqIzFbxM+DvQ AwqA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=xrP27v37wEfLTaarlipron8WUIcSnnq+qIHgp4mVPSM=; b=d2MLZ7NluGTNsmcfyF7+foiQWvc6AVhgFeA3EA5lsFvVacedl9Jy32q55vqs8kRERQ FKdy1TEI7rE6EvMyp03ql8lIf+npvlwIQvskjG/1av6kL3CxA5Qw3xJDmyoMe5jNTBs7 E1DekvGyLgSN6Eb5Ta8J3QqFcGkBhK3aWPbjOB5BN6FvmXZ3GSrieXNrKQ+64iPVkK3p XC3l6X/vWNzKmWywVI+UY0zKJF9ZbxN+VV48wfhXbXauVabHOjzB8Lt2MoseVqqrx6y6 IDFmq5ykUb73WojXFljGylBkpHesUcErH2VCYM3EmdpKv9JWi0AfG4tO3Uxy27wySAXI o/FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JRGFObfe; 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 j135-v6si24279967pfd.207.2018.08.14.06.37.26; Tue, 14 Aug 2018 06:37:41 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JRGFObfe; 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 S1732853AbeHNQXG (ORCPT + 99 others); Tue, 14 Aug 2018 12:23:06 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58054 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732782AbeHNQXG (ORCPT ); Tue, 14 Aug 2018 12:23:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=xrP27v37wEfLTaarlipron8WUIcSnnq+qIHgp4mVPSM=; b=JRGFObfeQlY972/ReD1H+yBBh hJwe2F1E7Wj8YYo3DFZ1Q6bTpI5kQKM2v3JCojTQEUdn+/QtRDfWssaPbRW8bkqmAP03u2mGXL4yr viW7WRKvL/JN/w58ggT8Uee8RHLuGpAz47YVlEoermTzLMXUPhtozbhLuy/+BBfloBfkBdpVyqrNC RE97C+Bvu43wU9fm+T0497fs5LaWJSBVA0Pm/7TaFgfV8YEsaVC8h4PzldxB+0blXuE+11IZHlNyl q9M5f7FaKaQiJhbpC3C5/wxvHHIVF6oQ8Q50nolcrtbrCz/Rm3THBWVFGd+rU9DouIOLqYVKNdzZy Fv5DQ8bpA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fpZU1-0001vk-2T; Tue, 14 Aug 2018 13:35:38 +0000 Date: Tue, 14 Aug 2018 06:35:36 -0700 From: Christoph Hellwig To: Palmer Dabbelt Cc: Christoph Hellwig , aou@eecs.berkeley.edu, Andrew Waterman , Arnd Bergmann , linux-kernel@vger.kernel.org, linux@dominikbrodowski.net, linux@roeck-us.net, tklauser@distanz.ch, linux-riscv@lists.infradead.org, dan.carpenter@oracle.com Subject: Re: [PATCH v3 1/2] RISC-V: Define sys_riscv_flush_icache when SMP=n Message-ID: <20180814133536.GB28080@infradead.org> References: <20180810083804.GA20415@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Fri, Aug 10, 2018 at 11:27:37AM -0700, Palmer Dabbelt wrote: > I'm not sure. We can implement the syscall fine in !SMP, it's just that the > vDSO is expected to always eat these calls because in non-SMP mode you can > do a global fence.i by just doing a local fence.i (there's only one hart). > > The original rationale behind not having the syscall in non-SMP mode was to > limit the user ABI, but on looking again that seems like it's just a bit of > extra complexity that doesn't help anything. It's already been demonstrated > that nothing is checking the error because it's been silently slipping past > userspace for six months, so the extra complexity seems like it'll just > cause someone else to have to chase the bug in the future. > > But I'm really OK either way. Is there a precedent for what to do here? I don't know of any.