[{"id":1760267,"web_url":"http://patchwork.ozlabs.org/comment/1760267/","msgid":"<CAKv+Gu8Jtr-kANe_GQAmENAFPA=Rnq5T9Amqw7fUhW3HQ4xsOA@mail.gmail.com>","list_archive_url":null,"date":"2017-08-30T15:11:53","subject":"Re: [PATCH v2 3/5] ARM: vmlinux.lds.S: replace open coded .data\n\tsections with generic macros","submitter":{"id":26857,"url":"http://patchwork.ozlabs.org/api/people/26857/","name":"Ard Biesheuvel","email":"ard.biesheuvel@linaro.org"},"content":"On 30 August 2017 at 03:55, Nicolas Pitre <nicolas.pitre@linaro.org> wrote:\n> Our .data section is missing PAGE_ALIGNED_DATA() which contains,\n> amongst other things, the vdso page. This creates a System.map that\n> looks like this:\n>\n> c15769a8 D _edata\n> c1577000 d vdso_data_store\n> c1578000 D __start___bug_table\n> c1580544 D __stop___bug_table\n> c1580544 B __bss_start\n>\n> By using RW_DATA_SECTION() we pick whatever generic sections might be\n> added in the future and have page-aligned data next to other strongly\n> aligned data. Furthermore we now include the entire thing, including the\n> bug table, in the data accounting surrounded by _sdata/_edata.\n>\n> While at it let's also remplace the open coded .init.data by its\n> equivalent INIT_DATA_SECTION().\n>\n> Signed-off-by: Nicolas Pitre <nico@linaro.org>\n\nAcked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>\n\n> ---\n>  arch/arm/kernel/vmlinux.lds.S | 38 ++++++--------------------------------\n>  1 file changed, 6 insertions(+), 32 deletions(-)\n>\n> diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S\n> index 4f86b4b7bd..f73ba564b5 100644\n> --- a/arch/arm/kernel/vmlinux.lds.S\n> +++ b/arch/arm/kernel/vmlinux.lds.S\n> @@ -214,14 +214,9 @@ SECTIONS\n>                 *(.pv_table)\n>                 __pv_table_end = .;\n>         }\n> -       .init.data : {\n> -               INIT_DATA\n> -               INIT_SETUP(16)\n> -               INIT_CALLS\n> -               CON_INITCALL\n> -               SECURITY_INITCALL\n> -               INIT_RAM_FS\n> -       }\n> +\n> +       INIT_DATA_SECTION(16)\n> +\n>         .exit.data : {\n>                 ARM_EXIT_KEEP(EXIT_DATA)\n>         }\n> @@ -237,30 +232,9 @@ SECTIONS\n>  #endif\n>         __init_end = .;\n>\n> -       .data : {\n> -               _data = .;              /* address in memory */\n> -               _sdata = .;\n> -\n> -               /*\n> -                * first, the init task union, aligned\n> -                * to an 8192 byte boundary.\n> -                */\n> -               INIT_TASK_DATA(THREAD_SIZE)\n> -\n> -               NOSAVE_DATA\n> -               CACHELINE_ALIGNED_DATA(L1_CACHE_BYTES)\n> -               READ_MOSTLY_DATA(L1_CACHE_BYTES)\n> -\n> -               /*\n> -                * and the usual data section\n> -                */\n> -               DATA_DATA\n> -               CONSTRUCTORS\n> -\n> -               _edata = .;\n> -       }\n> -\n> -       BUG_TABLE\n> +       _sdata = .;\n> +       RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)\n> +       _edata = .;\n>\n>  #ifdef CONFIG_HAVE_TCM\n>          /*\n> --\n> 2.9.5\n>","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"FgPni1Gk\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"ZUWuvMpn\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xj8BN0BGYz9sN7\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 01:12:28 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dn4fH-0001e8-OE; Wed, 30 Aug 2017 15:12:23 +0000","from mail-io0-x22b.google.com ([2607:f8b0:4001:c06::22b])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dn4f9-0001cW-EP for linux-arm-kernel@lists.infradead.org;\n\tWed, 30 Aug 2017 15:12:22 +0000","by mail-io0-x22b.google.com with SMTP id 81so5914299ioj.5\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tWed, 30 Aug 2017 08:11:55 -0700 (PDT)","by 10.107.162.1 with HTTP; Wed, 30 Aug 2017 08:11:53 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:\n\tReferences:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=LwcsNWlrMf2/EDoki30DJRhbe3gHVObJWcez2s1L1hM=;\n\tb=FgPni1GkoqXrZc\n\taFxLp1iv+W35I8TSF1oxL6TJ1hjMoyvSfnghu6uTWDOZYSPmUVcuk6xSm16+cOrQolIrdlkuIreKx\n\t0l7oqq8xooyey1ZbORWLtbiVGOb6teFfOCWAZGDjZywT09Avabptgey2KFJTqE7M8DYR2/mofXUvT\n\tDF7lCThi+fkywZw6BoRR7Zz2YiYd2lzxDNQIzpAVSnJNyKZ2GUCdo0v8C+xu4GMVc+HfscM6pF+XY\n\thgAuyWloc34czEFUg0bv8t4ALz/5rB+CM6XZng+vPz9Y5YgCxES2041XTMTRLjF32cujg3P9UUYV6\n\t54Q/HS5o1wkfrRxwvk9Q==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=mime-version:in-reply-to:references:from:date:message-id:subject:to\n\t:cc; bh=BV4VmSSbxl6whvPEhKUMbXTvOJGQCApc0aTHhqT9nO0=;\n\tb=ZUWuvMpnGRUrnnbBHJ1dCOjexqzR+WnY4RW6HTMH+ssu9Tqx9zx6rj/zxQXQNkGraQ\n\tvQP3NrbceovSMf7tc5+ZU32Feg2223w5saesfFXK84b21ZGvnr78/lyq1b99qbHoRF/6\n\tzIqGk7AQ62Swlh3LhsAztQtc/DSfhBjpDabg8="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc;\n\tbh=BV4VmSSbxl6whvPEhKUMbXTvOJGQCApc0aTHhqT9nO0=;\n\tb=bR6T+E71hgzfsYyB/rcfEFuiypYU9XWkdse9wTtYt6rpKBZgTlMIfw0PdAchTO6bP5\n\tY+NzD2iHirMcHOhWCA8iZykGghDqxBTKHDfYalEmr9Hcqv+ETiY+noZtSLa1MNEiWGRg\n\tvf1EShkUJ6tZ+dflQYBlw0PA6XH8aD0yBbcfNz0ii1aa8HGWd5ql6YO8Kil/1V8CSeJF\n\tIoucgaPxrfPpCrDKfR59k2+n92iNwELlEcjnCpO65q4vUJWTVw6F0ErZobGYsiOFdPva\n\tF4AZRlxPUB0v7XLh/vJygeob6CmEld2l982LDTVwdePtG28jMy2/VhTPtZ+US2QXn+0y\n\tXOCw==","X-Gm-Message-State":"AHPjjUjDvHQ+fkyWA6u4QmVxC9/wNaOWCpuZoMNqmVafZy2R9ivoOF5R\n\tiFtWSH0Cxg6/rIjEKqutXWDauWQ1UtrA","X-Received":"by 10.107.16.217 with SMTP id 86mr1606295ioq.149.1504105914375; \n\tWed, 30 Aug 2017 08:11:54 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<20170830025547.30347-4-nicolas.pitre@linaro.org>","References":"<20170830025547.30347-1-nicolas.pitre@linaro.org>\n\t<20170830025547.30347-4-nicolas.pitre@linaro.org>","From":"Ard Biesheuvel <ard.biesheuvel@linaro.org>","Date":"Wed, 30 Aug 2017 16:11:53 +0100","Message-ID":"<CAKv+Gu8Jtr-kANe_GQAmENAFPA=Rnq5T9Amqw7fUhW3HQ4xsOA@mail.gmail.com>","Subject":"Re: [PATCH v2 3/5] ARM: vmlinux.lds.S: replace open coded .data\n\tsections with generic macros","To":"Nicolas Pitre <nicolas.pitre@linaro.org>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170830_081215_662578_1BA576CC ","X-CRM114-Status":"GOOD (  15.98  )","X-Spam-Score":"-2.7 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2607:f8b0:4001:c06:0:0:0:22b listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Chris Brandt <Chris.Brandt@renesas.com>, Arnd Bergmann <arnd@arndb.de>, \n\t\"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>,\n\tRussell King - ARM Linux <linux@armlinux.org.uk>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1760270,"web_url":"http://patchwork.ozlabs.org/comment/1760270/","msgid":"<CAKv+Gu_vKD-Exnt3L9+FRgq9nueFAUWoggwUpJbpCS=bMd_JfQ@mail.gmail.com>","list_archive_url":null,"date":"2017-08-30T15:12:45","subject":"Re: [PATCH v2 4/5] ARM: vmlinux-xip.lds.S: fix multiple issues","submitter":{"id":26857,"url":"http://patchwork.ozlabs.org/api/people/26857/","name":"Ard Biesheuvel","email":"ard.biesheuvel@linaro.org"},"content":"On 30 August 2017 at 03:55, Nicolas Pitre <nicolas.pitre@linaro.org> wrote:\n> The XIP linker script has several problems:\n>\n> - PAGE_ALIGNED_DATA is missing and is likely to end up somewhere with\n>   the wrong LMA.\n>\n> - BUG_TABLE definitely has the wrong LMA, it is not copied to RAM, and\n>   its VMA is unaccounted for and likely to clash with dynamic memory\n>   usage.\n>\n> - TCM usage is similarly broken.\n>\n> - PERCPU_SECTION is left in ROM despite being written to.\n>\n> Let's use generic macros for those things and locate them appropriately.\n> Incidentally, those macros are usable with a LMA != VMA already by\n> properly defining LOAD_OFFSET.\n>\n> TCM is not fixed here. It never worked in a XIP configuration anyway, so\n> that can wait until another round of cleanups.\n>\n> Signed-off-by: Nicolas Pitre <nico@linaro.org>\n\nAcked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>\n\n> ---\n>  arch/arm/kernel/vmlinux-xip.lds.S | 70 +++++++++++++++++++--------------------\n>  1 file changed, 34 insertions(+), 36 deletions(-)\n>\n> diff --git a/arch/arm/kernel/vmlinux-xip.lds.S b/arch/arm/kernel/vmlinux-xip.lds.S\n> index 88e8db3979..39b1fb470a 100644\n> --- a/arch/arm/kernel/vmlinux-xip.lds.S\n> +++ b/arch/arm/kernel/vmlinux-xip.lds.S\n> @@ -179,7 +179,7 @@ SECTIONS\n>                 *(.taglist.init)\n>                 __tagtable_end = .;\n>         }\n> -       .init.data : {\n> +       .init.rodata : {\n>                 INIT_SETUP(16)\n>                 INIT_CALLS\n>                 CON_INITCALL\n> @@ -187,48 +187,46 @@ SECTIONS\n>                 INIT_RAM_FS\n>         }\n>\n> -#ifdef CONFIG_SMP\n> -       PERCPU_SECTION(L1_CACHE_BYTES)\n> -#endif\n> -\n>         _exiprom = .;                   /* End of XIP ROM area */\n> -       __data_loc = ALIGN(4);          /* location in binary */\n> -       . = PAGE_OFFSET + TEXT_OFFSET;\n> -\n> -       .data : AT(__data_loc) {\n> -               _data = .;              /* address in memory */\n> -               _sdata = .;\n>\n> -               /*\n> -                * first, the init task union, aligned\n> -                * to an 8192 byte boundary.\n> -                */\n> -               INIT_TASK_DATA(THREAD_SIZE)\n> +/*\n> + * From this point, stuff is considered writable and will be copied to RAM\n> + */\n> +       __data_loc = ALIGN(4);          /* location in file */\n> +       . = PAGE_OFFSET + TEXT_OFFSET;  /* location in memory */\n> +#undef LOAD_OFFSET\n> +#define LOAD_OFFSET (PAGE_OFFSET + TEXT_OFFSET - __data_loc)\n> +\n> +       . = ALIGN(THREAD_SIZE);\n> +       _sdata = .;\n> +       RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)\n> +       .data.ro_after_init : AT(ADDR(.data.ro_after_init) - LOAD_OFFSET) {\n> +               *(.data..ro_after_init)\n> +       }\n> +       _edata = .;\n>\n> -               . = ALIGN(PAGE_SIZE);\n> -               __init_begin = .;\n> +       . = ALIGN(PAGE_SIZE);\n> +       __init_begin = .;\n> +       .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) {\n>                 INIT_DATA\n> +       }\n> +       .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) {\n>                 ARM_EXIT_KEEP(EXIT_DATA)\n> -               . = ALIGN(PAGE_SIZE);\n> -               __init_end = .;\n> -\n> -               *(.data..ro_after_init)\n> -\n> -               NOSAVE_DATA\n> -               CACHELINE_ALIGNED_DATA(L1_CACHE_BYTES)\n> -               READ_MOSTLY_DATA(L1_CACHE_BYTES)\n> -\n> -               /*\n> -                * and the usual data section\n> -                */\n> -               DATA_DATA\n> -               CONSTRUCTORS\n> -\n> -               _edata = .;\n>         }\n> -       _edata_loc = __data_loc + SIZEOF(.data);\n> +#ifdef CONFIG_SMP\n> +       PERCPU_SECTION(L1_CACHE_BYTES)\n> +#endif\n> +\n> +       /*\n> +        * End of copied data. We need a dummy section to get its LMA.\n> +        * Also located before final ALIGN() as trailing padding is not stored\n> +        * in the resulting binary file and useless to copy.\n> +        */\n> +       .data.endmark : AT(ADDR(.data.endmark) - LOAD_OFFSET) { }\n> +       _edata_loc = LOADADDR(.data.endmark);\n>\n> -       BUG_TABLE\n> +       . = ALIGN(PAGE_SIZE);\n> +       __init_end = .;\n>\n>  #ifdef CONFIG_HAVE_TCM\n>          /*\n> --\n> 2.9.5\n>","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"cc6MjBBd\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"OZ0gUTvh\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"H9L9Pz/m\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xj8Cr0gjnz9sN7\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 01:13:44 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dn4gW-0002Am-UZ; Wed, 30 Aug 2017 15:13:40 +0000","from casper.infradead.org ([2001:8b0:10b:1236::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dn4gU-00029p-If for linux-arm-kernel@bombadil.infradead.org;\n\tWed, 30 Aug 2017 15:13:38 +0000","from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c])\n\tby casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dn4g1-0005yt-Qn for linux-arm-kernel@lists.infradead.org;\n\tWed, 30 Aug 2017 15:13:11 +0000","by mail-it0-x22c.google.com with SMTP id f199so1493807ita.1\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tWed, 30 Aug 2017 08:12:48 -0700 (PDT)","by 10.107.162.1 with HTTP; Wed, 30 Aug 2017 08:12:45 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:\n\tReferences:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=X5Z9b70kFkHsrQJQP7V74eXPF0EmaihTvldKptjpaGg=;\n\tb=cc6MjBBdtipVZh\n\taC5BwlAUZ6orH5bMXuWqdkquyEOR5TnJTc8M1s9h+SctwFmlusDWBlmDvhqtRUzt+9XeqlYpyU+mO\n\tDNMNtByuvxborcaB5/htnDe6FC/GSqUaGpuR/frJiAIIylWFccHSjZrl+V9X/ORlkg293fC2WxnMf\n\tsiM6DjVVqN3qXOp045Ry2I/3ssLo0hlFBpcgEYtbm9A3nhbLr4EG9UU2oy/8mMyoQz3fZF22BPsmt\n\tgdKHGWwiCDabMpiRihgIshJfFiASs78d+IJBFeEG+9Rwyl+0f79B2eIVsA6aH3l3wRcD1Aw72+zwf\n\tJlEIntS0izeZH9qbPRwQ==;","v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=casper.20170209;\n\th=Content-Type:Cc:To:Subject:Message-ID:\n\tDate:From:References:In-Reply-To:MIME-Version:Sender:Reply-To:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=2/m2TN1HOKwJy3+iNOdLJE2HagcZhW/GyO9I2bStE2M=;\n\tb=OZ0gUTvhqOcqw5w719Ccwf10g\n\tQDbOJYkoBlxDHFJ0yXnyZUom0cc8Yce9ScpqwHr9jXyrhZr+BOsaKMj2J5IQjUxcuQ4j1x9sbyDvm\n\tbxTeVJxkKH1wSGicccgKrtA4d8mJWFLnpvyV0yW5VhQVX9brYu1VAQlavVd69kuDgQp1tE+cEj2Bs\n\tno3ZMcyF6Rwn4W4yKEYcSa92C9d8WGmCyp8qALAClJzQKkXGLblpRup6kNgAyRGl0/85aOsEIFjfh\n\te3NahK7yxvCpnss1VYiHiFY8Um7czzhVp6LA9xkRW1Q1COUs8F3j5gTaTLcMitzL5CF/J0xxRL33t\n\tZBHD8dviQ==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=mime-version:in-reply-to:references:from:date:message-id:subject:to\n\t:cc; bh=2/m2TN1HOKwJy3+iNOdLJE2HagcZhW/GyO9I2bStE2M=;\n\tb=H9L9Pz/mbh2uyg7mg+dIZxctbXcgPmSiBM7eBZ1dGlKwQHF4L9mY+X5shJMLbLQS7O\n\tUxZQZAr9dkTxmiqlrr7QbDahiAWd6rTCcc1GCycgblORGt+gi7n6mBDZYaveD+vYGywm\n\tdkbQl95OIrXxU2g1w2CPnTQaiHVWOcGQFnf8A="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc;\n\tbh=2/m2TN1HOKwJy3+iNOdLJE2HagcZhW/GyO9I2bStE2M=;\n\tb=T63ogWmJvJbGiVfl4AnVlTgVQwymyXBMIBoZe8B/bV8f6b8lkuDQVxPXHA6rRsjaY6\n\t1BhBOSXz1rh+THZ2EDl0rkzoK1qbgFF1IMcaz8fxgxnwe00bxtye3BQikJmCXBNzY99F\n\tGu8nup+737nXm9A2236LPmFAM8K7tJr+PrHMkSNHautuMdII31krgAr4AbBhtyCgLXue\n\tY+dAMGwNU23FxaREAN9EDkcSjvmv0HXn1k+978gpbAqVLz0HES7lfTunLYLsDCrUNgWa\n\tZLflQNu1DRGBTOhu1AwKEmfEAXQVIf5uDq2pf14f9OmBOSVrgfbbSmF8w6bHMgiGTY/w\n\t309g==","X-Gm-Message-State":"AHYfb5j/9SuXeohIf0yxi8rZZI3UE4U+SlrZ243xseeHH2DL0Mv5nSRH\n\tcFh9151wKLlfOj55Iq96HgP6msA15JcL5R5mcA==","X-Received":"by 10.36.148.9 with SMTP id j9mr1768504ite.146.1504105966413;\n\tWed, 30 Aug 2017 08:12:46 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<20170830025547.30347-5-nicolas.pitre@linaro.org>","References":"<20170830025547.30347-1-nicolas.pitre@linaro.org>\n\t<20170830025547.30347-5-nicolas.pitre@linaro.org>","From":"Ard Biesheuvel <ard.biesheuvel@linaro.org>","Date":"Wed, 30 Aug 2017 16:12:45 +0100","Message-ID":"<CAKv+Gu_vKD-Exnt3L9+FRgq9nueFAUWoggwUpJbpCS=bMd_JfQ@mail.gmail.com>","Subject":"Re: [PATCH v2 4/5] ARM: vmlinux-xip.lds.S: fix multiple issues","To":"Nicolas Pitre <nicolas.pitre@linaro.org>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170830_161310_316303_D4269ACE ","X-CRM114-Status":"GOOD (  24.06  )","X-Spam-Score":"-2.7 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on casper.infradead.org summary:\n\tContent analysis details:   (-2.7 points, 5.0 required)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2607:f8b0:4001:c0b:0:0:0:22c listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Chris Brandt <Chris.Brandt@renesas.com>, Arnd Bergmann <arnd@arndb.de>, \n\t\"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>,\n\tRussell King - ARM Linux <linux@armlinux.org.uk>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1760526,"web_url":"http://patchwork.ozlabs.org/comment/1760526/","msgid":"<SG2PR06MB1165EF18A363D9CC4C5531FE8A9C0@SG2PR06MB1165.apcprd06.prod.outlook.com>","list_archive_url":null,"date":"2017-08-30T21:58:49","subject":"RE: [PATCH v2 0/5] make XIP kernel .data compressed in ROM","submitter":{"id":69772,"url":"http://patchwork.ozlabs.org/api/people/69772/","name":"Chris Brandt","email":"chris.brandt@renesas.com"},"content":"On Tuesday, August 29, 2017 1, Nicolas Pitre wrote:\n> This patch series provides the ability to store the XIP kernel .data\n> segment compressed in ROM. It has to be copied to RAM anyway so\n> storing it uncompressed is arguably a waste of ROM resources.\n> \n> While at it, the copying of .data (when not compressed) and the\n> clearing of .bss is now performed using optimized string routines\n> rather than doing it one word at a time.\n\nTested on my XIP system (Cortex-A9) and it seems to work OK.\n\n\n> This work highlighted some defficiencies in linker scripts, especially\n> the XIP one. So this also includes linker script cleanups and fixes.\n\nThank you for this!\n\n\n\nIf you're curious, here are some numbers from my system:\n\nOriginal xipImage size: 4,190,068 bytes\nxipImage size with CONFIG_XIP_DEFLATED_DATA=y: 3,985,227 bytes\n\nA 204,841 byte reduction in image size (4.89%)\n\n\n\nChris","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"gc3phZA+\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=renesasgroup.onmicrosoft.com\n\theader.i=@renesasgroup.onmicrosoft.com header.b=\"pnvxWaM2\"; \n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=Chris.Brandt@renesas.com; "],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjKCx5ZQQz9s7M\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 07:59:25 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnB17-0007hq-4a; Wed, 30 Aug 2017 21:59:21 +0000","from relmlor4.renesas.com ([210.160.252.174]\n\thelo=relmlie3.idc.renesas.com)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnB12-0007gD-89 for linux-arm-kernel@lists.infradead.org;\n\tWed, 30 Aug 2017 21:59:19 +0000","from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151])\n\tby relmlie3.idc.renesas.com with ESMTP; 31 Aug 2017 06:58:51 +0900","from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com\n\t[10.200.68.66])\n\tby relmlir1.idc.renesas.com (Postfix) with ESMTP id B2126615EE;\n\tThu, 31 Aug 2017 06:58:51 +0900 (JST)","from mail-hk2apc01lp0211.outbound.protection.outlook.com (HELO\n\tAPC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.211])\n\tby relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256;\n\t31 Aug 2017 06:58:49 +0900","from SG2PR06MB1165.apcprd06.prod.outlook.com (10.169.58.147) by\n\tSG2PR06MB1581.apcprd06.prod.outlook.com (10.167.81.147) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.1.1385.9; Wed, 30 Aug 2017 21:58:49 +0000","from SG2PR06MB1165.apcprd06.prod.outlook.com\n\t([fe80::38e1:46c3:c910:6437]) by\n\tSG2PR06MB1165.apcprd06.prod.outlook.com\n\t([fe80::38e1:46c3:c910:6437%13]) with mapi id 15.20.0013.012;\n\tWed, 30 Aug 2017 21:58:49 +0000"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References:\n\tMessage-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=LDmqoudojmF2VbcIrr3YYfYCKhQaK9eh3DBdMIKh8bs=;\n\tb=gc3phZA+wA8Q5v\n\tYQ7Th9Nz1Bt+TtMysu2CjncLLg7coFIN+aDupWjZoZ5vQH11WPIHVjmWlSD7JgDRebPa6nmmjMWK6\n\t5Y8F9B7F1cC4AAXpEJIfIhTmtVnIAUPVtvT9nUdaiGs1CvPQp28vqAOcE/t6svMfunLjBXlFOa2bS\n\tLldhUx1o5l5JYKzrc21+xdW7fGtlhjecEPjVnzvXy4Nw4s8RwTmZ05eIYueYaVPRRYZveLywrqnJb\n\tsnr/5hirJFfX9ifNNX8bGUPYxKXbOEGUdJUC5y5Uw9CIJ6jo+b15pf1ahqRtCXmoKCY0TCF6x12QQ\n\t7XK1Ts6s4St1k72xtAEA==;","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=renesasgroup.onmicrosoft.com; s=selector1-renesas-com;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=1BRoUpDK3wOS9vOhuUJdlq5uhmEy/Dc5Blp8iifb1dU=;\n\tb=pnvxWaM26KSOkL1DS3EYilZcc84qIIs9Oylu++B9SrNZW4yh6odZY5w/XEiJZrjtx8geoNu8sDJ6v19dONvv9HJ8ExezLKl2Ks/ONq0+DEp+xMMS7HctFQfkm3IWj8BsdK0xJ98o+V/+f9BIbRDgJPb+cpbYUXwJyzucjbfoVuI="],"X-IronPort-AV":"E=Sophos;i=\"5.41,450,1498489200\"; d=\"scan'208\";a=\"256401357\"","From":"Chris Brandt <Chris.Brandt@renesas.com>","To":"Nicolas Pitre <nicolas.pitre@linaro.org>,\n\t\"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>","Subject":"RE: [PATCH v2 0/5] make XIP kernel .data compressed in ROM","Thread-Topic":"[PATCH v2 0/5] make XIP kernel .data compressed in ROM","Thread-Index":"AQHTITuKHkOU2biIfEmDwk7vgCYHIqKdbqzA","Date":"Wed, 30 Aug 2017 21:58:49 +0000","Message-ID":"<SG2PR06MB1165EF18A363D9CC4C5531FE8A9C0@SG2PR06MB1165.apcprd06.prod.outlook.com>","References":"<20170830025547.30347-1-nicolas.pitre@linaro.org>","In-Reply-To":"<20170830025547.30347-1-nicolas.pitre@linaro.org>","Accept-Language":"en-US","Content-Language":"en-US","X-MS-Has-Attach":"","X-MS-TNEF-Correlator":"","authentication-results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"gc3phZA+\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=renesasgroup.onmicrosoft.com\n\theader.i=@renesasgroup.onmicrosoft.com header.b=\"pnvxWaM2\"; \n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=Chris.Brandt@renesas.com; "],"x-originating-ip":"[75.60.247.61]","x-ms-publictraffictype":"Email","x-microsoft-exchange-diagnostics":"1; SG2PR06MB1581;\n\t20:8Zl10kowRs19KilCxOZ5Um0pQb8rcoNoLdJt4QTviDTyNb6zL72Z2cn8in+PY96w4o1Yz2565YMZPvg3OOKTiXT7GZFCCMHrBlJXt+0SrpcDobNri0LO30OiZ/FCiE8TJesYQNEpY9Y07ZGNXghoZAMlQ/R5SKAeiECwuGkryGE=","x-ms-exchange-antispam-srfa-diagnostics":"SSOS;","x-ms-office365-filtering-correlation-id":"f33c6bb7-d6fb-45aa-1919-08d4eff24ba0","x-ms-office365-filtering-ht":"Tenant","x-microsoft-antispam":"UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:SG2PR06MB1581; ","x-ms-traffictypediagnostic":"SG2PR06MB1581:","x-exchange-antispam-report-test":"UriScan:;","x-microsoft-antispam-prvs":"<SG2PR06MB15816F296F8EDB044B32BE688A9C0@SG2PR06MB1581.apcprd06.prod.outlook.com>","x-exchange-antispam-report-cfa-test":"BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:SG2PR06MB1581; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:SG2PR06MB1581; ","x-forefront-prvs":"041517DFAB","x-forefront-antispam-report":"SFV:NSPM;\n\tSFS:(10019020)(6009001)(39860400002)(24454002)(199003)(189002)(7736002)(33656002)(229853002)(14454004)(6506006)(97736004)(72206003)(105586002)(50986999)(5250100002)(2900100001)(478600001)(6246003)(68736007)(2501003)(76176999)(54356999)(106356001)(305945005)(66066001)(6436002)(99286003)(3660700001)(189998001)(102836003)(6116002)(7696004)(25786009)(3280700002)(81166006)(3846002)(5660300001)(9686003)(8676002)(53936002)(81156014)(55016002)(86362001)(4326008)(345774005)(54906002)(2950100002)(74316002)(2906002)(101416001)(8936002)(142923001);\n\tDIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB1581;\n\tH:SG2PR06MB1165.apcprd06.prod.outlook.com; FPR:; SPF:None;\n\tPTR:InfoNoRecords; A:1; MX:1; LANG:en; ","received-spf":"None (protection.outlook.com: renesas.com does not designate\n\tpermitted sender hosts)","spamdiagnosticoutput":"1:99","spamdiagnosticmetadata":"NSPM","MIME-Version":"1.0","X-OriginatorOrg":"renesas.com","X-MS-Exchange-CrossTenant-originalarrivaltime":"30 Aug 2017 21:58:49.5208\n\t(UTC)","X-MS-Exchange-CrossTenant-fromentityheader":"Hosted","X-MS-Exchange-CrossTenant-id":"53d82571-da19-47e4-9cb4-625a166a4a2a","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"SG2PR06MB1581","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170830_145916_576350_536FE3FF ","X-CRM114-Status":"GOOD (  11.94  )","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [210.160.252.174 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Russell King - ARM Linux <linux@armlinux.org.uk>,\n\tArnd Bergmann <arnd@arndb.de>, Ard Biesheuvel <ard.biesheuvel@linaro.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1760577,"web_url":"http://patchwork.ozlabs.org/comment/1760577/","msgid":"<nycvar.YSQ.7.76.1708301951330.2606@knanqh.ubzr>","list_archive_url":null,"date":"2017-08-31T00:04:33","subject":"RE: [PATCH v2 0/5] make XIP kernel .data compressed in ROM","submitter":{"id":4652,"url":"http://patchwork.ozlabs.org/api/people/4652/","name":"Nicolas Pitre","email":"nicolas.pitre@linaro.org"},"content":"On Wed, 30 Aug 2017, Chris Brandt wrote:\n\n> On Tuesday, August 29, 2017 1, Nicolas Pitre wrote:\n> > This patch series provides the ability to store the XIP kernel .data\n> > segment compressed in ROM. It has to be copied to RAM anyway so\n> > storing it uncompressed is arguably a waste of ROM resources.\n> > \n> > While at it, the copying of .data (when not compressed) and the\n> > clearing of .bss is now performed using optimized string routines\n> > rather than doing it one word at a time.\n> \n> Tested on my XIP system (Cortex-A9) and it seems to work OK.\n\nGood, thanks for testing.\n\n> > This work highlighted some defficiencies in linker scripts, especially\n> > the XIP one. So this also includes linker script cleanups and fixes.\n> \n> Thank you for this!\n\nMore will come eventually.\n\nDid this fix your cramfs issue with 4.13-rc7?\n\n> If you're curious, here are some numbers from my system:\n> \n> Original xipImage size: 4,190,068 bytes\n> xipImage size with CONFIG_XIP_DEFLATED_DATA=y: 3,985,227 bytes\n> \n> A 204,841 byte reduction in image size (4.89%)\n\nIn my case it is 1195492 vs 1111632, or a 7% reduction.\n\nThis could be improved further by locating most of init.data and \ninit.text into the compressed zone even if it is read-only. The \ndecompressed form would be located in RAM temporarily and discarded \nafter boot. Right now it is left uncompressed in ROM forever. But that's \nfor a later round.\n\n\nNicolas","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"t+LMirWV\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"Dq/zI+ZD\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjN110D3jz9sMN\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 10:05:09 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnCyl-0004Mo-OZ; Thu, 31 Aug 2017 00:05:03 +0000","from mail-io0-x233.google.com ([2607:f8b0:4001:c06::233])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnCyf-00040x-TX for linux-arm-kernel@lists.infradead.org;\n\tThu, 31 Aug 2017 00:05:00 +0000","by mail-io0-x233.google.com with SMTP id 81so13171829ioj.5\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tWed, 30 Aug 2017 17:04:36 -0700 (PDT)","from xanadu.home (modemcable199.200-80-70.mc.videotron.ca.\n\t[70.80.200.199]) by smtp.gmail.com with ESMTPSA id\n\tj127sm24223itj.0.2017.08.30.17.04.34\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 30 Aug 2017 17:04:34 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:Message-ID:\n\tIn-Reply-To:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=SvICf2lS9MRQCzE63mmtGIHRSa2Rlk570vWKtbYUG6k=;\n\tb=t+LMirWVahX0H/\n\t/cUnlFNvy/DXupDnitjH1vjOwDcLPg4HtDoudkAQdeb4ECB2K0ruY8LkLZMDd9yA8BwhEId5OrcK1\n\tagP9hci5fKGHH2C72yI/VURjkrrH/0D8mJvcLMJeKxrdqeitnuOh0LMqs/4Sps3E+ZlhrxnlUVkqh\n\tZjeakRU9bciYr9ijkpGwktwatlr/+DpsikA+lLUJFaCQ+CrJgCsYwZ8XZaBZR/15GIpZZFjIZj1tx\n\tfC1iKPokhM6CWzbEK9ceNpKc82tf9vVuPuFFNGYiprHtyByb3vLAmO6T3rnNhXBhAP438FNWZCv/L\n\tYoPUMZyYG6iLsCzAfThQ==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=date:from:to:cc:subject:in-reply-to:message-id:references\n\t:user-agent:mime-version;\n\tbh=OS0LpU43EvgeL8FlbuNjbp9RN6lbIhLAwRqXszVdg00=;\n\tb=Dq/zI+ZDoip6n/ht8v+EFao0m8p5FKGauJNDkusAeehxo8kSYbiOkDusmaG503g9f1\n\tsGJiw73HHmcxQaawAF12F1fG+jeM59KyjiTVviMXmroFugTwaq2kODreVjzzOhEm+nBO\n\t4oztreOtdArZMZ++ktYgNJtulbn6HyD7Wx4HI="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id\n\t:references:user-agent:mime-version;\n\tbh=OS0LpU43EvgeL8FlbuNjbp9RN6lbIhLAwRqXszVdg00=;\n\tb=N06OEaipsmvyNQa3YQmMsXJCjs3uAi8kOBVfpXuXN3j7Zran38puOf4kdTgUA+iayP\n\tk8eIdbUN4oTbq+Ie9CuTo06BNkZkLin4FlzKH1loxbFZBe/1+NTulBcDVNUVfpqt8bnz\n\tSd11tvmXCzToxgQE9OpDcXzdkcJ8rElbyvgNwjzyV/Id8vGP6/LmbkxJPV9SRoGJVhN9\n\tghqnHD5w82SJ/0NUMaXAkTfWhy65kcLaJiocDLLv71qLySp10Zlxolyban5MHdbpcHNe\n\tgJ5aNMaYUe/ZwB0IbTAIR9caq7yudLTF4k2zatSt65K+uilAcL2itv30amziS8ot4/LH\n\t4pQQ==","X-Gm-Message-State":"AHYfb5gkp5sqjFYzKa/K3lcQlm9HOllbAEjjJrVGPHGT9v37TxxGYhjc\n\trK85L9i+McrEySZbOW/ONA==","X-Received":"by 10.36.76.141 with SMTP id a135mr3922220itb.65.1504137875849; \n\tWed, 30 Aug 2017 17:04:35 -0700 (PDT)","Date":"Wed, 30 Aug 2017 20:04:33 -0400 (EDT)","From":"Nicolas Pitre <nicolas.pitre@linaro.org>","To":"Chris Brandt <Chris.Brandt@renesas.com>","Subject":"RE: [PATCH v2 0/5] make XIP kernel .data compressed in ROM","In-Reply-To":"<SG2PR06MB1165EF18A363D9CC4C5531FE8A9C0@SG2PR06MB1165.apcprd06.prod.outlook.com>","Message-ID":"<nycvar.YSQ.7.76.1708301951330.2606@knanqh.ubzr>","References":"<20170830025547.30347-1-nicolas.pitre@linaro.org>\n\t<SG2PR06MB1165EF18A363D9CC4C5531FE8A9C0@SG2PR06MB1165.apcprd06.prod.outlook.com>","User-Agent":"Alpine 2.21 (LFD 202 2017-01-01)","MIME-Version":"1.0","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170830_170458_272631_F4D60A4C ","X-CRM114-Status":"GOOD (  22.14  )","X-Spam-Score":"-2.7 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2607:f8b0:4001:c06:0:0:0:233 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Russell King - ARM Linux <linux@armlinux.org.uk>,\n\tArnd Bergmann <arnd@arndb.de>, \"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>, \n\tArd Biesheuvel <ard.biesheuvel@linaro.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1760585,"web_url":"http://patchwork.ozlabs.org/comment/1760585/","msgid":"<SG2PR06MB11652EB1FEDDE2F40AE763B18A9D0@SG2PR06MB1165.apcprd06.prod.outlook.com>","list_archive_url":null,"date":"2017-08-31T00:43:28","subject":"RE: [PATCH v2 0/5] make XIP kernel .data compressed in ROM","submitter":{"id":69772,"url":"http://patchwork.ozlabs.org/api/people/69772/","name":"Chris Brandt","email":"chris.brandt@renesas.com"},"content":"On Wednesday, August 30, 2017, Nicolas Pitre wrote:\n> > > This work highlighted some defficiencies in linker scripts, especially\n> > > the XIP one. So this also includes linker script cleanups and fixes.\n> >\n> > Thank you for this!\n> \n> More will come eventually.\n> \n> Did this fix your cramfs issue with 4.13-rc7?\n\nYes!\nI just stacked on your latest set of cramfs XIP patches on top of these \nand now magically it boots again.\nThank you!\n\nNotice that busybox, libc and ld have physical addresses in Flash (ie, XIP)\n\n$ cat /proc/self/maps\n00008000-000a1000 r-xp 1b005000 00:0c 18192      /bin/busybox\n000a9000-000aa000 rw-p 00099000 00:0c 18192      /bin/busybox\n000aa000-000ac000 rw-p 00000000 00:00 0          [heap]\nb6eed000-b6fc6000 r-xp 1b0bc000 00:0c 766540     /lib/libc-2.18-2013.10.so\nb6fc6000-b6fce000 ---p 1b195000 00:0c 766540     /lib/libc-2.18-2013.10.so\nb6fce000-b6fd0000 r--p 000d9000 00:0c 766540     /lib/libc-2.18-2013.10.so\nb6fd0000-b6fd1000 rw-p 000db000 00:0c 766540     /lib/libc-2.18-2013.10.so\nb6fd1000-b6fd4000 rw-p 00000000 00:00 0\nb6fd4000-b6feb000 r-xp 1b0a4000 00:0c 670372     /lib/ld-2.18-2013.10.so\nb6fee000-b6fef000 rw-p 00000000 00:00 0\nb6ff0000-b6ff2000 rw-p 00000000 00:00 0\nb6ff2000-b6ff3000 r--p 00016000 00:0c 670372     /lib/ld-2.18-2013.10.so\nb6ff3000-b6ff4000 rw-p 00017000 00:0c 670372     /lib/ld-2.18-2013.10.so\nbee27000-bee48000 rw-p 00000000 00:00 0          [stack]\nbeea4000-beea5000 r-xp 00000000 00:00 0          [sigpage]\nffff0000-ffff1000 r-xp 00000000 00:00 0          [vectors]\n\n\nChris","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"jCTsBCru\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=renesasgroup.onmicrosoft.com\n\theader.i=@renesasgroup.onmicrosoft.com header.b=\"Iu4Ot2CR\"; \n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=Chris.Brandt@renesas.com; "],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjNsv0Cmdz9rxm\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 10:44:02 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnDaR-0003zZ-IJ; Thu, 31 Aug 2017 00:43:59 +0000","from relmlor3.renesas.com ([210.160.252.173]\n\thelo=relmlie2.idc.renesas.com)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnDaN-0003x7-2i for linux-arm-kernel@lists.infradead.org;\n\tThu, 31 Aug 2017 00:43:57 +0000","from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151])\n\tby relmlie2.idc.renesas.com with ESMTP; 31 Aug 2017 09:43:30 +0900","from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com\n\t[10.200.68.66])\n\tby relmlir1.idc.renesas.com (Postfix) with ESMTP id 92A9564DDF;\n\tThu, 31 Aug 2017 09:43:30 +0900 (JST)","from mail-sg2apc01lp0246.outbound.protection.outlook.com (HELO\n\tAPC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.246])\n\tby relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256;\n\t31 Aug 2017 09:43:29 +0900","from SG2PR06MB1165.apcprd06.prod.outlook.com (10.169.58.147) by\n\tSG2PR06MB0807.apcprd06.prod.outlook.com (10.162.198.145) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.1.1385.9; Thu, 31 Aug 2017 00:43:28 +0000","from SG2PR06MB1165.apcprd06.prod.outlook.com\n\t([fe80::38e1:46c3:c910:6437]) by\n\tSG2PR06MB1165.apcprd06.prod.outlook.com\n\t([fe80::38e1:46c3:c910:6437%13]) with mapi id 15.20.0013.012;\n\tThu, 31 Aug 2017 00:43:28 +0000"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References:\n\tMessage-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=tXTX/QCOxXVWr0ntUpGCTOEptMRK7CoOxV0yytogFSQ=;\n\tb=jCTsBCruCEZvEW\n\taH3+5uTdOjgLkz7xf6rwEiDg9Eij8gugrWlMy+e6pkDONiSuOiQyhEsU9Lyppc9BlHYDWblOzydj8\n\tGQDq6ztKsc2UiHPuStthGnTfoFU1l392LS+uCSnSoy1S7Y9mgGlaxaCLZ47hWYmCHWipXTP26L90N\n\tHrWG4vgz7WE+VZp10f4NSXwyv0881CgP6F1P3cx6SDyIUUvlU2CzJyXwUL6o72PX3c4mxPbIUqN+j\n\tGnK4UhTx7aB0CGrrz8qj0VL8iozY3MRisj46LTvuyQk5E/FL8cJ+DKqI0LDTBd6TBFBhR4581HR8S\n\t2ceGAXuoE8ezwlW93OIg==;","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=renesasgroup.onmicrosoft.com; s=selector1-renesas-com;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=ojtib+YA0NDhqvnWG38OfQzaG7svk+dInDUaOdro5LU=;\n\tb=Iu4Ot2CRsWhSVfFg3DVqV7wSqOt22P5Ow5QZfSUBxr66SnmKqS3JU3/FGTzgDzu1pTmdSFMD+NJrOptnq+ba/Ebvpja3V/dXLpEy/J6hBKhkJfq1v00sxNoAUIBFDJcqnDm1/L0j8T4g6tNbm0zch2UH6tG7M/qQgGKtaUFsxGg="],"X-IronPort-AV":"E=Sophos;i=\"5.41,450,1498489200\"; d=\"scan'208\";a=\"256414871\"","From":"Chris Brandt <Chris.Brandt@renesas.com>","To":"Nicolas Pitre <nicolas.pitre@linaro.org>","Subject":"RE: [PATCH v2 0/5] make XIP kernel .data compressed in ROM","Thread-Topic":"[PATCH v2 0/5] make XIP kernel .data compressed in ROM","Thread-Index":"AQHTITuKHkOU2biIfEmDwk7vgCYHIqKdbqzAgAAoT4CAAAZmcA==","Date":"Thu, 31 Aug 2017 00:43:28 +0000","Message-ID":"<SG2PR06MB11652EB1FEDDE2F40AE763B18A9D0@SG2PR06MB1165.apcprd06.prod.outlook.com>","References":"<20170830025547.30347-1-nicolas.pitre@linaro.org>\n\t<SG2PR06MB1165EF18A363D9CC4C5531FE8A9C0@SG2PR06MB1165.apcprd06.prod.outlook.com>\n\t<nycvar.YSQ.7.76.1708301951330.2606@knanqh.ubzr>","In-Reply-To":"<nycvar.YSQ.7.76.1708301951330.2606@knanqh.ubzr>","Accept-Language":"en-US","Content-Language":"en-US","X-MS-Has-Attach":"","X-MS-TNEF-Correlator":"","authentication-results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"jCTsBCru\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=renesasgroup.onmicrosoft.com\n\theader.i=@renesasgroup.onmicrosoft.com header.b=\"Iu4Ot2CR\"; \n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=Chris.Brandt@renesas.com; "],"x-originating-ip":"[75.60.247.61]","x-ms-publictraffictype":"Email","x-microsoft-exchange-diagnostics":"1; SG2PR06MB0807;\n\t20:JZmv8mE/lOgOx5A7y3vBuOlmD6s6lj+atUtnaipg+qD+++3C/DZthdTPgmwR58f0S1F9PCsCER+NmRJzDnTys+MbWaZ5VbMK70tZsLtyec+i15knmkbc6MT41dDH/Stq4sUyIuDuJHV/ZS5Iz7hpdwujzTTYPhF/fizTFV/C/IA=","x-ms-exchange-antispam-srfa-diagnostics":"SSOS;","x-ms-office365-filtering-correlation-id":"94fe004c-da99-40c1-c129-08d4f0094bc6","x-ms-office365-filtering-ht":"Tenant","x-microsoft-antispam":"UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:SG2PR06MB0807; ","x-ms-traffictypediagnostic":"SG2PR06MB0807:","x-exchange-antispam-report-test":"UriScan:;","x-microsoft-antispam-prvs":"<SG2PR06MB080799FAB5DD1966BEB995378A9D0@SG2PR06MB0807.apcprd06.prod.outlook.com>","x-exchange-antispam-report-cfa-test":"BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:SG2PR06MB0807; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:SG2PR06MB0807; ","x-forefront-prvs":"04163EF38A","x-forefront-antispam-report":"SFV:NSPM;\n\tSFS:(10019020)(6009001)(39860400002)(189002)(24454002)(199003)(97736004)(7736002)(2900100001)(9686003)(189998001)(305945005)(54906002)(81166006)(8676002)(81156014)(3660700001)(478600001)(66066001)(8936002)(5660300001)(4326008)(229853002)(25786009)(72206003)(68736007)(7696004)(14454004)(3280700002)(55016002)(6506006)(2906002)(6436002)(3846002)(102836003)(53936002)(6246003)(5250100002)(86362001)(6116002)(99286003)(575784001)(110136004)(101416001)(105586002)(54356999)(106356001)(345774005)(76176999)(50986999)(6916009)(74316002)(2950100002)(33656002)(142923001);\n\tDIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0807;\n\tH:SG2PR06MB1165.apcprd06.prod.outlook.com; FPR:; SPF:None;\n\tPTR:InfoNoRecords; MX:1; A:1; LANG:en; ","received-spf":"None (protection.outlook.com: renesas.com does not designate\n\tpermitted sender hosts)","spamdiagnosticoutput":"1:99","spamdiagnosticmetadata":"NSPM","MIME-Version":"1.0","X-OriginatorOrg":"renesas.com","X-MS-Exchange-CrossTenant-originalarrivaltime":"31 Aug 2017 00:43:28.2302\n\t(UTC)","X-MS-Exchange-CrossTenant-fromentityheader":"Hosted","X-MS-Exchange-CrossTenant-id":"53d82571-da19-47e4-9cb4-625a166a4a2a","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"SG2PR06MB0807","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170830_174355_530641_2E204F42 ","X-CRM114-Status":"UNSURE (   8.94  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-1.9 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [210.160.252.173 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Russell King -\n\tARM Linux <linux@armlinux.org.uk>, Arnd Bergmann <arnd@arndb.de>,\n\t\"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>, \n\tArd Biesheuvel <ard.biesheuvel@linaro.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1760589,"web_url":"http://patchwork.ozlabs.org/comment/1760589/","msgid":"<nycvar.YSQ.7.76.1708302058520.2606@knanqh.ubzr>","list_archive_url":null,"date":"2017-08-31T01:02:27","subject":"RE: [PATCH v2 0/5] make XIP kernel .data compressed in ROM","submitter":{"id":4652,"url":"http://patchwork.ozlabs.org/api/people/4652/","name":"Nicolas Pitre","email":"nicolas.pitre@linaro.org"},"content":"On Thu, 31 Aug 2017, Chris Brandt wrote:\n\n> On Wednesday, August 30, 2017, Nicolas Pitre wrote:\n> > > > This work highlighted some defficiencies in linker scripts, especially\n> > > > the XIP one. So this also includes linker script cleanups and fixes.\n> > >\n> > > Thank you for this!\n> > \n> > More will come eventually.\n> > \n> > Did this fix your cramfs issue with 4.13-rc7?\n> \n> Yes!\n> I just stacked on your latest set of cramfs XIP patches on top of these \n> and now magically it boots again.\n> Thank you!\n\nExcellent! If you could post this conclusion and your Tested-by in the \ncramfs thread for the benefit of that audience there that'd be helpful.\n\n\nNicolas","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"N+R7mtFD\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"ShUmZQ6+\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjPHk2T3Hz9s7G\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 11:02:58 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnDsk-0003Qs-Lg; Thu, 31 Aug 2017 01:02:54 +0000","from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnDsg-00037N-HO for linux-arm-kernel@lists.infradead.org;\n\tThu, 31 Aug 2017 01:02:52 +0000","by mail-io0-x234.google.com with SMTP id s101so13853629ioe.0\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tWed, 30 Aug 2017 18:02:29 -0700 (PDT)","from xanadu.home (modemcable199.200-80-70.mc.videotron.ca.\n\t[70.80.200.199]) by smtp.gmail.com with ESMTPSA id\n\tg41sm3242404ioj.41.2017.08.30.18.02.27\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 30 Aug 2017 18:02:28 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:Message-ID:\n\tIn-Reply-To:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=AhvO/eypUzK+OV+xorvWhr/Qiuxxh7Bsew2VYeBGA/k=;\n\tb=N+R7mtFD6QWtpf\n\t6dEN6cWnlANhw0MffBzq44DvtGrOUiSlpi84apYc8GSHzG6qTEZBxdNmkpYI4S5b9uZIsqO8dOhi1\n\trgpbk3OI7IgzjsTMeVx+PvT0ms4nQij7Vj1GRSs8loil2lXFiV4RRRTMgglv/Z68SWbtQYWmTRbqH\n\t8wOEA8+i3FKf/LwdThQjIjBXuKHdPl2W4qA/WUz79OMEP+srDpJSuLC+zUWGrvOxJBgEUuSn1WwMr\n\tPr7F0bPPuuS5QazaE+Cgovz2m1P5poZU0xP/PycmDYxShaOt5V3ivdVyfijNhQBwF6adUoL9iIUjx\n\tlDBmbmB9O2+9IXB5FugA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=date:from:to:cc:subject:in-reply-to:message-id:references\n\t:user-agent:mime-version;\n\tbh=Wh2PMOWYFSV6f5v7Xnn9T6rOf5MTMnZJZRLkqMch1Ng=;\n\tb=ShUmZQ6+NOMS8R+0wig6Q41IUHAtiWLf3NL+T+CjLXsUDkKzWlaptYkmm1vy2X4zYd\n\ttx1dG9W4FqspztEsxn82wD7/Kk9vme/nroBZYtrDOCMTfuidNSP/cbKSOmk1+lS0JnZT\n\tkbpAU9AgCMvhuCPXruT3AubIV3GwUx/YzvbrA="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id\n\t:references:user-agent:mime-version;\n\tbh=Wh2PMOWYFSV6f5v7Xnn9T6rOf5MTMnZJZRLkqMch1Ng=;\n\tb=lDHz/jhuQmW03y0b1tasyXi5hAy5PIDOLFoq7HAY5BuB6q3maIkbl0vKtZKBrSpSTF\n\tiZNnWIiEo/k6umyX/pyLgRgysq4dubC7dyx4Vj2daVTmy2jN5Dr2hIP99WSNkPhmzE9C\n\tLsv5eL4S6O/uG7dJPAauJk21x8kHQJGyJVCjlZdXR8gQXY1pPCp1dhXiCMyrX6smnE5b\n\t5lMosKZVZlEHIWB1GxrIp8SC/pEStNQyvXGU/TVYtaRGZ/fbu8ZsYQzP3pH36RT4fa05\n\tGyPslspqF2qsJk+OHW8yzc5PD1itRm4GPH13VU6+r06PWUKPzgdzaYlrA21kjnKSXxOV\n\tHJ6A==","X-Gm-Message-State":"AHPjjUiJjXfMYGWMzd6nFr+RvXLttWa+I8l2wlLwoTR2UJzNQ5NZPTOB\n\tGnJmnCHQBVXlvS+stjGeyA==","X-Received":"by 10.107.199.196 with SMTP id\n\tx187mr3147516iof.287.1504141349168; \n\tWed, 30 Aug 2017 18:02:29 -0700 (PDT)","Date":"Wed, 30 Aug 2017 21:02:27 -0400 (EDT)","From":"Nicolas Pitre <nicolas.pitre@linaro.org>","To":"Chris Brandt <Chris.Brandt@renesas.com>","Subject":"RE: [PATCH v2 0/5] make XIP kernel .data compressed in ROM","In-Reply-To":"<SG2PR06MB11652EB1FEDDE2F40AE763B18A9D0@SG2PR06MB1165.apcprd06.prod.outlook.com>","Message-ID":"<nycvar.YSQ.7.76.1708302058520.2606@knanqh.ubzr>","References":"<20170830025547.30347-1-nicolas.pitre@linaro.org>\n\t<SG2PR06MB1165EF18A363D9CC4C5531FE8A9C0@SG2PR06MB1165.apcprd06.prod.outlook.com>\n\t<nycvar.YSQ.7.76.1708301951330.2606@knanqh.ubzr>\n\t<SG2PR06MB11652EB1FEDDE2F40AE763B18A9D0@SG2PR06MB1165.apcprd06.prod.outlook.com>","User-Agent":"Alpine 2.21 (LFD 202 2017-01-01)","MIME-Version":"1.0","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170830_180250_761844_54A8BCB6 ","X-CRM114-Status":"GOOD (  16.30  )","X-Spam-Score":"-2.7 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2607:f8b0:4001:c06:0:0:0:234 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Russell King - ARM Linux <linux@armlinux.org.uk>,\n\tArnd Bergmann <arnd@arndb.de>, \"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>, \n\tArd Biesheuvel <ard.biesheuvel@linaro.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1778909,"web_url":"http://patchwork.ozlabs.org/comment/1778909/","msgid":"<CAMuHMdXnYysiDURyztXv3bhBMyk0o1EN=JzwqwvUifzw5fFYAw@mail.gmail.com>","list_archive_url":null,"date":"2017-10-03T12:41:29","subject":"Re: [PATCH v2 1/5] ARM: head-common.S: speed up startup code","submitter":{"id":703,"url":"http://patchwork.ozlabs.org/api/people/703/","name":"Geert Uytterhoeven","email":"geert@linux-m68k.org"},"content":"Hi Nicolas,\n\nOn Wed, Aug 30, 2017 at 4:55 AM, Nicolas Pitre <nicolas.pitre@linaro.org> wrote:\n> Let's use optimized routines such as memcpy to copy .data and memzero\n> to clear .bss in the startup code instead of doing it one word at a\n> time. Those routines don't use any global data so they're safe to use\n> even if .data and .bss segments are not initialized.\n>\n> In the .data copy case a temporary stack is installed in the .bss area\n> as the actual kernel stack is located within the copied data area. The\n> XIP kernel linker script ensures a 8 byte alignment for that purpose.\n>\n> Finally, make the .data copy and related pointers surrounded by\n> CONFIG_XIP_KERNEL to make it obvious what it is all about. This will\n> allow for further cleanups in the non-XIP linker script.\n>\n> Signed-off-by: Nicolas Pitre <nico@linaro.org>\n> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>\n\nThis is now commit 9520b1a1b5f7a348 (\"ARM: head-common.S: speed up startup\ncode\") in arm/for-next.\n\nIf CONFIG_DEBUG_LOCK_ALLOC=y, the kernel log is spammed with a few hundred\nidentical messages on various Renesas systems:\n\n    unwind: Unknown symbol address c0800300\n    unwind: Index not found c0800300\n\nI've bisected this to the aforementioned commit.\n\nc0800300 points to the instruction just after the __memzero call, cfr. below.\n\nDo you have a clue? Thanks!\n\n> --- a/arch/arm/kernel/head-common.S\n> +++ b/arch/arm/kernel/head-common.S\n> @@ -79,47 +79,59 @@ ENDPROC(__vet_atags)\n>   */\n>         __INIT\n>  __mmap_switched:\n> -       adr     r3, __mmap_switched_data\n> -\n> -       ldmia   r3!, {r4, r5, r6, r7}\n> -       cmp     r4, r5                          @ Copy data segment if needed\n> -1:     cmpne   r5, r6\n> -       ldrne   fp, [r4], #4\n> -       strne   fp, [r5], #4\n> -       bne     1b\n> -\n> -       mov     fp, #0                          @ Clear BSS (and zero fp)\n> -1:     cmp     r6, r7\n> -       strcc   fp, [r6],#4\n> -       bcc     1b\n> -\n> - ARM(  ldmia   r3, {r4, r5, r6, r7, sp})\n> - THUMB(        ldmia   r3, {r4, r5, r6, r7}    )\n> - THUMB(        ldr     sp, [r3, #16]           )\n> -       str     r9, [r4]                        @ Save processor ID\n> -       str     r1, [r5]                        @ Save machine type\n> -       str     r2, [r6]                        @ Save atags pointer\n> -       cmp     r7, #0\n> -       strne   r0, [r7]                        @ Save control register values\n> +\n> +       mov     r7, r1\n> +       mov     r8, r2\n> +       mov     r10, r0\n> +\n> +       adr     r4, __mmap_switched_data\n> +       mov     fp, #0\n> +\n> +#ifdef CONFIG_XIP_KERNEL\n> +   ARM(        ldmia   r4!, {r0, r1, r2, sp} )\n> + THUMB(        ldmia   r4!, {r0, r1, r2, r3} )\n> + THUMB(        mov     sp, r3 )\n> +       sub     r2, r2, r1\n> +       bl      memcpy                          @ copy .data to RAM\n> +#endif\n> +\n> +   ARM(        ldmia   r4!, {r0, r1, sp} )\n> + THUMB(        ldmia   r4!, {r0, r1, r3} )\n> + THUMB(        mov     sp, r3 )\n> +       sub     r1, r1, r0\n> +       bl      __memzero                       @ clear .bss\n> +\n\nc0800300 is the address of the next instruction:\n\n> +       ldmia   r4, {r0, r1, r2, r3}\n> +       str     r9, [r0]                        @ Save processor ID\n> +       str     r7, [r1]                        @ Save machine type\n> +       str     r8, [r2]                        @ Save atags pointer\n> +       cmp     r3, #0\n> +       strne   r10, [r3]                       @ Save control register values\n>         b       start_kernel\n>  ENDPROC(__mmap_switched)\n>\n>         .align  2\n>         .type   __mmap_switched_data, %object\n>  __mmap_switched_data:\n> -       .long   __data_loc                      @ r4\n> -       .long   _sdata                          @ r5\n> -       .long   __bss_start                     @ r6\n> -       .long   _end                            @ r7\n> -       .long   processor_id                    @ r4\n> -       .long   __machine_arch_type             @ r5\n> -       .long   __atags_pointer                 @ r6\n> +#ifdef CONFIG_XIP_KERNEL\n> +       .long   _sdata                          @ r0\n> +       .long   __data_loc                      @ r1\n> +       .long   _edata_loc                      @ r2\n> +       .long   __bss_stop                      @ sp (temporary stack in .bss)\n> +#endif\n> +\n> +       .long   __bss_start                     @ r0\n> +       .long   __bss_stop                      @ r1\n> +       .long   init_thread_union + THREAD_START_SP @ sp\n> +\n> +       .long   processor_id                    @ r0\n> +       .long   __machine_arch_type             @ r1\n> +       .long   __atags_pointer                 @ r2\n>  #ifdef CONFIG_CPU_CP15\n> -       .long   cr_alignment                    @ r7\n> +       .long   cr_alignment                    @ r3\n>  #else\n> -       .long   0                               @ r7\n> +       .long   0                               @ r3\n>  #endif\n> -       .long   init_thread_union + THREAD_START_SP @ sp\n>         .size   __mmap_switched_data, . - __mmap_switched_data\n>\n\nGr{oetje,eeting}s,\n\n                        Geert\n\n--\nGeert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org\n\nIn personal conversations with technical people, I call myself a hacker. But\nwhen I'm talking to journalists I just say \"programmer\" or something like that.\n                                -- Linus Torvalds","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"c4oDKq2o\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"jU8IZsVl\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y5zF64Vnyz9sBZ\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tTue,  3 Oct 2017 23:42:02 +1100 (AEDT)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dzMWK-0005Ok-RM; Tue, 03 Oct 2017 12:41:56 +0000","from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dzMWG-0005Mv-BW for linux-arm-kernel@lists.infradead.org;\n\tTue, 03 Oct 2017 12:41:54 +0000","by mail-wm0-x241.google.com with SMTP id t69so16389986wmt.2\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tTue, 03 Oct 2017 05:41:31 -0700 (PDT)","by 10.223.151.133 with HTTP; Tue, 3 Oct 2017 05:41:29 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:\n\tReferences:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=mjwdjoVEAWn/SrIRBh2heE7RzBbUgSj7OirfPfgCdMg=;\n\tb=c4oDKq2oFDW3gQ\n\twU7babQjjzunOD8/PSWd4XD7L/MYvfxQF4Jf3dESIjKx/MvkAV4wJmwjyHQHI0SgkdycIsuuu2wRP\n\tloO0HRJ6yGGrAu8bgbDwtg/UD8QHgSXT92F/CTtC4cxGuic743ylmWwAYNRe0Ui0W6pSUx+U+FH5m\n\tLhdijh3jJ1f318yS5X5ohtG6g5nrKUq89BrWTLjAEyhOGEIUNjzeIj7H6WV+T/GQ6i8i6aBdbkmGo\n\tSkRwzz2GLLBuIqWkz6nW9kOJtRA2WIOeJ3M20R0/zYCOQqtM2sxuv7mq3ii5DSIoPfzvYzk2b8N2f\n\tgBMcydL/Sel4L8QJRoDw==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=9tPgNjmlBanDkwZmTw1HZCQaje+bDvQo1w+S6k937l8=;\n\tb=jU8IZsVlHyjCXHF64TmQl9I/TCg1qQKfEvtsqA/xFh9UD7aH6QOZP9U9fk6PseT/DS\n\tNYFg6JiZLj9RdQ9U9HP/vt6xIRLJQt2KtwueM1IzQWaDUL1hD1rSP3VkccWAU4tb0qhj\n\tOyxlEwVPQPILhhxs0G/8Fl/cg/LXB48uflJlbbASgESvvTUEBUnJ9KcjmHKFP0ucZo6x\n\twat+HfywpoTX1o2SWJyoIaEs0SfcIICfxDLTPTA0cF62UZiSdrVe1FBtAg3bx4Hz46x+\n\tQ6VoIqwoQm4Z7GusSMnjekm4MUYnp1DwajDDRN3xW8jz17Gp7uH163RPG+BzQWOlEFJ0\n\tLlkQ=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:sender:in-reply-to:references:from\n\t:date:message-id:subject:to:cc;\n\tbh=9tPgNjmlBanDkwZmTw1HZCQaje+bDvQo1w+S6k937l8=;\n\tb=JnKLQVNhAMYuk6TFCsB9IaQChjvRKAyMZrkSUUEKJR+qFQ/ntSUJfIbV0hny3SMRNq\n\t1uMFjP7Kf3f6jlhn6KeSQxMDQqiBDpjM6UICMpw6XaTYGBwNCNndrjB7P+8uN0Nuf6ds\n\tNxVzhvIZlQ50ThLPk52lVplQGXNSKcjTZ0FTGjS24QVXg/muIvqqRcWAWTAd14RXTIXR\n\tcMNuoXzFN+1z2w7HxaTYDYGcHMwctVgiBVcm24FCV0BBSzr4GHoZdBwVH3l76o0jF7RW\n\tKMFSxCPZsIFFuDGRmaM2JmAjByEMWchI+ZMxDuvIxNhxIlCBU3PbwbAVUW4n2jEUXOqK\n\tm48Q==","X-Gm-Message-State":"AMCzsaV13Y/8Yeyvg4euEszxTNNxalDuV5SwKzjLwR98pWWsTIyqrbaY\n\tDrVxR71ML3GvdCfT37SfMHv+6cbJjHhxiLq+sNmwrfmb","X-Google-Smtp-Source":"AOwi7QDem9ljnUkbe7dOemgcmB3jhsgUP7eYggMXsV30Dh1JOw3plTJlHr2hT8W308o4NYAfNfGDsaSjSpIzRlLtFx0=","X-Received":"by 10.28.7.79 with SMTP id 76mr11016270wmh.45.1507034490263; Tue,\n\t03 Oct 2017 05:41:30 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<20170830025547.30347-2-nicolas.pitre@linaro.org>","References":"<20170830025547.30347-1-nicolas.pitre@linaro.org>\n\t<20170830025547.30347-2-nicolas.pitre@linaro.org>","From":"Geert Uytterhoeven <geert@linux-m68k.org>","Date":"Tue, 3 Oct 2017 14:41:29 +0200","X-Google-Sender-Auth":"cyDEyYcqzHyr0ruffptgg1p77Sg","Message-ID":"<CAMuHMdXnYysiDURyztXv3bhBMyk0o1EN=JzwqwvUifzw5fFYAw@mail.gmail.com>","Subject":"Re: [PATCH v2 1/5] ARM: head-common.S: speed up startup code","To":"Nicolas Pitre <nicolas.pitre@linaro.org>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20171003_054152_579392_011C2799 ","X-CRM114-Status":"GOOD (  19.28  )","X-Spam-Score":"-1.7 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (geert.uytterhoeven[at]gmail.com)\n\t0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level\n\tmail domains are different\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and\n\tEnvelopeFrom freemail headers are different","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Arnd Bergmann <arnd@arndb.de>, Ard Biesheuvel <ard.biesheuvel@linaro.org>,\n\tRussell King - ARM Linux <linux@armlinux.org.uk>,\n\tLinux-Renesas <linux-renesas-soc@vger.kernel.org>,\n\tChris Brandt <Chris.Brandt@renesas.com>,\n\t\"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1778955,"web_url":"http://patchwork.ozlabs.org/comment/1778955/","msgid":"<CAKv+Gu8BSnn3XhUALM-CfPqw2zNxovvup4uHf1F4qYZZ5oVUaA@mail.gmail.com>","list_archive_url":null,"date":"2017-10-03T13:15:29","subject":"Re: [PATCH v2 1/5] ARM: head-common.S: speed up startup code","submitter":{"id":26857,"url":"http://patchwork.ozlabs.org/api/people/26857/","name":"Ard Biesheuvel","email":"ard.biesheuvel@linaro.org"},"content":"On 3 October 2017 at 13:41, Geert Uytterhoeven <geert@linux-m68k.org> wrote:\n> Hi Nicolas,\n>\n> On Wed, Aug 30, 2017 at 4:55 AM, Nicolas Pitre <nicolas.pitre@linaro.org> wrote:\n>> Let's use optimized routines such as memcpy to copy .data and memzero\n>> to clear .bss in the startup code instead of doing it one word at a\n>> time. Those routines don't use any global data so they're safe to use\n>> even if .data and .bss segments are not initialized.\n>>\n>> In the .data copy case a temporary stack is installed in the .bss area\n>> as the actual kernel stack is located within the copied data area. The\n>> XIP kernel linker script ensures a 8 byte alignment for that purpose.\n>>\n>> Finally, make the .data copy and related pointers surrounded by\n>> CONFIG_XIP_KERNEL to make it obvious what it is all about. This will\n>> allow for further cleanups in the non-XIP linker script.\n>>\n>> Signed-off-by: Nicolas Pitre <nico@linaro.org>\n>> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>\n>\n> This is now commit 9520b1a1b5f7a348 (\"ARM: head-common.S: speed up startup\n> code\") in arm/for-next.\n>\n> If CONFIG_DEBUG_LOCK_ALLOC=y, the kernel log is spammed with a few hundred\n> identical messages on various Renesas systems:\n>\n>     unwind: Unknown symbol address c0800300\n>     unwind: Index not found c0800300\n>\n> I've bisected this to the aforementioned commit.\n>\n> c0800300 points to the instruction just after the __memzero call, cfr. below.\n>\n> Do you have a clue? Thanks!\n>\n\nHallo Geert,\n\nIt looks like this patch results in start_kernel() being entered with\na different value for lr than before. Could you please try setting it\nto zero instead, right before the jump to start_kernel() ?\n\nI don't think the patch itself is to blame here, it simply triggers an\nexisting issue in the unwinder (if my analysis is correct, of course)","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"oC6PPQah\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"EFLspNc0\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y600J16Mjz9sPr\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tWed,  4 Oct 2017 00:16:00 +1100 (AEDT)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dzN3D-0007GX-36; Tue, 03 Oct 2017 13:15:55 +0000","from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dzN39-0007Dd-KE for linux-arm-kernel@lists.infradead.org;\n\tTue, 03 Oct 2017 13:15:53 +0000","by mail-io0-x22e.google.com with SMTP id q11so7555176ioe.10\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tTue, 03 Oct 2017 06:15:30 -0700 (PDT)","by 10.107.152.18 with HTTP; Tue, 3 Oct 2017 06:15:29 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:\n\tReferences:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=BtKoRWZI9QmNGRFhr9wFVj2/oZle9OhIQvQlTMagaIY=;\n\tb=oC6PPQahPshR1Q\n\thLbbNkwfC8umLnR24mviBBlDmQWDYllp6U3h2f04anRzSeF3K/duHJwWxcxqeGszi5HL/F34y/BPK\n\tCVo61QOX+x3s2k6+X8YGm2NYLoO3babunI3L/+4Oo0coESrNH5+khwuXm+GeGT98sxV4w9Rp6/nHK\n\t/mnO3MC2YWO1nRR0TPZKIjfQWORZb29dhdsDBQX0+6IAFW0wdYbsRQujjU8FMzyLtbYZAlziyRFu/\n\tsjOd7zIzZDHqtlL4hGRslO0FB1VtZc57Am7nGNajL+eZjP5fUGxu2RUVjmT0fW2ASf47z2IBnEZZ1\n\tnTIyxDCWKoxPYDVzx3zA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=mime-version:in-reply-to:references:from:date:message-id:subject:to\n\t:cc; bh=bGc/W3dm+3O4KzqUYLB+ia1U8H4ovdhq68eEVm+tLZ0=;\n\tb=EFLspNc0jigwz82aQWb+eY2V6ZEPocXOvBXzazR00q7N9D5mTpuxAqnpgnpFa4mF7v\n\t6pO1nZQueHfO1dwgwz8XPijCyzZ60TST7F6JRNaxWytT6GNuuZyQTf6QGeByB7cT9HER\n\toE8ZGgZ8g5CJjdIioth/JZkHqLFrQrN893VLw="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc;\n\tbh=bGc/W3dm+3O4KzqUYLB+ia1U8H4ovdhq68eEVm+tLZ0=;\n\tb=DrlMba6rofAEVfRCu/dLg2gnVSAaZWJJ75fmk7qK4fKhDoE2xwcvi4vJggBj4vmVPk\n\tPjZRMxqs8L++iDWwthm143Iv8hpdKC5jUtdsJwOskS5iDMhklXD4kpCtVHP3C6xNqGPC\n\t45GIaZBOdik1mNHFpkTVzU3RyxL8X2P61IhAB8f1J0ZXdzUmO6OXKw7wNRkjXruH+fvF\n\tvOKuhyd9Cbgaa0xBVp7dJPez5Wuk67DlxGTM9r2ygJlkn6ik0Eiyk+xP6iQ5zvl5CnMT\n\tvNO5nWTGOpg/PjKsNGNMDVvoSLEggZReMZxA64nIuhPW5APG7HRSvW3xmN2vgQa2PjKK\n\tuDbw==","X-Gm-Message-State":"AMCzsaXDppYXS+6ZZnCBRamsrYyrXdiYxiV7aGDVTfzwIZJUR4eQH2gG\n\t2+d5AIaQQFtMXQwtk4UxD7aCaSqOjNdLcj1CnXiNEQ==","X-Google-Smtp-Source":"AOwi7QC9zDt8LkCLVy0D5/OE4UB5tKrCqpgv1ap2WxyLhnMvaiT7PV5HwEPZ8B/m50RJAEWZVyIt2f5fvgphiNqak64=","X-Received":"by 10.107.132.226 with SMTP id o95mr27609696ioi.79.1507036530119;\n\tTue, 03 Oct 2017 06:15:30 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<CAMuHMdXnYysiDURyztXv3bhBMyk0o1EN=JzwqwvUifzw5fFYAw@mail.gmail.com>","References":"<20170830025547.30347-1-nicolas.pitre@linaro.org>\n\t<20170830025547.30347-2-nicolas.pitre@linaro.org>\n\t<CAMuHMdXnYysiDURyztXv3bhBMyk0o1EN=JzwqwvUifzw5fFYAw@mail.gmail.com>","From":"Ard Biesheuvel <ard.biesheuvel@linaro.org>","Date":"Tue, 3 Oct 2017 14:15:29 +0100","Message-ID":"<CAKv+Gu8BSnn3XhUALM-CfPqw2zNxovvup4uHf1F4qYZZ5oVUaA@mail.gmail.com>","Subject":"Re: [PATCH v2 1/5] ARM: head-common.S: speed up startup code","To":"Geert Uytterhoeven <geert@linux-m68k.org>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20171003_061551_885311_0E6298D8 ","X-CRM114-Status":"GOOD (  18.72  )","X-Spam-Score":"-2.7 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2607:f8b0:4001:c06:0:0:0:22e listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Nicolas Pitre <nicolas.pitre@linaro.org>, Arnd Bergmann <arnd@arndb.de>, \n\tRussell King - ARM Linux <linux@armlinux.org.uk>,\n\tLinux-Renesas <linux-renesas-soc@vger.kernel.org>,\n\tChris Brandt <Chris.Brandt@renesas.com>,\n\t\"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1779097,"web_url":"http://patchwork.ozlabs.org/comment/1779097/","msgid":"<CAMuHMdXXZ6Z694VU+PByucG76NxEjiiq-+GV3uVhgBU_0f_ONA@mail.gmail.com>","list_archive_url":null,"date":"2017-10-03T15:24:06","subject":"Re: [PATCH v2 1/5] ARM: head-common.S: speed up startup code","submitter":{"id":703,"url":"http://patchwork.ozlabs.org/api/people/703/","name":"Geert Uytterhoeven","email":"geert@linux-m68k.org"},"content":"Hoi Ard,\n\nOn Tue, Oct 3, 2017 at 3:15 PM, Ard Biesheuvel\n<ard.biesheuvel@linaro.org> wrote:\n> On 3 October 2017 at 13:41, Geert Uytterhoeven <geert@linux-m68k.org> wrote:\n>> On Wed, Aug 30, 2017 at 4:55 AM, Nicolas Pitre <nicolas.pitre@linaro.org> wrote:\n>>> Let's use optimized routines such as memcpy to copy .data and memzero\n>>> to clear .bss in the startup code instead of doing it one word at a\n>>> time. Those routines don't use any global data so they're safe to use\n>>> even if .data and .bss segments are not initialized.\n>>>\n>>> In the .data copy case a temporary stack is installed in the .bss area\n>>> as the actual kernel stack is located within the copied data area. The\n>>> XIP kernel linker script ensures a 8 byte alignment for that purpose.\n>>>\n>>> Finally, make the .data copy and related pointers surrounded by\n>>> CONFIG_XIP_KERNEL to make it obvious what it is all about. This will\n>>> allow for further cleanups in the non-XIP linker script.\n>>>\n>>> Signed-off-by: Nicolas Pitre <nico@linaro.org>\n>>> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>\n>>\n>> This is now commit 9520b1a1b5f7a348 (\"ARM: head-common.S: speed up startup\n>> code\") in arm/for-next.\n>>\n>> If CONFIG_DEBUG_LOCK_ALLOC=y, the kernel log is spammed with a few hundred\n>> identical messages on various Renesas systems:\n>>\n>>     unwind: Unknown symbol address c0800300\n>>     unwind: Index not found c0800300\n>>\n>> I've bisected this to the aforementioned commit.\n>>\n>> c0800300 points to the instruction just after the __memzero call, cfr. below.\n>>\n>> Do you have a clue? Thanks!\n>\n> It looks like this patch results in start_kernel() being entered with\n> a different value for lr than before. Could you please try setting it\n> to zero instead, right before the jump to start_kernel() ?\n>\n> I don't think the patch itself is to blame here, it simply triggers an\n> existing issue in the unwinder (if my analysis is correct, of course)\n\nYour analysis looks correct to me, thanks! Patch sent.\n\nGr{oetje,eeting}s,\n\n                        Geert\n\n--\nGeert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org\n\nIn personal conversations with technical people, I call myself a hacker. But\nwhen I'm talking to journalists I just say \"programmer\" or something like that.\n                                -- Linus Torvalds","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"d2EKRZdf\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"OBsm5h4M\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"bTKwGee8\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y63J964XPz9sPt\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tWed,  4 Oct 2017 02:44:57 +1100 (AEDT)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dzPNP-0005Yp-Uy; Tue, 03 Oct 2017 15:44:55 +0000","from casper.infradead.org ([2001:8b0:10b:1236::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dzPBl-0007GG-Bx for linux-arm-kernel@bombadil.infradead.org;\n\tTue, 03 Oct 2017 15:32:53 +0000","from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242])\n\tby casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dzP3d-0001F7-41 for linux-arm-kernel@lists.infradead.org;\n\tTue, 03 Oct 2017 15:24:30 +0000","by mail-wr0-x242.google.com with SMTP id f12so229126wra.5\n\tfor <linux-arm-kernel@lists.infradead.org>;\n\tTue, 03 Oct 2017 08:24:08 -0700 (PDT)","by 10.223.147.231 with HTTP; Tue, 3 Oct 2017 08:24:06 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:\n\tReferences:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=fRVnxXrBjBTzpsOAdNP+ru/U8Hu7IEpj31pOpP3FViM=;\n\tb=d2EKRZdfEcHHF/\n\tCIz+Gi7EWH8vKhBCwcSeSoKVnHZnPifIqIuJCQw8nV+4FQUiqj8xqZX+IdEHt+SfERIlsii5Jc//H\n\tsxi8oRkZXBgq34Cvb0G+jSOAdH8Dc6uknMmvwX0p5y5UGTG/ZT+Yldxezi10EesjzWdhUaLycynls\n\t0Fh45lAZ+dVlyfqZeR9C/r8zLyU5vSmkeZtrzOwumOPQObgsg+8K6pWBSfvL5q3FvhjUKn+/GVWP7\n\tgPRKU2nR24pi9mQdrjrDo96AdAEVEpPrAAV00yN+rJ4iMzB9TLvS4+fZMFx4qTv1dcC67slsf10bf\n\tXXYKwzKTs5PDEnq0mbKw==;","v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=casper.20170209;\n\th=Content-Type:Cc:To:Subject:Message-ID:\n\tDate:From:References:In-Reply-To:Sender:MIME-Version:Reply-To:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=Wy6GcW31cqYblEIAvBt9gaySxR+Dcno1tH4GhYRJWHQ=;\n\tb=OBsm5h4MimPC5PmQN/oVrp7y5\n\tQUMIYVz42z9mqdbdu61Yw4pMaifgFI3sUafIuu9btesvpPBObUxbjTOZ6lTcCjS8f2pqSVMxaA6/6\n\teik/dx4iIpdLMEdubQrUtQslVO7dgOJYGxS/9jsjX/HtZT7oD4hJm6oZDx+SuEv3Hz64+Dagrksfz\n\tBmh1BtaFA6Lxb01P51/fQXrpZA/tBR6G3yoJWa3GNnsIJl2J2JlgxPLFU3q4hNi3yMTzSxdMnZOSo\n\tuHWv6O52glhyiE8dhvKiysvjvVNDRpmnrXg3+iDrjl+o69n4kVbV++LqcvXly0Sq5gqmOFwNLyySN\n\tBi20NKacw==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=Wy6GcW31cqYblEIAvBt9gaySxR+Dcno1tH4GhYRJWHQ=;\n\tb=bTKwGee8V4fm6d/HXVbdhINRfYjBoqZijK+2HvVaav6R3REVeNzRSvLUwqGcdMNPm8\n\tVQ0s8+6T3J62aclukqz7OVgQAd44830CYfsFmzh8pOGO8Jk/j9Qmt1jRCCip4aqFHv52\n\tRUsvAF2KZxqOuClZ6BX8YLTfTFYQbiImV0JB+MZa1eIl0FZuxjAlppn0oKuOQu7+uXvn\n\tRdQpgkdFG5aY1atoFioaQYkO440qF/CFInWclo03AWhx4Okx/9goCo3QAqCPUksoq6L3\n\tojgn+/D1k0CWY2es5bX7VhnfaiKN+oKzKQ27EDUvADqEDzrSggfttzwd5HSgB7/1d8el\n\tlHlA=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:sender:in-reply-to:references:from\n\t:date:message-id:subject:to:cc;\n\tbh=Wy6GcW31cqYblEIAvBt9gaySxR+Dcno1tH4GhYRJWHQ=;\n\tb=nlMi0z2afSaIBr3DV+OfEsnF163zywmtf0dqW1uyaizf3XNoT0Sf1ypl1fT2Iow2Fp\n\tCtUX4nXBz1MvUZCq2gefdkl6M4M83M+V0dZ+QRaFsf/D0KWj8MScFsFxmCcmpkqWL9pX\n\t0DATRvZoionWQcpiKOMq5pPZZamuG0Trj2r757a23cNPEqjwmFt7P05wYMQzidrgYJYc\n\tje2VG2WhWQDAyraN8jPd6toOm+2ySe6/IwjB4K3JrIkDUi/+V4ZwsHRD/LBjILDrwsvE\n\tNHnakmxjl0lbvI2/FMy2+j8KJU8LelZZv2C2RG3z62cMcf0M+4wVVrm9B2pHt6lM/sfc\n\tcWUw==","X-Gm-Message-State":"AMCzsaWvKhHt0EsK+TknIe+fdSvXnyqv6m9ztEJvIUBcluIfLI24jIpp\n\t00Ump01yCeSP3NUDxEFk/wRQWobACWLDV2ZJWJM=","X-Google-Smtp-Source":"AOwi7QB/ZMhFFSFkhYw6PfTJSy6SE3NUKxvN64kasQz1E+n0r7K5hB4e4DYJLtY8u4+PM4UcG5BupJQFhe2INnBpdHk=","X-Received":"by 10.223.160.51 with SMTP id k48mr11270130wrk.187.1507044247546;\n\tTue, 03 Oct 2017 08:24:07 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<CAKv+Gu8BSnn3XhUALM-CfPqw2zNxovvup4uHf1F4qYZZ5oVUaA@mail.gmail.com>","References":"<20170830025547.30347-1-nicolas.pitre@linaro.org>\n\t<20170830025547.30347-2-nicolas.pitre@linaro.org>\n\t<CAMuHMdXnYysiDURyztXv3bhBMyk0o1EN=JzwqwvUifzw5fFYAw@mail.gmail.com>\n\t<CAKv+Gu8BSnn3XhUALM-CfPqw2zNxovvup4uHf1F4qYZZ5oVUaA@mail.gmail.com>","From":"Geert Uytterhoeven <geert@linux-m68k.org>","Date":"Tue, 3 Oct 2017 17:24:06 +0200","X-Google-Sender-Auth":"OQ8k0CuYQTMuZDlybHiTz9LzGAA","Message-ID":"<CAMuHMdXXZ6Z694VU+PByucG76NxEjiiq-+GV3uVhgBU_0f_ONA@mail.gmail.com>","Subject":"Re: [PATCH v2 1/5] ARM: head-common.S: speed up startup code","To":"Ard Biesheuvel <ard.biesheuvel@linaro.org>","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20171003_162429_174771_8561FDC1 ","X-CRM114-Status":"GOOD (  34.85  )","X-Spam-Score":"-1.7 (-)","X-Spam-Report":"SpamAssassin version 3.4.1 on casper.infradead.org summary:\n\tContent analysis details:   (-1.7 points, 5.0 required)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c0c:0:0:0:242 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level\n\tmail domains are different\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (geert.uytterhoeven[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and\n\tEnvelopeFrom freemail headers are different","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"Nicolas Pitre <nicolas.pitre@linaro.org>, Arnd Bergmann <arnd@arndb.de>, \n\tRussell King - ARM Linux <linux@armlinux.org.uk>,\n\tLinux-Renesas <linux-renesas-soc@vger.kernel.org>,\n\tChris Brandt <Chris.Brandt@renesas.com>,\n\t\"linux-arm-kernel@lists.infradead.org\"\n\t<linux-arm-kernel@lists.infradead.org>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}}]