)]}'
{
  "commit": "e62df37e0eff4d670e78bbd415be2c1675883c15",
  "tree": "11ced107ed00d943dd364ea60d5fe2f0dd6e772d",
  "parents": [
    "ec91bb159dc24eefe144ef8867937f4a055dd0e2"
  ],
  "author": {
    "name": "Akshay Jindal",
    "email": "Akshay.Jindal@amd.com",
    "time": "Thu Nov 05 16:32:17 2026 +0000"
  },
  "committer": {
    "name": "Joerg Roedel",
    "email": "joerg.roedel@amd.com",
    "time": "Fri Nov 06 13:22:43 2026 +0100"
  },
  "message": "iommu/amd: Skip non-IVMD entries when parsing IVRS memory definitions\n\ninit_memory_definitions() walks every top-level subtable including the\nIVHD blocks (type 0x10/0x11/0x40) in the IVRS ACPI table. It interprets\neach one as a \u0027struct ivmd_header\u0027, solely on m-\u003eflags, without first\nchecking that the subtable\u0027s type actually is one of the IVMD types\n(ACPI_IVMD_TYPE, ACPI_IVMD_TYPE_ALL, ACPI_IVMD_TYPE_RANGE).\n\n    if (m-\u003eflags \u0026 (IVMD_FLAG_UNITY_MAP | IVMD_FLAG_EXCL_RANGE))\n            init_unity_map_range(m, table);\n\nIVMD_FLAG_UNITY_MAP (0x01) occupies the same bit position as the IVHD\nflags field\u0027s HtTunEn bit. Unlike real hardware, QEMU\u0027s AMD IOMMU\nemulation sets HtTunEn unconditionally (flags\u003d0xD1 for type 0x10,\n0x11 for type 0x11), so every QEMU-emitted IVHD block is misidentified\nas a unity-map/exclusion-range IVMD entry, which subsequently results\nin the creation of a bogus pci segment. Eg:\n\n    AMD-Vi: PCI segment : 0x4000, last bdf : 0x0000\n\nFix by checking the subtable\u0027s type before treating it as IVMD.\n\nFixes: be2a022c0dd0 (\"x86, AMD IOMMU: add functions to parse IOMMU memory mapping requirements for devices\")\nCc: stable@vger.kernel.org\nSigned-off-by: Akshay Jindal \u003cAkshay.Jindal@amd.com\u003e\nSigned-off-by: Vasant Hegde \u003cvasant.hegde@amd.com\u003e\nSigned-off-by: Joerg Roedel \u003cjoerg.roedel@amd.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "78c7079dec9d634e26b3b8c3522932cdf9225dfc",
      "old_mode": 33188,
      "old_path": "drivers/iommu/amd/init.c",
      "new_id": "3dd4ff145e55250d75937615488ac42c787158d8",
      "new_mode": 33188,
      "new_path": "drivers/iommu/amd/init.c"
    }
  ]
}
