public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sis650/5513 in 2.4.19 (still broken for 650)
@ 2002-11-18 22:24 Silvio Cesare
  2002-11-19 10:58 ` Lionel Bouton
  0 siblings, 1 reply; 2+ messages in thread
From: Silvio Cesare @ 2002-11-18 22:24 UTC (permalink / raw)
  To: linux-kernel

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

Attachment.

--
Silvio

[-- Attachment #2: sis650 --]
[-- Type: text/plain, Size: 8852 bytes --]

No fixes here.. just reports for anyone interested :(

1) sis650/5513 chipset does not work with UDMA - this was reported a while
   ago, and also reported fixed.. but I don't think its been tested on a
   sis650 specifically, which (for me) appears still broken (fs
   corruptions etc).

   this was reported fixed in 2.4.19; i took a 2.4.18 kernel, and replaced
   drivers/ide/sis5513.c (theres some includes also, but perhaps not
   important).  this came up with the same problems as 2.4.18.

   2.4.18 incidentally has a function #if 0, at the end of sis5513.c,
   which I had to make #if 1 (remove) to get a compile (there appears to be
   no other declaration of this code in the tree) - this has probably
   been noticed a long time ago I imagine (?).

   for the UDMA issues, recompiling with -->

#define BROKEN_LEVEL XFER_SW_DMA_0

   gets it up and running again (ie, without UDMA).

   incidentally.. the sis 0.13 code by the maintainers have patches
   against 2.4.18 which break when you run it with #define DEBUG, as
   some var names have been slightly modified.

2) External floppy drive via USB not 100% working..  No idea on this one;
   I've included very small snippets of bootup messages, but it's no
   major drama currently (works for the most part), so I don't really
   expect anyone to look at this (especially with the minimal info
   I've provided here) :)

For the sis650, maybe (?) the following will help -->
[ I've no real clue how useful or non useful this is, but maybe its
  worth a look for the current development ]

Nov 18 15:57:19 localhost kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Nov 18 15:57:19 localhost kernel: SIS5513: IDE controller on PCI bus 00 dev 15
Nov 18 15:57:19 localhost kernel: SIS5513: chipset revision 208
Nov 18 15:57:19 localhost kernel: SIS5513: not 100%% native mode: will probe irqs later
Nov 18 15:57:19 localhost kernel: SiS650    ATA 100 controller
Nov 18 15:57:19 localhost kernel: SIS5513 pci_init_sis5513 start
Nov 18 15:57:19 localhost kernel: SIS5513 dump:
Nov 18 15:57:19 localhost kernel:               0x0:0x39 0x1:0x10 0x2:0x13 0x3:0x55 0x4:0x5 0x5:0x0 0x6:0x0 0x7:0x0 0x8:0xd0 0x9:0x80 0xa:0x1 0xb:0x1 0xc:0x0 0xd:0x80 0xe:0x80 0xf:0x0
Nov 18 15:57:19 localhost kernel:               0x10:0x0 0x11:0x0 0x12:0x0 0x13:0x0 0x14:0x0 0x15:0x0 0x16:0x0 0x17:0x0 0x18:0x0 0x19:0x0 0x1a:0x0 0x1b:0x0 0x1c:0x0 0x1d:0x0 0x1e:0x0 0x1f:0x0
Nov 18 15:57:19 localhost kernel:               0x20:0x1 0x21:0xff 0x22:0x0 0x23:0x0 0x24:0x0 0x25:0x0 0x26:0x0 0x27:0x0 0x28:0x0 0x29:0x0 0x2a:0x0 0x2b:0x0 0x2c:0x39 0x2d:0x10 0x2e:0x13 0x2f:0x55
Nov 18 15:57:19 localhost kernel:               0x30:0x0 0x31:0x0 0x32:0x0 0x33:0x0 0x34:0x0 0x35:0x0 0x36:0x0 0x37:0x0 0x38:0x0 0x39:0x0 0x3a:0x0 0x3b:0x0 0x3c:0x0 0x3d:0x0 0x3e:0x0 0x3f:0x0
Nov 18 15:57:19 localhost kernel:               0x40:0x31 0x41:0x81 0x42:0x0 0x43:0x0 0x44:0x31 0x45:0x85 0x46:0x0 0x47:0x0 0x48:0xf8 0x49:0x1 0x4a:0xe6 0x4b:0x11 0x4c:0x0 0x4d:0x2 0x4e:0x0 0x4f:0x2 0x50:0x1 0x51:0x0 0x52:0x1 0x53:0x6 0x54:0x0 0x55:0x0 0x56:0x0 0x57:0x0
Nov 18 15:57:19 localhost kernel: SIS5513: pci_init_sis5513 end, changed registers:
Nov 18 15:57:19 localhost kernel: none
Nov 18 15:57:19 localhost kernel:     ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:DMA
Nov 18 15:57:19 localhost kernel:     ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA
Nov 18 15:57:19 localhost kernel: hda: IC25N040ATCS04-0, ATA DISK drive
Nov 18 15:57:19 localhost kernel: hdc: QSI CD-RW/DVD-ROM SBW-081, ATAPI CD/DVD-ROM drive
Nov 18 15:57:19 localhost kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Nov 18 15:57:19 localhost nfslock: rpc.statd startup succeeded
Nov 18 15:57:19 localhost kernel: ide1 at 0x170-0x177,0x376 on irq 15
Nov 18 15:57:19 localhost kernel: SIS5513: config_drive_art_rwp, drive 0
Nov 18 15:57:19 localhost kernel: SIS5513: config_drive_art_rwp start, changed registers:
Nov 18 15:57:19 localhost rpc.statd[672]: Version 1.0.1 Starting
Nov 18 15:57:19 localhost kernel: none
Nov 18 15:57:19 localhost kernel: SIS5513: config_drive_art_rwp end, changed registers:
Nov 18 15:57:19 localhost kernel: none
Nov 18 15:57:19 localhost keytable: Loading keymap:
Nov 18 15:57:19 localhost kernel: SIS5513: config_drive_art_rwp_pio start, changed registers:
Nov 18 15:57:19 localhost kernel: none
Nov 18 15:57:19 localhost keytable:
Nov 18 15:57:19 localhost kernel: SIS5513: config_drive_art_rwp, drive 0
Nov 18 15:57:19 localhost keytable:
Nov 18 15:57:19 localhost kernel: SIS5513: config_drive_art_rwp start, changed registers:
Nov 18 15:57:19 localhost kernel: none
Nov 18 15:57:19 localhost rc: Starting keytable:  succeeded
Nov 18 15:57:19 localhost kernel: SIS5513: config_drive_art_rwp end, changed registers:
Nov 18 15:57:19 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp_pio, drive 0, pio 4, timing 4
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp_pio start, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp_pio start, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp, drive 0
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp start, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp end, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp_pio, drive 0, pio 4, timing 4
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp_pio start, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: config_chipset_for_dma, drive 0, ultra 3f, udma_66 0
Nov 18 15:57:20 localhost kernel: SIS5513: sis5513_tune_chipset start, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: sis5513_tune_chipset, drive 0, speed
66
Nov 18 15:57:20 localhost kernel: SIS5513: BROKEN_LEVEL activated, speed=66 -> speed=16
Nov 18 15:57:20 localhost kernel: SIS5513: sis5513_tune_chipset end, changed registers:
Nov 18 15:57:20 localhost random: Initializing random number generator:  succeeded
Nov 18 15:57:20 localhost kernel: 0x41: 0x81 -> 0x1
Nov 18 15:57:20 localhost kernel: hda: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
Nov 18 15:57:20 localhost kernel: hda: set_drive_speed_status: error=0x04 { DriveStatusError }
Nov 18 15:57:20 localhost kernel: SIS5513: config_chipset_for_dma, drive 0, ultra 3f, udma_66 0
Nov 18 15:57:20 localhost kernel: SIS5513: sis5513_tune_chipset start, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: sis5513_tune_chipset, drive 0, speed
34
Nov 18 15:57:20 localhost kernel: SIS5513: BROKEN_LEVEL activated, speed=34 -> speed=16
Nov 18 15:57:20 localhost kernel: SIS5513: sis5513_tune_chipset end, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: hda: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
Nov 18 15:57:20 localhost kernel: hda: set_drive_speed_status: error=0x04 { DriveStatusError }
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp_pio start, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp, drive 0
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp start, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp end, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp_pio, drive 0, pio 4, timing 4
Nov 18 15:57:20 localhost kernel: SIS5513: config_drive_art_rwp_pio start, changed registers:
Nov 18 15:57:20 localhost kernel: none
Nov 18 15:57:20 localhost kernel: hda: 78140160 sectors (40008 MB) w/1768KiB Cache, CHS=4864/255/63

-- some logs probably not relevant (re floppy), but oh well..

Nov 18 15:57:20 localhost kernel: usb.c: USB device 2 (vend/prod 0x3ee/0x6901) is not claimed by any active driver.
Nov 18 15:57:20 localhost kernel: SCSI subsystem driver Revision: 1.00
Nov 18 15:57:20 localhost kernel: Initializing USB Mass Storage driver...
Nov 18 15:57:20 localhost kernel: usb.c: registered new driver usb-storage
Nov 18 15:57:20 localhost kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Nov 18 15:57:20 localhost kernel:   Vendor: MITSUMI   Model: USB FDD           Rev: 1039
Nov 18 15:57:20 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 18 15:57:20 localhost kernel: USB Mass Storage support registered.

--
Silvio

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sis650/5513 in 2.4.19 (still broken for 650)
  2002-11-18 22:24 sis650/5513 in 2.4.19 (still broken for 650) Silvio Cesare
@ 2002-11-19 10:58 ` Lionel Bouton
  0 siblings, 0 replies; 2+ messages in thread
From: Lionel Bouton @ 2002-11-19 10:58 UTC (permalink / raw)
  To: Silvio Cesare; +Cc: linux-kernel

On mar, nov 19, 2002 at 09:24:01 +1100, Silvio Cesare wrote:
> Attachment.
> 
> --
> Silvio

> No fixes here.. just reports for anyone interested :(
> 
> 1) sis650/5513 chipset does not work with UDMA - this was reported a while
>    ago, and also reported fixed.. but I don't think its been tested on a
>    sis650 specifically, which (for me) appears still broken (fs
>    corruptions etc).
> 

This is fixed in AC tree.

>    this was reported fixed in 2.4.19; i took a 2.4.18 kernel, and replaced
>    drivers/ide/sis5513.c (theres some includes also, but perhaps not
>    important).  this came up with the same problems as 2.4.18.
>

The driver in 2.4.19-pre broke latest SiS chipsets in DMA modes. Some 650
were affected -> to be safe DMA was disabled for all of them.
Stock 2.4.19 should not fail but only disable DMA, could you confirm this ?

>    2.4.18 incidentally has a function #if 0, at the end of sis5513.c,
>    which I had to make #if 1 (remove) to get a compile (there appears to be
>    no other declaration of this code in the tree) - this has probably
>    been noticed a long time ago I imagine (?).
> 

IIRC this #ifdef is only for compatibility purpose between different IDE
framework versions.

>    for the UDMA issues, recompiling with -->
> 
> #define BROKEN_LEVEL XFER_SW_DMA_0
> 
>    gets it up and running again (ie, without UDMA).
> 
>    incidentally.. the sis 0.13 code by the maintainers have patches
>    against 2.4.18 which break when you run it with #define DEBUG, as
>    some var names have been slightly modified.

?! Could you please try the AC tree with #define DEBUG and report the result
to me ?

> 2) External floppy drive via USB not 100% working..  No idea on this one;
>    I've included very small snippets of bootup messages, but it's no
>    major drama currently (works for the most part), so I don't really
>    expect anyone to look at this (especially with the minimal info
>    I've provided here) :)

Won't be of much help here anyway :-)

> For the sis650, maybe (?) the following will help -->
> [ I've no real clue how useful or non useful this is, but maybe its
>   worth a look for the current development ]

The dump is rather usefull, especially if I know your BIOS config.
Here I assume that each controller is enabled and DMA activated for hda and
hdc, am I right ?

Happy AC compile :-)

LB.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-19 10:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-18 22:24 sis650/5513 in 2.4.19 (still broken for 650) Silvio Cesare
2002-11-19 10:58 ` Lionel Bouton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox