Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1291944rdb; Fri, 1 Dec 2023 11:57:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+yE3mFqFtmNZz0baQKfMPhS6AxoNTlsPayLBnOoqxwTLeaCODrGGgN/0xpwZpNpxJowWZ X-Received: by 2002:a05:6a20:a112:b0:187:2c9a:c9ad with SMTP id q18-20020a056a20a11200b001872c9ac9admr67194pzk.55.1701460666364; Fri, 01 Dec 2023 11:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701460666; cv=none; d=google.com; s=arc-20160816; b=QmXQdA1ra9O8kuZ96zT9CS2cZJhc5Rn6/ZCq/2w7ePFhgMijWXeqpmy5E1d0GdyY6c drxbSCn85YpE4HUKOKXxPh64QIftvv+N2L21/Tm2hzTAtyZ3WCjTX7BojWTYI732wp+H KKrs1ogHpgWBL1NEW6O+Gb05vEqTNsgZiX5WAXQd6UL5aMcCYmvGeU28PsnJFhrkKumC fJzYEcbsRK6DDWDlHRbdq+AuZveDr7BUstnKYekfEi9cuKyp6Ty5f0fweeUf05QegpIZ XEgtxDoTQb/dml+026ue/t7lSEAMhFF1KuSlwGOOYB101vmGuIdeLs7Ik6m+RrchcbPR M1yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UGMKhKxD+k1ot+0eUdzC0K220AW8sbq7TfqniPBSPPs=; fh=IlSRtjbBnN5MaZOyNsJ9uwdF/wBbJUwJJGKo0+OUFas=; b=zlc88hI1+649oYBGv9Ook79HhgZH2QwjhLmpJ/hzHZvE04GgyXkI/71MWSB/82q4XK 4JrbsaZacViTwS+SO8qwqEVIBLlYjsjXlyE063C8UUSQamDhTKPLFoUHjMOARH3eP57d qG4DUZPfkujflfTEddG8FQbhGLiJwvQdR+Mz5kFSJKUVxby9vgX/lMgFWq6SIfKj4cFs 92xS67wjIqTJvfhXIC30s/jWc/qL/6FI8q2sYVEdW4/pRU4fBfvziVbuJFF4dAO1/HtN T4TRB5nvuyM+T+dPLqVpLBpokYjxV5gkrBopSb17DLOlAChi07DLXIi51bpejcJk0M5S VlRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id bx29-20020a056a02051d00b005c63f100462si2540750pgb.859.2023.12.01.11.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 11:57:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id ED231829720C; Fri, 1 Dec 2023 11:57:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379561AbjLAT5a (ORCPT + 99 others); Fri, 1 Dec 2023 14:57:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379538AbjLAT5a (ORCPT ); Fri, 1 Dec 2023 14:57:30 -0500 Received: from mail11.truemail.it (mail11.truemail.it [IPv6:2001:4b7e:0:8::81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ED52D54 for ; Fri, 1 Dec 2023 11:57:36 -0800 (PST) Received: from gaggiata.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 66A11221C6; Fri, 1 Dec 2023 20:57:34 +0100 (CET) Received: from livingston (unknown [192.168.42.11]) by gaggiata.pivistrello.it (Postfix) with ESMTP id 194BF7F9C0; Fri, 1 Dec 2023 20:57:34 +0100 (CET) Received: from pivi by livingston with local (Exim 4.96) (envelope-from ) id 1r99dl-0001Hk-35; Fri, 01 Dec 2023 20:57:33 +0100 From: Francesco Dolcini To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Nishanth Menon , Vignesh Raghavendra Cc: Francesco Dolcini , Catalin Marinas , Will Deacon , Tero Kristo , Tony Lindgren Subject: [PATCH v3] arm64: defconfig: increase SERIAL_8250_NR_UARTS Date: Fri, 1 Dec 2023 20:57:32 +0100 Message-Id: <20231201195732.4931-1-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Fri, 01 Dec 2023 11:57:44 -0800 (PST) Increase CONFIG_SERIAL_8250_NR_UARTS from 4 to 8, the current legacy value is not adequate for embedded systems that use SoCs where it's common to have a large number of serial ports. No need to change CONFIG_SERIAL_8250_RUNTIME_UARTS, see commit 9d86719f8769 ("serial: 8250: Allow using ports higher than SERIAL_8250_RUNTIME_UARTS"). The need to increase this value was noticed while working with Toradex Verdin AM62, this board has 4 serial UART instances available to the user plus an internal one that is connected to a Bluetooth module. Without this change the fifth UART connected to the BT module is not instantiated and BT is not working. Instead of increasing the number to the bare minimum (5) that would be required to solve this specific issue, we increase this to 8 which seems a more reasonable number to have in the defconfig and should cover more valid use cases. With this change the kernel image size increases by ~3.2kB. bloat-o-meter summary: add/remove: 1/1 grow/shrink: 7/0 up/down: 3220/-8 (3212) Cc: Tony Lindgren Reviewed-by: Tony Lindgren Signed-off-by: Francesco Dolcini --- v2: added details in the commit message on the verdin am62 uart config and requirement v3: added details on the kernel size increase because of this change --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index b60aa1f89343..ecd365cd1d87 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -448,6 +448,7 @@ CONFIG_SERIO_AMBAKMI=y CONFIG_LEGACY_PTY_COUNT=16 CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_8250_NR_UARTS=8 CONFIG_SERIAL_8250_EXTENDED=y CONFIG_SERIAL_8250_SHARE_IRQ=y CONFIG_SERIAL_8250_BCM2835AUX=y -- 2.39.2