)]}'
{
  "commit": "a2fcb3bc03194e91f2afcd89f7157a61ddf2db1a",
  "tree": "e83a58b2d8bed84eb8dcdfd13d9f596a3a4118c2",
  "parents": [
    "b1ee96949bc7f89634abdb79c7e65ae1a1e3f180"
  ],
  "author": {
    "name": "Sam Agazaryan",
    "email": "samagazaryan@google.com",
    "time": "Wed Nov 18 22:56:38 2026 +0000"
  },
  "committer": {
    "name": "mdb:gbmc-git-owners",
    "email": "superproject-auto-update@invalid",
    "time": "Wed Nov 25 21:40:00 2026 -0800"
  },
  "message": "i3c: mipi-i3c-hci: Don\u0027t rewind ring on timeout\n\nOn every transfer timeout, hci_dma_dequeue_xfer() moves CR_ENQ_PTR back\nto CR_SW_DEQ_PTR, a downstream addition meant for the target mode halt\nreset. CR_SW_DEQ_PTR only advances when software handles a response, so\nit trails the hardware dequeue pointer whenever a finished transfer has\nnot been processed yet, for instance after a missed completion\ninterrupt. Rewinding then leaves the enqueue pointer behind the dequeue\npointer, and on restart the controller re-executes up to 255 stale\ndescriptors. Their responses land on freed transfers: a burst of\n\"response tid\u003dN when expecting M\" after \"Ring 0: Transfer Aborted\",\nthen a NULL pointer dereference in dma_unmap_phys() from the interrupt\nhandler. The rewind also drops entries other devices queued behind the\ntimed-out one.\n\nLike upstream, leave CR_ENQ_PTR alone after a timeout, since the\ntimed-out entries are already No-Ops. For the target mode halt reset,\nwhich passes no transfer list and discards everything still queued,\nmove CR_ENQ_PTR back to the hardware dequeue pointer instead, and unmap\nand release the discarded entries.\n\nThe rewind\u0027s RING_OPERATION1 write also served as the doorbell an\naborted ring needs, written while it runs, before it resumes. Write\nRING_OPERATION1 back unchanged after restarting the ring, so entries\nqueued behind the timed-out ones don\u0027t wait for the next transfer.\n\nTested: AST2700 A2 BMC, with a test-only patch that makes the\ninterrupt handler ignore TRANSFER_COMPLETION on the bus carrying the\nhost CPU\u0027s MCTP endpoint, so transfers time out with their response\nunread. Without this series, including with only the four upstream\ndequeue fixes it is based on, each timeout replayed stale ring\nentries (about 240 \"response tid\" errors per timeout) and the BMC\npanicked in dma_unmap_phys() as in the field report. With it, 1882\nforced timeouts over 100 rounds on two buses gave no tid mismatches\nor warnings, and MCTP traffic recovered after every round. A\n100-cycle power-cycle soak of both hosts was also clean. The target\nmode halt reset path is compile-tested only, since the BMC doesn\u0027t\nrun any I3C controller in target mode.\n\nFixes: 180e737c7747 (\"i3c: master: Enhance error handling and reset mechanisms\")\nGoogle-Bug-Id: 586592800\nChange-Id: I583f133e7b79597e48bbc9e2dc4b295635f75c71\nSigned-off-by: Sam Agazaryan \u003csamagazaryan@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0f87e7d4697f20807034f858a9a68c48e11ce8b3",
      "old_mode": 57344,
      "old_path": "linux/6.18-ast27xx",
      "new_id": "756e56e4fffb08c1581843f2a036566513eec3ef",
      "new_mode": 57344,
      "new_path": "linux/6.18-ast27xx"
    }
  ]
}
