Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3075 Discussions

SynchronizeFirstTask Return sts=MFX_ERR_DEVICE_FAILED, when enable lowpower . GUC and HUC is opened

fujianfang
Beginner
2,129 Views

OS: ubuntu 20.04

kernel:  Intel Linux kernel 5.10.0-1023-oem

MediaSDK 2022q2

CPU Model: 1165G7 Tiger-lake

We use the YUV data needed by the encoder is filled in by myself. mem type is SYSTEM_MEMORY.  -17  error occurs frequently in the coding process.

MFXVideoSession::virtual mfxStatus SyncOperation(mfxSyncPoint syncp, mfxU32 wait) return -17, and couldn't return to normal, unless destroy and recreate.

 

If only 265 or 264 is encoded,  the problem does not reappear temporarily.

If both h.265 and h.264 (with lowpower:on ) is encoded, the problem is appear in a few minutes.

 

Because we would use at least 8 stream encoding we must open lowpower parameters to make sure all encoding process is quick enough.

 

We have turned on GUC and HUC.

 

[10.12.32.197]# cat /sys/kernel/debug/dri/0/gt/uc/guc_info
GuC firmware: i915/tgl_guc_35.2.0.bin
status: RUNNING
version: wanted 35.2, found 35.2
uCode: 417344 bytes
RSA: 256 bytes

GuC status 0x8002f077:
Bootrom status = 0x3b
uKernel status = 0xf0
MIA Core status = 0x2

Scratch registers:
0: 0x0
1: 0x0
2: 0x7effd3
3: 0x0
4: 0x4000
5: 0x40
6: 0x1004
7: 0x0
8: 0x0
9: 0x0
10: 0x0
11: 0x0
12: 0x0
13: 0x0
14: 0x0
15: 0x0

GuC log relay not created
[TM1400 B640B6E7 ~ ]
[10.12.32.197]# cat /sys/kernel/debug/dri/0/gt/uc/huc_info
HuC firmware: i915/tgl_huc_7.5.0.bin
status: RUNNING
version: wanted 7.5, found 7.5
uCode: 580352 bytes
RSA: 256 bytes
HuC status: 0x00090001

 

 

/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode h265 -gpucopy::on -i /tmp/yuv/cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080 -dstw 1920 -dsth 1080 -b 10000 -fps 60 -f 60 -hw -async 2 -lowpower:on -u speed -timeout 600 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode h265 -gpucopy::on -i /tmp/yuv/cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080 -dstw 1920 -dsth 1080 -b 10000 -fps 60 -f 60 -hw -async 2 -lowpower:on -u speed -timeout 600 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode h265 -gpucopy::on -i /tmp/yuv/cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080 -dstw 1920 -dsth 1080 -b 10000 -fps 60 -f 60 -hw -async 2 -lowpower:on -u speed -timeout 600 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode h265 -gpucopy::on -i /tmp/yuv/cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080 -dstw 1920 -dsth 1080 -b 10000 -fps 60 -f 60 -hw -async 2 -lowpower:on -u speed -timeout 600 &
 
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode h264 -gpucopy::on -i /tmp/yuv/cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080 -dstw 1920 -dsth 1080 -b 15000 -fps 60 -f 60 -hw -async 2 -lowpower:on -u speed -timeout 600 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode h264 -gpucopy::on -i /tmp/yuv/cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080 -dstw 1920 -dsth 1080 -b 15000 -fps 60 -f 60 -hw -async 2 -lowpower:on -u speed -timeout 600 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode h264 -gpucopy::on -i /tmp/yuv/cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080 -dstw 1920 -dsth 1080 -b 15000 -fps 60 -f 60 -hw -async 2 -lowpower:on -u speed -timeout 600 &
/opt/intel/mediasdk/share/mfx/samples/_bin/sample_encode h264 -gpucopy::on -i /tmp/yuv/cnn.yuv -o test.h265 -nv12 -w 1920 -h 1080 -dstw 1920 -dsth 1080 -b 15000 -fps 60 -f 60 -hw -async 2 -lowpower:on -u speed -timeout 600 &
0 Kudos
9 Replies
JaideepK_Intel
Employee
2,071 Views

Hi,


We were able to reproduce your issue from our end, and we are working on this internally. We will get back to you with an update.


Thanks,

Jaideep


0 Kudos
fujianfang
Beginner
2,057 Views

hi Jaideep,

Thanks for the reply, I found another clue, when I change kernel to 5.15.0-56-generic, it use i915/tgl_huc_7.9.3.bin and i915/tgl_guc_62.0.0.bin. there is no such error.

0 Kudos
JaideepK_Intel
Employee
2,042 Views

Hi,


Glad to know your issue is resolved after changing kernel.

Could you please provide a memory dump and full machine specifications, if possible?


Thanks,

Jaideep


0 Kudos
fujianfang
Beginner
2,020 Views

uname -a
Linux tpack 5.10.0-1023-oem #1 SMP Wed May 12 07:03:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

 

cat /proc/cpuinfo

model name : 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz


 

[10.12.32.197]# dmidecode -t baseboard
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.
# SMBIOS implementations newer than version 3.2.0 are not
# fully supported by this version of dmidecode.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: Intel Corporation
Product Name: CM11EBI716W
Version: M15483-302
Serial Number: GEEB1220006G
Asset Tag:
Features:
Board is a hosting board
Board is replaceable
Location In Chassis:
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0

 

 

 

dmidecode -t memory
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.
# SMBIOS implementations newer than version 3.2.0 are not
# fully supported by this version of dmidecode.

Handle 0x0012, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 16 GB
Error Information Handle: Not Provided
Number Of Devices: 8

Handle 0x001D, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0012
Error Information Handle: Not Provided
Total Width: 16 bits
Data Width: 16 bits
Size: 2048 MB
Form Factor: Row Of Chips
Set: None
Locator: Controller0-ChannelA
Bank Locator: BANK 0
Type: LPDDR4
Type Detail: Synchronous
Speed: 4267 MT/s
Manufacturer: Micron Technology
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: 53E1G32D4NQ-046
Rank: 2
Configured Memory Speed: 4267 MT/s
Minimum Voltage: 0.6 V
Maximum Voltage: 0.6 V
Configured Voltage: 0.6 V
Memory Technology: DRAM
Memory Operating Mode Capability: Volatile memory
Firmware Version: Not Specified
Module Manufacturer ID: Bank 1, Hex 0x2C
Module Product ID: Unknown
Memory Subsystem Controller Manufacturer ID: Unknown
Memory Subsystem Controller Product ID: Unknown
Non-Volatile Size: None
Volatile Size: 2 GB
Cache Size: None
Logical Size: None

Handle 0x001E, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0012
Error Information Handle: Not Provided
Total Width: 16 bits
Data Width: 16 bits
Size: 2048 MB
Form Factor: Row Of Chips
Set: None
Locator: Controller0-ChannelB
Bank Locator: BANK 1
Type: LPDDR4
Type Detail: Synchronous
Speed: 4267 MT/s
Manufacturer: Micron Technology
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: 53E1G32D4NQ-046
Rank: 2
Configured Memory Speed: 4267 MT/s
Minimum Voltage: 0.6 V
Maximum Voltage: 0.6 V
Configured Voltage: 0.6 V
Memory Technology: DRAM
Memory Operating Mode Capability: Volatile memory
Firmware Version: Not Specified
Module Manufacturer ID: Bank 1, Hex 0x2C
Module Product ID: Unknown
Memory Subsystem Controller Manufacturer ID: Unknown
Memory Subsystem Controller Product ID: Unknown
Non-Volatile Size: None
Volatile Size: 2 GB
Cache Size: None
Logical Size: None

Handle 0x001F, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0012
Error Information Handle: Not Provided
Total Width: 16 bits
Data Width: 16 bits
Size: 2048 MB
Form Factor: Row Of Chips
Set: None
Locator: Controller0-ChannelC
Bank Locator: BANK 2
Type: LPDDR4
Type Detail: Synchronous
Speed: 4267 MT/s
Manufacturer: Micron Technology
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: 53E1G32D4NQ-046
Rank: 2
Configured Memory Speed: 4267 MT/s
Minimum Voltage: 0.6 V
Maximum Voltage: 0.6 V
Configured Voltage: 0.6 V
Memory Technology: DRAM
Memory Operating Mode Capability: Volatile memory
Firmware Version: Not Specified
Module Manufacturer ID: Bank 1, Hex 0x2C
Module Product ID: Unknown
Memory Subsystem Controller Manufacturer ID: Unknown
Memory Subsystem Controller Product ID: Unknown
Non-Volatile Size: None
Volatile Size: 2 GB
Cache Size: None
Logical Size: None

Handle 0x0020, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0012
Error Information Handle: Not Provided
Total Width: 16 bits
Data Width: 16 bits
Size: 2048 MB
Form Factor: Row Of Chips
Set: None
Locator: Controller0-ChannelD
Bank Locator: BANK 3
Type: LPDDR4
Type Detail: Synchronous
Speed: 4267 MT/s
Manufacturer: Micron Technology
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: 53E1G32D4NQ-046
Rank: 2
Configured Memory Speed: 4267 MT/s
Minimum Voltage: 0.6 V
Maximum Voltage: 0.6 V
Configured Voltage: 0.6 V
Memory Technology: DRAM
Memory Operating Mode Capability: Volatile memory
Firmware Version: Not Specified
Module Manufacturer ID: Bank 1, Hex 0x2C
Module Product ID: Unknown
Memory Subsystem Controller Manufacturer ID: Unknown
Memory Subsystem Controller Product ID: Unknown
Non-Volatile Size: None
Volatile Size: 2 GB
Cache Size: None
Logical Size: None

Handle 0x0021, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0012
Error Information Handle: Not Provided
Total Width: 16 bits
Data Width: 16 bits
Size: 2048 MB
Form Factor: Row Of Chips
Set: None
Locator: Controller1-ChannelA
Bank Locator: BANK 0
Type: LPDDR4
Type Detail: Synchronous
Speed: 4267 MT/s
Manufacturer: Micron Technology
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: 53E1G32D4NQ-046
Rank: 2
Configured Memory Speed: 4267 MT/s
Minimum Voltage: 0.6 V
Maximum Voltage: 0.6 V
Configured Voltage: 0.6 V
Memory Technology: DRAM
Memory Operating Mode Capability: Volatile memory
Firmware Version: Not Specified
Module Manufacturer ID: Bank 1, Hex 0x2C
Module Product ID: Unknown
Memory Subsystem Controller Manufacturer ID: Unknown
Memory Subsystem Controller Product ID: Unknown
Non-Volatile Size: None
Volatile Size: 2 GB
Cache Size: None
Logical Size: None

Handle 0x0022, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0012
Error Information Handle: Not Provided
Total Width: 16 bits
Data Width: 16 bits
Size: 2048 MB
Form Factor: Row Of Chips
Set: None
Locator: Controller1-ChannelB
Bank Locator: BANK 1
Type: LPDDR4
Type Detail: Synchronous
Speed: 4267 MT/s
Manufacturer: Micron Technology
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: 53E1G32D4NQ-046
Rank: 2
Configured Memory Speed: 4267 MT/s
Minimum Voltage: 0.6 V
Maximum Voltage: 0.6 V
Configured Voltage: 0.6 V
Memory Technology: DRAM
Memory Operating Mode Capability: Volatile memory
Firmware Version: Not Specified
Module Manufacturer ID: Bank 1, Hex 0x2C
Module Product ID: Unknown
Memory Subsystem Controller Manufacturer ID: Unknown
Memory Subsystem Controller Product ID: Unknown
Non-Volatile Size: None
Volatile Size: 2 GB
Cache Size: None
Logical Size: None

Handle 0x0023, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0012
Error Information Handle: Not Provided
Total Width: 16 bits
Data Width: 16 bits
Size: 2048 MB
Form Factor: Row Of Chips
Set: None
Locator: Controller1-ChannelC
Bank Locator: BANK 2
Type: LPDDR4
Type Detail: Synchronous
Speed: 4267 MT/s
Manufacturer: Micron Technology
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: 53E1G32D4NQ-046
Rank: 2
Configured Memory Speed: 4267 MT/s
Minimum Voltage: 0.6 V
Maximum Voltage: 0.6 V
Configured Voltage: 0.6 V
Memory Technology: DRAM
Memory Operating Mode Capability: Volatile memory
Firmware Version: Not Specified
Module Manufacturer ID: Bank 1, Hex 0x2C
Module Product ID: Unknown
Memory Subsystem Controller Manufacturer ID: Unknown
Memory Subsystem Controller Product ID: Unknown
Non-Volatile Size: None
Volatile Size: 2 GB
Cache Size: None
Logical Size: None

Handle 0x0024, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0012
Error Information Handle: Not Provided
Total Width: 16 bits
Data Width: 16 bits
Size: 2048 MB
Form Factor: Row Of Chips
Set: None
Locator: Controller1-ChannelD
Bank Locator: BANK 3
Type: LPDDR4
Type Detail: Synchronous
Speed: 4267 MT/s
Manufacturer: Micron Technology
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: 53E1G32D4NQ-046
Rank: 2
Configured Memory Speed: 4267 MT/s
Minimum Voltage: 0.6 V
Maximum Voltage: 0.6 V
Configured Voltage: 0.6 V
Memory Technology: DRAM
Memory Operating Mode Capability: Volatile memory
Firmware Version: Not Specified
Module Manufacturer ID: Bank 1, Hex 0x2C
Module Product ID: Unknown
Memory Subsystem Controller Manufacturer ID: Unknown
Memory Subsystem Controller Product ID: Unknown
Non-Volatile Size: None
Volatile Size: 2 GB
Cache Size: None
Logical Size: None

0 Kudos
fujianfang
Beginner
2,036 Views

But we don't want to replace the kernel, can you help me to see why there is a problem with 5.10.0-1023-oem (i915/tgl_guc_35.2.0.bin i915/tgl_huc_7.5.0.bin)

0 Kudos
JaideepK_Intel
Employee
1,973 Views

Hi,

 

Sorry to say this, but unfortunately, 5.15 is supported on the TGL platform.

Here is a list of Intel Graphics Support in Linux Kernels: https://github.com/Intel-Media-SDK/MediaSDK/wiki/Intel-Graphics-Support-in-Linux-Kernels.

 

If you want to try the 5.10 kernel, please choose the supported platform. attaching a screenshot for your reference.

JaideepK_Intel_0-1670995880382.png

 

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!

 

Regards,

Jaideep

 

0 Kudos
JaideepK_Intel
Employee
1,690 Views

Hi,


TGL platform is known to be fully supported by Linux kernel 5.15 or newer. Some Linux distributions may customize their kernels pulling in changes from the later kernels (forklifting). In such a case you may find that ITGL also works with some older kernel versions. This document can give some idea on which kernel is compatible with which Intel Hardware: https://github.com/Intel-Media-SDK/MediaSDK/wiki/Intel-Graphics-Support-in-Linux-Kernels


If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!


Regards,

Jaideep


0 Kudos
JaideepK_Intel
Employee
1,650 Views

Hi,


If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!


Thanks,

Jaideep


0 Kudos
JaideepK_Intel
Employee
1,597 Views

Hi,

 

We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.

 

Thanks,

Jaideep

 

0 Kudos
Reply