Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4728863imm; Tue, 9 Oct 2018 04:29:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV600/1rfZTf1Rq9jrYuy+YFjB3QTcZFnX93jv5cQY+K1/tAHMCWJ1gSWoAkhd0sA332/BFPl X-Received: by 2002:a17:902:8c90:: with SMTP id t16-v6mr27606697plo.251.1539084548759; Tue, 09 Oct 2018 04:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539084548; cv=none; d=google.com; s=arc-20160816; b=VDTb5STA2GjfDDimCXCPJMdUKtR1WP50HVqE/oB3fiV4oPwj7s8pGEzdWcrGlt5Y7H MNH8SPIuJ2h9sn9FdxTnsJTjFJ51r3etq9+dUzNQ2n6dsibvfzVrEkQR1P6KJqWaqprR NaWalQ7wdUSX7Hb6G1/ab3TnZgY4F6N2ltBvzW6aJlYbdcBPejHIpXj6+0ssPiTvd4Ej hzjFuHZuK3HHWGZt5b8aMldCfAVwh+0AbkD+QnVd6ggUehgsGFwFV3sliGZcwiUnMQGK a/cq13BWQpgaOmhpvjXXEeKsWP1Gjy10PFJCouy7FTqyVosUCdY62kzXbyGm3ilyIzMd kx9Q== 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=cPJvOQ+K4pbyPlAR84m0ZeslowgA22uBTgQXusuWas8=; b=w7NiO6Khen48FNANU34AKqwkhviaMNwGARQwHjZHBkycYz6P9GiLRNFAd8J4fNuLSD YIvfrePsbL3sncHlCEPtZhHohXby0vihm5KB4ku6Pas9hL0c2lOg/2EaFqOj63j1WM3d AE1sPWgVwHg4cik56SgoOmsJ3IXddBfK7Dh0jMaCfq6aJBMvl95XwP5IYm/RvSr5mgq4 jNXTh15xoQL5wo4rab5iX5VUxzQMASHkomti0qbgWvEnGc7Akpn/Ptj9h2UmG2C0LtkH HfSQDNJeyQ2zRDZ+mCSQbx7CGAJWI7gmlroTUbEwWujO1npy3dMjFLg5TGv7aa3zm6u5 MD8Q== 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 go1si20731992plb.242.2018.10.09.04.28.54; Tue, 09 Oct 2018 04:29:08 -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 S1726496AbeJISpE (ORCPT + 99 others); Tue, 9 Oct 2018 14:45:04 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:47063 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726103AbeJISpD (ORCPT ); Tue, 9 Oct 2018 14:45:03 -0400 Received: by mail-qt1-f195.google.com with SMTP id d8-v6so1079207qtk.13; Tue, 09 Oct 2018 04:28:32 -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=cPJvOQ+K4pbyPlAR84m0ZeslowgA22uBTgQXusuWas8=; b=E7kROk8XlDwUlmq9tKYLdkUlc6NyHP5PANRljUmR3UPIfL3n7s5FweXDL9ZLd7HONL zTmiR35Wo69FlgdJodECAydbz1ocmmUoB6WARlI4KGTvd4xzVGClasrBHgGe1dd0Wx/3 eR8rXHA8NuU+A7ATKVgDY63ltcOqM10BY/yRMifkQa1B4dYlYqr+oK7kM8tOP5KjMbIv D4XXfdG9vzKVZo/V4BILMfm0enPgUWVlPszT7isON4vwum0x7UT0y/Q0yIsImAgm/M50 noj+uJX4klqvr0yKgBO0l4V8+D3Wgf23GfHMfnjKFWxoZ1Yn7KeUbRpJfdKjxG/k68b3 W+5g== X-Gm-Message-State: ABuFfojoiTIvBAndus42wW7ffa+Mt6ZMT2NB34qHv9xFYUaAZn+HWsBQ cxEoJ2BPqKaJrAaNF+ExWk4KE/xChHF/mxegmeM= X-Received: by 2002:aed:366a:: with SMTP id e97-v6mr23266932qtb.75.1539084511502; Tue, 09 Oct 2018 04:28:31 -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: Arnd Bergmann Date: Tue, 9 Oct 2018 13:28:14 +0200 Message-ID: Subject: Re: [PATCH v3 3/6] parisc: add system call table generation support To: Firoz Khan Cc: Eugene Syromiatnikov , Parisc List , "James E.J. Bottomley" , Helge Deller , Thomas Gleixner , gregkh , 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 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? Arnd