Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2358169iof; Wed, 8 Jun 2022 03:18:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYlWL55+1YZNSO99Kre7BDehtwLtbYc630dLWNAOc8y6HFFANf5Ay3eE7FB9YJ9MEgf6W4 X-Received: by 2002:a17:90a:b290:b0:1ea:4358:27b3 with SMTP id c16-20020a17090ab29000b001ea435827b3mr2148733pjr.72.1654683534788; Wed, 08 Jun 2022 03:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654683534; cv=none; d=google.com; s=arc-20160816; b=Px/OkMZcKXp/2xKahCeP7vtpCwciDRFqMIQRON5I8PsWq5pujzT/g3tkD/d8jpk2QL 5rTZEO7seOje8l44srFA+gEwAza9QktUUOhemqXENIxmTA9OSTNxlvuCCrhS5kwL62hX mba74uQSXfzWAkGVPixLwysgdYy4WaV/a/1eymN8yAfxnW7K1Nl0fkcEVRoVJoK4jlG+ lmYiFzh2bSvUnw2Qxy4xHiEn84Et2ht/IZ5UpjiNVbFIZbj4QOTvv5hn2eQovw52Biph +rPfGOE7CfdeTHGjGkxob7RPNj3oxus2s9l3uc7EotVqgVk2bncYmcNcLQ5AbrrX1edH iVcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0mce/AbWJS8N2abWnygb+NCcQbErCMoK/WZZka14SPg=; b=QZsbV0Bew1R/N6tVL80gelLUUMH+dt2oXLX+maEFsPS3MjGU1RQR46mlxbhqo55VfL XDQmduqUJahhobDwB87a5jofV0IhCb+dTwH2HLn5E1EbDMqp9eECJ/aGMFi3A3ZA7lw/ tMr/fWpelRhvVCdbCDSNnRbmHkykrrnBeovJwcN1ZOzA/jwEW2C0zCMMKkht5LB0H4EA hcqiLof8Q5KJopeNIznRy8DCfCmkGv48AMB4JMANrbBjvQJmey7re8g5irXLy185h6MR VG3tQPMtkG/rKckDulVuzTDIHzDqVyp/NRAsuB+8gP1VjvCWruNkMpiWqeblh1vvquUj BQfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=X1f7zdlo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m19-20020a63ed53000000b003f605851c65si27218002pgk.303.2022.06.08.03.18.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 03:18:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=X1f7zdlo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE1F115243B; Wed, 8 Jun 2022 02:45:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235155AbiFHJpH (ORCPT + 99 others); Wed, 8 Jun 2022 05:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235144AbiFHJoi (ORCPT ); Wed, 8 Jun 2022 05:44:38 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 000481C471B for ; Wed, 8 Jun 2022 02:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654679478; 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: in-reply-to:in-reply-to:references:references; bh=0mce/AbWJS8N2abWnygb+NCcQbErCMoK/WZZka14SPg=; b=X1f7zdlox/FYcdl8EQ+Cyih0dRzH6of+XatT2yEV0lLK6Ae/VB+1gdAHkgUsWT5+eERmGu Jyjtle57laWX/jB9fi6DPaPUwg3j2S+6LSDntQ3NBQF/eRJLcfB+APho0ezMcGTdGDXcI8 WcArHRBTcevpat+dF1kUioTAFYHKQx4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-210-ecap_Jd4Puen-NXH4ANqQw-1; Wed, 08 Jun 2022 05:11:14 -0400 X-MC-Unique: ecap_Jd4Puen-NXH4ANqQw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8633685A583; Wed, 8 Jun 2022 09:11:13 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.40]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 49AFC40CF8E8; Wed, 8 Jun 2022 09:11:13 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id B2E2B18003AA; Wed, 8 Jun 2022 11:11:11 +0200 (CEST) Date: Wed, 8 Jun 2022 11:11:11 +0200 From: Gerd Hoffmann To: Javier Martinez Canillas Cc: Alex Williamson , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch, kvm@vger.kernel.org, Laszlo Ersek , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Improve vfio-pci primary GPU assignment behavior Message-ID: <20220608091111.wx2dbboxg2ntuapw@sirius.home.kraxel.org> References: <165453797543.3592816.6381793341352595461.stgit@omen> <20220608074306.wyav3oerq5crdk6c@sirius.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > >> But also, this issue isn't something that only affects graphic devices, > >> right? AFAIU from [1] and [2], the same issue happens if a PCI device > >> has to be bound to vfio-pci but already was bound to a host driver. > > > > Nope. There is a standard procedure to bind and unbind pci drivers via > > sysfs, using /sys/bus/pci/drivers/$name/{bind,unbind}. > > > > Yes, but the cover letter says: > > "Users often employ kernel command line arguments to disable conflicting > drivers or perform unbinding in userspace to avoid this" Thats helpful at times to deal with driver and/or hardware quirks. Example: Years ago drm drivers used to be horrible when it came to unbind, leaving oopses and panics left & right when you tried (luckily it works much better these days). [ leaving this here for completeness, snipping the remaining reply, noting that we are on the same page now ] thanks & take care, Gerd