Commit 32f8759b authored by Sally Qi's avatar Sally Qi Committed by Antonio Argenziano

tests/i915/gem_huc_copy: Enable a HuC copy test

This test case loads the HuC copy firmware to copy the content of
the source buffer to the destination buffer.

v2: (Tony Ye)
 * Restructured some functions and files.
 * Defined the copy buffer size as 4K explicitly as the HuC Copy kernel
   always copy 4K bytes from src buffer to dst buffer.

v3: (Feng Qi, Antonio Argenziano, Tony Ye)
 * Restructured some functions as igt requested, exclude libdrm function call.
 * Remove huc function wrappers
 * Random initialize source input buffer

v4: (Robert Fosha)
 * Fix autotools build failure.

v5: (Feng Qi, Tony Ye)
 * Released all bo buffer after huc copying.
 * Restructured huc_copy() function.

v6: (Feng Qi)
 * Fixed the function of huc enabling and status check
 * Added huc_copy to fast feedback testlist

v7: (Tony Ye, Feng Qi, Robert Fosha, Chris Wilson, Michal Wajdeczko)
 * Check error with HUC_STATUS ioctl instead of debugfs

v8: (Antonio Argenziano)
 * Remove unnecessary variable.
 * Add huc_load subtest.
 * Move failure checks out of igt_fixture.
 * get_huc_status() returns errno and then status as a parameter

v9: (Antonio Argenziano)
 * Remove huc_load subtest - to be added later.

 * Rebase
 * Remove huc_load subtest from fast-feedback.testlist.
Signed-off-by: default avatarFeng Qi <>
Signed-off-by: default avatarTony Ye <>
Cc: Michal Wajdeczko <>
Cc: Chris Wilson <>
Acked-by: Antonio Argenziano's avatarAntonio Argenziano <>
parent 21f8204e
Pipeline #177383 passed with stages
in 13 minutes and 50 seconds