From patchwork Fri Jul 21 06:35:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanmay Jagdale X-Patchwork-Id: 12380 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp12314vqg; Thu, 20 Jul 2023 23:45:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHsuxTl4ZdIuLdzBSNxz5O/pHmfuRjP8fI8TSGnpbT0G6Z2wKHk2RNv1AVMd02Rxi5r+E7j X-Received: by 2002:a05:6a20:2d5:b0:127:aaf:59a6 with SMTP id 21-20020a056a2002d500b001270aaf59a6mr931046pzb.36.1689921948857; Thu, 20 Jul 2023 23:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689921948; cv=none; d=google.com; s=arc-20160816; b=eGze5vozjuSJt5HHP1U7FaW+Tw7T51bb8FhtV65V0KQ7a+bS5kLH9zvUSwO87R5coJ WVTWVgMih+KxWxCQZO4pmB4GDi8FaCYmB+kObRjJ3danRrlZi6ncpaSsgSq0JP5r7Jsa i/Y5ySbIkoosuHdMLe/nHYEXcOTIyqVmT9ohVboIQ1OSZNE7vhuo/YJ2Ubwr5ZaP1ZxU fcFxhQvpvlXnhaNkl3DW7bun66Q+pxoMUXxeVgUrtNAB1dNShMJgQPNy5o0gGAzLq/qz n4lGG5vkKQDRUhxJv5UdupKGGaptmRtfGa8t8d9cH9o86T/+Mtd+RBwGH60B+f3ifF44 HiBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nXKsQhXZQh7jLi2u+CGwysXvPU2p6+KEJSHslWJTMYw=; fh=P3Hm5+7CXcfKE6gyphrsCyk6JycMf7HHRQIgrMgIwTw=; b=wRpDESeV9niFl0f1ld6shIs918FXNMp/o3ngYuCipenFf4bbhDh72UYVNSpOY1dWDd 8Ja5ZB0lQZWToMvmZiFS1GHTtMfpQbzkHn1RptEbp8AJLXtAKbmzmxlHELvXdIdpXF3G pVEZ4EpxhKnbrGlNtM3byx9UH12VZbJGoxi4X0WDgw5rgpxT6kjzzZtLKPUUtIpC8eD9 0iPeWkdUwpkmBBaQaEYUEbfS5MoWHn11OjgBTkPnJNJgpxMpjyJBNx1D/Y0HDWu69dYg 1TEWzKaJ390Vnvhx/EqY7qpJpN3Qkoc5pxRYhVNUa9Hb9Xiiu7Zsm8Zn+j9WK8lPh9hM byKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=dgCMgKtz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a056a0016c800b00668731a497fsi2642971pfc.44.2023.07.20.23.45.11; Thu, 20 Jul 2023 23:45:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=dgCMgKtz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbjGUGgM (ORCPT + 99 others); Fri, 21 Jul 2023 02:36:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjGUGgK (ORCPT ); Fri, 21 Jul 2023 02:36:10 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F7D1113 for ; Thu, 20 Jul 2023 23:36:09 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36L2LDL1013218; Thu, 20 Jul 2023 23:35:38 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=nXKsQhXZQh7jLi2u+CGwysXvPU2p6+KEJSHslWJTMYw=; b=dgCMgKtz0xlcBjmmmclXsUBo+c87Orzvd+Hdp2GoaP3bzthpkpOhKK4l6apj9ue8GfGB jIvXRCAdxSsTEKJW3Pi0oCO3QBoty1j6vicauDx4DibI0qEhTzUnhm2RYd4/6cjnXfM8 nBouh+0TlYQJTVVBjRNel9L/OBAgbyyS7KuakMgd0m4DL7yuwKv2Sxn0HW8BuCG2+Abt CEb3SRqongtPdw6aw4rkDuIKX0edjE7VDFKJNxI0gKaBFizuZCNk0nIyAkeox8KCOzzG XMCeiF97VOa1n1pxSm4CVJ4TuXTA2i7aidGT6X0h3fQ6JDT6P+DBhu5j4Kcygz+Rgaek 0A== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ryh5egm40-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 20 Jul 2023 23:35:38 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 20 Jul 2023 23:35:36 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 20 Jul 2023 23:35:36 -0700 Received: from odyssey-031.marvell.com (unknown [10.75.48.92]) by maili.marvell.com (Postfix) with ESMTP id 43E2E3F7062; Thu, 20 Jul 2023 23:35:35 -0700 (PDT) From: Tanmay Jagdale To: , , , , CC: , , , , , , , Tanmay Jagdale Subject: [RESEND PATCH 0/4] Add support for SMMU ECMDQ Date: Fri, 21 Jul 2023 02:35:09 -0400 Message-ID: <20230721063513.33431-1-tanmay@marvell.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-GUID: NNuYSk_QPobThdYPGY-59G1A-d1JQXzN X-Proofpoint-ORIG-GUID: NNuYSk_QPobThdYPGY-59G1A-d1JQXzN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-21_03,2023-07-20_01,2023-05-22_02 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772011597636595457 X-GMAIL-MSGID: 1772011597636595457 Resending the patches by Zhen Lei that add support for SMMU's ECMDQ feature. I have tested these patches on Marvell SoC that has the ECMDQ feature. Zhen Lei (4): iommu/arm-smmu-v3: Add support for ECMDQ register mode iommu/arm-smmu-v3: Ensure that a set of associated commands are inserted in the same ECMDQ iommu/arm-smmu-v3: Add arm_smmu_ecmdq_issue_cmdlist() for non-shared ECMDQ iommu/arm-smmu-v3: Add support for less than one ECMDQ per core drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 419 +++++++++++++++++++- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 37 ++ 2 files changed, 448 insertions(+), 8 deletions(-)