From nobody Thu Oct 27 16:34:02 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Myrpy2kH9z4gS4w; Thu, 27 Oct 2022 16:34:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Myrpy293Xz3qy7; Thu, 27 Oct 2022 16:34:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666888442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4yezpjXEqfc9fSWqt5DmEb62cmEJHtsFiGfH8L1lBbQ=; b=yeL1j7YNv45DRwA+vIirk8lQhVIpzxz0klUdHxaZEesDKXCfUrRisxh4hS+EzkYPCrG+d/ dFNaKKk85Jdz8hnHrdMhptW7XRQiaDeZK2usQ2Xtm8Egni9Bslf6rzB1xGaP1MmRiUQde8 eW81LTmpagtgNfBS6JuY49lhaSiaHPAaFLRDHvhjkRWqyFDStKKzSJBXx/PVZdhuWUEfne /nemIuk1HRLuFlWKN7AhpDIPU4o1J0F8TNUP/EcLaF0TOs7g3/4sDtqwlJRMH6y3MxQBEg 5mG8W/+nQ5g/XKN4nf62g2q8YpuWQ9lq8AW6FyjmwIfimGXZ/RCiaHAfcZi4ZA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Myrpy1BTDz14hq; Thu, 27 Oct 2022 16:34:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29RGY2YE005014; Thu, 27 Oct 2022 16:34:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29RGY2f2005013; Thu, 27 Oct 2022 16:34:02 GMT (envelope-from git) Date: Thu, 27 Oct 2022 16:34:02 GMT Message-Id: <202210271634.29RGY2f2005013@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: c8113dad7ed4 - main - Increase MAX_APIC_ID safeguard to 0x800 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c8113dad7ed4024376901a834fc239d754292049 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666888442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4yezpjXEqfc9fSWqt5DmEb62cmEJHtsFiGfH8L1lBbQ=; b=Q+DgxDoCA9dsgZdDo1DUjuzgokn9RM1m3BMTVucMjgMTqDPci/UX2VVuW0L+/nzFdntvbM GmGdFjIYEtPu6mc7pvIOJf2Rj0FZgmhtRmqXlNt3SUSet2tFfWaH0jrT4XFAJsLY7EGX8z PH0OT0z/FmBunoF+TId5fZMYMmyCxmUEYFJwmxCzTt8KFe3YioX5oiuUp1qmnTwxJJehpx ckshdFjvQRtDJ0FPIkl4XtsnsfHQ/zZsN8NHbizwTIbEs9+F959xSt8gXCL85B4BYDJVd/ 1p0zM9agQ7PVhNFssSuVxJRk2uxm7XG+YXm/iNir9ASQlSQQTqpJTiaxC7VSxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666888442; a=rsa-sha256; cv=none; b=Ug+NyI7V8S+8ynF7rMWjzylaZV/j4iDN2s18ulYiKWE4x/ByTiIY09SIEe7IYo926UnX/n qzkQ8ckLci0JYwR7VTC4WxasBzoDH6hVtbr+vj96hXLSZ/w4N4nTO8lUel4jaNB4F3Syr3 7G/0+wjQCDrTdi34Oqx36llgXQidvboJuUUALMS25fIHByr3kjWRZJVEdhvlXF75Z1Oyz+ HDTjX00AMIfuT43B+TgfPhQlTRsZNYeBrfKkPtA4/jA9MqpTYcObAK5944c6SbSCBfS2vq 3eJ206Cy2JTOSw/Qknqf9h9q3mv+IKtZpfqOOmNiv7ADABTUPPtVklNGYw83qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=c8113dad7ed4024376901a834fc239d754292049 commit c8113dad7ed4024376901a834fc239d754292049 Author: Ed Maste AuthorDate: 2022-10-20 13:04:37 +0000 Commit: Ed Maste CommitDate: 2022-10-27 16:33:34 +0000 Increase MAX_APIC_ID safeguard to 0x800 MAX_APIC_ID must be at least twice MAXCPU. Increase it to 0x800 so that it is possible to set MAXCPU to 512 or 1024 in a custom kernel config file. Note that increasing this limit does not itself cause any allocations to be larger; it just allows madt_parse_cpu() to process higher APIC IDs. APIC IDs may be sparse and so we can waste memory. This is independent of this change, but becomes more of an issue as the maximum APIC ID grows. This should be addressed with future work. Reviewed by: royger MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37067 --- sys/x86/include/apicvar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/x86/include/apicvar.h b/sys/x86/include/apicvar.h index ff6bb97d7f80..28b9f83894fb 100644 --- a/sys/x86/include/apicvar.h +++ b/sys/x86/include/apicvar.h @@ -77,7 +77,7 @@ #define xAPIC_MAX_APIC_ID 0xfe #define xAPIC_ID_ALL 0xff -#define MAX_APIC_ID 0x200 +#define MAX_APIC_ID 0x800 #define APIC_ID_ALL 0xffffffff #define IOAPIC_MAX_ID xAPIC_MAX_APIC_ID