Commit Graph

272284 Commits

Author SHA1 Message Date
nisimura fbeba0a57f use additional MAC addresses to accept mcast 2019-12-12 12:00:06 +00:00
knakahara c9aaf53854 fix build failure. ok by msaitoh@n.o. 2019-12-12 11:47:30 +00:00
msaitoh 2faf80547b Add SFP support part 2.
- Add code for 1000BASE-T SFP. It uses SGMII.
 - Add extra delay in wm_serdes_power_up_link_82575(). Same as other OSes.

TODO:
 - Module insertion/removal support. Currently, SFP detection is only done
  in the driver's attach phase.
2019-12-12 09:32:54 +00:00
msaitoh 3143811e7e - Remove ESSR_FIBER_LINK bit check in makphyattach(). This bit is valid only
when the link is up, so it's not good to check in the attach function.
- There is an environment that both copper and fiber bits are set in EXTSR
  but it support copper only. To resolve this problem, check the ESSR
  register's HWCFG_MODE bit and drop unsupported bits.
- If the chip is in Fiber/Copper auto select mode, check which media is
  selected. Currently, the code supports 88E1011, 88E1111 and 88E1112 only.
  To support other chips documents are required.
2019-12-12 09:25:37 +00:00
wiz 460718aa4e Comment out xref to tb(4), it does not exist.
XXX: I don't see it mentioned in amd64/GENERIC nor DEVNAMES
2019-12-12 05:00:33 +00:00
pgoyette 08f76bd663 Point out that spurious wake-ups are possible, and that an LWP should
check for resource availability after being awoken.
2019-12-12 02:34:55 +00:00
pgoyette 8a031a1d1e Rather than keeping a separate mutex, condvar, and pserialize for each
module hook, we can share a common set of synchronization structures.
This cuts the amount of cacheline_aligned data for these structures by
50%.

Note that we still have a per-hook localcount, since we need to count
individual references.

As discussed with riastradh@

Welcome to 9.99.22 !
2019-12-12 02:15:42 +00:00
jmcneill 1b7d31b19d Enable USB3 support on RK3328 2019-12-12 00:46:31 +00:00
jmcneill c3f116d3b1 Add support for snps,dis-tx-ipgap-linecheck-quirk quirk 2019-12-12 00:45:59 +00:00
scole bb0577334b Synchronize htdocs, manual, comments, and code so that enabling the platinumfb is done using "platinum" in openfirmware settings. Remove "screen" option which was somewhat disingenuous. 2019-12-11 21:04:47 +00:00
jdc 6c5b34cf0d Chip matching improvements:
only match for currently known addresses
  don't generate messages when matching
Tested on Sun Blade 2500 by martin@.
2019-12-11 21:00:11 +00:00
ad 0a55e6b767 Add a comment. 2019-12-11 20:50:32 +00:00
ad 697d97f8ad Comment on previous explaining why it's needed. 2019-12-11 20:46:06 +00:00
ad ab436b5053 mutex_vector_exit: if the arch doesn't have assembly stubs, we need to
unconditionally release the lock if(cold), so mutexes can be used before
interrupts are set up.  Removed with panicstr checks in 1.81.
2019-12-11 20:34:06 +00:00
ad 5f087b6f0f Redo previous more conventionally. Requested by kre@. 2019-12-11 20:19:27 +00:00
ad d1120cd8e9 Report on whether vnodes are MPSAFE. For diagnosing perf problems. 2019-12-11 19:51:36 +00:00
martin 000e67db6f For now rely on the kernel mapping native RDB partitions. 2019-12-11 19:25:50 +00:00
martin 675f7bf669 PR 54065: add optional "old compat" variant of ext2fs in file system
type selection and use that as default for the cobalt boot file system.
2019-12-11 19:23:37 +00:00
tsutsui 7bc4024944 Fix a longstanding "freeze right after enabling interrupt" problem.
With this fix, finally NetBSD/emips on Giano is fully functional.
See PR/45080 for more details.

Should be pulled up to netbsd-9.
2019-12-11 16:16:13 +00:00
martin b2a9c378fb Get rid of the evbarm preliminary menu: do not bother to ask the user
whether this is a RPi - query the FDT instead.
2019-12-11 15:08:45 +00:00
tkusumi c8eaa1e89d dm: Revert "Fix error handling in dmioctl()" for now
This change seems to break "deps" in dm ioctl(2) for linear target.
Revert the change, will revisit later.
https://mail-index.netbsd.org/current-users/2019/12/11/msg037179.html
2019-12-11 14:03:37 +00:00
bouyer 79dd41fe30 reading usbdi.c it looks like usbd_get_config_descriptor() can actually
return NULL, so check for this.
I got NULL pointer dereference here with a device showing:
[   303.732632] ugen0: autoconfiguration error: setting configuration index 0 failed
2019-12-11 11:54:23 +00:00
msaitoh fa0800bb31 Add SFP support part 1. The code for SerDes and SGMII setting is not include
in this commit. SFP module removal interrupt detects but not used yet:
- Detect SFP's 1000BASE-SX, 1000BASE-LX, 100BASE-FX and 1000BASE-T correctly.
- Detect the Media Auto Sense feature. Not supported yet.
- Add comment.
2019-12-11 10:28:19 +00:00
yamaguchi 8aa27d8e35 Fix to detect link state down
Link status event that is used to update link status sometimes
is not notified when link down. So, use Get Link Status response
that has the same information with the event.
The handling of the event is needed to detect link state
up because the response sometimes does not notify link up.
2019-12-11 10:03:08 +00:00
msaitoh 2acce64ce9 - Set CTRL_ILOS(Invert loss of signal) bit correctly on 82580 port 1, 2, 3 and
newer chips. This change fixes a bug that some fiber, serdes or SFP devices
  don't detect the link status correctly.
  XXX We should check for other NVM reads if they have the same problem. One of
  the solution to avoid this type of bug is to check the register layout
  in wm_nvm_read().
- Use __BIT()
- Add comment
2019-12-11 09:48:16 +00:00
msaitoh ceb566db8a - MSI-X doesn't use sc->sc_icr variable, so move the code into non-MSI-X part.
No functional change intended. OK'd by knakahara.
- Modify debug printfs a bit.
2019-12-11 09:27:46 +00:00
msaitoh c8e8300232 No functional change:
- Add defintion of CONNSW register and PCS_NPTX (not used yet).
 - Add some bit definitions of PCS_LCTL.
 - Renae macro.
 - Fix comment. Add comment.
 - KNF.
2019-12-11 09:12:29 +00:00
msaitoh f26476fafc s/enalbe/enable/ 2019-12-11 07:33:55 +00:00
yamaguchi 361ade933e Fix build error related to ixl(4) on i386 2019-12-11 05:50:03 +00:00
manu 7d48608bd9 Rollback kernel link scrpt change for multiboot
The multiboot section breaks BIOS boot. Rolling back the link script
removes the section, which breaks multiboot but should restore BIOS boot.
2019-12-11 02:31:44 +00:00
msaitoh 5182d54328 Add ukphy_subr flag to ipgphy to make kernel compilable with ipgphy and
without ukphy. Pointed out by Hauke.
2019-12-11 02:22:38 +00:00
yamaguchi 87698eae42 Not use _LP64 but sizeof(bus_addr_t) for getting size of address
It makes ixl(4) be able to work on ILP32

pointed out by thorpej@. thanks.
2019-12-11 01:51:22 +00:00
riastradh d15066eca8 Oops -- forgot to kmem_free. 2019-12-10 22:30:34 +00:00
christos 5e9cbb1173 When 'attempted_completion_function' non-NULL, with a 'single_match'
match, the expected space is not being added. Problem observed with
"chronyc" and "sqlite3" tab completion. That functionality got
moved to escape_filename() for the !attempted_completion_function
case, but the non-NULL 'attempted_completion_function' case must
also be handled. (Lonnie Abelbeck)
2019-12-10 19:42:09 +00:00
ad c470496698 Mask out always zero bits off pg->phys_addr. 2019-12-10 18:13:07 +00:00
ad e6d2f4133f pg->phys_addr -> VM_PAGE_TO_PHYS(pg) 2019-12-10 18:08:32 +00:00
ad a071a0d97c pg->phys_addr > VM_PAGE_TO_PHYS(pg) 2019-12-10 18:06:50 +00:00
ad e4a04c43d7 pg->phys_addr -> VM_PAGE_TO_PHYS(pg) 2019-12-10 18:02:14 +00:00
ad 9acd0e1c2f p->phys_addr -> VM_PAGE_TO_PHYS(p) 2019-12-10 18:00:17 +00:00
kre 6815f01556 Balance the parentheses - hopefully unbreak the build. 2019-12-10 13:36:44 +00:00
yamaguchi ab26da02e0 Added the manual for ixl(4) 2019-12-10 13:07:28 +00:00
nonaka c9d5b0910f hvn(4) can be added and deleted dynamically. 2019-12-10 12:20:20 +00:00
yamaguchi a5e8635231 Ported driver for Intel Ethernet 700 series
reviewed by msaitoh and knakahara
2019-12-10 12:08:52 +00:00
ad 7058786aea Inverted test. 2019-12-10 11:35:29 +00:00
nonaka 816b6ece7c hvn(4): Handle VMBUS_CHANPKT_TYPE_INBAND packet type. 2019-12-10 11:19:25 +00:00
ad 129ba28ca3 Fix build break. 2019-12-10 11:12:02 +00:00
kre 7af1d9b731 Correct a typo in a comment, 08x0 was meant to be 0x80 (duh!). NFC. 2019-12-10 09:18:37 +00:00
isaki 6e13a9a980 Fix typo. 2019-12-10 06:25:50 +00:00
manu ab4342fd22 Add multiboot 2 support to amd64 kernel 2019-12-10 02:06:07 +00:00
manu 9d087602a9 In-RAID partitions with no name can be candidate for booting
The code to select boot partition in RAID assumed thet had a name,
which is true when there is a GPT inside the RAID, but not when there
is a disklabel inside the RAID. This caused a regression from behavior
of NetBSD 8.1.

We fix this by allowing nameless partition to be boot candidates.
This fixes misc/54748

While there, let raid device be used in the boot specification, like
raid0a:/netbsd.
2019-12-10 02:02:47 +00:00