From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4799FA04B1; Thu, 3 Sep 2020 13:10:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BE4F51C0AF; Thu, 3 Sep 2020 13:10:06 +0200 (CEST) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by dpdk.org (Postfix) with ESMTP id 49EEF1C0AE for ; Thu, 3 Sep 2020 13:10:05 +0200 (CEST) Received: by mail-ej1-f46.google.com with SMTP id z22so3261544ejl.7 for ; Thu, 03 Sep 2020 04:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:mime-version:thread-index:date:message-id:subject:to:cc; bh=IfGOw+1X7egH5B1COKuIxF+bRpLSQgXfRbPruQnVSpI=; b=WEmsYwvpuu3lo5IZL82xDQp2sR3qitF4WeTDjnAQvcOOY6KjS7UtOGa5c3pCk/mptJ nmP/pvOz7qao6Vvs/YPBIET967fE5t0ichehE6HsJbIbevBugHqLZp+PiVuPxLKUZdIG yhMdMqRj526Ar1frepvSeaRTDLYLFf4Vh5Ido= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:thread-index:date:message-id :subject:to:cc; bh=IfGOw+1X7egH5B1COKuIxF+bRpLSQgXfRbPruQnVSpI=; b=t2Ca5I9qJQ0d255qvjznhrcoolaN8PKSN671JBeQyl7ZFMRqTtrpz4bcZKzIz2CSaO U+MPOQJauPacSzrf/CKpSCIDe8mDsVvqyMkjRb+MbNU0rKTBrJudcO4ZYJFQAjvn4X/q dVVUIJiMvzDwcRus8ROBxiusBf0wpzq6bA33rFPju4Nvdarzq/zCICk2aAPZ0zxLs+Q1 JqSuHpD/qHQ/efTM6IQ1cQDnI2q+jg+e5yfrLo+BTtZRgUcQ1C7YQcmO5cKU7YPaab++ p9Xnx8lV6tYjLPkRUdNA05pDUlhL58ZhPzHhs3eon2NlCZgx8NF+rCno0f3RKxc9VqRD GIog== X-Gm-Message-State: AOAM532M86HTs9X36au0b/LWLKbOlYy7omUKhV67UfI28ETy3xm5NbFB NUtMuUCEEEJFOB9FdZG64toi+ydVMM2tNGhyxnIBY7h/kNg= X-Google-Smtp-Source: ABdhPJxEICln1RIovn9etsFWf7nDI5KBrSHHESX763wu1qEHYqCzaq1S14QHzGq7cuaN2jRiacIl0IfkX0ykkgzewC8= X-Received: by 2002:a17:906:f950:: with SMTP id ld16mr1469824ejb.489.1599131404594; Thu, 03 Sep 2020 04:10:04 -0700 (PDT) From: Vikas Gupta MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdaB2MHzsYQdncDQQPCfcevlFTPyQQ== Date: Thu, 3 Sep 2020 16:39:50 +0530 Message-ID: To: dev@dpdk.org Cc: Ajit Kumar Khaparde , Vikram Prakash Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Issue with VFIO/IOMMU X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, I observe an issue with IOVA address returned by api rte_memzone_reserve_aligned (flags=3D RTE_MEMZONE_IOVA_CONTIG) used for que= ue memory allocation. With high level debugging, I notice that IOVA address returned in mz->iova is not mapped by VFIO_IOMMU_MAP_DMA so in turn SMMU exception is seen. *Details for the setup* Platform: Armv8 (Broadcom Stingray) DPDK release: DPDK 20.08 PMD patch: https://patches.dpdk.org/project/dpdk/list/?series=3D&submitter=3D1907&stat= e=3D&q=3D&archive=3D&delegate=3D dpdk-test is launched using below command *dpdk-test --vdev -w 0000:00:00.0 --iova-mode pa * The test suite is launched over dpdk-test application command prompt using command =E2=80=98cryptodev__autotest=E2=80=99 The issue is seen when several iterations of above test_suite is executed which in turn do multiple calls to rte_memzone_reserve_aligned, rte_mempool_create and rte_memzone_free, rte_mempool_free. Function *vfio_type1_dma_mem_map* with map/unmap event is executed several times during test_suite run. Any inputs would be helpful. Thanks, Vikas