Received: by 10.213.65.68 with SMTP id h4csp1905140imn; Thu, 5 Apr 2018 05:55:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx483caCX+0QXaSYd+JGiyF/HcI7ZUw/tcSmPKE6mz7gj92bfnegItEi6YVTebNBchr9U+hdq X-Received: by 10.98.65.220 with SMTP id g89mr16906360pfd.97.1522932949227; Thu, 05 Apr 2018 05:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522932949; cv=none; d=google.com; s=arc-20160816; b=hFPKWg3Jj4qgHBsn2vPwLKRN1d4lj9YUk5K4r08gZYBgxBAz9mXjiR6KO1JmEkE/wj lST7MG5tBwO7VngplYxQe1qSJ/iAEOALg4Rshk1flpb7P7qbB2ABZkw1vemlyVB4LV6H SGHP52n9mERfcW7IMHeTqOcglg5TncQg+A7MaBmunLl+w6tLNyJ1FIxdtbdUkeUQlCaC y5D+OHMCoeGl5l49n0WRA8Yxh/j/3PnZT1Opm+dAvF8B+3hNmkADnSCZ8B8wn1E4uWK8 9KcSUX8MQUlocQFBSOi2gh6dZf/UkwFCt9I5uIT3UYowbit5X5wuAC/S8f+CNpKRNAVH JMfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=JuSM6BTC6seJrAqDQ4rJsCM6oo2ToozR4Jhk5gnoEJk=; b=Dabh8e+o35zTB4fM9GNBFetnMLhvi3Zuqan7rDIZbSWo5NjN71pSaToQNORUBuRSir xZ54eI1MdF0fbeYIShSqKmQzX7xVfLzRaY5UuzdoYO/M+uqiwa/DF5ymNQHpZV8lYvDH Rm6HZqzWoGwYxmIgTlruqPGRT8DwqgTsraWVm9TVjI8VEIB4tKNgIhtzGc+DLGa57v+q bjLNxYIuxYpB8DXfROE/8xLEbaP0UZc0bgXd2dwtMPkQ81Qv2e3U9S94nCd9RKHe+Cyk HW17qY2ywhpNUyLn1h1CGjq4iXom43f4Ew3OBDLrFtjSgaNos+yWyv17HQvwpk1A8a95 TkLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tD96tFWa; 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 n16-v6si4848852plp.276.2018.04.05.05.55.35; Thu, 05 Apr 2018 05:55:49 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tD96tFWa; 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 S1751460AbeDEMyV (ORCPT + 99 others); Thu, 5 Apr 2018 08:54:21 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:42251 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751097AbeDEMyT (ORCPT ); Thu, 5 Apr 2018 08:54:19 -0400 Received: by mail-qt0-f194.google.com with SMTP id j3so26742703qtn.9 for ; Thu, 05 Apr 2018 05:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=JuSM6BTC6seJrAqDQ4rJsCM6oo2ToozR4Jhk5gnoEJk=; b=tD96tFWaNwPiuBVLkYUKuP+dFrS/CiFxgSVjDcb6i+ge1MxOB2NNmpStvNjJYD/VXN 3TtAx6r3HXlWYwlZwFemAly23zLhGeHsihNTJsVunJHZDASPMFJ6hlYME6lOmu2+Ohkv JhL5WlbaCEs6kz2fkgTpfXorFvjB7asRP1U8Bv9kuGFbcFTI7m+IG5yHLMbcU5rjlM45 TuD4wAonECc5+b8GtyNW0Jgh8v+UqkZ71fBR6siplcH3RVgqQGveIVXXpqP9bT7K1fsx u/4YU2w1/KU3kPxhTmrveEpxdWqsQQ5FBqxwKb+KqQVnYv4tpFBMN1pPceV8k+o5tTDl 9kkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=JuSM6BTC6seJrAqDQ4rJsCM6oo2ToozR4Jhk5gnoEJk=; b=FF46FE+fxBM+1DSm8f9KsuDkoyXFG2a0vWbpkiYqhgX4sa9QzD5W2zx/0IZ+P5GbmC k0JUaZPYuivhIJl9HtcWqSpo5YOVxj2hlEylC4VdvQn77D8Fj3Og3LVrzQ8Jk+9SJNHV US1u9pj7hYRlm+UjXxwfsixrnuSlatabjeqNWcL3uuPe5l5f/4dOpmhvH0+53IKEf3B6 EpIdJ5YAua7TrLCzept4I397OWq62oPE/MZS6MGN4OAK5o2h9BQg9WckL7vTnQY3OdvE wj6EKO8wa8JFD4fAfD55yl3eEemTfzSivVcC11B5PRtXx5fjvRTmhZS061UrWvf4h72G aT/Q== X-Gm-Message-State: ALQs6tAmtTP0lkEl4B27Gqu7XVWFqRt4cLXsH9prPu8mMGulelMm74EE WHXBBwYvlsufB6/01YKsd+A32cwE19QbIie3ntk= X-Received: by 10.200.47.26 with SMTP id j26mr31757925qta.185.1522932858873; Thu, 05 Apr 2018 05:54:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Thu, 5 Apr 2018 05:54:18 -0700 (PDT) In-Reply-To: References: <1521155412-29229-1-git-send-email-tmaimon77@gmail.com> <1521155412-29229-3-git-send-email-tmaimon77@gmail.com> From: Arnd Bergmann Date: Thu, 5 Apr 2018 14:54:18 +0200 X-Google-Sender-Auth: 6Z_XjyCz879wd07McNwlYYYJpMY Message-ID: Subject: Re: [PATCH v1 2/2] arm: npcm: Enable L2 Cache in NPCM7xx To: Tomer Maimon Cc: Brendan Higgins , Patrick Venture , Avi Fishman , Joel Stanley , OpenBMC Maillist , Linux Kernel Mailing List , Linux ARM , Nancy Yuen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 16, 2018 at 10:51 PM, Tomer Maimon wrote: > > > On 16 March 2018 at 07:52, Brendan Higgins > wrote: >> >> On Thu, Mar 15, 2018 at 4:16 PM Tomer Maimon wrote: >> >> > Enable L2 Cache in Nuvoton NPCM7xx BMC. >> >> > Signed-off-by: Tomer Maimon >> > --- >> > arch/arm/mach-npcm/npcm7xx.c | 2 ++ >> > 1 file changed, 2 insertions(+) >> >> > diff --git a/arch/arm/mach-npcm/npcm7xx.c b/arch/arm/mach-npcm/npcm7xx.c >> > index 5f7cd88103ef..c5f77d854c4f 100644 >> > --- a/arch/arm/mach-npcm/npcm7xx.c >> > +++ b/arch/arm/mach-npcm/npcm7xx.c >> > @@ -17,4 +17,6 @@ static const char *const npcm7xx_dt_match[] = { >> > DT_MACHINE_START(NPCM7XX_DT, "NPCM7XX Chip family") >> > .atag_offset = 0x100, >> > .dt_compat = npcm7xx_dt_match, >> > + .l2c_aux_val = 0x0, >> > + .l2c_aux_mask = ~0x0, >> >> You need to limit this to the specific bit(s) you want to set and verify >> that >> the l2c driver does not already manage that bit appropriately and that it >> can >> not be specified via the dtsi. > > > Do you mean that I need to specify it the same as been done in V7? > because when I run with the above l2c_aux_val and l2c_aux_mask parameters I > get the same result. > > Also if I am not adding the l2c_aux_val and l2c_aux_mask parameters to the > DT_MACHINE_START > the L2C cache does not initialize. >> >> >> We discussed this a little while ago with Rob here: >> https://www.spinics.net/lists/arm-kernel/msg613372.html > > > Sorry in this link I see only Russel king comment regarding the L2C I'm not sure what the outcome is, and the patch changelog doesn't explain what the patch is for, so I've not applied it. If you need the patch for correct operation, please resend it with a proper changelog comment explaining why it's needed and why you ended up not setting any of the bits. The last email in that thread mentions L310_AUX_CTRL_CACHE_REPLACE_RR, is that required after all? Arnd