Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4923946imm; Tue, 9 Oct 2018 07:13:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV62wAEqcCf17wB3A6YZjzJ4DAYWfdsQeS05lWzDFMRZ6zRwvhfk6Pg2c3pF9p/I5l5+TdvuC X-Received: by 2002:a65:5c81:: with SMTP id a1-v6mr21513394pgt.390.1539094387053; Tue, 09 Oct 2018 07:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539094387; cv=none; d=google.com; s=arc-20160816; b=NahX0A/0jM86TZkIuS5Gw8uMuX81B/3ODJYiyamSJaPTTaobbeCWGM59T8KUyb643v yoPnD9djrbBw615nUsoeDccZMYZ3AHcsZyKQ09mcUr359EOf1Z9MFfoy8ki8fvHXUTjZ W/9ErOcY4+B+2lh8mvo04j5/ADT0YwJoku8naYna6fEpApbAqLiyi5yL7N5MSEpKdp+U NURCZb9F9sx/OwHUd7cIskElMvEt7EC4voIJBW0ZjBeD2IoEj5O6fBRMKL6PAGj0Og00 jjCIsqBjAtzkTMhzxN42N33HCsTyXz5faaWaGpMrrggQBSNdAxKtejQ9kKMyqfP+d22L HvIw== 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=raC50H3i6Rq/gAHAxqx/HZulacRGFaQbhcZ8FwelmBA=; b=X8ypX4EhCEaIhYH6s5dcz/IktAKLxaxDEO37ym9QJW7L3CRtsCAe8a8QiBGd+PjCnA 8WKWcuVeIaNjqUIbuMP46oJhVOwfP1mtznZXZu9GU5XdmjfirVsjPqFwAcSVrIdJYJHp TReYJ2r3cU4TyKWqQktGxSTtKEv891zkg3EpXb1ZLDctW25qwyCBtaywL+EwHsTj9v6G 3JA/c7YLtBdteWyiNmAZ9ZHjsqLpZIFQxkIUuvsl2ISjDiL/F7qFgiUn2KrDKjW9c7WJ Rg+KO8fvGN3Bjf+JQcs2q2hPj2NkwsW6yiyMQk7nk7P4i1S03y4M8xtjfiF18G0+kPt4 4tgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PvwUgA8h; 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 y72-v6si20265053pgd.200.2018.10.09.07.12.50; Tue, 09 Oct 2018 07:13:07 -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=PvwUgA8h; 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 S1726795AbeJIV2M (ORCPT + 99 others); Tue, 9 Oct 2018 17:28:12 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:44273 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726523AbeJIV2M (ORCPT ); Tue, 9 Oct 2018 17:28:12 -0400 Received: by mail-yb1-f195.google.com with SMTP id x5-v6so670917ybl.11 for ; Tue, 09 Oct 2018 07:11:03 -0700 (PDT) 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=raC50H3i6Rq/gAHAxqx/HZulacRGFaQbhcZ8FwelmBA=; b=PvwUgA8hjzgwUOXWCcgbPsVl9pWZA9gZV8ulJi7VJNLX6dhl7qaXUw0WbwO11kla+w ixjfYfvtW7rOXT3lMEkPiH0Q37rAtD7yqJGHv8eQOwnD031i60qQWdeZOlWqJnKay/tL pobTNJzxRqalWXHPOhRTuWVAf8Om8JmBgdoHA= 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=raC50H3i6Rq/gAHAxqx/HZulacRGFaQbhcZ8FwelmBA=; b=B87M4Ofa49v5Aqo7Bbi87y0eNr3O2DzZVjwqm8r26zP9gfaH1y5p+rOXDTJIZsrVvY inC/JpX1W9icgU0PrY3/VfOup2OkkQwXvMeFBqubuI3wtM6Z2WxR4kpnd7dvHgHTJVur VqGQmQrmZqusDAqtkER3f+p0wKVrlffiaxgj9WtuKRV3bMy9zkGNIMahj3vbB1pxH8B7 G4XwbsM2zFbNHcRaNLXdWTdpb5/G5yzDRoQw019NzK3ikpt6uHp6fzByxr6KpB7R99ix a21gxi/3IzLu3Nifyr7fgwQZL397R9eGLugCYPuXtLQ6eOm3//pq/1IGjwMbpF53aeHU hl2w== X-Gm-Message-State: ABuFfojrl8pRVBY/f0JUdE1RrwA920ycE58dWbWjoYTbXH6/WcuyZ6sV sktQ3GqLUDCYkMPGO52fFUVo8vP/sqRWKLPSEkyylA== X-Received: by 2002:a25:b127:: with SMTP id g39-v6mr7812921ybj.483.1539094262749; Tue, 09 Oct 2018 07:11:02 -0700 (PDT) MIME-Version: 1.0 References: <1538975801-13735-1-git-send-email-firoz.khan@linaro.org> <1538975801-13735-4-git-send-email-firoz.khan@linaro.org> <20181008130301.GM32759@asgard.redhat.com> In-Reply-To: From: Firoz Khan Date: Tue, 9 Oct 2018 19:40:46 +0530 Message-ID: Subject: Re: [PATCH v3 3/6] parisc: add system call table generation support To: Arnd Bergmann Cc: esyr@redhat.com, linux-parisc@vger.kernel.org, "James E . J . Bottomley" , Helge Deller , Thomas Gleixner , Greg Kroah-Hartman , Philippe Ombredanne , 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 Hi Arnd, On Tue, 9 Oct 2018 at 16:58, Arnd Bergmann wrote: > > On Tue, Oct 9, 2018 at 11:36 AM Firoz Khan wrote: > > On Tue, 9 Oct 2018 at 13:18, Arnd Bergmann wrote: > > > On Tue, Oct 9, 2018 at 7:35 AM Firoz Khan wrote: > > > > On Mon, 8 Oct 2018 at 19:27, Arnd Bergmann wrote: > > Let me bring another example from powerpc: > > > > syscall_32.tbl, > > 136 common personality sys_personality > > ppc64_personality ---> 32-bit, compat (this is the current > > model which I implemented) > > syscall_64.tbl > > 136 common personality ppc64_personality > > ---> 64-bit > > > > I was wondering if the above table is right, how to arrange like parisc model? > > I think this should simply be > > 136 32 personality sys_personality ppc64_personality > 136 64 personality ppc64_personality > > Keeping the contents exactly the same as you have them > in the separate .tbl files, just merging the two files, and > splitting out the differences as 32/64 ABI. > > > FYI, there are some implement missing for SPU in powerpc > > > > For your reference: > > SYSX_SPU(sys_newfstatat,sys_fstatat64,sys_fstatat64) > > SYSX_SPU(ppc64_personality,ppc64_personality,sys_personality) > > This is a good question. The only difference between SPU and > native 64-bit is that some syscalls are not part of the SPU table > because those syscalls are impossible to implement on SPU. > > Maybe we can solve this by allowing multiple comma-separated > ABIs in the table. On powerpc, 'common' would then mean > '32-bit, 64-bit and spu', while you could have various other > combinations: > > /* always:32, 64 and SPU */ > 1 common exit sys_exit > > /* 32-bit only call */ > 76 32 getrlimit sys_old_getrlimit compat_sys_old_getrlimit > > /* 64-bit only, no SPU */ > 363 64 switch_endian sys_switch_endian > > /* 32-bit and 64-bit, no SPU */ > 198 32,64 pciconfig_read sys_pciconfig_read > > /* different pointers */ > 136 32 personality sys_personality ppc64_personality > 136 64,spu personality ppc64_personality > > Would that work for you? At this point, yes. V2 patches for powerpc on my pipeline. I can bring the above points when I start creating those patches. Thanks Firoz > > Arnd