)]}'
{
  "commit": "fd0a10cd20a1c5ae829be32f3364dae88f435c4e",
  "tree": "9501c57ebfa2f75e70261fefe057bd1a731f1359",
  "parents": [
    "ec93e158b1930d6c6db22e3c0a655337ae221034"
  ],
  "author": {
    "name": "Laurent Vivier",
    "email": "lvivier@redhat.com",
    "time": "Wed Jan 06 20:45:24 2016 +0100"
  },
  "committer": {
    "name": "Gerd Hoffmann",
    "email": "kraxel@redhat.com",
    "time": "Fri Jan 08 09:29:24 2016 +0100"
  },
  "message": "ohci: delay first SOF interrupt\n\nOn overcommitted CPU, kernel can be so slow that an interrupt can\nbe triggered by the device whereas the driver is not ready to receive\nit. This drives us into an infinite loop.\n\nThis does not happen on real hardware because real hardware never send\ninterrupt immediately after the controller has been moved to OPERATION state.\n\nThis patch tries to delay the first SOF interrupt to let driver exits from\nthe critical section (which is not protected against interrupts...)\n\nSome details:\n\n- ohci_irq(): the OHCI interrupt handler, acknowledges the SOF IRQ\n  only if the state of the driver (rh_state) is OHCI_STATE_RUNNING.\n  So if this interrupt happens and the driver is not in this state,\n  the function is called again and again, moving the system to a\n  CPU starvation.\n\n- ohci_rh_resume(): the driver re-enables operation with OHCI_USB_OPER.\n  In QEMU this start the SOF timer and QEMU starts to send IRQs. As\n  the driver is not in OHCI_STATE_RUNNING and not protected against IRQ,\n  the ohci_irq() can be called and the driver never moved to\n  OHCI_STATE_RUNNING.\n\nSuggested-by: Gerd Hoffmann \u003ckraxel@redhat.com\u003e\nSigned-off-by: Laurent Vivier \u003clvivier@redhat.com\u003e\nReviewed-by: Thomas Huth \u003cthuth@redhat.com\u003e\nMessage-id: 1452109525-32150-2-git-send-email-lvivier@redhat.com\nSigned-off-by: Gerd Hoffmann \u003ckraxel@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d225ebbbe3bce0cb9b5a361052236af441e5cd84",
      "old_mode": 33188,
      "old_path": "hw/usb/hcd-ohci.c",
      "new_id": "ff5658e25efc24057bfcf2063208cb6e7106bc9e",
      "new_mode": 33188,
      "new_path": "hw/usb/hcd-ohci.c"
    }
  ]
}
