Commit Graph

1629 Commits

Author SHA1 Message Date
apb
30a0368950 Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
2014-08-16 17:56:30 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
riastradh
6bfd56b042 Rename radeondrmkms to just plain radeon.
radeondrmkmsfb will stay as is until the name radeonfb is available
(currently taken by legacy dev/pci/radeonfb.c).
2014-07-26 07:36:09 +00:00
joerg
d87708c52a Add generic versions of machine/int_*.h for compilers providing
appropiate macros for all necessary types.
2014-07-25 21:43:13 +00:00
dholland
ed9d9bd49c Fix description of DIAGNOSTIC in x86 kernels. 2014-07-25 15:01:14 +00:00
riastradh
c33e688be3 Hook up radeondrmkmsfb code.
Builds, not testable yet.
2014-07-25 12:35:03 +00:00
riastradh
32189458a8 Rework Intel framebuffer attachment.
Turns out genfb_softc must be at the start of its own device_private,
so we can't have it in the middle of a structure, and certainly can't
have potentially multiple genfbs per graphics device.  Failing to do
this is why entering ddb didn't work with an i915drmkms console.

Instead of putting a genfb_softc into each drm_fb_helper, put a
device_t into each drm_fb_helper and create a new intelfb(4) device
for each Intel framebuffer.  This will be more flexible, too, in case
we want accelerated framebuffers later on.  (XXX Need to adapt the
radeon code, which I'm disabling until that happens to avoid breaking
the build.)

While here, defer disabling VGA, vga_cndetach, and genfb_attach until
we're actually ready to do them all together along with the mode
switch.  This should reduce the amount of time during which the
screen is blanked, in case it hangs.
2014-07-24 21:18:40 +00:00
riastradh
c5f3dfcf35 Add a FIRST1G page freelist to x86, for old graphics devices. 2014-07-24 13:42:28 +00:00
alnsn
582402eab5 Rename sljitarch.h to sljit_machdep.h. 2014-07-23 18:19:43 +00:00
riastradh
b81c64e1b2 First whack at radeon driver.
No hardware to test yet, but it builds.
2014-07-16 20:59:57 +00:00
riastradh
77b5597a2b Make it build and boot on my test machines.
Screen blanks on boot on the Ivy Bridge system with

   DRM error in cpt_serr_int_handler: PCH transcoder A FIFO underrun

But after that everything is OK.  Appears to be an upstream problem.
To investigate...

I think there's a cache flushing issue somewhere -- there are little
display artefacts on my T60.
2014-07-16 20:56:24 +00:00
ozaki-r
2fef08800f Add NET_MPSAFE to ALL 2014-07-02 07:18:32 +00:00
jakllsch
202b86dcd4 drop trailing whitespace 2014-06-29 23:21:28 +00:00
tsutsui
694848a27b Add gffb(4) at pci. 2014-06-29 03:44:33 +00:00
maxv
b042e45033 Remove dead code. The kernel already checks for PT_INTERP sections, and puts
their content into "itp". There's no need for re-reading the whole binary and
trying to find this section again. Just use "itp".

DEBUG_FREEBSD_ELF is now unused, so remove its references in amd64/conf/ALL
and i386/conf/ALL.
2014-06-24 11:59:10 +00:00
dsl
3396d1716a Comment out the xhci entries.
The driver really doesn't work well enough to be generally useful.
2014-06-16 19:08:17 +00:00
alnsn
6460808439 Revert the previous (comment only change). 2014-06-12 20:22:04 +00:00
riastradh
cd2156f4c2 Tweak x86 page freelists and add x86_select_freelist.
- Add 4G freelist to i386 -- there may be higher addresses if PAE.
- Add 64G and 1T freelists to amd64.
- Simplify freelist setup code and condense it into a table.
- Add x86_select_freelist to get a freelist guaranteed to yield
addresses no greater than a prescribed maximum address.

x86_select_freelist takes a uint64_t, not a paddr_t or bus_addr_t, so
that you can pass in, e.g., a 36-bit maximum address without needing
to write conditionals for i386/PAE.

No objections on port-x86:

https://mail-index.netbsd.org/port-i386/2014/05/21/msg003277.html
https://mail-index.netbsd.org/port-amd64/2014/05/21/msg002062.html
2014-06-12 19:02:35 +00:00
alnsn
3e71717f23 Add a comment about disabling INET6. Should fix kern/48901. 2014-06-12 12:13:36 +00:00
hikaru
73c29dd7cc Add VMware VMXNET3 ethernet driver from OpenBSD, vmx(4). 2014-06-10 01:42:38 +00:00
dholland
a6869e0836 add MPVERBOSE, noted missing in PR 48733. 2014-06-02 02:11:51 +00:00
christos
1244ef9a11 enable IPSEC 2014-05-29 14:48:40 +00:00
jakllsch
6e9d9a8fb2 Add -fno-omit-frame-pointer to DEFCOPTS. 2014-05-24 18:41:46 +00:00
uebayasi
78f86a7674 Indent. 2014-05-22 14:59:01 +00:00
njoly
23dad8ce7a Do not compute code value more than once. Remove unneeded before
trace_enter()/trace_exit() calls.

This fix some cases where tracing show unexpected SYSRET number value
because some syscalls, such as setcontext(2), modified the trapframe
register values.
2014-05-16 12:55:43 +00:00
rmind
d67ab12c1d pcu(9):
- Remove PCU_KERNEL (hi matt!) and significantly simplify the code.
  This experimental feature was tried on ARM did not meet the expectations.
  It may be revived one day, but it should be done in a much simpler way.
- Add a message structure for xcall function, pass the LWP ower and thus
  optimise a race condition: if LWP is discarding its state on a remote CPU,
  but another LWP already did it - do not cause an unecessary re-faulting.
- Reduce the variety of flags for PCU operations (only PCU_VALID and
  PCU_REENABLE are used now), pass them only to the pcu_state_load().
- Rename pcu_used_p() to pcu_valid_p(); hopefully it is less confusing.
- pcu_save_all_on_cpu: SPL ought to be used here.
- Update and improve the pcu(9) man page; it needs wizd(8) though.
2014-05-16 00:48:41 +00:00
uebayasi
5c6158b275 Comments. 2014-05-12 22:50:03 +00:00
jakllsch
b10becb14f revert previous; the 128 bytes is for the AMD64 redzone 2014-05-12 17:27:23 +00:00
uebayasi
c260945c48 Don't reserve space (128) on signal stack for unknown reasons; the actual
space for struct sigframe_siginfo (+ alignment) is allocated just below.

Confirmed by the following tests:

	tests/lib/libc/gen/t_siginfo
	tests/lib/libc/sys/t_sigtimedwait
	tests/lib/libc/sys/t_sigaction
	tests/lib/libc/sys/t_sigqueue
2014-05-12 13:49:24 +00:00
uebayasi
9e475fde06 stmt;; -> stmt; 2014-05-12 09:01:34 +00:00
jakllsch
15b0c804e2 Set the kernel load (physical) address as is already done for i386 kernels. 2014-05-07 14:00:48 +00:00
riastradh
9b5b162102 Add applesmc(4) to {i386,amd64}/ALL. 2014-04-25 18:25:52 +00:00
chs
821ef2eef9 add malo at pcmcia. 2014-04-21 16:35:38 +00:00
matt
8ed9a6d892 Since all our compilers support __DBL_* and __FLT_*, use them to define
{DBL,FLT}_{DIG,MIN,MAX}
2014-04-21 10:53:47 +00:00
riastradh
a86b8eb298 Remove FFS_NO_SNAPSHOT from x86/ALL so we do compile the snapshot code. 2014-04-08 22:04:15 +00:00
riastradh
2bc8e883f2 Add COMPAT_NETBSD32 and COMPAT_LINUX32 to amd64/ALL. 2014-04-08 21:51:11 +00:00
riastradh
de767a095e Enable options VND_COMPRESSION in amd64/GENERIC. 2014-04-08 21:08:36 +00:00
christos
b1909c04e2 add ixg 2014-04-08 19:40:57 +00:00
christos
bbbd837d1e we have cpu_bootconf() 2014-04-03 15:22:19 +00:00
szptvlfn
a66bf66641 fix manual section numbering of sysctl.
thanks wiz@
2014-03-24 14:15:37 +00:00
christos
9b77ad252d make pmc compile with amd64 2014-03-20 20:45:32 +00:00
christos
463607de9e First attempt at an ALL kernel based on the i386 one 2014-03-20 20:40:09 +00:00
nonaka
c3077021ad Add a driver for Realtek RTS5209/RTS5229 Card Reader.
Ported from OpenBSD.
2014-03-19 15:26:41 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
jakllsch
fd777306a7 Disable xpci(4) PCI passthrough in XEN3_DOMU kernels by popular demand. 2014-03-16 18:04:56 +00:00
jakllsch
59b031efd4 Enable PCI support in amd64 XEN3_DOMU config to match i386 XEN3_DOMU config. 2014-03-15 13:50:01 +00:00
para
4d3aae87b7 mark a diagnostic only variable 2014-03-11 20:54:29 +00:00
dsl
f9cd6e68d1 Determine whether the cpu supports xsave (and hence AVX).
The result is only written to sysctl nodes at the moment.
I see:
machdep.fpu_save = 3 (implies xsaveopt)
machdep.xsave_size = 832
machdep.xsave_features = 7
Completely common up the i386 and amd64 machdep sysctl creation.
2014-02-23 12:56:40 +00:00
dsl
ebf02f5265 This doesn't need fpu.h, but should include ucontext.h 2014-02-20 18:20:39 +00:00
dsl
8b623c15d9 Move the amd64 and i386 pcb to the bottom of the uarea, and move the
kernel stack to the top.
Change the pcb layouts so that fpu save area is at the end and is
  64byte aligned ready for xsave (saving the ymm registers).
Welcome to 6.99.32
2014-02-20 18:19:09 +00:00