From patchwork Tue Apr 9 21:25:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1082842 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44f0pD6b3Pz9sTW for ; Wed, 10 Apr 2019 07:31:00 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rasmusvillemoes.dk Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=rasmusvillemoes.dk header.i=@rasmusvillemoes.dk header.b="dJkH3pTk"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 44f0pD5T9PzDqJ5 for ; Wed, 10 Apr 2019 07:31:00 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=rasmusvillemoes.dk (client-ip=2a00:1450:4864:20::544; helo=mail-ed1-x544.google.com; envelope-from=linux@rasmusvillemoes.dk; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=rasmusvillemoes.dk Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=rasmusvillemoes.dk header.i=@rasmusvillemoes.dk header.b="dJkH3pTk"; dkim-atps=neutral Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 44f0hW2JQwzDqJL for ; Wed, 10 Apr 2019 07:26:03 +1000 (AEST) Received: by mail-ed1-x544.google.com with SMTP id s16so140175edr.3 for ; Tue, 09 Apr 2019 14:26:02 -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=QJAxNVsdZpvgQ0lycDmUvZ/w5aUsw9h9L87n2JSUnEY=; b=dJkH3pTk5Euyl6AnuMTJVWpsHfbXhza0vHCBLB/kgIB/5IVjmFm+TZMTTZfA8ZCPIu yQiCbVbv4J51PAnNP5TOkxdC2ztuNqrvxYRVB3esWN7AnwbF6R+aA869+HMRaGeMp2ih 7g60BKCA5L44+IsOaByY2KVh0D8iMGvH9Yhro= 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=QJAxNVsdZpvgQ0lycDmUvZ/w5aUsw9h9L87n2JSUnEY=; b=e5Zp8KgrGE8rOFfuTkJuSrZq9mMVIjdIOmR0cJYjIzIQL8eXYesod+0GaRG17dldHh 1zeJjYIVvqX1CpJZ/1m9oWPpImzer5FWaKHuNpiHpNFQXfCfSbUw4fZn/ymKyOWkzTS+ 9fLX+VPObRr7QMyfhv7fu2W6Gwn9Exr67ljQ1XBnLeBP5AZJAfTEhLMCr2j4lbXVrQnF zzya7zBEojsETReuIQcUNaUGvuB2G5n7j3jqIU32poDLrftqRe2gHxR2qDhpeabXC/U6 9xvzwfITy69PqqL3vBJv6YP9SCQyNTSdHcuLGBo6+C97p1Z9yNFOzKVTi2adTb501Ssj WIow== X-Gm-Message-State: APjAAAVTAd1nu3w1oHqNKc9V8vqtvya04z2npO5I3H36CnmfMIi2QmKi Re00j1L4a6vNPhdg4YFF5sGFcw== X-Google-Smtp-Source: APXvYqx92lGbh5GjPk75seT6pvqLK58Ld7lPc1nByda+1LtFL6qiVgkxzGCRs7R0ZEXtFBJ7TZrwUA== X-Received: by 2002:a50:9438:: with SMTP id p53mr24334679eda.92.1554845160122; Tue, 09 Apr 2019 14:26:00 -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.59 (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 , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 10/10] powerpc: select DYNAMIC_DEBUG_RELATIVE_POINTERS for PPC64 Date: Tue, 9 Apr 2019 23:25:17 +0200 Message-Id: <20190409212517.7321-11-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-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jason Baron , Rasmus Villemoes , linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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/powerpc/Kconfig | 1 + arch/powerpc/include/asm/Kbuild | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 2d0be82c3061..6821c8ae1d62 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -155,6 +155,7 @@ config PPC select BUILDTIME_EXTABLE_SORT select CLONE_BACKWARDS select DCACHE_WORD_ACCESS if PPC64 && CPU_LITTLE_ENDIAN + select DYNAMIC_DEBUG_RELATIVE_POINTERS if PPC64 select DYNAMIC_FTRACE if FUNCTION_TRACER select EDAC_ATOMIC_SCRUB select EDAC_SUPPORT diff --git a/arch/powerpc/include/asm/Kbuild b/arch/powerpc/include/asm/Kbuild index a0c132bedfae..f332e202192a 100644 --- a/arch/powerpc/include/asm/Kbuild +++ b/arch/powerpc/include/asm/Kbuild @@ -3,6 +3,7 @@ generated-y += syscall_table_64.h generated-y += syscall_table_c32.h generated-y += syscall_table_spu.h generic-y += div64.h +generic-y += dynamic_debug.h generic-y += export.h generic-y += irq_regs.h generic-y += local64.h