Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2492285ybd; Mon, 24 Jun 2019 07:21:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqymhyBwrmi6oouUovUBEfl5lQjxYQREGRsCueAexpX/M2SahF1mx6y8QR7xt+QibcI5eO/Z X-Received: by 2002:a65:4946:: with SMTP id q6mr12751136pgs.323.1561386107986; Mon, 24 Jun 2019 07:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561386107; cv=none; d=google.com; s=arc-20160816; b=qcgT5VbHRItsxc4ch0nr3t00VraSYEuLButw3jzN+5mNW2dV7Lc0yJ6dmKGX52iweO M0MBsSBd95/xaO9arfwoY6UQ8uNqMH2lThMLsU2i4XC0SC2H6fUb4bRobPgd9afM7KrT MWNVYbsklXsztVxDUE2IDd+JSrbO/g81fxw73W8Ros+M0UFTjqcs1d1P9CqSOnAsuxHD hIWXkPrEOrmwCqM3wEwCTEihZ4Ny2+q3Miw3KLSlG9OOc5hMPGY9TV9uiWcTuOsNVkWP RSlX7k7ISBq3itY7pzTvYo3BdJkoYJflyV1+zokwDVAaOLRvhUTbyjHj9aqr+Vlvqz/p onlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=HqeG5ilzT5LNicO9AAxW5rHI94QEYyYMeUDOLFmxGPg=; b=LPmDYWV7knIlRgY20jGJU1AnQzWzPt0hx1zv9JcN35gjpG6UaI2K6CU+y609pOKXde gcZkE85DCMnZx/FFpQYKiujIBaR1hvJW83gBeloSUa6iaX1MBRhVjyjQpntt8MeNCPtW kZUYnIiPB630eipYkwpjIdxVYOlxrQs+UY/mVBmZws6qzBTi/jPz0v6QfibT0eu0QDAU rIkfNVo/eVDZlFDX24T8ig0g0Du2m0vk6UfL/3yFGWnOvp7JzfGxKEGd5uB4t6+icc9q nVNg5uSVvthMYHMGSHRfav0U3ZsBx45gMU/d7mFPC4GHXl+Kbtt5Esu/Uz19h9RcS3CJ POjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18si11156591pfn.202.2019.06.24.07.21.32; Mon, 24 Jun 2019 07:21:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731512AbfFXNzq (ORCPT + 99 others); Mon, 24 Jun 2019 09:55:46 -0400 Received: from smtp.asem.it ([151.1.184.197]:65078 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbfFXNzq (ORCPT ); Mon, 24 Jun 2019 09:55:46 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003966016.MSG for ; Mon, 24 Jun 2019 15:55:42 +0200S Received: from ASAS044.asem.intra (172.16.16.44) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 24 Jun 2019 15:55:42 +0200 Received: from flavio-x.asem.intra (172.16.17.208) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server id 15.1.1261.35 via Frontend Transport; Mon, 24 Jun 2019 15:55:42 +0200 From: Flavio Suligoi To: Russell King , Alexios Zavras , Allison Randal , Greg Kroah-Hartman , Thomas Gleixner CC: , , Flavio Suligoi Subject: [PATCH] ARM: mm: print L310 cache controller version Date: Mon, 24 Jun 2019 15:54:49 +0200 Message-ID: <1561384489-29906-1-git-send-email-f.suligoi@asem.it> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-SGHeloLookup-Result: pass smtp.helo=webmail.asem.it (ip=172.16.16.44) X-SGSPF-Result: none (smtp.asem.it) X-SGOP-RefID: str=0001.0A0B0202.5D10D65F.0004,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 (_st=1 _vt=0 _iwf=0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The knowledge of the cache controller version is very useful during the comparison of the performances of similar boards, with similar CPU but different versions of the L310 controller. Signed-off-by: Flavio Suligoi --- arch/arm/mm/cache-l2x0.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index 5b251c8..e5ac670 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c @@ -590,6 +590,34 @@ static void l2c310_configure(void __iomem *base) if (revision >= L310_CACHE_ID_RTL_R3P0) l2c_write_sec(l2x0_saved_regs.pwr_ctrl, base, L310_POWER_CTRL); + + /* Display L310 cache controller version */ + switch (revision) { + case L310_CACHE_ID_RTL_R0P0: + pr_info("L2C-310 revision: r0p0\n"); + break; + case L310_CACHE_ID_RTL_R1P0: + pr_info("L2C-310 revision: r1p0\n"); + break; + case L310_CACHE_ID_RTL_R2P0: + pr_info("L2C-310 revision: r2p0\n"); + break; + case L310_CACHE_ID_RTL_R3P0: + pr_info("L2C-310 revision: r3p0\n"); + break; + case L310_CACHE_ID_RTL_R3P1: + pr_info("L2C-310 revision: r3p1\n"); + break; + case L310_CACHE_ID_RTL_R3P1_50REL0: + pr_info("L2C-310 revision: r3p1 50 rel0\n"); + break; + case L310_CACHE_ID_RTL_R3P2: + pr_info("L2C-310 revision: r3p2\n"); + break; + case L310_CACHE_ID_RTL_R3P3: + pr_info("L2C-310 revision: r3p3\n"); + break; + } } static int l2c310_starting_cpu(unsigned int cpu) -- 2.7.4