Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2408778pxb; Mon, 18 Jan 2021 17:56:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDeX9Zm0FP35woS6VD0mR+xl9t47Z21apT9S/MHT4OVtj2quezkjInpH6qgPi5XEta8bvE X-Received: by 2002:a17:907:7356:: with SMTP id dq22mr1535930ejc.318.1611021400161; Mon, 18 Jan 2021 17:56:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611021400; cv=none; d=google.com; s=arc-20160816; b=LbLTpkad0DnLeQDvuHjk8nmQ39G5rlLaqQawtNWTn0vvb00mnfTP6Xv3VYKmfU9hYt uW6vpJpKCECsa+Zfz6foXeV/UIFjH7gbMpWzKUlNs6t6FIYM6nJDEPjqDQ01TPE6KJsu ZtmDD5tyGJwQXmB8g8Rxc+Sveo71YPnxuoEVkP4IqKFHlaW1sb9eGN+itMTmBQzPpGcC g1T6jZIaVdEY3YJs8dS59O10Y449ArwQAVgXcYs/k0pjDMPvfJlrNPa40cqrcekhMt5k LpfMMkpCkJemkV6wBppTMKxIiMIrejjAVNZhEv4WD5/WDAMxcMmer/OHE2wFAxrKEJUW zAXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=PB6HJRYih/9/P6sORTVGIgjwqf3/DVJJnmXcLRRh/VI=; b=ULVtI0GCeKDZY7aiOkqn/p4lltwhCUsQdwZpX9yz8ehWKAiOcUtyD3LaQCpYHPDHxk Jte8hXLIGFp79562C+wneYrxJNaxbhHPhjBMKSZ2yjnL+VPyj36NYVq6p9C/50A1AQRF EeYmx6+Z69gYdj/7wECXZVOSiepCuXDdg+MTRTY+M6hmApJjg7FFPQdftGxEzaV04l0i 45kyPfIPqSUEYRYQMAQVnWAHZYA3wNUHj86CVTZVZIlMH7w95UepBt+Rn9ZbBCmR8Z+G A1VY9qzZlHDVKuJx151EcrJIANMYYyGJK6li5px2jl1JccYwXm0Jr9mYjx8l5mko86sf bXzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="HYHj41I/"; 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 a29si3302275edm.288.2021.01.18.17.56.17; Mon, 18 Jan 2021 17:56:40 -0800 (PST) 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="HYHj41I/"; 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 S2388095AbhARJAK (ORCPT + 99 others); Mon, 18 Jan 2021 04:00:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387914AbhARI77 (ORCPT ); Mon, 18 Jan 2021 03:59:59 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 873E0C061575 for ; Mon, 18 Jan 2021 00:59:19 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id 11so9803135pfu.4 for ; Mon, 18 Jan 2021 00:59:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=PB6HJRYih/9/P6sORTVGIgjwqf3/DVJJnmXcLRRh/VI=; b=HYHj41I/g9gpS3b1IgN6kVxfbxxse10z0jE4GHcwjpdIvLUjqD5GCr+AEXg8e7Tm9S wcEem69QbeBvoQbWAiCEd6H7Ro5U5vCDFlGUSUqLZLWU2Y6TIMoreAT3q3FW+slN/oJJ eTHb1QM60qmrGrPPDk9Ap1Z7V77jbQbct+wP96gUSozenlkjkBCqoI3GLrQSGvXzlFZJ pTY+Vk6ui7mGCmyitflBMoxLqmwY76++RW47ZgwYzF88zkvyULzaWhcg2kMeHqUy1EQF FZoMk/skIcNNGLd5FXClvx7LnORyiZ3zHC3GmRPBrjmtUlrEkeciPpFryi6is8rwMrcV hcmQ== 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=PB6HJRYih/9/P6sORTVGIgjwqf3/DVJJnmXcLRRh/VI=; b=q/UFew3BpiVCa9DV9MJ1QMVIfDyBbqnIGAoFe/B7OB4aI1Hc8YZ2FyZqk0OZq6rsJQ NKOTFOyWJGOiKJt8lPqxal6b0XC+H5urbVc3y7EY6lc/g32QxYby8ayE3+gi8HVTnbEt Fs+uzLm9wgdCXSpXNcYd3bIQQyWnzfa5tqKudcyEtLfPHFR46TB3nkGodjvdzQNIJAUZ dSAjhSBsDTA2/pJpoag+oPKtmnLb+H5AApM1cXQ+SEGaEpxuRfrXpKstpt0avcScLWY3 Sae50YB/8ZM4QbfCSV9KFqpxG1sgVFIoAnY6iCHmIits1ztOxy2tFHSps/NVHThWi+9J TYsw== X-Gm-Message-State: AOAM532d+8C5/hdODtLohItbr76h46lu2OJuI5lB2f38DuKRFkiBC7Hd Q5s6Xw+EKBx58vzjAA67hiZqIA== X-Received: by 2002:a63:720c:: with SMTP id n12mr25340017pgc.97.1610960359143; Mon, 18 Jan 2021 00:59:19 -0800 (PST) Received: from localhost.localdomain ([240e:362:42c:4800:8459:4fa0:20cc:1141]) by smtp.gmail.com with ESMTPSA id c23sm16087162pgc.72.2021.01.18.00.58.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jan 2021 00:59:18 -0800 (PST) From: Zhangfei Gao To: Bjorn Helgaas , Greg Kroah-Hartman , Arnd Bergmann , jean-philippe , kenneth-lee-2012@foxmail.com, wangzhou1@hisilicon.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Zhangfei Gao Subject: [PATCH v2 0/3] PCI: Add a quirk to enable SVA for HiSilicon chip Date: Mon, 18 Jan 2021 16:58:33 +0800 Message-Id: <1610960316-28935-1-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 chip PCI: set dma-can-stall for HiSilicon chip drivers/pci/ats.c | 2 +- drivers/pci/quirks.c | 27 +++++++++++++++++++++++++++ include/linux/pci.h | 1 + 3 files changed, 29 insertions(+), 1 deletion(-) -- 2.7.4