Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753752AbbHaPXh (ORCPT ); Mon, 31 Aug 2015 11:23:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38216 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753721AbbHaPXe (ORCPT ); Mon, 31 Aug 2015 11:23:34 -0400 Date: Mon, 31 Aug 2015 11:23:31 -0400 From: Peter Jones To: Matt Fleming Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, Matt Fleming , Pete Hawkins , Matthew Garrett , Chad Page Subject: Re: [PATCH] efifb: Add support for 64-bit frame buffer addresses Message-ID: <20150831152330.GC17921@redhat.com> References: <1440763939-17027-1-git-send-email-matt@codeblueprint.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1440763939-17027-1-git-send-email-matt@codeblueprint.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1689 Lines: 41 On Fri, Aug 28, 2015 at 01:12:19PM +0100, Matt Fleming wrote: > From: Matt Fleming > > The EFI Graphics Output Protocol uses 64-bit frame buffer addresses > but these get truncated to 32-bit by the EFI boot stub when storing > the address in the 'lfb_base' field of 'struct screen_info'. > > Add a 'ext_lfb_base' field for the upper 32-bits of the frame buffer > address and set VIDEO_TYPE_CAPABILITY_64BIT_BASE when the field is > useable. > > It turns out that the reason no one has required this support so far > is that there's actually code in tianocore to "downgrade" PCI > resources that have option ROMs and 64-bit BARS from 64-bit to 32-bit > to cope with legacy option ROMs that can't handle 64-bit addresses. > The upshot is that basically all GOP devices in the wild use a 32-bit > frame buffer address. > > Still, it is possible to build firmware that uses a full 64-bit GOP > frame buffer address. Chad did, which led to him reporting this issue. > > Add support in anticipation of GOP devices using 64-bit addresses more > widely, and so that efifb works out of the box when that happens. > > Reported-by: Chad Page > Cc: Pete Hawkins > Cc: Peter Jones > Cc: Matthew Garrett > Signed-off-by: Matt Fleming Looks good to me. Acked-by: Peter Jones -- Peter -- 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/