History

Merge tag 'drm-xe-fixes-2024-07-04' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes

Driver Changes: - One copy/paste mistake fix. - One error path fix causing an error pointer dereference.

Daniel Vetter committed 2 years ago

Commit cfbce3b2 parents 4931c01 1f006472 files · +7 −7Browse files

Unified · Split

2 files
  1. drivers/gpu/drm/xe/xe_gt_mcr.c +3 −3
  2. drivers/gpu/drm/xe/xe_migrate.c +4 −4
drivers/gpu/drm/xe/xe_gt_mcr.c+3−3
@@ -342,7 +342,7 @@ static void init_steering_oaddrm(struct xe_gt *gt) · 341 unmodified lines
342 else342 else
343 gt->steering[OADDRM].group_target = 1;343 gt->steering[OADDRM].group_target = 1;
344 344
345 gt->steering[DSS].instance_target = 0; /* unused */345 gt->steering[OADDRM].instance_target = 0; /* unused */
346}346}
347 347
348static void init_steering_sqidi_psmi(struct xe_gt *gt)348static void init_steering_sqidi_psmi(struct xe_gt *gt)
@@ -357,8 +357,8 @@ static void init_steering_sqidi_psmi(struct xe_gt *gt) · 8 unmodified lines
357 357
358static void init_steering_inst0(struct xe_gt *gt)358static void init_steering_inst0(struct xe_gt *gt)
359{359{
360 gt->steering[DSS].group_target = 0; /* unused */360 gt->steering[INSTANCE0].group_target = 0; /* unused */
361 gt->steering[DSS].instance_target = 0; /* unused */361 gt->steering[INSTANCE0].instance_target = 0; /* unused */
362}362}
363 363
364static const struct {364static const struct {
drivers/gpu/drm/xe/xe_migrate.c+4−4
@@ -1334,7 +1334,7 @@ xe_migrate_update_pgtables(struct xe_migrate *m, · 1333 unmodified lines
1334 GFP_KERNEL, true, 0);1334 GFP_KERNEL, true, 0);
1335 if (IS_ERR(sa_bo)) {1335 if (IS_ERR(sa_bo)) {
1336 err = PTR_ERR(sa_bo);1336 err = PTR_ERR(sa_bo);
1337 goto err;1337 goto err_bb;
1338 }1338 }
1339 1339
1340 ppgtt_ofs = NUM_KERNEL_PDE +1340 ppgtt_ofs = NUM_KERNEL_PDE +
@@ -1385,7 +1385,7 @@ xe_migrate_update_pgtables(struct xe_migrate *m, · 44 unmodified lines
1385 update_idx);1385 update_idx);
1386 if (IS_ERR(job)) {1386 if (IS_ERR(job)) {
1387 err = PTR_ERR(job);1387 err = PTR_ERR(job);
1388 goto err_bb;1388 goto err_sa;
1389 }1389 }
1390 1390
1391 /* Wait on BO move */1391 /* Wait on BO move */
@@ -1434,12 +1434,12 @@ xe_migrate_update_pgtables(struct xe_migrate *m, · 42 unmodified lines
1434 1434
1435err_job:1435err_job:
1436 xe_sched_job_put(job);1436 xe_sched_job_put(job);
1437err_sa:
1438 drm_suballoc_free(sa_bo, NULL);
1437err_bb:1439err_bb:
1438 if (!q)1440 if (!q)
1439 mutex_unlock(&m->job_mutex);1441 mutex_unlock(&m->job_mutex);
1440 xe_bb_free(bb, NULL);1442 xe_bb_free(bb, NULL);
1441err:
1442 drm_suballoc_free(sa_bo, NULL);
1443 return ERR_PTR(err);1443 return ERR_PTR(err);
1444}1444}
1445 1445

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t