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: 10634673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EDE7B69B4 for ; Wed, 10 Oct 2018 14:44:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23E7C2A527 for ; Wed, 10 Oct 2018 14:44:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1757B2A543; Wed, 10 Oct 2018 14:44:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 991CF2A527 for ; Wed, 10 Oct 2018 14:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=18MF2kjtwslJpyQ1asYe6kklTrd+y4H8QCafOCGt9uw=; b=UCs Vp57ntKAJICX9b8ApHG4Mhhjsh2BBOdV/nNf+9nHtrn3aanC3APCf+eBMMb4WTfTehzkjPq92NKPO 0LWVgYwInRQWBFplI0jVotLnAOEvlIkK3gMElpMCjpA+H3qA2s6VlmrvfRt5wH8YsrS6PPhUx8m01 3Kg7UpeaIK/+cc7kjQpxbDqQTZ9DZLf0SGCA+KOwEdZcxkIn9b0TR23K8inFxrkjkdRFU/2gNdfhU oEffZ4DDLKRkUmzlDKLmxiWuxAficVyJigjwqZJogBkfyYs/s2ZY0TQzm7XhwmMZjOwalkDwZrR/2 wYJ3a2SqD4CLLjuz1YZ+PiOEI/HdCXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAFjG-0004aD-WD; Wed, 10 Oct 2018 14:44:51 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAFix-0004Jx-5D for linux-arm-kernel@lists.infradead.org; Wed, 10 Oct 2018 14:44:40 +0000 Received: by mail-wm1-x342.google.com with SMTP id e187-v6so6093304wmf.0 for ; Wed, 10 Oct 2018 07:44:19 -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=baM7kZO0ccVABEKAavOAEHf6TTavN/Gyv2Fr1J8rHiK7EuI82c27hcu/eU2KDlkEaJ 4+7IbD8ztfCwhIdFJLCU5jVNQ1EWtQd5wwfecqLU4CiAoUBsEaPc/5UVLuewYj4zOxSa 3OpDHoN29s6pzLFodMafYFLVYisZK40ghDXpyReI8qugJblQ61XGqVc3zEuymcjyR0wb r0S7aJsNmYMGjy62cKhrsYyDRV5glXKC7Qa0hoF9alhchQgLkx9NUgaNk3vMdTBGXBkV OS0aKqpl40y99ycQC9KYbUWBcz5CmGBGOi60ECvTBdqFeGKcVWj2vY1i0vVy6lPwIhKT 92bw== X-Gm-Message-State: ABuFfogel3fkWxemlAHjNhOD1f8AbOo0AAGU/zNKDoLzo5jzuUF/NhUb EayRqAarwecTnLURw5AJSkeQAw== X-Google-Smtp-Source: ACcGV62fAqofyW2nhw9yN9mhAGxgealG6H0HehlIz7znPWbVFuT91oTDy0dPybfBx4BCHY40FgVLGw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181010_074431_301869_183BD59A X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Stanimir Varbanov , iommu@lists.linux-foundation.org, Robin Murphy , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Call iommu client translation fault handler(s). Signed-off-by: Stanimir Varbanov --- drivers/iommu/arm-smmu.c | 3 +++ 1 file changed, 3 insertions(+) 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; }