Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2176521rdb; Mon, 20 Nov 2023 04:27:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHegK0zB1RaS7jOJX1a3BnmtbyBRxiu2d2liLOZHLq8s8Twd0SOJGimV8RpM0drAR+7ewJP X-Received: by 2002:a17:902:dace:b0:1cc:50ea:d5db with SMTP id q14-20020a170902dace00b001cc50ead5dbmr9752582plx.4.1700483244346; Mon, 20 Nov 2023 04:27:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700483244; cv=none; d=google.com; s=arc-20160816; b=xDFSV3b1+9sBFOaWVrk/+YmQlqteO01W89YUCxqqu3eYcJDsD7JUX9MqYPGDV7fuMH sN4+BmOPE9gluq+gkcg+wKFWfsn+wH80OWuONkYmLzWzPYenx4AdGxAyPDTRBNqtrkfr 5PQLV0TN/rErvUfBV3QFf0lUuj3oVab815ieOzi1c4HZl7Om2dLBxZL0xKf/pN1bxkad VQzYfiBHH2vHUeTQG6KlXNuqPpIvulsjeu5LiCrywbr53pz60erlb0Z0c1T1sVynhn6E F4l6MEcoA/HmHvA5+3XXICVSoZGVWjDJV6N0YFWF7jaI7PYCMl04XGirucNtOQEgtIKa ZW2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=2/cY+RY1YVzUDclWx9uz/wxDq9v1nRedydgbaA0a/ho=; fh=+wArUaD8AfbGIU86MX+PNjNXrwHRwaTOaN0u0NKKJLU=; b=xk4vL3XMxCOFmLTyNO2/0ntp00w67pW23jB4JTjO99dgQHrCFRJAP8vd8NPza+7ll+ Bl2hZ++Qd8CrTdlwsRise3s7C0ieyHd6skkXlNeObSd+I+3qNNDMqp51M/+QCZTZEI02 1fOzSKjk3uoCzrHRZnuE1tRtOhm36YPSp0Lv1XfqxZxbokM1T/Yz9pVumxd3oNTcbn0E KNExvvrs1ym2/9BSrc46gsepudKKoXVFiDyaMcUmDvCS4XWitKFecb/0LSMeTFU2znRi PKaa6riuMku597kZo5EJm3g5b+BE1eiphvv1qDuZYo45DIF8jirCFmewSOSNgRw2k2RH j+Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gj6AAFab; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i5-20020a170902c94500b001cf68d4a49dsi392792pla.472.2023.11.20.04.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 04:27:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gj6AAFab; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0432D8045C76; Mon, 20 Nov 2023 04:27:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233232AbjKTM1Q (ORCPT + 99 others); Mon, 20 Nov 2023 07:27:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232607AbjKTM1P (ORCPT ); Mon, 20 Nov 2023 07:27:15 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7A67CF; Mon, 20 Nov 2023 04:27:11 -0800 (PST) Date: Mon, 20 Nov 2023 13:27:08 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1700483229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2/cY+RY1YVzUDclWx9uz/wxDq9v1nRedydgbaA0a/ho=; b=gj6AAFabnVDtefjVpmr8sMORavTzGOAyvFroEo76uWKxkVTEXHU3sFpS4LeU4maHO0wtMU 2l6Q4NIH82RPa/adyoo0LRPkNaQFJPBlevscq4jshfjiEgwZ2OuqHVAeZHCiup4ejjfdc4 m7ha8nx8flgy7sB6xhuCJTBvsGUHtbfrHjrwXFwOQCcVXfWCl7i9tIScwhRuNzNO4JkD4e j1W5YYtTaY5kqcf0ZCeVitvLWs2sCJkcxDufy0tQlHDa8egv8+dJrqJIByw+ErUjf3+SCs ufb2i648ndxdr3mF6MAraAgXrEa6Yo7VSc773QLxd+NcUZBjN9WnZBgbRrpjlQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1700483229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2/cY+RY1YVzUDclWx9uz/wxDq9v1nRedydgbaA0a/ho=; b=y3wd1+sSGCWCkx4wzVN+jtlDteO0Nv5rh4YeArH5GW93aoZtBT8o/XyevipOY79aNyLzLA ihI/+K0hvveWH3Cw== From: Sebastian Andrzej Siewior To: Francesco Dolcini Cc: John Ogness , Thomas Gleixner , LKML , linux-rt-users@vger.kernel.org, Steven Rostedt , francesco.dolcini@toradex.com Subject: Re: [ANNOUNCE] v6.6-rt13 Message-ID: <20231120122708.UxA5Wf4b@linutronix.de> References: <20231108152329.NDcgOQAF@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 20 Nov 2023 04:27:22 -0800 (PST) On 2023-11-13 20:07:51 [+0100], Francesco Dolcini wrote: > Hello Sebastian, hello John Hi, > During our weekly CI tests of rt-devel branch we noticed that commit > 78f4b59c6faa ("printk: Update the printk series.") breaks booting on > multiple NXP i.MX platforms (arm and arm64), likely related to > drivers/tty/serial/imx.c. > > We are not planning any additional investigation at the moment and > we have no debug outputs to share, just wanted to give you a head-up. Thank you for the report. As it turns out, the new bits never saw the lights of a 32bit machine. The following hunk should fix it: diff --git a/kernel/printk/printk_ringbuffer.c b/kernel/printk/printk_ringbuffer.c index a949d02fbd174..b6a8306bfda89 100644 --- a/kernel/printk/printk_ringbuffer.c +++ b/kernel/printk/printk_ringbuffer.c @@ -1477,7 +1477,10 @@ static inline u64 __ulseq_to_u64seq(u32 ulseq) * sequence. It needs to be expanded to 64bit. Get the first sequence * number from the ringbuffer and fold it. */ - seq = rb_first_seq - ((u32)rb_first_seq - ulseq); + if (rb_first_seq == 0) + seq = ulseq; + else + seq = rb_first_seq - ((u32)rb_first_seq - ulseq); return seq; } > Francesco Sebastian