Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp875170pxk; Thu, 17 Sep 2020 20:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnVNfyUEa08ZOVbJXhxEF8SACdcEACRlV4YAdu1W2oLH2SqZGPeRcRBuksPe9JppoKoyt0 X-Received: by 2002:a17:906:3494:: with SMTP id g20mr33770810ejb.486.1600398043964; Thu, 17 Sep 2020 20:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600398043; cv=none; d=google.com; s=arc-20160816; b=R4TcQwA03tQ2wK0DVP59JLPeuUsMdyJiRpu/e2Jyf0nakcy4xGhk0k1ThBNcruh3xZ ZnCuEMw+sYDox6mZVq+ZiUUXYohIa8D0BrAmtqjgldKJL+X/r7KJh7qz4cgmUVHolTl3 fGGT8j3VBx95yvFsAVEB1+ITI+Yw2uCQA53j7CdM3l8VkKRp4RtP6gNNXmCPQlMnYOH5 pi5TcM/4CXwdjzPa50Eh1xaTeh93GE4X0gIocGUO5EtokDfQ3ZEeluyxkisJmTh0Dl5E XXBD3zZ8jVVFJ2fIhMUqN7h5HVjp5pexl7AYIgqfxBRFxe6iAl+xZvbOEnD43uWJ/0d7 j/yg== 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=U/ctYWUtmER/p3k+LaFSbkrpDfiNMA5kEEdbEJJdBOM=; b=VoZfSrmASI7UHg/Y+JDvcvYopp+Igx4ZrcFlqkacwvQBqwl2BNvoX62sqwNuuBueeH dfm9dOK+je4ZzwzuDDovXl3jHadnzZg+i07Y2Q0SinkFqAtXr7YztO7grSN2q+05Aahy 2mU0laIuJeeN8rNmXPYxF8rEKZQvBluGVFrg3/FC0jZ8LYvj0tXhBCi+BNTbfzVnYJbW 7FizId1K+kh9wJR6zUaIPeHIhQhj5lrYw9Xd8ExZT2JJhd4Z5j9jyj8W1uJGbwinnpBR OdImRvaOkSeiQ/JLHlsmehFrT/0N9piTmq4ZvYYsrHeTCHYDzWyjC8HADLGc3cjyfMPZ nMKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LwoQK5Dc; 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 dn20si1464629ejc.196.2020.09.17.20.00.20; Thu, 17 Sep 2020 20:00:43 -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=LwoQK5Dc; 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 S1727334AbgIRC4g (ORCPT + 99 others); Thu, 17 Sep 2020 22:56:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:57122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727829AbgIRCHF (ORCPT ); Thu, 17 Sep 2020 22:07:05 -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 D65AF2396E; Fri, 18 Sep 2020 02:06:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600394811; bh=B4eCsjTh7FS/YdlI5c5j/x8bYTrYRym5ms+rocYMK+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LwoQK5DcVEqF1DOA827Sgz61a+kFSOvJjUjtQJnKizLJKo6hGZlYmRN8DHX/QbDAp V5uCX9n6Wtcv7Jb859rmm1RMI9hzZCEPC7/yF2/gqL1d3o9iX+y97iKyckkbnuxrkI RZK/q8+u2D4TzAPN7BGUidKdWhV2t9Qws5TVz8kw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Anshuman Khandual , Catalin Marinas , Will Deacon , Marc Zyngier , Mark Rutland , James Morse , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, Sasha Levin Subject: [PATCH AUTOSEL 5.4 278/330] arm64/cpufeature: Drop TraceFilt feature exposure from ID_DFR0 register Date: Thu, 17 Sep 2020 22:00:18 -0400 Message-Id: <20200918020110.2063155-278-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200918020110.2063155-1-sashal@kernel.org> References: <20200918020110.2063155-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: Anshuman Khandual [ Upstream commit 1ed1b90a0594c8c9d31e8bb8be25a2b37717dc9e ] ID_DFR0 based TraceFilt feature should not be exposed to guests. Hence lets drop it. Cc: Catalin Marinas Cc: Will Deacon Cc: Marc Zyngier Cc: Mark Rutland Cc: James Morse Cc: Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Suggested-by: Mark Rutland Signed-off-by: Anshuman Khandual Reviewed-by: Suzuki K Poulose Link: https://lore.kernel.org/r/1589881254-10082-3-git-send-email-anshuman.khandual@arm.com Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/kernel/cpufeature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 1df57ffc9314d..f2ec845404149 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -319,7 +319,7 @@ static const struct arm64_ftr_bits ftr_id_pfr0[] = { }; static const struct arm64_ftr_bits ftr_id_dfr0[] = { - ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 28, 4, 0), + /* [31:28] TraceFilt */ S_ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 24, 4, 0xf), /* PerfMon */ ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 20, 4, 0), ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, 16, 4, 0), -- 2.25.1