Received: by 2002:a89:b8d:0:b0:1ff:3fb7:5d92 with SMTP id br13csp13710lqb; Sun, 16 Jun 2024 06:25:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUy5CIm/1XpYdS4JMPF+HJBZxeftYHQ7aVjvDjVksHMpKUCOBisGgH6QRzx19omnBgkdfS7UbwptWZYogGy0i5FU54GBSMI9lhzmfOKVQ== X-Google-Smtp-Source: AGHT+IGu7AgoL7pqq6FFDiS9MWrXOwcfe/2kdctl2Z6W4yZrkJ3QYJzToPSGvm0tus1c4pUVb1D3 X-Received: by 2002:ad4:5190:0:b0:6b0:63fa:c42 with SMTP id 6a1803df08f44-6b2afca624cmr74265826d6.26.1718544349771; Sun, 16 Jun 2024 06:25:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718544349; cv=pass; d=google.com; s=arc-20160816; b=xKwvjk21I8+B3TMw4UY43y45Q1024RqDx2TkWz87GfDDq83+5mBlfbRO/3DZW5K+8Z Ybdei7MGrYuu4u31ZwkBbEw40/8MrrnGGPi74p/4GEVUJJjWtqRGjTRYX690lPt7WikJ iOa/RF5c9kELu6w1UAVkVZX+KPJPm7GwK8U2ICxV7Fr2+mkG6tSsCUDzjvlrOA0dlBWk ch1Q8uXIqYJ5JKfobE0BgiySFPuyZwVvXrqbFPEq7xjsJedSAH+taUectNz23C+RRdXf hoIaHNk893C6sZ76dNFeMaCfjdWyip1aTTcAahyyufmbBDHnYnCTYlQijz7mW7W5zvDN hdGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :feedback-id:dkim-signature:dkim-signature; bh=wzCJ9EN4r8KoXbh13Yn/ghh/ZjBSoqs08fLV+ve6cHo=; fh=oshYVtor/PomZv6DEFstEhM4bAl2Nhu2bE3OF6+RCgg=; b=lTExqSSjzruW3zO5cI0bLGptJGrSiVg8EOuM3YPillTwid4hinQ6mnFjOXmybJSNyi M2BItZBwekZ5jGx4+68+PkdSuJMjGlq3YqUBWjpH+r+iuzRCGfYXOZopClUB7y8l6qOX S6zh9ktYrfBStW9DWPgCgWGcBLwtZJcqhMpDi+BaduAQaA4T4uEjdSdhRK/fPdYf5hpy U4QBeq4WYqsBaSmr8vL6osoasj10Rgfp9svHXb2/pSkKQith1CitE2bXzBq3TncDSLjL /c3dv3pbFj6YIKfOfohMdazkRqDxd836mfa4goUKNxTTvC7yPW343Ipw7JSUMEqekLC5 RDNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b="WAJ/yBz0"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=WP5fnlbs; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-216304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216304-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5a172c5si80576636d6.42.2024.06.16.06.25.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 06:25:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b="WAJ/yBz0"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=WP5fnlbs; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-216304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216304-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7AD221C20835 for ; Sun, 16 Jun 2024 13:25:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C96A9188CD0; Sun, 16 Jun 2024 13:25:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="WAJ/yBz0"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="WP5fnlbs" Received: from wfhigh1-smtp.messagingengine.com (wfhigh1-smtp.messagingengine.com [64.147.123.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E0FB224D7; Sun, 16 Jun 2024 13:25:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718544340; cv=none; b=BWqW8kUU8REB7y4ErfTLiucdNeu6YwFyVxjHjEdeh2ZiHY+n853EXL+bJSJZMPkMev63BjiX2JUJfQwEKpD5z1eb65vZGGlQ/tvu8Ue/IpUj5TfTg/zUuYRKWDHPd5mgNlbtmDZahrUMS6P0EslJzj045sssrz5R7U1UnzEZ3j0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718544340; c=relaxed/simple; bh=jcvab4qNyZPRJXJUR0OD8iHkVWlo6fHs9gsEoSshqI4=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=joX2/rRFHaZnjblRIf9awaClwQvezDk3/sfOYwWcuy53WFljmdZXVk1Y6eFuUur1bjyRxpp9kJqkEeNE/R9/uF+l48w7Z+ikqdTdM/sZOgDbdz57Ectbk0Ke42fkZi38LPzsMV64qb1KTvX3temEjs4O2nJPFaPAQUW5ehN81+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=WAJ/yBz0; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=WP5fnlbs; arc=none smtp.client-ip=64.147.123.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.west.internal (Postfix) with ESMTP id D154C1800089; Sun, 16 Jun 2024 09:25:37 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 16 Jun 2024 09:25:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm2; t=1718544337; x=1718630737; bh=wz CJ9EN4r8KoXbh13Yn/ghh/ZjBSoqs08fLV+ve6cHo=; b=WAJ/yBz0jXp6NFyOku Wd5JpXEOV7oyOUJ2zMu+suBu8D33YPeXTxopmJwh9JGdlLcw/7UyAb5GaODWWMTm hQE2fUNP9/FZhxrxeHTPQdUVidbHNmyeTKnMB8yOpubmkpf5MY7FRdGy9M8Pa7CV xFg1EWaLQRwbuUeSNGm9N5myaFYxKzZrMDMZn7t+QwFsbR/H13sl/cvcYrF05llY DHXS+kCflzzhz/2Hiet1+SpnzlRZTW5agnZxKJCO0zzpIvfGIg4zel8CMGkCCQoQ ZISw/Rrmw9kPYy3Iip7Mt0YW6EEYZKxUuNCFYysgU/3uPSqAiPRjVybcTCniTj1q jwCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1718544337; x=1718630737; bh=wzCJ9EN4r8KoX bh13Yn/ghh/ZjBSoqs08fLV+ve6cHo=; b=WP5fnlbs/1TSuaunOI9GI1+iWEf7v 0GR2z6n7q6cIAmFSXkCHBZuL59sfAxN2F5U8PzQD2mzo2bCbUbiSzYH39ISFSeUq tIktwco1+JLQbzMSA4isqlCqtdplyFNSEJYXp68sgP669bzl0JJz6XpecbebkfMM haa2YyQ4oRvWaXCFFqzqT6AdsCOoEKEEaIG8ldk06mmHIccTPrBTzfYc8G3D2ivL oojcGSfTIQK86Pc51ZRFwCY+0LLYyWPrYsdv0uUD/vQA6r7PhRslj2lCMbv7jrA8 OWb/swRHjSu4TOzpcw1cpMJ+UW6Snvu5bn2prem3ZwjR7OBHoHgmoomRg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvfedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecuhfhrohhmpeflihgrgihu nhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqnecugg ftrfgrthhtvghrnhepudffffffhfeuheevhffgleevkeeugeetfeegieeijeehfeekheek veduveeigeeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 16 Jun 2024 09:25:36 -0400 (EDT) From: Jiaxun Yang Subject: [PATCH fixes 0/4] MIPS: MT ASE fixes Date: Sun, 16 Jun 2024 14:25:01 +0100 Message-Id: <20240616-mips-mt-fixes-v1-0-83913e0e60fc@flygoat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAK7nbmYC/yWLQQqAIBAAvxJ7bkElhfpKdKjcag+ZuBGB9Pekb jMMk0EoMQl0VYZEFwsfoYiuK5i3MayE7IuDUaZRTjvcOQruJy58k6BVNFnnjbbtDOWJib5Qlh5 +Gp7nBaf6BYFmAAAA To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaxun Yang , stable@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1067; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=jcvab4qNyZPRJXJUR0OD8iHkVWlo6fHs9gsEoSshqI4=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhrS85xc1umoEz2Yaq29JmrNKYv5/r9NWHJxxZwxcBayTX z0JbiroKGVhEONikBVTZAkRUOrb0HhxwfUHWX9g5rAygQxh4OIUgImE9jL8MzOdluV6/CbbnIlq aRkfS64tsL0y+UTz/qqJpWGnPhoZxzH84f6WqeOuxHd3soeLfxT/zbqz12dO2x50qjlJee30/29 T2AE= X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Hi all, This series fixed multiple problems for MT ASE handling in current kernel code. PATCH 1 is critical, although it's not causing problems on MT kernel, we are risking clobbering register here. Rest are usual build fixes for adopting toolcahins. Please apply it to fixes tree. Thanks. - Jiaxun Signed-off-by: Jiaxun Yang --- Jiaxun Yang (4): MIPS: mipsmtregs: Fix target register for MFTC0 MIPS: asmmacro: Fix MT ASE macros MIPS: cps-vec: Replace MT instructions with macros MIPS: Use toolchain MT ASE support whenever possible arch/mips/Makefile | 2 + arch/mips/include/asm/asmmacro.h | 241 +++++++++++++++++++++++++++++++++---- arch/mips/include/asm/mipsmtregs.h | 42 ++++++- arch/mips/kernel/cps-vec.S | 62 ++++------ 4 files changed, 287 insertions(+), 60 deletions(-) --- base-commit: 6906a84c482f098d31486df8dc98cead21cce2d0 change-id: 20240616-mips-mt-fixes-50eb56d2159c Best regards, -- Jiaxun Yang