Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2208062imu; Thu, 29 Nov 2018 00:59:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uihcu+20wXMwp4tGHvYVGPdOh4QrG35OZxxebMHxL4c+zndOc8UhaFHPf52swrXmmh8bZ7 X-Received: by 2002:a17:902:d697:: with SMTP id v23mr595899ply.261.1543481986146; Thu, 29 Nov 2018 00:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543481986; cv=none; d=google.com; s=arc-20160816; b=mhpElMq6/lAle5qdyi5Ae06WUIPFv7tlQIV0T2+YE0QA7q2Iszx13xmkxRcow5lpg2 m7G7iAWdp0h4VGDJrTcqbVS2daO+htWv+SAqTBgUIvaPGLezs9BgN02zTqzMTkBxmwXM nY3LSsFWMQUAhrMD77Tz9nR/bpvTnxAirI5h9zE1zlkes0/Lu/XcSb5G0yimCuAJ/pHZ mktddIfK+3+Em94n0KPK89pfy/KNktzVzbyqr61y5JxEdbNxBA7SLSssA7S8mFT13bmo boSQVG3X6lmLD7iClqcMd3jpptQAZxRkQMd2lLdSeC96wANb16OqeSSppne/trOsvHPq 9LsQ== 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=oAy6oYWLLsvR/uh2rWMxT22Wr2gvtTAfEiRU4+Hmd9M=; b=mWaqEVdhodflID04nKBl7JHAqLhuaVbBnO1ES0Rmqshe4FneFPa81G88UcEK+t1mes WHyFGusqQwLtN1e4rZ9wJW2PcQWQTZ37xuMs3vNM/B3wv8964Yrdmppyv7by6qIqzjSg MGemGgMsOpoLntTG2DG8bAc9KrKYkDjIyxKjjMLuJ3/bb5OX3p1w5I/dPIInk4zsxO48 +YZgZrJWLcZYjxkuDZEys3Ch5fhfKPDBMaBTzeoi4VupiZ917iV23CXzPSMBqr7Kx8SE O9aAibRTLO/rk4syHy9IGqPrF/pWE7GqD31JhsZ9sqYdWo/B4ej0sQElMnP3UyCi95Hx XwjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PsEkL5eM; 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 p19si1380500pgj.375.2018.11.29.00.59.31; Thu, 29 Nov 2018 00:59:46 -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=PsEkL5eM; 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 S1727018AbeK2UCj (ORCPT + 99 others); Thu, 29 Nov 2018 15:02:39 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:35052 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbeK2UCj (ORCPT ); Thu, 29 Nov 2018 15:02:39 -0500 Received: by mail-io1-f67.google.com with SMTP id u19so965401ioc.2 for ; Thu, 29 Nov 2018 00:58:00 -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=oAy6oYWLLsvR/uh2rWMxT22Wr2gvtTAfEiRU4+Hmd9M=; b=PsEkL5eM+KaTcysGFBKsjShY4Uy4IyqJaJfJqJ2IRDQZ6UqnGDGQ/zk4G6Q+gvWukb //bGxuK02ZRQDsYRhLcFT3v3XN6YNIa4sIUGh9aRt8tfiiF/j6XTF8p9129kCG4G7cvv KZuddgloQTFXErxieOtTNTNVKA9g5Mfz+ywPQ= 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=oAy6oYWLLsvR/uh2rWMxT22Wr2gvtTAfEiRU4+Hmd9M=; b=Z9GHThjJhbPqTd2/RfrdlN3cV6Nrtj2RksALRCBBkJ7Zv410VsmJ1THvaPy+i2vXT0 BbUl2Yn1uFAnGjDdsOFiioRFmU9JLCR+GLGG9OxgU/CVbOTrvq9oysA2R6WEb1KgDWYf 6e2LnAzrr9eBJIxkci3SrPkwD0c30zgOUV4+oHusokSlJi8uiZWDco7zGocjVYuXi2i+ QKROTKjb4ITfhjUVKxDCuYTLlq7eCAExa0FgS0Dv0sfcvlgCB7Z91BkQLjDp9uYebEGB ju5ygztCGqEs5H4Z4fv12ALSSjFX2P0WJe8QQNJ6m7mFmWAHlCLt4Qk7d/OvQhkCAeYc xvXg== X-Gm-Message-State: AA+aEWaLYBDqtVWc+a4bQM/p3tSuWaHdsnOkKLBn73q1G4XZ6hksjPc1 iyV6yl4vogLVi3nxOdekfDEX5/DuxmZsiHxsigsl4A== X-Received: by 2002:a6b:6919:: with SMTP id e25mr436564ioc.119.1543481880086; Thu, 29 Nov 2018 00:58:00 -0800 (PST) MIME-Version: 1.0 References: <1543465611-17122-1-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1543465611-17122-1-git-send-email-firoz.khan@linaro.org> From: Firoz Khan Date: Thu, 29 Nov 2018 14:27:48 +0530 Message-ID: Subject: Re: [PATCH v3 0/4] powerpc: system call table generation support To: linuxppc-dev , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Arnd Bergmann , Geert Uytterhoeven , Ram Pai , Mathieu Desnoyers , Breno Leitao , Boqun Feng , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , sathnaga@linux.vnet.ibm.com Cc: 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 ++ sathnaga@linux.vnet.ibm.com On Thu, 29 Nov 2018 at 09:57, 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. > - spu 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, mips, parisc, 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: > - modified/optimized the syscall.tbl to avoid duplicate > for the spu entries. > - updated the syscalltbl.sh to meet the above point. > > 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 (4): > powerpc: add __NR_syscalls along with NR_syscalls > powerpc: move macro definition from asm/systbl.h > powerpc: add system call table generation support > powerpc: generate uapi header and system call table files > > arch/powerpc/Makefile | 3 + > arch/powerpc/include/asm/Kbuild | 4 + > arch/powerpc/include/asm/systbl.h | 396 -------------------------- > arch/powerpc/include/asm/unistd.h | 3 +- > arch/powerpc/include/uapi/asm/Kbuild | 2 + > arch/powerpc/include/uapi/asm/unistd.h | 389 +------------------------ > arch/powerpc/kernel/Makefile | 10 - > arch/powerpc/kernel/syscalls/Makefile | 63 ++++ > arch/powerpc/kernel/syscalls/syscall.tbl | 427 ++++++++++++++++++++++++++++ > arch/powerpc/kernel/syscalls/syscallhdr.sh | 36 +++ > arch/powerpc/kernel/syscalls/syscalltbl.sh | 36 +++ > arch/powerpc/kernel/systbl.S | 37 +-- > arch/powerpc/kernel/systbl_chk.c | 60 ---- > arch/powerpc/platforms/cell/spu_callbacks.c | 17 +- > 14 files changed, 591 insertions(+), 892 deletions(-) > delete mode 100644 arch/powerpc/include/asm/systbl.h > create mode 100644 arch/powerpc/kernel/syscalls/Makefile > create mode 100644 arch/powerpc/kernel/syscalls/syscall.tbl > create mode 100644 arch/powerpc/kernel/syscalls/syscallhdr.sh > create mode 100644 arch/powerpc/kernel/syscalls/syscalltbl.sh > delete mode 100644 arch/powerpc/kernel/systbl_chk.c > > -- > 1.9.1 >