Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp383613rdb; Thu, 30 Nov 2023 07:20:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgWxv8pmZepq1pbmX0hhJTC1q8Nv5jiCCjvK1d/7QuwXpkuZboGs+otSpm5ptWJfBojRyz X-Received: by 2002:a17:902:e54f:b0:1d0:307f:1bda with SMTP id n15-20020a170902e54f00b001d0307f1bdamr3937504plf.24.1701357605202; Thu, 30 Nov 2023 07:20:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701357605; cv=none; d=google.com; s=arc-20160816; b=EMdxoE1+Oj5/y/9ZE/QebkeXkEFcxg0fmkEwKnguJBal91yK4lsTo6UvXcwXEDhBzX hZNziwLTBXcfGGx/IVV3XCsVB82rrlfNYwaZ/Y7vzYBxSz23trZPEuPqWbA2L4umQs0S HJ0imxP41RV41UpHjTr14lKiPTzA8CC0ymX1Y3c5fzdMQ63bqDsb3Bmcm3OKaG0AK006 FtjkLmKv8YMtXq9FbICxDx37OIU0BpFigMi+5xkexAYLyLn/mAtSNazMXuhAqvtegSV9 /3VCBOdqTrIuAowxaZVNW2+aLLLfaYoZ+zJwIAv5QImK6ep1Ld80HwLtIKleTt4glWO1 +Caw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=77cknAywjb3vJ0XHOP+azo+o2YZ4goxYI+iunv5cNkc=; fh=ZUsWf3ycV7L2sh1/Rp8lfI05ItofPiplojnuRb/PDlY=; b=0IWa/b2Bwh65XToqOqFJoORiDmHTqTW9NQg4Vvtf5VHgeQv2FTZuwFYgPZtEMKJrNi aQLUmaJ2TfAmiSils50/VtHkDh43dNZN8n4d4ZX0+HdDqg0k1udgGCJu5qny6GGIeddj 2QoCV30AsCJXbojdytbWf1GuqcuQI1r8XsmHV8S7H11dY10qgxJqF56QGGEfWK3TQGGe ikRIWOqJ8S7M8v2DsVkbBms8kSl6QzCbsbN2ybQu1J74D2xgRIWGDlUr8KvDpHNOipDl BAX5v6NmreiHdV2uUmEtaDxuwS0/5cBZmEIsGvsnc9px8hRdLgPQc3POp82lb4FuGfEQ 4UKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Zq5m9SiU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id s5-20020a170902ea0500b001cfee3a6708si1458352plg.150.2023.11.30.07.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 07:20:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Zq5m9SiU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9F20D8030A3C; Thu, 30 Nov 2023 07:19:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346197AbjK3PTl (ORCPT + 99 others); Thu, 30 Nov 2023 10:19:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346053AbjK3PTk (ORCPT ); Thu, 30 Nov 2023 10:19:40 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77D2310E4; Thu, 30 Nov 2023 07:19:46 -0800 (PST) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AUFIA2H023978; Thu, 30 Nov 2023 15:19:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=77cknAywjb3vJ0XHOP+azo+o2YZ4goxYI+iunv5cNkc=; b=Zq5m9SiUXxY2h1wbcV+obb8yRmbXrTqJosuMDX8dbAWqH2Ttp8dWh4gsroHOduC8ViEn B2pC7kjgnYnDTRwEENPtilgVy8oypg5+V9CYsrFVejDgVSseNnRkPj492YvLOpSaeABC 5nPBk7gDdEz/JrBIsvl+hk//TLbgPgZHiApKrNIQPPDCmRwA+8AY+3dkNOMPvNNT0rNc Czmmax0HW1IsBtPFEN0rn6ZOYFuEAAgkQIMglG7S3f1nfW8PWNSQBXojasQVFWDbows7 NzXJvS9o5j0XsOZ9+jF6diujGGllgzca6WOoUGIrgPssubxxkG8Pk6s2a49o4IJxfPG3 pw== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3upbxsjep2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Nov 2023 15:19:22 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AUFJLw2003303 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Nov 2023 15:19:21 GMT Received: from [10.251.45.12] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 30 Nov 2023 07:19:16 -0800 Message-ID: <47f40099-4215-4c9e-9b7a-c5b981abc589@quicinc.com> Date: Thu, 30 Nov 2023 17:19:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/6] Add support for Translation Buffer Units To: Bryan O'Donoghue , , , , , , CC: , , , , , , , , , , , References: <20231118042730.2799-1-quic_c_gdjako@quicinc.com> Content-Language: en-US From: Georgi Djakov In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: OBdVb95uphT6pHD6u44i1ixvLsUD4i29 X-Proofpoint-GUID: OBdVb95uphT6pHD6u44i1ixvLsUD4i29 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-30_14,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 suspectscore=0 mlxlogscore=804 lowpriorityscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 clxscore=1011 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311300110 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 07:19:58 -0800 (PST) On 11/18/2023 1:21 PM, Bryan O'Donoghue wrote: > On 18/11/2023 04:27, Georgi Djakov wrote: >> The TCUs (Translation Control Units) and TBUs (Translation Buffer >> Units) are key components of the MMU-500. Multiple TBUs are connected >> to a single TCU over an interconnect. Each TBU contains a TLB that >> caches page tables. The MMU-500 implements a TBU for each connected >> master, and the TBU is designed, so that it is local to the master. >> >> The Qualcomm SDM845 platform has an implementation of the SMMU-500, >> that has multiple TBUs. A DT schema is added to describe the resources >> for each TBU (register space, power-domains, interconnects and clocks). >> >> The TBU driver will manage the resources and allow the system to >> operate the TBUs during a context fault to obtain details by doing >> s1 inv, software + hardware page table walks etc. This is implemented >> with ATOS/eCATs as the ATS feature is not supported. Being able to >> query the TBUs is useful for debugging various hardware/software >> issues on these platforms. >> >> v2: >> - Improve DT binding description, add full example. (Konrad) >> - Drop Qcom specific stuff from the generic binding. (Rob) >> - Unconditionally try to populate subnodes. (Konrad) >> - Improve TBU driver commit text, remove memory barriers. (Bjorn) >> - Move TBU stuff into separate file. Make the driver builtin. >> - TODO: Evaluate whether to keep TBU support as a separate driver >>    or just instantiate things from qcom_smmu_impl_init() >> >> v1: https://lore.kernel.org/r/20231019021923.13939-1-quic_c_gdjako@quicinc.com > > What is your suggested way to test this series ? Hi Bryan, Just break some driver to initiate a memory transaction with no valid context. I used venus for that. Or the simplest would be to just specify an invalid stream ID in DT for some device. Thanks, Georgi