Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1030777pxx; Tue, 27 Oct 2020 06:44:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgEFnLGX7wLTQTfXQDZbr8U/CiR+LHtvsKvR1qeRN7GE9bq540rjUJR1IzBZgE7TiHT1Lh X-Received: by 2002:a17:907:42d2:: with SMTP id ng2mr2461115ejb.124.1603806289566; Tue, 27 Oct 2020 06:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603806289; cv=none; d=google.com; s=arc-20160816; b=Ku4yLQtsu/H+LmWLrEOdgrrXdtLKQfOdBVFbV3bVL/KBRBXJ3mF/Xb97rf8NoIsjJ8 NMMyWutG+saWlp1tMrBWqWockpir/yMJneU+AEHgR+DqZQXDAkAsiYLwZN20tbvihXyk 5+lI4P13MeCFxgq1JhZKcd2+Wj5LpdfPPk8ngzOi03vbfRqOFn+8nE880TXiWGoQgHBq sdDg/T6C/ayb+UP82wHX27za4BGabjXM7TNe0kBi2+07ACJRqsUQWCSmvbnMJTGDyThN /mDciO4cxSXKHNJtZyE65NiEvoHcXGpG51dId2VFL/7xgnlUVRl24Net6+hJUgu22Z5M 4/oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rZ2izeBnUncgzjs0y06h4BskCRGs5lCbdTvdJZKdDIc=; b=KXFsjFf0r2goyYKz6qiI2XnVQn41I69Yg5cLo/JaiIApZ+/UnA9bKgbO4bxpWlNhD1 mCmBjQ1u9uTy7nXfzAi2Rq0revv1u9+kkgYHHY3e96gy4uqdu/WYJkovQ97epembO2m4 nNE5wfqE86HRQoPrnMH4vdeszervmDGfY855b/jVWppY65kHbdQjqzZfMW1PTVzCZ10m 4KCfO7upbtkAhVz7u5VsXiPRHWw+ELQk2QpJcS6H5f/xEOLojKzR/pKely8ACCLkDXe1 ABiAcbREy+Mr7jFSQ/zIE6RY/iUSJvQ6IhgnZ7HukESiTQW5nmflnXq5PF0J37QXiNK5 kjYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zMDaxVQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si896494edy.474.2020.10.27.06.44.26; Tue, 27 Oct 2020 06:44:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zMDaxVQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2444545AbgJ0Aiz (ORCPT + 99 others); Mon, 26 Oct 2020 20:38:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:49586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409083AbgJZXuS (ORCPT ); Mon, 26 Oct 2020 19:50:18 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 71FC7221F8; Mon, 26 Oct 2020 23:50:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756218; bh=Wy/KydK0ZqcnH/mktZ3ZcmM4o49aYFBg/WnZ0CpR5oo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zMDaxVQ51s3wNp80SAy5GJb+BUtBffhQ+8M9MNubtNnSF9JEDCq3MlsvwUBzH8RPS 7rMdeAWH6mVFD758ASPO5zNcYru0B2EmVIKKqWC6uXXB27nOcttxU2EcPb/KT19LXy XS+32Y0W/w2skcfMC6uUMbj64DE7XddgufnEOjq4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Michael Ellerman , Sasha Levin , linuxppc-dev@lists.ozlabs.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.9 058/147] selftests/powerpc: Make using_hash_mmu() work on Cell & PowerMac Date: Mon, 26 Oct 2020 19:47:36 -0400 Message-Id: <20201026234905.1022767-58-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026234905.1022767-1-sashal@kernel.org> References: <20201026234905.1022767-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Ellerman [ Upstream commit 34c103342be3f9397e656da7c5cc86e97b91f514 ] These platforms don't show the MMU in /proc/cpuinfo, but they always use hash, so teach using_hash_mmu() that. Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20200819015727.1977134-1-mpe@ellerman.id.au Signed-off-by: Sasha Levin --- tools/testing/selftests/powerpc/utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/utils.c b/tools/testing/selftests/powerpc/utils.c index 18b6a773d5c73..638ffacc90aa1 100644 --- a/tools/testing/selftests/powerpc/utils.c +++ b/tools/testing/selftests/powerpc/utils.c @@ -318,7 +318,9 @@ int using_hash_mmu(bool *using_hash) rc = 0; while (fgets(line, sizeof(line), f) != NULL) { - if (strcmp(line, "MMU : Hash\n") == 0) { + if (!strcmp(line, "MMU : Hash\n") || + !strcmp(line, "platform : Cell\n") || + !strcmp(line, "platform : PowerMac\n")) { *using_hash = true; goto out; } -- 2.25.1