Skip to contentSkip to conversation

Lots of ACPI warnings from newer iasl (20140926).

DISCUSSION Ian Campbell 2 participants 3 messages Dec 15, 2014 – Dec 18, 2014

lore
Share & tools
lore
#0 lore raw

isal 20140926-1 in Debian Jessie is rather vocal about tools/firmware/hvmloader/acpi. See below. Essentially, a few of these:
Control Method should be made Serialized (due to creation of named objects within)
a slew of:
Object is not referenced ^ (Name is within method [_CRS])
and a load of:
^ Reserved method should not return a value (_L02)

4.4 seems to produce a similar looking set of warnings, so I think this is a case of newer iasl having more warnings rather than a regression in our code.

I also tried iasl from 20141107-1 Sid and it is similarly vocal.

Ian.

make: Entering directory '/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader' make[1]: Entering directory '/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader' make -C acpi all
make[2]: Entering directory '/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/acpi' iasl -vs -p ssdt_s3 -tc ssdt_s3.asl

ASL Input:     ssdt_s3.asl - 33 lines, 172 bytes, 1 keywords
AML Output:    ssdt_s3.aml - 49 bytes, 1 named objects, 0 executable opcodes
Hex Dump:      ssdt_s3.hex - 844 bytes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 4 Optimizations sed -e 's/AmlCode/ssdt_s3/g' ssdt_s3.hex >ssdt_s3.h
rm -f ssdt_s3.hex ssdt_s3.aml
iasl -vs -p ssdt_s4 -tc ssdt_s4.asl

ASL Input:     ssdt_s4.asl - 33 lines, 172 bytes, 1 keywords
AML Output:    ssdt_s4.aml - 49 bytes, 1 named objects, 0 executable opcodes
Hex Dump:      ssdt_s4.hex - 844 bytes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 4 Optimizations sed -e 's/AmlCode/ssdt_s4/g' ssdt_s4.hex >ssdt_s4.h
rm -f ssdt_s4.hex ssdt_s4.aml
iasl -vs -p ssdt_pm -tc ssdt_pm.asl
ssdt_pm.asl 281: Method (HLPA, 0, NotSerialized)
Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

ssdt_pm.asl 368: Method (_BST, 0, NotSerialized)
Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

ssdt_pm.asl 406: Method (_BST, 0, NotSerialized)
Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

ASL Input:     ssdt_pm.asl - 424 lines, 8311 bytes, 192 keywords
AML Output:    ssdt_pm.aml - 1494 bytes, 64 named objects, 128 executable opcodes
Hex Dump:      ssdt_pm.hex - 14345 bytes

Compilation complete. 0 Errors, 0 Warnings, 3 Remarks, 31 Optimizations sed -e 's/AmlCode/ssdt_pm/g' ssdt_pm.hex >ssdt_pm.h
rm -f ssdt_pm.hex ssdt_pm.aml
iasl -vs -p ssdt_tpm -tc ssdt_tpm.asl

ASL Input:     ssdt_tpm.asl - 33 lines, 250 bytes, 3 keywords
AML Output:    ssdt_tpm.aml - 76 bytes, 3 named objects, 0 executable opcodes
Hex Dump:      ssdt_tpm.hex - 1070 bytes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
sed -e 's/AmlCode/ssdt_tpm/g' ssdt_tpm.hex >ssdt_tpm.h
rm -f ssdt_tpm.hex ssdt_tpm.aml
gcc -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -D__XEN_TOOLS__ -MMD -MF .build.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/acpi/../../../../tools/include -c -o build.o build.c
gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -Wdeclaration-after-statement -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/acpi/../../../../tools/include -o mk_dsdt mk_dsdt.c awk 'NR > 1 {print s} {s=$0}' dsdt.asl > dsdt_anycpu.asl
./mk_dsdt --maxcpu any >> dsdt_anycpu.asl
iasl -vs -p dsdt_anycpu -tc dsdt_anycpu.asl
dsdt_anycpu.asl 110: Method (_CRS, 0, NotSerialized)
Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt_anycpu.asl 151: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 151: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 151: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 152: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 152: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 153: 0x00000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 156: 0x00000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 158: ,, _Y01)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 158: ,, _Y01)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 161: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 161: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 161: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 162: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 162: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 163: 0x0000000000000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 165: 0x0000000FFFFFFFFF,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 166: 0x0000000000000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 167: 0x0000000000000010,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 168: ,, _Y02)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 168: ,, _Y02)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu.asl 5360: Return ( \_SB.PRSC() )
Warning 3104 - ^ Reserved method should not return a value (_L02)

ASL Input:     dsdt_anycpu.asl - 11013 lines, 387593 bytes, 8007 keywords
AML Output:    dsdt_anycpu.aml - 70833 bytes, 2470 named objects, 5537 executable opcodes
Hex Dump:      dsdt_anycpu.hex - 664451 bytes

Compilation complete. 0 Errors, 1 Warnings, 21 Remarks, 2630 Optimizations sed -e 's/AmlCode/dsdt_anycpu/g' dsdt_anycpu.hex >dsdt_anycpu.c echo "int dsdt_anycpu_len=sizeof(dsdt_anycpu);" >>dsdt_anycpu.c rm -f dsdt_anycpu.aml dsdt_anycpu.hex
gcc -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -D__XEN_TOOLS__ -MMD -MF .dsdt_anycpu.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/acpi/../../../../tools/include -c -o dsdt_anycpu.o dsdt_anycpu.c
awk 'NR > 1 {print s} {s=$0}' dsdt.asl > dsdt_15cpu.asl ./mk_dsdt --maxcpu 15 >> dsdt_15cpu.asl
iasl -vs -p dsdt_15cpu -tc dsdt_15cpu.asl
dsdt_15cpu.asl 110: Method (_CRS, 0, NotSerialized)
Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt_15cpu.asl 151: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 151: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 151: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 152: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 152: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 153: 0x00000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 156: 0x00000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 158: ,, _Y01)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 158: ,, _Y01)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 161: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 161: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 161: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 162: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 162: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 163: 0x0000000000000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 165: 0x0000000FFFFFFFFF,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 166: 0x0000000000000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 167: 0x0000000000000010,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 168: ,, _Y02)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 168: ,, _Y02)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_15cpu.asl 1066: Return ( \_SB.PRSC() )
Warning 3104 - ^ Reserved method should not return a value (_L02)

ASL Input:     dsdt_15cpu.asl - 6719 lines, 245586 bytes, 4815 keywords
AML Output:    dsdt_15cpu.aml - 48530 bytes, 1566 named objects, 3249 executable opcodes
Hex Dump:      dsdt_15cpu.hex - 455349 bytes

Compilation complete. 0 Errors, 1 Warnings, 21 Remarks, 1062 Optimizations sed -e 's/AmlCode/dsdt_15cpu/g' dsdt_15cpu.hex >dsdt_15cpu.c echo "int dsdt_15cpu_len=sizeof(dsdt_15cpu);" >>dsdt_15cpu.c rm -f dsdt_15cpu.aml dsdt_15cpu.hex

gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .dsdt_15cpu.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/acpi/../../../../tools/include  -c -o dsdt_15cpu.o dsdt_15cpu.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .static_tables.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/acpi/../../../../tools/include  -c -o static_tables.o static_tables.c 

awk 'NR > 1 {print s} {s=$0}' dsdt.asl > dsdt_anycpu_qemu_xen.asl ./mk_dsdt --dm-version qemu-xen >> dsdt_anycpu_qemu_xen.asl iasl -vs -p dsdt_anycpu_qemu_xen -tc dsdt_anycpu_qemu_xen.asl
dsdt_anycpu_qemu_xen.asl 110: Method (_CRS, 0, NotSerialized)
Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)

dsdt_anycpu_qemu_xen.asl 151: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 151: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 151: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 152: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 152: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 153: 0x00000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 156: 0x00000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 158: ,, _Y01)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 158: ,, _Y01)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 161: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 161: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 161: ResourceProducer, PosDecode, MinFixed, MaxFixed,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 162: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 162: NonCacheable, ReadWrite,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 163: 0x0000000000000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 165: 0x0000000FFFFFFFFF,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 166: 0x0000000000000000,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 167: 0x0000000000000010,
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 168: ,, _Y02)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 168: ,, _Y02)
Remark 2089 - Object is not referenced ^ (Name is within method [_CRS])

dsdt_anycpu_qemu_xen.asl 5360: Return ( \_SB.PRSC() )
Warning 3104 - Reserved method should not return a value ^ (_E02)

dsdt_anycpu_qemu_xen.asl 5753: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5761: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5769: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5777: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5785: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5793: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5801: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5809: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5817: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5825: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5833: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5841: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5849: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5857: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5865: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5873: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5881: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5889: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5897: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5905: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5913: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5921: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5929: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5937: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5945: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5953: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5961: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5969: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5977: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5985: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

dsdt_anycpu_qemu_xen.asl 5993: Return ( 0x0 )
Warning 3104 - Reserved method should not return a value ^ (_EJ0)

ASL Input:     dsdt_anycpu_qemu_xen.asl - 6199 lines, 204324 bytes, 4373 keywords
AML Output:    dsdt_anycpu_qemu_xen.aml - 34545 bytes, 1314 named objects, 3059 executable opcodes
Hex Dump:      dsdt_anycpu_qemu_xen.hex - 324259 bytes

Compilation complete. 0 Errors, 32 Warnings, 21 Remarks, 2602 Optimizations
sed -e 's/AmlCode/dsdt_anycpu_qemu_xen/g' dsdt_anycpu_qemu_xen.hex >dsdt_anycpu_qemu_xen.c
echo "int dsdt_anycpu_qemu_xen_len=sizeof(dsdt_anycpu_qemu_xen);" >>dsdt_anycpu_qemu_xen.c
rm -f dsdt_anycpu_qemu_xen.aml dsdt_anycpu_qemu_xen.hex
gcc -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -D__XEN_TOOLS__ -MMD -MF .dsdt_anycpu_qemu_xen.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/acpi/../../../../tools/include -c -o dsdt_anycpu_qemu_xen.o dsdt_anycpu_qemu_xen.c
ar rc acpi.a build.o dsdt_anycpu.o dsdt_15cpu.o static_tables.o dsdt_anycpu_qemu_xen.o
make[2]: Leaving directory '/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/acpi' make[1]: Leaving directory '/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader'
make hvmloader
make[1]: Entering directory '/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader'
echo "/* Autogenerated file. DO NOT EDIT */" > roms.inc.new
echo "#ifdef ROM_INCLUDE_ROMBIOS" >> roms.inc.new
sh ./mkhex rombios ../rombios/BIOS-bochs-latest >> roms.inc.new
echo "#endif" >> roms.inc.new
echo "#ifdef ROM_INCLUDE_SEABIOS" >> roms.inc.new
sh ./mkhex seabios ../seabios-dir/out/bios.bin >> roms.inc.new
echo "#endif" >> roms.inc.new
echo "#ifdef ROM_INCLUDE_VGABIOS" >> roms.inc.new
sh ./mkhex vgabios_stdvga ../vgabios/VGABIOS-lgpl-latest.bin >> roms.inc.new
echo "#endif" >> roms.inc.new
echo "#ifdef ROM_INCLUDE_VGABIOS" >> roms.inc.new
sh ./mkhex vgabios_cirrusvga ../vgabios/VGABIOS-lgpl-latest.cirrus.bin >> roms.inc.new
echo "#endif" >> roms.inc.new
echo "#ifdef ROM_INCLUDE_ETHERBOOT" >> roms.inc.new
sh ./mkhex etherboot ../etherboot/ipxe/src/bin/rtl8139.rom ../etherboot/ipxe/src/bin/8086100e.rom >> roms.inc.new echo "#endif" >> roms.inc.new
mv roms.inc.new roms.inc

gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .hvmloader.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o hvmloader.o hvmloader.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .mp_tables.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o mp_tables.o mp_tables.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .util.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o util.o util.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .smbios.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS -D__SMBIOS_DATE__="\"12/15/2014\""  -c -o smbios.o smbios.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .smp.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o smp.o smp.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .cacheattr.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o cacheattr.o cacheattr.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .xenbus.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o xenbus.o xenbus.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .e820.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o e820.o e820.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .pci.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o pci.o pci.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .pir.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o pir.o pir.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .ctype.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o ctype.o ctype.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .hvm_param.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o hvm_param.o hvm_param.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .tests.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o tests.o tests.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .optionroms.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o optionroms.o optionroms.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .32bitbios_support.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o 32bitbios_support.o 32bitbios_support.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .rombios.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o rombios.o rombios.c 
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -D__XEN_TOOLS__ -MMD -MF .seabios.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror -fno-stack-protector -fno-exceptions -fno-builtin -msoft-float -I/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader/../../../tools/include -DENABLE_ROMBIOS -DENABLE_SEABIOS  -c -o seabios.o seabios.c 

ld -melf_i386 -N -Ttext 0x100000 -o hvmloader.tmp hvmloader.o mp_tables.o util.o smbios.o smp.o cacheattr.o xenbus.o e820.o pci.o pir.o ctype.o hvm_param.o tests.o optionroms.o 32bitbios_support.o rombios.o seabios.o acpi/acpi.a objcopy hvmloader.tmp hvmloader
rm -f hvmloader.tmp
make[1]: Leaving directory '/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader'
make: Leaving directory '/local/scratch/ianc/devel/xen.git/tools/firmware/hvmloader'

#1 lore raw
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 15.12.14 at 11:44, <[email protected]> wrote:

isal 20140926-1 in Debian Jessie is rather vocal about tools/firmware/hvmloader/acpi. See below. Essentially, a few of these:
Control Method should be made Serialized (due to creation of named objects within)
a slew of:
Object is not referenced ^ (Name is within method [_CRS])
and a load of:
^ Reserved method should not return a value (_L02)

Quoted 5 lines

4.4 seems to produce a similar looking set of warnings, so I think this is a case of newer iasl having more warnings rather than a regression in our code.

I also tried iasl from 20141107-1 Sid and it is similarly vocal.

I had noticed some of these too, and was intending to address them eventually. As usual, other things continued to take higher priority. But the lack of serialization of some of the methods I didn't notice so far, and those seem more relevant to fix than the others. I'll see to get to this.

Jan

#2 lore raw
In reply to Ian Campbell
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 15.12.14 at 11:44, <[email protected]> wrote:

isal 20140926-1 in Debian Jessie is rather vocal about tools/firmware/hvmloader/acpi. See below. Essentially, a few of these:
Control Method should be made Serialized (due to creation of named objects within)

I fixed these. While they seemed important to get fixed at the first glance, I don't think the fix deserves rushing in before 4.5 got branched off: In the _CRS case it is rather unlikely that racing invocations would be done by an OS. And in the _BST cases the routine has custom serialization in place already. So the fix is rather cosmetic afaict.

Quoted 2 lines

a slew of:
Object is not referenced ^ (Name is within method [_CRS])

I have no idea how to avoid these - we have to name the two respective memory regions, and not us accessing every of its fields producing warnings seems more like an overacting iasl than a source problem to me.

Quoted 2 lines

and a load of:
^ Reserved method should not return a value (_L02)

These were of course trivial to address, but are also purely cosmetic. I'll defer posting the patch until after branching too.

Jan