From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A51EEC43382 for ; Tue, 25 Sep 2018 12:25:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 39A7F2086B for ; Tue, 25 Sep 2018 12:25:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 39A7F2086B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729040AbeIYSc1 (ORCPT ); Tue, 25 Sep 2018 14:32:27 -0400 Received: from ozlabs.org ([203.11.71.1]:37655 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728582AbeIYSc1 (ORCPT ); Tue, 25 Sep 2018 14:32:27 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42KKyn2ct5z9s7T; Tue, 25 Sep 2018 22:25:05 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Arnd Bergmann Cc: Firoz Khan , linuxppc-dev , Benjamin Herrenschmidt , Paul Mackerras , 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 Subject: Re: [PATCH 2/3] powerpc: Add system call table generation support In-Reply-To: References: <1536913980-4811-1-git-send-email-firoz.khan@linaro.org> <1536913980-4811-3-git-send-email-firoz.khan@linaro.org> <87efdi5rm6.fsf@concordia.ellerman.id.au> Date: Tue, 25 Sep 2018 22:25:04 +1000 Message-ID: <878t3p4vdr.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > On Tue, Sep 25, 2018 at 2:48 AM Michael Ellerman wrote: >> Arnd Bergmann writes: >> > 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: >> > >> > But all three existing architectures (x86, s390 and arm) already >> > have the capability to parse the table and generate different output >> > from that. >> >> Yeah, we want that on powerpc too. >> >> If the script needs to be more complex that's fine, if it can't be >> shared across arches that's fine, the main thing for me is that wiring >> up a syscall can be done by adding a single line in a single file. > > Yes, that's definitely the idea, we want to make it easier for everyone. > We need at least a special case for mips, which needs three separate > input files (the tables are completely different) to generate four versions > of the output, plus a future extension to use the generic table for their > new one. > > For powerpc, I'm hoping that both the table format and script can be > completely generic and not need a special case that is different > from the others, but if we need some extra magic to handle the SPU > syscalls, we can still do that with a private script. Sounds good. cheers