From patchwork Thu Sep 12 19:51:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Cox X-Patchwork-Id: 1984849 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X4SnT4Nbhz1y28 for ; Fri, 13 Sep 2024 05:54:20 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1soptK-000615-DX; Thu, 12 Sep 2024 19:54:10 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1soptI-00060Y-CM for kernel-team@lists.ubuntu.com; Thu, 12 Sep 2024 19:54:08 +0000 Received: from mail-yb1-f198.google.com (mail-yb1-f198.google.com [209.85.219.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id D33673F325 for ; Thu, 12 Sep 2024 19:54:05 +0000 (UTC) Received: by mail-yb1-f198.google.com with SMTP id 3f1490d57ef6-e1159159528so4271167276.1 for ; Thu, 12 Sep 2024 12:54:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726170843; x=1726775643; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x3+giGV7gri9CBn5fS7yKu1QRRxa0Sl3WCfya8/f83k=; b=OwTcOL28Lvyg+g4zFSQNlucsvmLSqIhcnunENG96zYpem72Qr6I/CQdnvY715I6KFv GYQupU0jW6GMzJOFmLoauarOJ3iDPhpAr1v7HXui79Zr2mpovHcffY5wL0V/E2PW2nvZ z4Y4rd/y/WtoAj8FVXuOYBqcnS6sPwzitgaP61zQP+9elHWLcFekv1f9ucKv5j/uT2b8 hf1kzum5DHqoc6V9ZRFjOEWUWN/PlJ07V8OuwAa1UirAVYx7IFe9NXjKiXg+s8/IFHBY RHI/KSAFplrxm/3SCw0YzBIRtg1jcHlh3OyUQxzNUhHjuYJfF8jRKO2IWbTGLL+aCo/C PaPw== X-Gm-Message-State: AOJu0YwTHdGut5qXMnbXDiJSdHzSFCp3nUEjU4sXxe8K4z32U4mW3TVs 1xj0h4luHePGF5p/NoqkCBtfjFVLK6VrF7DCM/YUZ9LwWc/N/BLE0pqnSn8ctdmr/BVByzxuoFI bE5qjM4t+PV0Xgh5AL9DRStm1CUd1CgSQkipFxWI+FgOWhJp00TIdIeR6L5+yiplb75NEQSoIFN ynftmpR213dw== X-Received: by 2002:a05:6902:706:b0:e0b:b11c:2f42 with SMTP id 3f1490d57ef6-e1d9e1a505bmr3753084276.17.1726170842934; Thu, 12 Sep 2024 12:54:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrRa3LgodzNQkPtoAxnXWdrbAk2AnJspxayZrgk5QqfPXXoJG/uOV2klZhz3Hc2/ya5s2knA== X-Received: by 2002:a05:6902:706:b0:e0b:b11c:2f42 with SMTP id 3f1490d57ef6-e1d9e1a505bmr3753067276.17.1726170842614; Thu, 12 Sep 2024 12:54:02 -0700 (PDT) Received: from cox.home.arpa ([70.51.3.142]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e1d7bbc1ffcsm1150136276.53.2024.09.12.12.53.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 12:54:00 -0700 (PDT) From: Philip Cox To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/1][Noble][aws] cpufreq: intel_pstate: Support Emerald Rapids OOB mode Date: Thu, 12 Sep 2024 15:51:44 -0400 Message-Id: <20240912195144.71142-2-philip.cox@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240912195144.71142-1-philip.cox@canonical.com> References: <20240912195144.71142-1-philip.cox@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Srinivas Pandruvada BugLink: https://bugs.launchpad.net/bugs/2080569 Prevent intel_pstate from loading when OOB (Out Of Band) P-states mode is enabled in Emerald Rapids. The OOB identifying bits are same as for the prior generation CPUs like Sapphire Rapids servers, so also add Emerald Rapids to the intel_pstate_cpu_oob_ids[] list. Signed-off-by: Srinivas Pandruvada Signed-off-by: Rafael J. Wysocki (back ported from commit 7e1c3f584ee78b0d0210fc424420d9529f3ca952) [philcox: context changes] Signed-off-by: Philip Cox --- drivers/cpufreq/intel_pstate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 79619227ea51..c90e471a35d3 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -2445,6 +2445,7 @@ static const struct x86_cpu_id intel_pstate_cpu_oob_ids[] __initconst = { X86_MATCH(SKYLAKE_X, core_funcs), X86_MATCH(ICELAKE_X, core_funcs), X86_MATCH(SAPPHIRERAPIDS_X, core_funcs), + X86_MATCH(EMERALDRAPIDS_X, core_funcs), {} };