Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1780665rdb; Sat, 20 Jan 2024 13:13:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGz0che+5g9ljydVJ8bmqlspDI8VH9gmBbdE73wAHyXIoOl9KcbkyItJ4VTary9OOd7+QbV X-Received: by 2002:a0c:e08a:0:b0:684:b789:5508 with SMTP id l10-20020a0ce08a000000b00684b7895508mr2579675qvk.31.1705785187040; Sat, 20 Jan 2024 13:13:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705785187; cv=pass; d=google.com; s=arc-20160816; b=qW+MnT4MF8cRQzAL5We0SUV132xrxwXkGsQW5aE3m3Zu1WxvkLHHmmYEfGYa6IFkqv sOiABG5A4R8Mm3i8sGH1dfGAyrR+u0Sb2Uem4mykCYiIQs9WWFF6vk9fojPAqDxYLp6N K6uhs6rFEHIvAqyqVxTTXjhOBJhvSFvAskxRpSXUZCOev6b+HsU3/ZH+CxvifRNCi61k pxUuMGDz/b+WAxmq9+kjpSBr8hsrcD/ORz4w62Z+cYw5CwhAT+huPTT9dtsMXlDwjz5N IBeMnI3K4z7dHw0r34MMFrNE9EVBC0buDWdjUz3k3n/WlpVH1qgq4Kp4jHmJ0kZMsR+r Yw/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=VhhGFfpYdyPF+K/sd7hNtRya+STzfnMGnqOGcgyY8xI=; fh=/4DtbhlY4S0bFrepI0Cjlwzn+BisbSZt0Wk0pk5jMNs=; b=HBmcrQMgG3aG/elLTU64W87v8eaDgD0Q6XEE82MEHm7ZIY7Bdphr2XNb/HmCW+heWf RN7aOvz2JnOPJeXFc399Jc1Ke+TS78Q/eV+I9+5EbN3pjS5SmIsfI9FB5NM2uvo6a8xE v+BzYgUcuWTWsLp/mhiAhN1kEn+Wkcrgd6T0ohSpXFHeYtxnCglglBhWyzkoSCftuGfo B9m77R2be4nr3FS6lRXUA/3+hGSLQtmL0MEc/wJunmW1qhxjRFn86IQd2yMebIA86nKJ FeW2bWPSODKyAQvH5g+3Hox3zzA/bm79L976ujXpYBAQVM3JoTD91prwFjUs8mzrWYQi 0T/w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=czTnM6gw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e25-20020a0cb459000000b006861cd0d440si1124752qvf.528.2024.01.20.13.13.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 13:13:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=czTnM6gw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C65F21C20B52 for ; Sat, 20 Jan 2024 21:13:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A453A28E2D; Sat, 20 Jan 2024 21:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="czTnM6gw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91F79208C9 for ; Sat, 20 Jan 2024 21:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705784999; cv=none; b=qLQae1dPrCFTyBP2nGgQdiBCzcKxbms+DorTVwylK+BH/ZoGh64ubk0NyAIA+khAh/OUP/he3g7LmGgyPxT274diYTU4Oz6gj4i3A/JX/DGllbrZv4PGNhh26u+I4CiIc82zo6pDA/z91NwbsQBpPfFrZ4j14Xl2MvSOj0/aGIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705784999; c=relaxed/simple; bh=3pKI7Q2xGS+keEw8XPbBylHL6NJ5AoMP/3E4CwOX1y4=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=SP4JqiJSpvLUYn3StXOPH6WNLYftY/9sU4qZ8GE2awVklgp30V1EFfo7yp2i+gEECOFnLas1I8C3e0BNF0gpGHl7fCl7fWmgHYBTbKVdTePuqAbR900FZPK4/uKI5zRY2WQ3UmTGBaqYma8eYKj+YxjX/cyKdmJlhr8BKZ4vGaI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=czTnM6gw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 49FEAC43142; Sat, 20 Jan 2024 21:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705784999; bh=3pKI7Q2xGS+keEw8XPbBylHL6NJ5AoMP/3E4CwOX1y4=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=czTnM6gwEOanNR2SBguDowD8dYDt5D9AEwSrWTuZ6403O8NsPMTWl1uIrugYY4XrU ch15I+3JhjkOGIPDF7+ZjnBTbeEdT/buFVuwmm0Gbx3WQa3uyEKafNya5me4dQZTxh H76rd205lDGBMdMoYxs65rx5kPw+jo1beOiS+hdzpEyevReeopU2cwAA7LvCixnDUB MCoQj3Jg6JfhqI+Na/BRuNrKVf8xJ+38CXGG4owX4ROp9hXX8kS39MkJ7nGp8nEd/n uxb45lJoaO+BV2XFl4wfdQ6t0jHelXZooWN1ervcMAhjfeYU038JQ7oYPH88iVAK2z eREL0C7Y2PKkw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 35B09D8C96C; Sat, 20 Jan 2024 21:09:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v5 1/1] riscv: optimize ELF relocation function in riscv From: patchwork-bot+linux-riscv@kernel.org Message-Id: <170578499921.24348.3990929964303626751.git-patchwork-notify@kernel.org> Date: Sat, 20 Jan 2024 21:09:59 +0000 References: <20231214063906.13612-1-fido_max@inbox.ru> In-Reply-To: <20231214063906.13612-1-fido_max@inbox.ru> To: Maxim Kochetkov Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, charlie@rivosinc.com, ajones@ventanamicro.com, conor.dooley@microchip.com, jszhang@kernel.org, kernel@esmil.dk, lixiaoyun@binary-semi.com Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Thu, 14 Dec 2023 09:39:06 +0300 you wrote: > The patch can optimize the running times of insmod command by modify ELF > relocation function. > In the 5.10 and latest kernel, when install the riscv ELF drivers which > contains multiple symbol table items to be relocated, kernel takes a lot > of time to execute the relocation. For example, we install a 3+MB driver > need 180+s. > We focus on the riscv architecture handle R_RISCV_HI20 and R_RISCV_LO20 > type items relocation function in the arch\riscv\kernel\module.c and > find that there are two-loops in the function. If we modify the begin > number in the second for-loops iteration, we could save significant time > for installation. We install the same 3+MB driver could just need 2s. > > [...] Here is the summary with links: - [v5,1/1] riscv: optimize ELF relocation function in riscv https://git.kernel.org/riscv/c/080c4324fa5e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html