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) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72C1A606A32D for ; Wed, 2 Dec 2026 08:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lists.linux.it header.i=@lists.linux.it header.a=rsa-sha256 header.s=picard header.b=ic71b1aG; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=gijTTmRn DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1796199718; h=date : in-reply-to : mime-version : references : message-id : to : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : cc : content-type : content-transfer-encoding : sender : from; bh=vMCGcKVflqV8T7HxvxFs9qehGOjt6lz3e36dtTJ5cYQ=; b=ic71b1aGmCQjY859/J9tKRSQrt9RGxhSnn8St8hUgBjXy6biplSC+q23C24DbAAZl7PEc 7QXiJYG6T5SzLGp1hXG0Y0fzt89CqeMG2ctdbU/Min1UJ+Ho9g/qH39042tGUTwf0Z2Qo2A 8ORjJ9sz4zl9B15SH4k5th/6zTAOkM0= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id F06083E749B for ; Wed, 2 Dec 2026 09:21:57 +0100 (CET) Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) (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 AFAB13E72A0 for ; Wed, 2 Dec 2026 09:21:37 +0100 (CET) Received: from mail-wm1-x346.google.com (mail-wm1-x346.google.com [IPv6:2a00:1450:4864:20::346]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 5F3B61000B70 for ; Wed, 2 Dec 2026 09:21:37 +0100 (CET) Received: by mail-wm1-x346.google.com with SMTP id 5b1f17b1804b1-4bb64c99bb8so110141595e9.1 for ; Wed, 02 Dec 2026 00:21:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796199697; x=1796804497; darn=lists.linux.it; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=WWvyKokGIwKPcGBwgjyNhyhagqfLnbm7ybnTub2uBwk=; b=gijTTmRnByW60yDcoeUb05+S1vplNx5ATlbQQL4JHjiJqzToni70JIbbeRNKIrSUXh /456uJvHw68hyqWK1qlFrDh1Dbo6nCqag/Njj4xwVo3qMZ7NQY1Nq96S3KUs0zw7FvGZ rqZNvdyWlYoZadYtAuy2w4usbhlKfrft2jlU680pgAyE1bakqdgZou4JukYHmPZuVmxq IGFxHwWYzJDp3mVyQ8Aw38fClYmsb6fE/OmLj8ZA7s2v2DWQGXJ78j1QF/wgntawIrAS 1gB5ibYPse3/cMxnbpGMYB/84d/lmZiHGrD/kwPBgFr8jZW6vcvZ+TCuGwPTxdq6jAiJ J6Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796199697; x=1796804497; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=WWvyKokGIwKPcGBwgjyNhyhagqfLnbm7ybnTub2uBwk=; b=G4WSBV3M3Up+r5hSDtAGkHJUPS6gBu3XH7uNjQ+2Kuo5gUQyQtWGeQV6VvnqZp1hr3 7ZDq+5+ZuSYrN5xj2gVYxXTn+WVLUSkfx1uvmaChwmcZYVF19SItRer05ObpQrfWsTVq VG8ZB1v0fRanYrrs6kZD++8FqkG3YOS9Il1kT1vBfJeytrx7JYd5UmPPrYnZGgY5cSGm BbuctYs49hTFqGkY7G26AsT5kgBLtxBJpkambyYMbEKLIFRdYrrzjZvl0aCGpXcNXuWS 6bHp9JNIJJQrym1hq/izYN2QycmpinnSAV45zf/eFCYNIxKyYX9Tpb0W/33vsAI8dpte 2zPg== X-Forwarded-Encrypted: i=1; AL+hErH2+5c72EzT5+tHLAyQZYEC1ARNkdFseDjfTHQw4edpYcfSiNwLdWjIOGpx5Gwfx/HzEBA=@lists.linux.it X-Gm-Message-State: APuU4Z9FEkjvlUyuz/osS3hAK+Vyh/+cHT3iRrX/rN0Xp3bPBMQDRjfu 0eBMS2LXo2FCngUa3J3O3gqhPYhS0Or1z2tOh0aOEcBOXGNKwd9o236I3LtoXa+E/13C5Ezgxeh 3YedZmg== X-Received: from wmph19.prod.google.com ([2002:a05:600c:4993:b0:4a2:826:6d11]) (user=hmazur job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4755:b0:4bb:7033:de79 with SMTP id 5b1f17b1804b1-4bb8881dd02mr820155125e9.35.1796199696541; Wed, 02 Dec 2026 00:21:36 -0800 (PST) Date: Wed, 2 Dec 2026 08:21:34 +0000 In-Reply-To: <20261201162441.GA80775@pevik> X-Archived-By: Mime-Version: 1.0 References: <20261201162441.GA80775@pevik> X-Mailer: git-send-email 2.56.1.911.g883d8bcb20-goog Message-ID: <20261202082134.529052-1-hmazur@google.com> To: Petr Vorel , Linux Test Project X-Spam-Status: No, score=-9.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_PASS,SPF_PASS,USER_AGENT_GIT autolearn=ham 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-4.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: , From: Hubert Mazur via ltp Reply-To: Hubert Mazur Cc: Hubert Mazur , Wake Liu , Kazuhiro Inaba , Grzegorz Jaszczyk 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). > 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