Skip to contentSkip to conversation

NV_PMC_BOOT_0 architecture field

DISCUSSION Andy Ritger 2 participants 2 messages Sep 27, 2013 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi Ben,

At XDC you asked about the architecture field in NV_PMC_BOOT_0, and how to correctly determine the GPU architecture.

It looks like Nouveau is getting the architecture from bits 20-27 in NV_PMC_BOOT_0 (though masking off bits 20-23). For >= NV10, the architecture field in NV_PMC_BOOT_0 is bits 24-28. E.g., the GK2xx architecture has architecture value 0x10, while GK11x has value 0xF and GK10x has value 0xE.

I hope that helps,
- Andy

A message that is not in the archive (sent off-list or not yet received): 20130927180335.GB5577-4K9zQNqW3/fFT5IIyIEb6QC/[email protected]

#2 lore raw
Quoted 1 line · Andy Ritger

Hi Ben,

Hey Andy,

Quoted 9 lines

At XDC you asked about the architecture field in NV_PMC_BOOT_0, and how to correctly determine the GPU architecture.

It looks like Nouveau is getting the architecture from bits 20-27 in NV_PMC_BOOT_0 (though masking off bits 20-23). For >= NV10, the architecture field in NV_PMC_BOOT_0 is bits 24-28. E.g., the GK2xx architecture has architecture value 0x10, while GK11x has value 0xF and GK10x has value 0xE.

That helps a great deal. Knowing the bitfield was 28:24 right back to when you guys switched from the NV04 layout of NV_PMC_BOOT_0 means it'll be safe for us to trivially fix.

Thanks a lot!
Ben.

Quoted 5 lines

I hope that helps,
- Andy