Commit Graph

1904 Commits

Author SHA1 Message Date
macallan 29bb99b1da - read IRQs from state, not level register in *_reenable_irq() so we get
edge triggered ones too
- kmem_alloc() -> kmem_zalloc() for paranoia
2017-06-16 18:48:22 +00:00
macallan 471068c972 SMU config goo 2017-06-06 15:58:59 +00:00
macallan 8ff9ad3262 SMU support, from Phileas Fogg 2017-06-06 15:58:17 +00:00
macallan 7ea6397d03 a config for PCIe PowerMac G5 models
should have been committed years ago...
2017-06-05 15:20:51 +00:00
chs fd34ea77eb 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.
2017-06-01 02:45:05 +00:00
christos 11ae70bcc0 rename u3ginit driver to umodeswitch 2017-05-24 20:23:04 +00:00
uwe 8cfb8991bc Quash .eh_frame unwind tables in boot code. 2017-04-20 19:09:29 +00:00
uwe bf646ffdb7 Merge .eh_frame_hdr and .eh_frame into .text 2017-04-20 18:53:12 +00:00
uwe 702f0ce987 Group CLEANFILES assignments. 2017-04-20 18:39:28 +00:00
christos cb5e99c661 centralize vers.c building for standalone programs. 2017-04-08 19:53:19 +00:00
msaitoh eabd5e1de9 Remove extra 0x. This bug was added when replacing bitmask_snprintf(9) with
snprintb(3) (in between NetBSD 5 and 6). Old bitmask_snprint(9) didn't add
0x" automatically for hexadecimal value, so old code used it with "0x%s".
2017-03-31 08:38:13 +00:00
rin 59e6f8272e Add DKWEDGE_METHOD_RDB option, which is enabled for x86, commented out for
other platforms by default.
2017-02-26 12:03:14 +00:00
nonaka 30b089e72a Apply deferred if_start to more MD drivers. 2017-02-22 09:45:15 +00:00
tsutsui 615480188b Fix an inverted logic. 2017-02-15 12:39:29 +00:00
sevan 34d20af6e2 Enable axen, cdce, run, upgt, urtw, urtwn, uchcom, uslsa, u3ginit, u3g, ugensa in the GENERIC kernel.
Adjust some comments to match those of sys/arch/i386/conf/GENERIC
2017-01-02 03:22:30 +00:00
ozaki-r dd8638eea5 Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input
The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
  - Where/When if_ipackets is counted up
  - Note that some drivers still update packet statistics in their own
    way (periodical update)
- Moved bpf_mtap run in softint
  - This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net
2016-12-15 09:28:02 +00:00
christos ef2deb33e0 wildcard speaker attachments, now that we can handle many of them. 2016-12-13 20:42:15 +00:00
christos 219b8dae14 remove VAUDIOSPEAKER for now, will be done differently. 2016-12-10 23:03:22 +00:00
nat 03783bb56a Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
2016-12-08 11:31:08 +00:00
ozaki-r c0e7885f20 Apply deferred if_start framework
if_schedule_deferred_start checks if the if_snd queue contains packets,
so drivers don't need to check it by themselves.
2016-12-08 01:12:00 +00:00
macallan 91eaa6ded9 add driver for Permedia 3 based graphics devices
from Naruaki Etomi, via PR 49518
2016-11-20 16:55:18 +00:00
nonaka e4a54b4193 Added MSI/MSI-X and interrupt_distribute(9) support for powerpc. 2016-10-19 00:08:41 +00:00
ozaki-r 02711c8802 Fix typo 2016-10-03 01:23:55 +00:00
christos 9c7db92f68 MFREE -> m_free 2016-10-02 14:16:02 +00:00
scole 6887de85e4 Add note about 16 bit console brokenness 2016-09-16 17:32:36 +00:00
macallan 0f37c6ceec don't grab the interrupt lock around mixer operations 2016-08-24 14:41:51 +00:00
macallan c9a4f92c3f adjust to dbdma changes 2016-07-15 22:10:47 +00:00
macallan efb8d03127 - only unmap / free dbdma stuff when we actually mapped / allocated it
- use dbdma_free
now wdc_obio_detach() actually works without crashing
2016-07-15 21:11:12 +00:00
macallan 30ed9f0405 first step to make dbdma less hackish
- dbdma_alloc gets a new parameter to return the actual address of the
  buffer before being alignment-mangled so we can properly free it
- add dbdma_free which takes the pointer mentioned above
dbdma should really use bus_dma
2016-07-15 21:08:27 +00:00
macallan 232bfe5631 first step to make genfb work with /chaos/control - don't do config space
writes on /chaos.
tested by jak
2016-07-08 22:21:52 +00:00
macallan 4b12ccf7bd shut up another unused function warning 2016-07-06 13:30:42 +00:00
macallan 9004b96a22 shut up unused function warning 2016-07-06 13:28:34 +00:00
macallan 5c9d54fcb1 make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...
2016-06-16 14:51:56 +00:00
macallan 53df6693be somehow this fell through the cracks when I committed platinumfb.c
thanks chuq for noticing
2016-06-16 14:46:12 +00:00
macallan 1f03e35c95 g/c some leftovers from when we had static assignments of edge or level
triggers
2016-06-15 14:32:03 +00:00
dholland 85e3fbd2eb PR 51200 gets in libsa considered harmful: use kgets 2016-06-11 06:24:36 +00:00
macallan 2bebf08d85 add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole
2016-06-10 21:32:46 +00:00
ozaki-r d938d837b3 Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.
2016-06-10 13:27:10 +00:00
macallan 147de8dbef report the power button to sysmon when possible 2016-06-01 05:27:40 +00:00
macallan a3f93c3108 fix stupid tpyo
thanks chuq
2016-05-31 03:50:30 +00:00
macallan a1f15ec7cc make sure we call sysmon_pswitch_event() from thread context 2016-05-31 02:17:18 +00:00
sevan 32e3745627 As instructed by Martin@, disable DKWEDGE_METHOD_APPLE for now as it causes a
fresh install in a dual boot scenario to fail. This is because fstab will be
referencing wd(4) and the kernel expecting dk(4).

Closes PR port-macppc/51160
2016-05-28 22:24:51 +00:00
chs 72af35a796 remove unused variables. 2016-05-23 01:45:41 +00:00
skrll 9724d4d249 Fix build 2016-04-28 14:00:23 +00:00
christos 8a7283ac4d undo unintended commit 2016-04-22 18:25:41 +00:00
christos ec8d3496ba Elide unused variable warnings (Felix Deichmann) 2016-04-22 18:13:01 +00:00
gdt af798e7b27 Disable uscanner in all kernel configs
As discussed on current-users@, SANE uses ugen via libusb and not
uscanner, so users are not well served by having uscanner.  Consensus
is that addressing how to adjust permissions for scanners should not
block restoring basic functionionality.

(Compile-tested only, but there are multiple reports of this being the
right approach.)
2016-03-19 23:21:02 +00:00
tsutsui af8b911cf4 TAB/space cleanup. 2016-03-13 08:57:10 +00:00
chs 2f02870f3b zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
2016-02-14 19:54:19 +00:00
ozaki-r 9c4cd06355 Introduce softint-based if_input
This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!
2016-02-09 08:32:07 +00:00