copying files to eMMC causes kernel crash

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Linux Core SDK
    • LCPD-34059
    • 08.06.00
    • 10.01
    • Hide
      am62xx-lp-sk
      am62xx-sk
      am62xx_sk-fs
      Show
      am62xx-lp-sk am62xx-sk am62xx_sk-fs

      Copying files to eMMC causes kernel crash. The following log shows copying /usr/bin/ folder from SD card and the crash log. The issue doesn't happen if "no-1-8-v" DT property is added to sdhci0 (eMMC) node.

      root@am62xx-evm:~# mount /dev/mmcblk0p1 /mnt
      root@am62xx-evm:~# cp -rf /usr/bin /mnt/
      [  111.586536] mmc0: running CQE recovery
      [  111.596190] ------------[ cut here ]------------
      [  111.600823] mmc0: cqhci: spurious TCN for tag 8
      [  111.605419] WARNING: CPU: 0 PID: 246 at drivers/mmc/host/cqhci.c:742 cqhci_irq+0x318/0x4a0 [  111.613663] Modules linked in:
      [  111.616717] CPU: 0 PID: 246 Comm: kworker/0:2H Not tainted 5.10.168-g2c23e6c538 #1         [  111.624265] Hardware name: Texas Instruments AM625 SK (DT)
      [  111.629746] Workqueue: kblockd blk_mq_run_work_fn
      [  111.634440] pstate: 40000085 (nZcv daIf -PAN -UAO -TCO BTYPE=--)
      [  111.640430] pc : cqhci_irq+0x318/0x4a0
      [  111.644168] lr : cqhci_irq+0x318/0x4a0
      [  111.647904] sp : ffff8000112cbd40
      [  111.651207] x29: ffff8000112cbd40 x28: ffff00000002b580
      [  111.656507] x27: ffff000000361480 x26: 0000000000000001
      [  111.661807] x25: ffff800010e63ff0 x24: ffff000000361498
      [  111.667107] x23: ffff80001122d730 x22: ffff000000c89c80
      [  111.672407] x21: ffff00000002b000 x20: 0000000000000002
      [  111.677707] x19: 0000000000000008 x18: 0000000000000010
      [  111.683007] x17: ffff000001e90020 x16: 0000000000000000
      [  111.688307] x15: ffff000000c8a1d0 x14: 000000000000015c
      [  111.693607] x13: ffff000000c8a1d0 x12: 00000000ffffffea
      [  111.698907] x11: ffff8000111b0770 x10: ffff800011198730
      [  111.704207] x9 : ffff800011198788 x8 : 0000000000017fe8
      [  111.709506] x7 : c0000000ffffefff x6 : 0000000000000001
      [  111.714806] x5 : ffff00007fb81ab8 x4 : 0000000000000000
      [  111.720106] x3 : 0000000000000027 x2 : 0000000000000023
      [  111.725404] x1 : beeb3c663aba5f00 x0 : 0000000000000000
      [  111.730704] Call trace:
      [  111.733147]  cqhci_irq+0x318/0x4a0
      [  111.736540]  sdhci_am654_cqhci_irq+0x58/0x88
      [  111.740796]  sdhci_irq+0xb0/0xe80
      [  111.744104]  __handle_irq_event_percpu+0x54/0x178
      [  111.748794]  handle_irq_event_percpu+0x34/0x90
      [  111.753223]  handle_irq_event+0x48/0x90
      [  111.757054]  handle_fasteoi_irq+0xb8/0x170
      [  111.761142]  generic_handle_irq+0x30/0x48
      [  111.765140]  __handle_domain_irq+0x64/0xc0
      [  111.769225]  gic_handle_irq+0x58/0x128
      [  111.772964]  el1_irq+0xcc/0x180
      [  111.776099]  _raw_spin_unlock_irqrestore+0x14/0x48
      [  111.780877]  cqhci_request+0xc8/0x4e8 
      [  111.784533]  mmc_cqe_start_req+0x58/0x68
      [  111.788446]  mmc_blk_mq_issue_rq+0x49c/0x880
      [  111.792703]  mmc_mq_queue_rq+0x118/0x2b0
      [  111.796616]  blk_mq_dispatch_rq_list+0x104/0x7f0
      [  111.801222]  __blk_mq_sched_dispatch_requests+0xd4/0x1a0           
      [  111.806520]  blk_mq_sched_dispatch_requests+0x38/0x78
      [  111.811556]  __blk_mq_run_hw_queue+0xac/0x128
      [  111.815900]  blk_mq_run_work_fn+0x20/0x30
      [  111.819902]  process_one_work+0x1a0/0x348
      [  111.823899]  worker_thread+0x4c/0x440
      [  111.827551]  kthread+0x140/0x160
      [  111.830769]  ret_from_fork+0x10/0x30
      [  111.834334] ---[ end trace 135e3c16fe97935f ]---
      [  111.853770] mmc0: running CQE recovery
      [  111.888479] mmc0: running CQE recovery
      ... 

      Fixes:
      Fixed issues with driver:
      https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2024.04&id=364381c20e49c1a921a4eb644c668616e211756f
      https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2024.04&id=8edae8bccf13cc197d5850203967077549d08af4
      https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2024.04&id=a03ab5f6ce12f580fbf398afd7ffc583fc4132d7
      https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2024.04&id=09c2ff02e0b1c7ea535e35242baf7b38d1780bc3
      https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2024.04&id=ad5893303cdbf11d36a145968a9bcbf0a99665f5
      upstream link: https://lore.kernel.org/u-boot/20240418190100.1289150-1-jm@ti.com/

      Fixed timing issues on am62x:
      https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/?h=ti-linux-6.6.y&id=32ae7316ddc6d9b6bb0d87706cf7daa44c4c1e92
      https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/?h=ti-linux-6.6.y&id=edf600900a7000da4029c5f684a24502037ea7f8
      https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/?h=ti-linux-6.6.y&id=24812b6a81064ba605954c3519275cb88018828a
      https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/?h=ti-linux-6.6.y&id=5bc0054f6e8f93be56a5cf2570e9db9d40f5d665

      Fixed tuning algorithm re-tuning:
      https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=901d16e462963cb0d824144be7448505b15ff4d6
      6.6 backport: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/?h=ti-linux-6.6.y&id=24812b6a81064ba605954c3519275cb88018828a

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-5011 - copying files to eMMC causes kernel...
                SYNCHRONIZED
                • Last Sync Date: