All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hubert Mazur via ltp <ltp@lists.linux.it>
To: Petr Vorel <pvorel@suse.cz>, Linux Test Project <ltp@lists.linux.it>
Cc: Hubert Mazur <hmazur@google.com>, Wake Liu <wakel@google.com>,
	Kazuhiro Inaba <kinaba@google.com>,
	Grzegorz Jaszczyk <jaszczyk@google.com>
Subject: Re: [LTP] [PATCH] sys_cpu_topology02: Drop upper bound on core_id
Date: Wed,  2 Dec 2026 08:21:34 +0000	[thread overview]
Message-ID: <20261202082134.529052-1-hmazur@google.com> (raw)
In-Reply-To: <20261201162441.GA80775@pevik>

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).

> 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.

Thanks,
Hubert

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-12-02  8:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  9:34 [LTP] [PATCH] sys_cpu_topology02: Drop upper bound on core_id Hubert Mazur via ltp
2026-11-20 10:34 ` [LTP] " linuxtestproject.agent
2026-11-30 10:06 ` [LTP] [PATCH] " Hubert Mazur via ltp
2026-12-01 16:24 ` Petr Vorel
2026-12-02  8:21   ` Hubert Mazur via ltp [this message]
2026-12-02  8:31     ` Petr Vorel
2026-12-02  8:21 ` [LTP] [PATCH v2] " Hubert Mazur via ltp
2026-12-02  8:37   ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202082134.529052-1-hmazur@google.com \
    --to=ltp@lists.linux.it \
    --cc=hmazur@google.com \
    --cc=jaszczyk@google.com \
    --cc=kinaba@google.com \
    --cc=pvorel@suse.cz \
    --cc=wakel@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.