From patchwork Sun Jul 7 21:48:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 13726073 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3A701C38150 for ; Sun, 7 Jul 2024 21:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KhneZf6qQ4oQ7PsyNOV6bd9KOfaDfiA441VDHf9pd2c=; b=oM+OqNp6g4PjCzCvIVW4K8PA4a wVEHhYLds66jKGJfMGsnxKXoufG+GKcCvnwfDF6TAa1FQRb+2UL2IJ6zNApWVYynGQBqEaM2o9qRE Mzjex64NT8FbLdfaE0SrOzahS+AEJk0tpgK9MPhMv8T3gBU7lwBm1qOY2cWXPO2+jPlJaWcCe4VSe Ki+zkIt5pyqqAxmQkZuXsZg3vkkJ0xrNkUoA98aEhWk4dYjnoh5Eql0rXJmLxhYc70XVlmk5h5WE4 kgBiPdlRKwNxpOYEtvfQ9QezLEmzgvwmK8UrrqGEbZxZnxNeWawg/p7yxdraHr7cJVtoN+QZhp+rC zHi0+a8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQZlL-00000002Jhn-4740; Sun, 07 Jul 2024 21:49:39 +0000 Received: from mout.gmx.net ([212.227.15.15]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQZkh-00000002JS9-1oPH; Sun, 07 Jul 2024 21:49:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1720388934; x=1720993734; i=j.neuschaefer@gmx.net; bh=KhneZf6qQ4oQ7PsyNOV6bd9KOfaDfiA441VDHf9pd2c=; h=X-UI-Sender-Class:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=CfFoDAPLW+z3N4fiwjZEO2AfN9PHbGOT+NJffWU97QGHhyFLkDSAXLxcRphzAlVc VgVvgkguKF78/42+p4PhJMrmb2fPGa3qin6zh81rqpvwsFHjE0OJvjMgB5elbXXxq xH9h15a6RWVYK6mmv6g7PWDBHErYDVTPP1Y8qCZuVP1mo8Mk7S+eG0GSnHohxLMKz epPSNvR9cQN2WhQ6wq1VOKbNQ20v/bJ8nLFWDygWMS/xs3yiXG2OF/4+dOAKt4dUo 3vB9eLkJdZfwszLG7LY7nxZ1YXzAMbTjmQMIompX02N23eYqp2HK/u8WNc7VRCWt7 3uLswrtceOnmlblXbA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([89.0.46.161]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M8ygO-1sVXZA1xoM-004cWF; Sun, 07 Jul 2024 23:48:54 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= Date: Sun, 07 Jul 2024 23:48:45 +0200 Subject: [PATCH 2/2] ARM: bcm2835_defconfig: Enable SMP support MIME-Version: 1.0 Message-Id: <20240707-raspi-config-v1-2-3e122f2122e9@gmx.net> References: <20240707-raspi-config-v1-0-3e122f2122e9@gmx.net> In-Reply-To: <20240707-raspi-config-v1-0-3e122f2122e9@gmx.net> To: Russell King , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden Cc: linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1720388929; l=1498; i=j.neuschaefer@gmx.net; s=20240329; h=from:subject:message-id; bh=5/vPRCIWXNT75L/hwAqvbmyQXKrbHJyQ0YQwH3Uoo7g=; b=4KsWSY1DAsSUz9OUrN3L1JVzB2NbqjMGWetKfNX/vaQCI0ZxohEwIdaT2usz9RHJ9Yc2wr0S2 Ur4FmtixGulDflKKv01IHXO/hw3iS+O0bkHFtONMm673bmS5Uj6FMmA X-Developer-Key: i=j.neuschaefer@gmx.net; a=ed25519; pk=NIe0bK42wNaX/C4bi6ezm7NJK0IQE+8MKBm7igFMIS4= X-Provags-ID: V03:K1:IUvmgMn/x+KVAKU8eN1NPMZIjqkXdESwg2H1qWT3TagatsLn1ha nlcfXW7pwhRnLmb5wkuYylQF53lWyq/3mt+fOo80wtR4fmDdon7qTBoBx26j3XcdQvOhdfw WqhwZobi7VAD0KXJf1bY0s6TjWz4zEnl2qEalpT6nvLG1DaAOAOL8AG9JCxRhaWDML/Leq/ Na9rTrPWlP+sfOIs9bHOA== UI-OutboundReport: notjunk:1;M01:P0://NCBbJFXEE=;OAhoyy0JZjkhO178SNg+Bq9Q+AP SOXOhfdVwsVUJkbBtCmJTO1IPwXMhzFHuU2C9tYIItpbD7F0M814q2G339FXADz+GPxRxNZbZ OnMHq4NW0RzZdiRrkn4kcqG5YvCU0GCIMWwtfSKPgXcwsOfMXOZxdqe7nhgXPoKmRJkwLT6qp vBpNoyh1GQzqxLvQd7cIlJILyymteYfi0gVtWUscvpEFt+Pzdj3inKcRn2I8R/EyvAQoYg4yN yJDjmg3F+T5D0loyzog+DcAyR/giZVMJU/QIeXQPt9MTPLAVjKCqgqwXdm08vDcgmm7fqrDhE S7qeITkDOTNe1kjbZKs4XexGJ6OBBoJe9wopq6cwlp8Qtxgrz9CyODiFkozpiSF2LGR+1sZx8 urPTQHrRjz+3Cz6THW2cgvbKGsRI7kr90zaz88C31jxJvFdUGRPZ8IrHCsFDuFYphqfUiNVZx HmnBBksFXXjBCV1JpUB255kqYmFL8vu4Z1S0XpYzctYQTVszvp3YSw96OwVBMOgFH4oA08Elc 8LMmB5PEsLxOfy4dv50Seaew7t35Ztj72/2TnhjtOnsXPKOE0HPIik9C7xHzKnv718MXjSzWi PpTSXbRu3/s+dLflCEX//UT1WOofMiahrVodbAtYBbijc8Sct+7tUaFQskXhxJxWedVfKPM8z Xciyqa6cggEGLVuPniC4Ul31k8Fou99UuW4+4+UqBoxOSlUz2EyfPVlv0nc8nJhR3WsbEkXjo 2rz1ZsFTY8leJiIfyJ/kwyY28+VoT4ojC2htusS9+4rJjN/aqSQ9ikQtxZ3bIRrZV/iJIQ3ua cRlNMN87VgKO6WFk/2sco2hk+aUL7QHlFIZfamD/jsXNQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240707_144859_778801_56926BB4 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since there is only one Raspberry Pi related defconfig in the mainline kernel, it's useful to have to work well on all 32-bit Raspberry Pis. To that end, this patch enables CONFIG_SMP and CONFIG_SMP_ON_UP, which allows the kernel to run well on multi- and single-CPU systems. PM and suspend support is necessary in order to keep KEXEC enabled. Tested on: - Raspberry Pi 2 Model B V1.1 (BCM2836, SMP) - Raspberry Pi Model B (BCM2835, UP) Signed-off-by: Jonathan Neuschäfer --- arch/arm/configs/bcm2835_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.43.0 diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig index da49dcfd359050..d505058715b66f 100644 --- a/arch/arm/configs/bcm2835_defconfig +++ b/arch/arm/configs/bcm2835_defconfig @@ -24,6 +24,7 @@ CONFIG_KEXEC=y CONFIG_ARCH_MULTI_V6=y CONFIG_ARCH_BCM=y CONFIG_ARCH_BCM2835=y +CONFIG_SMP=y CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_STAT=y CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE=y @@ -33,8 +34,6 @@ CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPUFREQ_DT=y CONFIG_ARM_RASPBERRYPI_CPUFREQ=y CONFIG_VFP=y -# CONFIG_SUSPEND is not set -CONFIG_PM=y CONFIG_JUMP_LABEL=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y @@ -175,6 +174,7 @@ CONFIG_DEBUG_FS=y CONFIG_KGDB=y CONFIG_KGDB_KDB=y CONFIG_DEBUG_MEMORY_INIT=y +# CONFIG_RCU_TRACE is not set CONFIG_FUNCTION_PROFILER=y CONFIG_STACK_TRACER=y CONFIG_SCHED_TRACER=y