Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1210395rdb; Mon, 19 Feb 2024 07:42:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVCypMMc6/Ek3E0zIdoCXHbo8PPxlhpc9J4PwJbUDrGmzR6mHRr/wy5FBT0HKJKv19AW9hFTQQ0cnSyvfiuOgIUc/v72bB4DaSDVRZzjg== X-Google-Smtp-Source: AGHT+IHJU+UwE8gZsnvWdhoin5q1HB/Nx7QCgsl/ZjM9BopRgM+oFiVAw7Ji0iHeSjNPvOICkADg X-Received: by 2002:aa7:854d:0:b0:6e3:e797:2eef with SMTP id y13-20020aa7854d000000b006e3e7972eefmr3917447pfn.4.1708357319907; Mon, 19 Feb 2024 07:41:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708357319; cv=pass; d=google.com; s=arc-20160816; b=EuTemmtB7hiKikwizNtBhi/KINEXdNNQmOCCPF8tFftZxSekTgAIVw71Z7ScGxuK8C WnpxshgnQ2AKq4cTKPu8uagrWrE4YMI+7+74oA29hLoFFzFm23OfLYKwGR57t5nFOcff aPwiSrDdivCXN93dl2oNlaSSXtf1rW9MqB9iq3ocIdThbUh8lWzzSRDBAYcp/T4dEqPa UwNLA+tXa4VrivV3Tdtxdxw7Gu+2Z5AyIU7i9PXGvhxmMIxd6n6/fAm+nK202DyumkGm kxEUIEoCHlTVJtoVVFuQcH1VRGO8HIKghJvagL8QLBX4Jcegnk27NFNCkfXxpy2zTfDm iYpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=rSTeQBcKNQ8+VhtrTp+eNttn9HFU+s119C7tD60G8MQ=; fh=Z44qi5zzdje67VzrYPiE3xDkGEh0paLnIFFFj+L9fz0=; b=d2mmB0ikKMYvuQ5ODSqeHDdwWU8H0TYB+wHB+fnLXwmMKwss6WOuU/WIRhm+mYjsvS T7OUN6Xvm8geeaMDlif0utiEowLTj0fMyvo+CB7RaYu9Vxd2qtcuN2HNzmvkT/y6jAGF Qzp9kDQjVoAjymVSh6Bx4fBGSQUyUCpDStJGb27nEem0rlKrRQUHK3n7jEFXAs/1y7T8 VbRCbggN560LQK3HdICHFomZz6di9oMTS8bp/Sep1/a2B5FmDmV4PUI+C/vEW+FxHmB4 cKf3luQrxHwRl/kHyZKdWjSW/Kz68gFokzCKK4EyfnAgx/L2QH8EWZ2QUvyp7hab0j3x Z6TQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=2vpn+Z78; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71584-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 13-20020a63144d000000b005dc49c4dfc7si4433468pgu.471.2024.02.19.07.41.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 07:41:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=2vpn+Z78; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71584-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B7BADB2167B for ; Mon, 19 Feb 2024 15:29:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F800383B8; Mon, 19 Feb 2024 15:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2vpn+Z78"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="BBpjmYWN" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 40973383A1 for ; Mon, 19 Feb 2024 15:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708356578; cv=none; b=js92YDxPNJwVP4621fQyXyzlPey3Ap4GfxyeIg8zj/q5i1V6GWs/n9cUr9+O4ByVR+8P697B+RR1Kev5ewaDZ/qAjwgYFC3In8RoAQSLNESXSZF0060mHgCLlCWgNczsFpqgtZrA/8MZyGGnT3SvHoxH0FRq/hqDk7fIWAEm0+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708356578; c=relaxed/simple; bh=NNge+DiPJ11bEmNgg0BaxsrHSS4x7ZUk63hYvJ7Eyxc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=PzyF/0a+xvfFIbzOgPUnlxrDTodJEUSo2XplBEHo/UU5vXULtuRCqcY7fQoRJ1wYa2/NNM7dkkf74PMaLeDaQ10h1Zsne9PSAMTvysNa7fiei9Lx4zoRUdGJUoDyyDJ/egzqEliPevzWFUD3d3/cUR1VN1AnZl7oXU53go1712M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2vpn+Z78; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=BBpjmYWN; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708356575; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rSTeQBcKNQ8+VhtrTp+eNttn9HFU+s119C7tD60G8MQ=; b=2vpn+Z78L8cIfTIOhn/aHwAqfNXLrW52pifCKDB2PRVhZevpkcWwnwfzf3tP+iU89chDl1 KNCelMw6PjxSVsaTIWCVks2PWia3NAA894bReR8vHqhilf/b5I1G6/B4jM78/dKpzdhN2z OOiho7BEkfXLvqTX4pSqoR3mWYYtZkkkzTQcH3sCOYcfN7/7svgAY+qf6BV65JfdauhFY9 4nrJseH5SR+bWV2COGMrM7jg2Q65cw8z03Fyuu2t9r93CWqsx+m2U79E6XXj2bYJbC/pac qI+GvxMGrd+nCo+2tXMHAb90NNzEtm7IhnIj9yLOlYL1/6CHCWEHCQtdhvxrzQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708356575; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rSTeQBcKNQ8+VhtrTp+eNttn9HFU+s119C7tD60G8MQ=; b=BBpjmYWNVmNnpedWayf7kdpF/bztAg0qfCMiqGDfpK894Pi/rFxouton4Lkq/2ezvF83TP kuKsOYDyX9oBcKCw== To: Ankur Arora , linux-kernel@vger.kernel.org Cc: peterz@infradead.org, torvalds@linux-foundation.org, paulmck@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jpoimboe@kernel.org, mark.rutland@arm.com, jgross@suse.com, andrew.cooper3@citrix.com, bristot@kernel.org, mathieu.desnoyers@efficios.com, geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, anton.ivanov@cambridgegreys.com, mattst88@gmail.com, krypton@ulrich-teichert.org, rostedt@goodmis.org, David.Laight@ACULAB.COM, richard@nod.at, mjguzik@gmail.com, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, Ankur Arora Subject: Re: [PATCH 06/30] entry: handle lazy rescheduling at user-exit In-Reply-To: <20240213055554.1802415-7-ankur.a.arora@oracle.com> References: <20240213055554.1802415-1-ankur.a.arora@oracle.com> <20240213055554.1802415-7-ankur.a.arora@oracle.com> Date: Mon, 19 Feb 2024 16:29:34 +0100 Message-ID: <87plws8obl.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Mon, Feb 12 2024 at 21:55, Ankur Arora wrote: > The scheduling policy for TIF_NEED_RESCHED_LAZY is to allow the > running task to voluntarily schedule out, running it to completion. > > For archs with GENERIC_ENTRY, do this by adding a check in Please write out architectures. This is not twatter. > exit_to_user_mode_loop(). Thanks, tglx