From nobody Mon Apr 29 06:00:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=linuxfoundation.org ARC-Seal: i=1; a=rsa-sha256; t=1618495495; cv=none; d=zohomail.com; s=zohoarc; b=J7JB71FYQFhxgRmKWIaKD7SAqenlUmKXHWHVEpUaxqkJRkD4KvIPGd6933oS6D5ogI3um9PS7xWzRPtkDZyeWcsUaBL9qcWcMUScEUyfbXrBfkhWKRZYTDKWpIvMvFH9QJ8S++dSlFTV0jVJHbDZavQezZDSYXPAyVYcM2qokkM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618495495; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=J3UtP/rjUNJaY/zDbL8A72lMfTL9dpyTu2tyzVC7xzI=; b=RLucOR5COFW1PTvuM+LvoZU7YmVIi8Yx405w9WTwAfMG3d9TOJZJ4fpCG+8LP6Jxulh/LDphDQvJQR5WuPZ7JvyG8ymlDz7a06LtvlWBZgo7Uc7Yn17nW/bChjmVfYSZTtt61D9s4W6W56kVvfdbog2wNsbNBz6RGObcUAO/cik= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1618495494996925.2919610331255; Thu, 15 Apr 2021 07:04:54 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.111208.212678 (Exim 4.92) (envelope-from ) id 1lX2bn-0005Dx-OJ; Thu, 15 Apr 2021 14:04:39 +0000 Received: by outflank-mailman (output) from mailman id 111208.212678; Thu, 15 Apr 2021 14:04:39 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lX2bn-0005Dp-Jy; Thu, 15 Apr 2021 14:04:39 +0000 Received: by outflank-mailman (input) for mailman id 111208; Thu, 15 Apr 2021 14:04:38 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lX2bm-0005DJ-Ml for xen-devel@lists.xenproject.org; Thu, 15 Apr 2021 14:04:38 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 61f85623-bfab-4ec5-ac67-dd6e0049dbd4; Thu, 15 Apr 2021 14:04:38 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id D9190611AD; Thu, 15 Apr 2021 14:04:36 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 61f85623-bfab-4ec5-ac67-dd6e0049dbd4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618495477; bh=Wdz8Aa9qdJDiwAN8b8SMYaoOnBF5VIObjL/JbA05IYw=; h=Subject:To:Cc:From:Date:In-Reply-To:From; b=K0DK3m3dGaFczhd9OyDsenGdUjULmso5HQ39/TUKyZlc5WiGxomGAYUwyqPLXdTtk yxZDmX2yfSXpBiOxtXc6VGvvc1+8A4bioh+zEsu35jwmLF1lEWKQbQsJDPTrO0hWwc EZIOda/bk8TNDlyQmAF0R9Lq8DinbKI04ZWInu3g= Subject: Patch "xen/events: fix setting irq affinity" has been added to the 5.4-stable tree To: boris.ostrovsky@oracle.com,gregkh@linuxfoundation.org,jgross@suse.com,sstabellini@kernel.org,xen-devel@lists.xenproject.org Cc: From: Date: Thu, 15 Apr 2021 16:04:20 +0200 In-Reply-To: <20210412062845.13946-1-jgross@suse.com> Message-ID: <1618495460134238@kroah.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-stable: commit X-Patchwork-Hint: ignore X-ZohoMail-DKIM: pass (identity @linuxfoundation.org) Content-Type: text/plain; charset="utf-8" This is a note to let you know that I've just added the patch titled xen/events: fix setting irq affinity to the 5.4-stable tree which can be found at: http://www.kernel.org/git/?p=3Dlinux/kernel/git/stable/stable-queue.git= ;a=3Dsummary The filename of the patch is: xen-events-fix-setting-irq-affinity.patch and it can be found in the queue-5.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. From jgross@suse.com Thu Apr 15 15:56:08 2021 From: Juergen Gross Date: Mon, 12 Apr 2021 08:28:45 +0200 Subject: xen/events: fix setting irq affinity To: stable@vger.kernel.org Cc: Juergen Gross , Boris Ostrovsky , Stefano Stabellini , xen-devel@lists.xenpro= ject.org Message-ID: <20210412062845.13946-1-jgross@suse.com> From: Juergen Gross The backport of upstream patch 25da4618af240fbec61 ("xen/events: don't unmask an event channel when an eoi is pending") introduced a regression for stable kernels 5.10 and older: setting IRQ affinity for IRQs related to interdomain events would no longer work, as moving the IRQ to its new cpu was not included in the irq_ack callback for those events. Fix that by adding the needed call. Note that kernels 5.11 and later don't need the explicit moving of the IRQ to the target cpu in the irq_ack callback, due to a rework of the affinity setting in kernel 5.11. Signed-off-by: Juergen Gross Signed-off-by: Greg Kroah-Hartman --- drivers/xen/events/events_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -1783,7 +1783,7 @@ static void lateeoi_ack_dynirq(struct ir =20 if (VALID_EVTCHN(evtchn)) { do_mask(info, EVT_MASK_REASON_EOI_PENDING); - event_handler_exit(info); + ack_dynirq(data); } } =20 @@ -1794,7 +1794,7 @@ static void lateeoi_mask_ack_dynirq(stru =20 if (VALID_EVTCHN(evtchn)) { do_mask(info, EVT_MASK_REASON_EXPLICIT); - event_handler_exit(info); + ack_dynirq(data); } } =20 Patches currently in stable-queue which might be from jgross@suse.com are queue-5.4/xen-events-fix-setting-irq-affinity.patch