1. 22 7月, 2010 1 次提交
    • I
      e1000: Fix wrong microwire EEPROM state initialization · 9651ac55
      Izumi Tsutsui 提交于
      This change fixes initialization of e1000's microwire EEPROM internal
      state values so that qemu's e1000 emulation works on NetBSD,
      which doesn't use Intel's em driver but has its own wm driver
      for the Intel i8254x Gigabit Ethernet.
      
      Previously set_eecd() function in e1000.c clears EEPROM internal state
      values on SK rising edge during CS==L, but according to FM93C06 EEPROM
      (which is MicroWire compatible) data sheet, EEPROM internal status
      should be cleared on CS rise edge regardless of SK input:
       "... a rising edge on this (CS) signal is required to reset the internal
        state-machine to accept a new cycle .."
      and nothing should be changed during CS (chip select) is inactive.
      
      Intel's em driver seems to explicitly raise SK output after CS is negated
      in em_standby_eeprom() so many other OSes that use Intel's driver
      don't have this problem even on the previous e1000.c implementation,
      but I can't find any articles that say the MICROWIRE or EEPROM spec
      requires such sequence, and actually hardware works fine without it
      (i.e. real i82540EM has been working on NetBSD).
      
      This fix also changes initialization to clear each state value in
      struct eecd_state individually rather than using memset() against
      the whole structre. The old_eecd member stores the last SK and CS
      signal levels and it should be preserved even after reset of internal
      EEPROM state to detect next signal edges for proper EEPROM emulation.
      Signed-off-by: NIzumi Tsutsui <tsutsui@ceres.dti.ne.jp>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      9651ac55
  2. 19 7月, 2010 2 次提交
  3. 14 6月, 2010 1 次提交
  4. 15 5月, 2010 1 次提交
  5. 09 4月, 2010 1 次提交
  6. 23 12月, 2009 2 次提交
  7. 19 12月, 2009 3 次提交
  8. 04 12月, 2009 2 次提交
  9. 03 12月, 2009 1 次提交
  10. 13 11月, 2009 1 次提交
  11. 09 11月, 2009 3 次提交
  12. 07 11月, 2009 1 次提交
    • G
      v3: don't call reset functions on cpu initialization · c1699988
      Glauber Costa 提交于
      There is absolutely no need to call reset functions when initializing
      devices. Since we are already registering them, calling qemu_system_reset()
      should suffice. Actually, it is what happens when we reboot the machine,
      and using the same process instead of a special case semantics will even
      allow us to find bugs easier.
      
      Furthermore, the fact that we initialize things like the cpu quite early,
      leads to the need to introduce synchronization stuff like qemu_system_cond.
      This patch removes it entirely. All we need to do is call qemu_system_reset()
      only when we're already sure the system is up and running
      
      I tested it with qemu (with and without io-thread) and qemu-kvm, and it
      seems to be doing okay - although qemu-kvm uses a slightly different patch.
      
      [ v2: user mode still needs cpu_reset, so put it in ifdef. ]
      [ v3: leave qemu_system_cond for now. ]
      Signed-off-by: NGlauber Costa <glommer@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      c1699988
  13. 30 10月, 2009 2 次提交
  14. 28 10月, 2009 4 次提交
  15. 05 10月, 2009 1 次提交
  16. 02 10月, 2009 2 次提交
  17. 28 8月, 2009 2 次提交
  18. 26 8月, 2009 1 次提交
  19. 30 7月, 2009 1 次提交
    • B
      e1000.c doesn't properly emulate EERD and ICS registers · b1332393
      Bill Paul 提交于
      Once again, the emulation of the EERD and ICS registers in e1000.c is
      incorrect. Nobody has noticed this before because none of the Intel-written
      e1000 drivers use these registers, and all of the independently written open
      source drivers copy Intel's example, so they don't use them either.
      Regardless, these registers are documented in the programmer's manuals, and
      their emulated behavior doesn't match the verified behavior of real hardware,
      so any software that does use them doesn't function correctly.
      
      -Bill
      Signed-off-by: NBill Paul <wpaul@windriver.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b1332393
  20. 17 7月, 2009 2 次提交
  21. 09 7月, 2009 1 次提交
  22. 30 6月, 2009 1 次提交
  23. 18 6月, 2009 1 次提交
  24. 17 6月, 2009 2 次提交
  25. 10 6月, 2009 1 次提交