Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp356133pxb; Thu, 2 Sep 2021 05:56:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwym17Pg6+Thrzx5tcyyCsd6XDgbcmNcPX9Ev0dhOowKvqyCEULasbvw/hhwjvkoMl6FWj4 X-Received: by 2002:a05:6402:1359:: with SMTP id y25mr3482762edw.50.1630587371341; Thu, 02 Sep 2021 05:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630587371; cv=none; d=google.com; s=arc-20160816; b=fPk7U9qXJvQ9TXspc2iRb7XnWG2o61iFexmyh7qqbvJ6gANT1/1Z90/LX4bjtDet7i nNhkPvk/SQ9TIRLzLNlAQ+qLl2SxCt+QgCYSrWfdrCGWed1WZVqmAbIwKpZNcEwAaxqK txYGT/51+CfVMkpp2Sb0WuVoP0IBe/JWiL7qzK/CycywWYeOvXT/dspKUW/9t0qhLsbN WCin0AyYXYrJTfDiEMkVHQVTD2VqfRfXZKWd6xbOu79uXhXaduLByrgDM0qqxD22+alM JBmswWABD+3iUIa2+Niu/8PVPBjAKMc5Q7iLToi065At/12N0TxpbUJxLRlE/F2Xe4Lz d5Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=oBtvw9RLZz5FiMU8tP1KGG7ayEexwXszGesiGUpyM7c=; b=N41bdPzpl9DscL0P7qlsNZWMAgdM3n6DXJ0ELLzuYdJ/SekeLlEaVpZBjZNtmlq2xN Hy3K/z4RlNQrSK9VPjP7WVTu/0sq3HB15GcrQl2fS+q01EirUP+IinHdlgWnR33TGQJ2 KwK8yqBWFJdSMgPQ8RN5pZDG8S/jFnX5w/l7MtCoFG+m2nvxbxT8wslM+WP6da5OqRAj Grnhnl+ULbLfUmYRASEzHhGL6RexnH1dzy/3dQk4jPogxiM8K6LIeIaD0vlGXdbFv0v/ tcWm+DvDBuzCgHnoHkIKmN66ma5XiKsTXnCJ7ay9KXRFrhgMFEZVtj1wDSNzEeQ1BQe0 XFPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CZV3QxQD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk6si1661147ejb.587.2021.09.02.05.55.20; Thu, 02 Sep 2021 05:56:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CZV3QxQD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344481AbhIBMwy (ORCPT + 99 others); Thu, 2 Sep 2021 08:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234290AbhIBMwx (ORCPT ); Thu, 2 Sep 2021 08:52:53 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50ECFC061757 for ; Thu, 2 Sep 2021 05:51:55 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id lc21so4074405ejc.7 for ; Thu, 02 Sep 2021 05:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oBtvw9RLZz5FiMU8tP1KGG7ayEexwXszGesiGUpyM7c=; b=CZV3QxQDYOZ4sA6RDYakDFAaxGnXwXVMjsjFysxH8aP03rp+JlkXUPc7WgK8FGpX/L SXGuMEp+ppKVLvddgbBX0ixeNJqxg4VSqP1TDRDBjvPQ5VKMCmLqqkl9AJZfBi3l5/7x FRcUlQdxgFS5T4X7fWcunJi/PnebZvrR12cgPxE/DLA+M3YhxO/lbDEoOyp+g2/LW1Jx DX6pC3l7XJYiWPp1IXI/Ac9M+08dGoMbdF+te/nB3LOheviQx5PNuf1FxfHa01E+xToK SritC5zqmjTg3cZs8yl/SSYVerMp9pqN7lPtFv7U2XR7zP4a0R1mkgHfAJGHK1UQZ/42 rIDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oBtvw9RLZz5FiMU8tP1KGG7ayEexwXszGesiGUpyM7c=; b=WQxuIIkOkQjucm8MnQ0js16JAFjtLDHEYKwy5+59QWcWaDpj72nC4yqcjqYc/ND7sn le10YPhdfeLuD1kKuim0SASbCTThMUayLSKYt6iPgDthtL0Va4+BsJkFJEAtBc2CqKkq hHQjFDxfYTfngWIKPqy+YMuUqNukdU+pjlpgUWsfNDDBjcH4tlbUizzsc5+89a7LpozV 8urZrLHblUZ2Ly1WOrpDFlSEDwfKGQqgVEasrM+v00d6XKOn3dvlnaK/fJo7jKj7Hxjc K+mAiGVVuLPZuJtVN1bmh+Qs0QTJaf+twkreIB4ySOVVbI5Eum2iauACHQRfwrXrzika 1U4A== X-Gm-Message-State: AOAM5338Bdkj3FB1RtSezhLsMQXbAVr/WiCxu7pY+9rx1kvMlTjkv7Vt dtEm4O8xZpSUPohkyVSWBmf3t/GtDNfvNEi9dg07Vg== X-Received: by 2002:a17:906:3a57:: with SMTP id a23mr3646914ejf.469.1630587113883; Thu, 02 Sep 2021 05:51:53 -0700 (PDT) MIME-Version: 1.0 References: <1621566204-37456-1-git-send-email-wangxingang5@huawei.com> <01314d70-41e6-70f9-e496-84091948701a@samsung.com> In-Reply-To: From: Anders Roxell Date: Thu, 2 Sep 2021 14:51:43 +0200 Message-ID: Subject: Re: [PATCH v4] iommu/of: Fix pci_request_acs() before enumerating PCI devices To: Robin Murphy Cc: Marek Szyprowski , Wang Xingang , Rob Herring , Will Deacon , joro@8bytes.org, helgaas@kernel.org, Rob Herring , Greg Kroah-Hartman , iommu@lists.linux-foundation.org, Linux Kernel Mailing List , linux-pci@vger.kernel.org, xieyingtai@huawei.com, "linux-arm-kernel@lists.infradead.org" , Linux-Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 1 Sept 2021 at 11:58, Robin Murphy wrote: > > On 2021-09-01 09:59, Marek Szyprowski wrote: > > On 21.05.2021 05:03, Wang Xingang wrote: > >> From: Xingang Wang > >> > >> When booting with devicetree, the pci_request_acs() is called after the > >> enumeration and initialization of PCI devices, thus the ACS is not > >> enabled. And ACS should be enabled when IOMMU is detected for the > >> PCI host bridge, so add check for IOMMU before probe of PCI host and call > >> pci_request_acs() to make sure ACS will be enabled when enumerating PCI > >> devices. > >> > >> Fixes: 6bf6c24720d33 ("iommu/of: Request ACS from the PCI core when > >> configuring IOMMU linkage") > >> Signed-off-by: Xingang Wang > > > > This patch landed in linux-next as commit 57a4ab1584e6 ("iommu/of: Fix > > pci_request_acs() before enumerating PCI devices"). Sadly it breaks PCI > > operation on ARM Juno R1 board (arch/arm64/boot/dts/arm/juno-r1.dts). It We've seen this on ARM Juno R2 boards too in the Linaro testfarm. The problem is that the device can't get the "SATA link up" while booting. see https://lkft.validation.linaro.org/scheduler/job/3416767#L577 When reverting this patch we are able to see the "SATA link up". Cheers, Anders