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 0EBD7A0551; Mon, 17 Feb 2020 02:14:33 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 41CEB1B951; Mon, 17 Feb 2020 02:14:32 +0100 (CET) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by dpdk.org (Postfix) with ESMTP id B5F302C4F for ; Mon, 17 Feb 2020 02:14:30 +0100 (CET) Received: by mail-lj1-f178.google.com with SMTP id q8so16871171ljb.2 for ; Sun, 16 Feb 2020 17:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=y76GbpKSp6t9u0rlw3FqU6MeqKtjM99HWvbfBABkTX0=; b=k4AKJZNm4pLOyGKN0xVJlrrFz9PcfyORMbmpR1gE1lM1cs1258hysfs4H/EdbIRHMc rDozpVK+BbOmaV6g1+JbiuO4JpDFz5THIHWUSDFOKV1eh04MVdceN1r6l5NNQaFviRr0 9o/loF5rYT4s0Qv0HShPYz2ErR/HuoV3i9miCDcTfwEI0UPsGOtVL8/SHAyHrs/Qto4J ZfGCtTU4dK+///BlXS/FQ8cmcGLE+QyzhpSiO0I165wgb1s59hqiaaiav4VZbz3lZc8B /ME/OuIVxD/8fJJ1D6y8smuJGCjWnoS+ToFJYCJ23Niy62D3ptBuTKhNNXBbFcuTmGth X6Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=y76GbpKSp6t9u0rlw3FqU6MeqKtjM99HWvbfBABkTX0=; b=cUdKVlrPQW+P8x+7ASw4Wv2/3Lo0r8my6M2Kbbj2rQCn+7Swc1jFHRDTK5oKliGdn4 oHpr5/E63H9j2cTjM1qHFyO8yhiHix4IS7Uwk5/ePME3nYjmUiOWlAkQS+daQnIUt+jF tqDBhwK0xftbhoCXk9mhaoXGvoabySIcjZquWwP8JmAiKYuS8fSBoLwQ7zXWy3et+gC2 ESXNS3TpFzMPanHpxT91XJkLsetcQY5yEylavaVZNpWguNuaRWd48mj0LfiJags0V7t8 ZLLDNvrYzSY+4ttsrqneVUNv+4jETwahxrn2L8HVjVn38egXkbyMSwQEVuCNZh3SGto1 fWGg== X-Gm-Message-State: APjAAAU+4Xk4Yaj+3NvyC7RNLMqb0hdIsw6wbfHkD+gdNU56PhikGJ8M YOpPK54Vo5lJYrMEzgfk0j8= X-Google-Smtp-Source: APXvYqyrk8J8jWfLijUY/0KfniMQ+4LOEG8Yp/AAwzqmNN3i1i7K61foFoUNe1Ss4AJPLg/ijTOIoA== X-Received: by 2002:a2e:3514:: with SMTP id z20mr8236574ljz.261.1581902070074; Sun, 16 Feb 2020 17:14:30 -0800 (PST) Received: from Sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id e25sm7455201ljp.97.2020.02.16.17.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2020 17:14:28 -0800 (PST) Date: Mon, 17 Feb 2020 04:14:24 +0300 From: Dmitry Kozlyuk To: Ranjit Menon Cc: Pallavi Kadam , Harini Ramakrishnan , dev@dpdk.org Message-ID: <20200217041424.22afb6dc@Sovereign> In-Reply-To: <20200210091426.17b215db@Sovereign> References: <20200208114546.546db2d0@Sovereign> <9a3fca13-bebc-cc87-d955-06b41fdbcdfe@intel.com> <20200210091426.17b215db@Sovereign> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Windows Draft Build 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, > "Dpdk.sln" builds OK, will try launching sample apps > a bit later. Netuio driver consistently fails to install on Windows 10 in QEMU with virtio-net (modern interface). Described below is my attempt to install the driver from clean "windpdk-v18.08-clang" branch of "dpdk-draft-windows" repo. The only change is hardware ID in INF file. What am I doing wrong here? 1. QEMU version: 4.2.0 QEMU command line: qemu-system-x86_64 \ -enable-kvm \ -cpu host -smp 'cores=4,sockets=1,threads=1' \ -m 6G \ -drive "file=$disk,format=qcow2" \ -nic "user,id=winnet,model=e1000,smb=$HOME/src/dpdk" \ -netdev 'socket,listen=:10000,id=dp0' -device 'virtio-net-pci,disable-modern=off,disable-legacy=on,netdev=dp0' \ -netdev 'socket,listen=:10001,id=dp1' -device 'virtio-net-pci,disable-modern=off,disable-legacy=on,netdev=dp1' \ \ -vga qxl 2. Loading unsigned drivers is enabled as follows: Microsoft Windows [Version 10.0.18363.418] (c) 2019 Microsoft Corporation. All rights reserved. Z:\>bcdedit.exe -set loadoptions DISABLE_INTEGRITY_CHECKS The operation completed successfully. Z:\>bcdedit.exe -set TESTSIGNING ON The operation completed successfully. Z:\>shutdown -r -t 0 After that, the desktop message shows: Test Mode Windows 10 Pro Build 18362.19h1_release.190318-1202 Including this step FTR, it works for other drivers. 3. Device status (no conflicting drivers): The drivers for this device are not installed. (Code 28) There are no compatible drivers for this device. To find a driver for this device, click Update Driver. Device event log (note the hardware ID part): Device PCI\VEN_1AF4&DEV_1041&SUBSYS_11001AF4&REV_01\3&13c0b0c5&0&20 requires further installation. 4. INF file is modified to include corresponding hardware ID: diff --git a/kernel/windows/netuio/netuio.inf b/kernel/windows/netuio/netuio.inf index b1696cc50..b6fd2c798 100644 --- a/kernel/windows/netuio/netuio.inf +++ b/kernel/windows/netuio/netuio.inf @@ -55,6 +55,7 @@ DriverVer= %F158B.netuio.Description%=netuio_Device, PCI\VEN_8086&DEV_158B ; I40E_DEV_ID_25G_SFP28 %F37D0.netuio.Description%=netuio_Device, PCI\VEN_8086&DEV_37D0 %F153B.netuio.Description%=netuio_Device, PCI\VEN_8086&DEV_153B +%virtio.netuio.Description%=netuio_Device, PCI\VEN_1AF4&DEV_1041&SUBSYS_11001AF4&REV_01 [netuio_Device.NT] CopyFiles=Drivers_Dir @@ -121,5 +122,6 @@ F158A.netuio.Description = "DPDK netUIO for Intel(R) Ethernet Network Adapter XX F158B.netuio.Description = "DPDK netUIO for Intel(R) Ethernet Network Adapter XXV710-DA1" F37D0.netuio.Description = "DPDK netUIO for Intel(R) Ethernet Connection X722" F153B.netuio.Description = "DPDK netUIO for Intel(R) Ethernet Connection I217-V" +virtio.netuio.Description = "DPDK netUIO for virtio-net (modern)" netuio.DeviceDesc = "netuio Device" netuio.SVCDESC = "netuio Service" 5. Installation command fails after waiting for several minutes: Z:\>pnputil /add-driver Z:\windows\x64\Debug\netuio\netuio\netuio.inf /install Microsoft PnP Utility Adding driver package: netuio.inf Driver package added successfully. Published Name: oem2.inf Unable to install driver package: This operation returned because the timeout period expired. Total driver packages: 1 Added driver packages: 0 Z:\> Please find "C:\Windows\INF\setupapi.dev.log" attached as "clean_setupapi.dev.log". Using devcon.exe from DDK yields similar result and log. I also tried to add event tracing to the driver, but the driver doesn't even get loaded, that is, DriverEntry is never called, so the cause shouldn't be in driver code. > I'm planning to use QEMU and virtio PMD (modern interface, > because legacy uses PIO, which is not implemented by netuio) by adding a > project similar to existing "librte_pmd_i40e". Also tried doing this, attaching patches. Got the same result. I start every new attempt to install a driver variant from clean system restored from disk snapshot. "Userpci" driver from my port installs and binds OK, so this is not an QEMU/Windows incompatibility issue. -- Dmitry Kozlyuk