Re: [PATCH] video: fbdev: atyfb: only use ioremap_uc() on i386 and ia64
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Daniel Vetter <daniel.vetter@xxxxxxxx>
- Subject: Re: [PATCH] video: fbdev: atyfb: only use ioremap_uc() on i386 and ia64
- From: Christoph Hellwig <hch@xxxxxx>
- Date: Tue, 12 Nov 2019 15:06:31 +0100
- Cc: Christoph Hellwig <hch@xxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx>, X86 ML <x86@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx>, Souptick Joarder <jrdr.linux@xxxxxxxxx>, dri-devel <dri-devel@xxxxxxxxxxxxxxxxxxxxx>, Linux Fbdev development list <linux-fbdev@xxxxxxxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Luis Chamberlain <mcgrof@xxxxxxxxxx>, Tuowen Zhao <ztuowen@xxxxxxxxx>, Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
- In-reply-to: <CAKMK7uEEz1n+zuTs29rbPHU74Dspaib=prpMge63L_-rUk_o4A@mail.gmail.com>
- References: <20191111192258.2234502-1-arnd@arndb.de> <20191112105507.GA7122@lst.de> <CAKMK7uEEz1n+zuTs29rbPHU74Dspaib=prpMge63L_-rUk_o4A@mail.gmail.com>
- User-agent: Mutt/1.5.17 (2007-11-01)
On Tue, Nov 12, 2019 at 02:04:16PM +0100, Daniel Vetter wrote:
> Wut ... Maybe I'm missing something, but from how we use mtrr in other
> gpu drivers it's a) either you use MTRR because that's all you got or
> b) you use pat. Mixing both sounds like a pretty bad idea, since if
> you need MTRR for performance (because you dont have PAT) then you
> can't fix the wc with the PAT-based ioremap_uc. And if you have PAT,
> then you don't really need an MTRR to get wc.
>
> So I'd revert this patch from Luis and ...
Sounds great to me..
> ... apply this one. Since the same reasoning should apply to anything
> that's running on any cpu with PAT.
Can you take a look at "mfd: intel-lpss: Use devm_ioremap_uc for MMIO"
in linux-next, which also looks rather fishy to me? Can't we use
the MTRR APIs to override the broken BIOS MTRR setup there as well?
With that we could kill ioremap_uc entirely.
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]