From patchwork Thu Dec 19 21:11:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Anderson X-Patchwork-Id: 13915823 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (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 872851DC9B5 for ; Thu, 19 Dec 2024 21:11:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734642707; cv=none; b=jqk1ThVAt1YreaUK2ylp2JOLMfJMebO8oNnvWZHQKh01oHetyB/927FsqbS5FlCtz3a0EZxhZMJDDMnxDa+7pI+/zfDwzdJmZSecoe/fDe+G4D/C+ZnnO2nafMLAcPUduKqKBLUdeQ9pymkrU1yHfAAOgL5VHNrPLuCViAPw6vg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734642707; c=relaxed/simple; bh=Q9yaIBO8kyBxOHtI0nnlecVbPK0hFrUVcbKsVKNNWgM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o87lpl52/VnbVE8HZgvbZtI7U5TdryWrGetn/ZvSemVpTJjZ336U0MMFGAUxk582STgU/e+sFZh+9Bv86He8YPh6P+mqujRYNGwKxBK64JK+NlKLFqpv75UZ4UBl969dSgmt9wDo0EpkrG/RvIO5T83hHgNkoKms9cp8bGYHi6s= 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=kvxQaiN2; arc=none smtp.client-ip=209.85.216.46 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="kvxQaiN2" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2ef8c012913so883714a91.3 for ; Thu, 19 Dec 2024 13:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1734642705; x=1735247505; 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=IFdap/sOPpq0KBRuIbSWSowsNeRO1eLNOr+oanM3LgM=; b=kvxQaiN2nK5ekB0UqndkM3UiOnD/r+uK8ASCWqKMLW2arBB+RCybpzvTZtIXxoxHME Y6EUeQrFCnEmwj7Fx38KgSMF2JSnOgQrNqptVHfZgyKiSAdjzz8+w11Kq1LkFQxvxxKG OXnSfUJ/58xbyE+k5Bj8noTz8OqUtBQcSLxPA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734642705; x=1735247505; 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=IFdap/sOPpq0KBRuIbSWSowsNeRO1eLNOr+oanM3LgM=; b=VLth1KtIweWIfs2Vm7I5EHMOyOLUip6Rb1XiI6a/WnfyehuDJE5V/84qplX7zHXhil xx4bzerZOSFfDW+Y8Y2HVlkrj7PNvVZoHesjrUaxcZJgmu7FSO6entjb8BUwW/Dd3/LW 8hKj7v+GluPhOJf4EzF28BvcIVxlQMXtRukzK7nmKtocG5ZUTJA8tZGl+bmrmwQo5sQT FA7e6VhnCbH3mwnOs4znbGy5K7tJdDyCpWpsIRVTMgaDbwJ+B+CjbBQ/BKti2Al2vths K8eVH9HdhFSEOBHBmLfAQIUXywhpty5vwFnORnTvkWqBWb2nfIydSWupDmCjvkMcyIOQ t61Q== X-Forwarded-Encrypted: i=1; AJvYcCUQY5JgXpFAn+lGgv2eJ0on0MTCmIZPGOFEU5g7Uxme5t5Xga7XKe2NpdMuiZCocsaV/8CL2PaDxAg/G5RR@vger.kernel.org X-Gm-Message-State: AOJu0YxnMqSTOE8PJL5x10oKsIDLJf69Hj31lM8/smi3DzAPSk3tgNj5 zbi84Npo7VyFdtJw6CS2YFnEzFve+l0ImNoBdzoGO7fDjwC7OjXdq0oQZ4P1ZA== X-Gm-Gg: ASbGnctCq4SspUwUeNoyHn0+xP5tGaLkiTHisrI7xPic/kGkktR291AdA1Wbi73OsvV ulzWUKX/QIForDrJdSSOAaMsLjlCrFcs7hU0MMlXKQ7I+uOZeQjsvtoa1b4C7GAj5cgMk8Yes9/ PbJIS/lMGeDdbHP/BBEHxceKwnzVi5J5j775jqpfzQKEh/Ir13DKE4x75a2kvWWtuNcFgJ2hG+a cNq5SJKmpUw0WblP6XkJMYgyeyXm+7e2IfNV43ZA8nNYlNCB8zKdSZ8NoQRQ3VMOfBj/HZaSA7t X-Google-Smtp-Source: AGHT+IGGlFCtPFGDg3TdCtB0hxPFvr8OnZ5HyqWHMKdJ0cGGUX0g5v4rfCRR8thJne3bzlkoFYIN3w== X-Received: by 2002:a17:90b:2652:b0:2f2:ab09:c256 with SMTP id 98e67ed59e1d1-2f452f01cd4mr699326a91.33.1734642704943; Thu, 19 Dec 2024 13:11:44 -0800 (PST) Received: from dianders.sjc.corp.google.com ([2620:15c:9d:2:a8a3:6409:6518:340d]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f4477c8461sm1880887a91.13.2024.12.19.13.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 13:11:44 -0800 (PST) From: Douglas Anderson To: Catalin Marinas , Will Deacon , Mark Rutland Cc: Trilok Soni , Jeffrey Hugo , Roxana Bradescu , bjorn.andersson@oss.qualcomm.com, Julius Werner , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Douglas Anderson , Dmitry Baryshkov , Anshuman Khandual , Besar Wicaksono , D Scott Phillips , Easwar Hariharan , Oliver Upton , linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD Date: Thu, 19 Dec 2024 13:11:09 -0800 Message-ID: <20241219131107.v3.1.I18e0288742871393228249a768e5d56ea65d93dc@changeid> X-Mailer: git-send-email 2.47.1.613.gc27f4b7a9f-goog In-Reply-To: <20241219211131.2389091-1-dianders@chromium.org> References: <20241219211131.2389091-1-dianders@chromium.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add a definition for the Qualcomm Kryo 300-series Gold cores. Reviewed-by: Dmitry Baryshkov Signed-off-by: Douglas Anderson --- (no changes since v1) arch/arm64/include/asm/cputype.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h index 488f8e751349..c8058f91a5bd 100644 --- a/arch/arm64/include/asm/cputype.h +++ b/arch/arm64/include/asm/cputype.h @@ -119,6 +119,7 @@ #define QCOM_CPU_PART_KRYO 0x200 #define QCOM_CPU_PART_KRYO_2XX_GOLD 0x800 #define QCOM_CPU_PART_KRYO_2XX_SILVER 0x801 +#define QCOM_CPU_PART_KRYO_3XX_GOLD 0x802 #define QCOM_CPU_PART_KRYO_3XX_SILVER 0x803 #define QCOM_CPU_PART_KRYO_4XX_GOLD 0x804 #define QCOM_CPU_PART_KRYO_4XX_SILVER 0x805 @@ -195,6 +196,7 @@ #define MIDR_QCOM_KRYO MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO) #define MIDR_QCOM_KRYO_2XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_2XX_GOLD) #define MIDR_QCOM_KRYO_2XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_2XX_SILVER) +#define MIDR_QCOM_KRYO_3XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_3XX_GOLD) #define MIDR_QCOM_KRYO_3XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_3XX_SILVER) #define MIDR_QCOM_KRYO_4XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_GOLD) #define MIDR_QCOM_KRYO_4XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_SILVER) From patchwork Thu Dec 19 21:11:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Anderson X-Patchwork-Id: 13915824 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 E65AE1EE7D3 for ; Thu, 19 Dec 2024 21:11:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734642709; cv=none; b=K0ACjFFGgdG0kUubUa4T4UXYrxsGLCJkd79u7UY77BvhYoeF7aM2MbV6K+1SRWpt4APbP0t65RQzbL+aMU6o2+F8Xfz1dk/4uYiHrWx/ziVVg6VXVIw1SCKgXsKJzpSH7v+aRSM6VOyIlGDwTuPheAZO9E7MWLGukeuXjZ2TOe0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734642709; c=relaxed/simple; bh=6zW654+ODmNYryMP6P51qNY+ZOjYRbe8urSo0sBWK08=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QxP6JkPFTkvauwKz3JnGASovSdQsDAUhhs4EPovfCSK6QFfU9XnbbDDM6KyRbmrUp00Zo+8YNTElPjOjzABppX0NKmok3TkgpFQhzkpjOAaHd6f70fXryJYlWtEs0+2TcuEnZvAVF+yOl6szhR4zZSydG52KGtgzLJS51bQektM= 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=G8neMJF1; arc=none smtp.client-ip=209.85.216.45 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="G8neMJF1" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2efe25558ddso884687a91.2 for ; Thu, 19 Dec 2024 13:11:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1734642707; x=1735247507; 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=QdqbLeOnG/CNjI8uFDgPDBupu1L0ikHkLJQEPoxLge8=; b=G8neMJF16p7tFDwJN2Fq4rKQ0ufX/L+aCNDnxqObaWl4R6RWies1GwZoRP+NU/VnjM E+houduuzA70aL/Zrg8FkVm+t8G2fEFNP51FczkDN98MamDXScSmkLwmKNSC/GF84m37 d2pJHxTvc3AF+qOW1s2OpmHcJ+iQlZ+3hzfm0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734642707; x=1735247507; 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=QdqbLeOnG/CNjI8uFDgPDBupu1L0ikHkLJQEPoxLge8=; b=coBUFTPLgM8jU1U9wgmqrXvJoJqsnvv+i+X9y71dj/Apu2oKTeShVSdbY0jQiAHLw4 J/0WzNafrq++W1SvPuG1ZFJwSd5C3vYVKZ6SEoNuos4ZQ1Z/G7hUUZhNyBiHn7oPzg2k fO8qqPbrXkl9CxdkijS5KWO7t0pYdY8QuCm0kGWshGufEleG/GgzN3RC3n2O5FeS+sGU Gr5h2ePepXGotXS/MeWP9D50QeU2Dulg/wdObup5Vgqj2YbqoBre5YVJwJ7r10FqgD86 u8T1zYYej5YGAYvLp88bM+2NG45UvoaMhWCEmVI79jiPb2kzz0zj2KawGG2gMMqelx6n Bt+g== X-Forwarded-Encrypted: i=1; AJvYcCUef3VEhpvacP0w60V1fhE8DoduCKC4DooYm3Pk6GbFMNECLYc/H3lf5krMR5amLjPPN7pMSZRNznhHjhwV@vger.kernel.org X-Gm-Message-State: AOJu0YxbcI5++w8r+g9zhSHA+pGteA5j9+4g31U3fovNhdZ/TxXd5AFI t+wDLEajhdcTH2vKX1LA+Z4pw2q5fso0/QftND4bFFjvPjHU8qtn/K2+zyvS6A== X-Gm-Gg: ASbGncuqayc+5XD36hGiqdXAPbRH32/80V5lmqf3+3da1ab6bkDQbUjN0/S3i6Am8WK aN20mWhUw9gWxpYKjdTPNkS8KBWrtdS+U5L7RGpstbORvCb64wgwaxWNa0w9tK1EQfgseYCEsCl 6pXdY4Gtxhw60YHjCDdk1MenOZcUTqR1LS4SlyWiS8Oxm7S2L2o7DHGKIghlqrWaXO7EBKWYMy4 L6MlxmdAJ4uj5t6/p1B2XVShIhPpuhcJbJ4fxwPmW3NB+1cmTf5FUcbfgArFr4vwfsUw8wi1fLE X-Google-Smtp-Source: AGHT+IG/mLE8f3nNqAfPDbUjzRxUJWzlsRtGsp6JD85mHJm8QntMhMFrw0g+6zwm/W9Dds8OjaF2Tg== X-Received: by 2002:a17:90a:d88c:b0:2ee:b6c5:1de7 with SMTP id 98e67ed59e1d1-2f452deb516mr716393a91.2.1734642707254; Thu, 19 Dec 2024 13:11:47 -0800 (PST) Received: from dianders.sjc.corp.google.com ([2620:15c:9d:2:a8a3:6409:6518:340d]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f4477c8461sm1880887a91.13.2024.12.19.13.11.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 13:11:46 -0800 (PST) From: Douglas Anderson To: Catalin Marinas , Will Deacon , Mark Rutland Cc: Trilok Soni , Jeffrey Hugo , Roxana Bradescu , bjorn.andersson@oss.qualcomm.com, Julius Werner , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Douglas Anderson , Anshuman Khandual , Besar Wicaksono , D Scott Phillips , Easwar Hariharan , Oliver Upton , linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] arm64: cputype: Add comments about Qualcomm Kryo 5XX and 6XX cores Date: Thu, 19 Dec 2024 13:11:10 -0800 Message-ID: <20241219131107.v3.2.I520dfa10ad9f598581c2591d631aa6e9e26f7603@changeid> X-Mailer: git-send-email 2.47.1.613.gc27f4b7a9f-goog In-Reply-To: <20241219211131.2389091-1-dianders@chromium.org> References: <20241219211131.2389091-1-dianders@chromium.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 As tested on one example of a Qualcomm Kryo 5XX CPU [1] and one example of a Qualcomm Kryo 6XX CPU [2], we don't need any extra MIDR definitions for the cores in those processors. Add comments to make it clear that these IDs weren't forgotten and just aren't needed. [1] https://lore.kernel.org/r/l5rqbbxn6hktlcxooolkvi5n3arkht6zzhrvdjf6kis322nsup@5hsrak4cgteq/ [2] https://lore.kernel.org/r/tx7vtur7yea6ruefrkpkccqptahgmxnsrudwdz5uzcfxnng25b@afrr5bmdk2xa/ Suggested-by: Julius Werner Signed-off-by: Douglas Anderson Reviewed-by: Dmitry Baryshkov --- Changes in v3: - New arch/arm64/include/asm/cputype.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h index c8058f91a5bd..8782d4721f81 100644 --- a/arch/arm64/include/asm/cputype.h +++ b/arch/arm64/include/asm/cputype.h @@ -200,6 +200,16 @@ #define MIDR_QCOM_KRYO_3XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_3XX_SILVER) #define MIDR_QCOM_KRYO_4XX_GOLD MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_GOLD) #define MIDR_QCOM_KRYO_4XX_SILVER MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO_4XX_SILVER) + +/* + * NOTES: + * - Qualcomm Kryo 5XX Prime / Gold ID themselves as MIDR_CORTEX_A77 + * - Qualcomm Kryo 5XX Silver IDs itself as MIDR_QCOM_KRYO_4XX_SILVER + * - Qualcomm Kryo 6XX Prime IDs itself as MIDR_CORTEX_X1 + * - Qualcomm Kryo 6XX Gold IDs itself as ARM_CPU_PART_CORTEX_A78 + * - Qualcomm Kryo 6XX Silver IDs itself as MIDR_CORTEX_A55 + */ + #define MIDR_NVIDIA_DENVER MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_DENVER) #define MIDR_NVIDIA_CARMEL MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_CARMEL) #define MIDR_FUJITSU_A64FX MIDR_CPU_MODEL(ARM_CPU_IMP_FUJITSU, FUJITSU_CPU_PART_A64FX)