intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Hans de Goede" <hdegoede@redhat.com>,
	"Daniel Vetter" <daniel.vetter@intel.com>,
	"Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: Fix not finding the VBT when it overlaps with OPREGION_ASLE_EXT
Date: Tue, 24 Jan 2017 15:33:13 +0200	[thread overview]
Message-ID: <874m0o7fc6.fsf@intel.com> (raw)
In-Reply-To: <4d80a27f-00fe-38cd-3981-f73a741fc4d5@redhat.com>

On Mon, 23 Jan 2017, Hans de Goede <hdegoede@redhat.com> wrote:
> Hi,
>
> On 23-01-17 11:36, Jani Nikula wrote:
>> On Fri, 20 Jan 2017, Hans de Goede <hdegoede@redhat.com> wrote:
>>> Hi,
>>>
>>> On 31-12-16 17:00, Hans de Goede wrote:
>>>> Hi,
>>>>
>>>> On 27-12-16 11:58, Jani Nikula wrote:
>>>>> On Sun, 25 Dec 2016, Hans de Goede <hdegoede@redhat.com> wrote:
>>>>>> If there is no OPREGION_ASLE_EXT then a VBT stored in mailbox #4 may
>>>>>> use the ASLE_EXT parts of the opregion. Adjust the vbt_size calculation
>>>>>> for a vbt in mailbox #4 for this.
>>>>>>
>>>>>> This fixes the driver not finding the VBT on a jumper ezpad mini3
>>>>>> cherrytrail tablet.
>>>>>
>>>>> Thanks for the patch. I think you're onto something, but I don't think
>>>>> the patch is quite correct. That said, I'm not sure myself yet what
>>>>> would be. ;)
>>>>>
>>>>> Without the change, does intel_bios_is_valid_vbt() return true anyway?
>>>>
>>>> No.
>>>>
>>>>> I.e. do you get "Found valid VBT in ACPI OpRegion (Mailbox #4)\n" in
>>>>> log?
>>>>
>>>> No.
>>>>
>>>>> If not, which of the debug messages in intel_bios_is_valid_vbt() do
>>>>> you get?
>>>>
>>>> I get "BDB incomplete", which is why I wrote this patch and believe
>>>> this patch is the right solution. With this patch everything works,
>>>>
>>>>> In the latter case, I suspect you'll end up with failure in intel_bios.c
>>>>> with either "No MIPI config BDB found" or "No MIPI Sequence found,
>>>>> parsing complete\n".
>>>>
>>>> I don't remember the exact error, other then getting the
>>>> "BDB incomplete" error, and the i915 driver not listing the DSI connector
>>>> under /sys/class drm.
>>>>
>>>> What makes you say: "but I don't think the patch is quite correct" why
>>>> should the code still keep the OPREGION_ASLE_EXT start as end of the
>>>> mailbox #4 vbt if there is the ASLE extenstion is not used ?
>>>
>>> Ping, any progress on this ? I still believe my original patch is
>>> correct. Eitherway I would like to see a fix for this, be it this fix
>>> or something else, as a fix is necessary to get the LCD panel to work
>>> on jumper ezpad mini3 tablets.
>>
>> Please send me /sys/kernel/debug/dri/0/i915_opregion on that machine.
>>
>> Perusing the opregion spec (which I regret I can't share with you), I
>> found this:
>>
>> * On mailboxes in general, "Mail-box locations are fixed and should
>>   always be allocated irrespective of the support for a given mail box
>>   is available or not."
>>
>> * On opregion->asle->rvda, "This is mainly used when VBT size exceeds
>>   6KB and can't be stored in Mailbox4." It isn't clear to me whether
>>   ->rvda was used or not. The opregion dump should shed light on
>>   this. You can of course check that by adding debug prints in the code
>>   too.
>>
>> * On mailbox 4 (the VBT), "Holds a maximum of 6KB sized Raw VBT data
>>   (not VBIOS image) from VBIOS image."
>>
>> Clearly the patch is against the spec. Let's see if the opregion you
>> have there is against the spec too, and proceed from there...
>
> Ok, I've attached a dump of the opregion on the tablet in question.

Thanks. rvda is not used, VBT is in in the mailbox, and reports size
0x1843, i.e. 67 bytes over the mailbox size of 6 kB. *facepalm*.

I'll try to ask around to see if someone knows what they were thinking.

BR,
Jani.


>
> Regards,
>
> Hans
>

-- 
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-01-24 13:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-25 10:19 [PATCH] drm/i915: Fix not finding the VBT when it overlaps with OPREGION_ASLE_EXT Hans de Goede
2016-12-27 10:58 ` Jani Nikula
2016-12-31 16:00   ` Hans de Goede
2017-01-20  8:07     ` Hans de Goede
2017-01-20  8:16       ` Jani Nikula
2017-01-23 10:36       ` Jani Nikula
2017-01-23 16:04         ` Hans de Goede
2017-01-24 13:33           ` Jani Nikula [this message]
2017-02-04 13:51           ` Hans de Goede
2017-02-06  6:55             ` Jani Nikula
2017-02-06  7:04 ` Jani Nikula
2017-02-10 10:52   ` Hans de Goede
2017-02-10 12:21     ` Jani Nikula

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=874m0o7fc6.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=daniel.vetter@intel.com \
    --cc=hdegoede@redhat.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /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).