Patch "PCI: rcar: Always allocate MSI addresses in 32bit space" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    PCI: rcar: Always allocate MSI addresses in 32bit space

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     pci-rcar-always-allocate-msi-addresses-in-32bit-spac.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 1506c566348ce8c92dbe7bbc3964437bffb13686
Author: Marek Vasut <marek.vasut+renesas@xxxxxxxxx>
Date:   Fri Oct 16 14:04:31 2020 +0200

    PCI: rcar: Always allocate MSI addresses in 32bit space
    
    [ Upstream commit c4e0fec2f7ee013dbf86445394ff47f719408f99 ]
    
    This fixes MSI operation on legacy PCI cards, which cannot issue 64bit MSIs.
    The R-Car controller only has one MSI trigger address instead of two, one
    for 64bit and one for 32bit MSI, set the address to 32bit PCIe space so that
    legacy PCI cards can also trigger MSIs.
    
    Link: https://lore.kernel.org/r/20201016120431.7062-1-marek.vasut@xxxxxxxxx
    Fixes: 290c1fb35860 ("PCI: rcar: Add MSI support for PCIe")
    Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
    Tested-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
    Signed-off-by: Marek Vasut <marek.vasut+renesas@xxxxxxxxx>
    Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>
    Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
    Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
    Cc: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
    Cc: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>
    Cc: Wolfram Sang <wsa@xxxxxxxxxxxxx>
    Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
    Cc: linux-renesas-soc@xxxxxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pci/controller/pcie-rcar-host.c b/drivers/pci/controller/pcie-rcar-host.c
index cdc0963f154e3..2bee09b16255d 100644
--- a/drivers/pci/controller/pcie-rcar-host.c
+++ b/drivers/pci/controller/pcie-rcar-host.c
@@ -737,7 +737,7 @@ static int rcar_pcie_enable_msi(struct rcar_pcie_host *host)
 	}
 
 	/* setup MSI data target */
-	msi->pages = __get_free_pages(GFP_KERNEL, 0);
+	msi->pages = __get_free_pages(GFP_KERNEL | GFP_DMA32, 0);
 	rcar_pcie_hw_enable_msi(host);
 
 	return 0;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux