Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1668972ybl; Fri, 30 Aug 2019 23:43:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyA6gdQsjSryA/sh06sn3eQZ0LJJcUrA+GDH9qnGGgmYe/LG3VaxtPUmrfCt+oBeTUntsBG X-Received: by 2002:a17:90a:f98e:: with SMTP id cq14mr2458263pjb.43.1567233791632; Fri, 30 Aug 2019 23:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567233791; cv=none; d=google.com; s=arc-20160816; b=rGOteJWQ1Ua2fZYUiPcKAS4oggLVN/vAIZIyypw638q6ex0LDe+3MzPmD06FTSSle/ WdSrkon7ev0B2aqWoABSE0aFMtBEnbaYjJQK0yHrV6MhJarbAL4q9Yg7xh9/kUCyHP1T ltQsobtk9qGLP33GkaBv4okPCSI0+usCr01jKWCZncUokqE0nuafSNt2DwzM5npZZvTZ PeuuAn/dwSgKsBoO+i27cq/EFcTupTN5H6ioPXzJFdAgb1ua+pmR+O8BS7x743mllcxH At946hi/QARj8JOD9pZTwNgV40j9UB0yZCbt+W6kZbToR97SZ+2zy5XJypTmP8zyxQgB j3nQ== 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=zW5mYP4+0uS4BEBirQHJjroaEWJlF/DljKcLUZMTdno=; b=L9EgQxZGZ6nRHqxahTwoYoTiJzNG1vp2G6tiC7FRurwiTs2zGBeKIFzkHKz80ZbcZL q0HgaqHiT7qyYDTm/n22Py9C2DusVDMVyIwztRMFFbQtvSeE1YdAhhyWYsDRDXJNhBY2 mHk5IoANj8t+dEJSmyhGcaFJRZNVpCYOeT6L0iHzPzTtItkKD6oSegg6vqHZuzFcpKr0 FcVUDAMU80dh69upfZBm8Ew5msXmdEUGVpH3HoQhWfpovp7Vk6hRa5mmJahi0hAn1XOR KyXTbC/MVsHn958QLCgO1tZp4xegf3+qtWnzXw6SZt6F2yqBiVaATXl/rhSzKVQOwFfX g1Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=DCHi8QuG; 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 q43si353921pjq.32.2019.08.30.23.42.55; Fri, 30 Aug 2019 23:43:11 -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=DCHi8QuG; 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 S1726195AbfHaGmD (ORCPT + 99 others); Sat, 31 Aug 2019 02:42:03 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:54173 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbfHaGmC (ORCPT ); Sat, 31 Aug 2019 02:42:02 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 46L6Fz3R1Wz9vBJj; Sat, 31 Aug 2019 08:41:59 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=DCHi8QuG; 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 EUBuxe25WhSh; Sat, 31 Aug 2019 08:41:59 +0200 (CEST) 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 46L6Fz28Hvz9vBJh; Sat, 31 Aug 2019 08:41:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1567233719; bh=zW5mYP4+0uS4BEBirQHJjroaEWJlF/DljKcLUZMTdno=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=DCHi8QuGDB2LhXKhnAaLLmBHnV7y6OfMLcVTw0wq+eNxie2ypG4H7KN9aBNy1TYH5 OM1Pn7gaehsWpVbo8x+c4c41xFw6vQeyLuL5lkaSdpMZfM3upnwB8+wtTLoL1stodo MOIjgbOAjurcrMwGpHKE5FVK1RJWWGsW6fi76zPs= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 542B98B7B5; Sat, 31 Aug 2019 08:42:00 +0200 (CEST) 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 32vOgj1NZJqz; Sat, 31 Aug 2019 08:42:00 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 02AE88B789; Sat, 31 Aug 2019 08:41:58 +0200 (CEST) Subject: Re: [PATCH v7 0/6] Disable compat cruft on ppc64le v7 To: Michal Suchanek , linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Alexander Viro , Nicholas Piggin , Breno Leitao , Arnd Bergmann , Heiko Carstens , Greg Kroah-Hartman , Firoz Khan , Thomas Gleixner , Joel Stanley , Hari Bathini , Michael Neuling , Andrew Donnellan , Russell Currey , Diana Craciun , "Eric W. Biederman" , David Hildenbrand , Allison Randal , Andrew Morton , Madhavan Srinivasan , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org References: From: Christophe Leroy Message-ID: Date: Sat, 31 Aug 2019 08:41:58 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: 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 30/08/2019 à 23:03, Michal Suchanek a écrit : > Less code means less bugs so add a knob to skip the compat stuff. I guess on PPC64 you have Gigabytes of memory and thousands of bogomips, hence you focus on bugs. My main focus usually is kernel size and performance, which makes this series interesting as well. Anyway, I was wondering, would it make sense (in a following series, not in this one) to make it buildable as a module, just like some of binfmt ? Christophe > > This is tested on ppc64le top of > > https://patchwork.ozlabs.org/cover/1153556/ > > Changes in v2: saner CONFIG_COMPAT ifdefs > Changes in v3: > - change llseek to 32bit instead of builing it unconditionally in fs > - clanup the makefile conditionals > - remove some ifdefs or convert to IS_DEFINED where possible > Changes in v4: > - cleanup is_32bit_task and current_is_64bit > - more makefile cleanup > Changes in v5: > - more current_is_64bit cleanup > - split off callchain.c 32bit and 64bit parts > Changes in v6: > - cleanup makefile after split > - consolidate read_user_stack_32 > - fix some checkpatch warnings > Changes in v7: > - add back __ARCH_WANT_SYS_LLSEEK to fix build with llseek > - remove leftover hunk > - add review tags > > Michal Suchanek (6): > powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro > powerpc: move common register copy functions from signal_32.c to > signal.c > powerpc/perf: consolidate read_user_stack_32 > powerpc/64: make buildable without CONFIG_COMPAT > powerpc/64: Make COMPAT user-selectable disabled on littleendian by > default. > powerpc/perf: split callchain.c by bitness > > arch/powerpc/Kconfig | 5 +- > arch/powerpc/include/asm/thread_info.h | 4 +- > arch/powerpc/include/asm/unistd.h | 1 + > arch/powerpc/kernel/Makefile | 7 +- > arch/powerpc/kernel/entry_64.S | 2 + > arch/powerpc/kernel/signal.c | 144 +++++++++- > arch/powerpc/kernel/signal_32.c | 140 --------- > arch/powerpc/kernel/syscall_64.c | 6 +- > arch/powerpc/kernel/vdso.c | 5 +- > arch/powerpc/perf/Makefile | 5 +- > arch/powerpc/perf/callchain.c | 377 +------------------------ > arch/powerpc/perf/callchain.h | 11 + > arch/powerpc/perf/callchain_32.c | 204 +++++++++++++ > arch/powerpc/perf/callchain_64.c | 185 ++++++++++++ > fs/read_write.c | 3 +- > 15 files changed, 566 insertions(+), 533 deletions(-) > create mode 100644 arch/powerpc/perf/callchain.h > create mode 100644 arch/powerpc/perf/callchain_32.c > create mode 100644 arch/powerpc/perf/callchain_64.c >