We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19a4997 commit 4ce18e6Copy full SHA for 4ce18e6
drivers/gpu/drm/xe/tests/xe_mocs.c
@@ -46,8 +46,11 @@ static void read_l3cc_table(struct xe_gt *gt,
46
unsigned int fw_ref, i;
47
u32 reg_val;
48
49
- fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT);
50
- KUNIT_ASSERT_NE_MSG(test, fw_ref, 0, "Forcewake Failed.\n");
+ fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FORCEWAKE_ALL);
+ if (!xe_force_wake_ref_has_domain(fw_ref, XE_FORCEWAKE_ALL)) {
51
+ xe_force_wake_put(gt_to_fw(gt), fw_ref);
52
+ KUNIT_ASSERT_TRUE_MSG(test, true, "Forcewake Failed.\n");
53
+ }
54
55
for (i = 0; i < info->num_mocs_regs; i++) {
56
if (!(i & 1)) {
0 commit comments