Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp438864pxu; Fri, 11 Dec 2020 06:05:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+M8mjgk0FYeSd4FrcT9jUDljWZhVGfchw4sbmw5i/7sx6VfA8sF0SCEGYeLDNcx77lSDu X-Received: by 2002:a19:e003:: with SMTP id x3mr4910093lfg.127.1607695550062; Fri, 11 Dec 2020 06:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607695550; cv=none; d=google.com; s=arc-20160816; b=glNanneWj4aMxcKno5MbzXjWujlvvUGAd4cXYM5sWRod4bT/HuANqd1XVewHFRo8Oj oKavuVD2/TOSzUux+EXdXdCVv91VV11FzoO2Hlgca5GpkvO05yQKS3VZx0z6GXxkDoae RDRbWP+j8CK1qR9vU8FsaGHl3DkC8VMEJ8TKZEohzXIxbVQBuVmwqf5BR3lfpSFrEeHi R4sYTCw763Z4r+g2GJfmBpEgWf8MrPAvcIF6AZmgZ8fiTPvqPdwxndKuAUtvW6iFUEgE tzuDUE0yvjmuHGRwZdKew7oEBls2v0NKtr2Mgf0pfNOHDk7UpHwk/THIzYjGo/O75BS8 J6tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=aJZQMJEqjqCeKHnTDA0IPhE5vARBQoDmh6z4taBza3s=; b=Ez9CqwIoak/1Hsfu3dEisTkujb8rXxtxckK5aMUy1V55jg5PZnUKPMkb0FFbsX+hPD KZbns5NtpYwO+7xOF2sW973dwde8cYV8drNNX3PO9rBLwcuXR1x9YrNyued9HyTIq2DT kDTraUUG/HI02dI526PE0mzxg/rmOO312hcPM6OgcMSg9FhYsV9DFvNNDZfElOz+nBHQ gMaT5YZwf3MX+tFGP8If9fF3zYrH44k6nRUrvlYnVkV0KjNUM6VtVw9vxlit3AuVgZxu 0t2R+W+axLImCzWeq0R3Jbsp9qtlAhd5o/LGvad7XS73Vv7hozMDO4VA81LpHcqT3Ubr R0qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=P1ENv6gh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si4355867ejp.536.2020.12.11.06.05.23; Fri, 11 Dec 2020 06:05:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=P1ENv6gh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395500AbgLKMLr (ORCPT + 99 others); Fri, 11 Dec 2020 07:11:47 -0500 Received: from mx2.suse.de ([195.135.220.15]:48198 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391389AbgLKMLe (ORCPT ); Fri, 11 Dec 2020 07:11:34 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1607688646; h=from:from:reply-to: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=aJZQMJEqjqCeKHnTDA0IPhE5vARBQoDmh6z4taBza3s=; b=P1ENv6ghYnMSOzdKwSZDHOniw7i+gHM9SWvjsPS+nXcpf4uhfjZJjCfiznixdHS7UHUGUl a34b0cvwxyIOGXHl1JLWLzB64bZDoXsOpneHkxjbVOOIAwHRwzjzh7nkMxX9MEEiCvDvNr htx20xTSyXpVilz7Cd7mz1QsfdAQFf8= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 41E96AE87; Fri, 11 Dec 2020 12:10:46 +0000 (UTC) Subject: Re: [patch 27/30] xen/events: Only force affinity mask for percpu interrupts To: boris.ostrovsky@oracle.com, Thomas Gleixner , LKML Cc: Peter Zijlstra , Marc Zyngier , Stefano Stabellini , xen-devel@lists.xenproject.org, "James E.J. Bottomley" , Helge Deller , afzal mohammed , linux-parisc@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, Mark Rutland , Catalin Marinas , Will Deacon , Christian Borntraeger , Heiko Carstens , linux-s390@vger.kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Pankaj Bharadiya , Chris Wilson , Wambui Karuga , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Tvrtko Ursulin , Linus Walleij , linux-gpio@vger.kernel.org, Lee Jones , Jon Mason , Dave Jiang , Allen Hubbe , linux-ntb@googlegroups.com, Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Michal Simek , linux-pci@vger.kernel.org, Karthikeyan Mitran , Hou Zhiqiang , Tariq Toukan , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, Saeed Mahameed , Leon Romanovsky References: <20201210192536.118432146@linutronix.de> <20201210194045.250321315@linutronix.de> <7f7af60f-567f-cdef-f8db-8062a44758ce@oracle.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <2164a0ce-0e0d-c7dc-ac97-87c8f384ad82@suse.com> Date: Fri, 11 Dec 2020 13:10:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <7f7af60f-567f-cdef-f8db-8062a44758ce@oracle.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qMVMfsvlAyIOVuhurM0AhbsuX1abhQOZS" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qMVMfsvlAyIOVuhurM0AhbsuX1abhQOZS Content-Type: multipart/mixed; boundary="1SKmisPo0wwQx0jet3HDKXRMk6SQ4aMth"; protected-headers="v1" From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= To: boris.ostrovsky@oracle.com, Thomas Gleixner , LKML Cc: Peter Zijlstra , Marc Zyngier , Stefano Stabellini , xen-devel@lists.xenproject.org, "James E.J. Bottomley" , Helge Deller , afzal mohammed , linux-parisc@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, Mark Rutland , Catalin Marinas , Will Deacon , Christian Borntraeger , Heiko Carstens , linux-s390@vger.kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Pankaj Bharadiya , Chris Wilson , Wambui Karuga , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Tvrtko Ursulin , Linus Walleij , linux-gpio@vger.kernel.org, Lee Jones , Jon Mason , Dave Jiang , Allen Hubbe , linux-ntb@googlegroups.com, Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Michal Simek , linux-pci@vger.kernel.org, Karthikeyan Mitran , Hou Zhiqiang , Tariq Toukan , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, Saeed Mahameed , Leon Romanovsky Message-ID: <2164a0ce-0e0d-c7dc-ac97-87c8f384ad82@suse.com> Subject: Re: [patch 27/30] xen/events: Only force affinity mask for percpu interrupts References: <20201210192536.118432146@linutronix.de> <20201210194045.250321315@linutronix.de> <7f7af60f-567f-cdef-f8db-8062a44758ce@oracle.com> In-Reply-To: <7f7af60f-567f-cdef-f8db-8062a44758ce@oracle.com> --1SKmisPo0wwQx0jet3HDKXRMk6SQ4aMth Content-Type: multipart/mixed; boundary="------------8ECAEB8E864B85BAB060713C" Content-Language: en-US This is a multi-part message in MIME format. --------------8ECAEB8E864B85BAB060713C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 11.12.20 00:20, boris.ostrovsky@oracle.com wrote: >=20 > On 12/10/20 2:26 PM, Thomas Gleixner wrote: >> All event channel setups bind the interrupt on CPU0 or the target CPU = for >> percpu interrupts and overwrite the affinity mask with the correspondi= ng >> cpumask. That does not make sense. >> >> The XEN implementation of irqchip::irq_set_affinity() already picks a >> single target CPU out of the affinity mask and the actual target is st= ored >> in the effective CPU mask, so destroying the user chosen affinity mask= >> which might contain more than one CPU is wrong. >> >> Change the implementation so that the channel is bound to CPU0 at the = XEN >> level and leave the affinity mask alone. At startup of the interrupt >> affinity will be assigned out of the affinity mask and the XEN binding= will >> be updated. >=20 >=20 > If that's the case then I wonder whether we need this call at all and i= nstead bind at startup time. After some discussion with Thomas on IRC and xen-devel archaeology the result is: this will be needed especially for systems running on a single vcpu (e.g. small guests), as the .irq_set_affinity() callback won't be called in this case when starting the irq. Juergen --------------8ECAEB8E864B85BAB060713C Content-Type: application/pgp-keys; name="OpenPGP_0xB0DE9DD628BF132F.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="OpenPGP_0xB0DE9DD628BF132F.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xsBNBFOMcBYBCACgGjqjoGvbEouQZw/ToiBg9W98AlM2QHV+iNHsEs7kxWhKMjrioyspZKOBy= cWx w3ie3j9uvg9EOB3aN4xiTv4qbnGiTr3oJhkB1gsb6ToJQZ8uxGq2kaV2KL9650I1SJvedYm8O= f8Z d621lSmoKOwlNClALZNew72NjJLEzTalU1OdT7/i1TXkH09XSSI8mEQ/ouNcMvIJNwQpd369y= 9bf IhWUiVXEK7MlRgUG6MvIj6Y3Am/BBLUVbDa4+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y8ZR= wgn BC5mVM6JjQ5xDk8WRXljExRfUX9pNhdE5eBOZJrDRoLUmmjDtKzWaDhIg/+1Hzz93X4fCQkNV= bVF LELU9bMaLPBG/x5q4iYZ2k2ex6d47YE1ZFdMm6YBYMOljGkZKwYde5ldM9mo45mmwe0icXKLk= pEd IXKTZeKDO+Hdv1aqFuAcccTg9RXDQjmwhC3yEmrmcfl0+rPghO0Iv3OOImwTEe4co3c1mwARA= QAB wsBfBBgBAgAJBQJTjHAWAhsMAAoJELDendYovxMvQ/gH/1ha96vm4P/L+bQpJwrZ/dneZcmEw= Tbe 8YFsw2V/Buv6Z4Mysln3nQK5ZadD534CF7TDVft7fC4tU4PONxF5D+/tvgkPfDAfF77zy2AH1= vJz Q1fOU8lYFpZXTXIHb+559UqvIB8AdgR3SAJGHHt4RKA0F7f5ipYBBrC6cyXJyyoprT10EMvU8= VGi wXvTyJz3fjoYsdFzpWPlJEBRMedCot60g5dmbdrZ5DWClAr0yau47zpWj3enf1tLWaqcsuylW= svi uGjKGw7KHQd3bxALOknAp4dN3QwBYCKuZ7AddY9yjynVaD5X7nF9nO5BjR/i1DG86lem3iBDX= zXs ZDn8R38=3D =3D2wuH -----END PGP PUBLIC KEY BLOCK----- --------------8ECAEB8E864B85BAB060713C-- --1SKmisPo0wwQx0jet3HDKXRMk6SQ4aMth-- --qMVMfsvlAyIOVuhurM0AhbsuX1abhQOZS Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEhRJncuj2BJSl0Jf3sN6d1ii/Ey8FAl/TYcMFAwAAAAAACgkQsN6d1ii/Ey+q kwgAhqGwSjkPCHuD6iXs+izA0i+SRbhYcA5DS/prsjTsYrIr31Nv0iAWAuq87gH+Uo5StBRXaRlR Vh9HiOFFv8ScTgdoiZDUycGN07TFuj9NJGJp/TvD+OZN17OQt2w1Pw1JeRI5RNsVTm22OMUH4Om8 D5t0xrU0zymXmndnx8OZEQ/j0W+hCRjIoNpmjegRa1p8q12pzI9FJByuAhVVTqmcfucWD2sIXlFk ZYAwwiA5sMnSj7UYTiR6lkIWMPv4D0FJYC1GwAMI6EONFeO6SBjMqZsWhymL1P1AU1WoSAe19C/e DRzPDV1x+jKSYVArD4THJwjqoa7QDXngm7UxnYCYdg== =Bajp -----END PGP SIGNATURE----- --qMVMfsvlAyIOVuhurM0AhbsuX1abhQOZS--