Skip to content

Commit 00d75dc

Browse files
committed
drm/asahi: regs: Fix cluster count for G14D
Signed-off-by: Asahi Lina <[email protected]>
1 parent e9b2d6e commit 00d75dc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/asahi/regs.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ impl Resources {
236236
core_mask_regs.try_push(self.sgx_read32(CORE_MASKS_G14X))?;
237237
core_mask_regs.try_push(self.sgx_read32(CORE_MASKS_G14X + 4))?;
238238
core_mask_regs.try_push(self.sgx_read32(CORE_MASKS_G14X + 8))?;
239-
(id_counts_1 >> 8) & 0xff
239+
// Clusters per die * num dies
240+
((id_counts_1 >> 8) & 0xff) * ((id_counts_1 >> 16) & 0xf)
240241
}
241242
a => {
242243
dev_err!(self.dev, "Unknown GPU generation {}\n", a);

0 commit comments

Comments
 (0)