Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7793418imu; Mon, 3 Dec 2018 20:04:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/WLg/QaLvf1foJMs13sSIgNX5MhVucU+MEXgvant+9tp//xJL6WnMvzJDZAwJ2JDN7a2lgu X-Received: by 2002:a63:ba19:: with SMTP id k25mr15422626pgf.194.1543896260813; Mon, 03 Dec 2018 20:04:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543896260; cv=none; d=google.com; s=arc-20160816; b=Wz5KrNM4brirZT9UI37tS97WKWJ8LGOS6MXkowmxAT7C1OF1iCQ7A1I/jzovdg/F8W cSYss2b8mkRRCZCePtEMWR5bPWYfFPnIVo8FmO+OwgPY9nafmiak3aO7XwaG2T+m2ZSD tgl8oXvyt7CtrQeOdADFWTQp1b2SRMqp/jitR2QGDQ3UyNYtKNam25b0oO8UDSZp/U8m jltyaqhp+8orApso56mL9N1RTFJxnRXMHrvL78qdODdA7DJKCL/ITf8XAK1JNKS8bE1a lpplBckem8DVvInHC7/d4JSBhbk3V/UIdB2TtCj6X6mpQZHWJJtfJiSQnhOaqLlv0kpa uPpw== 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:dkim-signature; bh=qroefZPXRpjHXeZ1MWPkLJnGC8cM1b7MrudBMkXXqaY=; b=vWTfqbOS2HqDbZXNroEH4zV4PWYOHS6ncDgbtgCiQrYKL/btpcKaa+M19KDEZPyUPE LP/IHH4u4SFkMqZkyIeGj7CAbGObmSNxcThnwZ41kB+SAoYFGj+qEk6KUx1SSq51D2eO 3ZT2u8Tp0HYvjHiWp2iBHOIWFw9oFsBzif+Sl9SM4g2ufCNgF2jrJdiQOKXYbxMCqJS0 j6WHzstRMNb+aP8NBjTgNo5DDYrP0OY0O9lxfmymit8hvrtRw2JCES+yUAshBHT2zYhy 6xv9aSTnU43tqNBNWmzS+S2HQZXfyh+OPlz3Vevd/5uhTa6cP4LEyQow4OZEmcIs9K7f KXEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XQRMF4Wq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si14779071pgo.166.2018.12.03.20.04.05; Mon, 03 Dec 2018 20:04:20 -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=pass header.i=@linaro.org header.s=google header.b=XQRMF4Wq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726005AbeLDEDW (ORCPT + 99 others); Mon, 3 Dec 2018 23:03:22 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:54267 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725969AbeLDEDW (ORCPT ); Mon, 3 Dec 2018 23:03:22 -0500 Received: by mail-it1-f196.google.com with SMTP id g85so13205348ita.3 for ; Mon, 03 Dec 2018 20:03:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qroefZPXRpjHXeZ1MWPkLJnGC8cM1b7MrudBMkXXqaY=; b=XQRMF4WqahBHXDcZx1QOG0Ye46zlKPd9MAFi7L2aZiidzCmydbbJEeeko8eMiu7BDk yezyU9aC61AwW9AQ0ECKSdp+gj/zWPkQwwUpEXDXEZgdF4s/WVLRXcjWOdQFTWqKDThY 4GrCGL5ERHSVKKMzBs7hUg7dZQPKnidbGBX5w= 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=qroefZPXRpjHXeZ1MWPkLJnGC8cM1b7MrudBMkXXqaY=; b=snrPBV0Xe+WltjvQcJgyS/0RH9uwDeN0GOcmM5Dn0fR1SQbhDM6xx+AFXtbW/q6dXK ZLPtxIjBoX9XCb1pIGAy6GB5PdxfAQD5EifM1bpuB4xYuawGGCR+3KBS1E88Ir74CvKS T48/gfwxN2T8oZsFYW0bBD0gDWqyMRAmwkxm2CJXceq5+i0RGrF0VSd0pe7108InZqym eQW2ddW4UwZKNJD0cd4Whk3HL1EBItzPEKQPBtubNbRiGPMAQy2G5JtWFm3mjINu0VRF UU5eTxnPSjT5wyvXlzMdJ5hRS9cH3J/rqFDZvMkO3EoMotkZy2Oqi1TPrr6J8Ehds1HU vuRg== X-Gm-Message-State: AA+aEWZgrvQDmlpLclsQqLblbA/s37BB0JmpiLGIFxtyOOzFrDMn5X5u 6Lre288J/TzjpGO+t0wm7wPDDiWwM98MyjaKOUruEw== X-Received: by 2002:a05:660c:a45:: with SMTP id j5mr10222610itl.83.1543896199759; Mon, 03 Dec 2018 20:03:19 -0800 (PST) MIME-Version: 1.0 References: <1543481016-18500-1-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1543481016-18500-1-git-send-email-firoz.khan@linaro.org> From: Firoz Khan Date: Tue, 4 Dec 2018 09:33:08 +0530 Message-ID: Subject: Re: [PATCH v3 0/6] mips: system call table generation support To: "open list:RALINK MIPS ARCHITECTURE" , Ralf Baechle , Paul Burton , James Hogan , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038 Mailman List , Arnd Bergmann , 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 Hi Paul, On Thu, 29 Nov 2018 at 14:14, Firoz Khan wrote: > > The purpose of this patch series is, we can easily > add/modify/delete system call table support by cha- > nging entry in syscall.tbl file instead of manually > changing many files. The other goal is to unify the > system call table generation support implementation > across all the architectures. > > The system call tables are in different format in > all architecture. It will be difficult to manually > add, modify or delete the system calls in the resp- > ective files manually. To make it easy by keeping a > script and which'll generate uapi header file and > syscall table file. > > syscall.tbl contains the list of available system > calls along with system call number and correspond- > ing entry point. Add a new system call in this arch- > itecture will be possible by adding new entry in > the syscall.tbl file. > > Adding a new table entry consisting of: > - System call number. > - ABI. > - System call name. > - Entry point name. > - Compat entry name, if required. > > ARM, s390 and x86 architecuture does exist the sim- > ilar support. I leverage their implementation to > come up with a generic solution. > > I have done the same support for work for alpha, > ia64, m68k, microblaze, parisc, powerpc, sh, sparc, > and xtensa. Below mentioned git repository contains > more details about the workflow. > > https://github.com/frzkhn/system_call_table_generator/ > > Finally, this is the ground work to solve the Y2038 > issue. We need to add two dozen of system calls to > solve Y2038 issue. So this patch series will help to > add new system calls easily by adding new entry in > the syscall.tbl. > > Changes since v2: > - fixed __NR_syscalls assign issue. > > Changes since v1: > - optimized/updated the syscall table generation > scripts. > - fixed all mixed indentation issues in syscall.tbl. > - added "comments" in syscall_*.tbl. > - changed from generic-y to generated-y in Kbuild. > > Firoz Khan (6): > mips: add __NR_syscalls along with __NR_Linux_syscalls > mips: remove unused macros > mips: add +1 to __NR_syscalls in uapi header > mips: remove syscall table entries > mips: add system call table generation support > mips: generate uapi header and system call table files Could you review this patch series. I would appreciate if you can perform the boot test on the actual platform. Thanks Firoz > > arch/mips/Makefile | 3 + > arch/mips/include/asm/Kbuild | 4 + > arch/mips/include/asm/unistd.h | 8 - > arch/mips/include/uapi/asm/Kbuild | 6 + > arch/mips/include/uapi/asm/unistd.h | 1065 +---------------------------- > arch/mips/kernel/Makefile | 2 +- > arch/mips/kernel/ftrace.c | 8 +- > arch/mips/kernel/scall32-o32.S | 391 +---------- > arch/mips/kernel/scall64-64.S | 444 ------------ > arch/mips/kernel/scall64-n32.S | 341 +-------- > arch/mips/kernel/scall64-n64.S | 117 ++++ > arch/mips/kernel/scall64-o32.S | 379 +--------- > arch/mips/kernel/syscalls/Makefile | 96 +++ > arch/mips/kernel/syscalls/syscall_n32.tbl | 343 ++++++++++ > arch/mips/kernel/syscalls/syscall_n64.tbl | 339 +++++++++ > arch/mips/kernel/syscalls/syscall_o32.tbl | 382 +++++++++++ > arch/mips/kernel/syscalls/syscallhdr.sh | 36 + > arch/mips/kernel/syscalls/syscallnr.sh | 30 + > arch/mips/kernel/syscalls/syscalltbl.sh | 36 + > 19 files changed, 1430 insertions(+), 2600 deletions(-) > delete mode 100644 arch/mips/kernel/scall64-64.S > create mode 100644 arch/mips/kernel/scall64-n64.S > create mode 100644 arch/mips/kernel/syscalls/Makefile > create mode 100644 arch/mips/kernel/syscalls/syscall_n32.tbl > create mode 100644 arch/mips/kernel/syscalls/syscall_n64.tbl > create mode 100644 arch/mips/kernel/syscalls/syscall_o32.tbl > create mode 100644 arch/mips/kernel/syscalls/syscallhdr.sh > create mode 100644 arch/mips/kernel/syscalls/syscallnr.sh > create mode 100644 arch/mips/kernel/syscalls/syscalltbl.sh > > -- > 1.9.1 >