Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp496057ybi; Tue, 16 Jul 2019 00:37:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqydUjOZyySNAdddvnzfo02dQwAmmzcbzmZ60z3mecTk/O3cTA7AmLq3vpaQ0QhkbVX4cYXy X-Received: by 2002:a17:902:403:: with SMTP id 3mr32812498ple.66.1563262658936; Tue, 16 Jul 2019 00:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563262658; cv=none; d=google.com; s=arc-20160816; b=fCUWzHnM+eIUy9XQ/HaVsBJxl9wJkvEQszEzCwb3s0V6BLH1Ymd1+j0i2FWXwQPmHR Yki21ZyfIXmttDmeszIc25iuSxADE/ZCPg1hC9/CD77f+rIgjiQ/u0ghzRI1vl4tUA3u 05wWusK5PyuG5ZAdtxedva3CoiG4vRFQ3OcKM29CzXRuesi/NKryJao4iaVCxQaOf0aN rNk0GPR4CDY5wzzY2Rg7tVJt/QPIT+zjw4M2U+Tl9OASJZ9UevKRPP6zx0iVp3iRNcYG QejZ6YQDWlc1fNiR08k4ygIVK4t+p96K2UeJfFcj56B/I7dh+qj88YObII7B3TWIiTa7 GoMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hSsSFfPEa5cfRVWBpzvKqkgt5C9hyirZTeYv+1E7e4k=; b=CNx2YYNBEsKWW7uDum6I4/P3lPUWrG7/DeNttEZ3U1CJYMsMbdQWPdI8P9hLcG10b5 V09DejxhL1PeoRsnci6HfRRdtOZrOuSTwdzNQUw2YLmf2nEyeJTmk8qszA8YSZjIKIPV bNaU00z1OPFClSXeDYvPg3c/MZ8OUto1T3OSeQhnhl66kkZWTX105slsdB/ol0sWhSqD ixRQ0UbwjfBuQckcfnm1sttyjRHnR2PvKA9fJars02s/uRFDCX0IgCT+14YCe58mv9AL HRfXJJurbF6uYVPJlZamXmmwA9nJ6EhiZGTRAIMz4Xlkxq+mA7B17LaZVa04vJZH6GTT TKug== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o63si18263719pjo.94.2019.07.16.00.37.21; Tue, 16 Jul 2019 00:37:38 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727862AbfGPHhC (ORCPT + 99 others); Tue, 16 Jul 2019 03:37:02 -0400 Received: from mga01.intel.com ([192.55.52.88]:19290 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726463AbfGPHhC (ORCPT ); Tue, 16 Jul 2019 03:37:02 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jul 2019 00:37:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,497,1557212400"; d="scan'208";a="366127139" Received: from cvg-ubt08.iil.intel.com ([143.185.152.136]) by fmsmga005.fm.intel.com with ESMTP; 16 Jul 2019 00:37:00 -0700 From: Vladimir Kondratiev To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Kondratiev Subject: [PATCH] mips: fix cacheinfo Date: Tue, 16 Jul 2019 10:36:56 +0300 Message-Id: <20190716073656.24924-1-vladimir.kondratiev@linux.intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Because CONFIG_OF defined for MIPS, cacheinfo attempts to fill information from DT, ignoring data filled by architecture routine. This leads to error reported cacheinfo: Unable to detect cache hierarchy for CPU 0 Way to fix this provided in commit fac51482577d ("drivers: base: cacheinfo: fix x86 with CONFIG_OF enabled") Utilize same mechanism to report that cacheinfo set by architecture specific function Signed-off-by: Vladimir Kondratiev --- arch/mips/kernel/cacheinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/cacheinfo.c b/arch/mips/kernel/cacheinfo.c index e0dd66881da6..f777e44653d5 100644 --- a/arch/mips/kernel/cacheinfo.c +++ b/arch/mips/kernel/cacheinfo.c @@ -69,6 +69,8 @@ static int __populate_cache_leaves(unsigned int cpu) if (c->tcache.waysize) populate_cache(tcache, this_leaf, 3, CACHE_TYPE_UNIFIED); + this_cpu_ci->cpu_map_populated = true; + return 0; } -- 2.20.1