From: Marek Marczykowski <marmarek@invisiblethingslab.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
Julien Grall <julien.grall@arm.com>,
xen-devel <xen-devel@lists.xenproject.org>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH v3 1/1] xen: fix handling framebuffer located above 4GB
Date: Thu, 16 May 2019 17:45:13 +0200 [thread overview]
Message-ID: <20190516154513.GS1502@mail-itl> (raw)
In-Reply-To: <5CDD7AD8020000780022FC7B@prv1-mh.provo.novell.com>
[-- Attachment #1.1: Type: text/plain, Size: 1713 bytes --]
On Thu, May 16, 2019 at 08:59:36AM -0600, Jan Beulich wrote:
> >>> On 16.05.19 at 16:07, <marmarek@invisiblethingslab.com> wrote:
> > --- a/xen/drivers/video/vesa.c
> > +++ b/xen/drivers/video/vesa.c
> > @@ -40,6 +40,11 @@ static int __init parse_font_height(const char *s)
> > }
> > custom_param("font", parse_font_height);
> >
> > +static inline paddr_t lfb_base(void)
> > +{
> > + return (paddr_t)((vlfb_info.ext_lfb_base) << 32) | vlfb_info.lfb_base;
>
> I'm afraid you've misplaced the parentheses here. I wonder if
> this has worked for you at all.
Indeed it's messed up...
> return ((paddr_t)vlfb_info.ext_lfb_base << 32) | vlfb_info.lfb_base;
This works fine.
> > --- a/xen/include/public/xen.h
> > +++ b/xen/include/public/xen.h
> > @@ -923,6 +923,11 @@ typedef struct dom0_vga_console_info {
> > /* Mode attributes (offset 0x0, VESA command 0x4f01). */
> > uint16_t mode_attrs;
> > #endif
> > +#if __XEN_INTERFACE_VERSION__ >= 0x00040d00
> > + uint16_t _pad;
And also compat checker don't like this name. I've changed it to "pad"
(v4 upcoming).
> > + /* high 32 bits of lfb_base */
> > + uint32_t ext_lfb_base;
> > +#endif
>
> Strictly speaking the padding field belongs ahead of the earlier
> #endif.
>
> Both aspects can be fixed while committing, but confirmation on
> the first wrt it working for you would still be nice. With them in
> place
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 157 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
WARNING: multiple messages have this Message-ID (diff)
From: Marek Marczykowski <marmarek@invisiblethingslab.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
Julien Grall <julien.grall@arm.com>,
xen-devel <xen-devel@lists.xenproject.org>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [Xen-devel] [PATCH v3 1/1] xen: fix handling framebuffer located above 4GB
Date: Thu, 16 May 2019 17:45:13 +0200 [thread overview]
Message-ID: <20190516154513.GS1502@mail-itl> (raw)
Message-ID: <20190516154513.Af4TE19Xiq3Cq4ebufKzEwUeuy6GqTiQMj-1hllZeLw@z> (raw)
In-Reply-To: <5CDD7AD8020000780022FC7B@prv1-mh.provo.novell.com>
[-- Attachment #1.1: Type: text/plain, Size: 1713 bytes --]
On Thu, May 16, 2019 at 08:59:36AM -0600, Jan Beulich wrote:
> >>> On 16.05.19 at 16:07, <marmarek@invisiblethingslab.com> wrote:
> > --- a/xen/drivers/video/vesa.c
> > +++ b/xen/drivers/video/vesa.c
> > @@ -40,6 +40,11 @@ static int __init parse_font_height(const char *s)
> > }
> > custom_param("font", parse_font_height);
> >
> > +static inline paddr_t lfb_base(void)
> > +{
> > + return (paddr_t)((vlfb_info.ext_lfb_base) << 32) | vlfb_info.lfb_base;
>
> I'm afraid you've misplaced the parentheses here. I wonder if
> this has worked for you at all.
Indeed it's messed up...
> return ((paddr_t)vlfb_info.ext_lfb_base << 32) | vlfb_info.lfb_base;
This works fine.
> > --- a/xen/include/public/xen.h
> > +++ b/xen/include/public/xen.h
> > @@ -923,6 +923,11 @@ typedef struct dom0_vga_console_info {
> > /* Mode attributes (offset 0x0, VESA command 0x4f01). */
> > uint16_t mode_attrs;
> > #endif
> > +#if __XEN_INTERFACE_VERSION__ >= 0x00040d00
> > + uint16_t _pad;
And also compat checker don't like this name. I've changed it to "pad"
(v4 upcoming).
> > + /* high 32 bits of lfb_base */
> > + uint32_t ext_lfb_base;
> > +#endif
>
> Strictly speaking the padding field belongs ahead of the earlier
> #endif.
>
> Both aspects can be fixed while committing, but confirmation on
> the first wrt it working for you would still be nice. With them in
> place
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 157 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-05-16 15:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-16 14:07 [PATCH v3 0/1] Fixes for large framebuffer, placed above 4GB Marek Marczykowski-Górecki
2019-05-16 14:07 ` [Xen-devel] " Marek Marczykowski-Górecki
2019-05-16 14:07 ` [PATCH v3 1/1] xen: fix handling framebuffer located " Marek Marczykowski-Górecki
2019-05-16 14:07 ` [Xen-devel] " Marek Marczykowski-Górecki
2019-05-16 14:59 ` Jan Beulich
2019-05-16 14:59 ` [Xen-devel] " Jan Beulich
2019-05-16 15:45 ` Marek Marczykowski [this message]
2019-05-16 15:45 ` Marek Marczykowski
2019-05-16 15:46 ` [PATCH v4] " Marek Marczykowski-Górecki
2019-05-16 15:46 ` [Xen-devel] " Marek Marczykowski-Górecki
2019-05-16 16:02 ` Jan Beulich
2019-05-16 16:02 ` [Xen-devel] " Jan Beulich
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=20190516154513.GS1502@mail-itl \
--to=marmarek@invisiblethingslab.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=julien.grall@arm.com \
--cc=konrad.wilk@oracle.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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.