Skip to contentSkip to conversation

microcode_intel: how to test extended signature codepath?

DISCUSSION Henrique de Moraes Holschuh 1 participant 1 message Sep 5, 2010

lore
Share & tools
lore
#0 lore raw

I have noticed that there is no public Intel microcode file using the Intel extended signature table. This means there is some code in microcode_intel.c that can't be easily field-tested. In fact, for all I know, it might never been tested at all or it has been left untested for several years and could have bitrotted.

Does Intel have a different microcode file that has at least one extended signature table we could use to test the kernel driver (and enhanced userspace helpers)? Anyone knows how to obtain it?

I suppose I could create a hacked microcode file for testing purposes based on the real microcode update entry for some processors and using some impossible signatures so that the driver is forced to find the match though the first, some middle, and the last extended signatures in the cooked up table, but this is very sub-optimal for a large number of reasons, least of all the fact that AFAIK I'd be forbidden to distribute it to anyone else that needs to touch the code, and the fact that it would be as correct as my understanding of the microcode datafile spec, which doesn't mean much.

Can anyone offer any help on this matter?

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh