Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5152592imm; Tue, 18 Sep 2018 05:17:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbpOuqofvkX9Y6IgiL0juMCZWknhwqVVgxv5HZ5Fz3YJ06aGhECpNRg9TvCh2cx0aBJ12Os X-Received: by 2002:a17:902:a987:: with SMTP id bh7-v6mr29798101plb.182.1537273051738; Tue, 18 Sep 2018 05:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537273051; cv=none; d=google.com; s=arc-20160816; b=sDscv/vU8r7AkRPLltXIaHp/XRRFdyIx+C3V3BJYJMuGfJksZF1bzYj3FnaFYwd8nF ISUZTsPD38GZkNwCcxcyGvv+7iccJSRc66U+dQQvKmQRA+2W8+VLatwIChot8/IK8uuV G5U2h7cp8U+Uoy9bb6RJuN6WgdGNvp1EWx5GlKFqG4jzx7BdqwNaoWFQ1wX29NWFNl9A sGThCIN3z2LNoGZl4uUO+GFPOIgm6Vh/T/RzESyMSYyM0+adv/deis8QcfbuMD2O0JtX TREekv6BA/P+cTlWZyPadfwfhuQeyX9ebUdzVl4bRDa+haY12XOtLFK6sepnhJQTj9Yz M6SQ== 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 :references:in-reply-to:mime-version:dkim-signature; bh=oojYhBLBUuSv9+HnDBLox3Yi8H1bXUnifpxXZNqN/9c=; b=SY1DQeBOgyqWjxQh68HGWgQtirO8IwMt+87z5g2ki9HFyQzq5pQbMl4186J+FWrMaX 4L4Sef2Vq82rJnvdM3Msc2gmLR55W+kTxu6WoBo8vP/usUS+jZ5FoobQAwqLaiD5q56g 97cLVjEdIecg+SqocFIoM5Igzz8Pl080hDYRL9HKyboLTBCFzDKZdSmHR+gxyAoM0NUJ Kgn978BauQhw76kdosBjXpkE1A/KcJCywIkmjE7XiK0lDzW+syGqFfADT23sEmohyADW 3JXv0huD/nwIteJoS8kp5IhEjaNSoU8gHlHAiqUhPxQZAR7AWbM5jnphpaDdyWFuvFAk OdHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cNcAFNVo; 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 n24-v6si18042559pgj.14.2018.09.18.05.17.16; Tue, 18 Sep 2018 05:17:31 -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=pass header.i=@linaro.org header.s=google header.b=cNcAFNVo; 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 S1729587AbeIRRrx (ORCPT + 99 others); Tue, 18 Sep 2018 13:47:53 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:34625 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728681AbeIRRrw (ORCPT ); Tue, 18 Sep 2018 13:47:52 -0400 Received: by mail-yw1-f67.google.com with SMTP id y134-v6so671506ywg.1 for ; Tue, 18 Sep 2018 05:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oojYhBLBUuSv9+HnDBLox3Yi8H1bXUnifpxXZNqN/9c=; b=cNcAFNVoq/SNbhlWMk4grfPasBGRXROV30aEBpIiaZ7kM789uJQT+WqLgMZONhbOT0 EvXWV4WaNhecwDZhwWgweUoFFThzGIKpN+CjCGAQGXSHP3Rx8QHliBuoDX3eI+iGO7P0 IbF4aFEzpHvs+92xxDwXmiZzuPW8W2oUvI/BI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oojYhBLBUuSv9+HnDBLox3Yi8H1bXUnifpxXZNqN/9c=; b=coUa9Rqyx9rDfHo+ZJiCMLLrroNY7UBNm6X1UDjXpwQ6MQsx0nIEfXaOZK913UVLEE nxZN6pMCXO2xFFjKrnIdbIM/c77/uM9houQzJyN1PbFrgMQtBQl3CB6HmaAJin4AIfkl I0hD+cfIz9iWhjLdNVdOGNrafD6A2BhxlMEKiSq49CiOpDpSkcmKbf8+ZpS2VRgo9aZA nQ8NjtRHBXWtjhRID7PV+sWP6+Rci7HadxQdUqHWp4r0Z2Qvr892AeJynoewqqjcObST n6QXLsoTc1zHybitKxFhrasIr9nJbdPwZ38dUJ7spwNiWCL9zXYHyNFDdRywbo7S/JQL c2jw== X-Gm-Message-State: APzg51Dsqf5Gv5oQVK89Ddt30Cgj0ClY8GXcgU0qLuBXMPLTcfXQffqb 52AtlZ/DJ2nYlRzXzKnc03m+HLuC7LG/4ZZh+r66xA== X-Received: by 2002:a81:1b82:: with SMTP id b124-v6mr12486389ywb.381.1537272932724; Tue, 18 Sep 2018 05:15:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0d:cc4f:0:0:0:0:0 with HTTP; Tue, 18 Sep 2018 05:15:32 -0700 (PDT) In-Reply-To: References: <1536913980-4811-1-git-send-email-firoz.khan@linaro.org> <1536913980-4811-3-git-send-email-firoz.khan@linaro.org> From: Firoz Khan Date: Tue, 18 Sep 2018 17:45:32 +0530 Message-ID: Subject: Re: [PATCH 2/3] powerpc: Add system call table generation support To: Arnd Bergmann Cc: linuxppc-dev , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Ram Pai , Breno Leitao , 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 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. ABI flag is serving *nothing* in all other architecture including SPARC. 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. > > >> + >> +systbl_abi_syscall_table_32 := 32 >> +$(out)/syscall_table_32.h: $(syscall32) $(systbl) >> + $(call if_changed,systbl) >> + >> +systbl_abi_syscall_table_64 := 64 >> +$(out)/syscall_table_64.h: $(syscall64) $(systbl) >> + $(call if_changed,systbl) >> + >> +systbl_abi_syscall_table_c32 := c32 >> +$(out)/syscall_table_c32.h: $(syscall32) $(systbl) >> + $(call if_changed,systbl) > > And here you need a fourth output file for the SPU table on ppc64. Hmm. Let me have a look where things went wrong. > >> +383 common statx sys_statx >> +384 common pkey_alloc sys_pkey_alloc >> +385 common pkey_free sys_pkey_free >> +386 common pkey_mprotect sys_pkey_mprotect > > This also misses rseq and io_pgetevents. As I mentioned in the cover letter: "I started working system call table generation on 4.17-rc1. I used marcin's script - https://github.com/hrw/syscalls-table to generate the syscall.tbl file. And this will be the input to the system call table generation script. But there are couple system call got add in the latest rc release. If run Marcin's script on latest release, It will generate a new syscall.tbl. But I still use the old file - syscall.tbl and once all review got over I'll update syscall.tbl alone w.r.to the tip of the kernel. The impact of this thing, few of the system call won't work." Hopefully, the next version does have this change. Thanks! - Firoz