From nobody Sat Dec 28 04:39:49 2024 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACDFE1ACEA8 for ; Mon, 9 Dec 2024 17:45:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733766338; cv=none; b=C2A1yTtRWhqjPGPjS5grytmdKE2bCIX/XuMWvS7Wq11PcEgAvVh28ZtbkKkjOk9/b92TGt8JH1o2jZK3kiy1QwTYiTiZaueRQ/ecHnkoT6v5oHqJWkfGKiIq5M4o+a7h3vg4F3UhL4SSiqbsn/mqv5YryIBqp7yEFB2N54F+eS8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733766338; c=relaxed/simple; bh=a9W7lPfTL24mvpVVw+B1vw215RW9SqbAYxd81amSaJ0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EJqdR+tUB1vqbAdvmAlaZY7jWzZyTE4pzqq+doGmF4D7/y+KWfk6Sqz3uQ+m04bjwFFJ6svIaj+HjQUGZVvkIUD0YAqP5lo4DKPE8Dl5wxc2FayTRcuczq1JSUHQQXGz06g/M5jmUj/crHWtxJdqNUtk8dfrfi+8wdzYCHv0P84= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=JIVATiFX; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="JIVATiFX" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-725c86bbae7so2451563b3a.3 for ; Mon, 09 Dec 2024 09:45:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1733766336; x=1734371136; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ldSIoyp9NzMDNJ5LpZ1ZVmXMctRJ96jT6CjLzy1v53A=; b=JIVATiFXKgEVB6Np4+BzpJv/Kw1+jPTSnDQLMgFGjdb7xZVZRlHEyNdZj4O5Kyc/d8 bFSHydRQ8dUqpsu8Z/tRgJnAQEOC6LvJtNwV/KmyfRgHApF5DSAtUAcUd+ZQOqMxRo9a 3zSH2I9//tkIBm07a5N/aDryNq7RLA9mhGaWY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733766336; x=1734371136; 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=ldSIoyp9NzMDNJ5LpZ1ZVmXMctRJ96jT6CjLzy1v53A=; b=i2+ocxW8A5nbT1QHOVES8uDP5wb0qogw9CrEXW289NZI3nKxuKagcikelMk91T061V 7jGGlUtfqSuAZ/X292sofVMrXtcoItAB6qKUjmGd6MGI6td6VcSfUHjGmZVuedL9Xhkb QO7x/MkkpQ4d6AnZ3HLRSyR3KIbZcJT9K0VcN8QjVn+mh9aC8ftmljlm3/PQ1ljb/lRR JvwEZ7x2nsBC6frexSh+2SjQu1cqYEUqXBY61I6OzjVfCSkpDbgjj26+Jpo5RAtX/cwX Djl75tlJ3IodslUnfwaY3glkAA5tOI0cr+ropvG14/pA63eEpUwy23jO36TcbF6JM7ep 4e8Q== X-Forwarded-Encrypted: i=1; AJvYcCUGuy3kvuxexNWW2OVGm5A1jy3WDzyzYTcii4HFdvj91wL3tRH77P/4mO66Pw+aqvgdVJ3uyXXqFRatpM4=@vger.kernel.org X-Gm-Message-State: AOJu0YwzYsB8srFN2wjRDEkwIfZXZ6aBDBIflgXLBm6JFvyPvvsHw4w+ iWUQIDGzINfSDeV5TJ9zQmXJa9YTcTa22X0iyOpDZP9cRmkVGOUMiH3mlZyalQ== X-Gm-Gg: ASbGncu6vruMBn14A0HllHjWP6LGkdnnSFWvPV2VG+oLMFo9w11Pd5NHqNsY73wVchI UDaFHfYy8emNUq2GZ/oQ7zvSZd4tWlNbxVQsbvyN8K5Rw1VIjA0j3/uXVBMm+0G3bWbzvdV+hmA Ski6XA7fUMAI0mAjMGumZyIOuHlmQjHP+SzR+wRv/bfYLWi++fXtGN7vA09297h3Lny7gyZ/Vcb 1jPP6n3AxV/gyG3AXkcutkV8QPTQaBwOyusEW2tDuGssbEZjc01ukH9xI65iFssXuuwW2ZyGg== X-Google-Smtp-Source: AGHT+IELiiIw8x+6pqx5MHw1/w0eLnkGYWzCh4ZJPcD9ZKeamtyRCjQeyjxABNpF1rwAj87E+o4Ygg== X-Received: by 2002:a05:6a21:32a8:b0:1e1:9893:9a1a with SMTP id adf61e73a8af0-1e1b1baeb1fmr2540833637.46.1733766335943; Mon, 09 Dec 2024 09:45:35 -0800 (PST) Received: from dianders.sjc.corp.google.com ([2620:15c:9d:2:5dfc:4b08:57c5:2948]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fd53ff4900sm1397667a12.50.2024.12.09.09.45.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 09:45:35 -0800 (PST) From: Douglas Anderson To: Catalin Marinas , Will Deacon , Mark Rutland Cc: Julius Werner , Jeffrey Hugo , Roxana Bradescu , bjorn.andersson@oss.qualcomm.com, linux-arm-kernel@lists.infradead.org, Trilok Soni , linux-arm-msm@vger.kernel.org, Douglas Anderson , linux-kernel@vger.kernel.org Subject: [PATCH 5/6] arm64: errata: Add QCOM_KRYO_5XX_GOLD to the spectre_bhb_k24_list Date: Mon, 9 Dec 2024 09:43:15 -0800 Message-ID: <20241209094310.5.I41e227ed809ea607114027209b57d02dc0e98384@changeid> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241209174430.2904353-1-dianders@chromium.org> References: <20241209174430.2904353-1-dianders@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Qualcomm Kryo 500-series Gold cores appear to have a derivative of an ARM Cortex A77 in them. Since A77 needs Spectre mitigation then the Kyro 500-series Gold cores also should need Spectre mitigation. Signed-off-by: Douglas Anderson --- Yes. I know. This patch DOESN'T COMPILE because MIDR_QCOM_KRYO_5XX_GOLD is not defined. That value needs to come from Qualcomm or from testing on hardware, which I don't have. Qualcomm needs to chime in to confirm that this Spectre mitigation is correct anyway, though. I'm including this patch so it's obvious that I think these cores also need the mitigation. arch/arm64/kernel/proton-pack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/proton-pack.c b/arch/arm64/kernel/proton-pac= k.c index b1881964e304..212481726f04 100644 --- a/arch/arm64/kernel/proton-pack.c +++ b/arch/arm64/kernel/proton-pack.c @@ -867,6 +867,7 @@ u8 spectre_bhb_loop_affected(int scope) MIDR_ALL_VERSIONS(MIDR_CORTEX_A77), MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N1), MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_4XX_GOLD), + MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_5XX_GOLD), {}, }; static const struct midr_range spectre_bhb_k11_list[] =3D { --=20 2.47.0.338.g60cca15819-goog