From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A71E36B05C for ; Mon, 2 Feb 2026 15:07:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770044829; cv=none; b=FB/SMrZ5YjGQHmpgWbI3ZjTIfBnQBLwGLMB9f4FPmYZR4dKbZvyxR5Jc/0lfZtJWZjaGGu6M5AD9YORU8AcZ6RRkzr7W5PGaHRdLhoJ3osWQRvZ/34ACizVwgKbV2LDww2kGhi89R9nOcQTo/nk6tE8Vp/lcjy9/BOxANS9f0wM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770044829; c=relaxed/simple; bh=GAlSWj4O+Ld4qKAtiuP2khLchXuRRdR07PwzbbPpg08=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ac90y4qtD2Fxmji/LDKRF/PKaIUrflfR5zmzrzjsbnn3ykfv2QwVg/g1hxRMOiQS/vnc8+10UD6RdED8Qom9a0LyZ1YlvXgdrwGJ5tYwns4BzxnPYfXcJI+oc9tbr9WScb+xnl/gr7b6p2r7ycx9Q85NzZ9hhJtZohd6MIjyKio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=brdZZhys; arc=none smtp.client-ip=209.85.215.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="brdZZhys" Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-c227206e6dcso2805432a12.2 for ; Mon, 02 Feb 2026 07:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770044828; x=1770649628; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sO1P8RhDDX9/7pRuKi51SbBB9fD415r1Z1pbDkW6C3I=; b=brdZZhysVqF8p/dmd9ay7PWV9aZTxcUUTQefCICmU+StyU69louzpcf8+2oe0wKPv6 yKDm88Sq9Lp6cNnux+NWoh6l0gMzeu+Ac5AMwM5rKy8ek0iFzipOFjpbu6RUCBgclPig bljS3O86VgbmnUS9VPxM62wv+zW/l1+NfGvkq+b/9r9+G58n6YwmQPY63d/LHjYsaFw1 8NM8rzIFcFSY3mpkOLJppp4WqtaE0xqYkyvd5yRLDAPidKPrATKEbkypyGVz4zXNPvwP gr/FQm7lfkAaD+y3WpgKq4/AHaC2im2i00MvcKsvnRtZZsZmY9J2uYOhFWulL6dsLjfH Ir9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770044828; x=1770649628; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=sO1P8RhDDX9/7pRuKi51SbBB9fD415r1Z1pbDkW6C3I=; b=HiMTS/KpSzHwrbCCDwXdJ3IZDRw40A65JfN7tqpZNY7/b6m40kj+o2QEBE2MqXBODJ Fy5AKhd0TnCwt3DuymtGG4tXGzKCWjei2BJo0jBwemLXI8pddb81FCXV3felw+rVnTNs rMp3067bLrvUYqPPyKwcqxpH5CUrryAP2B/eD+Tp5abSkAGP2aYto5YFND5e+Q7ORZ79 XzGVeu96mWU6kwRT8rJWYa7n1kIo3G0Y+qEV1EzC/mbQd3XF4Fxz42wR8s0c0Y2xXYBI S21WbKZF8NTcwysJspK66dBcgSma8MywKGrFMEohR2eqipp39/Q3K7QDWEc2/PvGOuwT jLYw== X-Gm-Message-State: AOJu0YytHi4AGhcEscs5eKHj+6p0OQUewFSI4Q/qImDR6j0KZyQYtLDt IU19UXKDkKCrQo3sa5Mtcczo7tXF69vxPzQnFSCGoNqO1fAjk6k+hOKA X-Gm-Gg: AZuq6aKVQbiVUnM0PsVs+F1FNENigJvVmwnwwKaYt0wRNIiiJ5OQY8np7rdnD6mDCrW BESu039/JhLW+sLobI/cIVTdu0TL8d4T3M1UlYLVXMCcsS07oJPNeyuPKDcGfxyZHhdSOtaYhnA qGW4+kh4SruIDq/KCwebGlHXLEzlZ51s4oS+vypjYhe20nxr7mMMs6r/U8JLApz0atMzdR2MdoI VO9g+yo4HjCuvBT+2DWhA22K25B1E69eUd5hgPsGsfULpt0lI7h8EyWOP2C0IpNan4fZZQG+M5P D1XfpWWyneVLDQP4b+7G5nDTa9QGg5TLaFeXacUJYvofmf3Crh9v8hzjHLBxllDWfkjGtcsW/XO lj1weSEcyk7dSzINyPAbdGxeu+VP64PA5yDa6FyOa+FFEq7+YF5m+h73K319Rb+4VncIcRjTcRp icOORIN98aV9/MTkkj6TyV2B0GD7KDNcc2QL+KeXA= X-Received: by 2002:a17:90b:4d06:b0:340:d81d:7874 with SMTP id 98e67ed59e1d1-3543b3b43f0mr12447052a91.26.1770044828018; Mon, 02 Feb 2026 07:07:08 -0800 (PST) Received: from PC-PF4KNQBS.Xheart.com ([202.46.41.82]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3543bb158f4sm8456399a91.0.2026.02.02.07.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 07:07:07 -0800 (PST) From: "feng.zhou" To: john.ogness@linutronix.de Cc: linux-kernel@vger.kernel.org, pmladek@suse.com, realsummitzhou@gmail.com, rostedt@goodmis.org, senozhatsky@chromium.org Subject: [RESEND] Re: [PATCH] printk: Fix _DESCS_COUNT type for 64-bit systems Date: Mon, 2 Feb 2026 23:07:50 +0800 Message-ID: <20260202150750.10985-1-realsummitzhou@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <87o6m7fk4c.fsf@jogness.linutronix.de> References: <87o6m7fk4c.fsf@jogness.linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi John and maintainers, (Resending to the list - apologies for the initial off-list reply) On Mon, Feb 2, 2026, John Ogness wrote: > This is important to us as well! And we really do want those > wrap-arounds to happen early. > Your v1 is certainly OK as-is. I just want to do some more investigating > and testing. With your patch it will be the first time we experience > descriptor ID wraps. > > As to the other U->UL conversion, I really have no preference. Let's > just wait a bit in case Petr wants to comment. Thank you for the feedback! I understand v1 is acceptable and you're doing additional testing. I'll wait for Petr's comments and your investigation results before any further action. For the record, here's a summary of our off-list discussion: 1. Early wrap-around testing is important for the printk_ringbuffer design itself, not just for matching documentation. 2. John noted this is interesting because it will be the first time descriptor ID wraps are actually exercised in practice. 3. There's a similar issue with the text buffer array size definition using 1U, but we agreed to wait for broader maintainer input on whether to address it in the same patch or separately. I apologize for not using "Reply All" initially - I'm still learning the kernel development process. I'll make sure all future communications stay on-list. Thanks again for your patience and guidance! Best regards, Zhou