* [GIT PULL 0/3] EFI urgent fixes
@ 2016-05-03 19:29 Matt Fleming
2016-05-03 19:29 ` [PATCH 1/3] MAINTAINERS: Remove asterisk from EFI directory names Matt Fleming
2016-05-03 19:29 ` [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check Matt Fleming
0 siblings, 2 replies; 9+ messages in thread
From: Matt Fleming @ 2016-05-03 19:29 UTC (permalink / raw)
To: Ingo Molnar, Thomas Gleixner, H . Peter Anvin
Cc: Matt Fleming, Ard Biesheuvel, linux-kernel, linux-efi,
Catalin Marinas, David Herrmann, Josh Boyer, Josh Triplett,
Mark Rutland, Môshe van der Sterre, Peter Jones, stable,
Tomi Valkeinen, Wang YanQing
Folks, here are a few small fixes. One from Josh to stop the ACPI BGRT
driver wrecking the splash screen even though the "quiet" kernel
parameter is passed, another to fix sysfb_efi on a ThinkPad E550, and
one to MAINTAINERS so that get_maintainer.pl finds the EFI entry for
all subdirectores of drivers/firmware/efi/.
The following changes since commit 04974df8049fc4240d22759a91e035082ccd18b4:
Linux 4.6-rc6 (2016-05-01 15:52:31 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git tags/efi-urgent
for you to fetch changes up to c255f4fb93d2d92527ede3f57f90b4eb1698bbec:
x86/efi-bgrt: Switch all pr_err() to pr_notice() for invalid BGRT (2016-05-03 20:02:25 +0100)
----------------------------------------------------------------
* Fix sysfb_efi to detect BARs starting at 0x0, which otherwise makes
video=efifb not work on some the ThinkPad E550 - Wang YanQing
* Update the MAINTAINERS entry for EFI by removing the trailing
asterisk characters which was intended to denote "all
subdirectories" but which breaks get_maintainer.pl - Matt Fleming
* Convert ACPI BGRT driver messages from pr_err() to pr_notice() to
avoid spewing messages all over the display and making it
impossible for users to have a pretty boot experience - Josh Boyer
----------------------------------------------------------------
Josh Boyer (1):
x86/efi-bgrt: Switch all pr_err() to pr_notice() for invalid BGRT
Matt Fleming (1):
MAINTAINERS: Remove asterisk from EFI directory names
Wang YanQing (1):
x86/sysfb_efi: Fix valid BAR address range check
MAINTAINERS | 4 ++--
arch/x86/kernel/sysfb_efi.c | 14 ++++++++++++--
arch/x86/platform/efi/efi-bgrt.c | 18 +++++++++---------
3 files changed, 23 insertions(+), 13 deletions(-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/3] MAINTAINERS: Remove asterisk from EFI directory names
2016-05-03 19:29 [GIT PULL 0/3] EFI urgent fixes Matt Fleming
@ 2016-05-03 19:29 ` Matt Fleming
2016-05-04 7:14 ` [tip:efi/urgent] " tip-bot for Matt Fleming
2016-05-03 19:29 ` [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check Matt Fleming
1 sibling, 1 reply; 9+ messages in thread
From: Matt Fleming @ 2016-05-03 19:29 UTC (permalink / raw)
To: Ingo Molnar, Thomas Gleixner, H . Peter Anvin
Cc: Matt Fleming, Ard Biesheuvel, linux-kernel, linux-efi,
Catalin Marinas, Mark Rutland, stable
Mark reported that having asterisks on the end of directory names
confuses get_maintainer.pl when it encounters subdirectories, and that
my name does not appear when run on drivers/firmware/efi/libstub.
Reported-by: Mark Rutland <mark.rutland@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
---
MAINTAINERS | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 42e65d128d01..4dca3b3895ba 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -4223,8 +4223,8 @@ F: Documentation/efi-stub.txt
F: arch/ia64/kernel/efi.c
F: arch/x86/boot/compressed/eboot.[ch]
F: arch/x86/include/asm/efi.h
-F: arch/x86/platform/efi/*
-F: drivers/firmware/efi/*
+F: arch/x86/platform/efi/
+F: drivers/firmware/efi/
F: include/linux/efi*.h
EFI VARIABLE FILESYSTEM
--
2.7.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check
2016-05-03 19:29 [GIT PULL 0/3] EFI urgent fixes Matt Fleming
2016-05-03 19:29 ` [PATCH 1/3] MAINTAINERS: Remove asterisk from EFI directory names Matt Fleming
@ 2016-05-03 19:29 ` Matt Fleming
2016-05-04 6:35 ` Ingo Molnar
1 sibling, 1 reply; 9+ messages in thread
From: Matt Fleming @ 2016-05-03 19:29 UTC (permalink / raw)
To: Ingo Molnar, Thomas Gleixner, H . Peter Anvin
Cc: Wang YanQing, Ard Biesheuvel, linux-kernel, linux-efi,
Matt Fleming, David Herrmann, Peter Jones, stable, Tomi Valkeinen
From: Wang YanQing <udknight@gmail.com>
We can't just break out when meet start is equal to zero,
this will cause us to miss valid address ranges in later BARs.
On the other hand, it isn't enough to test start only
for below situation:
0(start) <= lfb_base < end
Due to the BUG this patch fix, I can't use video=efifb:
boot parameter to get efifb on my new ThinkPad E550 for
my old linux system hard disk with 3.10 kernel. In 3.10,
efifb is the only choice due to DRM/I915 in it doesn't
support the GPU.
This patch also add a trivial optimization, break out
after we find the address range is valid without test
later BARs.
Signed-off-by: Wang YanQing <udknight@gmail.com>
Reviewed-by: Peter Jones <pjones@redhat.com>
Cc: David Herrmann <dh.herrmann@gmail.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: <stable@vger.kernel.org>
[ Updated changelog ]
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
---
arch/x86/kernel/sysfb_efi.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/sysfb_efi.c b/arch/x86/kernel/sysfb_efi.c
index b285d4e8c68e..5da924bbf0a0 100644
--- a/arch/x86/kernel/sysfb_efi.c
+++ b/arch/x86/kernel/sysfb_efi.c
@@ -106,14 +106,24 @@ static int __init efifb_set_system(const struct dmi_system_id *id)
continue;
for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) {
resource_size_t start, end;
+ unsigned long flags;
+
+ flags = pci_resource_flags(dev, i);
+ if (!(flags & IORESOURCE_MEM))
+ continue;
+
+ if (flags & IORESOURCE_UNSET)
+ continue;
+
+ if (pci_resource_len(dev, i) == 0)
+ continue;
start = pci_resource_start(dev, i);
- if (start == 0)
- break;
end = pci_resource_end(dev, i);
if (screen_info.lfb_base >= start &&
screen_info.lfb_base < end) {
found_bar = 1;
+ break;
}
}
}
--
2.7.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check
2016-05-03 19:29 ` [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check Matt Fleming
@ 2016-05-04 6:35 ` Ingo Molnar
2016-05-04 9:25 ` Matt Fleming
2016-05-04 15:43 ` Wang YanQing
0 siblings, 2 replies; 9+ messages in thread
From: Ingo Molnar @ 2016-05-04 6:35 UTC (permalink / raw)
To: Matt Fleming
Cc: Thomas Gleixner, H . Peter Anvin, Wang YanQing, Ard Biesheuvel,
linux-kernel, linux-efi, David Herrmann, Peter Jones, stable,
Tomi Valkeinen
* Matt Fleming <matt@codeblueprint.co.uk> wrote:
> From: Wang YanQing <udknight@gmail.com>
>
> We can't just break out when meet start is equal to zero,
Hm, wot?
Thanks,
Ingo
^ permalink raw reply [flat|nested] 9+ messages in thread
* [tip:efi/urgent] MAINTAINERS: Remove asterisk from EFI directory names
2016-05-03 19:29 ` [PATCH 1/3] MAINTAINERS: Remove asterisk from EFI directory names Matt Fleming
@ 2016-05-04 7:14 ` tip-bot for Matt Fleming
0 siblings, 0 replies; 9+ messages in thread
From: tip-bot for Matt Fleming @ 2016-05-04 7:14 UTC (permalink / raw)
To: linux-tip-commits
Cc: mingo, peterz, linux-kernel, stable, mark.rutland,
catalin.marinas, hpa, matt, tglx, ard.biesheuvel, torvalds
Commit-ID: e8dfe6d8f6762d515fcd4f30577f7bfcf7659887
Gitweb: http://git.kernel.org/tip/e8dfe6d8f6762d515fcd4f30577f7bfcf7659887
Author: Matt Fleming <matt@codeblueprint.co.uk>
AuthorDate: Tue, 3 May 2016 20:29:39 +0100
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 4 May 2016 08:36:44 +0200
MAINTAINERS: Remove asterisk from EFI directory names
Mark reported that having asterisks on the end of directory names
confuses get_maintainer.pl when it encounters subdirectories, and that
my name does not appear when run on drivers/firmware/efi/libstub.
Reported-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Cc: <stable@vger.kernel.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/1462303781-8686-2-git-send-email-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
MAINTAINERS | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 42e65d1..4dca3b3 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -4223,8 +4223,8 @@ F: Documentation/efi-stub.txt
F: arch/ia64/kernel/efi.c
F: arch/x86/boot/compressed/eboot.[ch]
F: arch/x86/include/asm/efi.h
-F: arch/x86/platform/efi/*
-F: drivers/firmware/efi/*
+F: arch/x86/platform/efi/
+F: drivers/firmware/efi/
F: include/linux/efi*.h
EFI VARIABLE FILESYSTEM
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check
2016-05-04 6:35 ` Ingo Molnar
@ 2016-05-04 9:25 ` Matt Fleming
2016-05-04 10:23 ` Ingo Molnar
2016-05-04 15:43 ` Wang YanQing
1 sibling, 1 reply; 9+ messages in thread
From: Matt Fleming @ 2016-05-04 9:25 UTC (permalink / raw)
To: Ingo Molnar
Cc: Thomas Gleixner, H . Peter Anvin, Wang YanQing, Ard Biesheuvel,
linux-kernel, linux-efi, David Herrmann, Peter Jones, stable,
Tomi Valkeinen
On Wed, 04 May, at 08:35:24AM, Ingo Molnar wrote:
>
> * Matt Fleming <matt@codeblueprint.co.uk> wrote:
>
> > From: Wang YanQing <udknight@gmail.com>
> >
> > We can't just break out when meet start is equal to zero,
>
> Hm, wot?
The existing code treats address 0x0 as invalid for a PCI BAR range
start address, but 0x0 is actually possible and legitimate, so we
shouldn't be breaking out of the loop.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check
2016-05-04 9:25 ` Matt Fleming
@ 2016-05-04 10:23 ` Ingo Molnar
2016-05-04 10:29 ` Matt Fleming
0 siblings, 1 reply; 9+ messages in thread
From: Ingo Molnar @ 2016-05-04 10:23 UTC (permalink / raw)
To: Matt Fleming
Cc: Thomas Gleixner, H . Peter Anvin, Wang YanQing, Ard Biesheuvel,
linux-kernel, linux-efi, David Herrmann, Peter Jones, stable,
Tomi Valkeinen
* Matt Fleming <matt@codeblueprint.co.uk> wrote:
> On Wed, 04 May, at 08:35:24AM, Ingo Molnar wrote:
> >
> > * Matt Fleming <matt@codeblueprint.co.uk> wrote:
> >
> > > From: Wang YanQing <udknight@gmail.com>
> > >
> > > We can't just break out when meet start is equal to zero,
> >
> > Hm, wot?
>
> The existing code treats address 0x0 as invalid for a PCI BAR range
> start address, but 0x0 is actually possible and legitimate, so we
> shouldn't be breaking out of the loop.
Yeah, so I just don't understand the 'when meet start is equal to zero' part -
what does it mean?
Thanks,
Ingo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check
2016-05-04 10:23 ` Ingo Molnar
@ 2016-05-04 10:29 ` Matt Fleming
0 siblings, 0 replies; 9+ messages in thread
From: Matt Fleming @ 2016-05-04 10:29 UTC (permalink / raw)
To: Ingo Molnar
Cc: Thomas Gleixner, H . Peter Anvin, Wang YanQing, Ard Biesheuvel,
linux-kernel, linux-efi, David Herrmann, Peter Jones, stable,
Tomi Valkeinen
On Wed, 04 May, at 12:23:40PM, Ingo Molnar wrote:
>
> * Matt Fleming <matt@codeblueprint.co.uk> wrote:
>
> > On Wed, 04 May, at 08:35:24AM, Ingo Molnar wrote:
> > >
> > > * Matt Fleming <matt@codeblueprint.co.uk> wrote:
> > >
> > > > From: Wang YanQing <udknight@gmail.com>
> > > >
> > > > We can't just break out when meet start is equal to zero,
> > >
> > > Hm, wot?
> >
> > The existing code treats address 0x0 as invalid for a PCI BAR range
> > start address, but 0x0 is actually possible and legitimate, so we
> > shouldn't be breaking out of the loop.
>
> Yeah, so I just don't understand the 'when meet start is equal to zero' part -
> what does it mean?
I suspect it means "when start is equal to zero" or "when we encounter
the scenario where start is equal to zero".
Wang?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check
2016-05-04 6:35 ` Ingo Molnar
2016-05-04 9:25 ` Matt Fleming
@ 2016-05-04 15:43 ` Wang YanQing
1 sibling, 0 replies; 9+ messages in thread
From: Wang YanQing @ 2016-05-04 15:43 UTC (permalink / raw)
To: Ingo Molnar
Cc: Matt Fleming, Thomas Gleixner, H . Peter Anvin, Ard Biesheuvel,
linux-kernel, linux-efi, David Herrmann, Peter Jones, stable,
Tomi Valkeinen
On Wed, May 04, 2016 at 08:35:24AM +0200, Ingo Molnar wrote:
>
> * Matt Fleming <matt@codeblueprint.co.uk> wrote:
>
> > From: Wang YanQing <udknight@gmail.com>
> >
> > We can't just break out when meet start is equal to zero,
>
> Hm, wot?
>
> Thanks,
>
> Ingo
Sorry for my poor English ,and poor commit message, this bring
trouble for more than one maintainer, I guess.
The old code use below comparion as condition to terminate valid
range check without care whether there are more ranges in later
BARs:
"
if (start == 0)
break;
"
I guess original author think (or make a mistake) when we meet a
address range begin from zero means it is a invalid address range,
and no valid address ranges in remain BARs.
So I said:
We can't break the loop when meet range whose start address is zero,
without check it and remaining BARs' range.
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-05-04 15:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-03 19:29 [GIT PULL 0/3] EFI urgent fixes Matt Fleming
2016-05-03 19:29 ` [PATCH 1/3] MAINTAINERS: Remove asterisk from EFI directory names Matt Fleming
2016-05-04 7:14 ` [tip:efi/urgent] " tip-bot for Matt Fleming
2016-05-03 19:29 ` [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check Matt Fleming
2016-05-04 6:35 ` Ingo Molnar
2016-05-04 9:25 ` Matt Fleming
2016-05-04 10:23 ` Ingo Molnar
2016-05-04 10:29 ` Matt Fleming
2016-05-04 15:43 ` Wang YanQing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox