Commit Graph

262736 Commits

Author SHA1 Message Date
skrll
60117d739f Align struct cpu_info member names. NFC. 2018-10-25 07:13:55 +00:00
ozaki-r
156ab71b7e Remove a leftover debug printf
Pointed out by hannken@
2018-10-25 02:40:45 +00:00
jdolecek
e7384f9dfa ata_kill_active() needs to drop channel drop before calling kill_xfer() hook,
otherwise code tries to lock against itself when deactivating the xfer
2018-10-24 20:25:52 +00:00
jdolecek
80b0d5979e need now channel lock around siisata_device_reset() executed for fatal error 2018-10-24 20:07:37 +00:00
jdolecek
343ae19e93 remove TODO.ncq; the FIS note was added to atastart(), and the note
about dump to unopened wd(4) device was attached to PR kern/16789, and
nothing else remains
2018-10-24 20:03:07 +00:00
jdolecek
57a9a1405e add further note about FIS-based switching to atastart() 2018-10-24 20:01:13 +00:00
jdolecek
af070baeb7 move the comment (and expand) about NCQ TRIM to wd_trim() 2018-10-24 19:46:44 +00:00
jdolecek
654326fabc detach the controller itself on shutdown; adjust to not detach already
detached atabus/channel
2018-10-24 19:38:00 +00:00
jdolecek
a5b154d28f fix tyop, thanks Joerg 2018-10-24 18:27:15 +00:00
jmcneill
4fcc4af0bf Avoid overflow when calculating watchdog offset. 2018-10-24 11:04:54 +00:00
jmcneill
3561a8bb32 Add sbsawdt at acpi 2018-10-24 11:02:13 +00:00
jmcneill
99bf46d6a5 Add driver for ARM Server Base System Architecture (SBSA)-compliant
generic watchdog timers.
2018-10-24 11:01:47 +00:00
martin
9f1d91abfc Remove no longer needed include of ata_dma.h 2018-10-24 09:41:24 +00:00
jdolecek
87466f562e only include umass_isdata.c if atabus present, and likewise ata_subr.c 2018-10-24 07:42:12 +00:00
jdolecek
f1ea457298 only include ata_recovery.c with atabus (same as ata.c which provides
ata_thread_run() used here)
2018-10-24 06:53:26 +00:00
cherry
18953a5818 When using the intr_establish_xname() interface to register
XEN events, follow established x86/intr.c conventions - set
the 'legacy' irq value to -1, to indicate that the pic, pin
combination (&xen_pic, port) is used for registration.
2018-10-24 03:59:33 +00:00
cherry
e9dae938b7 When returning a cached shared irq event value, DTRT 2018-10-24 03:51:21 +00:00
christos
550eae4327 Avoid conflicts with "our" (the FreeBSD) nvpair/nvlist implementation by
prefixing all symbols with "opensolaris_".
2018-10-23 22:26:14 +00:00
christos
b87aa2b0b0 prefix all nv* symbols with opensolaris_ 2018-10-23 22:25:21 +00:00
jdolecek
34b039cb08 add support for DIOCCACHESYNC (!), and DIOCGCACHE; code adapted from ccd(4)
tested with Intel ATA Raid
2018-10-23 22:05:01 +00:00
jdolecek
85dbced9df make the section about In-System umass a 'NOTES' rather than 'BUGS' 2018-10-23 20:09:40 +00:00
jdolecek
ef2b5d4f55 remove the 'wd* at umass?' for the non-standardized and rare (extinct?)
In-System Design ATA protocol over Bulk-Only devices from most kernels,
leave only in i386/amd64 ALL; it's unmaintained and likely currently broken,
lack of test hardware makes it impossible to support
2018-10-23 19:58:52 +00:00
christos
b15150dc5e Apply revisions 1.21, 1.22 from OpenBSD:
In re_fastputc(), set lastline to the new line, not the previous
line so it gets initialized properly.  Fixes a crash in bc with
MALLOC_OPTIONS=UJ.  OK deraadt@, committing on behalf of yasuoka@

Initialize "old" screen buffer lines before use; otherwise, they would
never get NUL-terminated and cause read buffer overruns.
This fixes for example segfaults in sftp(1) that could be triggered
by typing in an extremely long string (more than one line - the longer,
the likelier to crash), then hitting backspace once.
Problem reported and patch OK'ed by sthen@.

XXX: pullup-8
2018-10-23 16:49:13 +00:00
riastradh
84ffc56a8b Tidy up a bit.
- Quote the opening paragraph from netbsd.org.
- Set the suggested commands in teletype.
- Give pointers in a more active voice.
- Omit trailing whitespace.
- Mention the relation of the Git mirror to the main CVS repository.
- Use a list rather than juxtaposition for the final links.
2018-10-23 15:44:42 +00:00
jmcneill
9d2e6730ae Expose SMBIOS table pointer via machdep.smbios sysctl 2018-10-23 10:13:34 +00:00
jmcneill
ceaa49338b If an SMBIOS3 table is found, pass the address to the kernel via /chosen
"netbsd,smbios-table" property.
2018-10-23 10:12:59 +00:00
mrg
5ee2540bce note that rc.conf:flushroutes may be useful. bump date. 2018-10-23 09:30:09 +00:00
mrg
0050db9471 only flush routes in stop routine if flushroutes is true, same as
the start up.
2018-10-23 09:25:33 +00:00
mrg
6e0b787351 update the BUGS statement to say that xhci is mostly functional. 2018-10-23 09:23:45 +00:00
jmcneill
8b1ae988d4 Do not complain if the _AEI method is not found, just skip installing the
interrupt handler.
2018-10-23 09:19:02 +00:00
jmcneill
55dba9eeb4 Fix blank line printed at attach on ACPI 2018-10-23 09:15:35 +00:00
jmcneill
0c5ccc02c7 Fix printf format strings - pci_intr_handle_t is uint64_t now on arm 2018-10-23 08:38:18 +00:00
jdolecek
a571bdd383 Xr to ahcisata(4), ther is no ahci(4) 2018-10-23 05:30:58 +00:00
riastradh
d7f6f9b69c Clamp timeout to INT_MAX to avoid the bad kind of integer truncation.
XXX pullup-7
XXX pullup-8
2018-10-23 03:56:47 +00:00
riastradh
3cb5860a36 DELAY takes microseconds, not ticks.
XXX pullup-7
XXX pullup-8
2018-10-23 03:56:33 +00:00
manu
d5d625a49b Make USB port iteration code consistent, always startint at port #1
This complements change in revision 1.140
2018-10-23 01:49:37 +00:00
jmcneill
ff766299b7 Add acpiged at acpi 2018-10-22 22:36:41 +00:00
jmcneill
efd4d136da Add driver for ACPI Generic Event Device 2018-10-22 22:36:19 +00:00
jmcneill
593acf4d91 Factor out common ACPI event code into a shared module. 2018-10-22 22:29:35 +00:00
jdolecek
596cd89431 first disestablish interrupt, then release 2018-10-22 21:40:45 +00:00
jdolecek
7b352738c6 remove the note for dump, moral equivalent is done and biodone() most
certainly should not be done
2018-10-22 21:25:23 +00:00
jdolecek
5140610b77 remove the wd* at umass? entry (comment moved to umass_isdata.c and manpage)
remove MSI for ahcisata(4), siisata(4) - these were done
2018-10-22 21:24:18 +00:00
jdolecek
858714cb06 add a note this needs to be retested 2018-10-22 21:23:16 +00:00
jdolecek
830d6e2ec5 enable MSI support where available 2018-10-22 21:04:53 +00:00
jdolecek
2d3a421ee0 enable MSI support where available, blatantly copied from jmcneill's msk(4) 2018-10-22 20:57:07 +00:00
jdolecek
fdf9ed8897 move mvsata(4) related items from ata/TODO.ncq to dev/ic/mvsata.c, it's
unlikely this will ever be done, but still good to note somewhere
2018-10-22 20:30:52 +00:00
jdolecek
41904f0df5 move the section about In-System Design to BUGS and note that it very
likely doesn't actually work any more
2018-10-22 20:23:28 +00:00
jdolecek
3fa9d7b0da Merge jdolecek-ncqfixes branch
- ata_xfer's are dynamicall allocated as needed using a pool, no longer
  limited to number of possible openings supported by controller; dump
  and recovery paths use dedicated pre-allocated storage
- moved callouts and condvars from ata_xfer to queue or channel, so that
  ata_xfer does not need special initialization
- slot allocation now done when xfer is being activated, uncoupled
  from memory allocation; active slots are no longer tracked by controller
  code
- channel and drive reset is done always via the atabus thread, and
  now executes with channel locked the whole time
- NCQ recovery moved to shared function, and run via the thread also
- added some workarounds for buggy error recovery AHCI emulation in QEMU
  and Parallels

designed to primarily fix kern/52614, but might also help with kern/47041
and kern/53183
2018-10-22 20:13:47 +00:00
jdolecek
ebaa4bf6a9 note that mvsata(4) is unlikely to receive any further changes, and
remove the falsely promising 'yet's
2018-10-22 19:53:25 +00:00
jdolecek
7b49b34a66 convert from malloc(9) to kmem(9) 2018-10-22 19:38:06 +00:00