From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Ferre Date: Wed, 22 Apr 2015 07:34:02 +0000 Subject: Re: [PATCH v3 16/17] video: fbdev: atmel_lcdfb: use ioremap_wc() for framebuffer Message-Id: <55374EEA.1050909@atmel.com> List-Id: References: <1429647398-16983-1-git-send-email-mcgrof@do-not-panic.com> <1429647398-16983-17-git-send-email-mcgrof@do-not-panic.com> In-Reply-To: <1429647398-16983-17-git-send-email-mcgrof@do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: cocci@systeme.lip6.fr Le 21/04/2015 22:16, Luis R. Rodriguez a =E9crit : > From: "Luis R. Rodriguez" >=20 > The driver doesn't use mtrr_add() or arch_phys_wc_add() but > since we know the framebuffer is isolated already on an > ioremap() we can take advantage of write combining for > performance where possible. >=20 > In this case there are a few motivations for this: >=20 > a) Take advantage of PAT when available >=20 > b) Help with the goal of eventually using _PAGE_CACHE_UC over > _PAGE_CACHE_UC_MINUS on x86 on ioremap_nocache() (see commit > de33c442e titled "x86 PAT: fix performance drop for glx, > use UC minus for ioremap(), ioremap_nocache() and > pci_mmap_page_range()") >=20 > Cc: Nicolas Ferre Seems okay: Acked-by: Nicolas Ferre Thanks for having taking care of atmel_lcdfb driver. Bye, > Cc: Suresh Siddha > Cc: Ingo Molnar > Cc: Thomas Gleixner > Cc: Juergen Gross > Cc: Daniel Vetter > Cc: Andy Lutomirski > Cc: Dave Airlie > Cc: Antonino Daplas > Cc: Jean-Christophe Plagniol-Villard > Cc: Tomi Valkeinen > Cc: linux-fbdev@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Luis R. Rodriguez > --- > drivers/video/fbdev/atmel_lcdfb.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/video/fbdev/atmel_lcdfb.c b/drivers/video/fbdev/atme= l_lcdfb.c > index 94a8d04..abadc49 100644 > --- a/drivers/video/fbdev/atmel_lcdfb.c > +++ b/drivers/video/fbdev/atmel_lcdfb.c > @@ -1266,7 +1266,8 @@ static int __init atmel_lcdfb_probe(struct platform= _device *pdev) > goto stop_clk; > } > =20 > - info->screen_base =3D ioremap(info->fix.smem_start, info->fix.smem_len= ); > + info->screen_base =3D ioremap_wc(info->fix.smem_start, > + info->fix.smem_len); > if (!info->screen_base) { > ret =3D -ENOMEM; > goto release_intmem; >=20 --=20 Nicolas Ferre