Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp447129rdb; Thu, 19 Oct 2023 08:49:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwLYZsz+o/CMdB3qqQM8Q8tpAzbXFBlWMpOqNqo86ZNT/bQzNdig9lWz6DyeWeB72WaV3s X-Received: by 2002:a05:6a00:2d21:b0:6be:bf7:fda5 with SMTP id fa33-20020a056a002d2100b006be0bf7fda5mr2522392pfb.12.1697730564080; Thu, 19 Oct 2023 08:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697730564; cv=none; d=google.com; s=arc-20160816; b=WYyaSIZKaGwr/Do9Liza0EjLM0/FXrpR9bgd+8P4wRLri4mtIrkbq+LKaQCfcCZ9Px iK/KyTRQWUqY8Jdr0qpV+UrGYEKPPD3aW4OzFNtDCSet5cGghurjSqGRe4iCsvOw6i5y CFxxh67clzM5Mw4nGRUT+exra9FUo/YLTfZRb28fEUU4AnKd2WglChjhiPjHaHJHEhth zTIQbPEUl3nzvo+OmOS5I5sG65oos7Tma2FMCCKNkgftTLuN0gKsMxoXpn+SXbc7nd9h Lmo0ndMAsR/VaQw2N+Ab1+hChIPWIUDQUJE70jLeGoWrXFfZv2MqBaUAxHHuco/n+Bik Ni3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=pn3uO/arD3fO0IFGZTIzO6TjABrdzGr297my+fEHmUs=; fh=v3Xb7hk92qAFfGKxJxGbkEl/84MBte2NlC+1wO7MYcQ=; b=MzmvKbDlQhWXWcimEsmx6iReCZZhMmjoJUrb+ZYDCRej21cgdygrCA71EmddowlCLk hib7iwzdw4gAauJAYeVwHCHGdDXoRhJNQOryuVCz/WOPBsIcXNcTqLXjmFySwNprrcWT EroJIIyGUu40+e5CfJeio50WMETG3QujNyj7Li6zol0e37zcQuPWdFc+0iAZVaEduybB NrRflXjazooZ1QPrji7preyZbYe4ZgmWle8suT3NTgofO7H2nP6Dh/56jKgBjUrfwiyL KLtmFsh6+cVSfqGEUrdcmPj3/B3Zyw9bHN1UTj2IeuDJ576GuA+GqM6f9SUC5uIZ9vbv OnqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qZsHla9x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f14-20020a056a001ace00b006b857d490b7si6633084pfv.87.2023.10.19.08.49.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 08:49:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qZsHla9x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8214881C3971; Thu, 19 Oct 2023 08:49:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346424AbjJSPsv (ORCPT + 99 others); Thu, 19 Oct 2023 11:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346336AbjJSPsu (ORCPT ); Thu, 19 Oct 2023 11:48:50 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE73E124; Thu, 19 Oct 2023 08:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=pn3uO/arD3fO0IFGZTIzO6TjABrdzGr297my+fEHmUs=; b=qZsHla9xapeuTcdf/k4ygwi3t/ GmHwYEmzui2YwSQH7yrQjNzyI2Yl/3xhT2pokj4XVvs5Uq+9lt7Mkp9AFXexEAQ31W9Ct0MxN2eE8 kjVj/ToQVgIZjWvgJ5C7jnI824xC5JVLxNQdjYePJMbjsrzCOk8MNXQd+YdOQLn/w36jUsPWaYjCg dpC5/pWzPKL37XXRoVLGIquVMjakYflpe4fPNjBrnyEYvxOtpXfe6d3tlZhfpJTEyZ7WAFyWLV4vk nSr/2vwK+/jcluTnfcT/K92XZc1OXefq256ymHJA/wx/rz0ytSe7wdSm2SXX2epygBs1pqiro6eDU J/HnN6Rw==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qtVGC-000FWt-2e; Thu, 19 Oct 2023 15:48:32 +0000 Message-ID: Date: Thu, 19 Oct 2023 08:48:32 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] sh: bios: Revive earlyprintk support Content-Language: en-US To: Geert Uytterhoeven , Jonathan Corbet , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Paul Gortmaker , Thomas Gleixner , Magnus Damm Cc: linux-doc@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 08:49:21 -0700 (PDT) Hi, On 10/19/23 02:46, Geert Uytterhoeven wrote: > The SuperH BIOS earlyprintk code is protected by CONFIG_EARLY_PRINTK. > However, when this protection was added, it was missed that SuperH no > longer defines an EARLY_PRINTK config symbol since commit > e76fe57447e88916 ("sh: Remove old early serial console code V2"), so > BIOS earlyprintk can no longer be used. > > Fix this by reviving the EARLY_PRINTK config symbol. > > Fixes: d0380e6c3c0f6edb ("early_printk: consolidate random copies of identical code") > Signed-off-by: Geert Uytterhoeven > --- > arch/sh/Kconfig.debug | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/sh/Kconfig.debug b/arch/sh/Kconfig.debug > index c449e7c1b20ff5b5..8bcd6c1431a95be9 100644 > --- a/arch/sh/Kconfig.debug > +++ b/arch/sh/Kconfig.debug > @@ -22,6 +22,17 @@ config STACK_DEBUG > every function call and will therefore incur a major > performance hit. Most users should say N. > > +config EARLY_PRINTK > + bool "Early printk" > + depends on SH_STANDARD_BIOS > + help > + Say Y here to redirect kernel printk messages to the serial port > + used by the SH-IPL bootloader, starting very early in the boot > + process and ending when the kernel's serial console is initialised. > + This option is only useful while porting the kernel to a new machine, Can we expect to see new machine ports using arch/sh/ ? > + when the kernel may crash or hang before the serial console is > + initialised. If unsure, say N. > + > config 4KSTACKS > bool "Use 4Kb for kernel stacks instead of 8Kb" > depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB -- ~Randy