| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2015-12-14 | sysmon's components need to be MODULE_CLASS_DRIVER so they will get | pgoyette | |
| initialized before we configure/initialize any devices that interact with them. Thanks, marty! | |||
| 2015-12-13 | Note the sensor number in the error output. Useful for drivers adding | jdc | |
| multiple sensors. | |||
| 2015-10-15 | As proposed in | bouyer | |
| https://mail-index.netbsd.org/tech-kern/2015/10/14/msg019511.html don't sleep on sme->sme_mtx in the callout but use mutex_tryenter() and just reschedule the callout if we can't get the mutex now. This fixes a deadlock which can happen if the backed wants to sleep with timeout (e.g. cv_timedwait()) as the backed is called with sme->sme_mtx held. This is a stopgap measure for netbsd-7; sysmon should be changed to not sleep (or call a backend which will sleep) with mutexes held. | |||
| 2015-08-24 | to garnish, dust with _KERNEL_OPT | pooka | |
| 2015-06-23 | Separate the two conditions for the KASSERT, so we can tell which | pgoyette | |
| one occurred. | |||
| 2015-06-23 | Fix the KASSERT - we want to make sure that _both_ pointers are non-NULL, | pgoyette | |
| n ot just that one or the other is non-NULL! | |||
| 2015-06-05 | Move callout_init to wdog_preinit | matt | |
| 2015-05-12 | Finish work started in previous commit. Ensure that initialization | pgoyette | |
| code is only called once for built-in variants of the module. | |||
| 2015-05-12 | Don't manipulate the autoconfig databases for built-in module. | pgoyette | |
| Thanks, christos! | |||
| 2015-05-05 | Optimize a bit - don't re-enter the mutex if we're just going to exit. | pgoyette | |
| While here, remove some parens around a return value. | |||
| 2015-05-05 | If module_autoload() returns an error, just return that value instead | pgoyette | |
| of overwriting with ENODEV. Thanks, christos! | |||
| 2015-05-04 | If autoload of the subcomponent module fails, don't try to call its | pgoyette | |
| open routine. Just return an error. Hopefully this will fix the recently reported issues with atf tests running on xen guest. | |||
| 2015-04-29 | At suggestion from riastradh@ ... | pgoyette | |
| Remove auto_configure(9) goop from sysmon device. It does make things a bit cleaner, and also reduces source code by about 10%. Tested via QEMU with no obvious side-effects. | |||
| 2015-04-28 | sysmon_task_queue_sched needs to RUN_ONCE(tq_preinit) as well, it can | martin | |
| be called from sysmon_envsys_register() early. | |||
| 2015-04-27 | Replace a home-grown run-once implementation with the real RUN_ONCE() | pgoyette | |
| 2015-04-25 | Remove another debug printf() that snuck in. | pgoyette | |
| 2015-04-25 | Handle early initialization requirements - thanks martin@ and others | pgoyette | |
| 2015-04-25 | Correctly check return status when registering with pmf | pgoyette | |
| 2015-04-25 | Fix typo - thanks, riz@ | pgoyette | |
| 2015-04-25 | Register the sysmon pseudo-device with power management framework so we | pgoyette | |
| can properly suspend the system. Thanks, mrg, for pointing this out. | |||
| 2015-04-25 | make things boot again, from martin. | christos | |
| 2015-04-25 | Use tabs for indentation. | pgoyette | |
| 2015-04-25 | Release the mutex in the error path. | pgoyette | |
| 2015-04-24 | We only need the _cd when we are a module. | christos | |
| 2015-04-24 | The sysmon_envsys module also depends on sysmon_power (for delivery of | pgoyette | |
| sensor events to userland). | |||
| 2015-04-24 | With new (corrected) configuration declarations file, the cdevsw is | pgoyette | |
| already included by config. So, for built-in sysmon module we don't need to add the cdevsw to the table. | |||
| 2015-04-24 | Update configuration definitions for new sysmon | pgoyette | |
| 2015-04-24 | Remove a left-over debugging printf() | pgoyette | |
| 2015-04-24 | This really does need to return an error code, so change the | pgoyette | |
| sysmon_task_queue_fini() function to have a non-void type. | |||
| 2015-04-24 | It's a function returning void; don't return an error code. | agc | |
| 2015-04-23 | Update module dependencies for all the existing modules that depend on ↵ | pgoyette | |
| sysmon components. | |||
| 2015-04-23 | Modularize sysmon and its components | pgoyette | |
| 2015-04-18 | Remove some debugging printf()s that were erroneously committed. | pgoyette | |
| 2015-04-18 | use unsigned type for flag bits. | mlelstv | |
| 2015-04-18 | Update attach/detach routines and provide MODULE interface. | pgoyette | |
| Confirmed that atf tests (which run via rump) still pass, and also confirmed that panic/reboot work in both monolithic kernel and loaded module. | |||
| 2015-04-13 | Convert sys/dev to use <sys/rndsource.h>. | riastradh | |
| 2015-04-04 | another missing free dict. | christos | |
| 2015-04-04 | don't forget to free the dictionary. | christos | |
| 2015-04-04 | Free ped if we can't hand it to the power daemon. | riastradh | |
| Found by Brainy, reported by maxv@. | |||
| 2015-03-14 | Add a counter of busy events and stop enqueueing more work if a device is busy. | hannken | |
| Protect this counter with a new short time lock "sme_work_mtx" and keep "sme_mtx" as long time lock. Removes a deadlock where an active event holds "sme_mtx", the callout "sme_events_check" blocks on "sme_mtx" and callout processing stops. | |||
| 2015-01-06 | As proposed on tech-net@, introduce a new switch type, PSWITCH_TYPE_RADIO, | bouyer | |
| to be used to report to userland hardware radio switch changes. powerd(8) will call a "radio_button" script to handle the event. This script can e.g. start or stop wpa_supplicant. Update wpi(4) to report PSWITCH_TYPE_RADIO events to sysmon. | |||
| 2014-11-23 | Pull workqueue_destroy out of sme->sme_mtx | ozaki-r | |
| workqueue_destroy may sleep so we shouldn't run it with holding a mutex. Requested by riastradh@. | |||
| 2014-11-22 | Replace callout_stop with callout_halt | ozaki-r | |
| In order to call callout_destroy for a callout safely, we have to ensure the function of the callout is not running and pending. To do so, we should use callout_halt, not callout_stop. In this case, we need to pass an interlock to callout_halt to wait for the callout complete. And also we make sure that SME_CALLOUT_INITIALIZED is unset before calling callout_halt to prevent the callout from calling callout_schedule. This is the same as what we did in sys/netinet6/mld6.c@1.61. Reviewed by riastradh@. | |||
| 2014-11-22 | Kill sme_callout_mtx and use sme_mtx instead | ozaki-r | |
| We can use sme_mtx for the callout as well. Actually we should do so because sme_events_list and some other data that are touched in the callout should be protected by sme_mtx, not sme_callout_mtx. Discussed with riastradh@ in http://mail-index.netbsd.org/tech-kern/2014/11/11/msg017956.html | |||
| 2014-11-21 | Explicitly compare to NULL to show clang that the bool conversion is | joerg | |
| intentional, even if it is always true in case of the arrays. | |||
| 2014-08-10 | Merge tls-earlyentropy branch into HEAD. | tls | |
| 2014-07-25 | Add d_discard to all struct cdevsw instances I could find. | dholland | |
| All have been set to "nodiscard"; some should get a real implementation. | |||
| 2014-05-18 | add HYT-221/271/939 humidity/temperature I2C sensor | kardel | |
| extend envsys(4) framework by %rH (relative humidity) | |||
| 2014-04-13 | If we pmf_register on attach, we should pmf_deregister on detach. | pgoyette | |
| 2014-03-16 | Change (mostly mechanically) every cdevsw/bdevsw I can find to use | dholland | |
| designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead. | |||
