From: Jeffrey Hugo <jhugo@codeaurora.org>
To: Andrew Jones <drjones@redhat.com>, Sudeep Holla <sudeep.holla@arm.com>
Cc: shunyong.yang@hxt-semitech.com, ard.biesheuvel@linaro.org,
catalin.marinas@arm.com, will.deacon@arm.com,
linux-kernel@vger.kernel.org, jeremy.linton@arm.com,
yu.zheng@hxt-semitech.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] arm64: acpi: reenumerate topology ids
Date: Mon, 2 Jul 2018 08:58:17 -0600 [thread overview]
Message-ID: <3a393398-b340-84f0-3478-ebd7dba9a0ae@codeaurora.org> (raw)
In-Reply-To: <20180629154608.nqudibf54ti6dpjc@kamzik.brq.redhat.com>
On 6/29/2018 9:46 AM, Andrew Jones wrote:
> On Fri, Jun 29, 2018 at 02:29:34PM +0100, Sudeep Holla wrote:
>> If it matters a lot, vendors must use UID for consistency. Since OS doesn't
>> use those IDs for any particular reason, OS must not care.
>
> That depends. If you look at how topology_logical_package_id() is used in
> x86 code you'll see it gets used as an index to an array in a couple
> places. If we don't remap arbitrary IDs to counters than we may miss out
> on some opportunities to avoid lists.
>
> Also, we're talking about what's visible to users. I think it's much more
> likely to break a user app by exposing topology IDs that have values
> greater than the linear CPU numbers (even though properly written apps
> shouldn't expect them to be strictly <=), than the opposite.
Libvirt has the assumption already that the sysfs numbers correspond to
linear CPU numbers, and has an arbitrary limit of 4k. When spinning up
a VM, if libvirt sees a CPU ID > 4k, it fails to init the VM since it
assumes the host has more than 4k CPUs, which is unsupported.
We found this when we were making our UIDs to be the same as MPIDR in
MADT. We changed our UIDs to be sequential 0-N numbering to workaround
the issue.
--
Jeffrey Hugo
Qualcomm Datacenter Technologies as an affiliate of Qualcomm
Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
prev parent reply other threads:[~2018-07-02 14:58 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-28 14:51 [PATCH] arm64: acpi: reenumerate topology ids Andrew Jones
2018-06-28 16:30 ` Sudeep Holla
2018-06-28 17:12 ` Jeremy Linton
2018-06-29 10:53 ` Sudeep Holla
2018-06-29 11:42 ` Andrew Jones
2018-06-29 11:55 ` Andrew Jones
2018-06-29 13:48 ` Sudeep Holla
2018-06-29 13:38 ` Sudeep Holla
2018-06-29 16:03 ` Andrew Jones
2018-06-28 17:32 ` Andrew Jones
2018-06-29 10:29 ` Sudeep Holla
2018-06-29 11:23 ` Andrew Jones
2018-06-29 13:29 ` Sudeep Holla
2018-06-29 15:46 ` Andrew Jones
2018-06-29 15:55 ` Sudeep Holla
2018-06-29 16:48 ` Jeremy Linton
2018-06-29 17:03 ` Andrew Jones
2018-06-29 17:23 ` Sudeep Holla
2018-06-29 18:03 ` Andrew Jones
2018-07-02 14:58 ` Jeffrey Hugo [this message]
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=3a393398-b340-84f0-3478-ebd7dba9a0ae@codeaurora.org \
--to=jhugo@codeaurora.org \
--cc=ard.biesheuvel@linaro.org \
--cc=catalin.marinas@arm.com \
--cc=drjones@redhat.com \
--cc=jeremy.linton@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shunyong.yang@hxt-semitech.com \
--cc=sudeep.holla@arm.com \
--cc=will.deacon@arm.com \
--cc=yu.zheng@hxt-semitech.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox