Skip to content

Patches to support the version 3 of MIPI sequence in VBT.

Deepak M intel-gfx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 13 repliesIn review
  2. v19 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11drm/i915: Adding the parsing logic for the i2c elementdrivers/gpu/drm/i915/intel_bios.c drivers/gpu/drm/i915/intel_bios.h drivers/gpu/drm/i915/intel_dsi_panel_vbt.c+68 -02 replies
2/11drm/i915: Updating asle structure with new fieldsdrivers/gpu/drm/i915/intel_opregion.c+3 -10 replies
3/11drm/i915: Parsing VBT if size of VBT exceeds 6KBdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_bios.c +2 more+329 -2574 replies
4/11drm/i915: Using the approprite vbt size if vbt is not in mailbox4 of opregiondrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_bios.c drivers/gpu/drm/i915/intel_opregion.c+32 -184 replies
5/11drm/i915: Added support the v3 mipi sequence blockdrivers/gpu/drm/i915/intel_bios.c drivers/gpu/drm/i915/intel_bios.h drivers/gpu/drm/i915/intel_dsi_panel_vbt.c+114 -202 replies
6/11drm/i915: extending gpio read/write to other coresdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_dsi_panel_vbt.c drivers/gpu/drm/i915/intel_sideband.c+10 -80 replies
7/11drm/i915: Added the generic gpio sequence support and gpio tabledrivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_dsi.h drivers/gpu/drm/i915/intel_dsi_panel_vbt.c+559 -121 reply
8/11drm/i915: GPIO for CHT generic MIPIdrivers/gpu/drm/i915/i915_reg.h drivers/gpu/drm/i915/intel_dsi_panel_vbt.c+122 -180 replies
9/11drm: Add few more wrapper functions for drm panelinclude/drm/drm_panel.h+47 -00 replies
10/11drm/i915: Add functions to execute the new sequences from VBTdrivers/gpu/drm/i915/intel_dsi_panel_vbt.c+83 -10 replies
11/11drm/i915: BXT GPIO support for backlight and panel controldrivers/gpu/drm/i915/intel_dsi_panel_vbt.c+46 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [MIPI SEQ PARSING v2 PATCH 00/11] Patches to support the version 3 of MIPI sequence in VBT.

Currently in our kernel we ioremap 8KB of memory for the opregion and holds a maximum of 6KB sized RAW vbt data.

As per the latest opregion spec when the VBT size exceeds 6KB it cant be placed in the mailbox4 of the opregion, so the physical address of the buffer where the Raw VBT is stored will be mentioned in the mailbox3 with the VBT size in the opregion version 2 and above.
A non-zero value here is an indication to driver that a valid Raw VBT is stored here and driver should not refer to mailbox4 for getting VBT. This is implemented in one of the patches in this series.

link for the opregion spec : https://securewiki.ith.intel.com/pages/viewpage.action?pageId=48147378
(spec is under intel firewall)

In the version 3 of the MIPI sequence block, the size field is 4 bytes so that it can support block size of more than 64KB, but the vbt size field in the bdb header is only 2 bytes. Based on the below points this issue can be handled.
1. When the VBT is not present in the mailbox4 then VBT size needs to be read from the mailbox3 and this VBT size field is of 4 bytes which implies that it can be more than 64KB also.
2. If the VBT size is more than 64KB then the VBT size field in the bdb header cant be relied. So its better to consider the vbt size from the mailbox3 when the VBT is not present in mailbox4.

Other patches implements the parsing of the new sequence type which are added in the block 53.

v2: Addressed Jani`s review comments.

Deepak M (6):
drm/i915: Updating asle structure with new fields drm/i915: Parsing VBT if size of VBT exceeds 6KB drm/i915: Using the approprite vbt size if vbt is not in mailbox4 of
opregion
drm/i915: extending gpio read/write to other cores drm/i915: Added the generic gpio sequence support and gpio table
drm: Add few more wrapper functions for drm panel

Gaurav K Singh (1):
drm/i915: Add functions to execute the new sequences from VBT

Uma Shankar (1):
drm/i915: BXT GPIO support for backlight and panel control

Yogesh Mohan Marimuthu (1):
drm/i915: GPIO for CHT generic MIPI

vkorjani (2):
drm/i915: Adding the parsing logic for the i2c element drm/i915: Added support the v3 mipi sequence block

 drivers/gpu/drm/i915/i915_debugfs.c        |   24 +-
 drivers/gpu/drm/i915/i915_drv.h            |   11 +-
 drivers/gpu/drm/i915/i915_reg.h            |   28 ++
 drivers/gpu/drm/i915/intel_bios.c          |  216 +++++++-----
 drivers/gpu/drm/i915/intel_bios.h          |    9 +
 drivers/gpu/drm/i915/intel_dsi.h           |  351 +++++++++++++++++++
 drivers/gpu/drm/i915/intel_dsi_panel_vbt.c |  514 ++++++++++++++++++++++++++--
 drivers/gpu/drm/i915/intel_opregion.c      |  283 +++++----------
 drivers/gpu/drm/i915/intel_opregion.h      |  230 +++++++++++++
 drivers/gpu/drm/i915/intel_sideband.c      |    9 +-
 include/drm/drm_panel.h                    |   47 +++
 11 files changed, 1400 insertions(+), 322 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/intel_opregion.h
Signature · 6 lines
1.7.9.5

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx