From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?J=F6rg?= Sommer Subject: Re: DMA doesn't work since "make ata port as parent device of scsi host" Date: Thu, 15 Mar 2012 16:59:25 +0100 Message-ID: <20120315155924.GA6738@alea.gnuu.de> References: <20120315014807.GA3051@alea.gnuu.de> <1331776741.3436.33.camel@minggr> <1331781968.3436.43.camel@minggr> <20120315074835.GA18295@alea.gnuu.de> <1331799598.3436.46.camel@minggr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Return-path: Received: from uucp.gnuu.de ([83.246.114.63]:3007 "EHLO uucp.gnuu.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031483Ab2COP77 (ORCPT ); Thu, 15 Mar 2012 11:59:59 -0400 Content-Disposition: inline In-Reply-To: <1331799598.3436.46.camel@minggr> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Lin Ming Cc: Jeff Garzik , Tejun Heo , linux-ide@vger.kernel.org --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Lin Ming hat am Thu 15. Mar, 16:19 (+0800) geschrieben: > On Thu, 2012-03-15 at 08:48 +0100, J=C3=B6rg Sommer wrote: > > Lin Ming hat am Thu 15. Mar, 11:26 (+0800) geschrieben: > > > On Thu, 2012-03-15 at 09:59 +0800, Lin Ming wrote: > > > > On Thu, 2012-03-15 at 02:48 +0100, J=C3=B6rg Sommer wrote: > > > > > Hi, > > > > >=20 > > > > > I'm getting these messages in a KVM virtualized host and the acce= ss to > > > > > the disks is very slow. Using libata.dma=3D0 suppresses the warni= ngs, but > > > > > the disks are still slow. > > > >=20 > > > > Hi J=C3=B6rg, > > > >=20 > > > > Let me try to reproduce this issue first. > > >=20 > > > I tried below commands on x86_32, but can't reproduce it. > > >=20 > > > qemu-system-i386 -kernel /root/vmlinuz-3.3.0-rc7 -append "root=3D/dev= /sda1 > > > zcache" -hda /root/debian-32.img -hdb /root/data.img > > >=20 > > > Maybe because i386 uses different ata controller than ppc(ata_piix vs > > > pata-macio). > > >=20 > > > I'll try qemu-system-ppc. > > >=20 > > > Did you need to run some workload to trigger these warings? > > > Or did you get these warnings right after booting the VM? > >=20 > > These warnings come up before =C2=BBINIT started=C2=AB. I don't have to= do > > anything, just wait and see. > >=20 > > # truncate -s100M /mnt/data/new > > # mke2fs -Fq /mnt/data/new > > # mount -o loop /mnt/data/new /mnt/other > > # cp --parents /bin/zsh-static /mnt/other/zsh > > # umount /mnt/other > > # qemu-system-ppc -enable-kvm -M mac99 -cpu G4 -k de -kernel /boot/vmli= nuz-3.3.0-rc5-04520-g8d233c0 -append 'root=3D/dev/sda ro console=3DttyPZ0 i= nit=3D/zsh' -hda /mnt/data/new > >=20 > > I've uploaded my config and the kernel: > > http://alioth.debian.org/~jo-guest/config-3.3.0-rc5-04520-g8d233c0 > > http://alioth.debian.org/~jo-guest/vmlinuz-3.3.0-rc5-04520-g8d233c0 > >=20 > > You have to switch to the serial console (Ctrl-Alt-3 or with -nographic > > Ctrl-a c). All kernel messages arrive there. > >=20 > > > Would you please try to disable ata port runtime pm? > > > You can disable it by, for example, > >=20 > > Is this also possible with a kernel parameter? It takes very long until= I > > get a shell prompt. >=20 > No, but you can try below debug patch to disable port runtime pm. >=20 > diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transpor= t.c > index 74aaee3..8def3fc 100644 > --- a/drivers/ata/libata-transport.c > +++ b/drivers/ata/libata-transport.c > @@ -293,7 +293,6 @@ int ata_tport_add(struct device *parent, > =20 > device_enable_async_suspend(dev); > pm_runtime_set_active(dev); > - pm_runtime_enable(dev); This patch doesn't change anything. The kernel still hangs. If you have more patches or ideas, let me know. Bye, J=C3=B6rg. --=20 Just because you=E2=80=99re paranoid doesn=E2=80=99t mean they=E2=80=99re n= ot after you. (Henry Kissinger) --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAk9iEdwACgkQwe0mZwH1VIBM8QCdFUjUiAzWgeHCn11VxU/0plLN mVkAoK3SfHjGmFhdxh40e6REMoP0PoZ5 =cDXX -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--