Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp370079pxb; Tue, 9 Feb 2021 02:30:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuwxcSDJpFPhnIh2aUS3kIbhWUB9bv6YAF6RzOBCKnQDdno17Ii2KNWFRvfk3mGflXIlX3 X-Received: by 2002:a05:6402:190a:: with SMTP id e10mr22122211edz.110.1612866613324; Tue, 09 Feb 2021 02:30:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612866613; cv=none; d=google.com; s=arc-20160816; b=Rl7WcPpz2wq8ubGMgFktCOWX8AOy2WbZxqICko6PwBM7iObk/G/htauHs0pGIBLp1P 4UB2e1NzxtByw87cPo9a7Zixm+DbLprDFh7GXCfz9huW5mpKt/EqbVydeo7x2HB7T3W3 0ijkWPbuI860DxVrYQBbNzCF/RtPHsPAzQwxG0rG5yD+I9xHlnqm61OcEoP5yRrrpBB4 uf5pTiyCpm8AoAl4A3Q9DJc6ZTzigszEt8J5vREGQCeYF2IMzrYnyXTck95TBoGQ3QhO 2/quklWNvsOVovdvjwFyATNWRq4zveyKUYhHRnWZs8+LsUA/odkpuGy25rBrPbs0ds1O HYCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zeO3sY4fbSBwh5uWv4Oqzo1Gi6tqlkYzvN/i5rqf3qU=; b=Fey5w8nYB+PToQlXAjgmrPF/ahs1YWQouoffdcIpyKH723tOTa3BmJFwXVczvYsV9V GbWc+ihVAj9T7uP1T1cKBkWXzBVuCBxHYC5IwqTmIhPNB3ZCjveHzKHUtIfw1BNZq4Hz VZMcp8nVukTHwKtO7Whb5vtYicDFY+e3KeTEZPCm3Ol4WbW+wvK4ZdL+0qgYflJ1094+ o1VqI4yAMcItt4E2e6Wrv9XarR5INtnAluMcokO7ePi74Zf065JDv5OWrltzfuiVa00/ UYTA3pFJDMyAAHMJt/BnoOgJtpLYOxv2WA1qc8ygH6xkFqVfCkctbgYbjT3i/D1u7Ew5 WQZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="spw3R/IQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k23si2719050ejq.693.2021.02.09.02.29.49; Tue, 09 Feb 2021 02:30:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="spw3R/IQ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231782AbhBIK1D (ORCPT + 99 others); Tue, 9 Feb 2021 05:27:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231439AbhBIKQe (ORCPT ); Tue, 9 Feb 2021 05:16:34 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29950C061794 for ; Tue, 9 Feb 2021 02:15:45 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id f14so30342203ejc.8 for ; Tue, 09 Feb 2021 02:15:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zeO3sY4fbSBwh5uWv4Oqzo1Gi6tqlkYzvN/i5rqf3qU=; b=spw3R/IQ+ixH4qYVWy1fvUGlrOVdgInPdBvFjZeqyzbtEOqs1+X95sHl/HLLJ4VLLk f/zCWcsYsIGVxFo3DtWdh4loosYk4PDaki0Z66TJGdxEAn1X4uIO411xgU0w+TS32yES TgNwhsLlSeYp5zOMvXfik/iwxbNg17Iyfg06o/2vjPLVXLaoyrwuS7yL3HPnMSj+CEc3 WCn62lyieJuwi6KV8qL+aBhCZ8EGrYKboHcc1VltCLlKjUceTsCqerLZaAod0AlBTQot bk/P7uysddwFDcJ+kmfogaC16xgoU6kBDC61vr+NFK0MDgPRUaQMOmzc5Xf+Fylvnazi WHWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zeO3sY4fbSBwh5uWv4Oqzo1Gi6tqlkYzvN/i5rqf3qU=; b=gqrmBaDs2Pe3pY4YQALJy5uxLYYz3k0M1fTkdWTMUrc3mcV5QQ/neJF5wlZrgIu2j1 vPo5ZPsrbDAVmkOGGeJba1eB0NFA1+lX0WJROkp6XjjiBZZ81yhBF0Gzq4IrlstVV1Gb 0lD6DSsoyMsSJmsaV+D6ZcMp8zDPUfqbAOOzuKQ/oke6eZ1MaKHD/z3xGj6FlcM3TldG oSlwLrJ5nggYhySyftpWva+n8nmWllMX37YNusjwhnnckTF560WUuqNVpJbWK8zjzYEt 3fnE4GDlolFFhiwED7DAxZaOn7IuOSY1lWMg229H2504pbEw37aU36XZRmI/1D6sUmmK 6JjQ== X-Gm-Message-State: AOAM532etfmWsJMYXwZ91dh5xkC8S+ei/qF4qpwZ4w5g5s7YQX35NA0D pfeLAJIjyweBvtT9HL8w1mh3GdSfA1KGkvvmmZgErQ== X-Received: by 2002:a17:906:d8ca:: with SMTP id re10mr1468224ejb.18.1612865743771; Tue, 09 Feb 2021 02:15:43 -0800 (PST) MIME-Version: 1.0 References: <20210104065503.199631-1-jasowang@redhat.com> <20210104065503.199631-17-jasowang@redhat.com> In-Reply-To: <20210104065503.199631-17-jasowang@redhat.com> From: Naresh Kamboju Date: Tue, 9 Feb 2021 15:45:32 +0530 Message-ID: Subject: Re: [PATCH V3 16/19] virtio-pci: introduce modern device module To: Jason Wang Cc: "Michael S. Tsirkin" , virtualization@lists.linux-foundation.org, open list , shahafs@mellanox.com, lulu@redhat.com, sgarzare@redhat.com, Randy Dunlap , lkft-triage@lists.linaro.org, Linux-Next Mailing List , linux-arm-msm , Linux ARM , Arnd Bergmann , Catalin Marinas , Will Deacon , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jason, On Mon, 4 Jan 2021 at 12:28, Jason Wang wrote: > > Signed-off-by: Jason Wang > --- > drivers/virtio/Kconfig | 10 +- > drivers/virtio/Makefile | 1 + > drivers/virtio/virtio_pci_common.h | 27 +- > drivers/virtio/virtio_pci_modern.c | 617 ------------------------- > drivers/virtio/virtio_pci_modern_dev.c | 599 ++++++++++++++++++++++++ > include/linux/virtio_pci_modern.h | 111 +++++ > 6 files changed, 721 insertions(+), 644 deletions(-) > create mode 100644 drivers/virtio/virtio_pci_modern_dev.c > create mode 100644 include/linux/virtio_pci_modern.h > > diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig > index 7b41130d3f35..6b9b81f4b8c2 100644 > --- a/drivers/virtio/Kconfig > +++ b/drivers/virtio/Kconfig > @@ -12,6 +12,14 @@ config ARCH_HAS_RESTRICTED_VIRTIO_MEMORY_ACCESS > This option is selected if the architecture may need to enforce > VIRTIO_F_ACCESS_PLATFORM > > +config VIRTIO_PCI_MODERN > + tristate "Modern Virtio PCI Device" > + depends on PCI > + help > + Modern PCI device implementation. This module implements the > + basic probe and control for devices which are based on modern > + PCI device with possible vendor specific extensions. > + > menuconfig VIRTIO_MENU > bool "Virtio drivers" > default y > @@ -20,7 +28,7 @@ if VIRTIO_MENU > > config VIRTIO_PCI > tristate "PCI driver for virtio devices" > - depends on PCI > + depends on VIRTIO_PCI_MODERN While booting Linux next tag 20210208 kernel on qemu_arm64 and qemu_arm mount rootfs failed. The root cause seems to be due to missing configs CONFIG_VIRTIO_PCI=y CONFIG_VIRTIO_PCI_LEGACY=y Reported-by: Naresh Kamboju Then I have to force to enable this MODERN config CONFIG_VIRTIO_PCI_MODERN=y and which enabled CONFIG_VIRTIO_PCI=y CONFIG_VIRTIO_PCI_LEGACY=y and the qemu_arm64 and qemu_arm boot pass. New build link, https://builds.tuxbuild.com/1oEse4EFsoQr1FkKBfiLmhMCe7j/ -- Linaro LKFT https://lkft.linaro.org