All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 5/5] drm/i915/opregion: let user specify override VBT via firmware load
Date: Wed, 22 Feb 2017 10:15:12 +0200	[thread overview]
Message-ID: <87efyqk5f3.fsf@intel.com> (raw)
In-Reply-To: <20170221164603.GC10557@nuc-i3427.alporthouse.com>

On Tue, 21 Feb 2017, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> On Tue, Feb 21, 2017 at 06:40:25PM +0200, Jani Nikula wrote:
>> Sometimes it would be most enlightening to debug systems by replacing
>> the VBT to be used. For example, in the referenced bug the BIOS provides
>> different VBT depending on the boot mode (UEFI vs. legacy). It would be
>> interesting to try the failing boot mode with the VBT from the working
>> boot, and see if that makes a difference.
>> 
>> Add a module parameter to load the VBT using the firmware loader, not
>> unlike the EDID firmware mechanism.
>
> What's the mechanism by which they would create a valid VBT file?
> Does
> 	cat /sys/kernel/debug/dri/0/i915_opregion > vbt.fw
> work and provide a starting point for corrections?
 
The debugfs file for just the VBT is i915_vbt.

For starters I only thought of using the VBT from the other boot mode,
and didn't really think of actually modifying the file, let alone making
it easy to modify the file using some tool for example.

There is a Windows-only BIOS Modification Program, or BMP, to modify the
VBT. It's referenced in a bunch of public documentation, but apparently
the tool itself is not publicly available. And even if it were, it's
neither free nor for Linux. I've never touched it myself.

Given the fact that we have tools/intel_vbt_decode in IGT, it should not
be hard to write such a tool. The information is all there for an
interested party. Just a SMOP. ;)

BR,
Jani.

-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-02-22  8:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-21 16:40 [PATCH 0/5] drm/i915: add VBT firmware loading mechanism Jani Nikula
2017-02-21 16:40 ` [PATCH 1/5] drm/i915: Add i915_param charp macro magic Jani Nikula
2017-02-21 16:40 ` [PATCH 2/5] drm/i915/opregion: bail out early for systems with no opregion VBT Jani Nikula
2017-02-21 16:40 ` [PATCH 3/5] drm/i915/opregion: try to validate RVDA VBT only if it's there Jani Nikula
2017-02-21 16:40 ` [PATCH 4/5] drm/i915/opregion: debug log about invalid ACPI OpRegion VBT Jani Nikula
2017-02-21 16:40 ` [PATCH 5/5] drm/i915/opregion: let user specify override VBT via firmware load Jani Nikula
2017-02-21 16:46   ` Chris Wilson
2017-02-22  8:15     ` Jani Nikula [this message]
2017-02-22  8:50       ` Chris Wilson
2017-02-21 18:22 ` ✓ Fi.CI.BAT: success for drm/i915: add VBT firmware loading mechanism Patchwork

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=87efyqk5f3.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.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.