[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20141211234936.GB9439@redhat.com>
Date: Fri, 12 Dec 2014 01:49:36 +0200
From: "Michael S. Tsirkin" <mst@...hat.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: linux-kernel@...r.kernel.org,
Rusty Russell <rusty@...tcorp.com.au>,
virtualization@...ts.linux-foundation.org,
cornelia.huck@...ibm.com, linux-arch@...r.kernel.org
Subject: Re: [PATCH RFC 3/5] pci: add pci_iomap_range
On Thu, Dec 11, 2014 at 11:27:54PM +0100, Arnd Bergmann wrote:
> On Thursday 11 December 2014 21:37:34 Michael S. Tsirkin wrote:
> > if (flags & IORESOURCE_MEM) {
> > - if (flags & IORESOURCE_CACHEABLE)
> > + if (!force_nocache && (flags & IORESOURCE_CACHEABLE))
> > return ioremap(start, len);
> > return ioremap_nocache(start, len);
> > }
> >
>
> ioremap is the same as ioremap_nocache, so this doesn't really make any
> sense. IORESOURCE_CACHEABLE is practically only set for ROM bars, which
> we rarely map.
>
> Arnd
Hmm I think you are right.
It's an old patch - I think at one point in time we did set it when we
now set IORESOURCE_PREFETCH.
I'll drop this parameter.
--
MST
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists