Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2117523pxa; Mon, 17 Aug 2020 00:51:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGfcfwd5Izu7Wt0VLOuYw3o9ICvLQ8N01Kj3yqVKWtFvNr5ASelf8zRFEqakw8QhV7ts/V X-Received: by 2002:a17:906:2796:: with SMTP id j22mr14731998ejc.532.1597650690118; Mon, 17 Aug 2020 00:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597650690; cv=none; d=google.com; s=arc-20160816; b=fuOVhufndLeu6V9F7mK0UGbu1+hU/QNQzLA9Xfug4FfNXgsOaf3dpvEuKjBIh3i89x fLMMm2RFpg6uKJOMGkZxEhVaPUVHjLuG6FIBBj+h6sl1uBg0J8mSHdAnZwGJuQN9GeXd OCl8ljCIniG3FFd9fz/BVI7IzDOTkbmO2lJAgUb29Zq9pFuG31BrdDLtpV4SxlbEsk+M KG33A624Wrpj4GwSgQ0zSSjVEeTI8SDarfI0ehJMwx5Itz5KG6AaqXu7lIF7Yp8fyz4L L5Yb4CX2SgoIe1ng5IaHr/wh9hp3bhclXS/q1t4ftGXHT6yAUx1R+OPZxchniTdo8P4f NhVg== 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:dkim-signature; bh=cw/muvMfVwQM3tnmB2fOuVz6DU93MV7CcM4HNO9F/0w=; b=arMzhgANwcTj+uRb5x7nRe2duoUQKEE+YAEIIrb7fjt4bN/xUDp3jzecDETV8MP9qs lZvGx2IxxODp1Y6v84yp5U9CCUOkCYUJMMDaOB66E/uuX/7IYiR/A/GW3oPg1Yywa4Pu xw48XfVPxGovprbJ7MaILZHRL7PUqq30P/f+cEnCcH9/fR3Bai1nRY97HFK4TURt6aii uigNAXlgrFjLdY6w6sTccIthJIY6oDw2OyCOE0/hKp+dMTHpbyQwi2EWwc6NReD7GbAW ztoV7S+sjsXZ1WxSsUbW3ggx2syBbFYzN+zmaDkJM15DS0ErVmucb5P78hP1KvrTChGa p90Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iO7lGho8; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp21si10642010ejb.136.2020.08.17.00.51.07; Mon, 17 Aug 2020 00:51:30 -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=@kernel.org header.s=default header.b=iO7lGho8; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726938AbgHQHu3 (ORCPT + 99 others); Mon, 17 Aug 2020 03:50:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:45244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbgHQHuU (ORCPT ); Mon, 17 Aug 2020 03:50:20 -0400 Received: from mail.kernel.org (ip5f5ad5a3.dynamic.kabel-deutschland.de [95.90.213.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CEB9D207DF; Mon, 17 Aug 2020 07:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597650620; bh=pEmZ0bJwP+2jy7JV6MazNJRUpimkMGqSRi6r/UUBXcE=; h=From:To:Cc:Subject:Date:From; b=iO7lGho8i1sBtrmzrfWbT3D8qOHg90bwGxSGDCjffji/8hjWZ805E7LsJ41smtHML YmMkrWO10hX92w47Sn53e6i9zgs85tWOyl5ZPn8xPMERnXY1CVRZ5O7ormvcXWfKzg txOZJrIUz1gnaQIhcenhYVN+YbW+sDs8Ty9Q1ezI= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1k7ZuL-00Bfbr-OZ; Mon, 17 Aug 2020 09:50:17 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , John Stultz , Manivannan Sadhasivam , Rob Herring , linux-arm-kernel@lists.infradead.org, Wei Xu , devicetree@vger.kernel.org, Joerg Roedel , Joerg Roedel , iommu@lists.linux-foundation.org, Chenfeng , devel@driverdev.osuosl.org, Suzhuangluan , linux-kernel@vger.kernel.org Subject: [PATCH 00/16] IOMMU driver for Kirin 960/970 Date: Mon, 17 Aug 2020 09:49:59 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a driver for the Kirin 960/970 iommu. As on the past series, this starts from the original 4.9 driver from the 96boards tree: https://github.com/96boards-hikey/linux/tree/hikey970-v4.9 The remaining patches add SPDX headers and make it build and run with the upstream Kernel. Chenfeng (1): iommu: add support for HiSilicon Kirin 960/970 iommu Mauro Carvalho Chehab (15): iommu: hisilicon: remove default iommu_map_sg handler iommu: hisilicon: map and unmap ops gained new arguments iommu: hisi_smmu_lpae: rebase it to work with upstream iommu: hisi_smmu: remove linux/hisi/hisi-iommu.h iommu: hisilicon: cleanup its code style iommu: hisi_smmu_lpae: get rid of IOMMU_SEC and IOMMU_DEVICE iommu: get rid of map/unmap tile functions iommu: hisi_smmu_lpae: use the right code to get domain-priv data iommu: hisi_smmu_lpae: convert it to probe_device iommu: add Hisilicon Kirin970 iommu at the building system iommu: hisi_smmu_lpae: cleanup printk macros iommu: hisi_smmu_lpae: make OF compatible more standard dt: add an spec for the Kirin36x0 SMMU dt: hi3670-hikey970.dts: load the SMMU driver on Hikey970 staging: hikey9xx: add an item about the iommu driver .../iommu/hisilicon,kirin36x0-smmu.yaml | 55 ++ .../boot/dts/hisilicon/hi3670-hikey970.dts | 3 + drivers/staging/hikey9xx/Kconfig | 9 + drivers/staging/hikey9xx/Makefile | 1 + drivers/staging/hikey9xx/TODO | 1 + drivers/staging/hikey9xx/hisi_smmu.h | 196 ++++++ drivers/staging/hikey9xx/hisi_smmu_lpae.c | 648 ++++++++++++++++++ 7 files changed, 913 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/hisilicon,kirin36x0-smmu.yaml create mode 100644 drivers/staging/hikey9xx/hisi_smmu.h create mode 100644 drivers/staging/hikey9xx/hisi_smmu_lpae.c -- 2.26.2