[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220825185026.3816331-1-willmcvicker@google.com>
Date: Thu, 25 Aug 2022 18:50:23 +0000
From: Will McVicker <willmcvicker@...gle.com>
To: Jingoo Han <jingoohan1@...il.com>,
Gustavo Pimentel <gustavo.pimentel@...opsys.com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Rob Herring <robh@...nel.org>,
"Krzysztof WilczyĆski" <kw@...ux.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Will McVicker <willmcvicker@...gle.com>
Cc: kernel-team@...roid.com, Vidya Sagar <vidyas@...dia.com>,
Christoph Hellwig <hch@...radead.org>,
Robin Murphy <robin.murphy@....com>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v5 0/2] PCI: dwc: Add support for 64-bit MSI target addresses
Hi All,
I have updated the second patch to first try allocating the DMA buffer
with a 32-bit mask. If that fails and the host supports a 64-bit msi_msg
buffer, then the driver will retry the allocation with a 64-bit DMA mask.
I rebased the series and tested with a Pixel 6 on 6.0-rc1
(android-mainline) and a db845c with 5.15. Thanks for the reviews!
Regards,
Will
Will McVicker (2):
PCI: dwc: Drop dependency on ZONE_DMA32
PCI: dwc: Add support for 64-bit MSI target address
v5:
* Updated patch 2/2 to first try with a 32-bit DMA mask. On failure,
retry with a 64-bit mask if supported.
v4:
* Updated commit descriptions.
* Renamed msi_64b -> msi_64bit.
* Dropped msi_64bit ternary use.
* Dropped export of dw_pcie_msi_capabilities.
v3:
* Switched to a managed DMA allocation.
* Simplified the DMA allocation cleanup.
* Dropped msi_page from struct dw_pcie_rp.
* Allocating a u64 instead of a full page.
v2:
* Fixed build error caught by kernel test robot
* Fixed error handling reported by Isaac Manjarres
.../pci/controller/dwc/pcie-designware-host.c | 54 ++++++++++---------
drivers/pci/controller/dwc/pcie-designware.c | 8 +++
drivers/pci/controller/dwc/pcie-designware.h | 2 +-
3 files changed, 39 insertions(+), 25 deletions(-)
base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868
--
2.37.2.672.g94769d06f0-goog
Powered by blists - more mailing lists