1. 31 1月, 2017 1 次提交
  2. 30 12月, 2016 2 次提交
    • B
      Revert "remoteproc: Merge table_ptr and cached_table pointers" · a0c10687
      Bjorn Andersson 提交于
      Following any fw_rsc_vdev entries in the resource table are two variable
      length arrays, the first one reference vring resources and the second
      one is the virtio config space.  The virtio config space is used by
      virtio to communicate status and configuration changes and must as such
      be shared with the remote.
      
      The reverted commit incorrectly made any changes to the virtio config
      space only affect the local copy, in an attempt to allowing memory
      protection of the shared resource table.
      
      This reverts commit cda85293.
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      a0c10687
    • L
      remoteproc: fix vdev reference management · c81c0e07
      Loic Pallardy 提交于
      Commit 2b45cef5 ("remoteproc: Further extend the vdev life cycle")
      extends kref support for vdev management.
      It introduces a regression when following sequence is executed:
      rproc_boot --> rproc_shutdown --> rproc_boot
      Second rproc_boot call crashes on register_virtio_device as device
      is already existing.
      Issue is previous vdev is never released when rproc is stop because
      associated refcount is too high.
      
      kref_get introduces is not needed as kref_init already initializes
      krefcount to 1 because it considers associated variable as used.
      This introduces a misalignment between kref_get and kref_put calls.
      
      Fixes: 2b45cef5 ("remoteproc: Further extend the vdev life cycle")
      Signed-off-by: NLoic Pallardy <loic.pallardy@st.com>
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      c81c0e07
  3. 10 12月, 2016 2 次提交
    • B
      remoteproc: Drop wait in __rproc_boot() · 2bfc311a
      Bjorn Andersson 提交于
      In the event that rproc_boot() is called before the firmware loaded
      completion has been flagged it will wait with the mutex held,
      obstructing the request_firmware_nowait() callback from completing the
      wait.
      
      As rproc_fw_config_virtio() has been reduced to only triggering
      auto-boot there is no longer a reason for waiting in rproc_boot(), so
      drop this.
      
      Cc: Sarangdhar Joshi <spjoshi@codeaurora.org>
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      2bfc311a
    • B
      remoteproc: Remove "experimental" warning · a4ff18e9
      Bjorn Andersson 提交于
      Warning users that remoteproc and it's binary format are under
      development doesn't serve much of a purpose. Different drivers support
      different image formats and the resource table has a version field that
      would need to be bumped when incompatible changes are introduced.
      
      So lets drop this warning to clean up the kernel log.
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      a4ff18e9
  4. 15 11月, 2016 7 次提交
  5. 10 11月, 2016 1 次提交
  6. 01 11月, 2016 1 次提交
  7. 19 10月, 2016 1 次提交
  8. 03 10月, 2016 3 次提交
  9. 20 9月, 2016 1 次提交
  10. 07 9月, 2016 1 次提交
  11. 19 8月, 2016 1 次提交
  12. 18 8月, 2016 4 次提交
  13. 13 8月, 2016 5 次提交
  14. 11 8月, 2016 3 次提交
  15. 15 6月, 2016 1 次提交
    • D
      remoteproc: Fix potential race condition in rproc_add · d2e12e66
      Dave Gerlach 提交于
      rproc_add adds the newly created remoteproc to a list for use by
      rproc_get_by_phandle and then does some additional processing to finish
      adding the remoteproc. This leaves a small window of time in which the
      rproc is available in the list but not yet fully initialized, so if
      another driver comes along and gets a handle to the rproc, it will be
      invalid. Rearrange the code in rproc_add to make sure the rproc is added
      to the list only after it has been successfuly initialized.
      
      Fixes: fec47d86 ("remoteproc: introduce rproc_get_by_phandle API")
      Cc: stable@vger.kernel.org
      Signed-off-by: NDave Gerlach <d-gerlach@ti.com>
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      d2e12e66
  16. 13 5月, 2016 2 次提交
  17. 07 5月, 2016 1 次提交
  18. 30 1月, 2016 1 次提交
  19. 26 11月, 2015 1 次提交
    • S
      remoteproc: fix memory leak of remoteproc ida cache layers · f42f79af
      Suman Anna 提交于
      The remoteproc core uses a static ida named rproc_dev_index for
      assigning an automatic index number to a registered remoteproc.
      The ida core may allocate some internal idr cache layers and ida
      bitmap upon any ida allocation, and all these layers are truely
      freed only upon the ida destruction. The rproc_dev_index ida is
      not destroyed at present, leading to a memory leak when using the
      remoteproc core as a module and atleast one rproc device is
      registered and unregistered.
      
      Fix this by invoking ida_destroy() in the remoteproc core module
      exit.
      Signed-off-by: NSuman Anna <s-anna@ti.com>
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      f42f79af
  20. 18 6月, 2015 1 次提交