• Christopher Li's avatar
    e1000: prevent corruption of EEPROM/NVM · 78566fec
    Christopher Li authored
    Andrey reports e1000 corruption, and that a patch in vmware's ESX fixed
    it.
    
    The EEPROM corruption is triggered by concurrent access of the EEPROM
    read/write. Putting a lock around it solve the problem.
    
    [akpm@linux-foundation.org: use DEFINE_SPINLOCK to avoid confusing lockdep]
    Signed-off-by: default avatarChristopher Li <chrisl@vmware.com>
    Reported-by: default avatarAndrey Borzenkov <arvidjaar@mail.ru>
    Cc: Zach Amsden <zach@vmware.com>
    Cc: Pratap Subrahmanyam <pratap@vmware.com>
    Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
    Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
    Cc: Bruce Allan <bruce.w.allan@intel.com>
    Cc: PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com>
    Cc: John Ronciak <john.ronciak@intel.com>
    Cc: Jeff Garzik <jeff@garzik.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    78566fec
e1000_hw.c 303 KB