Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp361959ybt; Sat, 13 Jun 2020 06:54:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUQAqzQs5S4YIBSfZPtP47U5AyE5uyuLT9XjNyG1AtLM8lo/gzELnNvbCgpXDP3Vj83/Se X-Received: by 2002:a17:906:490f:: with SMTP id b15mr17279313ejq.180.1592056444728; Sat, 13 Jun 2020 06:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592056444; cv=none; d=google.com; s=arc-20160816; b=xYWdFDfXJ5xToAe9/gQKEBTGxvf9oUvAZ8g5Hiqsl7Seuo376Lo/DKTyzJy/nwWJBv mYdQC8lNX+vE0PjxLySX08Px8jSwyJ7sa5/w0M5DA90gt0lot4XzILeMp58tTHSnifPE vLQDk6ZxrkLWVTQHmJ7Am17wP58BwMpVF2XkjPZVvEdDv/0yoRNRXXpAGXiyvHL7lj6t dPfeLzxEXwVqpT4QWMEaVf2taEPpd1U0glhDEo7wjncTbElOpR8qmxciiVyA3EW6YGHW eZhsX0f800dsj81bPg+eaANl1Y49B303m4+pdbfdx26c7XF9Ya4wPC2p284H3SH+Vi5Q gV+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=L7g8naTnxszWRQuAzpiNffO3FSZZpQddLb2rinFpYx4=; b=KH4+51RibOp2Bs1DrXOXTEGTENDcytY6rb9BKtkOhynYOoz7BlZvxt4Ax82FQCRVER pPRfME2iPzqVoBYBACwVJswpm5PDgJiMBxVekQTOTIFDeyVKxvIyvImROCsIBCc4qDQH 6hcg2aRQZKEVWAxR0YbyhxQUOmEDX8mbtcXt4UaXBvZmQGD5Ao2ITNq9L7kyqUINIrr+ Q8VJFFOJ2PfN67EK54eRqwNGZik5ikIpJ/otcNl3hzPNA5rbHvwt0dk6TPkKk2URsaBA HExLFcgjs2g0ZIVTCl6JmxgUOZlcQb70b4jt9z/Zg8lvhtl1SHw1rNoZf6JLQ49i5U3r fEKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wWo3LR9e; 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 dd12si5889145ejb.59.2020.06.13.06.53.40; Sat, 13 Jun 2020 06:54:04 -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=wWo3LR9e; 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 S1726323AbgFMNtu (ORCPT + 99 others); Sat, 13 Jun 2020 09:49:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbgFMNtt (ORCPT ); Sat, 13 Jun 2020 09:49:49 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CBD2C03E96F for ; Sat, 13 Jun 2020 06:49:49 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id h185so5672300pfg.2 for ; Sat, 13 Jun 2020 06:49:49 -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=L7g8naTnxszWRQuAzpiNffO3FSZZpQddLb2rinFpYx4=; b=wWo3LR9e8M2W/hC+feEbflle68gR2qDsYFrdPYrOmJLriMm2KoppPgHzQhypHT6vah 79BbJmlRDZEyMT0m/gznLb7kouUAKDh1M4pXLJCev7BAA/4g5sSnTmQWdPDxNiq3+cL2 /Js3n7BY0zb8cfKRJ0o4rOJkLAjCd8rFeRE8dd02UL0s2VxsBYIJasPLfWrcg5/uujRH hMtxXWuHdru+zwaI8/LD2W+wvG/LMu/rK40FFqkuD6mYiZt3st7rKatRxKjZhWrsKojC fthUafzmoTMw55kDznVJ2VhLaiBO2bIvYR404Ou7ebgnh8yXpWhfjrIe5TSXqChRxI33 WeLA== 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=L7g8naTnxszWRQuAzpiNffO3FSZZpQddLb2rinFpYx4=; b=ufl+uIrDcE6S/z/rFbEYacmlWjwSm8EtAh5mxM/5MVkcvDQdvllMB6HYyeAHPeNThB gpG+1oGigHqoovGXTYLSsm4cmlxK/hHN20rwyqlmcVmJd1stf0bEnTZsfMI1TpictHq1 RKL/VyUojarycmFrFiGcTF/N7Xnit8+9/aHVYFGXZ5CC8jWuvlRgDoy3g9BLwwOiFZqe 47T+Wsh3II6Cjb4Gxk+4I3RDPmKatDhhZ0SbhjzvCob7W943DY2JjuzZsSXCmSmncRQt lCagxaIqbaQ/MupmlZz2nwXy0BAEcVwSvGebBTQrGJzrTAjBV8y8lCPH6y7bWKiUCp6w sDkw== X-Gm-Message-State: AOAM533E3/d/XU+gjTHyiZzwEx1J8IeEKJinubOV97PvIYsCDO7o/pHT br9hkTFPqXVx43HpNvkJ8u0z7w== X-Received: by 2002:a62:fc86:: with SMTP id e128mr16753896pfh.133.1592056188970; Sat, 13 Jun 2020 06:49:48 -0700 (PDT) Received: from [10.175.1.142] ([45.135.186.20]) by smtp.gmail.com with ESMTPSA id u25sm8947525pfm.115.2020.06.13.06.49.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Jun 2020 06:49:48 -0700 (PDT) Subject: Re: [RFC PATCH] PCI: Remove End-End TLP as PASID dependency To: Bjorn Helgaas Cc: Bjorn Helgaas , Greg Kroah-Hartman , Arnd Bergmann , jean-philippe , kenneth-lee-2012@foxmail.com, Wangzhou , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Sinan Kaya References: <20200611174140.GA1597601@bjorn-Precision-5520> From: Zhangfei Gao Message-ID: Date: Sat, 13 Jun 2020 21:49:19 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200611174140.GA1597601@bjorn-Precision-5520> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/6/12 上午1:41, Bjorn Helgaas wrote: > [+cc Sinan] > > On Wed, Jun 10, 2020 at 12:18:14PM +0800, Zhangfei Gao wrote: >> Some platform devices appear as PCI and have PCI cfg space, >> but are actually on the AMBA bus. >> They can support PASID via smmu stall feature, but does not >> support tlp since they are not real pci devices. >> So remove tlp as a PASID dependency. > When you iterate on this, pay attention to things like: > > - Wrap paragraphs to 75 columns or so, so they fill the whole line > but don't overflow when "git show" adds 4 spaces. > > - Leave a blank line between paragraphs. > > - Capitalize consistently: "SMMU", "PCI", "TLP". > > - Provide references to relevant spec sections, e.g., for the SMMU > stall feature. OK, Thanks Bjorn > >> Signed-off-by: Zhangfei Gao >> --- >> drivers/pci/ats.c | 3 --- >> 1 file changed, 3 deletions(-) >> >> diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c >> index 390e92f..8e31278 100644 >> --- a/drivers/pci/ats.c >> +++ b/drivers/pci/ats.c >> @@ -344,9 +344,6 @@ int pci_enable_pasid(struct pci_dev *pdev, int features) >> if (WARN_ON(pdev->pasid_enabled)) >> return -EBUSY; >> >> - if (!pdev->eetlp_prefix_path) >> - return -EINVAL; > No. This would mean we might enable PASID on actual PCIe devices when > it is not safe to do so, as Jean-Philippe pointed out. > > You cannot break actual PCIe devices just to make your non-PCIe device > work. > > These devices do not support PASID as defined in the PCIe spec. They > might support something *like* PASID, and you might be able to make > parts of the PCI core work with them, but you're going to have to deal > with the parts that don't follow the PCIe spec on your own. That > might be quirks, it might be some sort of AMBA adaptation shim, I > don't know. But it's not the responsibility of the PCI core to adapt > to them. Understand now. Will continue use quirk for this. Thanks