1. 07 12月, 2009 1 次提交
    • P
      [S390] cio: introduce parent-initiated device move · 5d6e6b6f
      Peter Oberparleiter 提交于
      Change the initiative to update subchannel-ccw device associations
      to the subchannel: when there is an indication that the internal
      association no longer reflects the current hardware state, mark
      each affected subchannel as requiring attention. Once processing
      reaches a subchannel, determine the correct association for that
      subchannel at that time and perform the necessary device_move
      operations.
      
      This change fixes problems with the previous approach which would
      leave devices in an inconsistent state when a new hardware change
      occurred while a device_move was already scheduled.
      Signed-off-by: NPeter Oberparleiter <peter.oberparleiter@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      5d6e6b6f
  2. 06 10月, 2009 3 次提交
  3. 11 9月, 2009 3 次提交
  4. 16 6月, 2009 1 次提交
  5. 01 4月, 2009 2 次提交
  6. 26 3月, 2009 3 次提交
  7. 25 12月, 2008 4 次提交
    • S
      [S390] cio: commit all pmcw changes. · f444cc0e
      Sebastian Ott 提交于
      Sometimes we change the pmcw configuration but don't call msch
      to transmit these changes to the channel subsystem.
      
      The patch fixes this by calling cio_commit_config in such cases.
      Signed-off-by: NSebastian Ott <sebott@linux.vnet.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      f444cc0e
    • S
      [S390] cio: introduce cio_commit_config · 13952ec1
      Sebastian Ott 提交于
      To change the configuration of a subchannel we alter the modifiable
      bits of the subchannel's schib field and issue a modify subchannel.
      There can be the case that not all changes were applied -or worse-
      quietly overwritten by the hardware. With the next store subchannel
      we obtain the current state of the hardware but lose our target
      configuration.
      
      With this patch we introduce a subchannel_config structure which
      contains the target subchannel configuration. Additionally the msch
      wrapper cio_modify is replaced with cio_commit_config which
      copies the desired changes to a temporary schib. msch is then
      called with the temporary schib. This schib is only written back
      to the subchannel if all changes were applied.
      Signed-off-by: NSebastian Ott <sebott@linux.vnet.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      13952ec1
    • S
      [S390] cio: introduce cio_update_schib · cdb912a4
      Sebastian Ott 提交于
      There is the chance that we get condition code 0 for a stsch but
      the resulting schib is not vaild. In the current code there are
      2 cases:
      * we do a check for validity of the schib after stsch, but at this
        time we have already stored the invaild schib in the subchannel
        structure. This may lead to problems.
      * we don't do a check for validity, which is not that good either.
      
      The patch addresses both issues by introducing the stsch wrapper
      cio_update_schib which performs stsch on a local schib. This schib
      is only written back to the subchannel if it's valid.
      
      side note: For some functions (chp_events) the return codes are
      different now (-ENXIO vs -ENODEV) but this shouldn't do harm
      since the caller doesn't check for _specific_ errors.
      Signed-off-by: NSebastian Ott <sebott@linux.vnet.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      cdb912a4
    • C
      [S390] cio: Fix reference counting for online/offline. · 9cd67421
      Cornelia Huck 提交于
      The current code attempts to get an extra reference count
      for online devices by doing a get_device() in ccw_device_online()
      and a put_device() in ccw_device_done(). However, this
      - incorrectly obtains an extra reference for disconnected
        devices becoming available again (since they are already
        online)
      - needs special checks for css_init_done in order to handle
        the console device
      - is not obvious and
      - may incorretly drop a reference count in ccw_device_done() if
        that function is called after path verification for a device
        that just became not operational.
      
      So let's just get the reference in ccw_device_set_online() and
      drop it in ccw_device_set_offline(). (Unfortunately, we still
      need the special case in io_subchannel_probe().)
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      9cd67421
  8. 11 10月, 2008 1 次提交
  9. 09 9月, 2008 1 次提交
  10. 22 8月, 2008 1 次提交
  11. 14 7月, 2008 4 次提交
  12. 07 5月, 2008 1 次提交
  13. 30 4月, 2008 1 次提交
  14. 26 1月, 2008 8 次提交
  15. 20 11月, 2007 1 次提交
  16. 12 10月, 2007 2 次提交
  17. 27 7月, 2007 1 次提交
  18. 31 5月, 2007 1 次提交
  19. 27 4月, 2007 1 次提交