Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1025052imm; Wed, 26 Sep 2018 10:21:29 -0700 (PDT) X-Google-Smtp-Source: ACcGV626k8grLHBBwc6ETrF+Kda2UPbgdinnwUinGB/pCrNNJu9+Ish8NDXVsil9V7asFYyIdXjS X-Received: by 2002:aa7:824d:: with SMTP id e13-v6mr7236795pfn.97.1537982488969; Wed, 26 Sep 2018 10:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537982488; cv=none; d=google.com; s=arc-20160816; b=Sek20a/7oHCN2+clIZH4QMq96rHRSMve69e9nurSZKsjEBBCzSubGflEo0IM0u96n/ iVB0MyAqNFBh6W1gdSXwrZ/Rbk7RPbTOmdWlCjXdUAQyXcW2Csnjc7d2rhTZPZnuN7Cf 7ZS7AD4TPAuYtnfpQqv7vEBtEQb2l76EPWaK4lkVwB6Tr+kOGoC0gcNPfE9GKhrL7zwn mXxcty9fnC1AE68cyjy5FdYSLuZ1Vf5uSxF1i5zxViPqlIuzh1QcAM9aIUEHdVmPBzmR BqRLqvvcNV+cg8qdT1NTJdoOFCyvUQ3x75mkjndlV0MTgiu90X/v2G7hQxZTiirCuaOK jCow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=KLsrtOhnbkTBwIxVYAQfw9XdhWZYxDQvIjW5ky7aOsU=; b=S6tRd7ty36/2tGj1i+5/cP1gldLCCi8XlxdXrV7rseRzJatpMu3fT44s81PUavwgy2 izemFAdofa9NrYqdg7ShuWinzuX3U6lgJq1q/Eb8VmL4nWp8GEPY4tb5+aG/VlRpUkiP qjoBM+Q+VO1n8nnvGoFszz9wsWWVDio6/mteyqhv5Ys+YdxJWhPgB5AeZPPtZLzPi97P KpFIBH7xR9vL7ckwndK0vqxM1Z0W9diFsCaM3kcvItaP7bDD2cCy6suaRfq8dT/2rrHr oAEmN0ZwG/uzp7bbxhgJN+SOKtg7HlDzAvge86XflNX2mP8uOPXIY6KlX1lIxsinGrGq qjTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Cq64IF7o; dkim=pass header.i=@codeaurora.org header.s=default header.b=Cq64IF7o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20-v6si5754764plo.147.2018.09.26.10.21.13; Wed, 26 Sep 2018 10:21:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Cq64IF7o; dkim=pass header.i=@codeaurora.org header.s=default header.b=Cq64IF7o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728626AbeIZXe4 (ORCPT + 99 others); Wed, 26 Sep 2018 19:34:56 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:32850 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728184AbeIZXe4 (ORCPT ); Wed, 26 Sep 2018 19:34:56 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E2B56602BA; Wed, 26 Sep 2018 17:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537982459; bh=G5buBSmXP1KIWsv4KgYY6iFdssumMb/bK21SBHoiRxI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Cq64IF7oZtz6179iPI4x3/6+GPrHlTOlvyu3edZbIiYJOiU2GROwaRFR/bAuN22ho PCHSPUBMDWvhrwS0XVw5Wmqdt2GhmyfjVH7WeiMg9uvYG/oY37Xa/LvzCRUOaUe9Vx 1maSNbjFWD0QPTYxaqLZhTwttrDE9rzva+9erkjY= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.80.45.152] (unknown [71.69.156.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3709E6029D; Wed, 26 Sep 2018 17:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537982459; bh=G5buBSmXP1KIWsv4KgYY6iFdssumMb/bK21SBHoiRxI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Cq64IF7oZtz6179iPI4x3/6+GPrHlTOlvyu3edZbIiYJOiU2GROwaRFR/bAuN22ho PCHSPUBMDWvhrwS0XVw5Wmqdt2GhmyfjVH7WeiMg9uvYG/oY37Xa/LvzCRUOaUe9Vx 1maSNbjFWD0QPTYxaqLZhTwttrDE9rzva+9erkjY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3709E6029D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org Subject: Re: [PATCH V3] PCI: Enable PASID when End-to-End TLP is supported by all bridges To: "Raj, Ashok" Cc: linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bjorn Helgaas , open list , Ashok Raj , IOMMU Mailing List References: <1530372264-20653-1-git-send-email-okaya@codeaurora.org> <20180926162235.GA30177@araj-mobl1.jf.intel.com> From: Sinan Kaya Message-ID: Date: Wed, 26 Sep 2018 13:20:56 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180926162235.GA30177@araj-mobl1.jf.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/26/2018 12:22 PM, Raj, Ashok wrote: >> pcie_capability_read_dword(dev, PCI_EXP_DEVCAP2, &cap); >> + if (!(cap & PCI_EXP_DEVCAP2_E2ETLP)) >> + return; > Forgot to notice this.. I'm not sure if the same enforcement is > required for devices that are RCIEP. The spec isn't clear about calling > any excemption. Although it should be simple for devices to expose > e2etlp support, but if they don't that should be ok, since there are > nothing between itself and the root port. > > We are seeking help from our SIG reps, but thought I'll ask here as well > if there are other opinions. > This patch actually broke the integrated endpoints like you were mentioning. It was fixed by a follow up patch from nvidia guys. https://github.com/torvalds/linux/commit/9d27e39d309c93025ae6aa97236af15bef2a5f1f#diff-a7f0acd715e991df5dfb450d2b9abebc