1. 07 4月, 2013 5 次提交
  2. 05 4月, 2013 4 次提交
  3. 28 2月, 2013 2 次提交
  4. 15 2月, 2013 1 次提交
  5. 11 2月, 2013 1 次提交
  6. 22 1月, 2013 1 次提交
  7. 04 1月, 2013 1 次提交
    • G
      Drivers: misc: remove __dev* attributes. · 0fe763c5
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0fe763c5
  8. 03 12月, 2012 1 次提交
  9. 29 11月, 2012 1 次提交
  10. 02 10月, 2012 3 次提交
    • E
      remoteproc: Fix use of format specifyer · d09f53a7
      Emil Goode 提交于
      The dma_addr_t type can be either u32 or u64 depending on
      the configuration. We should use a format specifyer for the
      larger type and explicitly cast to it.
      
      Sparse warnings:
      drivers/remoteproc/remoteproc_core.c:234:2: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 6 has type ‘dma_addr_t’ [-Wformat]
      
      drivers/remoteproc/remoteproc_core.c:596:2: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 5 has type ‘dma_addr_t’ [-Wformat]
      
      drivers/remoteproc/remoteproc_core.c:634:3:
      	warning: format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 5 has type ‘dma_addr_t’ [-Wformat]
      Signed-off-by: NEmil Goode <emilgoode@gmail.com>
      [fix commit log typos]
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      d09f53a7
    • D
      remoteproc: fix a potential NULL-dereference on cleanup · 7168d914
      Dan Carpenter 提交于
      We only need to allocate mapping if there is an IOMMU domain.
      
      Otherwise, when the mappings are released, the assumption that
      an IOMMU domain is there will crash and burn.
      
      CC: stable@vger.kernel.org
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      [ohad: revise commit log]
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      7168d914
    • O
      remoteproc: select VIRTIO to avoid build breakage · 2ed6d29c
      Ohad Ben-Cohen 提交于
      drivers/built-in.o: In function `rproc_virtio_finalize_features':
      remoteproc_virtio.c:(.text+0x2f9a02): undefined reference to `vring_transport_features'
      drivers/built-in.o: In function `rproc_virtio_del_vqs':
      remoteproc_virtio.c:(.text+0x2f9a74): undefined reference to `vring_del_virtqueue'
      drivers/built-in.o: In function `rproc_virtio_find_vqs':
      remoteproc_virtio.c:(.text+0x2f9c44): undefined reference to `vring_new_virtqueue'
      drivers/built-in.o: In function `rproc_add_virtio_dev':
      (.text+0x2f9e2c): undefined reference to `register_virtio_device'
      drivers/built-in.o: In function `rproc_vq_interrupt':
      (.text+0x2f9db7): undefined reference to `vring_interrupt'
      drivers/built-in.o: In function `rproc_remove_virtio_dev':
      (.text+0x2f9e9f): undefined reference to `unregister_virtio_device'
      
      Cc: stable@vger.kernel.org
      Reported-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      2ed6d29c
  11. 30 9月, 2012 2 次提交
  12. 28 9月, 2012 2 次提交
  13. 22 9月, 2012 1 次提交
    • S
      remoteproc: Add STE modem driver · ec4d02d9
      Sjur Brændeland 提交于
      Add support for the STE modem shared memory driver.
      This driver hooks into the remoteproc framework
      in order to manage configuration and the virtio
      devices.
      
      This driver adds custom firmware handlers, because
      STE modem uses a custom firmware layout.
      Signed-off-by: NSjur Brændeland <sjur.brandeland@stericsson.com>
      cc: Linus Walleij <linus.walleij@linaro.org>
      cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      [ohad: validate mdev->ops, move setup() to probe/remove, trivial style changes]
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      ec4d02d9
  14. 19 9月, 2012 2 次提交
  15. 18 9月, 2012 4 次提交
    • F
      remoteproc: create a 'recovery' debugfs entry · 2e37abb8
      Fernando Guzman Lugo 提交于
      Add a 'recovery' debugfs entry to dynamically disable/enable recovery
      at runtime. This is useful when one is trying to debug an rproc crash;
      without it, a recovery will immediately take place, making it harder
      to debug the crash.
      
      Contributions from Subramaniam Chanderashekarapuram.
      
      Examples:
      
      - disabling recovery:
      $ echo disabled > <debugfs>/remoteproc/remoteproc0/recovery
      
      - in case you want to recover a crash, but keep recovery disabled
        (useful in debugging sessions when you expect additional crashes
         you want to debug):
      $ echo recover > <debugfs>/remoteproc/remoteproc0/recovery
      
      - enabling recovery:
      $ echo enabled > <debugfs>/remoteproc/remoteproc0/recovery
      Signed-off-by: NFernando Guzman Lugo <fernando.lugo@ti.com>
      [ohad: some white space, commentary and commit log changes]
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      2e37abb8
    • F
      remoteproc: add actual recovery implementation · 70b85ef8
      Fernando Guzman Lugo 提交于
      Add rproc_trigger_recovery() which takes care of the recovery itself,
      by removing, and re-adding, all of the remoteproc's virtio devices.
      
      This resets all virtio users of the remote processor, during which
      the remote processor is powered off and on again.
      Signed-off-by: NFernando Guzman Lugo <fernando.lugo@ti.com>
      [ohad: introduce rproc_add_virtio_devices to avoid 1.copying code 2.anomaly]
      [ohad: some white space, naming and commit log changes]
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      70b85ef8
    • F
      remoteproc: add rproc_report_crash function to notify rproc crashes · 8afd519c
      Fernando Guzman Lugo 提交于
      Allow low-level remoteproc drivers to report rproc crashes by exporting
      a new rproc_report_crash() function (invoking this from non-rproc drivers
      is probably wrong, and should be carefully scrutinized if ever needed).
      
      rproc_report_crash() can be called from any context; it offloads the
      tasks of handling the crash to a separate thread.
      
      Handling the crash from a separate thread is helpful because:
      - Ability to call invoke rproc_report_crash() from atomic context, due to
        the fact that many crashes trigger an interrupt, so this function can be
        called directly from ISR context.
      - Avoiding deadlocks which could happen if rproc_report_crash() is called
        from a function which indirectly holds the rproc lock.
      
      Handling the crash might involve:
      - Remoteproc register dump
      - Remoteproc stack dump
      - Remoteproc core dump
      - Saving Remoteproc traces so they can be read after the crash
      - Reseting the remoteproc in order to make it functional again (hard recovery)
      
      Right now, we only print the crash type which was detected, and only the
      mmufault type is supported. Remoteproc low-level drivers can add more types
      when needed.
      Signed-off-by: NFernando Guzman Lugo <fernando.lugo@ti.com>
      [ohad: some commentary, white space and commit log changes]
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      8afd519c
    • S
      remoteproc: Add dependency to HAS_DMA · a1a7e0a3
      Sjur Brændeland 提交于
      Remoteproc relies on HAS_DMA, add this dependency in Kconfig.
      
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NSjur Brændeland <sjur.brandeland@stericsson.com>
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      a1a7e0a3
  16. 11 9月, 2012 1 次提交
    • J
      remoteproc/omap: set bootaddr support · 4980f465
      Juan Gutierrez 提交于
      Some remote processors (like OMAP4's DSP) require we explicitly
      set a boot address from which they'd start executing code when
      taken out of reset.
      
      Support for this is now being added to the omap-specific remoteproc
      driver through a set_bootaddr function in the platform data which,
      if needed, must be set according to the backend remote processor.
      
      For OMAP4's dsp we can use the following control function:
      
        .set_bootaddr  = omap_ctrl_write_dsp_boot_addr
      Signed-off-by: NJuan Gutierrez <jgutierrez@ti.com>
      Signed-off-by: NSuman Anna <s-anna@ti.com>
      [ohad: slight changes to the commit log]
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      4980f465
  17. 15 7月, 2012 4 次提交
  18. 06 7月, 2012 4 次提交