From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 D01FC38B7A4 for ; Tue, 24 Mar 2026 03:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774321573; cv=none; b=jfbu3vtGMn7vI8z+HhR69u6eRL2jjVTV1nCdg9wBbHHojaWeW594fPVvyPMgTYuIoRZOMMFHLGgZx7Tap47AVMdEc451dxULV/mm9NsfGl7NeqiK6Zzf7UV09E+DjWDUvmdaoPr6j/ITCXMqsyqqAshELofqXckylf+0l9C/aFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774321573; c=relaxed/simple; bh=0Iuu5jnpC+jZBHFw2rWCs8yCqKnzw/GAE7IP1PNN9/I=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=URfqFd+I7GVaGmPzGn3okuyBwcVW8vWE+wCdr1WfVn6gTUM0lrVvQS54qNnmZZYr0y/A2cPDZhkaPRren2jbTBU25WjPFmYGaSwToMiR/0HzTKv0Knbw/9mmvRyoAyoeIN2JTZbsqoyGUWY8l1EKiqn3hDvyr6OxBBePrrKw16Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=nHnI9+p4; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="nHnI9+p4" Received: from smtpclient.apple (c-24-130-165-117.hsd1.ca.comcast.net [24.130.165.117]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 62O35Mv93775755 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 23 Mar 2026 20:05:22 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 62O35Mv93775755 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2026022301; t=1774321523; bh=0Iuu5jnpC+jZBHFw2rWCs8yCqKnzw/GAE7IP1PNN9/I=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=nHnI9+p4yQ41oGZag0kHieAJPwHU6HS2dOAEW5NfiYvrJnkqJKQHB2qcaQhpjjdIY fSeZGqla8Ep4EL+ETxD0YQUhpMAvoNR7KXV5OAH/6wdxqrXmsmQ/g7SuH1/tN9rMNN 8DIxOUzu7sg/E13uyzn3QwACkKOBFnK1ZoaIbFtc2j8nUvZdmuRYDOCVBBq6c5uyAS wbpQMqUVZ8eq8QRf/S39LXj/QgZRh8R5XvPrWsM2m5ZtuehpD6gGqxE1pKpqaQcZlL SW+hHe6l3qQQ/5k3ESFgptWn2QjQfyJ+C5ezDGi0ehz9k50LLpJVeZs6/aN0pcfmfR HpACpq8+pvovQ== Content-Type: text/plain; charset=utf-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: [PATCH 0/2] x86/fred: enable FRED by default From: Xin Li In-Reply-To: <84489fd4-aa23-4ba1-b5a1-c1baafb6718d@intel.com> Date: Mon, 23 Mar 2026 20:05:11 -0700 Cc: "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "Peter Zijlstra (Intel)" , Kees Cook , "Ahmed S. Darwish" , linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <927AE575-3C10-427E-9C4B-0238CBF8301E@zytor.com> References: <20260323201510.1537333-1-hpa@zytor.com> <84489fd4-aa23-4ba1-b5a1-c1baafb6718d@intel.com> To: Sohil Mehta X-Mailer: Apple Mail (2.3864.400.21) > On Mar 23, 2026, at 6:01=E2=80=AFPM, Sohil Mehta = wrote: >=20 >> @@ -1746,7 +1746,7 @@ static void __init cpu_parse_early_param(void) >>=20 >> /* Minimize the gap between FRED is available and available but = disabled. */ >> arglen =3D cmdline_find_option(boot_command_line, "fred", arg, = sizeof(arg)); >> - if (arglen !=3D 2 || strncmp(arg, "on", 2)) >> + if (arglen > 0 && (arglen !=3D 2 || strncmp(arg, "on", 2))) >> setup_clear_cpu_cap(X86_FEATURE_FRED); >=20 > Nit: Would it be better to compare with "off" rather than not on? +1 :)