Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2105795imm; Thu, 20 Sep 2018 07:52:46 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb/HJxSVIgrUWwCrm6vJ91z6hYzibiXYunfSs0t5Hw4SXPbvp0D6OXVqPFovgZuwjr/m49p X-Received: by 2002:a63:ee56:: with SMTP id n22-v6mr37413612pgk.402.1537455166817; Thu, 20 Sep 2018 07:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537455166; cv=none; d=google.com; s=arc-20160816; b=y7y74RRSProG3WmPQvWXxHtxkxzLWqO6QG0xT1nAxnOEbsFTEAhtTvOXBgkyClG3ja IXcJVrxTMFjxsyovGCLcYyqiCryzrxrbFv/2AOEMXtpO3oGK7k1982DFHqaIQ4ZZKmdN Qsum0fQDEm/GBYlONxZdsUAKqiMdL6GZX/UtYSklxsRcJy45C3NOCKAF5Is+SLutQnpC EDWsAXQ3Ag/eEnQX0TgBdMuRsN7H65lJpWIlWYpMBbr7+NUqefVUbDYBwtXnsiQp9dmP DrUZq5yueMxFggDCrWD6tvBFNnTRNaqhFKzk2ZrbC8VoOjI7qrdzENma41C952hkVskv U19A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=eFGUqvFxzbIhaU83zPWhDHl1/BdgZLhy7pyCrpxunG8=; b=kSu5kjM8jPTTpX8dLbAoflaaJ61+9BJfGWME1o7I0pJqjC/MWthNXwFmN1C5kBC1xH 8Ura+c6EeJWGSUZyrVUgYTKLPXtSWFdXb0uKQ2m1wITnAmVIkVSAWkRBfvxjKveLfKyT aqnYmCuNt54HI2tkmle155SIkv4bB+WHJybI/zNVi74O1OwzyNjfCZxZeZt9SV/q3us5 GB5EFyP0AMMCW6M6qY0bsENIitPydZyuApqGIKype8EkABCXlzKx0y2WI0j72H9TA6om frLcIdcWliqHhvw2N/wUK0GSkO+AOqUn8dDQgMQQo1JCY5wSFpg1EQ/XluvcN4WuZCXG h+Fw== 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 x7-v6si23911513pgh.595.2018.09.20.07.52.30; Thu, 20 Sep 2018 07:52: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; 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 S1732857AbeITUgP (ORCPT + 99 others); Thu, 20 Sep 2018 16:36:15 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:44188 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731025AbeITUgP (ORCPT ); Thu, 20 Sep 2018 16:36:15 -0400 Received: by mail-qk1-f193.google.com with SMTP id d131-v6so5127077qke.11; Thu, 20 Sep 2018 07:52:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eFGUqvFxzbIhaU83zPWhDHl1/BdgZLhy7pyCrpxunG8=; b=SyfeA3thk/0kBaf07b3e5W/JvVo6qNzMSQWIVRa5JC/Xsk3L9C49QsNShYFGUMwSsj oTYfZelZc/MLKmoQZ4S1NUS30WfD8J4v63Y1yOVl297mYThsz2/BA8OgGN1U4FzIKAk0 fj5LSmtzG6UhKwjdGcctGxjM86GUO2rC611p7bOyOxbKM/IZOZBb4/Kf8tlI7PRxTQ6p QkbLWLAwuja5XGGVJkjw8V57vCcNHKhjgFJPM78G831kV8HnAaMbFwjDF4xSGXXSfEqA Kd2QRXk5JyyJAkAO/glYfCw10PM3TGar2ojh1ylCfP2qHBN1WkZ1Q3/yCxViYB7Ji6u2 lDaw== X-Gm-Message-State: ABuFfoglkcSTim/jscAXVOznqU1jomXctF0HPZOO1+1qw4IicOYoRwF9 Me+yrZX6yzbIVLy6Q/yR2I40p7OdtVT1lotwgr8= X-Received: by 2002:a37:2b12:: with SMTP id r18-v6mr1287870qkh.343.1537455143443; Thu, 20 Sep 2018 07:52:23 -0700 (PDT) MIME-Version: 1.0 References: <1536914314-5026-1-git-send-email-firoz.khan@linaro.org> <20180917171720.wda5qrl7hyyacmwl@pburton-laptop> In-Reply-To: <20180917171720.wda5qrl7hyyacmwl@pburton-laptop> From: Arnd Bergmann Date: Thu, 20 Sep 2018 07:52:03 -0700 Message-ID: Subject: Re: [PATCH 0/3] System call table generation support To: Paul Burton Cc: 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 17, 2018 at 10:17 AM Paul Burton wrote: > On Fri, Sep 14, 2018 at 02:08:31PM +0530, Firoz Khan wrote: > > The purpose of this patch series is: > > 1. We can easily add/modify/delete system call by changing entry > > in syscall.tbl file. No need to manually edit many files. > > > > 2. It is easy to unify the system call implementation across all > > the architectures. > > > > The system call tables are in different format in all architecture > > and it will be difficult to manually add or modify the system calls > > in the respective files manually. To make it easy by keeping a script > > and which'll generate the header file and syscall table file so this > > change will unify them across all architectures. > > Interesting :) > > I actually started on something similar recently with the goals of > reducing the need to adjust both asm/unistd.h & the syscall entry tables > when adding syscalls, clean up asm/unistd.h a bit & make it > easier/cleaner to add support for nanoMIPS & the P32 ABI. > > My branch still needed some work but it's here if you're interested: > > git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git wip-mips-syscalls > > https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/log/?h=wip-mips-syscalls This looks like a very nice approach that we would probably prefer if we wanted to do it only for mips. The way Firoz did it makes sense in the context of doing it the same way on all architectures, where usually the information is more accessible to human readers by using the number as the primary key. 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. Arnd Arnd