Received: by 10.223.185.116 with SMTP id b49csp1172221wrg; Wed, 14 Feb 2018 12:47:39 -0800 (PST) X-Google-Smtp-Source: AH8x226iyvB7qCmbSmek/coVmD2n8UlyMjwnuz2bNtk7TNbKQXqZmmWVipxXSHuwEisD3qqGO1cD X-Received: by 10.101.80.3 with SMTP id f3mr246786pgo.242.1518641259135; Wed, 14 Feb 2018 12:47:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518641259; cv=none; d=google.com; s=arc-20160816; b=qJWaEMBH115t81YyeX2xgPxMTj6ZMq7OqHpnrudqnHgnTtVB5FxRdzVJLBYbAphJb+ DL9FHmbaymAYN9u4aW9arPGmgeK+VB8YyFKy6z6hBWHj/i1EhCW08cinc7Z0TmLYCF+B oIgFsLm6L2WZKZPnth4LHnnsaqfuffXQLuHxtITD/hr9E8VDA7mEGjWWAvxz2o9ovZav N8YaQDk/guy9WHdsfvnDEOLN1r3t7e4ZLVQbYDEyPDqehU/ZGXUptk4zuqJAA76S3XA3 tlQdUqIo8ZC30EyBuZ6yj2hYcTx50mFUX+wmdg7Oxi6lfG1yB5uNbc/xvOO+SIO2meVG uEjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ggwc8A/ZbO3Dl3YRbTBz3PK2AvMINo6285hZ5BovC9o=; b=1Du2y+6NhdaKjh9ZXoj2TGfQGDSG1ZPX+w3rOUjU90JzgLLFJm0QnjOwaiux19WcEs NF7RBXP9xp++KXWi5QCfkXmplDM/e++0igjISQkN5rYvYkcwwJHNzn3hOHHlNfIqSjYF MkhJVfJnfFXEhA7mqzeGP+r+fuZcAqxoJgGhpV8D+zFXwUSukIHvi2RXilsDoSKXaVH9 UJ4F8a2Sj6GdZ0rHDBTmRvAiZeWsSYceoX8AAWaEXVqU1cipAkcFXZTyddSYLphjzVjI plyah9l3zYj9bG9lDYKXB/0n/1OQJzCV9eMFwQk1XwQC/kUpf4WlKWcpY4GK1CNfYB8M E7Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e7svJaij; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z63si371710pgb.792.2018.02.14.12.47.24; Wed, 14 Feb 2018 12:47:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e7svJaij; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030756AbeBNUqh (ORCPT + 99 others); Wed, 14 Feb 2018 15:46:37 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:46292 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030206AbeBNUqg (ORCPT ); Wed, 14 Feb 2018 15:46:36 -0500 Received: by mail-pl0-f65.google.com with SMTP id x19so518583plr.13 for ; Wed, 14 Feb 2018 12:46:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ggwc8A/ZbO3Dl3YRbTBz3PK2AvMINo6285hZ5BovC9o=; b=e7svJaijDBFX/bDXeDlGLTqCg7YLZZko4meSwuBky5+PNZYO1tT+9E/Uy6KglNaWhG FOBExkpfVIH+iFXTKm2ID8pRgnYpKlnMwo2PVo9vY9KnLODIaPq6Gu+YKojcibgkByRj nvNxcrA//u4rAYzIvXfvLQccOQGu/YccOCcj4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ggwc8A/ZbO3Dl3YRbTBz3PK2AvMINo6285hZ5BovC9o=; b=Su7mxbmCRTuHCiWBcF8DIRqaquYTgdE3p+T/iwKK3OQccDQ8XpHweavriQpGn0SLGI EqxXYYcL69BT3lXCyAfD1PbYDzThKeS3zv/kSV8lbNZvHeIhv31x+0Xr/wsn2iXQLSyQ Dxc1OIOeqL6cxOOX/Akg843noxlH4XEm2P8RdAvE/5p8/aqUSIpX2LH2xrifE/HBPrM9 BnOH+r2KM9jz5hVQV/6Rgj8JMV0Vd4y/BPZBRCrrfBdisYogWAHHPiBzZEGHRHrMnyAH J+JOBixm2bqn5xuE78hNGBcfknH70KYk1Q432TU9bu/gb2F6KsVBB6YxaR8QlaIQYUsA r/QQ== X-Gm-Message-State: APf1xPBpqE06eT1FgO8Qw8PTbc+1FmbTbZMevDwp5xBHD9/LmHHjSjBn 76iYuwmSeHaq5uYzzXkk7Ffo4wCq6ztdPpI40YUASA== X-Received: by 2002:a17:902:7886:: with SMTP id q6-v6mr265919pll.364.1518641195536; Wed, 14 Feb 2018 12:46:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.166.12 with HTTP; Wed, 14 Feb 2018 12:46:35 -0800 (PST) In-Reply-To: <20180131202506.GI9418@n2100.armlinux.org.uk> References: <20180129234900.11121-1-anders.roxell@linaro.org> <20180131201911.19253-1-anders.roxell@linaro.org> <20180131202506.GI9418@n2100.armlinux.org.uk> From: Anders Roxell Date: Wed, 14 Feb 2018 21:46:35 +0100 Message-ID: Subject: Re: [PATCHv2] arch/arm/Kconfig: default ARM_MODULE_PLTS to 'y' To: Russell King - ARM Linux Cc: Linux ARM , Linux Kernel Mailing List , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31 January 2018 at 21:25, Russell King - ARM Linux wrote: > On Wed, Jan 31, 2018 at 09:19:11PM +0100, Anders Roxell wrote: >> While testing multi_v7_defconfig with LOCKDEP enabled, the kernel >> fails to load simple modules, as reported by kselftest: >> >> [ 34.107620] test_printf: section 4 reloc 2 sym 'memset': relocation >> 28 out of range (0xbf046044 -> 0xc109f720) >> selftests: printf.sh [FAIL] >> >> The problem that is seen when LOCKDEP is enabled without >> ARM_MODULE_PLTS, is that LOCKDEP eats so much memory that the top of the >> kernel gets out of reach from the bottom of the module area. > > As I've said three times already (and clearly the message still hasn't > sunk in), it does _not_ follow that "enable lockdep" means "lots more > memory used". We could say the same thing about several other kernel > options as well. Please remove this from your commit message. Sorry, I meant to show this as an example in v2, but forgot to update this part of the change log. > > > > Maybe you'd like to send your configuration file so we can see how much > is enabled in your kernel. At that point I'll make a decision, but > until then, I'm not going to say that even what I suggested is an > acceptable way forward. Here's the config file[1] that is using. I'm obviously ignorant here, but whats the disadvantages of enabling this option by default? My understanding is that the module size gets slightly larger by enabling this option but nothing else? Obviously, if the default is changed to yes, the last part of this option's help message also need to change. To something like: "Say n if you know that you wont get out of memory errors while loading modules" Cheers, Anders [1] http://snapshots.linaro.org/openembedded/lkft/morty/am57xx-evm/rpb/linux-mainline/622/config > >> >> Suggested-by: Arnd Bergmann >> Signed-off-by: Anders Roxell >> --- >> arch/arm/Kconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >> index 51c8df561077..8014c8c322df 100644 >> --- a/arch/arm/Kconfig >> +++ b/arch/arm/Kconfig >> @@ -1702,6 +1702,7 @@ config ARCH_WANT_GENERAL_HUGETLB >> config ARM_MODULE_PLTS >> bool "Use PLTs to allow module memory to spill over into vmalloc area" >> depends on MODULES >> + default y >> help >> Allocate PLTs when loading modules so that jumps and calls whose >> targets are too far away for their relative offsets to be encoded >> -- >> 2.11.0 >> > > -- > RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ > FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up > According to speedtest.net: 8.21Mbps down 510kbps up