Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4486432ybx; Mon, 4 Nov 2019 14:13:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzXAcKDWAO2O/HB0Ai3xIRereLDLCx9idruUoRoxKNMffe+4cJDzhn45hKG6hY38VqlokwP X-Received: by 2002:a17:906:86d5:: with SMTP id j21mr25975941ejy.219.1572905621124; Mon, 04 Nov 2019 14:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572905621; cv=none; d=google.com; s=arc-20160816; b=L3Ed2iocVKFjsvdk/2hWKhFVe9GgQ3h/k8LJCdG+JuTNJLAgzJFfOPJzi+f8TseSGP FAMkLAAuLC5ssK0eDDTGo+9E4ohII8wGEkES1ToMXD714sP8Ywgs4EUOWBmi3XTiUg7O wdHBZrDf5ydccBJTHX/JMZd273SGAFvez7WwImsJx8/Pmtt80eGYxXit11I+G0OQTFwg zJfImIScJjLVICsnVebIUpitnjL/kf/aENfYjNoNyUHfW49JVaS4UVwZBFQY8/1PfVVx cc1tfHyRUWczkzgHYyHglb2nA1FVGqlp5wxCPWTubuuJ8kfMTYuX3JOqml6CiWPJ/Ye6 QLPA== 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=W934SG+o6a7eGitNCLywaXnWUtORSPWMLGwtJG0ZW+4=; b=xhUD5sqcMJDwbaKiodDoCVCzsoW1hgTKy4GgN05sPNdTMc3ilRLKhU95fW1mqFuOsz Y6Et+H7tfd9LkYx1jsuZ1QmICXyzo+ld0isKbClPEOyhrAAiVIjMCv7denCXe6eucgX4 /ZWafIl69xTmKk5Unv1FtHFE4eHOh8HwxZ/kmb4HByW5qaYAvihT+kGpLWLmg80e2WI+ pGEu5B92AHjOQPI5UHUZjiWimLq17792lnijaKQbF4M09WppUMfL8cFeeICjNfTD+aM4 o8+2zdj6ndd4fuddCFFpR9ffeXXqffHGGLlcC2RgeL/M3+AASFv57G/G4Hp/H9Jt562h QSsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jv4tVeTQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cc4si7553220edb.237.2019.11.04.14.13.17; Mon, 04 Nov 2019 14:13:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jv4tVeTQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390186AbfKDWKh (ORCPT + 99 others); Mon, 4 Nov 2019 17:10:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:43782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390552AbfKDWKe (ORCPT ); Mon, 4 Nov 2019 17:10:34 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (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 B62AB20650; Mon, 4 Nov 2019 22:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572905433; bh=XRJhMZLFukaSWSE6KfLdlTZkNQnshra3dKvIQaYoG6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jv4tVeTQ0KO1kVKNeYWt2LUkpzigS3dnDtAqh6j0JfpMvR0XLhLGwRQxFUW1dp8E+ OEqxgOPiTH6Zp+ZvNQcBrqcD74rqcRmIpc17T9PgnqafyyMy+1Wm9lGC3GEIrBZD3R iEPB9ofBxBdXnw9d83g9DrGvJzgqj8iilSi/zwzU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sebastian Ott , Vasily Gorbik , Sasha Levin , Alexander Schmidt Subject: [PATCH 5.3 091/163] s390/pci: fix MSI message data Date: Mon, 4 Nov 2019 22:44:41 +0100 Message-Id: <20191104212146.786936467@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212140.046021995@linuxfoundation.org> References: <20191104212140.046021995@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: Sebastian Ott [ Upstream commit cf2c4a3f35b75d38cebb4afbd578f1594f068d1e ] After recent changes the MSI message data needs to specify the function-relative IRQ number. Reported-and-tested-by: Alexander Schmidt Signed-off-by: Sebastian Ott Signed-off-by: Vasily Gorbik Signed-off-by: Sasha Levin --- arch/s390/pci/pci_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/pci/pci_irq.c b/arch/s390/pci/pci_irq.c index d80616ae8dd8a..fbe97ab2e2286 100644 --- a/arch/s390/pci/pci_irq.c +++ b/arch/s390/pci/pci_irq.c @@ -284,7 +284,7 @@ int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) return rc; irq_set_chip_and_handler(irq, &zpci_irq_chip, handle_percpu_irq); - msg.data = hwirq; + msg.data = hwirq - bit; if (irq_delivery == DIRECTED) { msg.address_lo = zdev->msi_addr & 0xff0000ff; msg.address_lo |= msi->affinity ? -- 2.20.1