From patchwork Wed Oct 10 14:44:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 148559 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp948775lji; Wed, 10 Oct 2018 07:44:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV626Z1kZeNplf4jDj0bP2mRyyTQnGm7RQ03u4hFUClJ2yEXtNW0rfxOltXz2ZpXOZZJd0/eG X-Received: by 2002:a63:d0e:: with SMTP id c14-v6mr29688732pgl.281.1539182660587; Wed, 10 Oct 2018 07:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539182660; cv=none; d=google.com; s=arc-20160816; b=L9r93QRKjmMkrmYwxg6WzagWRnpxT2qTBwlROPZxoai0i41U2x7iPI8DWlROqafuTV AwHGvRxf+Msky+5QzCyWgbbUP6lgWoyuuWB7d29oGsJBK9Dlar54PugOHIe/DHGKiFO9 gCJAHX/ynDDtA039hwrDtgv3LlP1+hSfqZn9D2FeVwKfvNB7b4gPDtgXvmOYiH2+uR3y I4LKLud7bgE0XZeO+AJJnlPn8VLuUMYEoLND2c9rEqm3qmswphhHnOI8w2Tea9sRMq3y rzlIDmilwjJqp4ULRYg4ypCv4/Mp6oG7icrwKW1r5Jn68IG9iPFEadnYxwTmTBDQKEwk gmQQ== 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=Rpuf2JMk8Gc53Xi6a8ncf+1FKfUDYBS+2j+fVX+wSuo=; b=MxWv9Oxep58KvxmJj0t9XcWukOCrvYtpnOGCHVM+/zHQcKIgB7g80o4gax+yGJS1Xx wFNgnlzNe7uu8BmlrZM96mgCHVKjJGMeCZ5pelPSXYOiHbt+GKh8+zlXG+oNqX0qyU9H 5oG/eXP7G8q1Qc79hR0A86UFFmvRnFFl/bT4DnXsX/DeEyg2/D6NQv1l8DEdwa5IGYSu J/th9e5tRJybwrv8XNPDpcpFBaZfV2Km1CWviXCPQ90npL6N7HraM9msZtUOzad81opr ch2uP8s9QT6t3D8eDwdabeE+3tRXWBZtwWuWOj70JM+wX4mk2MyT1iFjNoBA60y683WE Tybw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="V58OYLY/"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [209.132.180.67]) by mx.google.com with ESMTP id p126-v6si26200650pfb.77.2018.10.10.07.44.20; Wed, 10 Oct 2018 07:44:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=@linaro.org header.s=google header.b="V58OYLY/"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726617AbeJJWGt (ORCPT + 13 others); Wed, 10 Oct 2018 18:06:49 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:40195 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726664AbeJJWGs (ORCPT ); Wed, 10 Oct 2018 18:06:48 -0400 Received: by mail-wm1-f68.google.com with SMTP id z204-v6so6083410wmc.5 for ; Wed, 10 Oct 2018 07:44:18 -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=Rpuf2JMk8Gc53Xi6a8ncf+1FKfUDYBS+2j+fVX+wSuo=; b=V58OYLY/u11ihxM1xYlDt3dGwnRrT1eRLj24LQ+qUnvBjxYuNBms6b7l/CEeYfgJ2h YW1o+oN67i7fpZnDyq3a1DUlLsphxUlhISiJ3nWyX2gH6uJVF1GN2IYQziukG2SAgO4g 7FLpiczNU5I3sqDP+dA+TIQ4G56kqf5kM+YpU= 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=Rpuf2JMk8Gc53Xi6a8ncf+1FKfUDYBS+2j+fVX+wSuo=; b=YSUC0weg7GjN2G9lA74VHqca9NPkqVPC752/15yxnYLmJnROQCqLWJfeHGnti8d+kl H7QSGRej1upJkeGq97sn5ZmR8Hmzct0FPJyR3Edw/JJiK09j05J5Fq9E7R32VIrdJYH2 N6uuD1WU0WPsIOMCXvPp2rcAqVV8pgrinLnTEnLWCKizNRRRRTv+PQ+6yseQFsCDZB4m cfjs9PYA7pG4ItfC7FxWiBPPcJolwdJFuXedO2a2aZSdP7xrh8vuxQ5dxVj+f/+HjvJ/ Cw/x7/c+vOkNmkq0xh+xHVXp9XPvAt9ZgCE1T/+foi+/DNgv+zv5pEpb69P2ncKLwHUD AN+A== X-Gm-Message-State: ABuFfojLnMyARYsmc5OWzJorjP3n3p7kuB4whZF9NMIRmsrIft3LjR+1 ag3cY9oXX+hO35ZLuxQbOLfoWIqjlgw= X-Received: by 2002:a1c:adce:: with SMTP id w197-v6mr1234248wme.11.1539182657650; Wed, 10 Oct 2018 07:44:17 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 195-v6sm23284351wmx.21.2018.10.10.07.44.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 07:44:16 -0700 (PDT) From: Stanimir Varbanov To: Will Deacon , Joerg Roedel Cc: Robin Murphy , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov Subject: [PATCH] iommu: arm-smmu: handle client iommu translation fault handlers Date: Wed, 10 Oct 2018 17:44:07 +0300 Message-Id: <20181010144407.23336-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Call iommu client translation fault handler(s). Signed-off-by: Stanimir Varbanov --- drivers/iommu/arm-smmu.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 066f4c8daf4e..02a8aab0cc59 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -568,6 +568,9 @@ static irqreturn_t arm_smmu_context_fault(int irq, void *dev) fsr, iova, fsynr, cfg->cbndx); writel(fsr, cb_base + ARM_SMMU_CB_FSR); + + report_iommu_fault(domain, smmu->dev, iova, 0); + return IRQ_HANDLED; }