Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp444049pxu; Fri, 11 Dec 2020 06:11:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKJ5TSOkJKZ7NqC11xxq9XubXAUXaq/MGfvIZwwPy4vepdp0ZDWQ2BO+8TEmoO6UDMw4gM X-Received: by 2002:a17:907:2131:: with SMTP id qo17mr10977787ejb.546.1607695914491; Fri, 11 Dec 2020 06:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607695914; cv=none; d=google.com; s=arc-20160816; b=FsIEQSfbm9wdc+5BlwGRNyblcGz+U/Cfu8vUiMv1zeDdV4F5xnyC0t2ESRgFC8zYtl rsaIMKeVB88TIRKd7iRNfyhKhe3zqTA45pHwrH/s+Op60x8SQtBsXRoNVwU7Rx0eBgIl qg6CAxUHUfZE/XNv6H5yUEBI1CyHOa+Is+uM3qpHZO1b3q60c97udzhEVYrPFDt3FhG1 oG8fR8JHcjy9WrQPvLcQMnT4f/H6NMgR1BaRYMhLUEDjoetAMW0HB3PyfE1UtDKOZCGo /fCA772IwVT8Quxw2DMdwSEc7GANSDYhkmRFd9DusRG3teYCz6Atm6ru2FcBzjpHzghq UYKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=xeKMIUUY7UN7nseclqb6capkWQKCLYLlFPvEsM/avAA=; b=k1XPj2qirITA7fdOFEjp7akZe8ofSZNSl7SeXKCC3p20sSCkkJAg/6PMbUXj9hpxA8 swZsokR2nvxWBBeUT3N4mH+0Q5Syq+CYS4Ysko0+8xkZftJ/6B1ZJzzGAHtZxej5FH7s 2ex9TxSvtBUzbr3yWLy5PlQp3DX30O+jnwii2BC9B80DDlp6iINmIJsgrWqBG4sqqFQp uwUf3Syr5Oqlm3cZV+1wOGxx/jGRIgyqzBQWevu4u09eSepk182ajznnCcyvH0A2PtIo nzByNlTxkd9l6a6Bj7v1KYG8h6jEupjkzXzlDZnWZls4ovqYJyg0ykbY/Hc50xiSchRc xIMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3520JJ+c; dkim=neutral (no key) header.i=@linutronix.de header.b=BclOyliY; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x13si4421142ejb.243.2020.12.11.06.11.30; Fri, 11 Dec 2020 06:11:54 -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=@linutronix.de header.s=2020 header.b=3520JJ+c; dkim=neutral (no key) header.i=@linutronix.de header.b=BclOyliY; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392224AbgLKMh6 (ORCPT + 99 others); Fri, 11 Dec 2020 07:37:58 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:34578 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392131AbgLKMhx (ORCPT ); Fri, 11 Dec 2020 07:37:53 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607690230; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xeKMIUUY7UN7nseclqb6capkWQKCLYLlFPvEsM/avAA=; b=3520JJ+cuub+0iUSOK2WXjhkvCbFqeJNnWTo2fJ47aLTUyErKzNfEkULJPsX3Qa7RkBVwA 4q6jw5fcFuYyZr/ciqFHaAnQVfC1Alp3kCIzCyANWRIH5wkikSXOxsM9LH0a3lH+xiAa45 f0/UcyAfqGDvjb7eJDdGBHj9hJNdTg1RDGpqvbSImr23oJWz9hqAB7upD/U8t27689mDeg F/Tz1FEjoqnkk1C0t4mKGVaykVWwH0Pu53ShxAoYAYxl3sBd5Q86Au5G3wKiLThho8mDJo PrspxrgGCxFQ2+rt5HHBAUWr3eImu1NL/lsNiVCRl0iT/SNo3u6jwsn7CYROBw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607690230; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xeKMIUUY7UN7nseclqb6capkWQKCLYLlFPvEsM/avAA=; b=BclOyliY9++BXeKdFZCu5z1BEMLnNc8fqr8CcstXRZSRH4lrLjensrS/wg9nxh2q1FTvD5 HDIGPJaNNIgQp/DQ== To: =?utf-8?B?SsO8cmdlbiBHcm/Dnw==?= , boris.ostrovsky@oracle.com, 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 Subject: Re: [patch 27/30] xen/events: Only force affinity mask for percpu interrupts In-Reply-To: <2164a0ce-0e0d-c7dc-ac97-87c8f384ad82@suse.com> References: <20201210192536.118432146@linutronix.de> <20201210194045.250321315@linutronix.de> <7f7af60f-567f-cdef-f8db-8062a44758ce@oracle.com> <2164a0ce-0e0d-c7dc-ac97-87c8f384ad82@suse.com> Date: Fri, 11 Dec 2020 13:37:10 +0100 Message-ID: <871rfwiknd.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 11 2020 at 13:10, J=C3=BCrgen Gro=C3=9F wrote: > 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 f= or >>> percpu interrupts and overwrite the affinity mask with the corresponding >>> 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 sto= red >>> 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 X= EN >>> 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 in= stead 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. That's right, but not limited to ARM. The same problem exists on x86 UP. So yes, the call makes sense, but the changelog is not really useful. Let me add a comment to this. Thanks, tglx