From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 29 Sep 2015 16:27:48 +0200 (CEST) Received: from localhost.localdomain ([127.0.0.1]:47818 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S27008853AbbI2O1qtUqrv (ORCPT ); Tue, 29 Sep 2015 16:27:46 +0200 Received: from scotty.linux-mips.net (localhost.localdomain [127.0.0.1]) by scotty.linux-mips.net (8.15.2/8.14.8) with ESMTP id t8TERkLc005339; Tue, 29 Sep 2015 16:27:46 +0200 Received: (from ralf@localhost) by scotty.linux-mips.net (8.15.2/8.15.2/Submit) id t8TERkUQ005338; Tue, 29 Sep 2015 16:27:46 +0200 Date: Tue, 29 Sep 2015 16:27:46 +0200 From: Ralf Baechle To: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Cc: linux-mips@linux-mips.org Subject: Re: [PATCH] MIPS: Use ARCH_USE_BUILTIN_BSWAP. Message-ID: <20150929142745.GD2505@linux-mips.org> References: <20150929102855.GA1319@linux-mips.org> <20150929115222.GA2505@linux-mips.org> <20150929132849.GC2505@linux-mips.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 49400 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Tue, Sep 29, 2015 at 02:34:12PM +0100, Måns Rullgård wrote: > >> >> text data bss dec hex filename > >> >> 3996071 155804 88992 4240867 40b5e3 vmlinux ip22 baseline > >> >> 3985687 159900 88992 4234579 409d53 vmlinux ip22 + bswap patch > >> >> 6913157 378552 251024 7542733 7317cd vmlinux ip27 baseline > >> >> 6878581 378552 251024 7508157 7290bd vmlinux ip27 + bswap patch > >> >> 5773777 268752 187424 6229953 5f0fc1 vmlinux malta baseline > >> >> 5773401 268752 187424 6229577 5f0e49 vmlinux malta + bswap patch > >> > > >> > A still unexplained effect of this patch and the reason why I have not > >> > committed this patch is the increase of the data size for the ip22 > >> > configuration by 4096 bytes. There is no change in data size expected. > >> > Also this affects only the test with ip22_defconfig not any of the others > >> > I've tried. > >> > >> Have you checked which object file(s) the increase comes from? > > > > The data size difference is created in the final link stage. data for > > all inividual .o files even vmlinux.o; only vmlinux differs. > > Could it be an alignment thing. Check if the alignment of some data > section has changed from something smaller to 4096. Almost. Alignment has changed but 8k alignment of init_thread_union forced the linker to waste an extra 4k. I always knew this could happen but never actually observed this. Hard to avoid but it's yet another reason to minimize stack size which on MIPS may be up to 4 pages for 64 bit kernels with 4k pages. Ralf