From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CE55C31E45 for ; Fri, 14 Jun 2019 02:59:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E37CF2147A for ; Fri, 14 Jun 2019 02:59:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BEqJ8SwQ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DSTLds/t" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E37CF2147A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=xq5qIABvcbLdxS2wmY7A4m6BxRMxZHNUd9hUPjcCX4w=; b=BEq J8SwQEpB/7SMvTiks0B7PvS6lBNliHwr3/7tgJz1nL+XTS1f3IqmPBOxn9hBoe9qCUTduLTQKcX6s EcGV3lp182NkrTKczG7+69SQ8hbsiHj/muoGtW7MKC6vxY013rQS7qrruYFnew+9PxXuFZHmsRM6W y3tf1BTQgo5eOfzt3MK8BCTPf9ZAIZzNGm8yMa291ZMjr70pOKcwLsTLI/+M77y1jYkVabRB+4kEr vbRVDmOPEhmOelqXBDigYMtMdKghB0faUfxUm6h/r0o6UtS7nnG5ifkdaC0lGcek93bjG84PKS0ya z/8JOE/x2UX4AJUdVH/1Jk4qzk19+9g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hbcRS-0003Bm-Uy; Fri, 14 Jun 2019 02:59:50 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hbcRQ-0002tR-2k for linux-arm-kernel@lists.infradead.org; Fri, 14 Jun 2019 02:59:49 +0000 Received: by mail-pg1-x543.google.com with SMTP id s27so667337pgl.2 for ; Thu, 13 Jun 2019 19:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=DyBxcguYr0pwpEA8xS0kQBgyqMMk8fvfBxMPOX56hn4=; b=DSTLds/txoUxikicIxk+jfatAZ00LsbrrYlHf84ZuDRVrDCmIpKEfeqvv86Q1AIdsq lqvNt9+50ZRdjJdo71qYg/DMVOXQ/BFWWOpNsiXs3oTh6JpnzeGs+0lAafUT2td/x0/N SpKEZiwmZLt2pJBl0DKRRXo8SJBeCKRHsrN6PYf/lZjqWHosb4ca1+HDIPTT1Bz2wKfL 5jqgut1Ai65s9HvDwVHdE/xODUiQCSBfWQXlvf37w+oiy85av3c8VyOJeGE/aZN0ppay DHHiYsbdlAZeudIBec1hVdNaL5sgCkJZb0KqSNdAvQQIH/U6rAHztznpVA8z5OmaZV9x CxKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DyBxcguYr0pwpEA8xS0kQBgyqMMk8fvfBxMPOX56hn4=; b=chYIHAOthwIUSGXHxVRIzUQ1cdI83wYn9N8RGdSVnLB9JTbXT0nu5o45CB+BivZ9i9 6iJQsd6i7YR50JNrfPMOGEXogmjHqZyq6Nh6Z+GoNfbzgwTGae7mWKDYYSFuurQppT5R 8WurLdNUe41yE+sWxnddSmY2ekAavCRba+QKn15AQT9UNTB6lKwQy/3BHK+6+5nvmHgH 6+fi2aiiiL2OYqCBn6ry3zjJBD6n62qkQj5ZU9AD0tIPBAfILz3N0s32+G8aggRn5PiK D9u5CItwgdHkfp2sGbeZNEfSEia95pB1uyOvP5z55XCEJghXYyRpZb5OfyrYxQntozk4 rvIw== X-Gm-Message-State: APjAAAWomyGTQSeF9l0c9CEN0rwYhF4gwjBoaaZrWHhpxJgE9rE66Vtw TwJ6WDhYGvWIh4UORTW7kK8= X-Google-Smtp-Source: APXvYqxrzBOrrex6Zoyo5EefrUU1+d4fKYIriMstlsBiwbRJ/sVc+YWrkgnxy6eAX9OWatQGJLeMHw== X-Received: by 2002:a63:8449:: with SMTP id k70mr34549119pgd.208.1560481182361; Thu, 13 Jun 2019 19:59:42 -0700 (PDT) Received: from localhost.localdomain ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id l21sm1051079pff.40.2019.06.13.19.59.40 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 13 Jun 2019 19:59:41 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@vger.kernel.org Subject: [PATCH] arm64: Allow user selection of ARM64_MODULE_PLTS Date: Thu, 13 Jun 2019 19:59:32 -0700 Message-Id: <20190614025932.533-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190613_195948_129572_72EDD9D4 X-CRM114-Status: GOOD ( 12.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Fainelli , ard.biesheuvel@linaro.org, Catalin Marinas , Will Deacon , open list , bcm-kernel-feedback-list@Broadcom.com, "moderated list:ARM64 PORT AARCH64 ARCHITECTURE" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Make ARM64_MODULE_PLTS a selectable Kconfig symbol, since some people might have very big modules spilling out of the dedicated module area into vmalloc. Help text is copied from the ARM 32-bit counterpart. Signed-off-by: Florian Fainelli --- arch/arm64/Kconfig | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 697ea0510729..36befe987b73 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1418,8 +1418,20 @@ config ARM64_SVE KVM in the same kernel image. config ARM64_MODULE_PLTS - bool + bool "Use PLTs to allow module memory to spill over into vmalloc area" select HAVE_MOD_ARCH_SPECIFIC + help + Allocate PLTs when loading modules so that jumps and calls whose + targets are too far away for their relative offsets to be encoded + in the instructions themselves can be bounced via veneers in the + module's PLT. This allows modules to be allocated in the generic + vmalloc area after the dedicated module memory area has been + exhausted. The modules will use slightly more memory, but after + rounding up to page size, the actual memory footprint is usually + the same. + + Disabling this is usually safe for small single-platform + configurations. If unsure, say y. config ARM64_PSEUDO_NMI bool "Support for NMI-like interrupts" -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel