1. 08 5月, 2007 31 次提交
  2. 07 5月, 2007 9 次提交
    • M
      [TG3]: Update version and reldate. · 823036ed
      Michael Chan 提交于
      Update version to 3.76.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      823036ed
    • M
      [TG3]: Eliminate spurious interrupts. · c04cb347
      Michael Chan 提交于
      Spurious interrupts are often encountered especially on systems
      using the 8259 PIC mode.  This is because the I/O write to deassert
      the interrupt is posted and won't get to the chip immediately.  As
      a result, the IRQ may remain asserted after the IRQ handler exits,
      causing spurious interrupts.
      
      Flush the interrupt mailbox in non-MSI handlers to de-assert the
      IRQ immediately.  This seems to be the most straight forward approach
      after discussion with Jeff Garzik and David Miller.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c04cb347
    • M
      [TG3]: Add ASPM workaround. · 8ed5d97e
      Matt Carlson 提交于
      This patch adds workaround to fix performance problems caused by slow
      PCIE L1->L0 transitions on ICH8 platforms.
      
      Changed all magic numbers to constants as suggested by Jeff Garzik.
      Signed-off-by: NMatt Carlson <mcarlson@broadcom.com>
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8ed5d97e
    • D
      [SERIAL] sunsu: Fix section mismatch warnings. · 90a660a4
      David S. Miller 提交于
      Mark sunsu_console_setup() as __init and rename 'sunsu_cons'
      to 'sunsu_console' so that it matches modpost.c's whitelist.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      90a660a4
    • D
      71227521
    • D
      453e93b3
    • D
      6025dfe5
    • R
      IPoIB: Convert to NAPI · 8d1cc86a
      Roland Dreier 提交于
      Convert the IP-over-InfiniBand network device driver over to using
      NAPI to handle completions for the main CQ.  This covers all receives
      as well as datagram mode sends; send completions for connected mode
      connections are still handled from interrupt context.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      8d1cc86a
    • R
      IB: Return "maybe missed event" hint from ib_req_notify_cq() · ed23a727
      Roland Dreier 提交于
      The semantics defined by the InfiniBand specification say that
      completion events are only generated when a completions is added to a
      completion queue (CQ) after completion notification is requested.  In
      other words, this means that the following race is possible:
      
      	while (CQ is not empty)
      		ib_poll_cq(CQ);
      	// new completion is added after while loop is exited
      	ib_req_notify_cq(CQ);
      	// no event is generated for the existing completion
      
      To close this race, the IB spec recommends doing another poll of the
      CQ after requesting notification.
      
      However, it is not always possible to arrange code this way (for
      example, we have found that NAPI for IPoIB cannot poll after
      requesting notification).  Also, some hardware (eg Mellanox HCAs)
      actually will generate an event for completions added before the call
      to ib_req_notify_cq() -- which is allowed by the spec, since there's
      no way for any upper-layer consumer to know exactly when a completion
      was really added -- so the extra poll of the CQ is just a waste.
      
      Motivated by this, we add a new flag "IB_CQ_REPORT_MISSED_EVENTS" for
      ib_req_notify_cq() so that it can return a hint about whether the a
      completion may have been added before the request for notification.
      The return value of ib_req_notify_cq() is extended so:
      
      	 < 0	means an error occurred while requesting notification
      	== 0	means notification was requested successfully, and if
      		IB_CQ_REPORT_MISSED_EVENTS was passed in, then no
      		events were missed and it is safe to wait for another
      		event.
      	 > 0	is only returned if IB_CQ_REPORT_MISSED_EVENTS was
      		passed in.  It means that the consumer must poll the
      		CQ again to make sure it is empty to avoid the race
      		described above.
      
      We add a flag to enable this behavior rather than turning it on
      unconditionally, because checking for missed events may incur
      significant overhead for some low-level drivers, and consumers that
      don't care about the results of this test shouldn't be forced to pay
      for the test.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      ed23a727