Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5231568ybl; Tue, 27 Aug 2019 01:12:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVBYozQd3/9/q4Ean+2DUMg2q9TUw5sR7FnG24wcP0UaM2ZBSlGwcHNH6QsOeXYQNxrb9V X-Received: by 2002:a17:902:a01:: with SMTP id 1mr22635159plo.278.1566893576073; Tue, 27 Aug 2019 01:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566893576; cv=none; d=google.com; s=arc-20160816; b=Za3+q+bcR9qu2p6lLMixXlXeBySWm209z7HCIDRJjwf7JMFlkchgT5sJbLwEr/WULZ HSD9ZvRiYayybnmrjChApa2a+fFkAxVbolWmhmvA2D1ZJbN6/oduZv/pWvjo2m0Xtduw loz7AsPyqc65rnCPkx8F2KCsKf6dLMjjpTXyJilyQjaBPQe3sZeAoe8mxhhw0FUXShEB bUY9Zr26TMkm8vvbWEG1/yqrEiqUTd2+/M5ea5Rg9ng+uFcXvEL32HmRFWRgWawWd54x /po7dS3fGQPd/QHCRAbOEfTdl4/rm002/UIrgjq59a/7kKtJyNoKeiIJDwVIiih+rD8o zXYA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8TRXHEcod9ioh29IDbRZ1W6fzSxkxTh/OGz+ClluZWA=; b=BHaf9TVpXUfVBfWEjtGKrLkbqprCRbSLzMDkfEDagEA30xbSHKZprH+sI4SWyoxRVz FOKmbc7nX2EnPD6n0dxws7LBlzrbue5fEX0OWhwMBih44ehG5v718CTDXdZ9EhF+PTMI OUeyn/g/Q17562B45XnyDoGMULqv3Zuo62616ppIQU4A/TUJVw8DfqoisMjNqKAXGF+Y oZIAf+m4N6R9M8XDHR5GDXB2w3DxC9ipTAuuoh42ez2oEYcMeO2pGUr0DDDxp1IRCeIN gRxckFSBnmn/yOBb+ERhT82gw8dL7l+ApZ6JwgS6Q7UwHnWq2hye1OMr6OirHs7HOAg6 POlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="11H/nDAm"; 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 77si10935482pge.315.2019.08.27.01.12.40; Tue, 27 Aug 2019 01:12:56 -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=pass header.i=@kernel.org header.s=default header.b="11H/nDAm"; 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 S1731704AbfH0IBL (ORCPT + 99 others); Tue, 27 Aug 2019 04:01:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:56936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731189AbfH0IBJ (ORCPT ); Tue, 27 Aug 2019 04:01:09 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3C7FD2186A; Tue, 27 Aug 2019 08:01:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566892868; bh=vRZy479767kYTIzX9SBMWkovtJFmbdfeRbCf0+4l3c0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=11H/nDAmZPSsWv6bjEyBo94KxIXC5oShvg0gyrHjf6GrtFs483izqsVEaazlmv94t N1AZpdjGyl3mfd4TSGZ0ikc44vI/dzkAdeI4zllbACIvvUzsWqmJClc5UvN8sxyF1g a/sLcFwkKsVPbC7l7x4Opu5LWz3bpGACi7EKE2K8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Kondratiev , Paul Burton , Ralf Baechle , James Hogan , linux-mips@vger.kernel.org, Sasha Levin Subject: [PATCH 5.2 015/162] mips: fix cacheinfo Date: Tue, 27 Aug 2019 09:49:03 +0200 Message-Id: <20190827072738.866866739@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190827072738.093683223@linuxfoundation.org> References: <20190827072738.093683223@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit b8bea8a5e5d942e62203416ab41edecaed4fda02 ] 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 Signed-off-by: Paul Burton Cc: Ralf Baechle Cc: James Hogan Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Sasha Levin --- 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 e0dd66881da68..f777e44653d57 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