linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean Delvare <jdelvare@suse.de>
To: linux-fbdev@vger.kernel.org
Subject: Re: [PATCH v4] video/console: Add dmi quirk table for x86 systems which need fbcon rotation
Date: Tue, 25 Jul 2017 09:35:55 +0000	[thread overview]
Message-ID: <20170725113555.39e22df7@endymion> (raw)
In-Reply-To: <20170723103239.26019-1-hdegoede@redhat.com>

On Sun, 23 Jul 2017 12:32:39 +0200, Hans de Goede wrote:
> Some x86 clamshell design devices use portrait tablet screens and a
> display engine which cannot rotate in hardware, so we need to rotate
> the fbcon to compensate.
> 
> This commit adds a DMI based quirk table which is initially populated with
> 4 such devices: The Asus T100HA, GPD Pocket, the GPD win and the I.T.Works
> TW891, so that the console comes up in the right orientation on these
> devices OOTB.
> 
> Unfortunately these (cheap) devices also typically have quite generic DMI
> data, so we match on a combination of DMI data, screen resolution and a
> list of known BIOS dates to avoid false positives.
> 
> Suggested-by: Jean Delvare <jdelvare@suse.de>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> Changes in v2:
> -Extend the commit message explaining why dmi_check_system does not work
>  and this commit exports and uses dmi_matches instead
> 
> Changes in v3:
> -The exporting of dmi_matches has been split out in a separate patch
> -Use u32 for width/height in struct fbcon_dmi_rotate_data to match the
>  type of fb_var_screeninfo.xres / .yres
> 
> Changes in v4:
> -Use dmi_first_match instead of exporting dmi_matches
> -Use DMI_EXACT_MATCH
> -Add the Asus T100HA to the list of devices needing rotation
> ---
>  drivers/video/console/Makefile           |   3 +
>  drivers/video/console/fbcon.c            |  12 ++-
>  drivers/video/console/fbcon.h            |   7 +-
>  drivers/video/console/fbcon_dmi_quirks.c | 130 +++++++++++++++++++++++++++++++
>  4 files changed, 148 insertions(+), 4 deletions(-)
>  create mode 100644 drivers/video/console/fbcon_dmi_quirks.c
> (...)

Looks good to me.

Reviewed-by: Jean Delvare <jdelvare@suse.de>

-- 
Jean Delvare
SUSE L3 Support

      reply	other threads:[~2017-07-25  9:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-23 10:32 [PATCH v4] video/console: Add dmi quirk table for x86 systems which need fbcon rotation Hans de Goede
2017-07-25  9:35 ` Jean Delvare [this message]

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=20170725113555.39e22df7@endymion \
    --to=jdelvare@suse.de \
    --cc=linux-fbdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).