Received: by 2002:a17:906:da85:b0:8b1:202f:4753 with SMTP id xh5csp671493ejb; Thu, 16 Feb 2023 08:44:30 -0800 (PST) X-Google-Smtp-Source: AK7set/ECj69CPbVdbkaXpqBbBo/YcCeGKBLvSobn6rM0J4zDm2auziOhd+hinjKQvBysPnzCDgB X-Received: by 2002:a05:622a:3c7:b0:3bc:fa79:c20c with SMTP id k7-20020a05622a03c700b003bcfa79c20cmr4970013qtx.16.1676565870074; Thu, 16 Feb 2023 08:44:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676565870; cv=none; d=google.com; s=arc-20160816; b=sgPhFx/6zFxezBwrseOd8l7FTR2XmWDFrOHXzKelvpAtKP7G1L2s9QqMlMLOi0tAkn GXzlnU/bUySfqwN+RUkz8Bagsa3C3VHSOe1FmTVN49zSGtS1fVjIqYSClRwhP6nLU60i /oxlN0yQuV8bYsSZ9GvZJ6ll3V4pqZeIg8ZGOtxUKEiyx2/CLiWRvpeXpjxmQAmxC3Gi tK3c2HyuMDL7KuzTblup73WBOgcRx/smKslVO4d39uoukHzegTDAgsFGoyznaFXg7GsF 3acKNMPAijYLuXqp3/859gIy6Lo9wJ+sBY55kFwzn10H/OWVWpcFAGSV0dfaeRt0RhBt xq6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=YkZXoSfMpXv6hHL7OdKJdWYbQdxHTmhtUamhXXJavso=; b=a5ofeOV+IvosbT55LVH6TEJgHRasog5BIBvlmERpsNxTBkDGUL4s7jYSU+uFfA8Z++ IhguZgiyT+MSjiGIHk3ka91rM6nhZjZ/0UqWiMzQb5ml4vxoBEuAvA+cYZdR5hORxdso Empcic0TMCg1NC2hnjqXKnbqKpUWbira7fbxcOWjjRZcx1YSsWB175yxzjM5zv43pCbP i778kYwZk7nvXlGB5QyGcceokc6lIpc/BQTdf5oPMrXA9N6lwfyGk3KFRibv5MDBWrgP Zx8QKmgTdaazk5ZHrxiRhI3vq4QSw6a4ZFgdeIqdFB7JjfhA6gNqVz02HrguFV0Lstrv mObg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P8pDxHR2; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k16-20020ac85fd0000000b003b0b9d2c5b4si1811778qta.769.2023.02.16.08.44.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Feb 2023 08:44:30 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P8pDxHR2; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pShMr-0003zx-Vc; Thu, 16 Feb 2023 11:44:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pShMq-0003vv-2Z for qemu-devel@nongnu.org; Thu, 16 Feb 2023 11:44:20 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pShMo-0000sT-Dj for qemu-devel@nongnu.org; Thu, 16 Feb 2023 11:44:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676565856; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YkZXoSfMpXv6hHL7OdKJdWYbQdxHTmhtUamhXXJavso=; b=P8pDxHR2MSvFCZZMwLYN9HZhJolyLYYKJt78RWY9YLUGwytp/nq1vLyJuFVk3keKkqBmB1 In+68zUcUKyxEcH7nzxDGHFisgiD+CQ0VNL6srHwglmPEGirdkTHvVTqMoQugbY8KCeYFl InnA+2fpgPBlMNfR07NxyTzEGnZGFUM= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-640-Lgk8AxhGM8yvA12G_lKPaQ-1; Thu, 16 Feb 2023 11:44:14 -0500 X-MC-Unique: Lgk8AxhGM8yvA12G_lKPaQ-1 Received: by mail-qk1-f197.google.com with SMTP id j10-20020a05620a288a00b0070630ecfd9bso1530856qkp.20 for ; Thu, 16 Feb 2023 08:44:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YkZXoSfMpXv6hHL7OdKJdWYbQdxHTmhtUamhXXJavso=; b=7PWSrYvZ+zGYwGLB+rZEO4CdTUDWiyIXcNaTABw46cu2VdDWBYy/UcOsEXs+H92FaY Oed2YV4QLqknEBIjGDRDagwGduS+dWbZt75Fg1hsiE1m56auBiT5e/GZbD5tMnxGxI4N JqRMHfCHeWVqhcgR4l3/kzn0cMP+DQSM4payYq+IufgeReeDVTIz3gTlcRBMAGXLLX/W +46z+9JV1FY6cif0xIPrWSM9tWrdZa/pAJfX1+z/k5YwBrSHorJ16VBxT0AbfnxVCQ9s 9ijWgGY+0kj+86/yIqSTXYt8QabHDs8fVlfIMuVgyo+7EpBg/4ZhdSVfEnjQQZ4mHgl7 d3jw== X-Gm-Message-State: AO0yUKVLS0aekC6y0ma3ZVTkNuTkBx/M7ItdBHseGmkf1Mpr+Wp4Gehb aInuZUl1/jDgXdgZgtfPnQzOdngxvJZC5JY74W9lpuQtOog78sF28k3vAbD0ol4MXpquS25BnWK S4osIKCLKoudn9tE= X-Received: by 2002:a05:622a:1741:b0:3a8:dae:d985 with SMTP id l1-20020a05622a174100b003a80daed985mr4769268qtk.14.1676565854368; Thu, 16 Feb 2023 08:44:14 -0800 (PST) X-Received: by 2002:a05:622a:1741:b0:3a8:dae:d985 with SMTP id l1-20020a05622a174100b003a80daed985mr4769245qtk.14.1676565854056; Thu, 16 Feb 2023 08:44:14 -0800 (PST) Received: from ?IPV6:2a01:e0a:59e:9d80:527b:9dff:feef:3874? ([2a01:e0a:59e:9d80:527b:9dff:feef:3874]) by smtp.gmail.com with ESMTPSA id x1-20020ac81201000000b003b9b41a32b7sm1475816qti.81.2023.02.16.08.44.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Feb 2023 08:44:13 -0800 (PST) Message-ID: <7a63bcd1-0b54-63ea-55c1-925fe4dcf6d5@redhat.com> Date: Thu, 16 Feb 2023 17:44:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [RFC PATCH 03/16] hw/arm/smmuv3: Rename smmu_ptw_64 Content-Language: en-US To: Mostafa Saleh Cc: qemu-devel@nongnu.org, jean-philippe@linaro.org, peter.maydell@linaro.org, qemu-arm@nongnu.org References: <20230205094411.793816-1-smostafa@google.com> <20230205094411.793816-4-smostafa@google.com> <608e2401-83f1-e7c6-af17-25da22df76a6@redhat.com> From: Eric Auger In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=eric.auger@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.351, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: eric.auger@redhat.com Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: tqj3d70NJ451 On 2/16/23 13:56, Mostafa Saleh wrote: > On Wed, Feb 15, 2023 at 05:53:23PM +0100, Eric Auger wrote: >>> + SMMUTLBEntry *tlbe, SMMUPTWEventInfo *info) >>> { >>> dma_addr_t baseaddr, indexmask; >>> int stage = cfg->stage; >>> @@ -384,7 +384,7 @@ int smmu_ptw(SMMUTransCfg *cfg, dma_addr_t iova, IOMMUAccessFlags perm, >>> g_assert_not_reached(); >>> } >>> >>> - return smmu_ptw_64(cfg, iova, perm, tlbe, info); >>> + return smmu_ptw_64_s1(cfg, iova, perm, tlbe, info); >> May need to rename the trace points as well >> > All PTW trace points have a stage argument which is set correctly > from stage-1/stage-2 ptw functions: > trace_smmu_ptw_page_pte > trace_smmu_ptw_block_pte > trace_smmu_ptw_invalid_pte Ah OK. Forgot that. > > trace_smmu_ptw_level is the only one that had no stage argument, I can > change it to be consistent with the others. OK Thanks Eric > > Thanks, > Mostafa >