summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-04-28*sigh* make the same change as previous commit to the sister function ofOwain Ainsworth
the one changed.
2010-04-28Deal with a non-incremented iterator by changing aOwain Ainsworth
while (condition) { do_stuff() increment_condition /* this was missing */ } To a for loop like it always should have been. I have no idea what I was smoking when I wrote this function. Fixes the crash on hardware that does bit 17 swizzling (turns out the three I know of are all 945s) as soon as we first unbind an object. Thank you very much to Brandon Mercer for actually managing to get me a crash dump so i could debug this, and also for testing the fix.
2010-04-27Fix inline assembler to make it acceptable to gcc4. Based on a diff fromMark Kettenis
guenther@ for sparc, pointed out to me by miod@.
2010-04-27Avoid null-pointer dereference by giving proc0 a place to store itsMark Kettenis
floating-point registers. Pointed out by Nick Hudson. ok miod@, jsing@
2010-04-27__packed needs to be applied to the struct, not the typedef.Mark Kettenis
Makes gcc4 happier. ok deraadt@, marco@
2010-04-27Don't use cast expressions as lvalues; gcc4 complains about them. And gcc3Mark Kettenis
generates smaller code without them. ok miod@
2010-04-27Killing a few more diffs for theo, arm makes #LINKFLAGS, beagle cleanup,Dale Rahn
INCLUDE= common.
2010-04-27Unifity CPPFLAGS= (using ${_mach}), SYSTEM_LD_TAIL= (always on one line),Theo de Raadt
and SRCS= (common files always after the \)
2010-04-27Disable builtin malloc and log2 on gcc3 arches, a no-op for gcc3Jonathan Gray
but required for gcc4. ok kettenis@ deraadt@ marco@, log2 suggested by robert@
2010-04-27Use the form ${_archdir}/${_arch} to reach a few more places, unifying theTheo de Raadt
arm Makefiles a substantial step forward
2010-04-27arm32 define isn't used on any arm platforms, and machine/io.h doesn't exist,Dale Rahn
delete the check. ok deraadt
2010-04-27A lot of the sections in this were out of whack with the order theyTheo de Raadt
normally occur in other architectures. This compiles a kernel fine.
2010-04-27Update oxsemi (now plxtech) datasheet URL.Stuart Henderson
2010-04-27locore.i is not generated at all, so no need to rm itTheo de Raadt
2010-04-27a bit more unification to the arm way of doing thisTheo de Raadt
2010-04-27teeny bit more unificationTheo de Raadt
2010-04-27Add a couple more frames in order to support the latest logitech pro 9000Marco Peereboom
webcam. ok mglocker
2010-04-27shorten preambleTheo de Raadt
2010-04-27No need for a specific .SUFFIXES list; ok drahnTheo de Raadt
2010-04-27noone needs comments about QUOTA and TRACETheo de Raadt
2010-04-27over the years we have moved to a machine+architectures scheme that hasTheo de Raadt
two directories. in reality, because of how we place files, it has four: .../arch/A, .../arch/A/A, .../arch/M, and .../arch/M/M formalize this A/A and M/M scheme directly in the Makefiles, which makes them a lot more similar drahn likes the idea a lot
2010-04-27use -f assymp.dep again; worked out with miodTheo de Raadt
2010-04-27Fuloong with LM6003 signature is apparently similar to LM6004 with differentMiod Vallat
DDR settings, and is reported to work by ysw at mpcj dot cn after cheating the Version environment variable, so recognize its model number.
2010-04-27next phase: get rid of bogus dependencies on Makefile from the day whenTheo de Raadt
people thought skipping "make depend" or "make clean" was acceptable
2010-04-27spacingMarco Peereboom
2010-04-27alpha/conf/Makefile.alphaTheo de Raadt
2010-04-26even cleaner mach/arch/machdir/archdirTheo de Raadt
2010-04-26next step towards unification: make all the genassym chunks handle bothTheo de Raadt
arch and machine dependent files (and add the missing files) ok miod drahn
2010-04-26typoTheo de Raadt
2010-04-26next unification step: remove bsd.rd test build goopTheo de Raadt
2010-04-26BOARDTYPE is no longer used by Makefile.*; spotted by miodTheo de Raadt
2010-04-26next unification step: move all MD naming _mach, _machdir, _arch, and _archdirTheo de Raadt
ok miod drahn
2010-04-26Make this compile with gcc4.Mark Kettenis
2010-04-26first step of unification: spaces at end of lines; comments, etc.Theo de Raadt
ok miod
2010-04-26syncStephan A. Rickauer
2010-04-26add Logitech Webcam C500, ok sthen@Stephan A. Rickauer
2010-04-26cut down simple locks (so simple that they don't even lock) to the pointTheo de Raadt
where there is almost nothing left to them, so that we can continue getting rid of them ok oga
2010-04-25Switch uao_list_lock protecting the uao list (for create, destroy andOwain Ainsworth
most importantly swapoff) over to a mutex. No idea how many times i've written this diff in the past. ok deraadt@
2010-04-25Argh, commited the wrong diff. This was the reversed test that found theOwain Ainsworth
libdrm bug recently. Correct to what was intended.
2010-04-25When querying if an object is busy, it is if it is marked active (beingOwain Ainsworth
accessed by the gpu or needing a flush). Since this implies that the object is wanted, emit the flush then to save time. Makes things a lot smoother than before in some GL applications, since before we were claiming that object needing a flush were unbusy so the next map stalled the gpu waiting on a flush. From daniel vetter on intel-gfx.
2010-04-25oops, kill unneeded write lock grabbing that got mixed in when resolvingOwain Ainsworth
conflicts.
2010-04-25A nice little performance speedup.Owain Ainsworth
If we just read access to some data that has been accessed by the gpu, only sleep until the end of the gpus last write (which we track). So instead of stalling the gpu until the last time accessed, both can read at the same time (which is allowed and coherent as long as the right invalidation happens). Since we check offsets from userland before we exec a batchbuffer, this helps 965 (with lots of read only relocations in the render path) quite a lot.
2010-04-25The locking rework/fix that I promised when I commited GEM.Owain Ainsworth
Before, as well as being kinda nasty there was a very definite race, if the last reference to an object was removed by uvm (a map going away), then the free path happened unlocked, this could cause all kinds of havoc. In order to deal with this, move to fine-grained locking. Since uvm object locks are spinlocks, and we need to sleep in operations that will wait on the gpu, provide a DRM_BUSY flag that is set on a locked object that then allows us to unlock and sleep (this is similar to several things done in uvm on pages and some object types). The rwlock stays around to ensure that execbuffer can have acces to the whole gtt, so ioctls that bind to the gtt need a read lock, and execuffer gets a write lock. otherwise most ioctls just need to busy the object that they operate on. Lists also have their own locks. Some cleanup could be done to make this a little prettier, but it is much more correct than previously. Tested very very vigorously on 855 (x40) and 965 (x61s), this found numerous bugs. Also, the I can no longer crash the kernel at will. A bunch of asserts hidden under DRMLOCKDEBUG have been left in the code for debugging purposes.
2010-04-25Don't bother binding the object in the gtt map ioctl.Owain Ainsworth
these maps tend to be fairly long lived so it buys us nothing other than code complexity.
2010-04-25Do not allow changing tiling mode on pinned objects.Owain Ainsworth
Since this means the necessary gtt alignment may change. Nothing did this already, so all it does it allows the code to be simpler. idea from Daniel Vetter.
2010-04-25Update various comments.Miod Vallat
2010-04-25Simplify the 6:1 pfsr extraction block: process data CMMU first, and do notMiod Vallat
bother zeroing fault registers of CMMU which did not report faults.
2010-04-25Do not include <machine/intr.h> from <sh/psl.h>, and fix <sh/cpu.h> whichMiod Vallat
used to depend on <sh/psl.h> bringing <machine/intr.h>.
2010-04-25Properly adjust group demotion counters when groups are added orMarco Pfatschbacher
removed. Extend carp demote logging to also show the reason for the demote. Return EINVAL instead of ERANGE if a carpdemote request is out range. Requested from otto. OK mcbride, henning.
2010-04-25Novatel MC760 bits from Ted Roby <ted.roby@gmail.com>.Jonathan Gray