)]}'
{
  "commit": "8a73152020337a7fbf34daf0a006d4d89ec1494e",
  "tree": "598fadb89ea3181580de2137205b78e920966712",
  "parents": [
    "12af201a59e4cfc55381aae4ccb8cd071f026b0d"
  ],
  "author": {
    "name": "Guenter Roeck",
    "email": "linux@roeck-us.net",
    "time": "Sun Jan 28 22:00:55 2024 -0800"
  },
  "committer": {
    "name": "Peter Maydell",
    "email": "peter.maydell@linaro.org",
    "time": "Fri Feb 02 13:51:58 2024 +0000"
  },
  "message": "pci-host: designware: Limit value range of iATU viewport register\n\nThe latest version of qemu (v8.2.0-869-g7a1dc45af5) crashes when booting\nthe mcimx7d-sabre emulation with Linux v5.11 and later.\n\nqemu-system-arm: ../system/memory.c:2750: memory_region_set_alias_offset: Assertion `mr-\u003ealias\u0027 failed.\n\nProblem is that the Designware PCIe emulation accepts the full value range\nfor the iATU Viewport Register. However, both hardware and emulation only\nsupport four inbound and four outbound viewports.\n\nThe Linux kernel determines the number of supported viewports by writing\n0xff into the viewport register and reading the value back. The expected\nvalue when reading the register is the highest supported viewport index.\nMatch that code by masking the supported viewport value range when the\nregister is written. With this change, the Linux kernel reports\n\nimx6q-pcie 33800000.pcie: iATU: unroll F, 4 ob, 4 ib, align 0K, limit 4G\n\nas expected and supported.\n\nFixes: d64e5eabc4c7 (\"pci: Add support for Designware IP block\")\nCc: Andrey Smirnov \u003candrew.smirnov@gmail.com\u003e\nCc: Nikita Ostrenkov \u003cn.ostrenkov@gmail.com\u003e\nSigned-off-by: Guenter Roeck \u003clinux@roeck-us.net\u003e\nMessage-id: 20240129060055.2616989-1-linux@roeck-us.net\nReviewed-by: Peter Maydell \u003cpeter.maydell@linaro.org\u003e\nSigned-off-by: Peter Maydell \u003cpeter.maydell@linaro.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dd9e389c07bc606d10c520415efe320cdfe0f954",
      "old_mode": 33188,
      "old_path": "hw/pci-host/designware.c",
      "new_id": "c25d50f1c6bd37d6548252502d310f8657ff23b3",
      "new_mode": 33188,
      "new_path": "hw/pci-host/designware.c"
    }
  ]
}
