Received: by 10.223.185.116 with SMTP id b49csp764356wrg; Fri, 23 Feb 2018 06:29:57 -0800 (PST) X-Google-Smtp-Source: AH8x22796SuvctcglXhw8I8gRsMKSGHRRm2UHmUCRQw+qMsVvXdtvm5DIlIoyQdj7oS5WYbOFuPj X-Received: by 2002:a17:902:28e3:: with SMTP id f90-v6mr1894786plb.355.1519396197126; Fri, 23 Feb 2018 06:29:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519396197; cv=none; d=google.com; s=arc-20160816; b=l5FTsGtgUPhLZ7dHiw2cu5ZjNi3o5PLCJ357OYDxtxiOSd7oVLWfLIJLlWPhw/tjYF Jageo3FXjwXD7MFm27iAuoV3nxl9nVpGCnBO3inqhublDZLQq5NoP2Svh/CjigQRQnLF N+iDIisqk+ac3O50mb438a82MK+BjKkuuPFUGDK9+s/lY3Ky18XSwvVzoHVGC10Y8g3L PVMNF5J1uFnC17WlgavKlYtaHgG9Zn3fywxwf0SNkyJtHnW6MuFzTkPqrS90svE8nx1z OcWYpsdigS+Vno2GeWbXR2zW8cq9myp9wuKvKtaFymVQdY7t2eppomELz1HurcpOb01E w6ew== 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 :arc-authentication-results; bh=+kCqc0rylKmxzYEGvqp/cqMDX5O9XhhfdCbk+017BHg=; b=XcO/IlS5NAQmPg1Zxni5Oyi1pddhj1+ghLyxm6xkUThZbw4AKOT2c9NQIJuDeOISSy qXnqsoVJPSb3vSM5F7WBHI9rf+Ugx7O1i7ObleKWXsnIjSj12PzSFd2c3RDhwpxE5tc9 X77Z7ihKSRhIEOqQGtMgC3AF+as1IP6dk0bAaDhjsv25OB7fJHhaCMiJfCjFAwzlc4bn LI8W/Y2/gO1svvTpGxtf37QPrV1xjTkUHOthcj/iQkURF2MT8s9167V/Sq9v4lxXNDIf SM7946G+aK2ls3iB9NXhyQahMU1V28OUqHVCdVY+hbAELtzi6lYWCeKPtR6y2d5J+1CI WgCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=I7Cb+79Q; 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 x1si1554369pgp.89.2018.02.23.06.29.42; Fri, 23 Feb 2018 06:29:57 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=I7Cb+79Q; 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 S1751514AbeBWO20 (ORCPT + 99 others); Fri, 23 Feb 2018 09:28:26 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:38907 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317AbeBWO2Y (ORCPT ); Fri, 23 Feb 2018 09:28:24 -0500 Received: by mail-pl0-f67.google.com with SMTP id d4so4984508pll.5; Fri, 23 Feb 2018 06:28:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+kCqc0rylKmxzYEGvqp/cqMDX5O9XhhfdCbk+017BHg=; b=I7Cb+79QrBy84UttzLjUD9MHPfNUnL1uQHG3iVuQU0sINoTwmaTfpP9Mt3FYNcFKcc Pep0n94xD78Nm0VbtoLgvEg89Lwn7ChftGeM9NewkHXsLnDMZGBXHx+xasXUEHcuRBGM jeE17JhALG+Qb35NQi5VQyBcx0akmucgdvEzJUjOmsOFjTDyTvbf/5unVJ1+oJ7mIJLv d07RAePdVe+QnNAlQmlX/YyF6D/jymqf3OBd8J2LX1G/b0ArVkPcLNvKoloHEObfbKSa Gp1g9456zKfRnEoPLev8DCAoG3lsUAZc6jfBvrNYcFwrU8H2RtYOFbdNdB050u99DbN3 rzPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+kCqc0rylKmxzYEGvqp/cqMDX5O9XhhfdCbk+017BHg=; b=fGY//FhXm/6uKx/jbzj4ONfnQ+qii2VvGVvCqF1kCZoS/SoYh3bEkd7gDf8kpKXh5Z 1lD/RNyLvr+Hzb/bRxzEZxVIIjE+KYgW/fcKCqrYaUJowyTe1GNeJE4Qza2GN+yXsaZ4 FB3XxPSs/yD8rav+/5UEw6xDT2tFowZsR9OpWDzZuAMZnwxfeLSlqMzmQYnVgtF+Dp3f h71agSRX3DNHcB3Og4HsllUtpe3Cr3o4tvKj7S2LmYLGYlpdjgI84OqZ99HuPPQwClDj 1xzXfxQiVTTCFCPuMZMyfAL9b8T7BnqL8GjkIhDxXGaXKd7xWJrrfO027b4zexuV1dye jfbg== X-Gm-Message-State: APf1xPDcBWjDQ6YuKIYyTO6+haBsVieiYPY4xo211yKIKqPvw4yWI8Sw T9ODDRNkNGRgGRGKfJ+ual8= X-Received: by 2002:a17:902:8f97:: with SMTP id z23-v6mr1925416plo.162.1519396103741; Fri, 23 Feb 2018 06:28:23 -0800 (PST) Received: from server.roeck-us.net (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id 76sm5918923pfp.53.2018.02.23.06.28.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 06:28:22 -0800 (PST) Subject: Re: [PATCH v2 04/13] Drop a bunch of metag references To: James Hogan , linux-metag@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Steven Rostedt , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-mm@kvack.org References: <20180221233825.10024-5-jhogan@kernel.org> <20180223105323.6356-1-jhogan@kernel.org> From: Guenter Roeck Message-ID: <95ed23da-960b-8507-3cf8-dfc05143f8ac@roeck-us.net> Date: Fri, 23 Feb 2018 06:28:20 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180223105323.6356-1-jhogan@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/23/2018 02:53 AM, James Hogan wrote: > Now that arch/metag/ has been removed, drop a bunch of metag references > in various codes across the whole tree: > - VM_GROWSUP and __VM_ARCH_PECIFIC_1. > - MT_METAG_* ELF note types. > - METAG Kconfig dependencies (FRAME_POINTER) and ranges > (MAX_STACK_SIZE_MB). > - metag cases in tools (checkstack.pl, recordmcount.c, perf). > > Signed-off-by: James Hogan > Acked-by: Steven Rostedt (VMware) > Acked-by: Peter Zijlstra (Intel) > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: Alexander Shishkin > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Guenter Roeck > Cc: linux-mm@kvack.org > Cc: linux-metag@vger.kernel.org Reviewed-by: Guenter Roeck > --- > Changes in v2: > - Drop CPUHP_AP_PERF_METAG_STARTING too (Guenter). > --- > include/linux/cpuhotplug.h | 1 - > include/linux/mm.h | 2 -- > include/trace/events/mmflags.h | 2 +- > include/uapi/linux/elf.h | 3 --- > lib/Kconfig.debug | 2 +- > mm/Kconfig | 7 +++---- > scripts/checkstack.pl | 4 ---- > scripts/recordmcount.c | 20 -------------------- > tools/perf/perf-sys.h | 4 ---- > 9 files changed, 5 insertions(+), 40 deletions(-) > > diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h > index 5172ad0daa7c..c7a950681f3a 100644 > --- a/include/linux/cpuhotplug.h > +++ b/include/linux/cpuhotplug.h > @@ -108,7 +108,6 @@ enum cpuhp_state { > CPUHP_AP_PERF_X86_CQM_STARTING, > CPUHP_AP_PERF_X86_CSTATE_STARTING, > CPUHP_AP_PERF_XTENSA_STARTING, > - CPUHP_AP_PERF_METAG_STARTING, > CPUHP_AP_MIPS_OP_LOONGSON3_STARTING, > CPUHP_AP_ARM_SDEI_STARTING, > CPUHP_AP_ARM_VFP_STARTING, > diff --git a/include/linux/mm.h b/include/linux/mm.h > index ad06d42adb1a..ccac10682ce5 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -241,8 +241,6 @@ extern unsigned int kobjsize(const void *objp); > # define VM_SAO VM_ARCH_1 /* Strong Access Ordering (powerpc) */ > #elif defined(CONFIG_PARISC) > # define VM_GROWSUP VM_ARCH_1 > -#elif defined(CONFIG_METAG) > -# define VM_GROWSUP VM_ARCH_1 > #elif defined(CONFIG_IA64) > # define VM_GROWSUP VM_ARCH_1 > #elif !defined(CONFIG_MMU) > diff --git a/include/trace/events/mmflags.h b/include/trace/events/mmflags.h > index dbe1bb058c09..a81cffb76d89 100644 > --- a/include/trace/events/mmflags.h > +++ b/include/trace/events/mmflags.h > @@ -115,7 +115,7 @@ IF_HAVE_PG_IDLE(PG_idle, "idle" ) > #define __VM_ARCH_SPECIFIC_1 {VM_PAT, "pat" } > #elif defined(CONFIG_PPC) > #define __VM_ARCH_SPECIFIC_1 {VM_SAO, "sao" } > -#elif defined(CONFIG_PARISC) || defined(CONFIG_METAG) || defined(CONFIG_IA64) > +#elif defined(CONFIG_PARISC) || defined(CONFIG_IA64) > #define __VM_ARCH_SPECIFIC_1 {VM_GROWSUP, "growsup" } > #elif !defined(CONFIG_MMU) > #define __VM_ARCH_SPECIFIC_1 {VM_MAPPED_COPY,"mappedcopy" } > diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h > index 3bf73fb58045..e2535d6dcec7 100644 > --- a/include/uapi/linux/elf.h > +++ b/include/uapi/linux/elf.h > @@ -420,9 +420,6 @@ typedef struct elf64_shdr { > #define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */ > #define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */ > #define NT_ARM_SVE 0x405 /* ARM Scalable Vector Extension registers */ > -#define NT_METAG_CBUF 0x500 /* Metag catch buffer registers */ > -#define NT_METAG_RPIPE 0x501 /* Metag read pipeline state */ > -#define NT_METAG_TLS 0x502 /* Metag TLS pointer */ > #define NT_ARC_V2 0x600 /* ARCv2 accumulator/extra registers */ > > /* Note header in a PT_NOTE section */ > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 6088408ef26c..d1c523e408e9 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -356,7 +356,7 @@ config FRAME_POINTER > bool "Compile the kernel with frame pointers" > depends on DEBUG_KERNEL && \ > (CRIS || M68K || FRV || UML || \ > - SUPERH || BLACKFIN || MN10300 || METAG) || \ > + SUPERH || BLACKFIN || MN10300) || \ > ARCH_WANT_FRAME_POINTERS > default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS > help > diff --git a/mm/Kconfig b/mm/Kconfig > index c782e8fb7235..abefa573bcd8 100644 > --- a/mm/Kconfig > +++ b/mm/Kconfig > @@ -627,15 +627,14 @@ config GENERIC_EARLY_IOREMAP > config MAX_STACK_SIZE_MB > int "Maximum user stack size for 32-bit processes (MB)" > default 80 > - range 8 256 if METAG > range 8 2048 > depends on STACK_GROWSUP && (!64BIT || COMPAT) > help > This is the maximum stack size in Megabytes in the VM layout of 32-bit > user processes when the stack grows upwards (currently only on parisc > - and metag arch). The stack will be located at the highest memory > - address minus the given value, unless the RLIMIT_STACK hard limit is > - changed to a smaller value in which case that is used. > + arch). The stack will be located at the highest memory address minus > + the given value, unless the RLIMIT_STACK hard limit is changed to a > + smaller value in which case that is used. > > A sane initial value is 80 MB. > > diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl > index cb993801e4b2..eeb9ac8dbcfb 100755 > --- a/scripts/checkstack.pl > +++ b/scripts/checkstack.pl > @@ -64,10 +64,6 @@ my (@stack, $re, $dre, $x, $xs, $funcre); > # 2b6c: 4e56 fb70 linkw %fp,#-1168 > # 1df770: defc ffe4 addaw #-28,%sp > $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o; > - } elsif ($arch eq 'metag') { > - #400026fc: 40 00 00 82 ADD A0StP,A0StP,#0x8 > - $re = qr/.*ADD.*A0StP,A0StP,\#(0x$x{1,8})/o; > - $funcre = qr/^$x* <[^\$](.*)>:$/; > } elsif ($arch eq 'mips64') { > #8800402c: 67bdfff0 daddiu sp,sp,-16 > $re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; > diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c > index 16e086dcc567..8c9691c3329e 100644 > --- a/scripts/recordmcount.c > +++ b/scripts/recordmcount.c > @@ -33,20 +33,6 @@ > #include > #include > > -/* > - * glibc synced up and added the metag number but didn't add the relocations. > - * Work around this in a crude manner for now. > - */ > -#ifndef EM_METAG > -#define EM_METAG 174 > -#endif > -#ifndef R_METAG_ADDR32 > -#define R_METAG_ADDR32 2 > -#endif > -#ifndef R_METAG_NONE > -#define R_METAG_NONE 3 > -#endif > - > #ifndef EM_AARCH64 > #define EM_AARCH64 183 > #define R_AARCH64_NONE 0 > @@ -538,12 +524,6 @@ do_file(char const *const fname) > gpfx = '_'; > break; > case EM_IA_64: reltype = R_IA64_IMM64; gpfx = '_'; break; > - case EM_METAG: reltype = R_METAG_ADDR32; > - altmcount = "_mcount_wrapper"; > - rel_type_nop = R_METAG_NONE; > - /* We happen to have the same requirement as MIPS */ > - is_fake_mcount32 = MIPS32_is_fake_mcount; > - break; > case EM_MIPS: /* reltype: e_class */ gpfx = '_'; break; > case EM_PPC: reltype = R_PPC_ADDR32; gpfx = '_'; break; > case EM_PPC64: reltype = R_PPC64_ADDR64; gpfx = '_'; break; > diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h > index 36673f98d66b..3eb7a39169f6 100644 > --- a/tools/perf/perf-sys.h > +++ b/tools/perf/perf-sys.h > @@ -46,10 +46,6 @@ > #define CPUINFO_PROC {"Processor"} > #endif > > -#ifdef __metag__ > -#define CPUINFO_PROC {"CPU"} > -#endif > - > #ifdef __xtensa__ > #define CPUINFO_PROC {"core ID"} > #endif >