From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 16 Feb 2004 15:13:06 +0300 From: Sergey Vlasov To: ALT Linux kernel packages development Subject: Re: [d-kernel] =?koi8-r?B?7sXQz8zV3sHF1NPR?= =?koi8-r?B?INDPxM7R1Ngga2VybmVsINfF0tPJySAyLjQuMjItc3RkLXVwLWFsdDE1IM7B?= =?koi8-r?B?IM3B28nOxSDT?= SIS 5511/2/3 Message-ID: <20040216121306.GB7789@master.mivlgu.local> Mail-Followup-To: ALT Linux kernel packages development References: <402FE366.5070004@solin.spb.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QTprm0S8XgL7H0Dt" Content-Disposition: inline In-Reply-To: <402FE366.5070004@solin.spb.ru> X-BeenThere: devel-kernel@altlinux.ru X-Mailman-Version: 2.1.4 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2004 12:13:07 -0000 Archived-At: List-Archive: List-Post: --QTprm0S8XgL7H0Dt Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Mon, Feb 16, 2004 at 12:23:50AM +0300, Aleksey Avdeev wrote: > Не получается у меня поставить ядро 2.4.22-std-up-alt15 на > свой домашний старый пень (на чипсете SIS 5511/2/3). > > Судя по логу - проблемы с поднятием IDE (файл serial.txt в > аттаче). Помогите пожалуйста. [skip] > Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 > ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx > SIS5513: IDE controller at PCI slot 00:01.1 > SIS5513: chipset revision 8 > SIS5513: not 100% native mode: will probe irqs later > SIS5513: SiS551x ATA 16 controller > ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:pio, hdb:pio > SIS5513: simplex device: DMA disabled > ide1: SIS5513 Bus-Master DMA disabled (BIOS) > hda: QUANTUM FIREBALLP AS10.2, ATA DISK drive > hdc: Maxtor 6E030L0, ATA DISK drive > Unable to handle kernel NULL pointer dereference at virtual address 00000000 Похоже, эта ситуация должна лечиться патчем: --- kernel-source-2.4.22/drivers/ide/ide-iops.c.ide-oops 2003-06-13 18:51:33 +0400 +++ kernel-source-2.4.22/drivers/ide/ide-iops.c 2004-02-16 15:06:21 +0300 @@ -908,7 +908,8 @@ int ide_config_drive_speed (ide_drive_t // ide_delay_50ms(); #if defined(CONFIG_BLK_DEV_IDEDMA) && !defined(CONFIG_DMA_NONPCI) - hwif->ide_dma_host_off(drive); + if (hwif->ide_dma_check) + hwif->ide_dma_host_off(drive); #endif /* (CONFIG_BLK_DEV_IDEDMA) && !(CONFIG_DMA_NONPCI) */ /* @@ -976,10 +977,12 @@ int ide_config_drive_speed (ide_drive_t drive->id->dma_1word &= ~0x0F00; #if defined(CONFIG_BLK_DEV_IDEDMA) && !defined(CONFIG_DMA_NONPCI) - if (speed >= XFER_SW_DMA_0) - hwif->ide_dma_host_on(drive); - else - hwif->ide_dma_off_quietly(drive); + if (hwif->ide_dma_check) { + if (speed >= XFER_SW_DMA_0) + hwif->ide_dma_host_on(drive); + else + hwif->ide_dma_off_quietly(drive); + } #endif /* (CONFIG_BLK_DEV_IDEDMA) && !(CONFIG_DMA_NONPCI) */ switch(speed) { Почему-то это до сих пор сломано - видимо, контроллер слишком древний и мало у кого встречающийся. Ладно, будем чинить. --QTprm0S8XgL7H0Dt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAMLPSW82GfkQfsqIRAtwJAJ9CVj9HewJ/CJhrgRiDxyuq5dUhQwCdEHNX SsOtNQtGZGsXiMr88pWxeM8= =Ydgh -----END PGP SIGNATURE----- --QTprm0S8XgL7H0Dt--