From patchwork Tue Feb 19 07:54:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 158689 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3377472jaa; Mon, 18 Feb 2019 23:57:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IZzAzbYpyIbQVWYk5CGxsQ/z+hWvvVlfkYrrl+UUbvr9g/ydbDDr564SrvV8lycRpTJxBhO X-Received: by 2002:a63:f201:: with SMTP id v1mr21572130pgh.232.1550563026096; Mon, 18 Feb 2019 23:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550563026; cv=none; d=google.com; s=arc-20160816; b=L5snFL7IX0A3xlRXQwGKb7IdiiiD+SVOwUVEPdLClMqRcDHs3Y2LXO6GwixRq5lz+7 ufPI+K6BzaoAxtHLjbV6cxycn7qTsCHrNvBCeR1F14zIZMNO/BD/lH4g1/yYg1WG3Ah1 clW0NH/StInDvYpssIihO6pAZ7WP3NP7ltqSc2ieUf2d9VMY6vviSMgUlGNDtQFIQp+W 76g0ZMk1RZI0NEGhM1Ffnb+iO1Fup5IK22EE7+rtFC8ro7+PDsFLz2vtoKF8ZF+yhzd4 5RXPIZbybTCUCbaKRnI1ZAfq33wE2sjiUQ6FV6/5IxTMXnjAkUBnlrQkpottC6vZjE52 /6UA== 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:mime-version :message-id:date:subject:cc:to:from; bh=V6AkuKxOBSJbBRilxZ3Lz8nWlmfqgfFbsKPb4K8uRB8=; b=cts2O3DlCV0V65nqwWY8Gayg3JiSFTWK8P47Ex3pKqjNst9x4MTxyTFell/HDcfMMV MGRIKzErZNOTS3EbFtPojf/ROHWpAFueYaTdH34VK2hVK6bhueSuM7GNxiIn7GjKHjOt E+ywKwPQyHXhquH10QywXRUW0WUDRws8do979hY+nD+4eY1v8wlcPY0ON+QqIGcmme6n CBaRAWCsBBrSCuYf1XQ4uCePRtdmJ+zHSPNby3yz5gc/+X3J9av1NmD6eCTn6bEalpHU WI2nScLZAKe4hHH01t4Ga9Vrms/TB5F4rxcqqO868ifkDWopHzddBKeXLFf/cK1jxnf1 9PTQ== ARC-Authentication-Results: i=1; mx.google.com; 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 t5si14972404pfb.67.2019.02.18.23.57.05; Mon, 18 Feb 2019 23:57:06 -0800 (PST) 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; 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 S1727354AbfBSH5D (ORCPT + 32 others); Tue, 19 Feb 2019 02:57:03 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3679 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725764AbfBSH5D (ORCPT ); Tue, 19 Feb 2019 02:57:03 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D7AF1B92424E6C398E6C; Tue, 19 Feb 2019 15:57:00 +0800 (CST) Received: from HGHY1l002753561.china.huawei.com (10.177.23.164) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.408.0; Tue, 19 Feb 2019 15:56:54 +0800 From: Zhen Lei To: Jean-Philippe Brucker , Robin Murphy , Will Deacon , Joerg Roedel , linux-arm-kernel , iommu , linux-kernel CC: Zhen Lei Subject: [PATCH 0/5] iommu/arm-smmu-v3: make smmu can be enabled in kdump kernel Date: Tue, 19 Feb 2019 15:54:38 +0800 Message-ID: <20190219075443.17732-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.19.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.177.23.164] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series include two parts: 1. Patch1-2 use dummy STE tables with "ste abort" hardware feature to abort unexpected devices accessing. For more details, see the description in patch 2. 2. If the "ste abort" feature is not support, force the unexpected devices in the secondary kernel to use the memory maps which it used in the first kernel. For more details, see patch 5. Zhen Lei (5): iommu/arm-smmu-v3: make sure the stale caching of L1STD are invalid iommu/arm-smmu-v3: make smmu can be enabled in kdump kernel iommu/arm-smmu-v3: add macro xxx_SIZE to replace xxx_DWORDS shift iommu/arm-smmu-v3: move arm_smmu_get_step_for_sid() a little ahead iommu/arm-smmu-v3: workaround for STE abort in kdump kernel drivers/iommu/arm-smmu-v3.c | 243 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 194 insertions(+), 49 deletions(-) -- 1.8.3