Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp193759lqj; Wed, 10 Apr 2024 07:56:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvrJYtuk7oJCp2iSVH8hM3eNNf+Jd4iPOlkBIXfo2DjiHDK+QYrAnMNp1Ioo22FWwRiPK2dKzNhFCYJQaIUFM/pCLHBhDOTfvwJpgU9Q== X-Google-Smtp-Source: AGHT+IEpSjSZTe4AGms1eiMCYzri36J+exqzX2llcgPF2jRDF3zMIDRCNtPCMDshCp4XAQRPYMh9 X-Received: by 2002:a17:90a:db54:b0:2a2:9452:5e45 with SMTP id u20-20020a17090adb5400b002a294525e45mr2722784pjx.2.1712761014623; Wed, 10 Apr 2024 07:56:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712761014; cv=pass; d=google.com; s=arc-20160816; b=WvqfmoYwQmc7FndCtBXpBGh+X+hqltZTz2PJu1dKYdTNsx9xpVj9yv6rMXeCOGXudB XUGRPzGsmgOIpTmr4gT3J4idl7dIPZbuaYUmRDaJ2PwQRecNVqWbGpnd3TFpglgkvfK9 JGZE1FpMqMgAaQuMLNukT0qtG97obhQxYctQ/T7JqVHoHgfZWC3f704pjPsPALD9EpNu UC4og9lVzZZ2EJoXTVu73t3SeWVybH81YQI2FoLpYHKGiwYSgPvof389wLf6QeXejcTD K1lKi++nI3c2fewuxf9T1AFeDBcV35FmvISjENplPlvHyLYmmDOsbhTVwQHmYOrz3COr gPvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7dpof+ryLoWY9pv4rU6qBKYLvR+6LHalShAEOpvYwfE=; fh=tWedduKdZfmc5x5dPveXf04NtuTwlscpi5X/WE4lpxw=; b=PzxusWI/liw/zPxKxS5Zj5v2JJlJ75K0Ux56pXU4CgLF+heG2iJxLyW3Kqcc5gXmWm ceHiGpS4ZzPve+qk5INGJhHrwFDZyEVUpzHt5gg5pkmsTPmUOVJ2LjLaAhr88qolD9g2 ug2+0Rj2L/+MjHfk3iK2PTSwsnWnbxZF9vZrgfkki+kj3sWtGVO9Bn2IpwCjFyFPnZCh iD8X8Q7QYRyWzyBEpODnE5ZVzeevAJemiirmSx/kGO81aaUxR44I1FsGS/l/AvR6hNSy ahjVxWpPTw6WhvwLKP9nVI/fxdDgEx90UJWKbq7UN3jrral+A6QHcPhFIozxGBSCzj4A 8sGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pDBIBuC7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x15-20020a17090a164f00b002a54416d027si1679170pje.86.2024.04.10.07.56.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 07:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pDBIBuC7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2DD9928AC87 for ; Wed, 10 Apr 2024 14:55:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4311017996C; Wed, 10 Apr 2024 14:50:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pDBIBuC7" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5E05D174EE9; Wed, 10 Apr 2024 14:50:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712760616; cv=none; b=fjx2Z5kewUPfLRvQmsE6CygB3HHNemJL2YxSWXseT7YOCE3HRWMURBdyG9PuSganALikThQIwl/MtSotQ8LUZ01ZFWVBaGrTXp193o7IuqBUe28xzDnx7EFcnpa18u/zyys5PBjLtrqeDTLxx9q47P7s5FV3iXrolwcUpzjv58w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712760616; c=relaxed/simple; bh=QWBeKVujIF8v0rlPHbEKaf0gAf7oOpu5rJ9JUTdF9BM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rmtCLOb0HyIJsyStPxmKT31KJzj7nG4VQSkCQkbO14Pzc47nhqg/uvIWJxyCXlCkjx3+znpmoCBEFNGQqKStOdtPJFXj5PLAflmKgH31IIi51xdGvNNbPz7R94ZLpog9opzcYH8aRpg2bSlw0SWPgSuxJmaQ8+3pnS513ySVzTs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pDBIBuC7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77080C433F1; Wed, 10 Apr 2024 14:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712760615; bh=QWBeKVujIF8v0rlPHbEKaf0gAf7oOpu5rJ9JUTdF9BM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pDBIBuC7E57OZzo5tK2mLc7aLpm1/IPAKzPyAwDN/IfgqssUg21BEwtfBBOjC7p90 TVPvcpV3tzbuNRyJxe7G/R48sVeKWjLY/ltZ38KWn5gDXmHhQKBTbJvKNl3lpPElFV AIAwEbpwjp5SZ3E4juX+DIFSpabOVmM5GAhHrr9QikvKJJX2qyF/JtfMnm+7XnIaVJ nLfuCf+z8xiC/UY1RHA4Nqe8CcqqJ8R7p9/pxuvZ6dW4W0bjwMtQ8bU3YLi+BswnfG Dab6SvrXdWjJ/n9njoJD338nTybXYgxZ8JmnJIAcbJs9qXFRFD8G3KcDNj0FDNAKew sFFHa8Ppm0Rsw== Date: Wed, 10 Apr 2024 16:50:13 +0200 From: Frederic Weisbecker To: Sebastian Andrzej Siewior Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Adrian Hunter , Alexander Shishkin , Arnaldo Carvalho de Melo , Ian Rogers , Ingo Molnar , Jiri Olsa , Marco Elver , Mark Rutland , Namhyung Kim , Peter Zijlstra , Thomas Gleixner , Arnaldo Carvalho de Melo Subject: Re: [PATCH v3 2/4] perf: Enqueue SIGTRAP always via task_work. Message-ID: References: <20240409085732.FBItbOSO@linutronix.de> <20240409134729.JpcBYOsK@linutronix.de> <20240410134702.dcWYciZB@linutronix.de> <20240410140633.0MHBLpMI@linutronix.de> <20240410144821.bVdBdVOR@linutronix.de> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240410144821.bVdBdVOR@linutronix.de> Le Wed, Apr 10, 2024 at 04:48:21PM +0200, Sebastian Andrzej Siewior a ?crit : > On 2024-04-10 16:42:56 [+0200], Frederic Weisbecker wrote: > > > > Like this then? > > > > > > > > https://lore.kernel.org/all/202403310406.TPrIela8-lkp@intel.com/T/#m63c28147d8ac06b21c64d7784d49f892e06c0e50 > > > > > > Kind of, yes. Do we have more than one waiter? If not, maybe that > > > rcuwait would work then. > > > > Indeed there is only one waiter so that should work. Would > > that be something you can call while preemption is disabled? > > rcuwait_wake_up() does only wake_up_process() which is fine. > wake_up() does spin_lock_irqsave() which is a no. Duh! > On the other hand that preempt-disable needs to go anyway due to > perf_sigtrap(). But a slim wake is a slim wake ;) Sure thing :) > > Thanks. > > Sebastian