Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2479061pxb; Mon, 18 Jan 2021 20:36:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBqBH6Vbnw/KOWQkPEK+lIdRuhSIm8KzBnjwQLK3bmMxtfoFYw8jUhtROy4Ejh4fyFzdiH X-Received: by 2002:a17:906:2984:: with SMTP id x4mr1801750eje.239.1611030991544; Mon, 18 Jan 2021 20:36:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611030991; cv=none; d=google.com; s=arc-20160816; b=uyd49NtsUfGTr/4vYSqMKGk1j2JF+e+Sx7zV5wgCE8y24qC4YNOi/Ctk8bYGAoPVm9 l8Gj/RXTiQai229qC8Mal9Vqz5U+B+xmJYpY1TFJ3QSWt/F1O2euBuecAdc6efa/QUzF urUVGark4qtPRpzv4NIOK48ljqotEeDkz5J01OwIden12xNDwagtQBNDVVttC4lKG5Xd Z2W/pr1nRmONhQWiignYcdQQ8I+ufLqPxaI08z68n6X5HALnRnznVACCnp6UETfv9hWJ 3mqw4eLGBUzcHeuGW0kgtHlmQBt2M5lJCxHP0L4EyJleP24c/+fbyEryvy1dbpXwkX2T FSAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=//mRNweBNKlhuTLdRXiRCvdSTdLaxtUlZre2MFEzPII=; b=bPMm3cDrQSuEIs4SmpHQ1UTIK3nKEiS+9cIbz17plfd7POrp3OuZi4J4tlu+3u2VPP DF2eNVtikehvjj+8Q/8YM2WP1u8DddU9aLJ5jCxapTOoZpYRKUmcsuCB/r9GyPxBeGgt UZFIvLSYzlCGE5bAfPFeSgpzpt1PMnOwsYTRg+Ov9IASAjEVGxKysDlag26a+bbSZFh1 F7Dz8aMi/D1F7KJJtn7A9l+KaOBiLtZtaA+suWRcEPancqQKnIa73rQki4egy1NiHx5L B+/vT9VCLGF0/ICAaqkpiMHNPag1Q0R88ZzYhzL9PvFlcZKzZdXw1gInBO6BQwAlM1K6 z1cA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si2685144edp.379.2021.01.18.20.36.08; Mon, 18 Jan 2021 20:36:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393100AbhARO7I (ORCPT + 99 others); Mon, 18 Jan 2021 09:59:08 -0500 Received: from elvis.franken.de ([193.175.24.41]:33803 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393055AbhARO6x (ORCPT ); Mon, 18 Jan 2021 09:58:53 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1l1Vyq-0008VQ-01; Mon, 18 Jan 2021 15:58:08 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id A961EC06E7; Mon, 18 Jan 2021 15:57:58 +0100 (CET) Date: Mon, 18 Jan 2021 15:57:58 +0100 From: Thomas Bogendoerfer To: Alexander Lobakin Cc: Nathan Chancellor , Nick Desaulniers , Kees Cook , Andrew Morton , Mike Rapoport , Jinyang He , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH mips-next 0/2] MIPS: optimize relocations processing Message-ID: <20210118145758.GB11749@alpha.franken.de> References: <20210116150126.20693-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210116150126.20693-1-alobakin@pm.me> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 16, 2021 at 03:01:57PM +0000, Alexander Lobakin wrote: > This series converts the logics of two main relocation functions, > one for relocatable kernel and one for modules, from the arrays of > handlers (callbacks) to plain switch-case functions, which allows > the compiler to greatly optimize the code, so the relocations will > be applied faster with lesser code size. > > Tested on MIPS32 R2 with GCC 10.2 and LLVM 11.0 with -O2. > > Alexander Lobakin (2): > MIPS: module: optimize module relocations processing > MIPS: relocatable: optimize the relocation process > > arch/mips/kernel/module.c | 109 +++++++++++++++++------------------- > arch/mips/kernel/relocate.c | 54 ++++++++++-------- > 2 files changed, 82 insertions(+), 81 deletions(-) series applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]