Subject: [linux-sunxi] Re: [PATCH RFC v4 00/10] ahci: library-ise ahci_platform, add sunxi driver and cleanup imx driver

From: [email-masked] (Hans de Goede)
Date: Tue, 21 Jan 2014 08:58:04 +0100

Hi,

On 01/20/2014 08:53 PM, Ezaul Zillmer wrote:
> hi Hans
>
> First wanted to thank his work with sunxi ... as they say here in Brazil you're the guy !
>
> I noticed the following after your upgrade .. 01/20/2014 my ATA does not look rose more !
> # # # # Here before UP ! # # # # #
>
> Image Name : Linux - 3.13.0 - rc7
>
> [ 1.150317 ] 8021Q : 802.1Q VLAN Support v1.8
> [ 1.154585 ] Key type dns_resolver registered
> [ 1.159130 ] Registering SWP / SWPB emulation handler
> [ 1.165146 ] ahci - 5v : 5000 mV
> [ 1.168509 ] usb1 - VBUS : 5000 mV
> [ 1.172082 ] usb2 - VBUS : 5000 mV
> [ 1.200799 ] ahci sunxi - 1c18000.ahci : controller can not do PMP , turning off CAP_PMP
> [ 1.208303 ] sunxi 1c18000.ahci - ahci : forcing PORTS_IMPL to 0x1
> [ 1.214179 ] sunxi 1c18000.ahci - ahci : AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl sunxi mode
> [ 1.222903 ] sunxi 1c18000.ahci - ahci : flags : NCQ SNTF pm led clo pio slum part ccc only
> [ 1.231594 ] scsi0 : sunxi_ahci
> [ 1.234955 ] ATA1 : SATA max UDMA/133 irq 88
> [ 1.239639 ] ehci - sunxi 1c14000.ehci0 : EHCI Host Controller
> [ 1.245171 ] ehci - sunxi 1c14000.ehci0 : new USB bus registered , assigned bus number 2
> [ 1.252978 ] ehci - sunxi 1c14000.ehci0 : irq 71 , io mem 0x01c14000
> [ 1.269124 ] ehci - sunxi 1c14000.ehci0 : USB 2.0 started , EHCI 1:00
> [ 1.275924 ] hub 2-0:1.0 : USB hub found
> [ 1.279773 ] hub 2-0:1.0 : 1 port detected
> [ 1.284455 ] ehci - sunxi 1c1c000.ehci1 : EHCI Host Controller
> [ 1.290026 ] ehci - sunxi 1c1c000.ehci1 : new USB bus registered , assigned bus number 3
> [ 1.297789 ] ehci - sunxi 1c1c000.ehci1 : irq 72 , io mem 0x01c1c000
> [ 1.319118 ] ehci - sunxi 1c1c000.ehci1 : USB 2.0 started , EHCI 1:00
> [ 1.325805 ] hub 3-0:1.0 : USB hub found
> [ 1.329639 ] hub 3-0:1.0 : 1 port detected
> [ 1.333894 ] rtc - sunxi 1c20d00.rtc : setting system clock to 1970-01-01 00:00:08 UTC ( 8 )
> [ 1.584180 ] mmc0 : new high speed SDHC card at address E624
> [ 1.590049 ] isa bounce pool size: 16 pages
> [ 1.594297 ] mmcblk0 : mmc0 : E624 SU08G 7:40 GiB
> [ 1.600605 ] mmcblk0 : p1
> [ 4.889135 ] ATA1 : SATA link up 3.0 Gbps ( sstatus 123 SControl 300 )
> [ 4.904967 ] ata1.00 : ATA - 8 : SAMSUNG HM320II , 2AC101C4 , max UDMA/133
> [ 4.911260 ] ata1.00 : 625142448 sectors , multi 0 : LBA48 NCQ (depth 31/32 )
> [ 4.927633 ] ata1.00 : configured for UDMA/133
> [ 4.932311 ] scsi 0:0:0:0 : Direct -Access ATA SAMSUNG HM320II 2AC1 PQ : 0 ANSI : 5
> [ 4.941156 ] sd 0:0:0:0 : [ sda ] 625142448 512 - byte logical blocks : ( 320 GB/298 GiB )
> [ 4.948875 ] sd 0:0:0:0 : [ sda ] Write Protect is off
> [ 4.953822 ] sd 0:0:0:0 : [ sda ] Write cache : enabled , read cache : enabled , does not support DPO or FUA
> [ 4.975349 ] sda : sda1
> [ 4.978721 ] sd 0:0:0:0 : [ sda ] Attached SCSI disk
> [ 5.000798 ] EXT4 - fs ( mmcblk0p1 ) : mounted filesystem with ordered data mode . Opts : ( null)
> [ 5.008962 ] VFS : Mounted root ( ext4 filesystem ) readonly on device 179:1 .
> [ 5.016841 ] devtmpfs : mounted
> [ 5.020432 ] Freeing unused kernel memory: 528k ( c0922000 - c09a6000 )
> INIT : version 2.88 booting
>
>
>
> # # # # NOW AFTER UP # # # # # # # # # # #
>
> Even . Config
> git pull
>
>
> [ 1.183099 ] ip6_tables : ( C ) 2000-2006 Netfilter Core Team
> [ 1.188522 ] sit : IPv6 over IPv4 tunneling driver
> [ 1.193777 ] NET : Registered protocol family 17
> [ 1.198369 ] Bridge firewalling registered
> [ 1.202495 ] l2tp_core : L2TP core driver , V2.0
> [ 1.206861 ] 8021Q : 802.1Q VLAN Support v1.8
> [ 1.210139 ] ATA1 : SATA link down ( sstatus 0 SControl 300 )
> [ 1.216491 ] lib80211 : common routines for IEEE802.11 drivers
> [ 1.222231 ] Key type dns_resolver registered
> [ 1.226770 ] Registering SWP / SWPB emulation handler
> [ 1.232696 ] ahci - 5v : 5000 mV
> [ 1.236057 ] usb1 - VBUS : 5000 mV
> [ 1.239504 ] usb2 - VBUS : 5000 mV
> [ 1.243904 ] rtc - sunxi 1c20d00.rtc : setting system clock to 1970-01-01 00:00:08 UTC ( 8 )
> [ 1.252615 ] Waiting for device / dev/mmcblk0p1 root ...
> [ 1.599045 ] mmc0 : new high speed SDHC card at address E624
> [ 1.604917 ] isa bounce pool size: 16 pages
> [ 1.609178 ] mmcblk0 : mmc0 : E624 SU08G 7:40 GiB
> [ 1.615470 ] mmcblk0 : p1
> [ 1.692426 ] EXT4 - fs ( mmcblk0p1 ) : INFO : recovery required on readonly filesystem
> [ 1.699757 ] EXT4 - fs ( mmcblk0p1 ) : write access will be enabled During recovery
> [ 2.423617 ] random: nonblocking pool is initialized
> [ 3.274181 ] EXT4 - fs ( mmcblk0p1 ) : recovery complete
> [ 3.286043 ] EXT4 - fs ( mmcblk0p1 ) : mounted filesystem with ordered data mode . Opts : ( null)
> [ 3.294229 ] VFS : Mounted root ( ext4 filesystem ) readonly on device 179:1 .
> [ 3.302179 ] devtmpfs : mounted
> [ 3.305714 ] Freeing unused kernel memory: 524K ( c0959000 - c09dc000 )
> INIT : version 2.88 booting
>
>
> What could it be? says Down !
> Copy your old uImage UP
> new uImage DOWN

Which kernel tree are you using ? Did you not only update the uImage but also the dtb? I'm not seeing
any ahci related messages at all in the new dmesg output, so it seems that either your dtb does not have
an ahci node (or not with the proper compatible= string), or sunxi-ahci is not build into your kernel.

Regards,

Hans