Skip to content

Update AppleSMC for OS X 10.12.4+ guests

Gabriel L. Somlo qemu-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 5 repliesSuperseded
  3. v13 patches 9 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3applesmc: cosmetic whitespace and indentation cleanuphw/misc/applesmc.c+50 -480 replies
2/3applesmc: implement error status porthw/misc/applesmc.c+115 -260 replies
3/3applesmc: fix port i/o access widthhw/misc/applesmc.c+2 -20 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAlexander GrafPhilippe Mathieu-DaudéPhil Dennis-Jordan
1/3R-b R-b R-b
2/3R-b R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/3] Update AppleSMC for OS X 10.12.4+ guests

As of 10.12.4, OS X refuses to boot unless the AppleSMC supports a third I/O port, which provides the current error status when read.

New since v2:
- updated "reviewd-by" fields
- ping ?

Quoted 5 lines

New since v1:

- 1/3: don't touch the default OSK string, as it's unnecessary at this time

Quoted 22 lines

- 2/3: don't consolidate I/O regions, leave as-is for data and cmd; This patch now implements the error-code state machine, AND adds an i/o region dedicaded to the error status port, complete with read/write access methods.

- 3/3: set access width to 1-byte on data and cmd i/o regions. Tested on OS X versions 10.[6..12].

Quoted 14 lines

This series consists of three patches:

- 1/3: indentation/whitespace cleanup for applesmc.c to the point where it now passes scripts/checkpatc.pl, and allows subsequent changes to look nice in diff-patch format :)

- 2/3: consolidate Port I/O into a single region, and invoke appropriate read/write methods based on the offset being accessed

- 3/3: implement read-only error/status port, and update data and command read/write methods to correctly maintain the state machine for keeping the status_1e value up to date.

Gabriel L. Somlo (3):
applesmc: cosmetic whitespace and indentation cleanup
applesmc: implement error status port
applesmc: fix port i/o access width

 hw/misc/applesmc.c | 219 +++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 155 insertions(+), 64 deletions(-)
Signature · 1 line
2.7.4