Age | Commit message (Collapse) | Author |
|
|
|
device-tree.
With this change, supplementary PCIe cards are now properly
detected.
This should prevents the kernel from faulting when reading
unmapped PCI addresses as reported by Donovan Watteau on ppc@.
ok kettenis@
|
|
bugs@.
|
|
there's no real functional advantage to this, except that it will
make it easier to add deadlock detection to the code.
this is modelled on the c mutex implementation thats on alpha,
mips64, and hppa.
ok mpi@ kettenis@
|
|
faultbuf. But 1/ sr was only restored for machine check exceptions, and 2/ the
way it was saved was unsafe if interrupts were enabled, and could cause %r2
to be lost.
Discussing this with deraadt@ at the end of c2k15, this was probably needed
for the old VI boards which were the target of the original powerpc port,
came with a worse-than-Genesi openfirmware. Since then, machine check
exceptions have been unheard of; or, if they happen, they do not need the
status register to be restored.
ok mpi@ deraadt@
|
|
ok mpi@ looks correct miod@
|
|
|
|
On such machines the device-tree contains absolute addresses for the
various sound buttons and the hardware was not properly initiliazed.
Problem reported and fix tested by Fabian Frédérick.
|
|
kernels and we no longer have any.
|
|
ok bluhm@, claudio@, dlg@
|
|
ok mpi@
|
|
hw_prod is not initialized.
While here simply use "PowerBook" as model name, there's no "iBook"
model in Apple device-trees.
ok miod@ (who's cleaning one of his forests after 3 years)
|
|
it to unsigned, and we need to also check for negative values.
All users of OF_getprop() did this but that one.
ok mpi@
|
|
Even if this counter is subject to trashing it is a simple solution
and gives an proximation "good enough" of the number of IPIs on Quad
CPUs machine.
ok deraadt@
|
|
This also unbreak "bsd -cd" on such machine since we use OpenFirmware's
input at this stage of the boot process.
|
|
|
|
Note that pseudo-drivers not using if_input() are not affected by this
conversion.
ok mikeb@, kettenis@, claudio@, dlg@
|
|
from tilo stritzky
thanks miod for help with the diff, and who also noted that
leading whitespace gets stripped too;
|
|
|
|
miod pointed out that time_second should be compared to 1 not 0 in the
md resettodr() functions as it is initialised to 1.
ok miod@ deraadt@
|
|
|
|
timeout. Unfortunately the smu(4) CPU voltage slewing code sleeps, which
causes a kernel panic. Prevent this by delegating the CPU frequency switching
and voltage slewing to a task.
ok mpi@
|
|
ok kettenis@, miod@, dlg@
|
|
to determin if interrupts should be established as edge/level triggered.
Fix audio interrupts on U4 systems. On such systems the "interrupts"
fields in the device-tree has more bits set and cannot be compared to
0.
|
|
|
|
to get interrupts working on U4 machines.
With this OpenBSD can run on PowerMac11,2 (Quad G5).
With inputs from and ok kettenis@, miod@, dlg@
|
|
similiar lines so drm shouldn't either.
|
|
|
|
ok krw@ miod@
|
|
the kernel_lock), as we already do better conversions in
user-mode. Yet, no need for every single driver to fiddle with the
conversion code as they are done transparently by common MI code. With
help from armani and miod, support from mpi
ok armani@
|
|
as suggested by miod@
|
|
property of a node if "device_type" is not present.
ok mpi@ miod@
|
|
unification...
|
|
|
|
In fact we even use the firmware interface for "bsd -c" and "bsd -d".
So do the necessary firmware calls before calling initppc() to be able
to use printf() really early in the boot sequence.
|
|
mutex when necessary.
ok kettenis@, ratchov@
|
|
ok kettenis@, miod@
|
|
"sure" deraadt@
|
|
|
|
|
|
unused headers.
|
|
processors that support it.
Due to the way trap code is patched it is currently not possible to
enabled/disable BAT at runtime.
ok miod@, kettenis@
|
|
ok miod@, kettenis@ as part of a larger diff
|
|
generation of G5s. Without this my PowerMac11,2 hang when smu(4)
attaches.
|
|
not correspond to the PCI function.
Hopefully the first device that I find hitting this case is the second
bge(4) interface of my PowerMac11,2.
|
|
and enable the mpic on G5 machines and finally introduce some helpers
needed for suspend/resume. Is this called a rewrite?
In my forest since s2k11, committing now that I need this for supporting
Quad G5 machines.
|
|
and get the correct offsets from the "i2s" node. Also explicitly enable
the clock in FCR1 as the firmware does not do it on such machine.
Still not enough to get the sound working in such systems but get rid of
the annoying "i2s_set_rate: timeout" message during boot and plugging an
headphone is now correctly detected.
|
|
they do "interesting" things with APIs i want to change, and i can't
find any evidence anyone uses them anymore. instead of burning time
on changes i cant test, ill take a chance that noone will miss them.
no objections from anyone
ok mpi@ deraadt@ henning@ sthen@
|
|
way by mpi@. Bump version.
ok mpi@
|
|
of fs_ops; makes the `ls' command finally work in the boot loader.
|