Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp27958rwb; Thu, 22 Sep 2022 13:54:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5GxiiJ7lAFpcjsoM9oFzE0mhSnP9IIYDNr3+o7r+I+a9T1lUjp8IlAQa4t2zWCpTDurFPR X-Received: by 2002:a05:6402:371b:b0:455:2ab2:bf0c with SMTP id ek27-20020a056402371b00b004552ab2bf0cmr4144294edb.293.1663880095723; Thu, 22 Sep 2022 13:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663880095; cv=none; d=google.com; s=arc-20160816; b=NQdr4/xe5y0fUL0Lj9ar1FmzCbB58oKFVUeaiBMLwyrv1e5aZ6wjHMylvQFaeKcG1M 3GCCHxVc6PbwGuZ6rAroeeInPM4wEUkZGxj5s9o74GVu7WfFWsqErG8IKjb3u8qbTU9O +Ksh/gERPVEvpl5quV+IyQWWcFCsLNx1yHcUl0brp1rCudCpnWcAUV+ElYxaWl2f3Nm7 CfEfGaiGS7XNQoPdoQy3zumCEfmvQ3MfdPIaFc5eQofYyY3RUaZfLE+zIC70TDWzEnWS /riuBSIfA24kJMw0GZXKBpVNDW8ZSD4OZytlr6tirT6nQGT/cFRPDy6gfxgzlcJtxquS rG1w== 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; bh=oQONwJYkcdvlcFEBvxLS2A1Llu3nl8OBKBMLCx7sKNE=; b=v1hLzpCMx4IPZqFF/GVlrQHavoIF5hadjk3cPjfyP1r3/r3ssY4pUjr5Bbc3Qu4s7+ xJ1otiBeO1np6fy2K14MnztvKZa+Sp3Fvjyt0EejYC1ac9qpBI97rAJv4kwk1rFYqbP1 pQaaK/Nti4egUBwTS8SOrcEASk9CQWVAgYU7OnMf6W9rI2nx2K+7UbM9ZzCiAdwaWmAA 9BJVC0DmbXeqcLC0xPipLX/KFGXkeM7MkJdU4PGrFrpJL5L6iLVINQrL+XbEVXiUdBQ8 tMrC545v9IhZRA1zLwMI7xCJ5EzbHd8JH6/xqqUwHHnE/0QePMmT2GtHqXvZQeK9lFHl O4ng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne37-20020a1709077ba500b00782126701c0si5113987ejc.421.2022.09.22.13.54.30; Thu, 22 Sep 2022 13:54:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231972AbiIVUCU (ORCPT + 99 others); Thu, 22 Sep 2022 16:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232629AbiIVUBx (ORCPT ); Thu, 22 Sep 2022 16:01:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 453F533373; Thu, 22 Sep 2022 13:01:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 77DB3B83A6D; Thu, 22 Sep 2022 20:01:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CA69C433D6; Thu, 22 Sep 2022 20:01:39 +0000 (UTC) From: Catalin Marinas To: Evgenii Stepanov , Peter Collingbourne Cc: Will Deacon , Marc Zyngier , Kenny Root , Mark Brown , Andrey Konovalov , Vincenzo Frascino , LKML , kernel test robot , stable@vger.kernel.org, Linux ARM Subject: Re: [PATCH v5] arm64: mte: move register initialization to C Date: Thu, 22 Sep 2022 21:01:37 +0100 Message-Id: <166387689171.428844.17569339789321559720.b4-ty@arm.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220915222053.3484231-1-eugenis@google.com> References: <20220915222053.3484231-1-eugenis@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Sep 2022 15:20:53 -0700, Evgenii Stepanov wrote: > From: Peter Collingbourne > > If FEAT_MTE2 is disabled via the arm64.nomte command line argument on a > CPU that claims to support FEAT_MTE2, the kernel will use Tagged Normal > in the MAIR. If we interpret arm64.nomte to mean that the CPU does not > in fact implement FEAT_MTE2, setting the system register like this may > lead to UNSPECIFIED behavior. Fix it by arranging for MAIR to be set > in the C function cpu_enable_mte which is called based on the sanitized > version of the system register. > > [...] Applied to arm64 (for-next/misc), thanks! [1/1] arm64: mte: move register initialization to C https://git.kernel.org/arm64/c/973b9e373306 -- Catalin