The NetBSD Project

CVS log for src/sys/dev/acpi/wmi/wmi_acpi.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Aug 11 08:36:59 2023 UTC (14 months, 3 weeks ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +9 -9 lines
acpiwmi(4): Fix abuse of char buffer for struct guid_t content.

Nothing guarantees alignment, so this is all undefined behaviour,
even if we don't touch the uninitialized members.

XXX pullup-10
XXX pullup-9
XXX pullup-8

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Aug 10 20:49:19 2023 UTC (14 months, 3 weeks ago) by mrg
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3 lines
don't assign struct pointers to smaller then structure regions of memory.

in all cases here, the later parts of the structure are not actually
accessed, so there are no existing bugs here beyond general UB.  for the
ufs ones, this also removes some casts.

found by GCC 12.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed May 10 00:08:22 2023 UTC (17 months, 3 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +7 -6 lines
acpiwmi(4): Use config_detach_children.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Dec 12 22:20:52 2021 UTC (2 years, 10 months ago) by andvar
Branches: MAIN
CVS tags: netbsd-10-base, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
fix various typos in comments.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:09 2021 UTC (3 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
Merge thorpej-cfargs2.

Revision 1.18.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 17:24:17 2021 UTC (3 years, 2 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +3 -3 lines
Adapt to CFARGS().

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:52 2021 UTC (3 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -5 lines
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.16.18.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:43 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +7 -10 lines
Sync with HEAD.

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 24 14:21:08 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +6 -5 lines
Don't filter interface attributes in rescan functions for devices that
carry only a single interface attribute.  The autoconfiguration machinery
already considers interface attributes when searching for possible parents.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Jan 29 15:49:55 2021 UTC (3 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -10 lines
Use acpi_compatible_match().

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Dec 3 17:34:50 2017 UTC (6 years, 11 months ago) by bouyer
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, 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, netbsd-9-base, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -5 lines
- make sure strtoul() is called with a NULL-terminated string.
- acpi_wmi_input(): a valid data block may have flags set to 0.

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:59 2017 UTC (6 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +7 -16 lines
update from HEAD

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

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:09 2017 UTC (7 years, 5 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, 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
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -16 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.13.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:52 2012 UTC (12 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +3 -10 lines
sync with head

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Aug 14 14:38:02 2012 UTC (12 years, 2 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, khorben-n900, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -10 lines
Use KM_SLEEP.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jul 17 02:46:01 2011 UTC (13 years, 3 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +26 -23 lines
- Fix wmieeepc(4) hotkeys on Eee PC 1215T
 - Rework wmi_event_enable into appropriately seperate versions for enabling
   events and collection.
 - Enable all events, not just ones tagged as expensive.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:44 2011 UTC (13 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +20 -60 lines
Sync with HEAD.

Revision 1.4.4.4: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:05 2011 UTC (13 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.4.4.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.3: +187 -29 lines
sync with head

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Thu Feb 17 12:00:10 2011 UTC (13 years, 8 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +20 -60 lines
Sync with HEAD

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Feb 16 08:19:56 2011 UTC (13 years, 8 months ago) by jruoho
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +20 -60 lines
Convert the homegrown module declarations to use ioconf.

Revision 1.4.2.4: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:28 2010 UTC (13 years, 11 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.4.2.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.3: +197 -25 lines
Sync with HEAD.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Oct 28 15:55:04 2010 UTC (14 years ago) by jruoho
Branches: MAIN
CVS tags: uebayasi-xip-base4, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +95 -23 lines
Install EC space handler and pass everything to acpiec(4).
Should fix PR # 43659.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Oct 25 15:38:05 2010 UTC (14 years ago) by jruoho
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Fix build failure.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Oct 24 18:26:29 2010 UTC (14 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +79 -2 lines
add support for building as a module

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Oct 24 15:07:20 2010 UTC (14 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +29 -6 lines
add rescan support

Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:02 2010 UTC (14 years, 2 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.2: +10 -79 lines
Sync with HEAD.

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:17 2010 UTC (14 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.1: +705 -0 lines
sync with head.

Revision 1.7.2.1
Fri Aug 6 22:45:00 2010 UTC (14 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.7: +0 -705 lines
file wmi_acpi.c was added on branch yamt-nfs-mp on 2010-08-11 22:53:17 +0000

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Aug 6 22:45:00 2010 UTC (14 years, 3 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2
Branch point for: yamt-nfs-mp
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +27 -4 lines
Remove the acpiwmi(4) dump from the ACPIVERBOSE module. Instead of this
complex solution, just use aprint_debug(9) in the driver.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Jul 29 07:10:39 2010 UTC (14 years, 3 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +8 -5 lines
Add "pnp0c14" to the list of HIDs. Required for LG X110. As valid EISA IDs
should be all upper case, leave this as a onetime quirk specific to acpiwmi(4).

Revision 1.4.4.3: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:34 2010 UTC (14 years, 4 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.4.4.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.2: +3 -98 lines
sync with head

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon May 31 20:32:29 2010 UTC (14 years, 5 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -98 lines
Extract ACPIVERBOSE into a kernel module.  The module can be builtin
by defining 'options ACPIVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

ACPIVERBOSE also includes code to dump acpi/wmi data.

Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:18 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.1: +774 -0 lines
sync with head

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:07 2010 UTC (14 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +774 -0 lines
Sync with HEAD.

Revision 1.4.4.1
Thu Apr 15 07:02:24 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
FILE REMOVED
Changes since revision 1.4: +0 -774 lines
file wmi_acpi.c was added on branch rmind-uvmplock on 2010-05-30 05:17:18 +0000

Revision 1.4.2.1
Thu Apr 15 07:02:24 2010 UTC (14 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
FILE REMOVED
Changes since revision 1.4: +0 -774 lines
file wmi_acpi.c was added on branch uebayasi-xip on 2010-04-30 14:43:07 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Apr 15 07:02:24 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
CVS tags: uebayasi-xip-base1
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +17 -34 lines
As discussed with jmcneill@, install a global "bus notification handler"
that receives all notifications and deliver notifications to drivers via it.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Apr 9 04:48:23 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4 lines
Fix a potential NULL pointer dereference.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Apr 8 12:36:21 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +9 -7 lines
Semantics.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Apr 8 12:14:19 2010 UTC (14 years, 6 months ago) by jruoho
Branches: MAIN
Move acpiwmi(4) to the "sys/dev/acpi/wmi" -subdirectory.

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>