Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp275491rdb; Mon, 22 Jan 2024 21:41:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwOEULJMsuVSZZ7kGR5N3k7SWftE85Kp2+ewRfJco/HBKxWPzuQasQkQGp3CEFHbVmGsKw X-Received: by 2002:a9d:7652:0:b0:6db:adb6:a857 with SMTP id o18-20020a9d7652000000b006dbadb6a857mr5255579otl.27.1705988469304; Mon, 22 Jan 2024 21:41:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705988469; cv=pass; d=google.com; s=arc-20160816; b=e3f+H6kSpy/VLYvElYNUNdxHyIDKFH9zvnxRMjiFhJaDM8N0Az6jhSF2bbojrEjJWt Se8Acqw9swIYSDZc165ANv2/t2MCOuUVeUy/py5fgx/JX5DlwDA41i5S5zEMaB+/8DhZ kEnxDi0pfmnxGDZcVboz1fW+yaOkbMSseppBmpPHbMalalAYSR8uf74S0BmstKu5Yffm 4Ts+1Yq5lkWgadMWJTZRToZzZnxsIA+2mPyeQAY2uOQDrvS/dCZ0K+7oJ+cskz17Dunb OuqkcJPI+nouL0/Gilx31vr5BYO7PdimJfZhwg5SJS7VMB5UGuUL/hXf37sSewB6O3jQ s1lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WCTFOuCgLJozSu/4fVMlKkQ+hSd8Pk4/is1wqCnycZE=; fh=3n9yk9H0aP61VWOkjV8qJHqEh2nN7MsL3m9A3XvFOBk=; b=tPxU1A4W72cBcIfar8ivIZwkw/MFDsxZoLjy3wCIhRWjFCihNhQHLhQ3/i8iG9Lzo2 r2L6akLcqseg66pdOSrk8luhd1gJR/A/QepggsNlGLs6ANY/+/Wx2cDbs/AO6Bx9qIm1 FrWWsSRbw3p3KV04FlNCfQkpL+3oTKrmjXfjK8Wz7IYm0IQfdOsH1/gE8U3X8hQB5GKm 2SYk9V5mvNU5VPSh5ji1olMOjPHO+bFVPi56pxhrSeqr0axUYniVYyDZBwkRHIDEUZwi ABXNUF9CAKiJn0vcfhu+KJnsqbfc+pUMQIOR1BBGvztn6xmvBIcYtxRc8hHejeGkXulW 6zCA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MCjN2pT4; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-34728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c21-20020aa78e15000000b006dbd40192a9si4448398pfr.77.2024.01.22.21.41.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 21:41:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MCjN2pT4; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-34728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E8C73282957 for ; Tue, 23 Jan 2024 05:41:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 671C946AB; Tue, 23 Jan 2024 05:41:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MCjN2pT4" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF9A15384; Tue, 23 Jan 2024 05:40:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705988460; cv=none; b=Eih+9fwBmYOUy4oWZ5voWBMSA7tyP3/kjzbsP1pjSLS0jAuhy8vbiEVBcnLsJYrSB9RfArUU5cptne8xfeKKvcH89+a5E4RrsFlHvUTWGdzZy6W3GsuRzUCU1FSEAgxiewUz3zUEHPMFlQU8rOrvCVYaLix6aTnotd13294Ss5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705988460; c=relaxed/simple; bh=usqTaUXKEgQoY2T5x0AaG8q/SrqHWXmUVAmFQbDu13I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pdhuslRZecBFmgDDx0uqOCVSYUjdgYPXpqZL4Pg0IClCGhgMx4trSBPIRH/In1vTd2bK/tjc9HYJDSOrJbqYbIynncFgmlfodvrByqIVb6qYfTA+1/ptqdHkFtKJlLN2oFklpZqyTMuuP2hB+ucJg7JFNIGA5x9a2/I8CxmvDSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MCjN2pT4; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705988460; x=1737524460; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=usqTaUXKEgQoY2T5x0AaG8q/SrqHWXmUVAmFQbDu13I=; b=MCjN2pT4UbE7nSJEasC52lY7t5pWbnvgvcjAVQfxvtlowaZZiVQQucI/ jE+27rl2wVa5CDzQyfVOV94hNplZAmu7Lc0EfCUPP5u8z3c0x9/ZVg3VM Kqxxc3hT8g+XAbty2ep086RyCtJng0XqVYwIKr7rIfld9sttRLZu3/aOT YAznmGN9xHsp8+PmB/LdZ7Z6hH27riJydog0YvH0LHS01jVWkEkvXAG3L tXz94WJ0m//AmjfzDDZEiyLchFoIRv+8ZD1E6GfTjF2DS17K8ZluuixGV 1TqO8syxK+UnQy+bKg+Lghj90CnEIAEyEn5ZQT576nTOPE/5qEwOom8nS w==; X-IronPort-AV: E=McAfee;i="6600,9927,10961"; a="14770134" X-IronPort-AV: E=Sophos;i="6.05,213,1701158400"; d="scan'208";a="14770134" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 21:40:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,213,1701158400"; d="scan'208";a="1471954" Received: from junxiaochang.bj.intel.com ([10.238.157.86]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 21:40:42 -0800 From: Junxiao Chang To: bigeasy@linutronix.de, tglx@linutronix.de, rostedt@goodmis.org, linux-kernel@vger.kernel.org Cc: john.ogness@linutronix.de, hao3.li@intel.com, lili.li@intel.com, jianfeng.gao@intel.com, linux-rt-users@vger.kernel.org Subject: [PATCH 0/2] nbcon locking issue with v6.6.10-rt18 kernel Date: Tue, 23 Jan 2024 13:40:31 +0800 Message-Id: <20240123054033.183114-1-junxiao.chang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There are two serial port devices in one Intel ADL hardware, one is 8250 lpss, another is 8250 dw. Multiple uart devices are enumerated as ttyS0, ttyS4, ttyS5,... With 6.6.10 rt18 kernel, booting hangs in nbcon_release if console is enabled by appending "console=ttySx,115200n8" to kernel command line. According to nbcon author John's suggestion, lock flag is moved from console structure to uart_port. Another patch is to add uart_is_nbcon checking in nbcon_release. Junxiao Chang (2): printk: nbcon: move locked_port flag to struct uart_port printk: nbcon: check uart port is nbcon or not in nbcon_release include/linux/console.h | 2 -- include/linux/serial_core.h | 1 + kernel/printk/nbcon.c | 11 +++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) -- 2.34.1