Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp691914ybz; Fri, 1 May 2020 06:55:20 -0700 (PDT) X-Google-Smtp-Source: APiQypLoVfgGBg2CgyZD6Qx0CfmYxo6JH5xRUeQkBKQ3dAqCnarDr1A6UzhRDdWDdjTHcDpX1cjY X-Received: by 2002:a05:6402:3076:: with SMTP id bs22mr3766112edb.112.1588341320001; Fri, 01 May 2020 06:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588341319; cv=none; d=google.com; s=arc-20160816; b=CsLuQJD1JI4W9JnEdWdHy2sqmnoqGqV5TRtogXiy4hkStMTDG3soBWFL3VMb5gvIiB qExlbo1fdYbdlbug1H/+x6Ob2Ra2/Yqcnol82idsAgwF7jOAE5cTrOrRUnHop7xvip5k stf1H4DWzCeIqGmQyIOPdnLIKHc28DIQKRXiV1mXXImssiUm6NDxapbEIm1BHMUVK6SO m9q3duWnqdEOHp6Gx+q/rhIvD3VHllSn/PyT0O/v/hKi8/A8Cdv6o9phh37YCS8XHNHg XYJKul5qsnCFedieXpD24i6sPd/pIhT9+gF/s053c53OQ12JCtN4+B0gZx6lHTqwsgd7 5r8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6+on8IidZRy+ttNGqG8m/woihdySwVWQliDYcRntEpM=; b=ut0DVSSbSAqF6o1LlmU9lhC/q681EvstY1vAzQydt3N18p99ILXBagG3xzN6uPRU3w 9/Gp+tXdvyHb+w+Qn64ZT0yS+4C0mNlVD6TE6zgHBO8UHH3Yp8fRdUTsXzPyWa0jsEfx c51lB4stQ9Y5X4mXqr6Lf0ZGHzofYgfmoALE2vX09TLt7yciZ18dkqnsp6sxCSAOXgDR r0QNM6m1TUqO8d20Ty6vZgB2CE1JeCqDOSGxuvBBfcoSVXxaYeTdy2YcijcR/PmBptWC 0pDDnBGxESREtzrsIGJD3iqmxygWIXPoSwm+C9+HJ+p6VWkCkB0d54sd+5e5+tO761yY jFdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gdJbZQTd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si1743868edo.531.2020.05.01.06.54.56; Fri, 01 May 2020 06:55:19 -0700 (PDT) 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=@kernel.org header.s=default header.b=gdJbZQTd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731135AbgEANjE (ORCPT + 99 others); Fri, 1 May 2020 09:39:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:38630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731130AbgEANjC (ORCPT ); Fri, 1 May 2020 09:39:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D820205C9; Fri, 1 May 2020 13:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588340341; bh=4hZvBE6xsC/iubCP5MVXG8dhgb8LLPoFp3HBF0HbDCk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gdJbZQTdB7nH4qkdKKtEXe/pvcd3HB3/fr360PnwGcCbGiPqtwR+PEs8Z5ocR0BXe 3qOp+Lsi2xnDoyReGpdN8hE8TdlVWzIRAgWpHZtfEotp3DcQv8+O4DQ5f36W48KY5Y PPGGhSxPKd/Dn6BzmY57G1snshZ5s6jmoiWmmj+4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Schmidt , Niklas Schnelle , Vasily Gorbik Subject: [PATCH 5.4 39/83] s390/pci: do not set affinity for floating irqs Date: Fri, 1 May 2020 15:23:18 +0200 Message-Id: <20200501131535.610985340@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200501131524.004332640@linuxfoundation.org> References: <20200501131524.004332640@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Niklas Schnelle commit 86dbf32da150339ca81509fa2eb84c814b55258b upstream. with the introduction of CPU directed interrupts the kernel parameter pci=force_floating was introduced to fall back to the previous behavior using floating irqs. However we were still setting the affinity in that case, both in __irq_alloc_descs() and via the irq_set_affinity callback in struct irq_chip. For the former only set the affinity in the directed case. The latter is explicitly set in zpci_directed_irq_init() so we can just leave it unset for the floating case. Fixes: e979ce7bced2 ("s390/pci: provide support for CPU directed interrupts") Co-developed-by: Alexander Schmidt Signed-off-by: Alexander Schmidt Signed-off-by: Niklas Schnelle Signed-off-by: Vasily Gorbik Signed-off-by: Greg Kroah-Hartman --- arch/s390/pci/pci_irq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/arch/s390/pci/pci_irq.c +++ b/arch/s390/pci/pci_irq.c @@ -115,7 +115,6 @@ static struct irq_chip zpci_irq_chip = { .name = "PCI-MSI", .irq_unmask = pci_msi_unmask_irq, .irq_mask = pci_msi_mask_irq, - .irq_set_affinity = zpci_set_irq_affinity, }; static void zpci_handle_cpu_local_irq(bool rescan) @@ -276,7 +275,9 @@ int arch_setup_msi_irqs(struct pci_dev * rc = -EIO; if (hwirq - bit >= msi_vecs) break; - irq = __irq_alloc_descs(-1, 0, 1, 0, THIS_MODULE, msi->affinity); + irq = __irq_alloc_descs(-1, 0, 1, 0, THIS_MODULE, + (irq_delivery == DIRECTED) ? + msi->affinity : NULL); if (irq < 0) return -ENOMEM; rc = irq_set_msi_desc(irq, msi);