Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp262366imm; Thu, 20 Sep 2018 23:10:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY3NGInfxeMkwGdUD8NyLnNjZiQD5CzsxgTLdH1Bb+Jng33fjqwwD4mUFCH5U35B/QbVIQp X-Received: by 2002:a17:902:561:: with SMTP id 88-v6mr42404976plf.320.1537510246208; Thu, 20 Sep 2018 23:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537510246; cv=none; d=google.com; s=arc-20160816; b=P7+dRo+S+liwE+6zaMrCS2yzc6ZwLl8yL8qjLZFl3s5jFLj9GyetHoWURSt2INdRHA 35VzAwBRj1udJwV4VQjZEwVqFiVc9d8voA29xN6HcubILHa/5mMyhpP9z1HvitmqLqOe fla2+KCuVvPLi7lukqXc1eB4RSzIguonIbix4jET5xzkx5mvrKrZwp/5eREq109hShV0 MshkkxM4ZiQjT/t212zXp/HmtNmMweMylTAh6wuMaUf4u0e1GXyKOFiKtwiIxxC0yi+9 Xuyb98zlqjwN6ki3+zSSRklHD8iXBTukv9xY33PyN9VUEfapo6e/1AZX2zjcHH3uB6xE CgjQ== 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=cg03QiRjf+HUQPKf/1TFGUUl54s7S7du4g8XL+t6vRk=; b=FzWhBRIPJWIkOn0G5OwUJYNE0uS+sEgf4KGTc//lOiSZOTKLs88hVyQYKkI6nX+jLm 7R0IFaKMuIeiwq35SXE6e0pGWjlYG39tDcF8f3P5cM9MuGYZG1PyWC0W4a9icX40YIQ3 TIjw8bGDA7HFvAYb6D4zKOIiZVQA6kq6dNhT386oL5NOpH5W4IZWwK9EabqhMYdcCEl8 C7GdG+liHDXDOuxXIJ0gbJOoMza9khPOxEXQQ+SjJsT+R0X7cT9b3dmRWBgmreSW1ItN 2tGIO9teB8YzoIx1iTXo5/PLeu9UW18nEFxUMWUKrnl7cMzeKM2nZp3Qc5wELrLRCl5l BKlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dc2q6qoq; 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 f95-v6si28314518plb.373.2018.09.20.23.10.30; Thu, 20 Sep 2018 23:10:46 -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=dc2q6qoq; 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 S2389293AbeIUL5O (ORCPT + 99 others); Fri, 21 Sep 2018 07:57:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47368 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388944AbeIUL5O (ORCPT ); Fri, 21 Sep 2018 07:57:14 -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-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=cg03QiRjf+HUQPKf/1TFGUUl54s7S7du4g8XL+t6vRk=; b=dc2q6qoqIxXBTE9q6iHSZxC8fR L2vj/KvmnIDkDtqwbwObTedmdHm3RyBP7J+FiXkATIqzjeITQejJpjy2Cp6xHFHN//AFXQB8pORUi +qUAkfLC+9AIEdw5r39uOVrf+ng0J3wwU7v9fiseqtjPSEHOjiM6Fpt1N1EaROP5qvy7YpSDFJtSw NcCO4/G42OVfq+YXydx3/3HZJffEQiGYsV8yR9ZBOlWUn8l3mfjZPUcM2w3tZjeHBfj941+o9cMCZ dFa+UDOsrsHn1Bx72snk6HTHx6dYsXCW4s98nO67BVygNZ1Bh+Mn2MCBYW1y1o6Gzr13GzqJ6J4Ed ZZotdvBQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3EdJ-00026K-EN; Fri, 21 Sep 2018 06:09:41 +0000 Date: Thu, 20 Sep 2018 23:09:41 -0700 From: Christoph Hellwig To: Paul Burton Cc: Arnd Bergmann , Firoz Khan , Hauke Mehrtens , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , "open list:RALINK MIPS ARCHITECTURE" , Ralf Baechle , James Hogan , gregkh , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , linux-arch , Deepa Dinamani , Marcin Juszkiewicz Subject: Re: [PATCH 0/3] System call table generation support Message-ID: <20180921060941.GB13865@infradead.org> References: <1536914314-5026-1-git-send-email-firoz.khan@linaro.org> <20180917171720.wda5qrl7hyyacmwl@pburton-laptop> <20180920204833.gpypjjxcmxjupls6@pburton-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180920204833.gpypjjxcmxjupls6@pburton-laptop> 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 Thu, Sep 20, 2018 at 08:48:37PM +0000, Paul Burton wrote: > > Speaking of nanoMIPS, what is your plan for the syscall ABI there? > > I can see two ways of approaching it: > > > > a) keep all the MIPSisms in the data structures, and just use a subset of > > o32 that drops all the obsolete entry points > > b) start over and stay as close as possible to the generic ABI, using the > > asm-generic versions of both the syscall table and the uapi header > > files instead of the traditional version. > > We've taken option b in our current downstream kernel & that's what I > hope we'll get upstream too. There's no expectation that we'll ever need > to mix pre-nanoMIPS & nanoMIPS ISAs or their associated ABIs across the > kernel/user boundary so it's felt like a great opportunity to clean up & > standardise. > > Getting nanoMIPS/p32 support submitted upstream is on my to-do list, but > there's a bunch of prep work to get in first & of course that to-do list > is forever growing. Hopefully in the next couple of cycles. p32 is just the ABI name for nanoMIPS or yet another MIPS ABI? Either way, І think if there is yet another ABI even on an existing port we should always aim for the asm-generic syscall table indeed. Especially for mips where o32 has a rather awkward ABI only explained by odd decisions more than 20 years ago.