From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADD64C433EF for ; Mon, 6 Dec 2021 00:12:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241412AbhLFAQW (ORCPT ); Sun, 5 Dec 2021 19:16:22 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:63162 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241406AbhLFAQW (ORCPT ); Sun, 5 Dec 2021 19:16:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1638749573; x=1670285573; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Ig3CsQ706VJS7oMzcOdUVXhHe7TPSG5xETLn6mphDY4=; b=kCKbGqEtT2TePGMS7nP6QmcIQb9Wv01cjrgmGL227cwSTiXrN5a2BbPG gIHndKQzLquN5R4DdxfPo74Prxjo1NMRoI/ETWMEdzTiEFrEe49ehHxZq znr3Cv9ZQQvzbzVLVuHjoojT/maCSPgzrMc7RZ4wz/Flxykad31kIH2UI 4UhX9U0nrpqk8JqMswcIgpRNX9bKUJQsjmRNbmc8MSqqY4/2XgFqGlNQH RaFloeF1HGo1u6JM0AHhC38T2HMQ6TO3fsIGaMyrN9ZxPTol4MzOgg9gN aQpfqRPasOLyMcqsgGmq95LUBwScx02Ip9WQxnuRETyoXjkBHwtIxRrgS g==; X-IronPort-AV: E=Sophos;i="5.87,290,1631548800"; d="scan'208";a="192291904" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 06 Dec 2021 08:12:52 +0800 IronPort-SDR: iAKW1TBl8ZgGarrIQJA4SVDUQRtBtvJmj/mvt84/gNehNGn+NX8t41zXbVSiGuDOIUkEl1gaL4 UGaoRBxAxsreR11qM5hnxgH6bSVurldV7xLAnUOY52y15C7PR+MvFVcIhWyLtWZpFJNQMsTLvl EtThruG+hAJw/ebZhxUMw9Aqp7qsaAz8LbKTnjBEp/CETdZ2I7ebUyfjYir02qUitMjwTEbxmt zogHF0+osccXptpIsCRCEfrqSuKabgyTKWtKxVaFtNTYuF3sEDKW4YvCojhj/tDYBBYNhobrIc IpBJxPqiW8ZXegwlCRPW68Zy Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2021 15:46:01 -0800 IronPort-SDR: keT15fIFYV2rr3PAaZWYKZzogNrGpeHTa8aWLI7HgcQqtHJlLlB+qIl2BM+HxmYsfCmi/T/dKq 0z+EdaqUzuy23hJagZprtuaak575k/GDnhSbO1c0Y3rIx+TAhSOUVnEeFxntExZlx5VjV/GnEx Gp7S1TTU32qREA4Adxq9DzTR9sVPO0MEy4SkH4IWWGglw8VLSH6xX7hXb82zbfL34JrI3mv2ZR GOmbU7gSoPLeRZuxJQIlvyCLcUzIXy1t+d1iPJV5eMV2Rom4oda/B9Ixp4GfY96dF9Jsrh96UC AQo= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2021 16:12:54 -0800 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4J6kQt28Xzz1Rwvd for ; Sun, 5 Dec 2021 16:12:54 -0800 (PST) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1638749573; x=1641341574; bh=Ig3CsQ706VJS7oMzcOdUVXhHe7TPSG5xETL n6mphDY4=; b=TkZDTVSDEbA6Z5CnGV8rv5uz+/PfjnNwCJrTUy7SzsM9DDW5CNK YFRRG6UbZybBS3OBy1ihB2AcKQBihxTiggdzDUh0kzS1Caaiigj5L8T5DPtfS+Tx +JNyrbPsdl+MEic5ZDthmpDtSmfD0Y3SOalzoF8SWE2sK4iWf6/IDanvrdnhtni/ t2RWjC8ZI11LLe+IbjYqMH2X0VgEHCH1FC1oqFynlIv4RAEr3puo7SUPKYQoDL64 C6avVwhWDKZRMIXLMbauLfX8Vd8prrHEiJxE4zCQyLTW8cRSFSpevH9tCfFvy/Tg KVP121APEJRb2aAnmHWv1w1mt9wpvIeh3gA== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7lN-p9ECV7hZ for ; Sun, 5 Dec 2021 16:12:53 -0800 (PST) Received: from [10.225.54.48] (unknown [10.225.54.48]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4J6kQr13SXz1RtVG; Sun, 5 Dec 2021 16:12:51 -0800 (PST) Message-ID: <022c3fad-ca0b-50c9-79f7-2bfa3de75a0d@opensource.wdc.com> Date: Mon, 6 Dec 2021 09:12:50 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: Need help to debug ata errors Content-Language: en-US To: Ayan Kumar Halder , linux-ide@vger.kernel.org Cc: axboe@kernel.dk, linux-kernel@vger.kernel.org, Stefano Stabellini , Stefano Stabellini References: From: Damien Le Moal Organization: Western Digital In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org On 2021/12/03 20:11, Ayan Kumar Halder wrote: > Hi All, > > I am trying to run linux as a DomU guest on Xen with AHCI assigned to it. > I can confirm that SATA works (ie able to detect sdb) as a Dom0 guest. > However, it does not work as a DomU guest. > > Hardware :- ZCU102 board and it has two sata ports > Kernel :- 5.10 > > I have enabled the debug logs in drivers/ata > > 1. Logs from dom0 (where SATA works) https://pastebin.com/2BhMDq47 > 2. Logs from domU (where SATA does not work) https://pastebin.com/fE8WZnZ0 > > Can some help me to answer these questions > 1. What does this mean "1st FIS failed" ? > > 2. In the dom0 logs, PORT_SCR_ERR = 0x41d0002 whereas in domU logs, > PORT_SCR_ERR = 0. Does it give some hints ? > > 3. Any other issues or hints to debug this ? > > I can confirm that in domU scenario, we do not get any interrupts from > the device. What might be going wrong here ? That would be the first thing to check since without interrupts you will not get any command completion. Commands will timeout and probe will not work. And this IRQ problem is Xen territory, not ata. The 1st FIS failed error may be due to some problems with AHCI PCI bar/register accesses, which may not be working. This I think points again to Xen setup with domU, which may not have the necessary access rights to get IRQ and PCI bar accesses ? (I have no experience with Xen) > > Thanks in advance. > > Kind regards, > Ayan > -- Damien Le Moal Western Digital Research