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 E4B8DC433F5 for ; Thu, 9 Dec 2021 12:20:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237322AbhLIMXk (ORCPT ); Thu, 9 Dec 2021 07:23:40 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:4237 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234627AbhLIMXj (ORCPT ); Thu, 9 Dec 2021 07:23:39 -0500 Received: from fraeml745-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4J8tNP3chTz6H7bP; Thu, 9 Dec 2021 20:18:13 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml745-chm.china.huawei.com (10.206.15.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 9 Dec 2021 13:20:03 +0100 Received: from [10.47.91.245] (10.47.91.245) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 9 Dec 2021 12:20:02 +0000 Subject: Re: [PATCH] scsi: pm8001: Fix phys_to_virt() usage on dma_addr_t To: CC: , , , , , , , , References: <1637940933-107862-1-git-send-email-john.garry@huawei.com> <6ee6fe1b-e811-cada-0c18-78149c313358@huawei.com> From: John Garry Message-ID: Date: Thu, 9 Dec 2021 12:19:40 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.91.245] X-ClientProxiedBy: lhreml724-chm.china.huawei.com (10.201.108.75) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/12/2021 12:04, Ajish.Koshy@microchip.com wrote: > Was testing the patch on arm server. Didn't see crash there but observing timeouts and error > handling getting triggered for drives. But the same code works fine on x86. > > At your end do you still face similar situation on arm server ? Yeah, I see that as well even without enabling the IOMMU. root@(none)$ [ 163.974907] sas: Enter sas_scsi_recover_host busy: 222 failed: 222 [ 163.981108] sas: sas_scsi_find_task: aborting task 0x000000005c703676 root@(none)$ root@(none)$ [ 185.963714] pm80xx0:: pm8001_exec_internal_tmf_task 757:TMF task[1]timeout. I figured that it was a card FW issue as I have been using what I got out the box, and I have no tool to update the firmware on an arm host. It seems that SSP and STP commands are not completing for some reason, from the "busy: 222" line.