#
1899b7d2 |
| 11-Aug-2023 |
riastradh <riastradh@NetBSD.org> |
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
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
show more ...
|
#
cab2d184 |
| 10-Aug-2023 |
mrg <mrg@NetBSD.org> |
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 gen
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.
show more ...
|
#
7baff382 |
| 10-May-2023 |
riastradh <riastradh@NetBSD.org> |
acpiwmi(4): Use config_detach_children.
|
#
1cb7819f |
| 12-Dec-2021 |
andvar <andvar@NetBSD.org> |
fix various typos in comments.
|
#
c7fb772b |
| 07-Aug-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs2.
|
#
2685996b |
| 24-Apr-2021 |
thorpej <thorpej@NetBSD.org> |
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 a
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?).
show more ...
|
#
37725553 |
| 29-Jan-2021 |
thorpej <thorpej@NetBSD.org> |
Use acpi_compatible_match().
|
#
87dcc5d7 |
| 03-Dec-2017 |
bouyer <bouyer@NetBSD.org> |
- make sure strtoul() is called with a NULL-terminated string. - acpi_wmi_input(): a valid data block may have flags set to 0.
|
#
fd34ea77 |
| 01-Jun-2017 |
chs <chs@NetBSD.org> |
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()
al
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.
show more ...
|
#
ce0335d4 |
| 14-Aug-2012 |
jruoho <jruoho@NetBSD.org> |
Use KM_SLEEP.
|
#
ff198a0b |
| 17-Jul-2011 |
jakllsch <jakllsch@NetBSD.org> |
- 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 expensiv
- 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.
show more ...
|
#
b9f301d5 |
| 16-Feb-2011 |
jruoho <jruoho@NetBSD.org> |
Convert the homegrown module declarations to use ioconf.
|
#
639d1b97 |
| 28-Oct-2010 |
jruoho <jruoho@NetBSD.org> |
Install EC space handler and pass everything to acpiec(4). Should fix PR # 43659.
|
#
a60aadf2 |
| 25-Oct-2010 |
jruoho <jruoho@NetBSD.org> |
Fix build failure.
|
#
9750ca2f |
| 24-Oct-2010 |
jmcneill <jmcneill@NetBSD.org> |
add support for building as a module
|
#
5991cdfe |
| 24-Oct-2010 |
jmcneill <jmcneill@NetBSD.org> |
add rescan support
|
#
460de0d6 |
| 06-Aug-2010 |
jruoho <jruoho@NetBSD.org> |
Remove the acpiwmi(4) dump from the ACPIVERBOSE module. Instead of this complex solution, just use aprint_debug(9) in the driver.
|
#
a240caea |
| 29-Jul-2010 |
jruoho <jruoho@NetBSD.org> |
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).
|
#
6c40070d |
| 31-May-2010 |
pgoyette <pgoyette@NetBSD.org> |
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
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.
show more ...
|
#
55052eca |
| 15-Apr-2010 |
jruoho <jruoho@NetBSD.org> |
As discussed with jmcneill@, install a global "bus notification handler" that receives all notifications and deliver notifications to drivers via it.
|
#
a57241d4 |
| 09-Apr-2010 |
jruoho <jruoho@NetBSD.org> |
Fix a potential NULL pointer dereference.
|
#
7a8e9522 |
| 08-Apr-2010 |
jruoho <jruoho@NetBSD.org> |
Semantics.
|
#
a913ee75 |
| 08-Apr-2010 |
jruoho <jruoho@NetBSD.org> |
Move acpiwmi(4) to the "sys/dev/acpi/wmi" -subdirectory.
|