Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1794210lqz; Mon, 1 Apr 2024 18:47:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0bu5f88y/ZsAyaZXXT1CSaHdQgw257qDP0oTzV7p4Tr515dYrFx5oMMZtZfaOeaXi6ANmTndV32Ao5VddMeJEotIdDK1n3r0DaNCdgQ== X-Google-Smtp-Source: AGHT+IHgsGP9GDppiwO69guGyPtaPH7CzBGrI4vbvhlN7A2NVDj6wcljACphE+MYEWhBY/MvF7AV X-Received: by 2002:a05:622a:1187:b0:432:ccf1:52f8 with SMTP id m7-20020a05622a118700b00432ccf152f8mr9346529qtk.51.1712022476243; Mon, 01 Apr 2024 18:47:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712022476; cv=pass; d=google.com; s=arc-20160816; b=02LYt0rimYn8GT0fs9OB8jglbCIoDZgejKp8vHWDh1njgUMJqXWTx1uayJaKCnJeKI F+9AQtNzSOdRxUf/Iwjk0+KDV8WjbGIL17QJ4NJAKTGWEFTxXBAAaLI4fNA7zuH/3Byl uA0j0qL6vkMVOxU3pkTYN8T4M9Jj57JlNaq+ledQBpmrWr8JsQ2PXbrQDLI3iQaIY8Rt 6Ah7VB4aL5Rfb0QhnB11D1bdn4CeJyS8x6NCvc80jymaHN0vO5v/gqk4KijMOB49t+5T 84SMzFW/hdS1zGahi3hXCtFZGTGoLGQS+f7TNYu8dQQIJgQD5HTZpQeKBc5F39fUUQ3y FqdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=3vnZ3IHPBXc4ai5YYVkJH/KG1jfBRdDvhLTTJAolhIY=; fh=lxNDTY3uaWBv0b9Is4kVBaMzf1trKYOpxBHrw1u+ptI=; b=IF2s2JSOLfrdZi1zAR9mzeiPTUI0Pqmwc9swSGQdrflaJFqK53S9sBFnmEZHR5+9pa qKCK0OJCH0fsoIbwkJM6QdVYLfCaq0GL6JMDg2Vvih8ybsruTtTHonmrHvHVU10VGGbO /LZW7UH/mdDZRmhZRc5oGRUuz5cERzWlf3Ic/0jjw2B2IpfImfwr+iTDGl1ReQ5N18D0 hAtNxNIuH5Vv3R3IH0KDTNbJCCZav6eaHnCXXxjvjf6VcZsyCFBPpJ1TAlMkCay13I+D SiJtCJapjztdGiwis6l6o3CUNZikCK91y1C4b83Zq20Kal+E/oAcRcIpseqf6cllcDd2 yU5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Z+5vbHNN; arc=pass (i=1 spf=pass spfdomain=amazon.com dkim=pass dkdomain=amazon.com dmarc=pass fromdomain=amazon.com); spf=pass (google.com: domain of linux-kernel+bounces-127263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.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 t17-20020a05622a181100b00432f67ee8a8si2742825qtc.502.2024.04.01.18.47.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 18:47:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127263-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=@amazon.com header.s=amazon201209 header.b=Z+5vbHNN; arc=pass (i=1 spf=pass spfdomain=amazon.com dkim=pass dkdomain=amazon.com dmarc=pass fromdomain=amazon.com); spf=pass (google.com: domain of linux-kernel+bounces-127263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.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 8CD351C22EB3 for ; Tue, 2 Apr 2024 01:47:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F9E8D53C; Tue, 2 Apr 2024 01:47:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="Z+5vbHNN" Received: from smtp-fw-52005.amazon.com (smtp-fw-52005.amazon.com [52.119.213.156]) (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 695C9945A; Tue, 2 Apr 2024 01:47:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=52.119.213.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712022466; cv=none; b=RpLoklF21/MT+czLM+j/4GSWBN7nxUkL6PoIhow8yqRYuPpbaTaUZJxfmmlcSsAqPRbvlV9nISLDPjlRDAFs3TCgCoCtpPRki7xMf2bLv5uROvKgzxuZBchZCfGqguki6/ncP1qOa+tugoPcDIwEg0laycr0GAnbltkfcN+8M2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712022466; c=relaxed/simple; bh=E005gBSNtjSCIS2doCc/40wSL13e/DWnm8D1a1Y8FXA=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=jAsVJntG/WQXeU7G0ho54LJQBNTIEfroHa2qwocY3siw/n0dIIor4V9ICZjFgqXPrsqhJH/UAG/YFaBKLKeRzziIKVLp7xPCyjXTZVgvAFSqyhYXT6+IXRgyJ43J+0T7i7gS7B9zdXDADwAZCI8cHfmY/qm4wheCdE3oRTWpkwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.com; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b=Z+5vbHNN; arc=none smtp.client-ip=52.119.213.156 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1712022465; x=1743558465; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3vnZ3IHPBXc4ai5YYVkJH/KG1jfBRdDvhLTTJAolhIY=; b=Z+5vbHNNl5C/Sq0z+MttQbjysUUZ9/N+5MgNttcfRTbGcBV+r/jaNC/l EDcvYti6c1Lwqg+FkOL91kkjCjLHXGv6PbS0Gh/8MQRuhDBGmXSKaFDxw 1vx9pCPgj82CZCbJXE4ir6pBklXMhTI7470FCTFhrQjFsl79iAJrY68UQ o=; X-IronPort-AV: E=Sophos;i="6.07,173,1708387200"; d="scan'208";a="645020000" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev) ([10.43.8.6]) by smtp-border-fw-52005.iad7.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2024 01:47:43 +0000 Received: from EX19MTAUWC001.ant.amazon.com [10.0.21.151:1581] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.7.132:2525] with esmtp (Farcaster) id 3851c02f-02ac-4111-8f35-6d8584b37e21; Tue, 2 Apr 2024 01:47:42 +0000 (UTC) X-Farcaster-Flow-ID: 3851c02f-02ac-4111-8f35-6d8584b37e21 Received: from EX19D001UWA003.ant.amazon.com (10.13.138.211) by EX19MTAUWC001.ant.amazon.com (10.250.64.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Tue, 2 Apr 2024 01:47:40 +0000 Received: from u34cccd802f2d52.ant.amazon.com (10.252.141.8) by EX19D001UWA003.ant.amazon.com (10.13.138.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1258.28; Tue, 2 Apr 2024 01:47:39 +0000 From: Haris Okanovic To: , , CC: , Haris Okanovic Subject: [PATCH 1/3] arm64: Add TIF_POLLING_NRFLAG Date: Mon, 1 Apr 2024 20:47:04 -0500 Message-ID: <20240402014706.3969151-1-harisokn@amazon.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EX19D035UWB001.ant.amazon.com (10.13.138.33) To EX19D001UWA003.ant.amazon.com (10.13.138.211) TIF_POLLING_NRFLAG was removed from arm64 as there were no polling idle states. Add back TIF_POLLING_NRFLAG in preparation for an arm64 cpuidle driver which supports polling. Signed-off-by: Haris Okanovic --- arch/arm64/include/asm/thread_info.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/thread_info.h b/arch/arm64/include/asm/thread_info.h index e72a3bf9e563..ab22c7d1967e 100644 --- a/arch/arm64/include/asm/thread_info.h +++ b/arch/arm64/include/asm/thread_info.h @@ -81,6 +81,7 @@ void arch_setup_new_exec(void); #define TIF_SME 27 /* SME in use */ #define TIF_SME_VL_INHERIT 28 /* Inherit SME vl_onexec across exec */ #define TIF_KERNEL_FPSTATE 29 /* Task is in a kernel mode FPSIMD section */ +#define TIF_POLLING_NRFLAG 30 #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) @@ -97,6 +98,7 @@ void arch_setup_new_exec(void); #define _TIF_SVE (1 << TIF_SVE) #define _TIF_MTE_ASYNC_FAULT (1 << TIF_MTE_ASYNC_FAULT) #define _TIF_NOTIFY_SIGNAL (1 << TIF_NOTIFY_SIGNAL) +#define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) #define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \ _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \ -- 2.34.1