summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
AgeCommit message (Collapse)Author
2002-01-11Get all of the bit definitions from ad1848reg, apcdmareg, and cs4231regJason Wright
headers.
2002-01-11Oops, that's -disable- interrupt enable in cs4231_close()...Jason Wright
2002-01-11Remove last nights interrupt handling hack and do it right:Jason Wright
* check the qualify the intr pending bits with the enable bits * enable/disable the cs4231 IEN bit in the pin control register * move the cs4231 (not dma) interrupt handling to the general interrupt processing [This properly allows for sharing with, eg. magma]
2002-01-11for the "Magma LC 2+1 Sp", we have to check the 'clock' property (it'sJason Wright
64Mhz vs. the "normal" 25Mhz). This (with the cs4231 patch) makes this board work.
2002-01-11Only check for playback interrupts if we're actually expecting them.Jason Wright
(This fixes the crash in pr2212, but the magma still doesn't want to talk to the world... looks like oscillator problems). [Many thanks to John Baker <jdbaker@blkbox.com> for donating a MAGMA board for testing]
2002-01-10Check result from malloc(9) when using M_NOWAIT. jason@ okThomas Nordin
2002-01-01Don't whine about not having carrier... ifconfig on the interface will say so.Jason Wright
2001-12-25Oops, I barfed there, too.Miod Vallat
2001-12-24Harmonize and complete wrt cross-compilation.Miod Vallat
2001-12-19UBC was a disaster. It worked very good when it worked, but on someArtur Grabowski
machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
2001-12-14Major restructuring for swizzling to the request queue and unswizzling frommjacob
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have a complete set of inline functions in isp_inline.h. Each platform is responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32} macros. The reason this needs to be done is that we need to have a single set of functions that will work correctly on multiple architectures for both little and big endian machines. It also needs to work correctly in the case that we have the request or response queues in memory that has to be treated specially (e.g., have ddi_dma_sync called on it for Solaris after we update it or before we read from it). One thing that falls out of this is that we no longer build requests in the request queue itself. Instead, we build the request locally (e.g., on the stack) and then as part of the swizzling operation, copy it to the request queue entry we've allocated. I thought long and hard about whether this was too expensive a change to make as it in a lot of cases requires an extra copy. On balance, the flexbility is worth it. With any luck, the entry that we build locally stays in a processor writeback cache (after all, it's only 64 bytes) so that the cost of actually flushing it to the memory area that is the shared queue with the PCI device is not all that expensive. We may examine this again and try to get clever in the future to try and avoid copies. Another change that falls out of this is that MEMORYBARRIER should be taken a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the entry being added. But there had been many other places this had been missing. It's now very important that it be done. For OpenSD, it does a ddi_dmamap_sync as appropriate. This gets us out of the explicit ddi_dmamap_sync on the whole response queue that we did for SBus cards at each interrupt. Now, because SBus/sparc doesn't use bus_dma, some shenanigans were done to support this. But Jason was nice enough to test the SBus/sparcv9 changes for me, and they did the right thing as well. Set things up so that platforms that cannot have an SBus don't get a lot of the SBus code checks (dead coded out). Additional changes: Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry, the iptr value that gets returned is the value we intend to eventually plug into the ISP registers as the entry *one past* the last one we've written- *not* the current entry we're updating. All along we've been calling sync functions on the wrong index value. Argh. The 'fix' here is to rename all 'iptr' variables as 'nxti' to remember that this is the 'next' pointer- not the current pointer. Devote a single bit to mboxbsy- and set aside bits for output mbox registers that we need to pick up- we can have at least one command which does not have any defined output registers (MBOX_EXECUTE_FIRMWARE). Explicitly decode GetAllNext SNS Response back *as* a GetAllNext response. Otherwise, we won't unswizzle it correctly. Nuke some additional __P macros.
2001-12-11Remove declarations that already exist in <sys/conf.h>Miod Vallat
2001-12-10Define MCLBYTES from MCLSHIFT, rather than providing the final value.Miod Vallat
(sync with other arches)
2001-12-10No need to include <sys/dmap.h> and define related variables.Miod Vallat
2001-12-09Even more ansification.Artur Grabowski
2001-12-09Random ansification.Artur Grabowski
(Does it show that I'm doing a binary search for a bug in a bigger diff?)
2001-12-09un-__PArtur Grabowski
2001-12-09Explicitly unmap and free the pages in pgt_page_free.Artur Grabowski
2001-12-09remove pvalloc and pvfree, use the raw pool_get and pool_put.Artur Grabowski
Make pv allocation non-waiting. sneak in some ansification.
2001-12-09Real pmap_k*. The sun4/sun4c functions are from NetBSD.Artur Grabowski
2001-12-09splbio?!? Where did that come from?Artur Grabowski
2001-12-08Sprinkle pmap_update calls where relevant and some otherArtur Grabowski
misc pmap usage fixes.
2001-12-07fix signal doscTheo de Raadt
2001-12-07make it compile on SUN4M-onlyMichael Shalayeff
2001-12-07Some ansification and cleanups in pmap_{zero,copy}_page*Artur Grabowski
2001-12-07kill kvm_iocache, not used.Artur Grabowski
2001-12-07Remove 4m bits and put some other nasty restrictions on kvm_uncache soArtur Grabowski
that noone ever has a thought of using it again.
2001-12-07kvm_recache is now unnecessary, simplify.Artur Grabowski
2001-12-07In dvma_malloc_space and dvma_free allocate and map the memoryArtur Grabowski
ourselves, don't malloc and then uncache the memory.
2001-12-07Remove pmap_cache_enable. it was a mistake.Artur Grabowski
2001-12-07Zap pmap_alloc_cpu. this is not how we want to do this.Artur Grabowski
2001-12-07splpmap -> splvmArtur Grabowski
2001-12-07Remove pmap_kenter_pgs leftovers.Artur Grabowski
2001-12-05Enable rootdev auto-configuration by device drivers during boot.Thierry Deval
Add support for "raid" devices (prepare future raidframe changes). OK deraadt@, Reviewed by drahn@, jason@, mickey@ and miod@
2001-12-05VM_KMEM_SIZE no longer needed.Artur Grabowski
2001-12-05Change pcache_flush_line to pcache_flush_page since this is the only wayArtur Grabowski
we use the function. At the same time fix the pte pool backend functions to allocate and map the memory themselves.
2001-12-05make nkmempages dynamic based on memory. okay art@ from netbsd:Niels Provos
date: 2000/02/11 19:22:52; author: thorpej; Add some very simple code to auto-size the kmem_map. We take the amount of physical memory, divide it by 4, and then allow machine dependent code to place upper and lower bounds on the size. Export the computed value to userspace via the new "vm.nkmempages" sysctl. NKMEMCLUSTERS is now deprecated and will generate an error if you attempt to use it. The new option, should you choose to use it, is called NKMEMPAGES, and two new options NKMEMPAGES_MIN and NKMEMPAGES_MAX allow the user to configure the bounds in the kernel config file.
2001-12-04Yet another sync to NetBSD uvm.Artur Grabowski
Today we add a pmap argument to pmap_update() and allocate map entries for kernel_map from kmem_map instead of using the static entries. This should get rid of MAX_KMAPENT panics. Also some uvm_loan problems are fixed.
2001-11-30Now that pmaps can have vm_page_md, make pmap_physseg optional.Artur Grabowski
2001-11-29oopsArtur Grabowski
2001-11-28zap some typedefs.Artur Grabowski
vm_map_t -> struct vm_map * vm_map_entry_t -> struct vm_map_entry * simple_lock_data_t -> struct simplelock (uvm not done yet, coming in the next commit)
2001-11-28Make pmap_update functions into nops so that we can have a consistentArtur Grabowski
pmap_update API (right now it's nop).
2001-11-28pmap_kenter_pgs is not used and not really useful. remove.Artur Grabowski
2001-11-28Sync in more uvm changes from NetBSD.Artur Grabowski
This time we're getting rid of KERN_* and VM_PAGER_* error codes and use errnos instead.
2001-11-27garbage collect sc_nticksJason Wright
2001-11-24Harmonize boot() logic across arches:Miod Vallat
- ensure RB_DUMP | RB_HALT will cause a dump - or RB_HALT if (cold) While there, honor RB_TIMEBAD on sparc64.
2001-11-22Use pmap_kenter_pa in pmap_map..Artur Grabowski
Remove the (commented out) body of pmap_copy, it's very unlikely that it will be ever used, and right now it's just confusing.
2001-11-22more pmap_enter vs. pmap_kenter.Artur Grabowski
2001-11-22simplify the iommu page table mapping. use pmap_kenter.Artur Grabowski
2001-11-22Map the interrupt enable register with pmap_kenterArtur Grabowski