1. 05 Oct, 2018 7 commits
  2. 01 Oct, 2018 1 commit
    • Laurentiu Tudor's avatar
      soc: fsl: qman_portals: defer probe after qman's probe · 5a1eb8b9
      Laurentiu Tudor authored
      Defer probe of qman portals after qman probing. This fixes the crash
      below, seen on NXP LS1043A SoCs:
      
      Unable to handle kernel NULL pointer dereference at virtual address
      0000000000000004
      Mem abort info:
        ESR = 0x96000004
        Exception class = DABT (current EL), IL = 32 bits
        SET = 0, FnV = 0
        EA = 0, S1PTW = 0
      Data abort info:
        ISV = 0, ISS = 0x00000004
        CM = 0, WnR = 0
      [0000000000000004] user address but active_mm is swapper
      Internal error: Oops: 96000004 [#1] PREEMPT SMP
      Modules linked in:
      CPU: 0 PID: 1 Comm: swapper/0 Not tainted
      4.18.0-rc1-next-20180622-00200-g986f5c179185 #9
      Hardware name: LS1043A RDB Board (DT)
      pstate: 80000005 (Nzcv daif -PAN -UAO)
      pc : qman_set_sdest+0x74/0xa0
      lr : qman_portal_probe+0x22c/0x470
      sp : ffff00000803bbc0
      x29: ffff00000803bbc0 x28: 0000000000000000
      x27: ffff0000090c1b88 x26: ffff00000927cb68
      x25: ffff00000927c000 x24: ffff00000927cb60
      x23: 0000000000000000 x22: 0000000000000000
      x21: ffff0000090e9000 x20: ffff800073b5c810
      x19: ffff800027401298 x18: ffffffffffffffff
      x17: 0000000000000001 x16: 0000000000000000
      x15: ffff0000090e96c8 x14: ffff80002740138a
      x13: ffff0000090f2000 x12: 0000000000000030
      x11: ffff000008f25000 x10: 0000000000000000
      x9 : ffff80007bdfd2c0 x8 : 0000000000004000
      x7 : ffff80007393cc18 x6 : 0040000000000001
      x5 : 0000000000000000 x4 : ffffffffffffffff
      x3 : 0000000000000004 x2 : ffff00000927c900
      x1 : 0000000000000000 x0 : 0000000000000004
      Process swapper/0 (pid: 1, stack limit = 0x(____ptrval____))
      Call trace:
       qman_set_sdest+0x74/0xa0
       platform_drv_probe+0x50/0xa8
       driver_probe_device+0x214/0x2f8
       __driver_attach+0xd8/0xe0
       bus_for_each_dev+0x68/0xc8
       driver_attach+0x20/0x28
       bus_add_driver+0x108/0x228
       driver_register+0x60/0x110
       __platform_driver_register+0x40/0x48
       qman_portal_driver_init+0x20/0x84
       do_one_initcall+0x58/0x168
       kernel_init_freeable+0x184/0x22c
       kernel_init+0x10/0x108
       ret_from_fork+0x10/0x18
      Code: f9400443 11001000 927e4800 8b000063 (b9400063)
      ---[ end trace 4f6d50489ecfb930 ]---
      Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
      Signed-off-by: default avatarLaurentiu Tudor <laurentiu.tudor@nxp.com>
      Signed-off-by: default avatarLi Yang <leoyang.li@nxp.com>
      5a1eb8b9
  3. 27 Sep, 2018 1 commit
    • Laurentiu Tudor's avatar
      soc: fsl: qbman: add APIs to retrieve the probing status · 853dc104
      Laurentiu Tudor authored
      Add a couple of new APIs to check the probing status of qman and bman:
       'int bman_is_probed()' and 'int qman_is_probed()'.
      They return the following values.
       *  1 if qman/bman were probed correctly
       *  0 if qman/bman were not yet probed
       * -1 if probing of qman/bman failed
      Drivers that use qman/bman driver services are required to use these
      APIs before calling any functions exported by qman or bman drivers
      or otherwise they will crash the kernel.
      The APIs will be used in the following couple of qbman portal patches
      and later in the series in the dpaa1 ethernet driver.
      Signed-off-by: default avatarLaurentiu Tudor <laurentiu.tudor@nxp.com>
      Signed-off-by: default avatarLi Yang <leoyang.li@nxp.com>
      853dc104
  4. 25 Sep, 2018 4 commits
  5. 24 Sep, 2018 1 commit
  6. 23 Sep, 2018 2 commits
  7. 20 Sep, 2018 1 commit
  8. 12 Sep, 2018 1 commit
  9. 08 Sep, 2018 1 commit
  10. 06 Sep, 2018 3 commits
  11. 05 Sep, 2018 1 commit
  12. 02 Sep, 2018 1 commit
    • Olof Johansson's avatar
      Merge tag 'omap-for-v4.19/fixes-v2-signed' of... · a72b44a8
      Olof Johansson authored
      Merge tag 'omap-for-v4.19/fixes-v2-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
      
      Fixes for omap variants against v4.19-rc1
      
      These are mostly fixes related to using ti-sysc interconnect target module
      driver for accessing right register offsets for sgx and cpsw and for
      no_console_suspend regression.
      
      There is also a droid4 emmc fix where emmc may not get detected for some
      models, and vibrator dts mismerge fix.
      
      And we have a file permission fix for am335x-osd3358-sm-red.dts that
      just got added. And we must tag RTC as system-power-controller for
      am437x for PMIC to shut down during poweroff.
      
      * tag 'omap-for-v4.19/fixes-v2-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
        ARM: dts: omap4-droid4: Fix emmc errors seen on some devices
        ARM: dts: Fix file permission for am335x-osd3358-sm-red.dts
        arm: dts: am4372: setup rtc as system-power-controller
        ARM: dts: omap4-droid4: fix vibrations on Droid 4
        bus: ti-sysc: Fix no_console_suspend handling
        bus: ti-sysc: Fix module register ioremap for larger offsets
        ARM: OMAP2+: Fix module address for modules using mpu_rt_idx
        ARM: OMAP2+: Fix null hwmod for ti-sysc debug
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      a72b44a8
  13. 30 Aug, 2018 2 commits
  14. 29 Aug, 2018 3 commits
  15. 28 Aug, 2018 3 commits
    • Tony Lindgren's avatar
      ARM: dts: omap4-droid4: Fix emmc errors seen on some devices · 2d59bb60
      Tony Lindgren authored
      Otherwise we can get the following errors occasionally on some devices:
      
      mmc1: tried to HW reset card, got error -110
      mmcblk1: error -110 requesting status
      mmcblk1: recovery failed!
      print_req_error: I/O error, dev mmcblk1, sector 14329
      ...
      
      I have one device that hits this error almost on every boot, and another
      one that hits it only rarely with the other ones I've used behave without
      problems. I'm not sure if the issue is related to a particular eMMC card
      model, but in case it is, both of the machines with issues have:
      
      # cat /sys/class/mmc_host/mmc1/mmc1:0001/manfid \
      /sys/class/mmc_host/mmc1/mmc1:0001/oemid \
      /sys/class/mmc_host/mmc1/mmc1:0001/name
      0x000045
      0x0100
      SEM16G
      
      and the working ones have:
      
      0x000011
      0x0100
      016G92
      
      Note that "ti,non-removable" is different as omap_hsmmc_reg_get() does not
      call omap_hsmmc_disable_boot_regulators() if no_regulator_off_init is set.
      And currently we set no_regulator_off_init only for "ti,non-removable" and
      not for "non-removable". It seems that we should have "non-removable" with
      some other mmc generic property behave in the same way instead of having to
      use a non-generic property. But let's fix the issue first.
      
      Fixes: 7e2f8c0a ("ARM: dts: Add minimal support for motorola droid 4
      xt894")
      Cc: Marcel Partap <mpartap@gmx.net>
      Cc: Merlijn Wajer <merlijn@wizzup.org>
      Cc: Michael Scott <hashcode0f@gmail.com>
      Cc: NeKit <nekit1000@gmail.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Sebastian Reichel <sre@kernel.org>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      2d59bb60
    • Tony Lindgren's avatar
      ea4d65f1
    • Neeraj Dantu's avatar
      ARM: dts: Fix file permission for am335x-osd3358-sm-red.dts · 496f3347
      Neeraj Dantu authored
      Fix wrong mode for dts file added by commit bb3e3fbb
      ("ARM: dts: Add DT support for Octavo Systems OSD3358-SM-RED
      based on TI AM335x").
      Signed-off-by: default avatarNeeraj Dantu <neeraj.dantu@octavosystems.com>
      CC: Robert Nelson <robertcnelson@gmail.com>
      CC: Jason Kridner <jkridner@gmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      496f3347
  16. 27 Aug, 2018 8 commits