From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92AB2C4167B for ; Thu, 8 Dec 2022 18:22:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbiLHSWw (ORCPT ); Thu, 8 Dec 2022 13:22:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbiLHSWi (ORCPT ); Thu, 8 Dec 2022 13:22:38 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 108877E41C for ; Thu, 8 Dec 2022 10:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670523698; 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=ychQHUwEwsEArxEp4qxZeFUVJ+hihdcX72oLlNVwYdg=; b=bAbHq2kSeT5NJE7qtio2s106J2JR+p890txDHCLC3dMvrYZkN86yQnVPrOEVaJWcq9muA0 Ari3pyJr7frAw1jNS0pLLoG9yVewUqsepZ+MSevj4pNKnjUtM/7EKmpxdjp94Xz11rwWvW iW737icQshA1rGgQiHwTGFyuHXSCT4w= Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-32-UR_yUiOcOcuf0Ddk1bEe5g-1; Thu, 08 Dec 2022 13:21:37 -0500 X-MC-Unique: UR_yUiOcOcuf0Ddk1bEe5g-1 Received: by mail-io1-f72.google.com with SMTP id n8-20020a6b4108000000b006de520dc5c9so703517ioa.19 for ; Thu, 08 Dec 2022 10:21:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=ychQHUwEwsEArxEp4qxZeFUVJ+hihdcX72oLlNVwYdg=; b=FBwrrTp8jl3Zcyr2LZfR329PBfeC4lgevurjaoXW+CK73y56lZQYHLfZMtbh+cY4P4 YFhb0JxtZITdmgce7D36jTQsIUhUonSmaNPRzeLIBkKMrPkvgFHdFFU4PFDNogSNA5me wQ2QreNx60h9l/713Qhwh8JiYHfv1feD0amXUhNz+A0/Adi32WICiSGUL6ZDRPkyPgEn GNMPRO9FUh1w46SXXgZECQQZ28QG0tstcIoHPL19rulmbxW5AOezXz7pqWxMyGD3/NYI uHN9uFL4TVm7hdSCtbHltyJLhP+xE108Qf+6rVK9FxKsi+kMJ1k/Q1c9o0Wf44OCoVjT jINQ== X-Gm-Message-State: ANoB5plMxFukRTBu6qOSITaceNL5TTKyUtUdBxRsDbBbEEBrS+ggvQyC doisAVq23d3417n7mF/EUdrrL/ZtIrzqwcSXryZWT7F4NgnYAlgSW+0/YpW0tWmPSlKjMNfAfm1 BKqACQeBfBQrV X-Received: by 2002:a05:6638:3a0e:b0:375:5a81:aaef with SMTP id cn14-20020a0566383a0e00b003755a81aaefmr37668275jab.115.1670523696180; Thu, 08 Dec 2022 10:21:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf41wQHgLQ8pcnwGPZufFGrpcYUTndCIpbE6EWCQffj06k94Asww9fcCHha2PMb29U7gvcL0zQ== X-Received: by 2002:a05:6638:3a0e:b0:375:5a81:aaef with SMTP id cn14-20020a0566383a0e00b003755a81aaefmr37668268jab.115.1670523695974; Thu, 08 Dec 2022 10:21:35 -0800 (PST) Received: from redhat.com ([38.15.36.239]) by smtp.gmail.com with ESMTPSA id m16-20020a0566022e9000b006dfbfec899esm9268870iow.28.2022.12.08.10.21.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 10:21:35 -0800 (PST) Date: Thu, 8 Dec 2022 11:21:33 -0700 From: Alex Williamson To: Major Saheb Cc: Bjorn Helgaas , Cornelia Huck , Zhenzhong Duan , kvm@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: vfio-pci rejects binding to devices having same pcie vendor id and device id Message-ID: <20221208112133.36efe5ff.alex.williamson@redhat.com> In-Reply-To: References: <20221208165008.GA1547952@bhelgaas> <20221208102527.33917ff9.alex.williamson@redhat.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Thu, 8 Dec 2022 23:25:07 +0530 Major Saheb wrote: > Thanks Alex , > That works for me > > ~$ sudo driverctl --nosave set-override 0000:00:05.0 vfio-pci > ~$ sudo driverctl --nosave set-override 0000:00:06.0 vfio-pci > ~$ sudo driverctl --nosave set-override 0000:00:07.0 vfio-pci > admin@node-1:~$ sudo nvme list > Node SN Model > Namespace Usage Format FW > Rev > --------------------- -------------------- > ---------------------------------------- --------- > -------------------------- ---------------- -------- > /dev/nvme10n1 akqvf2-0_10 QEMU NVMe Ctrl > 1 274.88 GB / 274.88 GB 512 B + 0 B 1.0 > /dev/nvme11n1 akqvf2-0_11 QEMU NVMe Ctrl > 1 274.88 GB / 274.88 GB 512 B + 0 B 1.0 > /dev/nvme5n1 akqvf2-0_5 QEMU NVMe Ctrl > 1 274.88 GB / 274.88 GB 512 B + 0 B 1.0 > /dev/nvme6n1 akqvf2-0_6 QEMU NVMe Ctrl > 1 274.88 GB / 274.88 GB 512 B + 0 B 1.0 > /dev/nvme7n1 akqvf2-0_7 QEMU NVMe Ctrl > 1 274.88 GB / 274.88 GB 512 B + 0 B 1.0 > /dev/nvme8n1 akqvf2-0_8 QEMU NVMe Ctrl > 1 274.88 GB / 274.88 GB 512 B + 0 B 1.0 > /dev/nvme9n1 akqvf2-0_9 QEMU NVMe Ctrl > 1 274.88 GB / 274.88 GB 512 B + 0 B 1.0 > > I came across you blogspot after I fired the mail > http://vfio.blogspot.com/2015/05/vfio-gpu-how-to-series-part-3-host.html > Some should update https://docs.kernel.org/driver-api/vfio.html in > public interest , If I knew how to do that I would do it, Yes, that documentation is from before the driver_override method was introduced. There's some non vfio specific documentation of driver_override here: https://docs.kernel.org/admin-guide/abi-testing.html?highlight=driver_override#abi-sys-bus-pci-devices-driver-override Otherwise, documentation updates gladly accepted. This documentation is part of the kernel source tree and follows the same process as submitting code changes, outlined here: https://docs.kernel.org/process/submitting-patches.html The kvm@vger.kernel.org mailing list handles patches for vfio, but please keep me in Cc if you submit something. Thanks, Alex