Comment 174 for bug 1734147

Revision history for this message
Paul Sladen (sladen) wrote : Re: Ubuntu 17.10 corrupting BIOS - many LENOVO laptops models

Could somebody with the hardware also do a test with the following lines commented out in 'intel-spi.c', commenting out the writel() that disables SMI interrupt generation, re-compile the kernel and retest:

  https://github.com/torvalds/linux/blob/8afda8b26d01ee26a60ef2f0284a7f01a5ed96f8/drivers/mtd/spi-nor/intel-spi.c#L324

 /* Disable #SMI generation */
 val = readl(ispi->base + HSFSTS_CTL);
 val &= ~HSFSTS_CTL_FSMIE;
 writel(val, ispi->base + HSFSTS_CTL); // comment out this line (hardware sequencer)

and:

  https://github.com/torvalds/linux/blob/8afda8b26d01ee26a60ef2f0284a7f01a5ed96f8/drivers/mtd/spi-nor/intel-spi.c#L354

 /* Disable #SMI generation from SW sequencer */
 val = readl(ispi->sregs + SSFSTS_CTL);
 val &= ~SSFSTS_CTL_FSMIE;
 writel(val, ispi->sregs + SSFSTS_CTL); // comment out this line (software sequencer)