03 Jul, 2007
31 commits
-
arch/powerpc still relies on asm-ppc/mmu.h for some 32-bit MMU types.
This patch is another step towards fixing this. It takes the portions
of asm-ppc/mmu.h related to 8xx embedded CPUs which are still relevant
in arch/powerpc and puts them in a new asm-powerpc/mmu-8xx.h,
included when appropriate from asm-powerpc/mmu.h.Signed-off-by: David Gibson
Signed-off-by: Kumar Gala -
arch/powerpc still relies on asm-ppc/mmu.h for some 32-bit MMU types.
This patch is another step towards fixing this. It takes the portions
of asm-ppc/mmu.h related to Freescale Book-E which are still relevant
in arch/powerpc and puts them in a new asm-powerpc/mmu-fsl-booke.h,
included when appropriate from asm-powerpc/mmu.h.Signed-off-by: David Gibson
Signed-off-by: Kumar Gala -
pcibios_enable_resources isn't used anywhere and not exported.
Signed-off-by: Kumar Gala
-
Remove uses of hack GET_64BIT() property macro and use
the more general of_read_number() function from prom.h
as suggested by Milton.Signed-off-by: Jon Loeliger
Signed-off-by: Kumar Gala -
Make the interrupt numbers match the OpenPIC spec intead of the
Freescale docs which distinguish between internal and external interrupts.Now we can use the interrupt number directly to find the register offset
associated with it.Signed-off-by: Kumar Gala
-
For the 83xx, 85xx, and 86xx device trees, add a "local-mac-address" property
to every Ethernet node that didn't have one. Add a comment indicating that
the "address" and/or "mac-address" properties are deprecated in DTS files
and will be removed at a later time. Change all MAC address properties to
have a zero MAC address value.Signed-off-by: Timur Tabi
Signed-off-by: Kumar Gala -
Export symbols of qe_lib to be used by QE driver.
Signed-off-by: Li Yang
Signed-off-by: Selvamuthukumar V
Signed-off-by: Kumar Gala -
Begin with MPC8548 a new reset control register is added that asserts
HRESET_REQ to board logic.This register is used for chip reset.
Signed-off-by: Roy Zang
Signed-off-by: Kumar Gala -
Signed-off-by: Roy Zang
Signed-off-by: Kumar Gala -
Document the global utilities node define and example.
Signed-off-by: Roy Zang
Signed-off-by: Kumar Gala -
The function backing_ops->read_mfc_tagstatus() doesn't return a
correct value because the dma_tagstatus_R register isn't saved in
CSA. This fixes the problem.Signed-off-by: Kazunori Asayama
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
When waiting for I/O events on mfc in an SPU context by using
poll/epoll syscalls, some of the events can be lost because of wrong
order of poll_wait and MFC status checks in the spufs_mfc_poll
function and non-atomic update of tagwait. This fixes the
problem.Signed-off-by: Kazunori Asayama
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Export spu statistics in sysfs.
Signed-off-by: Christoph Hellwig
Signed-off-by: Arnd Bergmann
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
spu_activate can be called from multiple threads at the same time on
behalf of the same spu context. We need to make sure to only add it
once to avoid runqueue corruption.Signed-off-by: Christoph Hellwig
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Only enable the scheduler tick if we have any context waiting to be
scheduled.Signed-off-by: Christoph Hellwig
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
We're currently too permissive with counting libassist calls - fix the
check on the SPE stop-and-signal status.Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Export per-context statistics in spufs.
Signed-off-by: Christoph Hellwig
Signed-off-by: Arnd Bergmann
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Provide load average information for spu context. The format
is identical to /proc/loadavg, which is also where a lot of code
and concepts is borrowed from.Signed-off-by: Christoph Hellwig
Signed-off-by: Arnd Bergmann
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
The new tid file contains the ID of the thread currently running the
context, if any. This is used so that the new spu-top and spu-ps
tools can find the thread in /proc.Signed-off-by: Christoph Hellwig
Signed-off-by: Arnd Bergmann
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Remove redundant whitespace in arch/powerpc/platforms/cell/spufs/
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
spufs_dir_inode_operations is exactly the same as
simple_dir_inode_operations. Use that instead.Signed-off-by: Jeremy Kerr
Signed-off-by: Arnd Bergmann
Signed-off-by: Paul Mackerras -
And last but not least we need to make sure the scheduler tick never
preempts a nosched context.Signed-off-by: Christoph Hellwig
Signed-off-by: Arnd Bergmann
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
spu_deactivate should never be called for nosched contets. Put in
a check so we can print a stacktrace and exit early in case it
happes erroneously.Signed-off-by: Christoph Hellwig
Signed-off-by: Arnd Bergmann
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Add a cpus_allowed allowed filed to struct spu_context so that we always
use the cpu mask of the owning thread instead of the one happening to
call into the scheduler. Also use this information in
grab_runnable_context to avoid spurious wakeups.Signed-off-by: Christoph Hellwig
Signed-off-by: Arnd Bergmann
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Update scheduling information on every spu_run to allow for setting
threads to realtime priority just before running them. This requires
some slightly ugly code in spufs_run_spu because we can just update
the information unlocked if the spu is not runnable, but we need to
acquire the active_mutex when it is runnable to protect against
find_victim. This locking scheme requires opencoding
spu_acquire_runnable in spufs_run_spu which actually is a nice cleanup
all by itself.Signed-off-by: Christoph Hellwig
Signed-off-by: Arnd Bergmann
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Print out a few scheduler tuning parameters when we've compiled
with DEBUG defined.Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
The current timeslice code mixes 'jiffies' up with 'spesched ticks'. This
change correctly defines the number of time slices each SPE contexts is
given, and clarifies the comment.This brings the default timeslice for SPE contexts into a reasonable
range.Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Enable preemptive scheduling for non-RT contexts.
We use the same algorithms as the CPU scheduler to calculate the time
slice length, and for now we also use the same timeslice length as the
CPU scheduler. This might be not enough for good performance and can be
changed after some benchmarking.Note that currently we do not boost the priority for contexts waiting
on the runqueue for a long time, so contexts with a higher nice value
could starve ones with less priority. This could easily be fixed once
the rework of the spu lists that Luke and I discussed is done.Signed-off-by: Christoph Hellwig
Signed-off-by: Arnd Bergmann
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Get rid of the scheduler workqueues that complicated things a lot to
a dedicated spu scheduler thread that gets woken by a traditional
scheduler tick. By default this scheduler tick runs a HZ * 10, aka
one spu scheduler tick for every 10 cpu ticks.Currently the tick is not disabled when we have less context than
available spus, but I will implement this later.Signed-off-by: Christoph Hellwig
Signed-off-by: Arnd Bergmann
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Add a bit define from book, and replace one hex number with a
symbol, for clarity.Signed-off-by: Sebastian Siewior
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras -
Currently it fails with gcc from sdk 2.1 because of a spec change [1].
Maybe we should start using the definitions from spu_mfcio.h.[1] http://gcc.gnu.org/ml/gcc-patches/2006-11/msg01598.html
Signed-off-by: Sebastian Siewior
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras
29 Jun, 2007
9 commits
-
Signed-off-by: Kumar Gala
-
Use the ppc64 style list management and allocation functions for
pci_controllers. This makes the pci_controller structs just a bit more
common between ppc32 & ppc64.Signed-off-by: Kumar Gala
-
Moved the low hanging fruit that was either identical or close
to it between ppc32 & ppc64 for PCI into pci-common.cSigned-off-by: Kumar Gala
-
In the places we can move to using pci_bus_to_host, this allows us
to make pci_bus_to_host static and remove its export.Signed-off-by: Kumar Gala
-
Make the ppc32 pcibios_alloc_controller take a device node to match
the ppc64 prototypes and have it set arch_data.Signed-off-by: Kumar Gala
-
Make the pci_controller struct use global_number for the PHB domain number
instead of index to match what ppc64 does and reuse its pci_domain_nr code.Introduced a pci-common.c to handle shared code between ppc32 & ppc64.
Signed-off-by: Kumar Gala
-
There are no in kernel users of any off these functions and some of
them were not even EXPORT_SYMBOL:- pci_bus_io_base()
- pci_bus_io_base_phys()
- pci_bus_mem_base_phys()
- pci_resource_to_bus()
- phys_to_bus()
- pci_phys_to_bus()
- pci_bus_to_phys()
- pci_init_resource()
- resource_fixup()Signed-off-by: Kumar Gala
-
We never actually read local_number so lets just remove it.
Signed-off-by: Kumar Gala
-
Moved bits need for ppc32 from asm-ppc/pci-bridge.h into
asm-powerpc/pci-bridge.h.Removed ARCH=powerpc specific bits (and comments related to ARCH=ppc)
from asm-ppc/pci-bridge.h as its only used on ARCH=ppc.Signed-off-by: Kumar Gala