28 Apr, 2007
1 commit
-
* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6: (67 commits)
[SCSI] SUNESP: Complete driver rewrite to version 2.0
[SPARC64]: Convert PCI over to generic struct iommu/strbuf.
[SPARC]: device_node name constification fallout
[SPARC64]: Convert SBUS over to generic iommu/strbuf structs.
[SPARC64]: Add generic iommu and strbuf structs to iommu.h
[SPARC64]: Consolidate {sbus,pci}_iommu_arena.
[SPARC]: Make device_node name and type const
[SPARC64]: constify some paramaters of OF routines
[TIGON3]: of_get_property() returns const.
[SPARC64]: Fix PCI rework to adhere to of_get_property() const return.
[SPARC64]: Document and fix calculation of pages_avail.
[SPARC64]: Make sure pbm->prom_node is setup easly enough in psycho.c
[SPARC64]: Use bootmem_bootmap_pages() in choose_bootmap_pfn().
[SPARC64]: Add proper header file extern for cmdline_memory_size.
[SPARC64]: Kill sparc_ultra_dump_{i,d}tlb()
[SPARC64]: Use DECLARE_BITMAP and BITS_TO_LONGS in mm/init.c
[SPARC64]: Give move verbose show_mem() output just like i386.
[SPARC64]: Mark show_mem() printk's with KERN_INFO.
[SPARC64]: Kill kvaddr_to_phys() and friends.
[SPARC64]: Privatize sun4u_get_pte() and fix name.
...
27 Apr, 2007
1 commit
-
Signed-off-by: David S. Miller
26 Apr, 2007
26 commits
-
Signed-off-by: David S. Miller
-
Move to asm-sparc64/iommu.h and rename to plain "iommu_arena".
Signed-off-by: David S. Miller
-
Signed-off-by: Stephen Rothwell
Signed-off-by: David S. Miller -
This starts bringing the PowerPC and Sparc64 implemetations back closer
together.Signed-off-by: Stephen Rothwell
Signed-off-by: David S. Miller -
Signed-off-by: David S. Miller
-
__get_phys is only called from init.c as is prom_virt_to_phys(),
__get_iospace() is not called at all, and sun4u_get_pte() is largely
misnamed.Privatize the implementation and helper functions of
sun4u_get_phys() to mm/init.c, and rename to
kvaddr_to_paddr().The only used of this thing is flush_icache_range(), and thus
things can be considerably further simplified. For example,
we should only see module or PAGE_OFFSET kernel addresses here,
so we don't need the OBP firmware range handling at all.Signed-off-by: David S. Miller
-
Signed-off-by: David S. Miller
-
Decrease the SECTION_SIZE_BITS --> MAX_PHYSADDR_BITS
range a little bit.The cost of going to SPARSEMEM_STATIC becomes 8K of BSS space, and in
return we save a pointer dereferences on every page struct lookup.
Even better we hit the main kernel image for the base address which is
in a hugepage locked TLB entry.Signed-off-by: David S. Miller
-
Signed-off-by: David S. Miller
-
Based upon a similar patch for x86_64 written by
Stephen Hemminger.Signed-off-by: David S. Miller
-
Set but never used.
Signed-off-by: David S. Miller
-
We don't do the "Simba APB is a PBM" bogosity for Sabre
controllers any longer, so this pbms_same_domain thing
is no longer necessary.Signed-off-by: David S. Miller
-
Implemented but never actually used.
Signed-off-by: David S. Miller
-
All the implementations can be identical and generic, so
no need for controller specific methods.Signed-off-by: David S. Miller
-
It is only used in one spot and we can just fetch the
OF property right there.Signed-off-by: David S. Miller
-
Set but never used.
Signed-off-by: David S. Miller
-
The only user was bus_dvma_to_mem() which is no longer used
by any driver, so kill that, and the export of pci_memspace_mask.The only user now is the PCI mmap support code.
Signed-off-by: David S. Miller
-
Almost entirely taken from the 64-bit PowerPC PCI code.
This allowed to eliminate a ton of cruft from the sparc64
PCI layer.Signed-off-by: David S. Miller
-
Also, do not try to compute resources by hand, instead use
the pre-computed ones in the of_device.Signed-off-by: David S. Miller
-
Also, we don't need to store or use the PBM so kill that
from the linux_ebus.Signed-off-by: David S. Miller
-
Finally, we actually change the functions themselves.
Signed-off-by: Stephen Rothwell
Signed-off-by: David S. Miller -
Signed-off-by: Stephen Rothwell
Signed-off-by: David S. Miller -
I'd like to thank John Stul and others for helping
me along the way.A lot of cleanups fell out of this. For example, the get_compare()
tick_op was totally unused, so was deleted. And the most often used
tick_op members were grouped together for cache-friendlyness.The sparc64 TSC is given to the kernel as a one-shot timer.
tick_ops->init_timer() simply turns off the privileged bit in
the tick register (when possible), and disables the interrupt
by setting bit 63 in the compare register. The ->disable_irq()
op also sets this bit.tick_ops->add_compare() is changed to:
1) Add the given delta to "tick" not to "compare"
2) Return a boolean which, if true, means that the tick
value read after writing the compare value was found
to have incremented past the initial tick value. This
mirrors logic used in the HPET driver's ->next_event()
method.Each tick_ops implementation also now provides a name string.
And we feed this into the clocksource and clockevents layers.Signed-off-by: David S. Miller
-
Things were scattered all over the place, split between
SMP and non-SMP.Unify it all so that dyntick support is easier to add.
Signed-off-by: David S. Miller
-
Now that network timestamps use ktime_t infrastructure, we can add a new
SOL_SOCKET sockopt SO_TIMESTAMPNS.This command is similar to SO_TIMESTAMP, but permits transmission of
a 'timespec struct' instead of a 'timeval struct' control message.
(nanosecond resolution instead of microsecond)Control message is labelled SCM_TIMESTAMPNS instead of SCM_TIMESTAMP
A socket cannot mix SO_TIMESTAMP and SO_TIMESTAMPNS : the two modes are
mutually exclusive.sock_recv_timestamp() became too big to be fully inlined so I added a
__sock_recv_timestamp() helper function.Signed-off-by: Eric Dumazet
CC: linux-arch@vger.kernel.org
Signed-off-by: David S. Miller -
Now network timestamps use ktime_t infrastructure, we can add a new
ioctl() SIOCGSTAMPNS command to get timestamps in 'struct timespec'.
User programs can thus access to nanosecond resolution.Signed-off-by: Eric Dumazet
CC: Stephen Hemminger
Signed-off-by: David S. Miller
03 Apr, 2007
1 commit
-
Add unsigned to unused bit field in a.out.h to make sparse happy.
[ I took care of the sparc64 side as well -DaveM ]
Signed-off-by: Robert Reif
Signed-off-by: David S. Miller
27 Mar, 2007
1 commit
-
Compiling 2.6.21-rc5 with gcc-4.2.0 20070317 (prerelease)
for sparc64 fails as follows:gcc -Wp,-MD,arch/sparc64/kernel/.time.o.d -nostdinc -isystem /home/mikpe/pkgs/linux-sparc64/gcc-4.2.0/lib/gcc/sparc64-unknown-linux-gnu/4.2.0/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare -Wa,--undeclared-regs -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -Werror -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(time)" -D"KBUILD_MODNAME=KBUILD_STR(time)" -c -o arch/sparc64/kernel/time.o arch/sparc64/kernel/time.c
cc1: warnings being treated as errors
arch/sparc64/kernel/time.c: In function 'kick_start_clock':
arch/sparc64/kernel/time.c:559: warning: overflow in implicit constant conversion
make[1]: *** [arch/sparc64/kernel/time.o] Error 1
make: *** [arch/sparc64/kernel] Error 2gcc gets unhappy when the MSTK_SET macro's u8 __val variable
is updated with &= ~0xff (MSTK_YEAR_MASK). Making the constant
unsigned fixes the problem.[ I fixed up the sparc32 side as well -DaveM ]
Signed-off-by: Mikael Pettersson
Signed-off-by: David S. Miller
17 Mar, 2007
1 commit
-
We have to make sure to use base-pagesize TLB entries even during the
early transition period where we need TLB miss handling but don't have
the kernel page tables setup yet for the linear region.Also, it is necessary therefore to not use the 4MB TSB for these
translations, and instead use the normal kernel TSB. This allows us
to also get rid of the 4MB tsb for debug builds which shrinks the
kernel a little bit.Signed-off-by: David S. Miller
13 Mar, 2007
1 commit
-
sys_mbind
sys_get_mempolicy
sys_set_mempolicy
sys_kexec_load
sys_move_pages
sys_getcpu
sys_epoll_pwaitThis work is largely a result of David Woodhouse's most
excellent missing syscalls patch.Signed-off-by: David S. Miller
10 Mar, 2007
1 commit
-
Signed-off-by: David S. Miller
09 Mar, 2007
1 commit
-
Need to provide {claim,release}_dma_lock() for this guy too.
Signed-off-by: David S. Miller
06 Mar, 2007
1 commit
-
Just define a local {claim,release}_dma_lock() implementation
for the floppy driver to use so we don't need to define and
export to modules the silly dma_spin_lock.Signed-off-by: David S. Miller
03 Mar, 2007
2 commits
-
Another powerpc compatibility item, this will allow us to share
more code with them.Signed-off-by: David S. Miller
-
Signed-off-by: David S. Miller
01 Mar, 2007
1 commit
-
Signed-off-by: David S. Miller
13 Feb, 2007
1 commit
-
Signed-off-by: David S. Miller
12 Feb, 2007
1 commit
-
* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
[SPARC64]: Update defconfig.
[SPARC64]: Add PCI MSI support on Niagara.
[SPARC64] IRQ: Use irq_desc->chip_data instead of irq_desc->handler_data
[SPARC64]: Add obppath sysfs attribute for SBUS and PCI devices.
[PARTITION]: Add whole_disk attribute.