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


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Fri Aug 11 08:36:59 2023 UTC (6 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.22: +9 -9 lines
Diff to previous 1.22 (colored)

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) - annotate - [select for diffs], Thu Aug 10 20:49:19 2023 UTC (6 months, 1 week ago) by mrg
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

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) - annotate - [select for diffs], Wed May 10 00:08:22 2023 UTC (9 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.20: +7 -6 lines
Diff to previous 1.20 (colored)

acpiwmi(4): Use config_detach_children.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Dec 12 22:20:52 2021 UTC (2 years, 2 months ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, 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
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

fix various typos in comments.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:09 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Merge thorpej-cfargs2.

Revision 1.18.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 17:24:17 2021 UTC (2 years, 6 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Adapt to CFARGS().

Revision 1.18 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:52 2021 UTC (2 years, 9 months ago) by thorpej
Branch: 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
Changes since 1.17: +6 -5 lines
Diff to previous 1.17 (colored)

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) - annotate - [select for diffs], Sat Apr 3 22:28:43 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.16: +7 -10 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with HEAD.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Wed Mar 24 14:21:08 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.17: +6 -5 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

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) - annotate - [select for diffs], Fri Jan 29 15:49:55 2021 UTC (3 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.16: +7 -10 lines
Diff to previous 1.16 (colored)

Use acpi_compatible_match().

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 3 17:34:50 2017 UTC (6 years, 2 months ago) by bouyer
Branch: 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-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
Changes since 1.15: +8 -5 lines
Diff to previous 1.15 (colored)

- 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) - annotate - [select for diffs], Sun Dec 3 11:36:59 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.14: +7 -16 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

update from HEAD

Revision 1.14.16.1 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:01 2017 UTC (6 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.14: +7 -16 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:09 2017 UTC (6 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, 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
Changes since 1.14: +7 -16 lines
Diff to previous 1.14 (colored)

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) - annotate - [select for diffs], Tue Oct 30 17:20:52 2012 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.13: +3 -10 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

sync with head

Revision 1.14 / (download) - annotate - [select for diffs], Tue Aug 14 14:38:02 2012 UTC (11 years, 6 months ago) by jruoho
Branch: 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
Changes since 1.13: +3 -10 lines
Diff to previous 1.13 (colored)

Use KM_SLEEP.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jul 17 02:46:01 2011 UTC (12 years, 7 months ago) by jakllsch
Branch: 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
Changes since 1.12: +26 -23 lines
Diff to previous 1.12 (colored)

- 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) - annotate - [select for diffs], Mon Jun 6 09:07:44 2011 UTC (12 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.11: +20 -60 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

Revision 1.4.4.4 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:05 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4.4.3: +187 -29 lines
Diff to previous 1.4.4.3 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Thu Feb 17 12:00:10 2011 UTC (13 years ago) by bouyer
Branch: bouyer-quota2
Changes since 1.11: +20 -60 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Wed Feb 16 08:19:56 2011 UTC (13 years ago) by jruoho
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.11: +20 -60 lines
Diff to previous 1.11 (colored)

Convert the homegrown module declarations to use ioconf.

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:28 2010 UTC (13 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.4.2.3: +197 -25 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 28 15:55:04 2010 UTC (13 years, 3 months ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base4, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.10: +95 -23 lines
Diff to previous 1.10 (colored)

Install EC space handler and pass everything to acpiec(4).
Should fix PR # 43659.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 25 15:38:05 2010 UTC (13 years, 4 months ago) by jruoho
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Fix build failure.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Oct 24 18:26:29 2010 UTC (13 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.8: +79 -2 lines
Diff to previous 1.8 (colored)

add support for building as a module

Revision 1.8 / (download) - annotate - [select for diffs], Sun Oct 24 15:07:20 2010 UTC (13 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +29 -6 lines
Diff to previous 1.7 (colored)

add rescan support

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:02 2010 UTC (13 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.4.2.2: +10 -79 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored)

Sync with HEAD.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:17 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.7.2.1: +705 -0 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

sync with head.

Revision 1.7.2.1, Fri Aug 6 22:45:00 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.7: +0 -705 lines
FILE REMOVED

file wmi_acpi.c was added on branch yamt-nfs-mp on 2010-08-11 22:53:17 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 6 22:45:00 2010 UTC (13 years, 6 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2
Branch point for: yamt-nfs-mp
Changes since 1.6: +27 -4 lines
Diff to previous 1.6 (colored)

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) - annotate - [select for diffs], Thu Jul 29 07:10:39 2010 UTC (13 years, 6 months ago) by jruoho
Branch: MAIN
Changes since 1.5: +8 -5 lines
Diff to previous 1.5 (colored)

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) - annotate - [select for diffs], Sat Jul 3 01:19:34 2010 UTC (13 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4.4.2: +3 -98 lines
Diff to previous 1.4.4.2 (colored) to branchpoint 1.4 (colored)

sync with head

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 31 20:32:29 2010 UTC (13 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.4: +3 -98 lines
Diff to previous 1.4 (colored)

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) - annotate - [select for diffs], Sun May 30 05:17:18 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4.4.1: +774 -0 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored)

sync with head

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:07 2010 UTC (13 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.4.2.1: +774 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

Sync with HEAD.

Revision 1.4.4.1, Thu Apr 15 07:02:24 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4: +0 -774 lines
FILE REMOVED

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 (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.4: +0 -774 lines
FILE REMOVED

file wmi_acpi.c was added on branch uebayasi-xip on 2010-04-30 14:43:07 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 15 07:02:24 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.3: +17 -34 lines
Diff to previous 1.3 (colored)

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) - annotate - [select for diffs], Fri Apr 9 04:48:23 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

Fix a potential NULL pointer dereference.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Apr 8 12:36:21 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN
Changes since 1.1: +9 -7 lines
Diff to previous 1.1 (colored)

Semantics.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Apr 8 12:14:19 2010 UTC (13 years, 10 months ago) by jruoho
Branch: MAIN

Move acpiwmi(4) to the "sys/dev/acpi/wmi" -subdirectory.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>