Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8125913imu; Tue, 4 Dec 2018 03:27:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/XfXkr3DoJboGfHwbKAHiF9WOJkrVP8PJ0oLI1OqWnxc1sj6A213H2NgVW/ToUdNcaA7sVZ X-Received: by 2002:a63:e055:: with SMTP id n21mr16609130pgj.397.1543922828876; Tue, 04 Dec 2018 03:27:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543922828; cv=none; d=google.com; s=arc-20160816; b=c4jteE63nx3L7Gzg6whrH8+WQeAj6IrVAxO4s0MoJtyMAAiSsREsIbjPLXEZJLhTAA 9U4nlxZsmezt3L85E75QZtLtQr6jNzWXvutQVlso/TpFvSfSJCHvLM8Kvr8M9uNVbwJl XY4Uir0GNR56QlnkHEjoUfVoZZLlPcrOYiqxmeZaSziOEuitemNY0yB2KOFqGE19v6na pZ7f5FEOULUA1gwv8XM2iX4aBuEwz3I0oN+yUMZXLJKUcx+j6V5XWx9bzexy9Z0eZSdz tQRlBHF03b33bqGhyXGMj9DKD7cpxWZaGboeZHkm5x61AgesNoZxVJnayFf8CxHVPufD uQPQ== 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=6Ju1ytzuQE80vkx3O9uznDCYJ/r8aqxKtnW+nZDEuV4=; b=I9XxucRKrG8gIYp9CFa1PFIqmLr4c/vqNGuDo9KGmRnpZrQvKq8CitNdmFNpS1nV6F cS6x9qUYK8LyKMmAdbwlK10G7hHqmN9aDDg++HSi5PZCI+6aCan7RvvkWEnhO1zbdR1k CngNfca/Gs2c8wJrZSGQFJ/dy5OH+eVpKGPdYpgxxCJ4pRT+7b/Vml2+sq1VOPkjlNJ1 jl7Iaedwzz+ZesVoiH635teJjRwAp+cq/Jk5OUkkHQNK41Gf9SpwlIx+DN724u3ofmPf f8ROoC1CxVDPbfq59Y0nA6yCZp5FXe93Nvo2iUWgBlMg4W/dBHrPc/S82LZ9Vyx5nIC3 lqdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LhYvNkdQ; 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 b17si14067299pgk.581.2018.12.04.03.26.53; Tue, 04 Dec 2018 03:27:08 -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=LhYvNkdQ; 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 S1726588AbeLDK76 (ORCPT + 99 others); Tue, 4 Dec 2018 05:59:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:44852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727199AbeLDK7u (ORCPT ); Tue, 4 Dec 2018 05:59:50 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 519C02087F; Tue, 4 Dec 2018 10:59:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543921189; bh=xJmij/BOGdosJF+E91ArAPFKReycci6zNtRRW9AeNLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LhYvNkdQg+b4ufvrg9ls4Ia0dBbzlq2d3Z2OZ9y9JOPzUBEFjYWJW4gxKdGy7PMH1 PMhwcASVjm9fVHFii1ASwqw+ZV5ISTd8cY+h2XMVDjDEpIJnCCfJm04JDUeUK1qBIZ SYcRMunmarOacWjsSD+huxthBkeoUPkZuZ6721B8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gustavo Pimentel , Lorenzo Pieralisi Subject: [PATCH 4.19 080/139] PCI: dwc: Fix MSI-X EP framework address calculation bug Date: Tue, 4 Dec 2018 11:49:21 +0100 Message-Id: <20181204103653.461182618@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181204103649.950154335@linuxfoundation.org> References: <20181204103649.950154335@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gustavo Pimentel commit 15cb127e3c8f6232096d5dba6a5b4046bc292d70 upstream. Fix an error caused by 3-bit right rotation on offset address calculation of MSI-X table in dw_pcie_ep_raise_msix_irq(). The initial testing code was setting by default the offset address of MSI-X table to zero, so that even with a 3-bit right rotation the computed result would still be zero and valid, therefore this bug went unnoticed. Fixes: beb4641a787d ("PCI: dwc: Add MSI-X callbacks handler") Signed-off-by: Gustavo Pimentel [lorenzo.pieralisi@arm.com: updated commit log] Signed-off-by: Lorenzo Pieralisi Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/dwc/pcie-designware-ep.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/pci/controller/dwc/pcie-designware-ep.c +++ b/drivers/pci/controller/dwc/pcie-designware-ep.c @@ -440,7 +440,6 @@ int dw_pcie_ep_raise_msix_irq(struct dw_ tbl_offset = dw_pcie_readl_dbi(pci, reg); bir = (tbl_offset & PCI_MSIX_TABLE_BIR); tbl_offset &= PCI_MSIX_TABLE_OFFSET; - tbl_offset >>= 3; reg = PCI_BASE_ADDRESS_0 + (4 * bir); bar_addr_upper = 0;