Re: [PATCH rfc] vfio-pci: Allow write combining

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

 



On Fri, Aug 02, 2024 at 08:24:49AM -0600, Keith Busch wrote:
> On Thu, Aug 01, 2024 at 11:33:44AM -0600, Alex Williamson wrote:
> > On Thu, 1 Aug 2024 14:13:55 -0300
> > Jason Gunthorpe <jgg@xxxxxxxx> wrote:
> > 
> > > On Thu, Aug 01, 2024 at 10:52:18AM -0600, Alex Williamson wrote:
> >  
> > > > We'd populate these new regions only for BARs that support prefetch and
> > > > mmap   
> > > 
> > > That's not the point, prefetch has nothing to do with write combining.
> > 
> > I was following the original proposal in this thread that added a
> > prefetch flag to REGION_INFO and allowed enabling WC only for
> > IORESOURCE_PREFETCH.
> 
> Which itself follows the existing pattern from
> pci_create_resource_files(), which creates a write combine
> resource<X>_wc file only when IORESOURCE_PREFETCH is set. But yeah,
> prefetch isn't necessary for wc, but it seems to indicate it's safe.

Yes, I know, that code isn't right either... It seems to be the root
of this odd "prefetch and WC are related" idea.

Jason




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux