From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDF24606A31A for ; Wed, 2 Dec 2026 08:31:52 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 221313E7477 for ; Wed, 2 Dec 2026 09:31:51 +0100 (CET) Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [IPv6:2001:4b78:1:20::6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id D19453E72A0 for ; Wed, 2 Dec 2026 09:31:36 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id A93F61400E4D for ; Wed, 2 Dec 2026 09:31:35 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 593DF22300; Wed, 2 Dec 2026 08:31:34 +0000 (UTC) Authentication-Results: smtp-out1.suse.de; none Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id F0D1513505; Wed, 2 Dec 2026 08:31:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id m5lsL2XXD2sWcAAAD6G6ig (envelope-from ); Wed, 02 Dec 2026 08:31:33 +0000 Date: Wed, 2 Dec 2026 09:31:32 +0100 From: Petr Vorel To: Hubert Mazur Message-ID: <20261202083132.GA145292@pevik> References: <20261201162441.GA80775@pevik> <20261202082134.529052-1-hmazur@google.com> X-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20261202082134.529052-1-hmazur@google.com> X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 593DF22300 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Action: no action X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spam-Level: X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Spam-Score: -4.00 X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Virus-Scanned: clamav-milter 1.0.9 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH] sys_cpu_topology02: Drop upper bound on core_id X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Petr Vorel Cc: Wake Liu , Kazuhiro Inaba , Grzegorz Jaszczyk , Linux Test Project Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ltp" > Hi Petr, > Thanks for the review and for confirming on your laptop! > On Tue, 1 Dec 2026 17:24:41 +0100, Petr Vorel wrote: > > The main concern I have is that you left poss_max_id variable which is now > > useless. This part is not needed any more: > > if (tst_is_virt(VIRT_ANY)) > > pkg_max_id = LONG_MAX; > > else > > pkg_max_id = poss_max_id; > > (and the variable declaration itself, of course). > poss_max_id and that if/else block are still used to set pkg_max_id on > bare metal for the physical_package_id check: > TST_SYSFS_ASSERT_RANGELL(-1, pkg_max_id, > PATH_SYS_CPU "/cpu%d/topology/physical_package_id", > cpu); > which v1 intentionally left untouched. > If we also want to remove poss_max_id and that block, we would need to > drop the bare-metal upper bound on physical_package_id as well (using > LONG_MAX unconditionally, removing the pkg_max_id parameter from > check_cpu_topology(), updating the physical_package_id doc comment, and > either passing NULL for max_id in the TST_SYSFS_ASSERT_PARSE_LIST() call > on possible or dropping that assert too). Indeed, I was wrong. Thanks for update. > > Please instead of plain Documentation/ABI/stable/sysfs-devices-system-cpu use > > :kernel_tree:`Documentation/ABI/stable/sysfs-devices-system-cpu` > > Also, I updated formatting of the docs, please rebase for v2. > Done! I am sending v2 rebased onto commit b603b3a875a9 with the > :kernel_tree: role, while keeping poss_max_id / pkg_max_id for > physical_package_id. Since your Reviewed-by tag was conditional on > removing poss_max_id, I omitted it from v2 -- please let me know if > keeping the physical_package_id bound looks good or if you and Cyril > prefer dropping it too. I'll post my RBT then and give Cyril and Li chance to look on it (we have hackweek in SUSE, Cyril will probably not have time this week). Kind regards, Petr > Thanks, > Hubert -- Mailing list info: https://lists.linux.it/listinfo/ltp