Re: [GIT PULL 0/2] EFI fixes for v4.11

From: Bartlomiej Zolnierkiewicz
Date: Wed Apr 05 2017 - 06:14:04 EST



Hi,

On Tuesday, April 04, 2017 04:27:42 PM Ard Biesheuvel wrote:
> Hello all,
>
> Please pull these fixes for EFI framebuffer support on ARM/arm64 systems.
>
> The following changes since commit 822f5845f710e57d7e2df1fd1ee00d6e19d334fe:
>
> efi/esrt: Cleanup bad memory map log messages (2017-03-17 18:53:12 +0000)
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-urgent
>
> for you to fetch changes up to e73c2811538bd36ec1340d01bafdc080af31914e:
>
> efifb: Avoid reconfiguration of BAR that covers the framebuffer (2017-04-04 15:56:43 +0100)
>
> ----------------------------------------------------------------
> Two fixes related to the EFI framebuffer driver:
> - Ignore Graphics Output Protocol (GOP) implementations that are marked as
> BLT-only -- the framebuffer base address is invalid in this case, and the
> Blt() method is not accessible to the kernel.
> - If the GOP framebuffer base address coincides with a memory BAR of a PCI
> device that has memory decoding enabled, claim the memory resource so that
> the PCI core will not attempt to move it later on.
>
> ----------------------------------------------------------------
> Ard Biesheuvel (1):
> efifb: Avoid reconfiguration of BAR that covers the framebuffer

This patch breaks build if PCI support is not enabled:

drivers/video/fbdev/efifb.c: In function âclaim_efifb_barâ:
drivers/video/fbdev/efifb.c:386:2: error: implicit declaration of function âpci_claim_resourceâ [-Werror=implicit-function-declaration]

(x86 ifdefs are not enough, the patch should also check for PCI support)

Also please cc: linux-fbdev mailing list & me on fbdev related patches.

> Cohen, Eugene (1):
> efi/libstub: Skip GOP with PIXEL_BLT_ONLY format
>
> drivers/firmware/efi/libstub/gop.c | 6 ++--
> drivers/video/fbdev/efifb.c | 66 +++++++++++++++++++++++++++++++++++++-
> 2 files changed, 69 insertions(+), 3 deletions(-)

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics