From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8D36543255; Tue, 31 Oct 2023 19:34:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D21640294; Tue, 31 Oct 2023 19:34:09 +0100 (CET) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mails.dpdk.org (Postfix) with ESMTP id 5500440285 for ; Tue, 31 Oct 2023 19:34:08 +0100 (CET) Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-28094a3b760so1372753a91.3 for ; Tue, 31 Oct 2023 11:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1698777247; x=1699382047; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=JQRvH36C68tiKu5IDRUeaSPuv9FFhlN2dlXc+M2n8DE=; b=dgkzn/Eh5whRnO4BP/tWXP5IdvX6PpG2byigxJBZMAPNI+VJbAnN3oTPqVbq6AREzV 3FriyVx19gCIJJDZPUVobRt25CwDrdAltJ3qR+CJRjW1WvJSOEyqU6qI59Td3LC9lYX7 F4Ox6w355wSeCu5RO2eVv7XZqaWNS1RcjcoDaeWXjmZT5i+nJ9F4d6gc/6KgqFjquPWt NIfaaP21wIpxUGROTpD7Kp5AXfhXiuepixVQ8401HxYha6b2+6Fa8fITEHLwBtq1BQ1h 0V7VqroaZaXWH4NUcHvBoUlI/Guz0xSJCZ98NGG7znzudD35UnrLU5L0N3f6B1jqwQAg O0NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698777247; x=1699382047; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JQRvH36C68tiKu5IDRUeaSPuv9FFhlN2dlXc+M2n8DE=; b=JEsGtPBXxAmM7fiqz+MrVKVK9CF8Yo78VYTWFfPXD//u1/zPpC7MQ8nITxrqYcIlOF s5qXVtmabgZ2lw5vx1RgK5Gr0kzz2y6q6MbrVa06Kl44CubZg/F7+ikvj4dOtCLIcrGU UMbnxTqix+B5PCgbqAD0tYPHxS7rUdcy2n+GCtOKE/sEE2o9BnCSHnU7f2AWNskg+ua8 kDRwa0jUstK+lqYvG0j54JrS4Fppy+ZJPrxe4JvsASimahLokHDgApK6x7wzfT0LoP86 FzplfqRWc8JJLzqHEdc182q+7SSBEyclExIoSRblYdFtWZ+Zdw7DjLfp/nEgI/ATK9Sp Phpg== X-Gm-Message-State: AOJu0Yygz+x06/XXb2xcfj0lUtehTXjrsLJUPFRH83zJctEjw9vNm9Te uvC2Ot7WNHjoTKoqrqtyXD1fnA== X-Google-Smtp-Source: AGHT+IHPyzpfGaT+uBSoAINx+iIHh2GiaEooiT2jaRSfTQDdTj9fgATEi2hbc+EDNJjqU65rvlsd2A== X-Received: by 2002:a17:90b:a0c:b0:280:3f25:66c9 with SMTP id gg12-20020a17090b0a0c00b002803f2566c9mr6211092pjb.46.1698777247457; Tue, 31 Oct 2023 11:34:07 -0700 (PDT) Received: from fedora ([38.142.2.14]) by smtp.gmail.com with ESMTPSA id ce9-20020a17090aff0900b0027d015c365csm1404674pjb.31.2023.10.31.11.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 11:34:07 -0700 (PDT) Date: Tue, 31 Oct 2023 11:34:03 -0700 From: Stephen Hemminger To: Fidaullah Noonari Cc: dev@dpdk.org Subject: Re: [PATCH v3] usertools: add check for IOMMU support in dpdk-devbind Message-ID: <20231031113403.479faabd@fedora> In-Reply-To: <20220321122727.614290-1-fidaullah.noonari@emumba.com> References: <20220315062652.78332-1-fidaullah.noonari@emumba.com> <20220321122727.614290-1-fidaullah.noonari@emumba.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 21 Mar 2022 17:27:27 +0500 Fidaullah Noonari wrote: > + > +def check_noiommu_mode(): > + """checks and enables the noiommu mode for vfio drivers""" > + global noiommu_flag > + filename = "/sys/module/vfio/parameters/enable_unsafe_noiommu_mode" > + > + try: > + with open(filename,"r") as f: > + if f.read(1) == "1": > + return Note: flake8 reports missing comma after filename in the open() statement. Overall Acked-by: Stephen Hemminger