From: Jani Nikula <jani.nikula@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] tools/intel_vbt_decode: update vbt defs
Date: Tue, 29 Oct 2019 10:39:46 +0200 [thread overview]
Message-ID: <87imo89c8d.fsf@intel.com> (raw)
In-Reply-To: <20191028160729.GO1208@intel.com>
On Mon, 28 Oct 2019, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Mon, Oct 28, 2019 at 03:54:50PM +0200, Jani Nikula wrote:
>> Update intel_vbt_defs.h from kernel commit 96815f3d8b50 ("drm/i915/bios:
>> add compression parameter block definition").
>
> Looks like this also pulls in a couple of other changes that were never
> synced. Anyways, lgtm when compared with the kernel stuff.
Thanks for the reviews, pushed both, with a note about syncing other
changes too.
BR,
Jani.
>
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
>>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>> tools/intel_vbt_defs.h | 58 ++++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 58 insertions(+)
>>
>> diff --git a/tools/intel_vbt_defs.h b/tools/intel_vbt_defs.h
>> index c903cda3bb5e..69a7cb1fa121 100644
>> --- a/tools/intel_vbt_defs.h
>> +++ b/tools/intel_vbt_defs.h
>> @@ -114,6 +114,7 @@ enum bdb_block_id {
>> BDB_LVDS_POWER = 44,
>> BDB_MIPI_CONFIG = 52,
>> BDB_MIPI_SEQUENCE = 53,
>> + BDB_COMPRESSION_PARAMETERS = 56,
>> BDB_SKIP = 254, /* VBIOS private block, ignore */
>> };
>>
>> @@ -291,6 +292,8 @@ struct bdb_general_features {
>> #define DVO_PORT_HDMIE 12 /* 193 */
>> #define DVO_PORT_DPF 13 /* N/A */
>> #define DVO_PORT_HDMIF 14 /* N/A */
>> +#define DVO_PORT_DPG 15
>> +#define DVO_PORT_HDMIG 16
>> #define DVO_PORT_MIPIA 21 /* 171 */
>> #define DVO_PORT_MIPIB 22 /* 171 */
>> #define DVO_PORT_MIPIC 23 /* 171 */
>> @@ -310,10 +313,13 @@ enum vbt_gmbus_ddi {
>> DDC_BUS_DDI_F,
>> ICL_DDC_BUS_DDI_A = 0x1,
>> ICL_DDC_BUS_DDI_B,
>> + TGL_DDC_BUS_DDI_C,
>> ICL_DDC_BUS_PORT_1 = 0x4,
>> ICL_DDC_BUS_PORT_2,
>> ICL_DDC_BUS_PORT_3,
>> ICL_DDC_BUS_PORT_4,
>> + TGL_DDC_BUS_PORT_5,
>> + TGL_DDC_BUS_PORT_6,
>> };
>>
>> #define DP_AUX_A 0x40
>> @@ -322,6 +328,7 @@ enum vbt_gmbus_ddi {
>> #define DP_AUX_D 0x30
>> #define DP_AUX_E 0x50
>> #define DP_AUX_F 0x60
>> +#define DP_AUX_G 0x70
>>
>> #define VBT_DP_MAX_LINK_RATE_HBR3 0
>> #define VBT_DP_MAX_LINK_RATE_HBR2 1
>> @@ -805,4 +812,55 @@ struct bdb_mipi_sequence {
>> u8 data[0]; /* up to 6 variable length blocks */
>> } __packed;
>>
>> +/*
>> + * Block 56 - Compression Parameters
>> + */
>> +
>> +#define VBT_RC_BUFFER_BLOCK_SIZE_1KB 0
>> +#define VBT_RC_BUFFER_BLOCK_SIZE_4KB 1
>> +#define VBT_RC_BUFFER_BLOCK_SIZE_16KB 2
>> +#define VBT_RC_BUFFER_BLOCK_SIZE_64KB 3
>> +
>> +#define VBT_DSC_LINE_BUFFER_DEPTH(vbt_value) ((vbt_value) + 8) /* bits */
>> +#define VBT_DSC_MAX_BPP(vbt_value) (6 + (vbt_value) * 2)
>> +
>> +struct dsc_compression_parameters_entry {
>> + u8 version_major:4;
>> + u8 version_minor:4;
>> +
>> + u8 rc_buffer_block_size:2;
>> + u8 reserved1:6;
>> +
>> + /*
>> + * Buffer size in bytes:
>> + *
>> + * 4 ^ rc_buffer_block_size * 1024 * (rc_buffer_size + 1) bytes
>> + */
>> + u8 rc_buffer_size;
>> + u32 slices_per_line;
>> +
>> + u8 line_buffer_depth:4;
>> + u8 reserved2:4;
>> +
>> + /* Flag Bits 1 */
>> + u8 block_prediction_enable:1;
>> + u8 reserved3:7;
>> +
>> + u8 max_bpp; /* mapping */
>> +
>> + /* Color depth capabilities */
>> + u8 reserved4:1;
>> + u8 support_8bpc:1;
>> + u8 support_10bpc:1;
>> + u8 support_12bpc:1;
>> + u8 reserved5:4;
>> +
>> + u16 slice_height;
>> +} __packed;
>> +
>> +struct bdb_compression_parameters {
>> + u16 entry_size;
>> + struct dsc_compression_parameters_entry data[16];
>> +} __packed;
>> +
>> #endif /* _INTEL_VBT_DEFS_H_ */
>> --
>> 2.20.1
>>
>> _______________________________________________
>> igt-dev mailing list
>> igt-dev@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/igt-dev
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-10-29 8:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-28 13:54 [igt-dev] [PATCH i-g-t 1/2] tools/intel_vbt_decode: update vbt defs Jani Nikula
2019-10-28 13:54 ` [igt-dev] [PATCH i-g-t 2/2] tools/intel_vbt_decode: add decoding of the compression parameters block Jani Nikula
2019-10-28 16:35 ` Ville Syrjälä
2019-10-28 14:37 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] tools/intel_vbt_decode: update vbt defs Patchwork
2019-10-28 16:07 ` [igt-dev] [PATCH i-g-t 1/2] " Ville Syrjälä
2019-10-29 8:39 ` Jani Nikula [this message]
2019-10-29 10:02 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/2] " 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=87imo89c8d.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=igt-dev@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