Problems with SATA

A forum for AmigaOne XE and MicroA1-C specific issues.
User avatar
Ghillo
Posts: 24
Joined: Sat Jun 18, 2011 12:08 am
Location: Italia

Problems with SATA

Post by Ghillo »

Hello, I encountered a problem on my Amiga One XE G3, I have added to the system controller with a Sil 3112 SATA HD, since all the IDE ports are already occupied with cd and dvd burner and 2 hard drives.
On the sata hd I installed Linux Lenny AmigaOS4.1 update 4 and under OS4 reflected a problem that every time when accessing the hard disk during the loading of programs the system hangs for a few seconds (5-10 seconds ) with the mouse working and the LED on the computer's case indicates that the activity of an IDE PATA hard drive connected to the Amiga.
This problem does not stop using Linux, I conclude that it could be a sata driver issue that conflicts with the integrated IDE nell'Amiga.
Does anyone know of this problem and can give me some advice for the solution, or is it a problem with OS4 driver sata and ide then a software problem to solve? Or is it something else?
Thank you.
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1479
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: Problems with SATA

Post by tonyw »

It is unlikely to be a system software problem since many other people already have similar installations. I have an AmigaOne XE with the built-in IDE, sii0680 and sii3114 cards, all working properly.

Has your AmigaOne been "fixed"? I don't think that could be a cause, but it's something we need to know.

Next, can you describe your installation? We need to understand it to be able to help.
Please describe all disk connections (which interfaces, master/slave, all devices including CD-ROMs, etc).
How old are all the disk drives?

Where is the OS4 system partition (which disk)?
What do you have on other partitions and drives? Applications? Programs that are running in the background?
This problem occurs only when running OS4? Does Linux access any of the other drives/partitions?
cheers
tony
User avatar
Ghillo
Posts: 24
Joined: Sat Jun 18, 2011 12:08 am
Location: Italia

Re: Problems with SATA

Post by Ghillo »

My setup is as follows:
3112 sata controller on the first port sata 230Gb hard disk, the second free port.
Sata partitioned dh0: SFS OS4.1.4, DH1: jxfs DH4: Swap AOS, DH5 ext3 in Linux and Linux Swap dh6.
Sull'ATA100 dell'AmigaOne:
Primary Master: HD 160Gb jxfs DH2, DH3 SBB DOS3 for data exchange with Linux.
Slave: CD burning
Secondary Master: 40Gb HD (9 years old when I bought the A1)
I use a single EXT3 partition with Linux
Slave: DVD burning
Special programs are installed on the boot partition Amicignyx AmigaOS, commodities Amidock, amisnap, clicktofront, contextmenu, CrossDOS, DepthToFront, Fkey, RAWBinfo, ScreenBlankerEngine, WindiwThumbs.

UserStartup:
Hidden Text - Click to Show :
;BEGIN MUI
If EXISTS SYS:MUI
C:Assign >NIL: MUI: SYS:MUI
C:Assign >NIL: ADD LIBS: MUI:Libs
C:Assign >NIL: ADD LOCALE: MUI:Locale
C:Assign >NIL: ADD HELP: MUI:Docs
EndIf
;END MUI

assign tbimages: SYS:Prefs/Presets/tbimages

;Controllo automatico floppy
fdtool >NIL: UNIT 0 AUTO
;END floppy
;Aggiunge Extra
Path OS4:Extra add
;Aggiunge directory User in Libs e Cuser in C
assign add Libs: OS4:Libs/User
assign add C: OS4:C/Cuser
;End assegnazione User
;Avvio Mixer
SYS:Utilities/Commodities/Mixer setlevels
;END Mixer
;BEGIN GoldED
ASSIGN >NIL: GOLDED: "Programmi:Utility/Editor/GoldED"
;END GoldED
;BEGIN GED_quick
;resident "c:cuser/GED" pure
;END GED_quick
;BEGIN HiSpeed
;ASSIGN >NIL: HISPEED: GOLDED:TOOLS/HISPEED
;END HiSpeed
;BEGIN AWEB_APL
Assign AWEB_APL: "Programmi:Internet/AWebPPC"
;END AWEB_APL
;BEGIN STFax
Assign STFax: "Programmi:Utility/Ufficio/STFax4" >NIL:
Assign LIBS: STFax:libs ADD
;END STFax
;BEGIN Personal Paint
Assign PPAINT: "Programmi:Grafica/PPaint"
;END Personal Paint
;Start MAME
Assign mame: Programmi:Emulazione/MAME
;BEGIN AmithlonTV
assign add libs: Programmi:Grafica/AmithlonTV/libs
assign AmithlonTV: Programmi:Grafica/AmithlonTV
;END AmithlonTV
;BEGIN Vim
Assign >Nil: Vim: Programmi:Utility/Editor/vim
Path Vim:Vim71 add
;END Vim
;Begin iSpell
Assign Ispell: Programmi:Varie/ispell-3.2.06-arexx
Path add Ispell:c
;End iSpell
;BEGIN FryingPan
Assign ADD Libs: Programmi:Utility/FryingPan/Libs
;END FryingPan
;BEGIN DUDemo
assign DUDemo: "Programmi:Varie/DUDemo"
;END DUDemo
;Assegnazione JPEGTMP
Assign JPEGTMP: Ram:
;END JPEGTMP
;BEGIN AmigaNetCenter
assign samba: Programmi:Utility/AmigaNetCenter
path samba: add
path samba:bin add
;run >nil: AmigaNB
;END AmigaNetCenter
;BEGIN MUIbase
if exists "Programmi:Utility/Ufficio/MUIbase"
assign MUIbase: "Programmi:Utility/Ufficio/MUIbase" DEFER
endif
;END MUIbase
;Begin Real3D
Assign R3D2: Programmi:Grafica/Real3DV3
Assign R3D3: Programmi:Grafica/Real3DV3
;END Real3D
;Begin Lightwave3D
Assign TOASTER: Programmi:grafica/Lightwave3D
Assign REXX: Programmi:grafica/Lightwave3D/AREXX ADD
Assign 3D: Programmi:grafica/lightwave3D
Assign HIIP: Programmi:grafica/lightwave3D/Hiip_Support
;Begin Gnash
assign Gnash: Programmi:Internet/Gnash
;Begin Antiword
Assign ANTIWORD: SYS:Extra
;BEGIN 3DStars
assign 3DStars: "Programmi:Varie/3DStars"
;END 3DStars
;BEGIN AAMP
assign AAMP: "Programmi:AAMP"
path AAMP:Common/bin ADD
;END AAMP
;BEGIN QT v.4.7
assign Qt: Programmi:Qt-4.7
path Qt:bin ADD
assign sobjs: sys:sobjs
assign sobjs: Qt:lib ADD
;END QT

;BEGIN Cygnix
assign Cygnix: "OS4:AmiCygnix"
execute Cygnix:s/Cygnix-Startup
;END Cygnix
;BEGIN ODBC: assign creation
ASSIGN ODBC: Programmi:iODBC
;END ODBC: assign creation

Startupsequence:

; $VER: Startup-Sequence 53.1 (08.04.2009)
C:SetPatch QUIET

FailAt 21

C:Version >NIL:
SetEnv Workbench $Workbench
SetEnv Kickstart $Kickstart
UnSet Workbench
UnSet Kickstart

C:MakeDir RAM:T RAM:Clipboards

C:Assign >NIL: T: RAM:T
C:Assign >NIL: CLIPS: RAM:Clipboards
C:Assign >NIL: KEYMAPS: DEVS:KeyMaps
C:Assign >NIL: PRINTERS: DEVS:Printers
C:Assign >NIL: REXX: S:ARexx
C:Assign >NIL: HELP: LOCALE:Help DEFER
C:Assign >NIL: AMISSL: DEVS:AmiSSL DEFER
C:Assign >NIL: GHOSTSCRIPT: SYS:Utilities/GhostScript DEFER
C:Assign >NIL: PYTHON: SYS:System/Python

C:LoadMonDrvs
C:AddDataTypes REFRESH QUIET
C:IPrefs


C:USBCtrl START
C:Mount QUIET DEVS:DOSDrivers/~(#?.info)
C:RUN > NIL: AddNetInterface QUIET DEVS:NetInterfaces/~(#?.info)

Path RAM: C: S:Shell S:ARexx SYS:Utilities SYS:Utilities/Commodities SYS:System SYS:Prefs

C:ConClip
SYS:System/RexxMast >NIL:

If EXISTS S:User-Startup
Execute S:User-Startup
EndIf

C:LoadWB
; BEGIN AMC Scheduler --------------------------
; AMC is intalled in --> Programmi:Grafica/AMC
;Run >NIL: Programmi:Grafica/AMC/Utilities/Scheduler
; END AMC Scheduler --------------------------

Run >NIL: *>NIL: C:SoundPlayer QUIET

EndCLI >NIL:
User avatar
Slayer
Beta Tester
Beta Tester
Posts: 851
Joined: Tue Dec 21, 2010 4:19 am
Location: New Zealand

Re: Problems with SATA

Post by Slayer »

Just for future if you're going to post lists or similair use hidden or similair

If you get a thread with too many lists it's alot of scrolling and lists are for reference anyway :)

It almost sounds like it needs to wake up a harddrive (what happens sometimes when I haven't accessed an external usb drive for a while)

can you use idetool -l in a shell

on your native device (I can't recall it) and this sii3112sata.device and put the information up? Just want to see what mode your harddrives are running in etc

and also type nvgetvar and put that output up

hope that all makes sense, in a little rush
~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
User avatar
Ghillo
Posts: 24
Joined: Sat Jun 18, 2011 12:08 am
Location: Italia

Re: Problems with SATA

Post by Ghillo »

My Bios setup:
Hidden Text - Click to Show :
bootcmd=menu; run menuboot_cmd
baudrate=115200
preboot=
stdout=vga
stdin=ps2kbd
ide_doreset=on
ide_cd_timeout=30
menucmd=menu
bootmethod=boota
ethact=3Com 3c920c#0
video_activate=agp
ethaddr=00:09:D2:11:00:DD
ipaddr=<unset>
serverip=<unset>
ide=sii
sil_xfer=G0DC
pci_irqa=9
pci_irqa_select=level
pci_irqb=10
pci_irqb_select=level
pci_irqc=11
pci_irqc_select=level
pci_irqd=7
pci_irqd_select=level
agp_enable=on
agp_sideband=off
agp_speed=2x
linux=diskboot 500000 0:1 0
bootdelay=2
sii0680ide_xfer=0000
serial1_address=3f8
serial2_address=2f8
parallel_mode=2
parallel_address=378
usb0_enable=on
usb1_enable=on
usb_use_header=0
ide_maxbus=2
ide_swap=0
boot3=floppy
boot_config=Default
boota_timeout=3
bootdevice=0:1
boot_command=diskboot
boot_method=boota
menuboot_delay=3
os4_commandline=debuglevel=0
bootargs=root=/dev/hda3 video=radeon:1024x768-8@70 l2cr=0x80000000 hdc=ide-scsi
use_memory_limit=no
boot1=cdrom
a1ide_xfer=FCFC
menuboot_cmd=
video_num=1
a1ide_conf=1212
sii3112ide_conf=1
limit_memory=1024
boot2=ssii
sii3112ide_xfer=G0
16.OS4:> idetool -l sii3112ide.device
-------------------Unit 0 information------------------------
Flags : $000001A7 - present, LBA48 used, supports DMA, ATA, supports acoustic mgmt, supports cache flush, interrupts used,
Xfer mode : best pio 12 (PIO 4, 16 MB/s) / best dma 70 (UDMA 6, 133 MB/s) / current 70 (UDMA 6, 133 MB/s)
Total blocks : 488397168
Blocksize : 512
Power mode : 2 / idle (ready for operation)
IO1 / IO2 / BMCR @ : $802400 / $80240A / $802420

16.OS4:> idetool -l a1ide.device
-------------------Unit 0 information------------------------
Flags : $00000187 - present, LBA48 used, supports DMA, ATA, supports cache flush, interrupts used,
Xfer mode : best pio 12 (PIO 4, 16 MB/s) / best dma 69 (UDMA 5, 100 MB/s) / current 69 (UDMA 5, 100 MB/s)
Total blocks : 312581808
Blocksize : 512
Power mode : 2 / idle (ready for operation)
IO1 / IO2 / BMCR @ : $1F0 / $3F6 / $CC00
-------------------Unit 1 information------------------------
Flags : $0000011D - present, supports DMA, removable media, ATAPI, interrupts used,
Xfer mode : best pio 12 (PIO 4, 16 MB/s) / best dma 66 (UDMA 2, 33 MB/s) / current 66 (UDMA 2, 33 MB/s)
Total blocks : 0
Blocksize : 2048
SCSI devtyp : 5
Packet size : 12
Current medium read speed : x 65535 ('65535' stands for max.)
Current medium write speed : x 65535 (idem)
Power mode : 2 / idle (ready for operation)
IO1 / IO2 / BMCR @ : $1F0 / $3F6 / $CC00
-------------------Unit 2 information------------------------
Flags : $000001A5 - present, supports DMA, ATA, supports acoustic mgmt, supports cache flush, interrupts used,
Xfer mode : best pio 12 (PIO 4, 16 MB/s) / best dma 69 (UDMA 5, 100 MB/s) / current 69 (UDMA 5, 100 MB/s)
Total blocks : 78177792
Blocksize : 512
Power mode : 2 / idle (ready for operation)
IO1 / IO2 / BMCR @ : $170 / $376 / $CC08
-------------------Unit 3 information------------------------
Flags : $0000011D - present, supports DMA, removable media, ATAPI, interrupts used,
Xfer mode : best pio 12 (PIO 4, 16 MB/s) / best dma 68 (UDMA 4, 66 MB/s) / current 66 (UDMA 2, 33 MB/s)
Total blocks : 0
Blocksize : 0
SCSI devtyp : 5
Packet size : 12
Current medium read speed : x 65535 ('65535' stands for max.)
Current medium write speed : x 65535 (idem)
Power mode : 2 / idle (ready for operation)
IO1 / IO2 / BMCR @ : $170 / $376 / $CC08
User avatar
Slayer
Beta Tester
Beta Tester
Posts: 851
Joined: Tue Dec 21, 2010 4:19 am
Location: New Zealand

Re: Problems with SATA

Post by Slayer »

Thanks for that

ok, can we try this please?

Type in a shell and return:
NVSetVar a1ide_xfer E0E0

and
NVSetVar sii3112ide_xfer F

and to tidy up what isn't installed
NVSetVar sii0680ide_xfer
and
NVSetVar sil_xfer

Please test out the system with these settings and let us know

I know it's more digging but if nothing is revealing here please tell us
what buffers are assigned to your HD partitions and the maxtransfer values.
(and please don't worry about the new settings - although slightly more conservative
they are considered rather more stable, secure and recommended for
earlier hardware - especially for the atapi drives that arguably shouldn't be
operating in UDMA)
~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
User avatar
Ghillo
Posts: 24
Joined: Sat Jun 18, 2011 12:08 am
Location: Italia

Re: Problems with SATA

Post by Ghillo »

I forgot to say that this problem is very often while I listen to mp3. I tried to set as I've said and the situation seems improved also listening to music with tunenet but the system is noticeably more 'slow in loading, and without setting the UDMA optical drives for the DVD shoot.
Instead of the hard drive settings are these:

Primary Master:
JXFS\04 512 Block - Buffer 1000 - MaxTrans 7FFFFFFF - Mask 7FFFFFFF
DOS\03 2048 Block - Buffer 500 - MaxTrans FFFFFFF - Mask 7FFFFFFF

Secondary Master
EXT\03 512 Block - Buffer 1000 - MaxTransfer FFFFFFF - Mask FFFFFFFE

Sil3112:
SFS\00 (AmigaOS4.1.4) 512 Block - Buffer 1000 - MaxTrans 7FFFFFFF - Mask FFFFFFFE
JXFS\04 512 Block - Buffer 1000 - Maxtrans 7FFFFFFF - Mask 7FFFFFFF
SWAP 4096 Block - Buffer 600 - MaxTrans 7FFFFFFF - Mask FFFFFFFE
LNX\00 512 Block - Buffer 500 -MaxTrans 7FFFFFFF - Mask FFFFFFFE
SWP\00 512 Block - Buffer 500 - MaxTrans 7FFFFFFF -Mask FFFFFFFE
User avatar
Slayer
Beta Tester
Beta Tester
Posts: 851
Joined: Tue Dec 21, 2010 4:19 am
Location: New Zealand

Re: Problems with SATA

Post by Slayer »

Try adding

NVSetVar sii3112ide_maxbus 1
NVSetVar sii3112ide_irq 0

Anything?

If not try this too

NVSetVar a1ide_irq 0000

Anything?

Add this if all else fails ;)

Change all your partitions to use 16MB Scsi Transfer Speed (don't use max avaiable - When set to max transfer speed there were many cases were the older hardware couldn't cope - this could be compounding another problem if not the problem)

Might as well set all your partitions to also use 32bit aligned memory pools too

Anything?
~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
User avatar
Ghillo
Posts: 24
Joined: Sat Jun 18, 2011 12:08 am
Location: Italia

Re: Problems with SATA

Post by Ghillo »

Excuse my question, but set the IRQ to 0 of PATA and SATA ports vai thing to change?
I would not create problems and to go back to what I have to set the irq?
User avatar
Slayer
Beta Tester
Beta Tester
Posts: 851
Joined: Tue Dec 21, 2010 4:19 am
Location: New Zealand

Re: Problems with SATA

Post by Slayer »

If I understand you correctly you're asking if it's okay to reverse it (especially if it doesn't make any difference?)? Yes, just use 1 to turn interrupts back on, any other character turns it off, I just used 0
~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
Post Reply