Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp267840pxj; Wed, 16 Jun 2021 01:46:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn/R+V49lvvqpVnCDS6qwnQuP/MoPHPWnZDTtiYPYzytTodR9E3mkS1tXplqIRbmaw1qEW X-Received: by 2002:a17:906:9888:: with SMTP id zc8mr4080747ejb.26.1623833192336; Wed, 16 Jun 2021 01:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623833192; cv=none; d=google.com; s=arc-20160816; b=pNtRf/mgxRXC8tAEn8S/in56QdPWuUiIAs7/MR8XN2ooXSNtaowl5gG1M970HYuXpA ZjpRmOituodr8FolcFDGUBDO9qodSLviX8KTbyBKpoaePsAQkf25F3Ng6H469yPRy97x AJwzzzKg6kiAiAJwwGRGTs2vUg6gBx3msSKve0BCF92R2Z8WmeJcZ3332q15V5wSfnNN R9NobMQhWCe6G2usww8v95igg8w+ZEqkSUz23IV3mVuGSvSef4laYbbfmoG0RUTgorIE 0Wqc5f6Z8WnNlA9DwXKryH2VUMT+jN0yjCl8JxmWo9F1F3nZASW3f1Kk/0mRAV/FWidU LNbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=aA4TkrJs6ajMyY8FqDMerCmGUu0LZcHfxFM5uF3oKpQ=; b=mV7nuWQhqktGSJsfnlw1+3r82V2EIL4d5o3XFCpMKc6hfshYyEFmTlcD8DGr1xaNLv H/Q58hRoXQxPG/d+UDooIU4HGQBabmLFzbEmizd+Tj7R/15fjH7prxP0ScqnRKrvhLsr jPrM1TODMyGes6QKo6d0lEfkQlpqNiKLejpqbE22FAjTJwTOtI+IlGsI/BTU84ouPrW7 nJd763A9PQvJ8ToPqI05iAx0N8abR+8qEFLEdIBiMRKSsnGSZ3cCQF17/pRo/yfzh/XA qC+DQjZqKstpWgU1/0XKT4MHOElK+t6fWGeCjzk4ihfUyzHdyDcGC2GLJp/eeN9hdjsN srvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wCR38/vM"; 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 i3si1787722ejp.610.2021.06.16.01.46.08; Wed, 16 Jun 2021 01:46:32 -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="wCR38/vM"; 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 S232088AbhFPIoj (ORCPT + 99 others); Wed, 16 Jun 2021 04:44:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232059AbhFPIoi (ORCPT ); Wed, 16 Jun 2021 04:44:38 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1933C061760 for ; Wed, 16 Jun 2021 01:42:32 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id e7so761110plj.7 for ; Wed, 16 Jun 2021 01:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=aA4TkrJs6ajMyY8FqDMerCmGUu0LZcHfxFM5uF3oKpQ=; b=wCR38/vMYc2wU32kBUYEjbdZJMrPoovqwhEHrfRa1+I9ACdqfzRDejU5tQd4ww5QcZ k0b04MZfvPXR0kEeqvB7Vc8KoFtUsXsbj+dPFd2f5qBIYhV0Hf8RKtoH9p0qMvR2v/jh 8XGrCFdn9gHsctaNNUunzjruwNIXu3DvOtbG7kpKVLt4NDESUsK+2GhQK2cxvmMyTBAX e8RLff4fM+9Idv6KQjwEO8chMz2+jwEmm9w4oKE0uC+ZTL+iYh2BGAB24CIej9uIZLCz bo9qL8j7tpfWZkscNlH7mR/311TXxrneINKAHp85p1zvOdXPXzFuKHtgDfcUTeH7QWva dSLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=aA4TkrJs6ajMyY8FqDMerCmGUu0LZcHfxFM5uF3oKpQ=; b=AdRQMW2a4xF3XLsn8LLAC3M+YA7RIv1KkBH5ARRvfpfmeh9qgEM1izVFk260MzwYdP 4f7K+0usCx18E/if+TH3Sf6v8dT6G09IOMemEZkRK2XnfSapSE1HKjUx6PdkBIfgRqpu mzDvJtI0N06TOOOzrgSWaMbZmMQQdRNuAKJWfomykUBe//EO5RIjq9l6oKGlfS6hdRJF uptXw+Gff9rtPrnobPvrAziKTvh9XZFqHJDkK3Fy2P2u4w3C8wSb6vHovBB37HOXmx34 ToQil5VcyrW6xNqXwPCh1zDcEOg2Os8GxYBBhSCM4FycW8+8EiaPzZSEqXsaiLmym+3q l+nw== X-Gm-Message-State: AOAM530Ihb51dniyw56zGr0fiHN4Gs+6gzQNxdDgnOnvMS3TQVwIbhle r60Kwl5T2ycoUlLE5KIOyugG+y5DiCHWZPOz X-Received: by 2002:a17:903:1043:b029:11e:7489:9bad with SMTP id f3-20020a1709031043b029011e74899badmr3088065plc.34.1623832952255; Wed, 16 Jun 2021 01:42:32 -0700 (PDT) Received: from [10.43.1.6] ([45.135.186.89]) by smtp.gmail.com with ESMTPSA id p1sm1461370pfn.212.2021.06.16.01.42.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Jun 2021 01:42:31 -0700 (PDT) Subject: Re: [PATCH v4 0/3] PCI: Add a quirk to enable SVA for HiSilicon chip To: Bjorn Helgaas , Greg Kroah-Hartman , Arnd Bergmann , jean-philippe , kenneth-lee-2012@foxmail.com, Wangzhou , helgaas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org References: <1623209801-1709-1-git-send-email-zhangfei.gao@linaro.org> From: Zhangfei Gao Message-ID: <18e171fe-549b-6fa3-c9a0-c0d869b53445@linaro.org> Date: Wed, 16 Jun 2021 16:42:23 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1623209801-1709-1-git-send-email-zhangfei.gao@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Bjorn On 2021/6/9 上午11:36, Zhangfei Gao wrote: > HiSilicon KunPeng920 and KunPeng930 have devices appear as PCI but are > actually on the AMBA bus. These fake PCI devices have PASID capability > though not supporting TLP. > > Add a quirk to set pasid_no_tlp and dma-can-stall for these devices. > > Jean's dma-can-stall patchset has been accepted > https://lore.kernel.org/linux-iommu/162314710744.3707892.6632600736379822229.b4-ty@kernel.org/ Would you mind take a look. There is no dependence now, since he dependent patch set has been taken. Thanks > > v4: > Applied to Linux 5.13-rc2, and build successfully with only these three patches. > > v3: > https://lore.kernel.org/linux-pci/1615258837-12189-1-git-send-email-zhangfei.gao@linaro.org/ > Rebase to Linux 5.12-rc1 > Change commit msg adding: > Property dma-can-stall depends on patchset > https://lore.kernel.org/linux-iommu/20210302092644.2553014-1-jean-philippe@linaro.org/ > > By the way the patchset can directly applied on 5.12-rc1 and build successfully though > without the dependent patchset. > > v2: > Add a new pci_dev bit: pasid_no_tlp, suggested by Bjorn > "Apparently these devices have a PASID capability. I think you should > add a new pci_dev bit that is specific to this idea of "PASID works > without TLP prefixes" and then change pci_enable_pasid() to look at > that bit as well as eetlp_prefix_path." > https://lore.kernel.org/linux-pci/20210112170230.GA1838341@bjorn-Precision-5520/ > > Zhangfei Gao (3): > PCI: PASID can be enabled without TLP prefix > PCI: Add a quirk to set pasid_no_tlp for HiSilicon chips > PCI: Set dma-can-stall for HiSilicon chips > > drivers/pci/ats.c | 2 +- > drivers/pci/quirks.c | 27 +++++++++++++++++++++++++++ > include/linux/pci.h | 1 + > 3 files changed, 29 insertions(+), 1 deletion(-) >