From: Jani Nikula <jani.nikula@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 00/12] drm/i915/bios: vbt child device rework
Date: Wed, 17 Feb 2021 21:57:44 +0200 [thread overview]
Message-ID: <87r1lea2mf.fsf@intel.com> (raw)
In-Reply-To: <20210217175440.vo7lunoy5sy74tmq@ldmartin-desk1>
On Wed, 17 Feb 2021, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> On Wed, Feb 17, 2021 at 07:03:30PM +0200, Jani Nikula wrote:
>>I see the parsing and caching of child device data into
>>i915->vbt.ddi_port_info[] slightly problematic. We keep adding data to
>>it, and it just duplicates information. Start moving towards a single
>>point of truth, and getting the information directly from the child
>>device data.
>>
>>One obstacle has been that init_vbt_missing_defaults() only initializes
>>ddi_port_info, without child devices. As the same problem arose in a
>>patch from Lucas, I thought it was time to start creating fake child
>>devices to unify the code.
>>
>>There are a bunch of cleanups and refactoring here. Patches 1-5 are
>>enough to fix Lucas' patch I think. Patch 10 does what Lucas was after,
>>just in a different way and as a byproduct of something else. The later
>
> humn... but we'd still need the patches in that series to cleanup
> the calls to intel_ddi_init() from intel_display.c. Or did I miss
> anything?
Nah, my bad. This makes it possible to do what you do there.
BR,
Jani.
>
> I did a quick scan through the patches and left a few comments. Overall
> it looks good to me, but I need to dedicate a little more time to give a
> proper r-b. I will do soon if no one beats me to it.
>
>
> thanks
> Lucas De Marchi
>
>>patches in the series are more to show the direction, and seek
>>validation for that direction.
>>
>>Naming is also a question mark. All of these are a bit questionable:
>>intel_bios_encoder_data, devdata, intel_bios_encoder_supports_*, etc.
>>
>>BR,
>>Jani.
>>
>>
>>[1] http://patchwork.freedesktop.org/patch/msgid/20210213190511.1017088-2-lucas.demarchi@intel.com
>>
>>
>>
>>Cc: Lucas De Marchi <lucas.demarchi@intel.com>
>>Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>>
>>
>>Jani Nikula (12):
>> drm/i915/bios: mass convert dev_priv to i915
>> drm/i915/bios: store bdb version in i915
>> drm/i915/bios: limit default outputs by platform on missing VBT
>> drm/i915/bios: limit default outputs to ports A through F
>> drm/i915/bios: create fake child devices on missing VBT
>> drm/i915/bios: rename display_device_data to intel_bios_encoder_data
>> drm/i915/bios: add i915 backpointer to intel_bios_encoder_data
>> drm/i915/vbt: add helper functions to check output support
>> drm/i915/bios: save a higher level pointer in ddi_vbt_port_info[]
>> drm/i915/bios: start using the intel_bios_encoder_data directly
>> drm/i915/bios: start using intel_bios_encoder_data for Type-C USB and
>> TBT
>> drm/i915/bios: add intel_bios_encoder_data to encoder, use for iboost
>>
>> drivers/gpu/drm/i915/display/intel_bios.c | 1021 +++++++++--------
>> drivers/gpu/drm/i915/display/intel_bios.h | 17 +-
>> drivers/gpu/drm/i915/display/intel_ddi.c | 28 +-
>> .../drm/i915/display/intel_display_types.h | 3 +
>> drivers/gpu/drm/i915/i915_drv.h | 9 +-
>> 5 files changed, 584 insertions(+), 494 deletions(-)
>>
>>--
>>2.20.1
>>
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2021-02-17 19:57 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-17 17:03 [Intel-gfx] [PATCH 00/12] drm/i915/bios: vbt child device rework Jani Nikula
2021-02-17 17:03 ` [Intel-gfx] [PATCH 01/12] drm/i915/bios: mass convert dev_priv to i915 Jani Nikula
2021-02-22 18:14 ` Ville Syrjälä
2021-02-17 17:03 ` [Intel-gfx] [PATCH 02/12] drm/i915/bios: store bdb version in i915 Jani Nikula
2021-02-22 18:14 ` Ville Syrjälä
2021-02-17 17:03 ` [Intel-gfx] [PATCH 03/12] drm/i915/bios: limit default outputs by platform on missing VBT Jani Nikula
2021-02-22 18:16 ` Ville Syrjälä
2021-02-17 17:03 ` [Intel-gfx] [PATCH 04/12] drm/i915/bios: limit default outputs to ports A through F Jani Nikula
2021-02-17 17:23 ` Lucas De Marchi
2021-02-17 17:28 ` Lucas De Marchi
2021-02-17 19:49 ` Jani Nikula
2021-02-17 19:58 ` Lucas De Marchi
2021-02-23 13:34 ` Jani Nikula
2021-02-24 0:34 ` Lucas De Marchi
2021-02-17 17:03 ` [Intel-gfx] [PATCH 05/12] drm/i915/bios: create fake child devices on missing VBT Jani Nikula
2021-03-09 0:51 ` Lucas De Marchi
2021-02-17 17:03 ` [Intel-gfx] [PATCH 06/12] drm/i915/bios: rename display_device_data to intel_bios_encoder_data Jani Nikula
2021-02-17 17:44 ` Lucas De Marchi
2021-02-17 19:52 ` Jani Nikula
2021-02-23 12:50 ` Jani Nikula
2021-02-24 0:37 ` Lucas De Marchi
2021-02-17 17:03 ` [Intel-gfx] [PATCH 07/12] drm/i915/bios: add i915 backpointer " Jani Nikula
2021-02-17 17:03 ` [Intel-gfx] [PATCH 08/12] drm/i915/vbt: add helper functions to check output support Jani Nikula
2021-02-17 17:46 ` Lucas De Marchi
2021-02-17 19:55 ` Jani Nikula
2021-03-15 17:32 ` Lucas De Marchi
2021-03-16 9:18 ` Jani Nikula
2021-02-17 17:03 ` [Intel-gfx] [PATCH 09/12] drm/i915/bios: save a higher level pointer in ddi_vbt_port_info[] Jani Nikula
2021-03-15 17:36 ` Lucas De Marchi
2021-02-17 17:03 ` [Intel-gfx] [PATCH 10/12] drm/i915/bios: start using the intel_bios_encoder_data directly Jani Nikula
2021-03-15 17:41 ` Lucas De Marchi
2021-02-17 17:03 ` [Intel-gfx] [PATCH 11/12] drm/i915/bios: start using intel_bios_encoder_data for Type-C USB and TBT Jani Nikula
2021-03-15 17:49 ` Lucas De Marchi
2021-02-17 17:03 ` [Intel-gfx] [PATCH 12/12] drm/i915/bios: add intel_bios_encoder_data to encoder, use for iboost Jani Nikula
2021-03-15 17:52 ` Lucas De Marchi
2021-02-17 17:20 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/bios: vbt child device rework Patchwork
2021-02-17 17:49 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-02-17 17:54 ` [Intel-gfx] [PATCH 00/12] " Lucas De Marchi
2021-02-17 19:57 ` Jani Nikula [this message]
2021-02-17 20:52 ` [Intel-gfx] ✓ Fi.CI.IGT: success for " 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=87r1lea2mf.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=lucas.demarchi@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