* sal record header concern
@ 2005-12-12 10:02 xb
2005-12-13 4:11 ` Keith Owens
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: xb @ 2005-12-12 10:02 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]
Hello Keith and all
It seems there is a concern around the SAL record header:
SEVERITY item is defined as a 8 bits item in SAL documentation
($B.2.1 rev december 2003), but as an u16 in sal.h.
This has the side effect that current code in mca.c does not call
ia64_sal_clear_state_info() upon receiving corrected platform errors
(priority is reported as 258 instead of 2).
--- linux-2.6.12.6/include/asm-ia64/sal.h~ 2005-08-29
18:55:27.000000000 +0200
+++ linux-2.6.12.6/include/asm-ia64/sal.h 2005-12-12
10:19:17.000000000 +0100
@@ -320,7 +320,8 @@
typedef struct sal_log_record_header {
u64 id; /* Unique monotonically increasing ID */
sal_log_revision_t revision; /* Major and Minor revision of
header */
- u16 severity; /* Error Severity */
+ u8 severity; /* Error Severity */
+ u8 validation_bits; /* Validation Bits */
u32 len; /* Length of this error log in bytes */
sal_log_timestamp_t timestamp; /* Timestamp */
efi_guid_t platform_guid; /* Unique OEM Platform ID */
[-- Attachment #2: xavier.bru.vcf --]
[-- Type: text/x-vcard, Size: 304 bytes --]
begin:vcard
fn:Xavier Bru
n:Bru;Xavier
adr:;;1 rue de Provence, BP 208;38432 Echirolles Cedex;;;France
email;internet:Xavier.Bru@bull.net
title:BULL/DT/Open Software/linux/ia64
tel;work:+33 (0)4 76 29 77 45
tel;fax:+33 (0)4 76 29 77 70
x-mozilla-html:TRUE
url:http://www.bull.com
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: sal record header concern
2005-12-12 10:02 sal record header concern xb
@ 2005-12-13 4:11 ` Keith Owens
2005-12-13 4:57 ` Luck, Tony
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Keith Owens @ 2005-12-13 4:11 UTC (permalink / raw)
To: linux-ia64
On Mon, 12 Dec 2005 11:02:54 +0100,
xb <xavier.bru@bull.net> wrote:
>This is a multi-part message in MIME format.
>--------------040306040709010208040006
>Content-Transfer-Encoding: 7bit
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Please change your mailer not to use format=flowed. It destroys the
patch format.
>It seems there is a concern around the SAL record header:
> SEVERITY item is defined as a 8 bits item in SAL documentation
>($B.2.1 rev december 2003), but as an u16 in sal.h.
>This has the side effect that current code in mca.c does not call
>ia64_sal_clear_state_info() upon receiving corrected platform errors
>(priority is reported as 258 instead of 2).
I agree that the record definition is wrong, it should be a pair of
bytes. However I want to check why you are seeing a value of 258
instead of 2. hd output on a typical SGI salinfo record header
0000 03 00 00 03 F4 A1 02 00 02 00 02 00 38 02 00 00 * ............8... *
|-------- ID ----------| |rev| |sev| |--length-|
Even though the severity code is defined as 2 bytes instead of the
correct 1 byte, it still gives the value '2' in little endian mode.
Is your severity "code" set to 02 80? VALIDATION_BITS Bit 0 = if 1,
the OEM_PLATFORM_ID field below contains valid information.
Useful command 'hd', defined as
hexdump -e '"%04.4_Ax\n"' \
-e '"%04.4_ax "' \
-e '4/1 "%02X " " " 4/1 "%02X " " " 4/1 "%02X " " " 4/1 "%02X "' \
-e '" * " 16/1 "%_p" " *"' \
-e '"\n"' \
$*
^ permalink raw reply [flat|nested] 5+ messages in thread* RE: sal record header concern
2005-12-12 10:02 sal record header concern xb
2005-12-13 4:11 ` Keith Owens
@ 2005-12-13 4:57 ` Luck, Tony
2005-12-13 5:13 ` Keith Owens
2005-12-13 13:51 ` xb
3 siblings, 0 replies; 5+ messages in thread
From: Luck, Tony @ 2005-12-13 4:57 UTC (permalink / raw)
To: linux-ia64
> Is your severity "code" set to 02 80? VALIDATION_BITS Bit 0 = if 1,
> the OEM_PLATFORM_ID field below contains valid information.
If the 16-bit value is 258, then the two bytes must be "02 01" (since
258 = 2 + 1*256). This looks perfectly legal ... the "1" in the next
byte up (the VALIDATION_BITS) indicating that the OEM_PLATFORM_ID
contains information.
-Tony
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sal record header concern
2005-12-12 10:02 sal record header concern xb
2005-12-13 4:11 ` Keith Owens
2005-12-13 4:57 ` Luck, Tony
@ 2005-12-13 5:13 ` Keith Owens
2005-12-13 13:51 ` xb
3 siblings, 0 replies; 5+ messages in thread
From: Keith Owens @ 2005-12-13 5:13 UTC (permalink / raw)
To: linux-ia64
On Mon, 12 Dec 2005 20:57:15 -0800,
"Luck, Tony" <tony.luck@intel.com> wrote:
>> Is your severity "code" set to 02 80? VALIDATION_BITS Bit 0 = if 1,
>> the OEM_PLATFORM_ID field below contains valid information.
>
>If the 16-bit value is 258, then the two bytes must be "02 01" (since
>258 = 2 + 1*256). This looks perfectly legal ... the "1" in the next
>byte up (the VALIDATION_BITS) indicating that the OEM_PLATFORM_ID
>contains information.
-ENOTENOUGHCOFFEE. Every now and again my brain slips into big endian
mode (spending too much time on IBM mainframes) and starts numbering
bits left to right :(
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sal record header concern
2005-12-12 10:02 sal record header concern xb
` (2 preceding siblings ...)
2005-12-13 5:13 ` Keith Owens
@ 2005-12-13 13:51 ` xb
3 siblings, 0 replies; 5+ messages in thread
From: xb @ 2005-12-13 13:51 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 647 bytes --]
Luck, Tony wrote:
>>Is your severity "code" set to 02 80? VALIDATION_BITS Bit 0 = if 1,
>>the OEM_PLATFORM_ID field below contains valid information.
>>
>>
>
>If the 16-bit value is 258, then the two bytes must be "02 01" (since
>258 = 2 + 1*256). This looks perfectly legal ... the "1" in the next
>byte up (the VALIDATION_BITS) indicating that the OEM_PLATFORM_ID
>contains information.
>
>-Tony
>-
>To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
This is exactly what occurs. Thanks.
[-- Attachment #2: xavier.bru.vcf --]
[-- Type: text/x-vcard, Size: 304 bytes --]
begin:vcard
fn:Xavier Bru
n:Bru;Xavier
adr:;;1 rue de Provence, BP 208;38432 Echirolles Cedex;;;France
email;internet:Xavier.Bru@bull.net
title:BULL/DT/Open Software/linux/ia64
tel;work:+33 (0)4 76 29 77 45
tel;fax:+33 (0)4 76 29 77 70
x-mozilla-html:TRUE
url:http://www.bull.com
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-12-13 13:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-12 10:02 sal record header concern xb
2005-12-13 4:11 ` Keith Owens
2005-12-13 4:57 ` Luck, Tony
2005-12-13 5:13 ` Keith Owens
2005-12-13 13:51 ` xb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox