All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tom \"spot\" Callaway" <tcallawa@redhat.com>
To: sparclinux@vger.kernel.org
Subject: Re: [TESTERS NEEDED]: Rewritten ESP driver
Date: Sat, 14 Apr 2007 22:58:57 +0000	[thread overview]
Message-ID: <1176591537.3970.255.camel@localhost.localdomain> (raw)
In-Reply-To: <20070412.233350.41640545.davem@davemloft.net>

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

On Fri, 2007-04-13 at 22:01 -0700, David Miller wrote:
> From: "Tom \"spot\" Callaway" <tcallawa@redhat.com>
> Date: Fri, 13 Apr 2007 23:10:46 -0500
> 
> > Here you go. Doesn't seem to make much difference. The only difference I
> > see is this:
> > 
> > ESP: tgt[0] lun[0] scsi_cmd [ 12 00 00 00 24 c2 ]
> 
> I need to have my head examined :-)
> 
> Please try this patch:
> 
> diff --git a/drivers/scsi/esp.c b/drivers/scsi/esp.c
> index 989b022..b500961 100644
> --- a/drivers/scsi/esp.c
> +++ b/drivers/scsi/esp.c
> @@ -174,7 +174,7 @@ static void esp_enable_interrupts(struct esp *esp)
>  {
>  	u32 val = dma_read32(DMA_CSR);
>  
> -	dma_write32(val & ~DMA_INT_ENAB, DMA_CSR);
> +	dma_write32(val | DMA_INT_ENAB, DMA_CSR);
>  }
>  
>  static int esp_interrupt_pending(struct esp *esp)

OK, that patch fixes the obvious flaw, but its still not scanning the
bus. Attached is the output from a patched kernel (esp + scsi are
static) with esp.esp_debug=1023.

Thanks,

~spot

[-- Attachment #2: new-ss4-esp-debug.log --]
[-- Type: text/x-log, Size: 8023 bytes --]


|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|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\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\b/\b-\b\\b|\bPROMLIB: obio_ranges 1
Booting Linux...
PROMLIB: Sun Boot Prom Version 3 Revision 2
Linux version 2.6.20-1.3062.al3.4 (root@odyssey) (gcc version 4.1.1 20060629 (Red Hat 4.1.1-6)) #1 Sat Apr 14 17:34:05 EDT 2007
ARCH: SUN4M
TYPE: SPARCstation 4
Ethernet address: 8:0:20:79:8d:63
Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek (jj@ultra.linux.cz). Patching kernel for srmmu[Fujitsu Swift]/iommu
PROM: Built device tree with 20056 bytes of memory.
Power off control detected.
Built 1 zonelists.  Total pages: 38998
Kernel command line: ro root=LABEL=/ stop-a=1 esp.esp_debug=1023
PID hash table entries: 1024 (order: 10, 4096 bytes)
start_kernel(): bug: interrupts were enabled early
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 153400k/163508k available (1796k kernel code, 9956k reserved, 496k data, 148k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
SCSI subsystem initialized
IOMMU: impl 0 vers 4 table 0xf9f00000[262144 B] map [65536 b]
sbus0: Clock 22.0 MHz
dma0: Revision 2 
dma1: Revision 2 
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 3632k freed
ioremap: done with statics, switching to malloc
apc: power management initialized
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 144x56
/iommu@0,10000000/sbus@0,10001000/SUNW,tcx@2,800000: TCX at 0:50800000, 8-bit only
ffd35080: ttyS0 at MMIO 0x71100000 (irq = 44) is a zs
Console: ttyS0 (SunZilog zs0)
ffd35080: ttyS1 at MMIO 0x71100004 (irq = 44) is a zs
ffd35134: Keyboard at MMIO 71000000 (irq = 44) is a zs
ffd35134: Mouse at MMIO 71000004 (irq = 44) is a zs
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
scsi0 : esp
esp: esp0 found at /iommu@0,10000000/sbus@0,10001000/espdma@4,8400000/esp@4,8800000, regs[fd117000:fd00f000] irq[36]
esp: esp0 is a FAS100A, 40 MHz (ccf=0), SCSI ID 7
ESP: tgt[0] lun[0] scsi_cmd [ 12 00 00 00 24 c2 ]
ESP: intr sreg[80] seqreg[00] sreg2[00] ireg[20]
ESP: tgt[1] lun[0] scsi_cmd [ 12 00 00 00 24 c2 ]
ESP: intr sreg[80] seqreg[00] sreg2[00] ireg[20]
ESP: tgt[2] lun[0] scsi_cmd [ 12 00 00 00 24 c2 ]
ESP: intr sreg[80] seqreg[00] sreg2[00] ireg[20]
ESP: tgt[3] lun[0] scsi_cmd [ 12 00 00 00 24 c2 ]
ESP: intr sreg[93] seqreg[00] sreg2[00] ireg[18]
ESP: intr sreg[97] seqreg[04] sreg2[00] ireg[08]
ESP: intr sreg[90] seqreg[04] sreg2[00] ireg[20]
ESP: Command done status[2] message[0]
ESP: tgt[3] lun[0] scsi_cmd [ 03 00 00 00 fc 00 ]
ESP: intr sreg[91] seqreg[04] sreg2[00] ireg[18]
ESP: start data addr[f0005000] len[252] write(1)
ESP: intr sreg[83] seqreg[04] sreg2[00] ireg[10]
ESP: data done csr[a6400310] flgs[1] sent[18]
ESP: intr sreg[87] seqreg[04] sreg2[00] ireg[08]
ESP: intr sreg[80] seqreg[04] sreg2[00] ireg[20]
ESP: Command done status[0] message[0]
ESP: tgt[4] lun[0] scsi_cmd [ 12 00 00 00 24 c2 ]
ESP: intr sreg[80] seqreg[04] sreg2[00] ireg[20]
ESP: tgt[5] lun[0] scsi_cmd [ 12 00 00 00 24 c2 ]
ESP: intr sreg[80] seqreg[00] sreg2[00] ireg[20]
ESP: tgt[6] lun[0] scsi_cmd [ 12 00 00 00 24 c2 ]
ESP: intr sreg[80] seqreg[00] sreg2[00] ireg[20]
rtc_sun_init: Registered Mostek RTC driver.
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Freeing unused kernel memory: 148k freed
input: Sun Mouse as /class/input/input0
Red Hat nash version 6.0.6 starting
Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug.
Creating block device nodes.
Loading jbd.ko module
Loading ext3.ko module
Creating root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new roKernel panic - not syncing: Attempted to kill init!
Press Stop-A (L1-A) to return to the boot prom
ot fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory

Type  'go' to resume
Type  help  for more information
ok 

  parent reply	other threads:[~2007-04-14 22:58 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-13  6:33 [TESTERS NEEDED]: Rewritten ESP driver David Miller
2007-04-13 10:27 ` Leen Besselink
2007-04-13 15:59 ` Pasi Pirhonen
2007-04-13 20:18 ` Tom "spot" Callaway
2007-04-13 20:33 ` David Miller
2007-04-13 20:48 ` David Miller
2007-04-13 23:10 ` David Miller
2007-04-14  4:10 ` Tom "spot" Callaway
2007-04-14  4:26 ` David Miller
2007-04-14  5:01 ` David Miller
2007-04-14 10:38 ` Pasi Pirhonen
2007-04-14 17:01 ` David Miller
2007-04-14 17:26 ` David Miller
2007-04-14 17:54 ` Pasi Pirhonen
2007-04-14 22:58 ` Tom "spot" Callaway [this message]
2007-04-15  0:12 ` David Miller
2007-04-15  0:54 ` Tom "spot" Callaway
2007-04-15  2:24 ` David Miller
2007-04-15  9:16 ` Tom "spot" Callaway
2007-04-15  9:45 ` Pasi Pirhonen
2007-04-15 16:03 ` Adam Kropelin
2007-04-15 23:15 ` Adam Kropelin
2007-04-16  0:55 ` Adam Kropelin
2007-04-16  5:03 ` David Miller
2007-04-16  8:29 ` David Miller
2007-04-16 20:43 ` David Miller
2007-04-16 20:46 ` David Miller
2007-04-16 22:58 ` Adam Kropelin
2007-04-16 23:38 ` David Miller
2007-04-17  3:35 ` Adam Kropelin
2007-04-17  7:19 ` David Miller
2007-04-17 15:28 ` BERTRAND Joël
2007-04-17 19:02 ` David Miller
2007-04-17 19:29 ` BERTRAND Joël
2007-04-17 19:37 ` David Miller
2007-04-17 20:46 ` Tom "spot" Callaway
2007-04-17 20:52 ` Tom "spot" Callaway
2007-04-17 21:12 ` David Miller
2007-04-17 21:13 ` David Miller
2007-04-17 23:59 ` Adam Kropelin
2007-04-19  7:32 ` David Miller
2007-04-19  7:41 ` David Miller
2007-04-19  7:47 ` David Miller
2007-04-19  9:04 ` Pasi Pirhonen
2007-04-19 12:19 ` BERTRAND Joël
2007-04-19 13:04 ` Pasi Pirhonen
2007-04-19 19:41 ` David Miller
2007-04-20 22:55 ` Adam Kropelin
2007-04-20 23:19 ` David Miller
2007-04-21 22:38 ` Georg Chini
2007-04-21 22:41 ` David Miller
2007-04-21 23:20 ` David Miller
2007-04-22  7:49 ` BERTRAND Joël
2007-04-22  7:54 ` BERTRAND Joël
2007-04-22  9:01 ` Georg Chini
2007-04-22  9:40 ` David Miller
2007-04-23  8:42 ` BERTRAND Joël
2007-04-23  9:06 ` David Miller
2007-04-23  9:08 ` David Miller
2007-04-24  8:01 ` BERTRAND Joël
2007-04-24  8:05 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1176591537.3970.255.camel@localhost.localdomain \
    --to=tcallawa@redhat.com \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.