Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH RESEND 0/7] iommu: Permit modular builds of io-pgtable drivers
       [not found] <1609832205-10055-1-git-send-email-isaacm@codeaurora.org>
@ 2021-01-06 12:34 ` Will Deacon
  0 siblings, 0 replies; only message in thread
From: Will Deacon @ 2021-01-06 12:34 UTC (permalink / raw)
  To: Isaac J. Manjarres
  Cc: kernel-team, tomeu.vizoso, pdaly, airlied, robin.murphy, joro,
	iommu, dri-devel, steven.price, robdclark, alyssa.rosenzweig,
	daniel, freedreno, sean, linux-arm-kernel, pratikp

On Mon, Jan 04, 2021 at 11:36:38PM -0800, Isaac J. Manjarres wrote:
> The goal of the Generic Kernel Image (GKI) effort is to have a common
> kernel image that works across multiple Android devices. This involves
> generating a kernel image that has core features integrated into it,
> while SoC specific functionality can be added to the kernel for the
> device as a module.
> 
> Along with modularizing IOMMU drivers, this also means building the
> io-pgtable code as modules, which allows for SoC vendors to only include
> the io-pgtable implementations that they use. For example, GKI for arm64
> must include support for both the IOMMU ARM LPAE/V7S formats at the
> moment. Having the code for both formats as modules allows SoC vendors
> to only provide the page table format that they use, along with their
> IOMMU driver.

Why is this desirable for upstream? This code isn't especially large, and
the formats we support are largely architectural, meaning that they are
shared between different IOMMU drivers. I think that making this modular
just means that out-of-tree modifications are likely to generate page-tables
which are specific to a particular IOMMU, and lead to horrible problems
(crashes and data corruption) if another IOMMU driver tries to use them.

Please can you upstream whatever changes you want to make instead?

Will

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-06 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1609832205-10055-1-git-send-email-isaacm@codeaurora.org>
2021-01-06 12:34 ` [PATCH RESEND 0/7] iommu: Permit modular builds of io-pgtable drivers Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox