From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.myaccess.ca (mail.myaccess.ca [65.87.230.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2553243AA1 for ; Sun, 5 Jan 2025 01:24:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.87.230.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736040290; cv=none; b=N8W+r3X+h6N/8xpK5fI5xD/05X0lwofSzizqXleqmXASC7+AY8moD4jv0Y2pvUhztzKjpMDrbdSYLMxXBVFGOIAgGrIVBfqyhumg59jEmNEY9pdUOBNcmM/gQdO4ad9zgUozGnVCWfnFa3hvYB53i7iKNSVePaTHqYE84kMp/v4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736040290; c=relaxed/simple; bh=IQDhi0adER0J7hoVWROYhh2dlwuSByn2nB5KHVxWU1E=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=rMtRbXRbkTDfdi2qLcemJ9dNW27JDn2X33AcKvKtD++ngBnG9mzY3yJXqLfU4cE4c9lAe+5IChLbIE8FfSsLJa2ulCpt21u/0QIC3AiTZbxKnXeFv1H+G2yXduQEmqABMSIyxCZHisGeD4SMqUjm4hKij7lSvESBmufPozVL184= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=accesscomm.ca; spf=pass smtp.mailfrom=accesscomm.ca; dkim=pass (2048-bit key) header.d=accesscomm.ca header.i=@accesscomm.ca header.b=DfcUG0r9; arc=none smtp.client-ip=65.87.230.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=accesscomm.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=accesscomm.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=accesscomm.ca header.i=@accesscomm.ca header.b="DfcUG0r9" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.myaccess.ca (Postfix) with ESMTP id 74BDD40041D; Sat, 4 Jan 2025 19:24:48 -0600 (CST) Received: from mail.myaccess.ca ([127.0.0.1]) by localhost (zm-mta2.myaccess.ca [127.0.0.1]) (amavis, port 10032) with ESMTP id 6g_2o5Aw1PiA; Sat, 4 Jan 2025 19:24:47 -0600 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.myaccess.ca (Postfix) with ESMTP id 89DD240042C; Sat, 4 Jan 2025 19:24:47 -0600 (CST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.myaccess.ca 89DD240042C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=accesscomm.ca; s=24BBC666-8670-11EB-8FAB-4A5FDD4BBD18; t=1736040287; bh=IQDhi0adER0J7hoVWROYhh2dlwuSByn2nB5KHVxWU1E=; h=Message-ID:Date:MIME-Version:To:From; b=DfcUG0r9YgpU3knYVNYe/7wcDTh9SeJhedPyotT7hseagiNx50BtGBmBA4IST/meM 3fz2DdsmsFrqYwrHeYuud9yanw3q/t+AjSf/+PvDMiIk16w/B5V7OTGKgKxCyrlBLD n0fdR/PStFUAELztP72gsdFoDvn+brLdZmNV2cEd/lX/nNOxSF0zYaBZU3V9t6Jhf4 muufTRoqWTQ05G+kH5uNXtTwXqnGozgQP0dJSwAqDMQYA+q27fI8h3TNA1ZyZstHIW llb1mOoqq8POzKjQH6LAcogu82EF2X2JyAd+lAgX8e4dFTAvF0ItlG+6h2hS2L+EfS bcqFX7wU3y5lA== X-Virus-Scanned: amavis at zm-mta2.myaccess.ca Received: from mail.myaccess.ca ([127.0.0.1]) by localhost (zm-mta2.myaccess.ca [127.0.0.1]) (amavis, port 10026) with ESMTP id T8qphXzNDyZ6; Sat, 4 Jan 2025 19:24:47 -0600 (CST) Received: from [172.16.67.4] (static24-72-137-23.r.rev.accesscomm.ca [24.72.137.23]) by mail.myaccess.ca (Postfix) with ESMTPSA id 62AF9400322; Sat, 4 Jan 2025 19:24:47 -0600 (CST) Message-ID: <0866091e-7f94-4d16-8064-3128a024f79d@accesscomm.ca> Date: Sat, 4 Jan 2025 19:24:47 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Linux Kernel Cc: mingo@redhat.com From: Richard Henschel Subject: Can get cpu_init_udelay default be fixed? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable The problem is at about line 690 in=20 /usr/src/linux-source-6.11.0/arch/x86/kernel/smpboot.c =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* if cmdline changed it from defau= lt, leave it alone */ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (init_udelay !=3D UINT_MAX= ) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 return; =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* if modern processor, use n= o delay */ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (((boot_cpu_data.x86_vendo= r =3D=3D X86_VENDOR_INTEL) &&=20 (boot_cpu_data.x86 =3D=3D 6)) || =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((boo= t_cpu_data.x86_vendor =3D=3D X86_VENDOR_HYGON) &&=20 (boot_cpu_data.x86 >=3D 0x18)) || =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((boo= t_cpu_data.x86_vendor =3D=3D X86_VENDOR_AMD) &&=20 (boot_cpu_data.x86 >=3D 0xF))) { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 init_udelay =3D 0; =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 return; =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* else, use legacy delay */ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 init_udelay =3D UDELAY_10MS_D= EFAULT; Where all machines in family 6 of Intel get cpu_init_udelay=3D0 by=20 default.=C2=A0 Why zero?=C2=A0 Are there any machines that won't boot if = NOT=20 zero?=C2=A0 I ran tests on 4 machines I have (2 are antiques) and they wo= uld=20 all boot with that value as 1000.=C2=A0 The Asus ROG GL12CX which is fami= ly 6=20 won't boot with this value less than 650.=C2=A0 I have previously used=20 acpi=3Doff and noapic to boot but with degradation (only 1 core works).=C2= =A0=20 Are there any machines still running that need the other default of=20 10000?=C2=A0 Can you simplify by just using 1000 for everything if not=20 over-ridden? Test results=C2=A0 I have for four machines all running Ubuntu 24.10 kern= el=20 6.11.0-13: Command line: BOOT_IMAGE=3D/boot/vmlinuz-6.11.0-13-generic=20 root=3DUUID=3D8f1dfe6b-aaf9-4ff3-b497-faa862db0c2c ro cpu-init-udelay=3D1= 000=20 quiet splash=20 crashkernel=3D2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4= 096M=20 vt.handoff=3D7 DMI: HP Victus by HP Gaming Laptop 15-fb1xxx/8C30, BIOS F.07 07/23/2024 DMI: Memory slots populated: 2/2 smpboot: CPU0: AMD Ryzen 5 7535HS with Radeon Graphics (family: 0x19,=20 model: 0x44, stepping: 0x1) smpboot: Total of 12 processors activated (79052.20 BogoMIPS) Memory: 31414640K/32724336K available (22528K kernel code, 4521K rwdata,=20 14936K rodata, 4956K init, 4664K bss, 1288376K reserved, 0K cma-reserved) Command line: BOOT_IMAGE=3D/boot/vmlinuz-6.11.0-13-generic=20 root=3DUUID=3D89af16be-2e3e-4afc-a086-604e078012a4 ro cpu-init-udelay=3D1= 000=20 quiet splash=20 crashkernel=3D2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4= 096M DMI: ASUSTeK COMPUTER INC. ROG Strix GL12CX_GL12CX/GL12CX, BIOS=20 GL12CX.313 02/08/2021 DMI: Memory slots populated: 2/2 smpboot: CPU0: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (family: 0x6,=20 model: 0x9e, stepping: 0xd) smpboot: Total of 8 processors activated (57600.00 BogoMIPS) Memory: 31641116K/33471720K available (22528K kernel code, 4521K rwdata,=20 14936K rodata, 4956K init, 4664K bss, 1811884K reserved, 0K cma-reserved) Command line: BOOT_IMAGE=3D/boot/vmlinuz-6.11.0-13-generic=20 root=3DUUID=3D6176f339-0e60-4f78-af8a-de9fbef0a8a2 ro cpu-init-udelay=3D1= 000=20 quiet splash=20 crashkernel=3D2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4= 096M=20 vt.handoff=3D7 DMI: ASUSTeK COMPUTER INC. K55A/K55A, BIOS K55A.406 11/08/2012 DMI: Memory slots populated: 2/4 smpboot: CPU0: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz (family: 0x6,=20 model: 0x3a, stepping: 0x9) smpboot: Total of 8 processors activated (38312.75 BogoMIPS) Memory: 6944032K/7812652K available (22528K kernel code, 4521K rwdata,=20 14936K rodata, 4956K init, 4664K bss, 852656K reserved, 0K cma-reserved) Command line: BOOT_IMAGE=3D/boot/vmlinuz-6.11.0-13-generic=20 root=3DUUID=3Dbae658d8-76ec-4e41-8415-7d3bdfd240df ro cpu-init-udelay=3D1= 000=20 quiet splash=20 crashkernel=3D2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4= 096M=20 vt.handoff=3D7 DMI: Hewlett-Packard /2AB1 , BIOS 6.11 12/28/2011 DMI: Memory slots populated: 4/4 smpboot: CPU0: AMD Athlon(tm) II X4 640 Processor (family: 0x10, model:=20 0x5, stepping: 0x3) smpboot: Total of 4 processors activated (24001.76 BogoMIPS) Memory: 7193560K/8123612K available (22528K kernel code, 4521K rwdata,=20 14936K rodata, 4956K init, 4664K bss, 921528K reserved, 0K cma-reserved)