Bug 20895

Summary: sym driver doesn't work for SYM53C895A
Product: Base System Reporter: hiramoto <hiramoto>
Component: kernAssignee: freebsd-scsi (Nobody) <scsi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description hiramoto 2000-08-28 10:20:03 UTC
	sym0: <895a> port 0x1000-0x10ff mem 0xb1100000-0xb1101fff,0xb1400000-0xb14003ff irq 15 at device 4.0 on pci1
	sym0: failed to allocate RAM resouces

	Fatal trap 12: page fault while in kernel mode
		.....

	The legacy(?) ncr driver works, so the generic kernel of 4.1 is OK,
	but it works as ultra, not as ultra-2.

Fix: The following patch works at least for me, although I don't know
	this is the right fix. (Non-FreeBSD_Bus_Io_Abstraction part is
	untested)

How-To-Repeat: 
	In my system (Compaq Prliant ML 330), 5.0 generic kernel and
	4.1-stable kernel with sym (without ncr) reliably reproduce
	this problem.  I have no idea whether this is generic for any
	sytems having Symbios 53c895a or not,  because I have no other
	system with 53c895a.
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-28 10:30:39 UTC
Responsible Changed
From-To: freebsd-bugs->groudier

Gerard, this one contains a proposed patch.
Comment 2 groudier 2000-08-28 20:08:40 UTC
I am glad that you found some trick for your system to work, but I guess
that your patch will not go into `sym', as it is, for the following
reason:

The below relevant part of the trace:

    0x1000-0x10ff mem 0xb1100000-0xb1101fff,0xb1400000-0xb14003ff

seems to indicate that MMIO resource (256 bytes) and on-chip RAM resource
(8192 bytes) are presented to the driver, by some part, in reverse order.

I donnot know why for now, but reporting the first 64 bytes of PCI config
space will actually tell me what part is wrong, and so a correct fix or
work-around will get possible to be implemented.

Thanks in advance to report me the actual content of the PCI configuration
space header (first 64 bytes) of your SYM53C895A.

  G=E9rard.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2004-08-26 04:12:51 UTC
State Changed
From-To: open->feedback

Is this still a problem with modern versions of FreeBSD? 


Comment 4 Mark Linimon freebsd_committer freebsd_triage 2004-08-26 04:12:51 UTC
Responsible Changed
From-To: groudier->freebsd-bugs

With bugmeister hat on, reassign from inactive committer.
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2004-08-26 06:49:45 UTC
State Changed
From-To: feedback->closed

Apparently the problem was fixed long ago.
Comment 6 Mark Linimon freebsd_committer freebsd_triage 2004-08-26 20:30:19 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-scsi

Reassign to appropriate mailing list.