Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp205551ybg; Tue, 9 Jun 2020 21:21:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMsjz7IGjhMK7d2FVvknyvm8LVwelew+L2Cf114OxA+ITU8C5lNLkTCJnxQp6WQZ2/RMQr X-Received: by 2002:a50:a207:: with SMTP id 7mr921248edl.92.1591762910108; Tue, 09 Jun 2020 21:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591762910; cv=none; d=google.com; s=arc-20160816; b=xxX+jzmid3K6wnebpNSuHvdLSJpqq7mkiRf5v44umgHu9rJ7vKCoiv1ANT4jKLyj+o BzOYY5H0BU6krd05KnIkLYl+p73gTG1QZdR63j/2L8u4+Oj7/EyVo/7ybLujkG9oW2mm wI12BFn2IYaL1+IPorAWrDUkFE9rvcDinoa8yL7p9itsFO0yNSdVrkg/BxGeClVOBXWl +a/f6q9yYWGwPozt+CEX16hF42TRGvLTXlsSdTO0bLSyNH6awgmEsHvtRRL2h3oeBvmh 1I7iXFRRLoW1t71WlWGyZVRX60c9K6zxmL1dc8SJ0DfX0PhLQoGGF9rwKtBO8wv5nfiG Vkig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=K0hwNtKfAibOJKiyWU3Z9GaQQI3EVYmF1iagX0XS7wk=; b=O2SOEuB9CNBiVFtWdJc/t8g+xMy0/aJ0KbcJP+kpq3lA9GoJDoKkUZp4hza+qJWJZ/ iOfWYOuMP0bxoWqqc1r8+MNNBWhhI19mI0lTKXHw1PpfvgxVYF8JZy+cDnmft8gzUKqQ hXxFOxbwnIw9m59vE2PFLHSU/b8Z7/Oj7tyEn4O0Qlu9b2JIYZcPOVgQ4M7y7onJ3a8V B/W6+4KsoW5CYRvC4+DkRPZ6aChaoHRQtbHAYu44vjC3Cs9nxxa6S46uFcDNVrweWp05 PdNZvVLH/enNRvPXhhzNgf0/Hhi9hf1UiDAWDsTXWm2ebL6pz8WCawdTUCXBGXvCw1w7 QsMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gJEWN7a7; 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 o19si9623666edr.148.2020.06.09.21.21.27; Tue, 09 Jun 2020 21:21:50 -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=gJEWN7a7; 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 S1725270AbgFJESh (ORCPT + 99 others); Wed, 10 Jun 2020 00:18:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbgFJESh (ORCPT ); Wed, 10 Jun 2020 00:18:37 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90C59C05BD1E for ; Tue, 9 Jun 2020 21:18:32 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id d66so532828pfd.6 for ; Tue, 09 Jun 2020 21:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=K0hwNtKfAibOJKiyWU3Z9GaQQI3EVYmF1iagX0XS7wk=; b=gJEWN7a7/A5UeFkZQMLzhzfOwv5PGiXLgXIVjALpG57ToRLaUkcY6YZoKjKGYfA/tV 4JQkJQQ3fUSvGiHkhoY0sMj+mWtQo1UNQhj6IxrSeTu7B4mCW4QIKoxqgdtw3ruGc9yk XTd4Of+0FV++GHK1UFOq2yk8ckPg1Z+8bQn1TwMVnfuLnxPe8VoAAlaHfm9oYfrLYwHb d4Yhb2G9hqk2Ig5LrVsc4xSnb2LzjfNVakj98+pfkRm6ojd5bNJSBnVNF46mDpfeYjcW YjUY8HoLmotQyGFMo9eI3cF8SbQo2EBeXTINqT667/IgDO3s0Uh8h457KDYoftOHivD1 wHqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=K0hwNtKfAibOJKiyWU3Z9GaQQI3EVYmF1iagX0XS7wk=; b=OTZWbRwk52mFJvErmMNLWzuC0DVebpGb1Qi/Z2vdNUwcbZl2G+MVczQi61uqlI9TWP PWQbhv9bRjTeAQMw6P8wRYDKywPQzIkTRNWS6ktpoSvS7lB7+XIeZjRp6DUzY7/pYi3k +Sn+rI3oK1jIx1AbGy+HRjSYuoyDN47DWxoV1OhPzhuP0Dg2SxeRWPhyaN0Sb+6ua3ep oDh/xh7kKUvJs20T2oNi63RfShOZ2O6uedFZJQwp57I75D8j95PLnIYY21ZO2JGwkuEh ToHYDXgUnvFh1iHBqF6KZuC4fQvW51flNl7VhRd7j2bUT+tngMXQXNY2EPX66AtrteJG MohA== X-Gm-Message-State: AOAM530huItSU0aQSigwofOA0mjooyhpeC3ks+YrrTz6NBzd7XkwaT86 AemSEW/eqqbs+0hskPoxliyuMg== X-Received: by 2002:a63:a36e:: with SMTP id v46mr1070419pgn.378.1591762710565; Tue, 09 Jun 2020 21:18:30 -0700 (PDT) Received: from localhost.localdomain ([45.135.186.73]) by smtp.gmail.com with ESMTPSA id w73sm11627476pfd.113.2020.06.09.21.18.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2020 21:18:29 -0700 (PDT) From: Zhangfei Gao To: Bjorn Helgaas , Greg Kroah-Hartman , Arnd Bergmann , jean-philippe , kenneth-lee-2012@foxmail.com, Wangzhou Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Zhangfei Gao Subject: [RFC PATCH] PCI: Remove End-End TLP as PASID dependency Date: Wed, 10 Jun 2020 12:18:14 +0800 Message-Id: <1591762694-9131-1-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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; - if (!pasid) return -EINVAL; -- 2.7.4