* [PATCH i-g-t] tools/intel_vbt_decode: Fix decoding of child device structure
@ 2017-08-16 14:20 ville.syrjala
2017-08-16 14:36 ` ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: ville.syrjala @ 2017-08-16 14:20 UTC (permalink / raw)
To: intel-gfx
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Fix decoding of the start of the child device structure. I had
accidentally duplicated the "device class/type" member and forgot to
include the add-in offset later. Fortunately both were two byte fields
so they effectively cancelled each other out and thus the remainder of
the child device structure was being decoded correctly. But of course
anything sitting between these two fieds was being decoded incorrectly.
Fixes: 86a546f6f798 ("tools/intel_bios_reader: Dump out more information from the child device structure")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
tools/intel_bios.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/intel_bios.h b/tools/intel_bios.h
index ca0d2c587120..f2ccb55ab6c3 100644
--- a/tools/intel_bios.h
+++ b/tools/intel_bios.h
@@ -273,7 +273,6 @@ struct child_device_config {
struct efp_child_device_config {
uint16_t handle;
uint16_t device_type;
- uint16_t device_class;
uint8_t i2c_speed;
uint8_t dp_onboard_redriver; /* 158 */
uint8_t dp_ondock_redriver; /* 158 */
@@ -289,6 +288,7 @@ struct efp_child_device_config {
uint8_t skip1:4;
uint8_t slave_port; /* 202 */
uint8_t skip2;
+ uint16_t addin_offset;
uint8_t port;
uint8_t i2c_pin; /* for add-in card */
uint8_t slave_addr; /* for add-in card */
--
2.13.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread
* ✓ Fi.CI.BAT: success for tools/intel_vbt_decode: Fix decoding of child device structure
2017-08-16 14:20 [PATCH i-g-t] tools/intel_vbt_decode: Fix decoding of child device structure ville.syrjala
@ 2017-08-16 14:36 ` Patchwork
2017-08-16 14:51 ` [PATCH i-g-t] " Jani Nikula
2017-08-16 21:24 ` Clint Taylor
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2017-08-16 14:36 UTC (permalink / raw)
To: Ville Syrjälä; +Cc: intel-gfx
== Series Details ==
Series: tools/intel_vbt_decode: Fix decoding of child device structure
URL : https://patchwork.freedesktop.org/series/28872/
State : success
== Summary ==
IGT patchset tested on top of latest successful build
c8811338e8a7723b5e99a303361ed97c092fc270 intel-ci: Add fast-feedback-simulation.testlist
with latest DRM-Tip kernel build CI_DRM_2968
5118c7fa9c87 drm-tip: 2017y-08m-15d-23h-58m-24s UTC integration manifest
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
pass -> DMESG-WARN (fi-byt-n2820) fdo#101705
fdo#101705 https://bugs.freedesktop.org/show_bug.cgi?id=101705
fi-bdw-5557u total:279 pass:268 dwarn:0 dfail:0 fail:0 skip:11 time:444s
fi-bdw-gvtdvm total:279 pass:265 dwarn:0 dfail:0 fail:0 skip:14 time:429s
fi-blb-e6850 total:279 pass:224 dwarn:1 dfail:0 fail:0 skip:54 time:357s
fi-bsw-n3050 total:279 pass:243 dwarn:0 dfail:0 fail:0 skip:36 time:540s
fi-bxt-j4205 total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:512s
fi-byt-j1900 total:279 pass:254 dwarn:1 dfail:0 fail:0 skip:24 time:524s
fi-byt-n2820 total:279 pass:250 dwarn:1 dfail:0 fail:0 skip:28 time:515s
fi-glk-2a total:279 pass:260 dwarn:0 dfail:0 fail:0 skip:19 time:610s
fi-hsw-4770 total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:442s
fi-hsw-4770r total:279 pass:263 dwarn:0 dfail:0 fail:0 skip:16 time:417s
fi-ilk-650 total:279 pass:229 dwarn:0 dfail:0 fail:0 skip:50 time:416s
fi-ivb-3520m total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:505s
fi-ivb-3770 total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:477s
fi-kbl-7500u total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:474s
fi-kbl-7560u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:587s
fi-kbl-r total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:597s
fi-pnv-d510 total:279 pass:223 dwarn:1 dfail:0 fail:0 skip:55 time:530s
fi-skl-6260u total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:466s
fi-skl-6700k total:279 pass:261 dwarn:0 dfail:0 fail:0 skip:18 time:473s
fi-skl-6770hq total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:480s
fi-skl-gvtdvm total:279 pass:266 dwarn:0 dfail:0 fail:0 skip:13 time:434s
fi-skl-x1585l total:279 pass:269 dwarn:0 dfail:0 fail:0 skip:10 time:492s
fi-snb-2520m total:279 pass:251 dwarn:0 dfail:0 fail:0 skip:28 time:557s
fi-snb-2600 total:279 pass:250 dwarn:0 dfail:0 fail:0 skip:29 time:407s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_71/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH i-g-t] tools/intel_vbt_decode: Fix decoding of child device structure
2017-08-16 14:20 [PATCH i-g-t] tools/intel_vbt_decode: Fix decoding of child device structure ville.syrjala
2017-08-16 14:36 ` ✓ Fi.CI.BAT: success for " Patchwork
@ 2017-08-16 14:51 ` Jani Nikula
2017-08-16 21:24 ` Clint Taylor
2 siblings, 0 replies; 5+ messages in thread
From: Jani Nikula @ 2017-08-16 14:51 UTC (permalink / raw)
To: ville.syrjala, intel-gfx
On Wed, 16 Aug 2017, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Fix decoding of the start of the child device structure. I had
> accidentally duplicated the "device class/type" member and forgot to
> include the add-in offset later. Fortunately both were two byte fields
> so they effectively cancelled each other out and thus the remainder of
> the child device structure was being decoded correctly. But of course
> anything sitting between these two fieds was being decoded incorrectly.
>
> Fixes: 86a546f6f798 ("tools/intel_bios_reader: Dump out more information from the child device structure")
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> tools/intel_bios.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/intel_bios.h b/tools/intel_bios.h
> index ca0d2c587120..f2ccb55ab6c3 100644
> --- a/tools/intel_bios.h
> +++ b/tools/intel_bios.h
> @@ -273,7 +273,6 @@ struct child_device_config {
> struct efp_child_device_config {
> uint16_t handle;
> uint16_t device_type;
> - uint16_t device_class;
> uint8_t i2c_speed;
> uint8_t dp_onboard_redriver; /* 158 */
> uint8_t dp_ondock_redriver; /* 158 */
> @@ -289,6 +288,7 @@ struct efp_child_device_config {
> uint8_t skip1:4;
> uint8_t slave_port; /* 202 */
> uint8_t skip2;
> + uint16_t addin_offset;
> uint8_t port;
> uint8_t i2c_pin; /* for add-in card */
> uint8_t slave_addr; /* for add-in card */
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH i-g-t] tools/intel_vbt_decode: Fix decoding of child device structure
2017-08-16 14:20 [PATCH i-g-t] tools/intel_vbt_decode: Fix decoding of child device structure ville.syrjala
2017-08-16 14:36 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-08-16 14:51 ` [PATCH i-g-t] " Jani Nikula
@ 2017-08-16 21:24 ` Clint Taylor
2017-08-17 9:47 ` Jani Nikula
2 siblings, 1 reply; 5+ messages in thread
From: Clint Taylor @ 2017-08-16 21:24 UTC (permalink / raw)
To: ville.syrjala, intel-gfx
This patch fixes the alignment. I spotted another issue with teh
structure and will fix it once this one is merged.
Reviewed-by: Clint Taylor <Clinton.A.Taylor@intel.com>
Tested-by: Clint Taylor <Clinton.A.Taylor@intel.com>
On 08/16/2017 07:20 AM, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Fix decoding of the start of the child device structure. I had
> accidentally duplicated the "device class/type" member and forgot to
> include the add-in offset later. Fortunately both were two byte fields
> so they effectively cancelled each other out and thus the remainder of
> the child device structure was being decoded correctly. But of course
> anything sitting between these two fieds was being decoded incorrectly.
>
> Fixes: 86a546f6f798 ("tools/intel_bios_reader: Dump out more information from the child device structure")
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> tools/intel_bios.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/intel_bios.h b/tools/intel_bios.h
> index ca0d2c587120..f2ccb55ab6c3 100644
> --- a/tools/intel_bios.h
> +++ b/tools/intel_bios.h
> @@ -273,7 +273,6 @@ struct child_device_config {
> struct efp_child_device_config {
> uint16_t handle;
> uint16_t device_type;
> - uint16_t device_class;
> uint8_t i2c_speed;
> uint8_t dp_onboard_redriver; /* 158 */
> uint8_t dp_ondock_redriver; /* 158 */
> @@ -289,6 +288,7 @@ struct efp_child_device_config {
> uint8_t skip1:4;
> uint8_t slave_port; /* 202 */
> uint8_t skip2;
> + uint16_t addin_offset;
> uint8_t port;
> uint8_t i2c_pin; /* for add-in card */
> uint8_t slave_addr; /* for add-in card */
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH i-g-t] tools/intel_vbt_decode: Fix decoding of child device structure
2017-08-16 21:24 ` Clint Taylor
@ 2017-08-17 9:47 ` Jani Nikula
0 siblings, 0 replies; 5+ messages in thread
From: Jani Nikula @ 2017-08-17 9:47 UTC (permalink / raw)
To: Clint Taylor, ville.syrjala, intel-gfx
On Wed, 16 Aug 2017, Clint Taylor <clinton.a.taylor@intel.com> wrote:
> This patch fixes the alignment. I spotted another issue with teh
> structure and will fix it once this one is merged.
I'm sure there are plenty of issues; patches welcome!
BR,
Jani.
>
> Reviewed-by: Clint Taylor <Clinton.A.Taylor@intel.com>
> Tested-by: Clint Taylor <Clinton.A.Taylor@intel.com>
>
>
> On 08/16/2017 07:20 AM, ville.syrjala@linux.intel.com wrote:
>> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>>
>> Fix decoding of the start of the child device structure. I had
>> accidentally duplicated the "device class/type" member and forgot to
>> include the add-in offset later. Fortunately both were two byte fields
>> so they effectively cancelled each other out and thus the remainder of
>> the child device structure was being decoded correctly. But of course
>> anything sitting between these two fieds was being decoded incorrectly.
>>
>> Fixes: 86a546f6f798 ("tools/intel_bios_reader: Dump out more information from the child device structure")
>> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> ---
>> tools/intel_bios.h | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tools/intel_bios.h b/tools/intel_bios.h
>> index ca0d2c587120..f2ccb55ab6c3 100644
>> --- a/tools/intel_bios.h
>> +++ b/tools/intel_bios.h
>> @@ -273,7 +273,6 @@ struct child_device_config {
>> struct efp_child_device_config {
>> uint16_t handle;
>> uint16_t device_type;
>> - uint16_t device_class;
>> uint8_t i2c_speed;
>> uint8_t dp_onboard_redriver; /* 158 */
>> uint8_t dp_ondock_redriver; /* 158 */
>> @@ -289,6 +288,7 @@ struct efp_child_device_config {
>> uint8_t skip1:4;
>> uint8_t slave_port; /* 202 */
>> uint8_t skip2;
>> + uint16_t addin_offset;
>> uint8_t port;
>> uint8_t i2c_pin; /* for add-in card */
>> uint8_t slave_addr; /* for add-in card */
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-08-17 9:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-16 14:20 [PATCH i-g-t] tools/intel_vbt_decode: Fix decoding of child device structure ville.syrjala
2017-08-16 14:36 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-08-16 14:51 ` [PATCH i-g-t] " Jani Nikula
2017-08-16 21:24 ` Clint Taylor
2017-08-17 9:47 ` Jani Nikula
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).