[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190527115253.2114-1-geert+renesas@glider.be>
Date: Mon, 27 May 2019 13:52:47 +0200
From: Geert Uytterhoeven <geert+renesas@...der.be>
To: Joerg Roedel <joro@...tes.org>,
Magnus Damm <damm+renesas@...nsource.se>
Cc: Laurent Pinchart <laurent.pinchart+renesas@...asonboard.com>,
iommu@...ts.linux-foundation.org,
linux-renesas-soc@...r.kernel.org, linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert+renesas@...der.be>
Subject: [PATCH v4 0/6] iommu/ipmmu-vmsa: Suspend/resume support and assorted cleanups
Hi Jörg, Magnus,
On R-Car Gen3 systems with PSCI, PSCI may power down the SoC during
system suspend, thus losing all IOMMU state. Hence after s2ram, devices
behind an IPMMU (e.g. SATA), and configured to use it, will fail to
complete their I/O operations.
This patch series adds suspend/resume support to the Renesas IPMMU-VMSA
IOMMU driver, and performs some smaller cleanups and fixes during the
process. Most patches are fairly independent, except for patch 6/6,
which depends on patches 4/6 and 5/6.
Changes compared to v3:
- Add Reviewed-by, Tested-by.
Changes compared to v2:
- Fix sysfs path typo in patch description,
- Add Reviewed-by.
Changes compared to v1:
- Dropped "iommu/ipmmu-vmsa: Call ipmmu_ctx_write_root() instead of
open coding",
- Add Reviewed-by,
- Merge IMEAR/IMELAR,
- s/ipmmu_context_init/ipmmu_domain_setup_context/,
- Drop PSCI checks.
This has been tested on Salvator-XS with R-Car H3 ES2.0, with IPMMU
suport for SATA enabled. To play safe, the resume operation has also
been tested on R-Car M2-W.
Is there anything still blocking the integration of this patch series?
If not, please apply.
Thanks!
Geert Uytterhoeven (6):
iommu/ipmmu-vmsa: Link IOMMUs and devices in sysfs
iommu/ipmmu-vmsa: Prepare to handle 40-bit error addresses
iommu/ipmmu-vmsa: Make IPMMU_CTX_MAX unsigned
iommu/ipmmu-vmsa: Move num_utlbs to SoC-specific features
iommu/ipmmu-vmsa: Extract hardware context initialization
iommu/ipmmu-vmsa: Add suspend/resume support
drivers/iommu/ipmmu-vmsa.c | 185 +++++++++++++++++++++++++------------
1 file changed, 124 insertions(+), 61 deletions(-)
--
2.17.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists