Skip to content
Snippets Groups Projects
  1. Jun 18, 2015
    • Rabin Vincent's avatar
      mmc: queue: prevent soft lockups on PREEMPT=n · a8c27c0b
      Rabin Vincent authored
      
      On systems with CONFIG_PREEMPT=n, under certain circumstances, mmcqd
      can continuously process requests for several seconds without blocking,
      triggering the soft lockup watchdog.  For example, this can happen if
      mmcqd runs on the CPU which services the controller's interrupt, and
      a process on a different CPU continuously writes to the MMC block
      device.
      
       NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [mmcqd/0:664]
       CPU: 0 PID: 664 Comm: mmcqd/0 Not tainted 4.1.0-rc7+ #4
       PC is at _raw_spin_unlock_irqrestore+0x24/0x28
       LR is at mmc_start_request+0x104/0x134
       ...
       [<805112a8>] (_raw_spin_unlock_irqrestore) from [<803db664>] (mmc_start_request+0x104/0x134)
       [<803db664>] (mmc_start_request) from [<803dc008>] (mmc_start_req+0x274/0x394)
       [<803dc008>] (mmc_start_req) from [<803eb2c4>] (mmc_blk_issue_rw_rq+0xd0/0xb98)
       [<803eb2c4>] (mmc_blk_issue_rw_rq) from [<803ebe8c>] (mmc_blk_issue_rq+0x100/0x470)
       [<803ebe8c>] (mmc_blk_issue_rq) from [<803ecab8>] (mmc_queue_thread+0xd0/0x170)
       [<803ecab8>] (mmc_queue_thread) from [<8003fd14>] (kthread+0xe0/0xfc)
       [<8003fd14>] (kthread) from [<8000f768>] (ret_from_fork+0x14/0x2c)
      
      Fix it by adding a cond_resched() in the request handling loop so that
      other processes get a chance to run.
      
      Signed-off-by: default avatarRabin Vincent <rabin.vincent@axis.com>
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      a8c27c0b
    • Chaotian Jing's avatar
      mmc: mediatek: Add PM support for MMC driver · 4b8a43e9
      Chaotian Jing authored
      
      Add PM support for Mediatek MMC driver
      Save/restore registers when PM
      
      Signed-off-by: default avatarChaotian Jing <chaotian.jing@mediatek.com>
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      4b8a43e9
    • Chaotian Jing's avatar
      mmc: mediatek: Add Mediatek MMC driver · 20848903
      Chaotian Jing authored
      
      Add Mediatek MMC driver code
      Support eMMC/SD/SDIO
      
      Signed-off-by: default avatarChaotian Jing <chaotian.jing@mediatek.com>
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      20848903
  2. Jun 16, 2015
  3. Jun 15, 2015
  4. Jun 12, 2015
  5. Jun 08, 2015
    • Ulf Hansson's avatar
      mmc: sdhci: Restore behavior while creating OCR mask · 5fd26c7e
      Ulf Hansson authored
      
      Commit 3a48edc4 ("mmc: sdhci: Use mmc core regulator infrastucture")
      changed the behavior for how to assign the ocr_avail mask for the mmc
      host. More precisely it started to mask the bits instead of assigning
      them.
      
      Restore the behavior, but also make it clear that an OCR mask created
      from an external regulator overrides the other ones. The OCR mask is
      determined by one of the following with this priority:
      
      1. Supported ranges of external regulator if one supplies VDD
      2. Host OCR mask if set by the driver (based on DT properties)
      3. The capabilities reported by the controller itself
      
      Fixes: 3a48edc4 ("mmc: sdhci: Use mmc core regulator infrastucture")
      Cc: Tim Kryger <tim.kryger@gmail.com>
      Reported-by: default avatarYangbo Lu <yangbo.lu@freescale.com>
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      Reviewed-by: default avatarTim Kryger <tim.kryger@gmail.com>
      5fd26c7e
  6. Jun 04, 2015
  7. Jun 01, 2015