Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1136213pxb; Wed, 10 Feb 2021 00:32:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnQVQP7JYBmsRbzURQeC5Rpr8uVjPaDvlJp16OkpxbEfUrcBvpukdSnfQk0RE2xqvZQgf6 X-Received: by 2002:a17:906:560b:: with SMTP id f11mr1973561ejq.162.1612945923922; Wed, 10 Feb 2021 00:32:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612945923; cv=none; d=google.com; s=arc-20160816; b=Wqcpw+TqApVq+PrSASRMtxp6PHeE54w3IYLO0EHbnogbCa5btUcwKjHgSS3VniO2R+ zW2qxZORsxXAERZu15/U60yXYpdKRgx8gAx7jlRuSpbHd7vGognwtSrGmAO0q0syLQ3Q 3kUtEEKYR8mEjaX6lltNQ8EoPHnB6R868qstLB+zvGOLQF5QrMXjf7Rav3Lk7gztbzKo Xrlo3/7dMsF2vI1Ipq1acoAhuBDfRpEul3dztu7UcM6/Nx26ZOwZp31vaegIvFrx+sG0 cj0J7bMiwONms4pJVAn8qriVviHc7k4aqEYGsExKlCScICpebhZwJj8Xfa21Edf/ZOyK ilkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=/OTZsXH2tD0HeIgH/lI8h+bZrxEF7HhE4ZNU7vfxtAk=; b=I4Wdo4WHPJLi8QNGuPxyd1PdnQcJS50ksrJKmLXh+zuO5TM6QckKk9Vsjn9ktIeFyo WEadJNt4it9LVS+79Jhmznhxm8dzKSde4gMurr4n/aOXJ78CnINQs7OFe6RtxlxHi+mu m/5hzcQDbIc5V93H9IEcIaQqUL11rk7VOchcu0XOO/4FdbUHVPSwNpxCbHVSLm/dvRh+ z4Z6zfz65gbpMdCl+om0E5R0v2ml5LY10gnL7ZBotwcubthev69FjSWISAe6N+cxAHE1 WEVfjPMCWvoe58AYJFUat0Jb6XDQXPPqIN/JnN46QIsJ2R5SJsnILx+moX0PXqGonNYs YX4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="cuWCo1f/"; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si1129266edm.151.2021.02.10.00.31.40; Wed, 10 Feb 2021 00:32:03 -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=@redhat.com header.s=mimecast20190719 header.b="cuWCo1f/"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230294AbhBJEkU (ORCPT + 99 others); Tue, 9 Feb 2021 23:40:20 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:39708 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbhBJEkT (ORCPT ); Tue, 9 Feb 2021 23:40:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612931932; h=from:from: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=/OTZsXH2tD0HeIgH/lI8h+bZrxEF7HhE4ZNU7vfxtAk=; b=cuWCo1f/A4gyVLBhG4LITRvr7TkeqGtNULr2CpXg+F1UsyCCy+1yASUHLPHuw0dsP7+YER HRDhTvfRosywFRcHsYipvfu18rRfYqsMJf7GPjEWD+kknb7I1lntfOYankRhX+cIBRFtjV RvyG8xlTPrL/4FBf1JXPvKyuLVvCmEk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-395-f0srScS3Nb6YY6KHfMJKew-1; Tue, 09 Feb 2021 23:38:50 -0500 X-MC-Unique: f0srScS3Nb6YY6KHfMJKew-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2B3C3100A8FC; Wed, 10 Feb 2021 04:38:48 +0000 (UTC) Received: from [10.72.12.223] (ovpn-12-223.pek2.redhat.com [10.72.12.223]) by smtp.corp.redhat.com (Postfix) with ESMTP id BA6B460C4D; Wed, 10 Feb 2021 04:38:35 +0000 (UTC) Subject: Re: [PATCH V3 16/19] virtio-pci: introduce modern device module To: Naresh Kamboju 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 References: <20210104065503.199631-1-jasowang@redhat.com> <20210104065503.199631-17-jasowang@redhat.com> From: Jason Wang Message-ID: <9cc9d649-e891-8bcc-e5f8-cec7c0d40077@redhat.com> Date: Wed, 10 Feb 2021 12:38:34 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/2/9 下午6:15, Naresh Kamboju wrote: > 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/ Thanks for the reporting. I will post a patch to fix the def config to enable VIRTIO_PCI_MODERN. Thanks > >