Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2057162pxu; Tue, 24 Nov 2020 16:06:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzewiJBsrQHgX+Fcle9KyUO2luLin8nIXs/zY1RATSUr4TAvPcfPKBsoFEL68nuAb9WqUpy X-Received: by 2002:a05:6402:a53:: with SMTP id bt19mr1073496edb.26.1606262767092; Tue, 24 Nov 2020 16:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606262767; cv=none; d=google.com; s=arc-20160816; b=B+zVeQANHDXEXiiQ967jsABdfJ5MTY8fRet+cRV+XlqQPWUaFU3OJ1N6RWeIrLbq1K kx3w5ov5Xb3ifddCNBTHAbfISZglboEqXLlEU2JQF0esgTVUELi4JXGMwngou7LuQ/ec dy3dLXTDyo48dC0khLz6lib5jHwoAojNkUtvsUxvbmMH0igvfXNLSot1GRN35zAUGAbr O6rIrJx86L/NiCeEC7QTlDYblXn1HTWiAbH5E/vZ3DvLwcJ0cAoPZPNDP9l1IcJSCHld RNhXQFsxdmCGv4wGQkZ1KNUdb4430SrwGw6cgKWtvnmYcqm8Woes7nvXWduComsyXYx9 yjrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=yRW3k8t/OUrpGW8c3MLXqEButobcfnyhEWJHhSJlBTM=; b=KKjx+shpFv2DdVR6y+O1F2J56jlxx1BQN8wYkTLgW+d0n3LXpyyERxvXZoAqwPuSOW J993zZvBu4wwDr5VKtMUx/8mpbbVEnySe5MOQX8i48fqCuMsu98DsfLAKYWvWuE6GSay 0JzidCtoGReRJoRZWECmrwliIoTG6rCxsT13ltxMyWcHbM+Mezxsx2bc6IOu3+oFfz1S xxulkEyw9ev5O4nTTJtJ+LUwlLrVIOQzjCSSrdJlZrtS7SYA6xFTvJMlJhZHja1WxzeE zYtx3tqTseBiOHOwkMHdUKnjrpzxk6AcQO9KBGBUrjh+7HueMub/D5T95d5qHZ8l1Wkr tZBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NEGAHRpR; dkim=neutral (no key) header.i=@linutronix.de; 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 oi22si246705ejb.690.2020.11.24.16.05.44; Tue, 24 Nov 2020 16:06:07 -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=NEGAHRpR; dkim=neutral (no key) header.i=@linutronix.de; 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 S2388935AbgKXWfh (ORCPT + 99 others); Tue, 24 Nov 2020 17:35:37 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:46126 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730041AbgKXWfg (ORCPT ); Tue, 24 Nov 2020 17:35:36 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606257334; 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=yRW3k8t/OUrpGW8c3MLXqEButobcfnyhEWJHhSJlBTM=; b=NEGAHRpROMitKtzsGdA4PHsRgObzoo/ECbp8sJI9Rgi7HN6KjVduYw/5NeXqp93ESkGzKJ PNFgwDL3avIq+ioErc1CzmZvwYcLKGFecXoXjUdzmb8wYNtTnLMSx8yVa/w4alNdnrzSYE nWDWvYMi8DQfRoa3+lSekcQ0eH/UvJHtdsaK6E5SzUki5v1D5Bck0u/Vw3MhdGnL3Hd9fI LO7uL1LV1HoWOFHUn5bqDTYRCsGkqELO/y8ogwMUU9rcsvYJDD4eHsY+L+Vy4xetWbXtzu UIMgaDCA+l49jKid+eKARRChyBgEmS3Ho66K879x+36wUwkCdl72cqFF3W5qPQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606257334; 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=yRW3k8t/OUrpGW8c3MLXqEButobcfnyhEWJHhSJlBTM=; b=ZMUN54SZWoEE76hGf7VoMwUkXmS7N4Qtkcet9EDtRmSHFQvarvQMcXjAwEc23CvP3GagUJ IrrQoVVzEFQgdWDQ== To: Laurent Vivier , linux-kernel@vger.kernel.org Cc: Paul Mackerras , Benjamin Herrenschmidt , Michael Ellerman , linux-block@vger.kernel.org, "Michael S . Tsirkin" , Marc Zyngier , linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, Christoph Hellwig , Laurent Vivier Subject: Re: [PATCH 2/2] powerpc/pseries: pass MSI affinity to irq_create_mapping() In-Reply-To: <20201124200308.1110744-3-lvivier@redhat.com> References: <20201124200308.1110744-1-lvivier@redhat.com> <20201124200308.1110744-3-lvivier@redhat.com> Date: Tue, 24 Nov 2020 23:35:34 +0100 Message-ID: <87eekil6x5.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 24 2020 at 21:03, Laurent Vivier wrote: > With virtio multiqueue, normally each queue IRQ is mapped to a CPU. > > This problem cannot be shown on x86_64 for two reasons: There is only _ONE_ reason why this is not a problem on x86. x86 uses the generic PCI/MSI domain which supports this out of the box. > - the call path traverses arch_setup_msi_irqs() that is arch specific: > > virtscsi_probe() > virtscsi_init() > vp_modern_find_vqs() > vp_find_vqs() > vp_find_vqs_msix() > pci_alloc_irq_vectors_affinity() > __pci_enable_msix_range() > pci_msi_setup_msi_irqs() > arch_setup_msi_irqs() > rtas_setup_msi_irqs() This is a problem on _all_ variants of PPC MSI providers, not only for pseries. It's not restricted to virtscsi devices either, that's just the device which made you discover this. Thanks, tglx