Skip to content

Commit 0aa2040

Browse files
riastradhriastradh
authored andcommitted
i915: Fix another ggtt unit indexing error.
Yeesh.
1 parent c2a3472 commit 0aa2040

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

sys/external/bsd/drm2/dist/drm/i915/gt/intel_ggtt.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/* $NetBSD: intel_ggtt.c,v 1.17 2025/01/26 17:52:23 riastradh Exp $ */
1+
/* $NetBSD: intel_ggtt.c,v 1.18 2025/01/26 18:21:15 riastradh Exp $ */
22

33
// SPDX-License-Identifier: MIT
44
/*
55
* Copyright © 2020 Intel Corporation
66
*/
77

88
#include <sys/cdefs.h>
9-
__KERNEL_RCSID(0, "$NetBSD: intel_ggtt.c,v 1.17 2025/01/26 17:52:23 riastradh Exp $");
9+
__KERNEL_RCSID(0, "$NetBSD: intel_ggtt.c,v 1.18 2025/01/26 18:21:15 riastradh Exp $");
1010

1111
#include <linux/stop_machine.h>
1212

@@ -392,7 +392,8 @@ static void gen8_ggtt_clear_range(struct i915_address_space *vm,
392392

393393
#ifdef __NetBSD__
394394
for (i = 0; i < num_entries; i++)
395-
gen8_set_pte(ggtt->gsmt, ggtt->gsmh, first_entry + i,
395+
gen8_set_pte(ggtt->gsmt, ggtt->gsmh,
396+
first_entry + i*sizeof(gen8_pte_t),
396397
scratch_pte);
397398
#else
398399
for (i = 0; i < num_entries; i++)

0 commit comments

Comments
 (0)