Commit Graph

229048 Commits

Author SHA1 Message Date
riastradh
a7dd8986b4 Don't forget to decrement the acquired count too. 2014-07-26 21:35:06 +00:00
riastradh
e44e30710d Make sure the low bits, not the high bits, of the offset are zero! 2014-07-26 21:19:45 +00:00
riastradh
ae23e861e3 Let the drm driver decide what part of what object gets mmapped.
Pass the file around too so radeon/ttm can get at it to verify access.

Add drm_gem_or_legacy_mmap_object for drivers to choose the previous
behaviour, like i915.
2014-07-26 21:15:45 +00:00
riastradh
609cad5551 drmkms_ttm is not split into a module (yet). 2014-07-26 21:12:43 +00:00
alnsn
5577ba7875 Don't destroy mutexes because the module can't be unload. 2014-07-26 21:07:45 +00:00
dholland
232c06f47a Add d_discard to a cdevsw I apparently missed. 2014-07-26 20:24:33 +00:00
wiz
dd85589675 Sort sections. 2014-07-26 20:04:05 +00:00
dholland
4808d892e4 Add a dummy sysinst architecture for ports that don't have their own yet.
This makes the presence of sysinst in /usr/sbin MI (as intended) --
remember that one of the goals is for sysinst to be able to install
chroots, and installing a chroot is a sensible operation on all ports,
even those for which an installer per se might not make sense.

Currently this dummy architecture fails instead of doing anything, but
as they say, one thing at a time.
2014-07-26 19:56:30 +00:00
dholland
9171ee4425 Add /usr/sbin/sysinst. 2014-07-26 19:35:59 +00:00
dholland
eed67d2502 Don't descend into sysinst. 2014-07-26 19:35:10 +00:00
dholland
779842189d Adjust for sysinst move. 2014-07-26 19:34:08 +00:00
dholland
29ed33b85f Descend into sysinst. 2014-07-26 19:32:37 +00:00
dholland
e52187bbbb Update for building in usr.sbin. 2014-07-26 19:32:22 +00:00
dholland
50dbef1a09 Move sysinst sources to usr.sbin.
This commit only physically moves the sources - there are no other
changes, to maximize the probability that this will be treated as a
rename if we ever do manage to migrate away from CVS.

Moving sysinst has been discussed on and off for years and has two
goals: making it easier to work on sysinst, and also making sysinst
available on running systems for use installing chroots and VM images
and other such things. None of the latter is possible yet, but as they
say, one thing at a time.

Doing this now was approved in an impromptu fashion by mrg, riz,
riastradh, me, and groo.
2014-07-26 19:30:39 +00:00
riastradh
322d2c791f Move CONFIG_X86 from files.i915drmkms to drm_os_netbsd.h. 2014-07-26 18:13:44 +00:00
tsutsui
74299d30d8 Comment out options and devices to sync GENERIC rev 1.90. 2014-07-26 17:34:31 +00:00
tsutsui
428f948879 Shrink GENERIC kernel to fit to bootloader's limit (2MB).
Maybe now we can't call it GENERIC, but it still boots on TME.
2014-07-26 17:32:07 +00:00
tsutsui
80f4cef428 Move sun3 bootloader address to allow loading growing GENERIC kernels. 2014-07-26 17:24:04 +00:00
palle
88b1626471 Improved the NORMAL_GLOBALS macro in the sun4u case, so only the relevant bit (AG) in %pstate is affected - ok martin@ 2014-07-26 17:16:41 +00:00
rmind
8865b1bf3d npf_conn_conkey: fix a comment. 2014-07-26 16:42:03 +00:00
riastradh
d9c17c4088 Avoid needless #ifdef __i386__ with judicious use of MIN. 2014-07-26 14:27:40 +00:00
riastradh
e5a34f8222 Fix __raw_i915_read64 on i386. From rjs@. 2014-07-26 14:26:04 +00:00
riastradh
d8efb7e997 Use tvtohz instead of ad-hacking it myself, suggested by apb@. 2014-07-26 14:24:08 +00:00
tsutsui
498146de96 Reorganize and bump VM related constants.
- sync VM_MAXUSER_ADDRESS and VM_MAX_ADDRESS with other hp300 derived ports
  and use same definitions for USRSTACK as other m68k ports
  (no worth to have sun3/sunos compat in these days)
- remove unused KUSER_AREA
- bump MAXTSIZ, MAXDSIZ, and MAXSSIZ

These changes allow my 64MB TT030 build pkgsrc/textproc/icu
which seems to require >200MB VA space.
(note our current 040/060 pmap implementation can't handle >224MB VA size)
2014-07-26 13:24:34 +00:00
tsutsui
f616495c51 Sync VM_MAXUSER_ADDRESS and VM_MAX_ADDRESS with other hp300 derived ports.
There is no particular reason to have different values among m68k ports.
Briefly checked on LUNA-II.
2014-07-26 12:48:07 +00:00
rjs
e3f09db334 Fix non debug build. 2014-07-26 12:27:57 +00:00
alnsn
80a2991627 Don't use saved EREG registers because sljit 0.91 can generate
bogus code on amd64. The A and X registers are saved on the stack.

The most recent version of sljit fixes bogus code generation but
it's not backward compatible with sljit 0.91.
2014-07-26 11:23:46 +00:00
skrll
23f4f87d63 Recover from channel halt errors by using the 3 strikes xacterr rule.
Adapted from the RaspberryPI linux driver.

This allows the rum(4) I was sent to be somewhat usable. Need to
investigate further what is causing the problem in the first place.

Might help PR/49019 (RPI: interrupt storm when url0 is up)
2014-07-26 09:18:53 +00:00
mrg
fba17c9a56 enable KMS on x86. 2014-07-26 08:05:15 +00:00
mrg
1d2c654a12 link against libdrm_radeon, from @riastradh 2014-07-26 08:04:54 +00:00
riastradh
a0687f1f96 Report the same PCI domain (cf_unit) as everything else in NetBSD. 2014-07-26 07:53:14 +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
riastradh
16f359e554 Defer real radeon attachment until mountroot so we can load firmware. 2014-07-26 07:32:18 +00:00
riastradh
197797e410 Fix radeon framebuffer mmapping.
The framebuffer is not a system-RAM-backed, TTM-managed object;
rather, it is a VRAM-backed object.  So we have to use its bus
address, which is a little less sketchy with bus_space_mmap anyway.
2014-07-26 07:02:13 +00:00
riastradh
a43616ecf0 Fix botched conversion from ALIGN to round_up (not DIV_ROUND_UP!). 2014-07-26 06:37:53 +00:00
riastradh
64cf35771b Don't ttm_tt_destroy bo->ttm if bo->destroy will destroy it too. 2014-07-26 06:34:12 +00:00
riastradh
be24e7e5e3 Fill in i2c_bit_add_bus. 2014-07-26 06:26:39 +00:00
riastradh
a261475311 Make Linux usecs_to_jiffies work with hz up to 2000. 2014-07-26 06:20:25 +00:00
dholland
3b8c31df5d fix MKPAM=no build 2014-07-26 06:12:30 +00:00
riastradh
57692d89d2 Fix some dumb thinkos in radeon_gart.c. 2014-07-26 05:45:53 +00:00
riastradh
5108afdd0f Fix little arithmetic mistakes in radeon_gart.c.
Unlikely to fix the failing ring tests on boot, though.
2014-07-26 05:23:11 +00:00
ryoon
4575a9c0a5 Fix dtrace kernel module build.
Add nodiscard to cdevsw.
They are not fixed in fallocate/fdiscard changes.
2014-07-26 04:54:20 +00:00
pgoyette
53dab47fb0 Another __diagused 2014-07-26 00:17:57 +00:00
rmind
7e49c40b60 npf_conn_conkey: adjust to return the key length and add a comment
describing the key layout.
2014-07-25 23:21:46 +00:00
rmind
4fa1bf86dc npf_mk_connlist: destroy the connections on error path. 2014-07-25 23:07:21 +00:00
riastradh
2f2d56347b Mark isc __diagused in agp_i810_unbind_memory. 2014-07-25 23:05:54 +00:00
riastradh
4c3d39e63e Disable reusing graphics stolen memory in i915drmkms for now.
Sometimes the GTT is located in graphics stolen memory, and who knows
what else the BIOS might have done with it.  Upstream has a patch to
sneak around the GTT, but disabling it altogether is simpler and
probably safer.
2014-07-25 21:57:54 +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
joerg
c34b7725c2 Bump SYMTAB_SPACE for clang build. 2014-07-25 21:38:52 +00:00
joerg
62bb14f3ff UREAD4 is unused. 2014-07-25 21:16:31 +00:00