Re: [PATCH] [EFI,PCI] Allow disabling PCI busmastering on bridges during boot
From: Andy Lutomirski
Date: Wed Dec 04 2019 - 14:50:48 EST
On Tue, Dec 3, 2019 at 11:41 AM Matthew Garrett <mjg59@xxxxxxxxxx> wrote:
>
> On Tue, Dec 3, 2019 at 7:30 AM Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
>
> > Would a similar patch apply to non-EFI boot? That is, in a BIOS boot,
> > is busmastering on when the kernel is loaded?
>
> It's only relevant where firmware configures the IOMMU but then
> removes that configuration before handing control to the OS. I'm not
> aware of that happening anywhere other than EFI.
Wouldn't it also be applicable in the much simpler case where the
firmware hands over control with no IOMMU configured but also with the
busmastering bit cleared. Does firmware do this? Does the kernel
currently configure the iOMMU before enabling busmastering?
--Andy