Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7290455rwi; Mon, 24 Oct 2022 12:26:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Vpag2cHI1I0OfMUrV07+Cc7D8HawcyjmvmBmYfrAAC9KzAwvnGamApgkauHt5T3f08ScB X-Received: by 2002:a05:6402:1ccd:b0:459:aa70:9e12 with SMTP id ds13-20020a0564021ccd00b00459aa709e12mr32058085edb.206.1666639589418; Mon, 24 Oct 2022 12:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666639589; cv=none; d=google.com; s=arc-20160816; b=d3hmJ9mWVbW24jhd5aTpC79mf6OcPax/zaYt3D1vdYN+ZOMEHpv94aLQ0DbzFe2Uhe qCkLCUvPY54+3QHX4crbZp7/L5QEKKapWV5wnjpwyvHNfGC6iX/lv9NYbeQJMCcTGGgH +OKTREdczVUo4HqH+9s7JhkeHvZNI6VHFeosEHP6+nhwxjQBX6m6fnKBqLXqSgRGGLBr zTH3P8kI8DqjSbPy9Fb0dHhrH23RaMWytoCp9qaqU4AASG0oT+VKgQFAgYK4kFLd+BlG PA6bzYUXh2ZlNvdDExT3ZWykhZOsPITyZeE2ItJAoM1i0c69jIsXWuyyQgbfkh5cX/WQ QuKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=It3w6zyEzwvuJhq5uEFVpDjYJYg66nuV8+D0Y7PJaFQ=; b=eEdb6Mc5qJ6qiFSY5ugwXNqBqV+DEv6nPl2o4EKilavH5JMRC14RYy73VX7j7umOOU LS+M+rgbeJFRYSZM2NhoRxvD2g8NLN6F2LrgD7Bh7T4m3noMlyvNVOC1egBUMMcASTKl kuNPdXzi3/yESsSDQZJQoqI03wT7kGh/Gn522mW20IxnFArimfw/r1PijIMUA8ODDAmE ANMhUTgqWrEVegF6BBoeOEk6PlgNBJtGL/orstyAh/MWGJlMN3Zklx1xdrInw4knuS4h glS2TGXbnOwnCC0dLkBg+E7vWbq6dbAX2cqyOMQRMGG/yr/eF9MHri1Fa8/V8+P+o5I4 Z3AA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a27-20020a17090640db00b0078054af5eeasi492204ejk.374.2022.10.24.12.26.01; Mon, 24 Oct 2022 12:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbiJXTXK (ORCPT + 99 others); Mon, 24 Oct 2022 15:23:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232118AbiJXTVv (ORCPT ); Mon, 24 Oct 2022 15:21:51 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B411D1F632; Mon, 24 Oct 2022 10:57:14 -0700 (PDT) Received: from fraeml743-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Mx0cp01G6z6HJTD; Tue, 25 Oct 2022 00:18:50 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml743-chm.china.huawei.com (10.206.15.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 24 Oct 2022 18:20:08 +0200 Received: from [10.48.145.243] (10.48.145.243) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 24 Oct 2022 17:20:08 +0100 Message-ID: <7345fb7f-f713-2fdf-5fce-8a0549ff3b7e@huawei.com> Date: Mon, 24 Oct 2022 17:20:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v5 0/7] libsas and drivers: NCQ error handling To: Niklas Cassel CC: Damien Le Moal , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "jinpu.wang@cloud.ionos.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linuxarm , yangxingui , yanaijie References: <27148ec5-d1ae-d9a2-1b00-a4c34d2da198@huawei.com> <5db6a7bc-dfeb-76e1-6899-7041daa934cf@opensource.wdc.com> <64ab35a7-f1ff-92ee-890e-89a5aee935a4@opensource.wdc.com> From: John Garry In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.145.243] X-ClientProxiedBy: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/10/2022 14:10, Niklas Cassel wrote: > At least on the HoneyComb LX2, > running with "arm-smmu.disable_bypass=0 iommu.passthrough=1" gives a working > system (and working pm80xx). > > The ACPI IOMMU code that parses the ACPI IORT RMR revision E.d node > was first included in kernel v6.0: > https://lore.kernel.org/linux-iommu/20220615101044.1972-1-shameerali.kolothum.thodi@huawei.com/ > > However, the HoneyComb edk2-platforms code has not yet been updated to add > a ACPI IORT RMR revision E.d node. > > Considering that it works with "arm-smmu.disable_bypass=0 iommu.passthrough=1", > I assume that the ACPI IORT RMR node basically just defines a number of > memory regions which the IOMMU should treat as "bypass", while all other > memory has to be re-mapped via the IOMMU as per usual. Hi Niklas, As I expected, unfortunately that did not help. Note that I actually can't use passthrough on my platform due to SMMUv3 implementation bug, so I just disable SMMUv3 entirely via kernel config. I'm still betting on a memory ordering issue for me. Thanks again, John