From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout05.his.huawei.com (canpmsgout05.his.huawei.com [113.46.200.220]) (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 8980D22FF22; Thu, 2 Apr 2026 01:41:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.220 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775094085; cv=none; b=MrdCa+R++l+xJc7RHRG9N7q2jQJ6hVLBK+OaERZ1/2nVu3QuxcwKDtUhCbSehsKjMoX64rgHQqiO3LwA4Q3F3iVCAZya799q6cKOSR9dt+y7eEmhQ3ga/0LB6S4IvTIEZIIzJgdC2w0Z+XRBG1d958HTIwoXoa9FgiD4CpzaU2Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775094085; c=relaxed/simple; bh=BzANNX+XCdxr/liDOmc+KLPcWYuqzJ1vlYE/EVAGvEg=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=seNwNrc1bo1khzVpgUooi2FUJVapaySZ7IXNwgnVgXEXgMB8go/lM0pnrCGCo7sm3C0yR5jE440y4nrEdMNWlG4OY11c1TJCRmqitKrestaBMFcSTOZVQGDiF4wOCB3l43fFVaLmslArACgKtpidZvoeM84XmaGGdqqy5yFdi3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=i0naMR9w; arc=none smtp.client-ip=113.46.200.220 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="i0naMR9w" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=cLdczJYdweiDTR4k8RfWxcCkbFm9C4zs52yHWSQ3P04=; b=i0naMR9w04jGCrCibz1QpTYUhPTuY7iux05gGMK9OFaMfxlmSa7ATYNv3hCbz5tRSIo6iRQcu XVq9K1Etj+PvKfocDXdznvishGbYpJDXYsTaKic+8y9AKj0FIbaMo2KSJwzioj8ZvT/E3OzEr5d 1qXQG41oOqb5dstsqF+2Qws= Received: from mail.maildlp.com (unknown [172.19.162.197]) by canpmsgout05.his.huawei.com (SkyGuard) with ESMTPS id 4fmPY40Wncz12LJV; Thu, 2 Apr 2026 09:34:48 +0800 (CST) Received: from dggpemf500011.china.huawei.com (unknown [7.185.36.131]) by mail.maildlp.com (Postfix) with ESMTPS id B11FC40569; Thu, 2 Apr 2026 09:41:13 +0800 (CST) Received: from [10.67.109.254] (10.67.109.254) by dggpemf500011.china.huawei.com (7.185.36.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 2 Apr 2026 09:41:10 +0800 Message-ID: Date: Thu, 2 Apr 2026 09:41:01 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v14 3/4] arm64: Use generic TIF bits for common thread flags Content-Language: en-US To: Catalin Marinas CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20260320104222.1381274-1-ruanjinjie@huawei.com> <20260320104222.1381274-4-ruanjinjie@huawei.com> From: Jinjie Ruan In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: kwepems100001.china.huawei.com (7.221.188.238) To dggpemf500011.china.huawei.com (7.185.36.131) On 2026/4/1 18:55, Catalin Marinas wrote: > On Fri, Mar 20, 2026 at 06:42:21PM +0800, Jinjie Ruan wrote: >> Use the generic TIF bits defined in for >> standard thread flags (TIF_SIGPENDING, TIF_NEED_RESCHED, TIF_NOTIFY_RESUME, >> TIF_RESTORE_SIGMASK, TIF_SINGLESTEP, etc.) instead of defining >> them locally. >> >> Arm64-specific bits (TIF_FOREIGN_FPSTATE, TIF_MTE_ASYNC_FAULT, TIF_SVE, >> TIF_SSBD, etc.) are renumbered to start at bit 16 to avoid conflicts. >> >> This enables RSEQ optimizations which require CONFIG_HAVE_GENERIC_TIF_BITS >> combined with the generic entry infrastructure (already used by arm64). >> >> By the way, remove TIF_FREEZE because this flag became unused since >> commit d88e4cb67197 ("freezer: remove now unused TIF_FREEZE"). >> >> Cc: Thomas Gleixner >> Reviewed-by: Kevin Brodsky >> Reviewed-by: Linus Walleij >> Reviewed-by: Yeoreum Yun >> Signed-off-by: Jinjie Ruan > > Acked-by: Catalin Marinas > > Given that it's touching multiple trees, I guess it's a series for > Andrew? Yes, this series touches x86, arm64, s390 and loongarch. It's best for Andrew to help merge this in the -mm tree. Moreover, the latter two arm64-related patches depend on patch serise "arm64: entry: Convert to Generic Entry" v14 being merged first, while the first two patches can be merged in advance. >