Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3007682imm; Mon, 24 Sep 2018 14:00:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV60w0Y0NBvFaptOPhO21GuLm6KlH/OPRa69b3Oh6oCb3pW2r8oy+bOyd82lBOZQaRNkLXaZN X-Received: by 2002:a63:ee56:: with SMTP id n22-v6mr452301pgk.402.1537822838956; Mon, 24 Sep 2018 14:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537822838; cv=none; d=google.com; s=arc-20160816; b=O3HAngOUvLs4iU+K2a2/tmJn9JOGsmcjMFOj5ILkJGIjSWQYjdLJawwY6FuxS3vW3b fSLR9s+9rDGujTYJY4uyyzX6S9c4sXM1rp13ZbJrcSr+K04EUb9D56YeJDOlVQeoCwDb bmDfwuJYDMai4Xf/dbxFjWevYWB8mNkHaQRlUq5s9lO2x+W5nHwUwSqy34kXz7a7dEEA xOWp9iSfnL/PoS7yeJsGimIxxf7ywxxCaimAxXgC7zPKt+vbIOCjHObdEx26Ij9EFTrx sFE27eOzrAcQrTOOnfBDadiG1JmkSKSEaV/+UJYgbauT+cfAvcvsYuL/1Gyw4vpY6S29 wRZA== 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=ZohGzcrTiBsTOwa+P4pwEo79Dicf7FpF4YEBL2IJEUU=; b=RQir07cMN8L/6OFimicp+YR1PzWwgZoX/frD3X0Wuw5y3U+QTu4iSJ2x+xHrV2Z7Xt gyiLgvfij7lm/6TIPj7uuvZk03jYaq/AV7NI/IeOZ5z/y6n14ewXY/ekM/laqAEIopZ2 xRKus644+c3CWRtxq5AQ32+QWGFFhgiSj/sb7YAHIosHkZd98b4eD/2L/eHEKhj/E/hE EpGPRazFc6TdZLYe8RpkvZ62KlcVsMrr48OyJcN5xZrbX9HKlwAX7IJS2d6DvslbcMT1 y9u2UpEdRK5NFSeFdjdsVF9OdyBMFPF8EQa+sd7QHgHrk7vXlRMNxwjsF0NKO4AFq1Y8 0Ung== 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 g26-v6si355235pgb.349.2018.09.24.14.00.22; Mon, 24 Sep 2018 14:00:38 -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 S1727830AbeIYDEW (ORCPT + 99 others); Mon, 24 Sep 2018 23:04:22 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:45542 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727057AbeIYDEV (ORCPT ); Mon, 24 Sep 2018 23:04:21 -0400 Received: by mail-qt1-f193.google.com with SMTP id l2-v6so11083355qtr.12; Mon, 24 Sep 2018 14:00:16 -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=ZohGzcrTiBsTOwa+P4pwEo79Dicf7FpF4YEBL2IJEUU=; b=XY00VzyQF5qSTV7daN9qVf/SLaxDvrxGLQJet3JKDv1splPDhKdYFnKbFGBfUG+T6L xIY51KINIvNUsIUG2Y0PpXQkHw8o85EjzHBHJm+Q1XfklimcGUlNbtXLZbYbePwciEP3 2igUIt3WVrWoDh3vB6ybgt5LMIfGYLUMtbDvJDKJQfUdxNHJS5htPfl43LcwuA4klqdK cdb0Kh3KY52qRRJauXe1LSxQLC9HOYA1zHarjtjwsjY7+pr3t6mZP8MS/p/9qeJrlhiN 3BNE7WoeG5gTQHrgXq979Ukzvxog/RFjSux7RNQY3jlakcHXlRRCWdWckPuWkpkd/8Ev Jljg== X-Gm-Message-State: ABuFfoh3VS6u48BEGTBsznmAZMkHMMNpDG7YXwzQczOWWcmkflWxWo/A yaTOWKw6pgZNlP1cGS6r3ahCdJXi6SxcU4/rvrw= X-Received: by 2002:a0c:8834:: with SMTP id 49-v6mr550962qvl.40.1537822815934; Mon, 24 Sep 2018 14:00:15 -0700 (PDT) MIME-Version: 1.0 References: <1536913980-4811-1-git-send-email-firoz.khan@linaro.org> <1536913980-4811-3-git-send-email-firoz.khan@linaro.org> In-Reply-To: From: Arnd Bergmann Date: Mon, 24 Sep 2018 22:59:59 +0200 Message-ID: Subject: Re: [PATCH 2/3] powerpc: Add system call table generation support To: Firoz Khan Cc: linuxppc-dev , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxram@us.ibm.com, leitao@debian.org, Boqun Feng , 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 Tue, Sep 18, 2018 at 2:15 PM Firoz Khan wrote: > > On 14 September 2018 at 15:31, Arnd Bergmann wrote: > > On Fri, Sep 14, 2018 at 10:33 AM Firoz Khan wrote: > > > >> --- > >> arch/powerpc/kernel/syscalls/Makefile | 51 ++++ > >> arch/powerpc/kernel/syscalls/syscall_32.tbl | 378 ++++++++++++++++++++++++++++ > >> arch/powerpc/kernel/syscalls/syscall_64.tbl | 372 +++++++++++++++++++++++++++ > >> arch/powerpc/kernel/syscalls/syscallhdr.sh | 37 +++ > >> arch/powerpc/kernel/syscalls/syscalltbl.sh | 38 +++ > > > > I think you should only need a single .tbl input file here. > > Yes, we can do that way also.As I mentioned, it will add > more complexity in the script. > > The script has to be smart enough to parse the > .tbl if we add more thing in the .tble file. It need more > logic in the scripts. This is not common. So if you keep > separate .tbl we can avoid this. But all three existing architectures (x86, s390 and arm) already have the capability to parse the table and generate different output from that. > ABI flag is serving *nothing* in all other architecture including > SPARC. If you don't use it in sparc, I think that's a bug, see e.g. #ifdef __32bit_syscall_numbers__ #define __NR_setresuid32 108 /* Linux Specific, sigvec under SunOS */ #else #define __NR_setresuid 108 /* Linux Specific, sigvec under SunOS */ #endif > But as I told in the cover letter, I followed x86/arm/ > s390 architecture's system table generation implementation. > They are keeping ABI flag. In our case we can delete this > flag completely from all architectures. > > Most of the architecture these 32/64 similarity is absent. > So it would be better keep separate files to maintain a > generic script across all architecture. There are a couple of architectures that definitely need it: ARM for oabi, x86 for x32, s390, parisc and sparc for compat, asm-generic for compat, powerpc for compat and spu, and arm64 if we want to share the arm32 syscall table for compat mode later. Arnd