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 X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D976C4320A for ; Thu, 2 Sep 2021 12:51:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0C81C610CE for ; Thu, 2 Sep 2021 12:51:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344729AbhIBMwy (ORCPT ); Thu, 2 Sep 2021 08:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344481AbhIBMwx (ORCPT ); Thu, 2 Sep 2021 08:52:53 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52CA4C061760 for ; Thu, 2 Sep 2021 05:51:55 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id u14so4055621ejf.13 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=MIHQ0O14lvrDoc22AvCJ4UxhapEyP6UgT571NTMpBhdvPlSIr4YdtsWfCqWp+a81+/ 9YnX/BtIbv9Xqod+q83QKHmu3G5Ba3iiWK2KXx10uQ0xQkvkE4RFyoDUbIR2AszOe9Mq FQk6513hWEsNhZD+UViP/wjZB+YnlNKWS3Hkgjb+NK/3Sdq5JCezG+MjvckbvtDaXq2E dxR23+WX9fyhDToXLGwsTaQGJ348y6VzeaZeL4X9g37E1QKXpSPOSR6p9tlnjuRbyHOw VHYWeP2duCf1c/ZGUL13340/C3MDBbgsXde64RyA7hMNBa2UYmU+fLYQrx5I23iJY3+3 Ryag== X-Gm-Message-State: AOAM532AyiXJ712fnuZ6n4XZNxf7of6i/ZsQq4xPZgod3b6ed9HEKFXx NHw2bcjkl9pQ+3gAp+45lGZYk+LrA1L3HQfIWu61ltNk/PV6thPr X-Google-Smtp-Source: ABdhPJygSZC8fluO7Inqdaqw8JmKePWM0x239rNniJ2NKvF8HoUFS95pa4d4JBGyUMUeWRE3aBaYUS/L2g/2y3bv5Us= 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-pci@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