[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <71242da1-8a7a-53ca-06d6-7a1363141bd8@gmail.com>
Date: Wed, 6 Jul 2022 18:21:02 +0800
From: Tianyu Lan <ltykernel@...il.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: corbet@....net, rafael@...nel.org, len.brown@...el.com,
pavel@....cz, tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
dave.hansen@...ux.intel.com, x86@...nel.org, hpa@...or.com,
m.szyprowski@...sung.com, robin.murphy@....com, paulmck@...nel.org,
akpm@...ux-foundation.org, keescook@...omium.org,
songmuchun@...edance.com, rdunlap@...radead.org,
damien.lemoal@...nsource.wdc.com, michael.h.kelley@...rosoft.com,
kys@...rosoft.com, Tianyu Lan <Tianyu.Lan@...rosoft.com>,
iommu@...ts.linux-foundation.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
vkuznets@...hat.com, wei.liu@...nel.org, parri.andrea@...il.com,
thomas.lendacky@....com, linux-hyperv@...r.kernel.org,
kirill.shutemov@...el.com, andi.kleen@...el.com,
Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH 2/2] x86/ACPI: Set swiotlb area according to the number of
lapic entry in MADT
On 7/6/2022 5:02 PM, Christoph Hellwig wrote:
> On Wed, Jul 06, 2022 at 04:57:33PM +0800, Tianyu Lan wrote:
>> Swiotlb_init() is called in the mem_init() of different architects and
>> memblock free pages are released to the buddy allocator just after
>> calling swiotlb_init() via memblock_free_all().
>
> Yes.
>
>> The mem_init() is called before smp_init().
>
> But why would that matter? cpu_possible_map is set up from
> setup_arch(), which is called before that.
Sorry. I just still focus online cpu number and the number is got after
smp_init(). Possible cpu number includes some offline cpus. I will have
a try. Thanks for suggestion.
Powered by blists - more mailing lists