All of lore.kernel.org
 help / color / mirror / Atom feed
From: ethan zhao <ethan.zhao-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: David Herrmann <dh.herrmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Matt Fleming
	<matt-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org>,
	Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>,
	Ingo Molnar <mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	"H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>,
	Fabian Frederick <fabf-AgBVmzD5pcezQB+pC5nmwQ@public.gmane.org>,
	the arch/x86 maintainers
	<x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	linux-kernel
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	ethan.kernel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] x86/simplefb: simplefb was broken on Oracle and HP system, skip VIDEO_TYPE_EFI
Date: Tue, 09 Jun 2015 16:04:22 +0800	[thread overview]
Message-ID: <55769E06.4020001@oracle.com> (raw)
In-Reply-To: <CANq1E4Sqj6y1ys3z_XtgJj61r+4QQK_FCJFMPZ4v-2Ao-ddmXg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


On 2015/6/5 17:31, David Herrmann wrote:
> Hi
>
> On Fri, Jun 5, 2015 at 11:17 AM, Matt Fleming <matt-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org> wrote:
>> (Cc'ing David)
>>
>> On Wed, 27 May, at 04:45:48PM, Ethan Zhao wrote:
>>> As descriped in https://bugzilla.kernel.org/show_bug.cgi?id=98721
>>> When kernel 4.0.4 was tested on Oracle and HP system with UEFI mode, no output and
>>> login on console.
>>>
>>> Simplefb was broken on these systems when orig_video_isVGA is VIDEO_TYPE_EFI, so
>>> skip it.
>>>
>>> This patch was tested on Oracle Sun server X5-2 series and HP ProLiant DL380 Gen9
>>> with kernel 4.0.4
>>>
>>> Signed-off-by: Ethan Zhao <ethan.zhao-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
>>> Tested-by: Kunlun Lao <kunlun.lao-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
>>> ---
>>>   arch/x86/kernel/sysfb_simplefb.c | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/arch/x86/kernel/sysfb_simplefb.c b/arch/x86/kernel/sysfb_simplefb.c
>>> index 764a29f..f833502 100644
>>> --- a/arch/x86/kernel/sysfb_simplefb.c
>>> +++ b/arch/x86/kernel/sysfb_simplefb.c
>>> @@ -36,7 +36,7 @@ __init bool parse_mode(const struct screen_info *si,
>>>        unsigned int i;
>>>
>>>        type = si->orig_video_isVGA;
>>> -     if (type != VIDEO_TYPE_VLFB && type != VIDEO_TYPE_EFI)
>>> +     if (type != VIDEO_TYPE_VLFB)
>>>                return false;
>>>
>>>        for (i = 0; i < ARRAY_SIZE(formats); ++i) {
>> This patch makes sense to me, but I'd really like David to fill us in on
>> the rationale for including VIDEO_TYPE_EFI in the simplefb list in first
>> place, and whether he's aware of any platforms that require simplefb for
>> UEFI.
> simplefb works perfectly fine on EFI systems. There is no need to use
> vesafb nor efifb anymore. If simplefb does not work on a platform, we
> should fix it. Hence, I object to this patch. Can you elaborate what
> exactly the problem is? Are you sure you have CONFIG_FB_SIMPLE=y?
  Yes, no CONFIG_FB_SIMPLE set.
>
> If you really want to use efifb instead, please set
> CONFIG_X86_SYSFB=n.

CONFIG_X86_SYSFB=n.
Works.

>   This config option controls whether you want
> firmware framebuffers to be converted to the generic
> simple-framebuffer interface, or whether you want to use the old
> vesa/efi-framebuffer interfaces.
>
> Thanks
> David
  Thanks,
  Ethan

WARNING: multiple messages have this Message-ID (diff)
From: ethan zhao <ethan.zhao@oracle.com>
To: David Herrmann <dh.herrmann@gmail.com>
Cc: Matt Fleming <matt@codeblueprint.co.uk>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	Fabian Frederick <fabf@skynet.be>,
	the arch/x86 maintainers <x86@kernel.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	ethan.kernel@gmail.com, linux-efi@vger.kernel.org
Subject: Re: [PATCH] x86/simplefb: simplefb was broken on Oracle and HP system, skip VIDEO_TYPE_EFI
Date: Tue, 09 Jun 2015 16:04:22 +0800	[thread overview]
Message-ID: <55769E06.4020001@oracle.com> (raw)
In-Reply-To: <CANq1E4Sqj6y1ys3z_XtgJj61r+4QQK_FCJFMPZ4v-2Ao-ddmXg@mail.gmail.com>


On 2015/6/5 17:31, David Herrmann wrote:
> Hi
>
> On Fri, Jun 5, 2015 at 11:17 AM, Matt Fleming <matt@codeblueprint.co.uk> wrote:
>> (Cc'ing David)
>>
>> On Wed, 27 May, at 04:45:48PM, Ethan Zhao wrote:
>>> As descriped in https://bugzilla.kernel.org/show_bug.cgi?id=98721
>>> When kernel 4.0.4 was tested on Oracle and HP system with UEFI mode, no output and
>>> login on console.
>>>
>>> Simplefb was broken on these systems when orig_video_isVGA is VIDEO_TYPE_EFI, so
>>> skip it.
>>>
>>> This patch was tested on Oracle Sun server X5-2 series and HP ProLiant DL380 Gen9
>>> with kernel 4.0.4
>>>
>>> Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
>>> Tested-by: Kunlun Lao <kunlun.lao@oracle.com>
>>> ---
>>>   arch/x86/kernel/sysfb_simplefb.c | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/arch/x86/kernel/sysfb_simplefb.c b/arch/x86/kernel/sysfb_simplefb.c
>>> index 764a29f..f833502 100644
>>> --- a/arch/x86/kernel/sysfb_simplefb.c
>>> +++ b/arch/x86/kernel/sysfb_simplefb.c
>>> @@ -36,7 +36,7 @@ __init bool parse_mode(const struct screen_info *si,
>>>        unsigned int i;
>>>
>>>        type = si->orig_video_isVGA;
>>> -     if (type != VIDEO_TYPE_VLFB && type != VIDEO_TYPE_EFI)
>>> +     if (type != VIDEO_TYPE_VLFB)
>>>                return false;
>>>
>>>        for (i = 0; i < ARRAY_SIZE(formats); ++i) {
>> This patch makes sense to me, but I'd really like David to fill us in on
>> the rationale for including VIDEO_TYPE_EFI in the simplefb list in first
>> place, and whether he's aware of any platforms that require simplefb for
>> UEFI.
> simplefb works perfectly fine on EFI systems. There is no need to use
> vesafb nor efifb anymore. If simplefb does not work on a platform, we
> should fix it. Hence, I object to this patch. Can you elaborate what
> exactly the problem is? Are you sure you have CONFIG_FB_SIMPLE=y?
  Yes, no CONFIG_FB_SIMPLE set.
>
> If you really want to use efifb instead, please set
> CONFIG_X86_SYSFB=n.

CONFIG_X86_SYSFB=n.
Works.

>   This config option controls whether you want
> firmware framebuffers to be converted to the generic
> simple-framebuffer interface, or whether you want to use the old
> vesa/efi-framebuffer interfaces.
>
> Thanks
> David
  Thanks,
  Ethan

  parent reply	other threads:[~2015-06-09  8:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-27  7:45 [PATCH] x86/simplefb: simplefb was broken on Oracle and HP system, skip VIDEO_TYPE_EFI Ethan Zhao
     [not found] ` <1432712748-11344-1-git-send-email-ethan.zhao-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2015-06-05  9:17   ` Matt Fleming
2015-06-05  9:17     ` Matt Fleming
     [not found]     ` <20150605091713.GD6826-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org>
2015-06-05  9:31       ` David Herrmann
2015-06-05  9:31         ` David Herrmann
     [not found]         ` <CANq1E4Sqj6y1ys3z_XtgJj61r+4QQK_FCJFMPZ4v-2Ao-ddmXg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-09  8:04           ` ethan zhao [this message]
2015-06-09  8:04             ` ethan zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55769E06.4020001@oracle.com \
    --to=ethan.zhao-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
    --cc=dh.herrmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=ethan.kernel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=fabf-AgBVmzD5pcezQB+pC5nmwQ@public.gmane.org \
    --cc=hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org \
    --cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=matt-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org \
    --cc=mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org \
    --cc=x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.