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=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,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 C50D9C10F0E for ; Tue, 9 Apr 2019 21:26:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9156921841 for ; Tue, 9 Apr 2019 21:26:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=rasmusvillemoes.dk header.i=@rasmusvillemoes.dk header.b="KBBodNXy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726968AbfDIV0W (ORCPT ); Tue, 9 Apr 2019 17:26:22 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:45737 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbfDIV0B (ORCPT ); Tue, 9 Apr 2019 17:26:01 -0400 Received: by mail-ed1-f68.google.com with SMTP id o26so96049edv.12 for ; Tue, 09 Apr 2019 14:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0w4/Dek1MuUw9RUJIx68ZSWHBKjhr7mhry+FNPNfIwY=; b=KBBodNXybAF2N0oz3UqQW4QAQhMFuL7IUEI2k3dTe9WGsBNYEUkj/w1uX4ecLowxEq QLufKDomd2RHIqVh46h3AejR6bT/lPVcPfp6/vgtb995pJp8fT7ykJ97joGs8fixSd5h 8Pwh7h2lgwaytAjGlQi+1MLKOANFZp7rSTvf4= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=0w4/Dek1MuUw9RUJIx68ZSWHBKjhr7mhry+FNPNfIwY=; b=KcLJXyztrbOu9cW1ic9TibQs7kyWCojlt093fPy0d/jW/9v5hxSeDAsFWwSlNuJUWh YvUruaY2aZaj0uytw4hShXcSjrdHkAJA+X01gGAnSjF1JfM4kTMnY2Ly/4MNTH3F9gh9 ntHJ55vF7yZdE00pMXbdCSL/QxSFme7oX9hpsJw2MbkAa0OieOKfKZ12FcfHUQg72lo9 mCOylY/DVwPmWl4ak7KOp8OVt8wSI7XMryyDbIaoFi5mX7Nznc0F4Z8U6ArWeZYFQ961 QzuVITGqLLvc06qxmudK0xe1fB/5sB66iegovTYP7QaXzKp8tRFzVFUjvgK73zuuFm8V 3f1w== X-Gm-Message-State: APjAAAVFpZt153KXARg7UQJToFPxo6moBjK3puEjW0Dg92DC3pI3IaBP F0PH4dQPpxmg87s9e/HaArplVQ== X-Google-Smtp-Source: APXvYqzibpE9q7ZYACnBi7xa1MPMRgPRkeGW7TzqdFCwCosgloKMSxnGgPQmDbXVEfUbKJl7CwQ8jg== X-Received: by 2002:a50:9179:: with SMTP id f54mr24290864eda.207.1554845159330; Tue, 09 Apr 2019 14:25:59 -0700 (PDT) Received: from prevas-ravi.prevas.se (ip-5-186-118-63.cgn.fibianet.dk. [5.186.118.63]) by smtp.gmail.com with ESMTPSA id i26sm3477986ejc.51.2019.04.09.14.25.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 14:25:59 -0700 (PDT) From: Rasmus Villemoes To: Andrew Morton , linux-arm-kernel@lists.infradead.org Cc: Jason Baron , linux-kernel@vger.kernel.org, Rasmus Villemoes , Will Deacon Subject: [PATCH 09/10] arm64: select DYNAMIC_DEBUG_RELATIVE_POINTERS Date: Tue, 9 Apr 2019 23:25:16 +0200 Message-Id: <20190409212517.7321-10-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190409212517.7321-1-linux@rasmusvillemoes.dk> References: <20190409212517.7321-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Similar to GENERIC_BUG_RELATIVE_POINTERS, one can now relativize the four const char* members of struct _ddebug, thus saving 16 bytes per instance (one for each pr_debug(), dev_debug() etc. in a CONFIG_DYNAMIC_DEBUG kernel). The asm-generic implementation seems to work out-of-the-box, though this is only compile-tested. Signed-off-by: Rasmus Villemoes --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/Kbuild | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7e34b9eba5de..d0871d523d5d 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -83,6 +83,7 @@ config ARM64 select CRC32 select DCACHE_WORD_ACCESS select DMA_DIRECT_REMAP + select DYNAMIC_DEBUG_RELATIVE_POINTERS select EDAC_SUPPORT select FRAME_POINTER select GENERIC_ALLOCATOR diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild index 1e17ea5c372b..1ead0d645686 100644 --- a/arch/arm64/include/asm/Kbuild +++ b/arch/arm64/include/asm/Kbuild @@ -3,6 +3,7 @@ generic-y += delay.h generic-y += div64.h generic-y += dma.h generic-y += dma-contiguous.h +generic-y += dynamic_debug.h generic-y += early_ioremap.h generic-y += emergency-restart.h generic-y += hw_irq.h -- 2.20.1 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=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 27C12C10F0E for ; Tue, 9 Apr 2019 21:26:29 +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 E661220883 for ; Tue, 9 Apr 2019 21:26:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AzHj1QRh"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=rasmusvillemoes.dk header.i=@rasmusvillemoes.dk header.b="KBBodNXy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E661220883 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rasmusvillemoes.dk 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=qNYyn/XShhLNxmiEq3BVvDBFAMqwdjAHCar8DeycNv4=; b=AzHj1QRhePCY34 bbGyYfSvtW4CVIxHiObLj2NVtDfbai6dMIfa2G9yL60JODUk1aKR+QfZze+GuXp0sgJf4MIMRrTkB aO+WWMzvUcC6l4WCgr8j+9wl9tGhTL1FZtSIHTDSAGG7cdEHzwocJYTrjs5ytagEcJgnmtYw4h/tS k5lcRhv0TpNfb3QxPHNJv2/n+Mz6kibXbHAaMIyPJ/1TAsrDT+0t6hpEIL/j2x+R+6PD7fKqZv3gG M8/Sa7Aa+DgDCL3MkafRfGewLU7Vuq7HYYOEyhZYaxzy49s3Q0qG2Xz7sWVcWHC8y3sQadABVW83Z MuwYZDLXE9pCmZd7a7/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDyG5-0007VQ-9w; Tue, 09 Apr 2019 21:26:21 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDyFk-00074e-KT for linux-arm-kernel@lists.infradead.org; Tue, 09 Apr 2019 21:26:09 +0000 Received: by mail-ed1-x544.google.com with SMTP id x14so151648eds.1 for ; Tue, 09 Apr 2019 14:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0w4/Dek1MuUw9RUJIx68ZSWHBKjhr7mhry+FNPNfIwY=; b=KBBodNXybAF2N0oz3UqQW4QAQhMFuL7IUEI2k3dTe9WGsBNYEUkj/w1uX4ecLowxEq QLufKDomd2RHIqVh46h3AejR6bT/lPVcPfp6/vgtb995pJp8fT7ykJ97joGs8fixSd5h 8Pwh7h2lgwaytAjGlQi+1MLKOANFZp7rSTvf4= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=0w4/Dek1MuUw9RUJIx68ZSWHBKjhr7mhry+FNPNfIwY=; b=S7XI7dN+3Xf8nPGBmUlogIKFCvPG8TjgiFl03Ukka62xq/FsBvMkyXlgP5vJ6zUB3W bPUzqlPl6qgJu6uyi3ybfLx869Tz1TbrI7oXUdr2KuTpIG3tM5EBykK7AxbdJfPCR6h8 UN/wsXCyTdzCjg+uu9ShoiWifP31eOSgmXE7K/czX/Fyx+Tzw2SNdgdr/olGh6CTxOUg 8XDTV9z/aCEkH0py9RZbN/z5C/KonI/RGXWcU8xrZDmXuIJ4TypxLY1Ed3l0WvwWKh6I 7uUtiOvFQvryvG7igCZ701dSIN1ZrGlRgncOWORXuldf+WneThgHyTVU998LNmMG8yMk oNjA== X-Gm-Message-State: APjAAAXv17MMVdWRbCgNMoehyGMnuy7Iw/n70QQfPDcy3WY4ob5CyNMY sXbSdbhzMlwD+78quyFakiYVHw== X-Google-Smtp-Source: APXvYqzibpE9q7ZYACnBi7xa1MPMRgPRkeGW7TzqdFCwCosgloKMSxnGgPQmDbXVEfUbKJl7CwQ8jg== X-Received: by 2002:a50:9179:: with SMTP id f54mr24290864eda.207.1554845159330; Tue, 09 Apr 2019 14:25:59 -0700 (PDT) Received: from prevas-ravi.prevas.se (ip-5-186-118-63.cgn.fibianet.dk. [5.186.118.63]) by smtp.gmail.com with ESMTPSA id i26sm3477986ejc.51.2019.04.09.14.25.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 14:25:59 -0700 (PDT) From: Rasmus Villemoes To: Andrew Morton , linux-arm-kernel@lists.infradead.org Subject: [PATCH 09/10] arm64: select DYNAMIC_DEBUG_RELATIVE_POINTERS Date: Tue, 9 Apr 2019 23:25:16 +0200 Message-Id: <20190409212517.7321-10-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190409212517.7321-1-linux@rasmusvillemoes.dk> References: <20190409212517.7321-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190409_142601_610694_D1EF91CA X-CRM114-Status: GOOD ( 10.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Will Deacon , Jason Baron , Rasmus Villemoes , linux-kernel@vger.kernel.org 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 Similar to GENERIC_BUG_RELATIVE_POINTERS, one can now relativize the four const char* members of struct _ddebug, thus saving 16 bytes per instance (one for each pr_debug(), dev_debug() etc. in a CONFIG_DYNAMIC_DEBUG kernel). The asm-generic implementation seems to work out-of-the-box, though this is only compile-tested. Signed-off-by: Rasmus Villemoes --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/Kbuild | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7e34b9eba5de..d0871d523d5d 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -83,6 +83,7 @@ config ARM64 select CRC32 select DCACHE_WORD_ACCESS select DMA_DIRECT_REMAP + select DYNAMIC_DEBUG_RELATIVE_POINTERS select EDAC_SUPPORT select FRAME_POINTER select GENERIC_ALLOCATOR diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild index 1e17ea5c372b..1ead0d645686 100644 --- a/arch/arm64/include/asm/Kbuild +++ b/arch/arm64/include/asm/Kbuild @@ -3,6 +3,7 @@ generic-y += delay.h generic-y += div64.h generic-y += dma.h generic-y += dma-contiguous.h +generic-y += dynamic_debug.h generic-y += early_ioremap.h generic-y += emergency-restart.h generic-y += hw_irq.h -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel