Commit Graph

244132 Commits

Author SHA1 Message Date
pgoyette 7dc153cb5a Remove. Nothing here (or below) seems to refer to it, and it won't
work anyway due to the case of the 'l' in CPPFlAGS
2016-07-29 06:11:12 +00:00
ozaki-r efee6976a2 Avoid memset and rtcache_free if unnecessary
It's the same as ip_output.
2016-07-29 06:02:03 +00:00
pgoyette 3ff4e5ad94 Update the test - the "official" name of the vnd configuration utility
was changed in NetBSD 7 to vndconfig(8).
2016-07-29 05:23:24 +00:00
pgoyette b3610864a5 Improve wording, enhance the example 2016-07-29 05:20:33 +00:00
maya 364a6d7c47 Fix typo in Makefile which resulted in kernel image not being generated
From Rin Okuyama in PR/51369
2016-07-28 22:46:48 +00:00
nakayama 8055cc80b9 Resurrect Asia/Tomsk, split off from Asia/Novosibirsk in tzdata2016d. 2016-07-28 19:24:08 +00:00
christos 4f619fea3a regen; Left: earm, armeb, earmeb, riscv64, earmhf, earmhfeb, aarch64. 2016-07-28 14:17:58 +00:00
christos 9180686841 regen amd64. 2016-07-28 12:25:24 +00:00
christos 4a4d5be6eb merge conflicts 2016-07-28 12:25:07 +00:00
christos 09ac01bf76 Import 2.26.1; please see the individual ChangeLogs for bug fixes. 2016-07-28 12:18:51 +00:00
msaitoh fedc066b92 Note sdtemp(4)'s JEDEC TSE2004av support. 2016-07-28 09:13:06 +00:00
msaitoh 8cd40e1465 Add JEDEC TSE2004av support. OK'ed by pgoyette. If a device conforms
TES2004av, it can be used without adding new entry into the matching
table.
2016-07-28 09:11:13 +00:00
ozaki-r c68a77bc1d Fix panic on adding/deleting IP addresses under network load
Adding and deleting IP addresses aren't serialized with other network
opeartions, e.g., forwarding packets. So if we add or delete an IP
address under network load, a kernel panic may happen on manipulating
network-related shared objects such as rtentry and rtcache.

To avoid such panicks, we still need to hold softnet_lock in in_control
and in6_control that are called via ioctl and do network-related operations
including IP address additions/deletions.

Fix PR kern/51356
2016-07-28 09:03:50 +00:00
martin f0b8f9c13b From Michael Plass:
The superblock field that distinguishes between 4.2BSD and 4.4BSD
inodes is really only relevant on a UFS1 file system. Make sure that
it is a UFS1 fs before using fs_old_inodefmt.

Note that the NetBSD newfs and mkfs utilities initialize fs_old_inodefmt
even for UFS2, so problems were apparent only on file systems created
by other operating systems, for example, FreeBSD.
2016-07-28 08:24:58 +00:00
martin 1982ce327f PR kern/51371: avoid shifting negative values 2016-07-28 07:54:31 +00:00
martin 07832dcc0c PR kern/51371: fix misleading indentation 2016-07-28 07:52:06 +00:00
nonaka d72787f787 regen 2016-07-28 03:09:47 +00:00
nonaka 720bf60533 Add Super Micro Computer Inc 2016-07-28 03:08:39 +00:00
nonaka 239c8e76b1 sort by vendor id. 2016-07-28 03:05:31 +00:00
maxv 9192e87177 Use UVM_PROT_ALL only if UVM_KMF_EXEC is given as argument. Otherwise, if
UVM_KMF_PAGEABLE is also given as argument, only the VA is allocated and
UVM waits for the page to fault before kentering it. When kentering it, it
will use the UVM_PROT_ flag that was passed to uvm_map; which means that it
will kenter it as RWX.

With this change, the number of RWX pages in the amd64 kernel reaches
strictly zero.
2016-07-27 16:45:00 +00:00
maxv 079335f30f Call cpu_init_msrs on i386 when waking up. Currently it does not change
anything, since MSR_EFER is already enabled earlier. But if we add new
MSRs in the future, we will want them when waking up as well.
2016-07-27 13:04:28 +00:00
maxv 441f58f71a Re-enable large pages on the data segment, but don't map the first page,
and add a comment to explain why. We will have to move the LAPIC VA.

The large page support is technically the same as before my last commit,
since in practice, the first page of .data is never mapped with large
pages.
2016-07-27 12:08:46 +00:00
skrll 442c44de38 Fix RB_KDB by calling the debugger entry points after pmap_bootstrap, etc 2016-07-27 11:13:14 +00:00
skrll ac3daeaa4c Bump size of scratchstr - some KASSERTMGS exceed 256 characters 2016-07-27 09:57:26 +00:00
skrll 321454a08d Sprinle RCSID 2016-07-27 09:32:35 +00:00
msaitoh 1fdf1827c5 Print device ID with 8bits again (revert part of rev. 1.27) because
the revision field also printed next.
2016-07-27 09:11:44 +00:00
wiz 68e94d49dd New sentence, new line. 2016-07-27 08:38:25 +00:00
msaitoh dde8159a11 - Add 0x54-0x57.
- Add note about sdtemp(4).
2016-07-27 07:44:10 +00:00
msaitoh 30742bf475 Add ichsmb(4), spdmem(4) and sdtemp(4). 2016-07-27 07:05:39 +00:00
msaitoh e89450977b Add sdtemp(4) 2016-07-27 07:04:56 +00:00
pgoyette 827e59d955 Don't mutex_exit() if we didn't mutex_enter().
Pointed out by coypu. Thanks!
2016-07-27 05:14:40 +00:00
knakahara c5ebd2d172 remove extra ifdefs. no functional changes.
ip_flow.c becomes build target only if GATEWAY kernel option is on.
So, "#ifdef GATEWAY" in ip_flow.c is not needed.
2016-07-27 04:23:42 +00:00
christos 813c85c184 start creating a table and say I will do binutils. 2016-07-27 02:33:40 +00:00
pgoyette 2d03daa3b0 If we're going to check for a NULL pointer, do the check before we
dereference it (to get the lock address).
2016-07-27 01:09:44 +00:00
msaitoh ed49e6d12f Update supported masters and slaves. 2016-07-26 11:08:59 +00:00
ozaki-r a25e7d83aa Fix downmatch increment 2016-07-26 08:34:55 +00:00
msaitoh 9e8ea18ecf Move functions to make module related code at the bottom of this file. 2016-07-26 08:13:57 +00:00
rkujawa 97a708d9fb Note MCP9804 now also supported by sdtemp(4) - thx msaitoh. 2016-07-26 08:05:51 +00:00
msaitoh f55137418d Note sdtemp(4). 2016-07-26 07:36:54 +00:00
msaitoh 2da0061a6c - Add new devices.
- s/DDR2 and DDR3 SDRAM DIMMs/DDR2 and newer DIMMs/
2016-07-26 07:33:30 +00:00
msaitoh eaa54fc0e2 Reviewed and OK'd by pgoyette:
- Add support for Atmel AT30TS00, AT30TSE004, Giantec GT30TS00, GT34TS02,
  Microchip MCP9804, MCP98244, IDT TS3000GB[02], TS3001GB2, TSE2004GB2,
  and On Semiconductor CAT34TS04. Taken from OpenBSD.
- Add IDT TSE2002GB2.
- Check the temperature resolution field in the capability register instead
  of the hard coded value in the match table. With this change, some devices'
  temperature resolution would be fixed.
- The resolution register is a vendor specific register.
- All of IDT devices have the resolution register.
- The address of the resolution register of Microchip MCP98244 is different
  from other Microchip devices.
- Show accuracy, range, resolution, high voltage standoff and shutdown with
  aprint_normal().
- Show timeout with aprint_debug().
2016-07-26 07:30:16 +00:00
msaitoh f6eb233c18 - Print device ID in 16bits instead of 8bits in aprint_debug().
- s/STTS2002/STTS2004/ for STTS2004.
2016-07-26 07:25:51 +00:00
ozaki-r e449cc85bc Simplify by using atomic_swap instead of mutex
Suggested by kefren@
2016-07-26 05:53:30 +00:00
skrll 6f48409465 Set the cause register to zero after disabling interrupts now that spl0
doesn't do it.

My cobalt now boots (again again)
2016-07-26 05:52:55 +00:00
martin 4f28c9c9b8 First cut at netbsd-8 branch objectives. 2016-07-26 04:18:04 +00:00
christos 5ee3355142 From Felix Deichmann:
While writing "slhci at tc" support, I noticed TC bus_space functions
for alpha don't work as they should (tc_bus_mem.c). Consideration of
dense vs. sparse space seems problematic, especially for widths < 4.

I found information mainly in

[1] https://web-docs.gsi.de/~kraemer/COLLECTION/DEC/d3syspmb.pdf
[2]
http://h20565.www2.hpe.com/hpsc/doc/public/display?docId=emr_na-c04623255

and a dirty (but tested) hack based on this is attached as an example.
It would be great if someone could have a look and do a cleaner version
preferably.

Especially the end of ([2] section 12.2.2) provides a summary of which
"instruction" to use for which data width in which space, and possible
side effects (unintentional double reads/writes) in dense space...
2016-07-26 03:09:55 +00:00
pgoyette 7ea3f07f30 When calling devsw_attach() we need to use the expected/official driver
name (as listed in the devsw_conv[] table) to get the expected device
majors.  Once rump initialization is finished (ie, it has created its
required device nodes), we need to detach the [bc]devsw so the module
initialization code doesn't get EEXIST.
2016-07-26 01:49:48 +00:00
nonaka 8c5b560fca IFQ_PURGE() must be called only after call if_initialize().
it lock ifp->if_snd.ifq_lock.
2016-07-26 01:36:50 +00:00
rjs 0dd1bf859c Restore correct test for return value from aarpresolve(). 2016-07-25 23:46:09 +00:00
macallan 57047aad51 xburst needs CPU_MIPS_D_CACHE_COHERENT 2016-07-25 22:10:03 +00:00