From mboxrd@z Thu Jan 1 00:00:00 1970 From: MATSUBAYASHI 'Shaolin' Kohji Subject: Re: ata_piix on MacBook4,1: fail to startup in a certain situation Date: Wed, 28 May 2008 18:21:16 +0900 Message-ID: <20080528092117.4A5177080E8@m04-blue.in.shared-server.net> References: <20080528075106.F2C3D29C127@m02-blue.in.shared-server.net> <20080528075747.A18A5114160@m03-blue.in.shared-server.net> <483D1429.3080804@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - =?ISO-2022-JP?B?IhskQjRdGyhC?= =?ISO-2022-JP?B?GyRCMiwbKEIi?=) Content-Type: text/plain; charset=US-ASCII Return-path: Received: from gw.shared-server.net ([211.13.204.1]:51945 "EHLO relay.shared-server.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754179AbYE1JqZ (ORCPT ); Wed, 28 May 2008 05:46:25 -0400 In-Reply-To: <483D1429.3080804@gmail.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Tejun Heo Cc: linux-ide@vger.kernel.org At Wed, 28 May 2008 17:13:29 +0900, Tejun Heo wrote: > > Please post the result of "lspci -nnvvv". Thanks. Thanks, I have attached the lspci -nnvvv output far below: > > At Wed, 28 May 2008 16:51:05 +0900, > > MATSUBAYASHI 'Shaolin' Kohji wrote: > >> > >> Hi, I've been running 2.6.25 kernel with the patch you posted > >> (cb6716c879ecf49e2af344926c6a476821812061) on newest MacBook4,1 > >> and works very fine except a certain situation. > >> > >> > >> The case I could reproduced is as follows: > >> > >> (1) boot kernel 2.6.25 w/ your patch (or 2.6.25.4 which already > >> includes your patch), WITH AC ADAPTER PLUGGED > >> (2) before executing "reboot", UNPLUG AC ADAPTER > >> (3) then execute "reboot" > >> (4) system reboots, but stops booting with the following messages: > >> ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ] > >> (5) then if I plug the AC adapter, system likely to continue booting > >> with the following message: > >> ata_piix 0000:00:1f.2: SCR access via SIDPR is available but doesn't work > >> (5a) sometimes system still keep stopping even though I plug the AC adapter > >> > >> > >> By inserting many printk() functions on ata_piix.c, > >> I confirmed the pause (between 4 and 5) occurs just before > >> the following line: > >> > >> /* SCR access via SIDPR doesn't work on some configurations. > >> * Give it a test drive by inhibiting power save modes which > >> * we'll do anyway. > >> */ > >> scontrol = piix_sidpr_read(dev0, SCR_CONTROL); > >> > >> > >> I also confirmed that the following: > >> > > > > (2a) before executing "poweroff", KEEP AC ADAPTER PLUGGED > > (3a) then execute "poweroff" > > (3b) system shuts down, then I UNPLUG AC ADAPTER > > (4a) press power button to boot, and sometimes stops booting like > > the above (4) and sometimes booting fine without any problems $ sudo /sbin/lspci -nnvvv 00:00.0 Host bridge [0600]: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub [8086:2a00] (rev 03) Subsystem: Apple Computer Inc. Unknown device [106b:00a1] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- Reset- FastB2B- Capabilities: [40] Express Root Port (Slot+) IRQ 0 Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag- Device: Latency L0s unlimited, L1 unlimited Device: Errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+ Device: RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- Device: MaxPayload 128 bytes, MaxReadReq 128 bytes Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s L1, Port 1 Link: Latency L0s <1us, L1 <4us Link: ASPM Disabled RCB 64 bytes CommClk- ExtSynch- Link: Speed 2.5Gb/s, Width x0 Slot: AtnBtn- PwrCtrl- MRL- AtnInd- PwrInd- HotPlug+ Surpise+ Slot: Number 0, PowerLimit 6.500000 Slot: Enabled AtnBtn- PwrFlt- MRL- PresDet- CmdCplt- HPIrq- Slot: AttnInd Unknown, PwrInd Unknown, Power- Root: Correctable- Non-Fatal- Fatal- PME- Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable- Address: 00000000 Data: 0000 Capabilities: [90] Subsystem: Gammagraphx, Inc. Unknown device [0000:0000] Capabilities: [a0] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:1c.4 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 [8086:2847] (rev 03) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- Reset- FastB2B- Capabilities: [40] Express Root Port (Slot+) IRQ 0 Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag- Device: Latency L0s unlimited, L1 unlimited Device: Errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+ Device: RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- Device: MaxPayload 128 bytes, MaxReadReq 128 bytes Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s L1, Port 5 Link: Latency L0s <256ns, L1 <4us Link: ASPM L1 Enabled RCB 64 bytes CommClk+ ExtSynch- Link: Speed 2.5Gb/s, Width x1 Slot: AtnBtn- PwrCtrl- MRL- AtnInd- PwrInd- HotPlug+ Surpise+ Slot: Number 4, PowerLimit 6.500000 Slot: Enabled AtnBtn- PwrFlt- MRL- PresDet- CmdCplt- HPIrq- Slot: AttnInd Unknown, PwrInd Unknown, Power- Root: Correctable- Non-Fatal- Fatal- PME- Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable- Address: 00000000 Data: 0000 Capabilities: [90] Subsystem: Gammagraphx, Inc. Unknown device [0000:0000] Capabilities: [a0] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:1c.5 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 [8086:2849] (rev 03) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- Reset- FastB2B- Capabilities: [40] Express Root Port (Slot+) IRQ 0 Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag- Device: Latency L0s unlimited, L1 unlimited Device: Errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+ Device: RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- Device: MaxPayload 128 bytes, MaxReadReq 128 bytes Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s L1, Port 6 Link: Latency L0s <256ns, L1 <4us Link: ASPM L1 Enabled RCB 64 bytes CommClk+ ExtSynch- Link: Speed 2.5Gb/s, Width x1 Slot: AtnBtn- PwrCtrl- MRL- AtnInd- PwrInd- HotPlug+ Surpise+ Slot: Number 5, PowerLimit 6.500000 Slot: Enabled AtnBtn- PwrFlt- MRL- PresDet- CmdCplt- HPIrq- Slot: AttnInd Unknown, PwrInd Unknown, Power- Root: Correctable- Non-Fatal- Fatal- PME- Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable- Address: 00000000 Data: 0000 Capabilities: [90] Subsystem: Gammagraphx, Inc. Unknown device [0000:0000] Capabilities: [a0] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:1d.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 [8086:2830] (rev 03) (prog-if 00 [UHCI]) Subsystem: Apple Computer Inc. Unknown device [106b:00a1] Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- Reset- FastB2B- Capabilities: [50] Subsystem: Gammagraphx, Inc. Unknown device [0000:0000] 00:1f.0 ISA bridge [0601]: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller [8086:2815] (rev 03) Subsystem: Apple Computer Inc. Unknown device [106b:00a1] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-