Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4579238ybg; Tue, 29 Oct 2019 09:13:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLR8Qgm9P5qaChX9aw1E7G2i2HsHRZhdh4R+pJ/skPE7WV2Z3e+y0kCb6jACwJvn31xIG0 X-Received: by 2002:a17:906:27ce:: with SMTP id k14mr4126999ejc.72.1572365626534; Tue, 29 Oct 2019 09:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572365626; cv=none; d=google.com; s=arc-20160816; b=J36UOMP4XkFpkgqJCf5+4lBB0i5XF9v0j6uo5LJZbSBlHJXzqvGhQaa0uno2dXzi+h aIDqz/vck6GPbaYVIp711zmSil5AUATM0SnpDfu1eZT0+M8E4r3mB100lv3K9PijVV5i 1qwzPM3Qxf5or+N4apNR5CWs3Z+UGPC8pyrOCTg+1N0E/iPtsMBZUvZg0m5YwuujLim4 tLsjOFp5KaaxZUgnsPm6BBrOOHe2kpuACUbNpvdH9PO85O6yc4COFCPnnGJbSb3BM5Sd iO30JJzUNa44lrK1CFUAXqa8CUMRl1/KFYNq55AXDze3Z9jkC3cpl+zorPqlu20PNROe Iq0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=tYE4s7/uuajXlCR0ChE0EZH9O5AUjNkXcOLUIcjs8NY=; b=fj0KIpMIDX/lMvII57CO2bbDSSWm9S+8btlYyZKmG39BK3z8LGIz2iK7RCfmgCRtXX 6hDRQlJqqOGNT1olsPOF+ejgNXO4viWdzqPesoaAIEAKlLNJRJKZnDOAS/Xchnbrritz ZkmavxT9uhlkL4J2YdpNCLW6fHoEBQiJl0QjU2LBX77VyjWIb5o+U7RGgiNR9kyjdqp+ WpCtQU1jrdFq35JRxekN5/Oq1yyoGdtaq1eBiibTZOr3anjwcRVI2J2UgErnm6zwpYXw t1CJ3A1EYI9x4m9fOElCiJ3jDT5m8Mfmp42mNnx7j7JE2Hd9RyDxlwZ2l1tfNfh01lpk ikfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=TpSeXOFU; 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 k63si11004407edc.347.2019.10.29.09.12.58; Tue, 29 Oct 2019 09:13:46 -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=@c-s.fr header.s=mail header.b=TpSeXOFU; 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 S2390341AbfJ2QKa (ORCPT + 99 others); Tue, 29 Oct 2019 12:10:30 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:17867 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390165AbfJ2QK3 (ORCPT ); Tue, 29 Oct 2019 12:10:29 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 472c4g1g6lz9v10P; Tue, 29 Oct 2019 17:10:27 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=TpSeXOFU; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id UpHV0XhQAQYQ; Tue, 29 Oct 2019 17:10:27 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 472c4g0Tzcz9v10L; Tue, 29 Oct 2019 17:10:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1572365427; bh=tYE4s7/uuajXlCR0ChE0EZH9O5AUjNkXcOLUIcjs8NY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=TpSeXOFUE6NM+JYOdlv64UW/+4WUPFrGoh6k/O+xW8QDuERdgv/D7VGAmufQO+FN1 fIXCp5L6bMBYoYiAfV/u7tcK2KH038p2p1K3CJmCtNvTTH7ywxZIjUCdosgqOj4iTS MwKfe1IXwrU0ed97mqGh403IgJyyisv4QNCd1O+s= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 96B7E8B86F; Tue, 29 Oct 2019 17:10:28 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 7udaYobtxUaO; Tue, 29 Oct 2019 17:10:28 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 35F7F8B86A; Tue, 29 Oct 2019 17:10:28 +0100 (CET) Subject: Re: [PATCH v2 1/8] powerpc/32: Add VDSO version of getcpu To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <27d699092118ee8d21741c08a6ff7e4c65effdf2.1566491310.git.christophe.leroy@c-s.fr> <87h85aw3r9.fsf@mpe.ellerman.id.au> From: Christophe Leroy Message-ID: <5088c94c-3c80-0799-08a2-f1d53b95380b@c-s.fr> Date: Tue, 29 Oct 2019 17:10:28 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <87h85aw3r9.fsf@mpe.ellerman.id.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 18/09/2019 à 07:51, Michael Ellerman a écrit : > > We are still in the middle of the years long process of removing the > "magic" syscall on 64-bit: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/kernel/exceptions-64s.S?commit=4d856f72c10ecb060868ed10ff1b1453943fc6c8#n1578 > > > Can we not add another one on 32-bit? > > Is it really such a fast path that it's worth putting a wart in the > syscall entry like that? > > Is there some other method? On s390 they have a per-cpu VDSO page, that > would be a nice option. How we do that would be specific to a particular > MMU, and maybe not even possible with some MMUs. So maybe that's not > feasible. Ok, for now I remove the fast syscall and only keep the VDSO getcpu() for non SMP. I think we may in the future implement a per-cpu VDSO page that will be mapped to the process based on the CPU it is running on. I need to look at that in more details. Christophe