The NetBSD Project

CVS log for src/sys/dev/acpi/acpi_cpu.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / acpi

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.52.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:05 2020 UTC (5 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +16 -3 lines
Sync w/ HEAD.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Dec 7 10:57:41 2020 UTC (5 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +16 -3 lines
acpicpu: Add support for ACPI P-states and T-states on Arm.

Revision 1.51.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:02 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +8 -18 lines
Merge changes from current as of 20200406

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Mar 16 21:20:09 2020 UTC (6 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Branch point for: thorpej-futex
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +8 -18 lines
Use the module subsystem's ability to process SYSCTL_SETUP() entries to
automate installation of sysctl nodes.

Note that there are still a number of device and pseudo-device modules
that create entries tied to individual device units, rather than to the
module itself.  These are not changed.

Revision 1.49.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:58 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.49.2.1: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.2.1: +0 -3 lines
update from HEAD

Revision 1.50.6.1: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:01 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +2 -5 lines
Sync with HEAD

Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:09 2017 UTC (9 years, 5 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: phil-wifi
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -5 lines
remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:35 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -10 lines
Rebase to HEAD as of a few days ago.

Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:19 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.1: +3 -10 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.49.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:35 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +3 -10 lines
sync with head

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:09 2014 UTC (12 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: nick-nhusb
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -10 lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:27 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +6 -5 lines
sync with head

Revision 1.48.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:25 2012 UTC (14 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +6 -5 lines
sync to latest -current.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Mar 27 18:37:57 2012 UTC (14 years, 7 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +6 -5 lines
Fix a regression introduced during the change of the DMI naming conventions
(rev. 1.48). Also add a quirk for ASUSTeK's M2A-MX in order to allow
powernow(4) to attach (reported by bouyer@).

Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Nov 14 02:44:59 2011 UTC (15 years ago) by jmcneill
Branches: MAIN
CVS tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -4 lines
add a machdep.dmi sysctl tree with the following read-only keys:
 system-vendor, system-product, system-version, system-serial, system-uuid
 bios-vendor, bios-version
 board-vendor, board-product, board-version, board-serial
the *-serial and *-uuid keys are marked with CTLFLAG_PRIVATE

a few of the pmf platform key names changed so update callers to match

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Oct 27 05:25:07 2011 UTC (15 years ago) by jruoho
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -8 lines
Revert the revision 1.5 in cpufreq(9). Instead, document that the KPI can
not be used before interrupts have been enabled. Suggested by macallan@.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Oct 20 06:57:23 2011 UTC (15 years, 1 month ago) by jruoho
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +11 -11 lines
Initialize P-states to P0 (i.e. the highest frequency).

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Oct 18 05:08:24 2011 UTC (15 years, 1 month ago) by jruoho
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +55 -8 lines
Convert to use cpufreq(9).

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:55 2011 UTC (15 years, 4 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +17 -102 lines
Catchup with rmind-uvmplock merge.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Jun 22 08:49:54 2011 UTC (15 years, 4 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -21 lines
Get rid of RUN_ONCE(9). Should fix PR # kern/44043.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Jun 21 03:37:21 2011 UTC (15 years, 5 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3 lines
Rename acpi_get_node() to acpi_match_node() for consistency.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Jun 20 15:33:49 2011 UTC (15 years, 5 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +11 -59 lines
Use the new acpi_match_cpu_info() from acpi_util.c.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Jun 12 10:11:52 2011 UTC (15 years, 5 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +8 -45 lines
Move the evaluation of the _PDC control method out from the acpicpu(4)
driver to the main acpi(4) stack. Follow Linux and evaluate it early.
Should fix PR port-amd64/42895, possibly also PR kern/42583, and many
other comparable bugs.

A common sense explanation is that Intel supplies additional CPU tables to
OEMs. BIOS writers do not bother to modify their DSDTs, but instead load
these extra tables dynamically as secondary SSDT tables. The actual Load()
happens when the _PDC method is invoked, and thus namespace errors occur
when the CPU-specific ACPI methods are not yet present but referenced in the
AML by various drivers, including, but not limited to, acpitz(4).

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:40 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +400 -127 lines
Sync with HEAD.

Revision 1.37.2.5: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:34 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.37.2.4: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.2.4: +10 -9 lines
sync with head

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Apr 25 05:30:21 2011 UTC (15 years, 6 months ago) by jruoho
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +12 -11 lines
Add a missing case value in a switch statement.

Revision 1.37.2.4: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:45 2011 UTC (15 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.37.2.3: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.3: +4 -5 lines
sync with head

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Mar 24 05:10:06 2011 UTC (15 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -4 lines
Remove the "simple CPU lock" that was unnecessary.
Thanks to rmind@ for clarifications.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Mar 19 12:57:30 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -5 lines
Like in rest of the acpi(4) stack, queue all resume hooks.

Revision 1.37.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 6 00:26:59 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.37.2.2: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.2: +2 -0 lines
sync with head (and fix few botches with this)

Revision 1.37.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:02 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.37.2.1: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.1: +976 -0 lines
sync with head

Revision 1.25.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:10:16 2011 UTC (15 years, 8 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.25.4.1: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.4.1: +390 -77 lines
Sync with HEAD

Revision 1.37.2.1
Sat Mar 5 09:47:19 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
FILE REMOVED
Changes since revision 1.37: +0 -978 lines
file acpi_cpu.c was added on branch rmind-uvmplock on 2011-03-05 20:53:02 +0000

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Mar 5 09:47:19 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
CVS tags: bouyer-quota2-nbase
Branch point for: rmind-uvmplock
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -2 lines
Add __cpu_simple_lock_t. Use it, x86_read_psl(), and x86_disable_intr() to
disable interrupts locally and protect the access to APERF and MPERF. Also
rationalize the MD initialization sequence.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Mar 3 19:24:43 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +27 -2 lines
Add DMI quirk support via pmf_get_platform(9). If any of the listed models
are matched, the whole driver will be prevented from attaching. The first
entry is Supermicro PDSMi-LN4+ (a BIOS bug with bogus P-state entries).

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Mar 2 06:17:08 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +8 -6 lines
Append Intel's Turbo Boost to the debug printfs if we detect it.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Mar 1 13:38:45 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -3 lines
Detach evcnt(9) before the states.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Mar 1 05:57:04 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +106 -5 lines
Move also the evcnt(9) event counters to one place. No functional change.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Mar 1 05:32:03 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +78 -2 lines
Simplify by moving the debug printfs to one place. No functional change.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Feb 27 18:32:53 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +14 -8 lines
Provide MD wrappers for match and attach.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Feb 27 17:10:33 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +122 -84 lines
Move acpicpu(4) from "acpinodebus" to "cpufeaturebus".

Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Feb 25 19:55:06 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +60 -2 lines
Start to derive the percpu(9) (or per-domain) state coordination
mechanisms by parsing the _CSD, _PSD, and _TSD objects by default.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Feb 25 12:08:35 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -4 lines
Rename couple of badly named functions for consistency. No functional change.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Feb 25 06:18:02 2011 UTC (15 years, 8 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +17 -13 lines
Store a pointer to cpu_info rather than cpu_info::ci_acpiid alone.

Revision 1.25.4.1: download - view: text, markup, annotated - select for diffs
Thu Feb 17 12:00:09 2011 UTC (15 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +20 -60 lines
Sync with HEAD

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Feb 16 08:35:51 2011 UTC (15 years, 9 months ago) by jruoho
Branches: MAIN
CVS tags: bouyer-quota2-base
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +20 -60 lines
Use ioconf for the module declarations.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jan 13 04:18:19 2011 UTC (15 years, 10 months ago) by jruoho
Branches: MAIN
CVS tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +5 -2 lines
Do not try to attach more ACPI CPUs than the amount of "real" CPUs.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Dec 30 12:05:02 2010 UTC (15 years, 10 months ago) by jruoho
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +64 -3 lines
Change the default behavior to enforce the maximum frequency when the
firmware requests to do so. This cures severe overhating (> 120 C) observed
on many laptops, being also on par with the specification(s). This can be
reverted by using the new "hw.acpi.cpu.dynamic" sysctl variable.

Revision 1.18.2.4: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:27 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.18.2.3: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.3: +3 -3 lines
Sync with HEAD.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Oct 28 04:28:29 2010 UTC (16 years ago) by jruoho
Branches: MAIN
CVS tags: uebayasi-xip-base4
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
Fix a comment typo.

Revision 1.18.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:21:51 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.18.2.2: preferred, colored
Changes since revision 1.18.2.2: +166 -131 lines
Sync with HEAD (-D20101022).

Revision 1.14.2.3: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:04 2010 UTC (16 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.14.2.2: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.2: +184 -131 lines
sync with head

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Aug 27 03:05:26 2010 UTC (16 years, 2 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, uebayasi-xip-base3
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -22 lines
Fix PR kern/43765 from Scott Ellis.

Note that the solution is not optimal. If ichlpcib(4) provides SpeedStep
support, possible I/O resource conflicts may occur with acpicpu(4). Ideally,
as noted for instance in Windows design documents, ichlpcib(4) should never
expose SpeedStep when ACPI is being used. The probability for potential race
conditions is however very small, being limited to few P4-era machines and
being dependent on user actions.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Aug 27 02:44:05 2010 UTC (16 years, 2 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +115 -95 lines
From jmcneill@: fix and rework the obscure _OSC evaluation.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Aug 19 05:09:53 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +17 -6 lines
Deal with autoconfiguration madness by using config_defer(9) to defer
config_interrupts(9) to be executed. This is necessary because: (a) the
initialization routines must be run only once after interrupts are enabled
and (b) all ACPI CPUs have attached.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Aug 17 10:17:52 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -2 lines
Add support for the optional dynamic minimum (in terms of MHz) via _PDL.
Comparable to T-states, this gives effectively a window of available
performance states for passive cooling. An example:

Init:		max = 0, min = Pn.

		Time j.				Time j + 1.
		-----------			-----------
2000 MHz	P0	max			P0
		P1				P1	max
		P2		   ==>		P2
		P3				P3	min
		P4				P4
		P5	min			P5
 500 Mhz	Pn				Pn
		-----------			-----------

Search:		repeat (i = P0; i <= P5)	repeat (i = P1; i <= P3)

Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:45:59 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.18.2.1: preferred, colored
Changes since revision 1.18.2.1: +606 -0 lines
Sync with HEAD.

Revision 1.18.2.1
Mon Aug 16 20:07:57 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
FILE REMOVED
Changes since revision 1.18: +0 -629 lines
file acpi_cpu.c was added on branch uebayasi-xip on 2010-08-17 06:45:59 +0000

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Aug 16 20:07:57 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Branch point for: uebayasi-xip
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -6 lines
Two changes:

  1.	Initialize P-states properly to P0. It is processor-specific
   	what value we might get without initialization. (Some AMD CPUs
	have even specific registers for the state after cold reset.)

  2.	Following design notes for Windows, set the lowest-power P-state
	upon suspend and restore the saved state after resume.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Aug 16 17:58:42 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +39 -16 lines
Now that the deferred configuration actually works as expected and documented,
use config_defer(9) instead of config_finalize_register(9), and simplify the
code paths around the initialization.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Aug 14 11:16:14 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
CVS tags: uebayasi-xip-base2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -2 lines
Check the cold-flag also in the notify handler.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Aug 13 16:21:50 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +17 -3 lines
Merge T-state a.k.a. throttling support for acpicpu(4).

Remarks:

  1.    Native instructions are supported only on Intel. Native support for
        other x86 vendors will be investigated. By assumption, AMD and others
        use the I/O based approach.

  2.    The existing code, INTEL_ONDEMAND_CLOCKMOD, must be disabled in
        order to use acpicpu(4). Otherwise fatal MSR races may occur.
        Unlike with P-states, no attempt is done to disable the existing
        implementation.

  3.    There is no rationale to export controls to user land.

  4.    Throttling is an artefact from the past. T-states will not be used for
        power management per se. For CPU frequency management, P-states are
        preferred in all circumstances. No noticeable additional power savings
        were observed in various experiments. When the system has been scaled
        to the highest (i.e. lowest power) P-state, it is preferable to move
        from C0 to deeper C-states than it is to actively throttle the CPU.

  5.    But T-states need to be implemented for passive cooling via acpitz(4).
        As specified by ACPI and Intel documents, these can be used as the
        last line of defence against critical thermal conditions. Support
        for this will be added later.

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:15 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.14.2.1: preferred, colored
Changes since revision 1.14.2.1: +588 -0 lines
sync with head.

Revision 1.14.2.1
Wed Aug 11 16:22:18 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.14: +0 -589 lines
file acpi_cpu.c was added on branch yamt-nfs-mp on 2010-08-11 22:53:15 +0000

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Aug 11 16:22:18 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Branch point for: yamt-nfs-mp
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -4 lines
Check the 'sc->sc_cold' flag also in P-state code, and set this flag once
we start the detachment routine.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Aug 8 18:47:54 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-nfs-mp-base10
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +6 -5 lines
jmcneill@: do not touch the bus_space(9) handle.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Aug 8 16:58:42 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +23 -8 lines
Merge P-state support for acpicpu(4).

Remarks:

  1.    All processors (x86 or not) for which the vendor has implemented
        ACPI I/O access routines are supported. Native instructions are
        currently supported only for Intel's "Enhanced Speedstep". Code for
        "PowerNow!" (AMD) will be merged later. Native support for VIA's
        "PowerSaver" will be investigated.

  2.    Backwards compatibility with existing userland code is maintained.
        Comparable to the case with cpu_idle(9), the ACPI CPU driver
        installs alternative functions for the existing sysctl(8) controls.
        The "native" behavior (if any) is restored upon detachment.

  3.    The dynamic nature of ACPI-provided P-states needs more investigation.
        The maximum frequency induced (but not forced) by the firmware may
        change dynamically. Currently, the sysctl(8) controls error out with
        a value larger than the dynamic maximum. The code itself does not
        however yet react to the notifications from the firmware by changing
        the frequencies in-place. Presumably the system administrator should
        be able to choose whether to use dynamic or static frequencies.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Aug 4 10:02:12 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Store the MADT-derived CPU ID to <x86/cpu.h>. This is required to properly
match the ACPI processor object ID with the ID available in the APIC table.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jul 30 06:11:14 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -2 lines
On second thought, rename the mutex so it can be (logically) shared. We will
not need such granularity that different states would require a different lock.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jul 29 22:42:58 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +7 -2 lines
Add a per ACPI CPU mutex for C-states. Protect the _CST update with this:
when the idle-information is being updated (e.g. due acpiacad(4) events),
we can not enter the idle-loop. The lock must run at the same priority
(IPL_NONE) as ACPICA's mutexes obtained via AcpiOsCreateMutex() a.k.a.
AcpiOsCreateSemaphore(). Also check want_resched as the first thing and
clarify the suspend/resume path.

There is still one race condition identified: when the driver is loaded as a
module, we must gracefully kick all CPUs out from the ACPI idle-loop upon
detachment.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jul 26 15:14:33 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
Fix wrong return value.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jul 25 17:44:01 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -6 lines
Improve comments. Move the #ifdef around.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jul 24 22:44:00 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -12 lines
Remove the currently unnecessary mutex.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Jul 23 05:32:02 2010 UTC (16 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +10 -9 lines
Remove the recently added ACPICPU_FLAG_INIT and instead operate with the
existing ACPICPU_FLAG_C, as was intended. Set that flag only after the
idle-loop has been installed, so that the notify handler errors out if an
interrupt is received before the idle-loop is in place.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Jul 21 14:59:31 2010 UTC (16 years, 4 months ago) by cegger
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -5 lines
ACPI enumerates cpus with 0..n.
Fixes panic reported by Patrick Welche on current-users@
Fixes panic on my own HP Pavilion laptop

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Jul 19 00:59:32 2010 UTC (16 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +13 -6 lines
XXX: If this is not correct, revert or fix.
This makes my laptop boot instead of panic:

panic: kernel diagnostic assertion "native_idle != NULL" failed: file "../../../../arch/x86/acpi/acpi_cpu_md.c", line 155
fatal breakpoint trap in supervisor mode
type 1 code 0 rip ffffffff8022e4ad cs 8 rflags 246 cr2  0 cpl 0 rsp ffff80004c37db10

trace
breakpoint() at netbsd:breakpoint+0x5
panic() at netbsd:panic+0x2ba
kern_assert() at netbsd:kern_assert+0x2d
acpicpu_md_idle_stop() at netbsd:acpicpu_md_idle_stop+0x62
acpicpu_cstate_callback() at netbsd:acpicpu_cstate_callback+0x34
sysmon_task_queue_thread() at netbsd:sysmon_task_queue_thread+0x41

1. ACPI seems to define cpuids 1..n; we define 0..n-1. Adjust for that
2. My laptop is dual core, but ACPI reports 4 cpu nodes. Instead of
   attaching the unmatched ones, make the match fail. Do we want to
   attach and do nothing instead?
3. Create a flag, and only set it after we are completely initialized,
   so the sysmon thread does not try to access unitialized state.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jul 18 09:39:45 2010 UTC (16 years, 4 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
Add missing CVS identifiers.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jul 18 09:29:12 2010 UTC (16 years, 4 months ago) by jruoho
Branches: MAIN
Merge a driver for ACPI CPUs with basic support for processor power states,
also known as C-states. The code is modular and provides an easy way to add
the remaining functionality later (namely throttling and P-states).

Remarks:

  1.	Commented out in the GENERICs; more testing exposure is needed.

  2.	The C3-state is disabled for the time being because it turns off
	timers, among them the local APIC timer. This may not be universally
	true on all x86 processors; define ACPICPU_ENABLE_C3 to test.

  3.	The algorithm used to choose a power state may need tuning. When
	evaluating the appropriate state, the implementation uses the
	previous sleep time as an indicator. Additional hints would include
	for example the system load.

	Also bus master activity is evaluated when choosing a state. The
	usb(4) stack is notorious for such activity even when unused.
	Typically it must be disabled in order to reach the C3-state,
	but it may also prevent the use of C2.

  4.	While no extensive empirical measurements have been carried out, the
	power savings are somewhere between 1-2 W with C1 and C2, depending
	on the processor, firmware, and load. With C3 even up to 4 W can be
	saved.  The less something ticks, the more power is saved.

ok jmcneill@, joerg@, and discussed with various people.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>