1. 16 6月, 2009 2 次提交
    • U
      [S390] pm: iucv power management callbacks. · 672e405b
      Ursula Braun 提交于
      Patch calls the PM callback functions of iucv-bus devices, which are
      responsible for removal of their established iucv pathes.
      
      The PM freeze callback for the first iucv-bus device disables all iucv
      interrupts except the connection severed interrupt.
      The PM freeze callback for the last iucv-bus device shuts down iucv.
      
      The PM thaw callback for the first iucv-bus device re-enables iucv
      if it has been shut down during freeze. If freezing has been interrupted,
      it re-enables iucv interrupts according to the needs of iucv-exploiters.
      
      The PM restore callback for the first iucv-bus device re-enables iucv.
      Signed-off-by: NUrsula Braun <ursula.braun@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      672e405b
    • U
      [S390] iucv: establish reboot notifier · 6c005961
      Ursula Braun 提交于
      To guarantee a proper cleanup, patch adds a reboot notifier to
      the iucv base code, which disables iucv interrupts, shuts down
      established iucv pathes, and removes iucv declarations for z/VM.
      
      Checks have to be added to the iucv-API functions, whether
      iucv-buffers removed at reboot time are still declared.
      Signed-off-by: NUrsula Braun <ursula.braun@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      6c005961
  2. 23 4月, 2009 2 次提交
    • H
      af_iucv: Support data in IUCV msg parameter lists (IPRMDATA) · b8942e3b
      Hendrik Brueckner 提交于
      The patch allows to send and receive data in the parameter list of an
      iucv message.
      The parameter list is an arry of 8 bytes that are used by af_iucv as
      follows:
      	0..6  7 bytes for socket data and
      	   7  1 byte to store the data length.
      
      Instead of storing the data length directly, the difference
      between 0xFF and the data length is used.
      This convention does not interfere with the existing use of PRM
      messages for shutting down the send direction of an AF_IUCV socket
      (shutdown() operation).  Data lenghts greater than 7 (or PRM message
      byte 8 is less than 0xF8) denotes to special messages.
      Currently, the special SEND_SHUTDOWN message is supported only.
      
      To use IPRM messages, both communicators must set the IUCV_IPRMDATA
      flag during path negotiation, i.e. in iucv_connect() and
      path_pending().
      
      To be compatible to older af_iucv implementations, sending PRM
      messages is controlled by the socket option SO_IPRMDATA_MSG.
      Receiving PRM messages does not depend on the socket option (but
      requires the IUCV_IPRMDATA path flag to be set).
      
      Sending/Receiving data in the parameter list improves performance for
      small amounts of data by reducing message_completion() interrupts and
      memory copy operations.
      Signed-off-by: NHendrik Brueckner <brueckner@linux.vnet.ibm.com>
      Signed-off-by: NUrsula Braun <ursula.braun@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b8942e3b
    • U
      iucv: provide second per-cpu IUCV command parameter block · 42e1b4c2
      Ursula Braun 提交于
      Some of the IUCV commands can be invoked in interrupt context.
      Those commands need a different per-cpu IUCV command parameter block,
      otherwise they might overwrite an IUCV command parameter of a not yet
      finished IUCV command invocation in process context.
      Signed-off-by: NUrsula Braun <ursula.braun@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      42e1b4c2
  3. 07 1月, 2009 1 次提交
  4. 06 1月, 2009 1 次提交
  5. 25 12月, 2008 2 次提交
  6. 30 9月, 2008 1 次提交
    • H
      iucv: Fix mismerge again. · 8b122efd
      Heiko Carstens 提交于
      fb65a7c0 ("iucv: Fix bad merging.") fixed
      a merge error, but in a wrong way. We now end up with the bug below.
      This patch corrects the mismerge like it was intended.
      
      BUG: scheduling while atomic: swapper/1/0x00000000
      Modules linked in:
      CPU: 1 Not tainted 2.6.27-rc7-00094-gc0f4d6d4 #9
      Process swapper (pid: 1, task: 000000003fe7d988, ksp: 000000003fe838c0)
      0000000000000000 000000003fe839b8 0000000000000002 0000000000000000
             000000003fe83a58 000000003fe839d0 000000003fe839d0 0000000000390de6
             000000000058acd8 00000000000000d0 000000003fe7dcd8 0000000000000000
             000000000000000c 000000000000000d 0000000000000000 000000003fe83a28
             000000000039c5b8 0000000000015e5e 000000003fe839b8 000000003fe83a00
      Call Trace:
      ([<0000000000015d6a>] show_trace+0xe6/0x134)
       [<0000000000039656>] __schedule_bug+0xa2/0xa8
       [<0000000000391744>] schedule+0x49c/0x910
       [<0000000000391f64>] schedule_timeout+0xc4/0x114
       [<00000000003910d4>] wait_for_common+0xe8/0x1b4
       [<00000000000549ae>] call_usermodehelper_exec+0xa6/0xec
       [<00000000001af7b8>] kobject_uevent_env+0x418/0x438
       [<00000000001d08fc>] bus_add_driver+0x1e4/0x298
       [<00000000001d1ee4>] driver_register+0x90/0x18c
       [<0000000000566848>] netiucv_init+0x168/0x2c8
       [<00000000000120be>] do_one_initcall+0x3e/0x17c
       [<000000000054a31a>] kernel_init+0x1ce/0x248
       [<000000000001a97a>] kernel_thread_starter+0x6/0xc
       [<000000000001a974>] kernel_thread_starter+0x0/0xc
       iucv: NETIUCV driver initialized
      initcall netiucv_init+0x0/0x2c8 returned with preemption imbalance
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8b122efd
  7. 21 7月, 2008 1 次提交
  8. 15 7月, 2008 1 次提交
  9. 14 7月, 2008 1 次提交
  10. 26 6月, 2008 2 次提交
  11. 10 6月, 2008 2 次提交
  12. 24 5月, 2008 1 次提交
  13. 10 4月, 2008 2 次提交
  14. 04 3月, 2008 1 次提交
  15. 08 2月, 2008 1 次提交
  16. 29 1月, 2008 1 次提交
  17. 20 11月, 2007 1 次提交
  18. 20 10月, 2007 1 次提交
  19. 27 7月, 2007 1 次提交
  20. 15 7月, 2007 1 次提交
  21. 10 5月, 2007 1 次提交
    • R
      Add suspend-related notifications for CPU hotplug · 8bb78442
      Rafael J. Wysocki 提交于
      Since nonboot CPUs are now disabled after tasks and devices have been
      frozen and the CPU hotplug infrastructure is used for this purpose, we need
      special CPU hotplug notifications that will help the CPU-hotplug-aware
      subsystems distinguish normal CPU hotplug events from CPU hotplug events
      related to a system-wide suspend or resume operation in progress.  This
      patch introduces such notifications and causes them to be used during
      suspend and resume transitions.  It also changes all of the
      CPU-hotplug-aware subsystems to take these notifications into consideration
      (for now they are handled in the same way as the corresponding "normal"
      ones).
      
      [oleg@tv-sign.ru: cleanups]
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Cc: Gautham R Shenoy <ego@in.ibm.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Signed-off-by: NOleg Nesterov <oleg@tv-sign.ru>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8bb78442
  22. 05 5月, 2007 1 次提交
  23. 29 4月, 2007 1 次提交
    • M
      [AF_IUCV/IUCV]: smp_call_function deadlock · 04b090d5
      Martin Schwidefsky 提交于
      Calling smp_call_function can lead to a deadlock if it is called
      from tasklet context. 
      Fixing this deadlock requires to move the smp_call_function from the
      tasklet context to a work queue. To do that queue the path pending
      interrupts to a separate list and move the path cleanup out of
      iucv_path_sever to iucv_path_connect and iucv_path_pending.
      This creates a new requirement for iucv_path_connect: it may not be
      called from tasklet context anymore. 
      Also fixed compile problem for CONFIG_HOTPLUG_CPU=n and
      another one when walking the cpu_online mask. When doing this, 
      we must disable cpu hotplug.
      Signed-off-by: NFrank Pavlic <fpavlic@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      04b090d5
  24. 26 4月, 2007 1 次提交
  25. 09 2月, 2007 1 次提交