Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932423AbbGHAZ0 (ORCPT ); Tue, 7 Jul 2015 20:25:26 -0400 Received: from mail-ie0-f174.google.com ([209.85.223.174]:33239 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932367AbbGHAZR (ORCPT ); Tue, 7 Jul 2015 20:25:17 -0400 MIME-Version: 1.0 In-Reply-To: References: <1435196060-27350-1-git-send-email-mcgrof@do-not-panic.com> <1435196060-27350-2-git-send-email-mcgrof@do-not-panic.com> <20150625230437.GA4362@sci.fi> <20150625231103.GB4362@sci.fi> <20150626010927.GI3005@wotan.suse.de> <20150626073028.GA14776@pd.tnic> From: "Luis R. Rodriguez" Date: Tue, 7 Jul 2015 17:24:57 -0700 X-Google-Sender-Auth: rGWqaKp0_Tg8MoXhBR4UDoej07o Message-ID: Subject: Re: [PATCH v5 1/3] video: fbdev: atyfb: clarify ioremap() base and length used To: Borislav Petkov Cc: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Andrew Morton , Ingo Molnar , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Andy Lutomirski , Tomi Valkeinen , "Michael S. Tsirkin" , Benjamin Herrenschmidt , "linux-kernel@vger.kernel.org" , linux-fbdev , "linux-pci@vger.kernel.org" , Dave Airlie , Toshi Kani , Suresh Siddha , Linus Torvalds , Thomas Gleixner , Juergen Gross , Daniel Vetter , Antonino Daplas , Jean-Christophe Plagniol-Villard , Rob Clark , Mathias Krause , Andrzej Hajda , Mel Gorman , Vlastimil Babka , Davidlohr Bueso Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1391 Lines: 37 On Thu, Jul 2, 2015 at 4:23 PM, Luis R. Rodriguez wrote: > On Fri, Jun 26, 2015 at 12:30 AM, Borislav Petkov wrote: >> On Fri, Jun 26, 2015 at 03:09:27AM +0200, Luis R. Rodriguez wrote: >>> Sure, mind this as a follow up patch if its too late? >> >> No need, you can send me an updated one - I'll replace it. > > Will do! OK the commend I'm adding: @@ -3489,6 +3489,15 @@ static int atyfb_setup_generic(struct pci_dev *pdev, struct fb_info *info, /* Map in frame buffer */ info->fix.smem_start = addr; + + /* + * The framebuffer is not always 8 MiB that's just the size of the + * PCI BAR, this is later corrected for use with write-combining + * helpers with aty_fudge_framebuffer_len() which will adjust the + * framebuffer accordingly depending on the device. We do this + * to match semantics over ioremap calls on framebuffer devices + * with with other drivers with the info->fix.smem_len. + */ info->fix.smem_len = 0x800000; info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len); Will respin. Luis -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/