)]}'
{
  "commit": "bee09ed91cacdbffdbcd3b05de8409c77ec9fcd6",
  "tree": "dfe1f692177bd81a5b4552fe0b6ae2540803d7a2",
  "parents": [
    "c026b3591e4f2a4993df773183704bb31634e0bd"
  ],
  "author": {
    "name": "Robert Richter",
    "email": "rric@kernel.org",
    "time": "Wed Jan 15 15:57:29 2014 +0100"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@kernel.org",
    "time": "Thu Jan 16 09:19:50 2014 +0100"
  },
  "message": "perf/x86/amd/ibs: Fix waking up from S3 for AMD family 10h\n\nOn AMD family 10h we see following error messages while waking up from\nS3 for all non-boot CPUs leading to a failed IBS initialization:\n\n Enabling non-boot CPUs ...\n smpboot: Booting Node 0 Processor 1 APIC 0x1\n [Firmware Bug]: cpu 1, try to use APIC500 (LVT offset 0) for vector 0x400, but the register is already in use for vector 0xf9 on another cpu\n perf: IBS APIC setup failed on cpu #1\n process: Switch to broadcast mode on CPU1\n CPU1 is up\n ...\n ACPI: Waking up from system sleep state S3\n\nReason for this is that during suspend the LVT offset for the IBS\nvector gets lost and needs to be reinialized while resuming.\n\nThe offset is read from the IBSCTL msr. On family 10h the offset needs\nto be 1 as offset 0 is used for the MCE threshold interrupt, but\nfirmware assings it for IBS to 0 too. The kernel needs to reprogram\nthe vector. The msr is a readonly node msr, but a new value can be\nwritten via pci config space access. The reinitialization is\nimplemented for family 10h in setup_ibs_ctl() which is forced during\nIBS setup.\n\nThis patch fixes IBS setup after waking up from S3 by adding\nresume/supend hooks for the boot cpu which does the offset\nreinitialization.\n\nMarking it as stable to let distros pick up this fix.\n\nSigned-off-by: Robert Richter \u003crric@kernel.org\u003e\nSigned-off-by: Peter Zijlstra \u003cpeterz@infradead.org\u003e\nCc: \u003cstable@vger.kernel.org\u003e v3.2..\nCc: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\nLink: http://lkml.kernel.org/r/1389797849-5565-1-git-send-email-rric.net@gmail.com\nSigned-off-by: Ingo Molnar \u003cmingo@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e09f0bfb7b8f23b3206ed623289df4b9bff67605",
      "old_mode": 33188,
      "old_path": "arch/x86/kernel/cpu/perf_event_amd_ibs.c",
      "new_id": "4b8e4d3cd6ea62bc9c9047e869fa84cbd9cbe33a",
      "new_mode": 33188,
      "new_path": "arch/x86/kernel/cpu/perf_event_amd_ibs.c"
    }
  ]
}
