Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp349526ybg; Sun, 26 Jul 2020 06:36:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVH/x316v8t+qULLRZAizuCwH9WBzNHdJbvqZ4keFrI3IyZB0ffa87gsLAqcloo6qbhzlj X-Received: by 2002:a50:eac5:: with SMTP id u5mr17641908edp.6.1595770579423; Sun, 26 Jul 2020 06:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595770579; cv=none; d=google.com; s=arc-20160816; b=Wr+upjbTIdHNsYPWVEy2T4OJAb21ZeN/G0vehq/ldiwrHotQD0M9aKLqi6A0ylcI0U Ecyj5SknOJJm0ggyry6y3p+7O83j7AsLFk66cU4DNo6JjWjXQ1iY7UkrPMzQYl6wJmio 5ulFaw/YgTSF4xlu5/fW0aSq7aM33y4ywAESlG6b/MNlwspCL1h1AWmZ0zSO4DfnnOuE P1E4hTUnZ9ZWg/BaCPOetdhXI5wGR6NsBWaU4c71ND0ScZrv45NHRW82B2AxTOUc4Lhv V4Lk2fjR/xI/f08sn3PMemQZXH0znjRaA3ukDYezfePnbzBIWYulPrIjcQkJn6v4taM9 GbZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=iTaxd5cRNerBU1s0VlqjPCDz5Femm/Gjt2raRtL7aSI=; b=VW4u/C008raIdfQV8NWXweqjpHUqbTmIuE04qAvxoa80+Ql5LaGVucUYkQNJz+mqya TW3eMY5kDZBeCrCMQq9w9d/4reyscGI3m1IQn8uwT0dEN6yVr+YePHrB23yuNuZG/s95 Gkszg5PhDwmY2wYfm/uFDi/O6IaG04swx8ehdQGbN6eMAAgDFi4gMiUZ1JBAEiThRaY0 ixjAufvzgUixAjo/98qlKTWeQdxdCfY8fVNpkV+t3FtOmH+PoB7E/ULugXvslIy0YCGL iDlf1yxaVdgYFh1+99NR47kKl6fStCYh1GySsAXR1JmdszLCxjTnZ1g1ec59T0FOa5GX Q+kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hostfission.com header.s=mail header.b=YsdxGaTU; 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=REJECT sp=REJECT dis=NONE) header.from=hostfission.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si3863755edo.580.2020.07.26.06.35.57; Sun, 26 Jul 2020 06:36:19 -0700 (PDT) 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=@hostfission.com header.s=mail header.b=YsdxGaTU; 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=REJECT sp=REJECT dis=NONE) header.from=hostfission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727041AbgGZNdu (ORCPT + 99 others); Sun, 26 Jul 2020 09:33:50 -0400 Received: from mail1.hostfission.com ([139.99.139.48]:33726 "EHLO mail1.hostfission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726711AbgGZNdu (ORCPT ); Sun, 26 Jul 2020 09:33:50 -0400 Received: from www1.hostfission.com (www1.hostfission.com [139.99.139.52]) by mail1.hostfission.com (Postfix) with ESMTP id 5ED0E421AE; Sun, 26 Jul 2020 23:33:48 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hostfission.com; s=mail; t=1595770428; bh=5GI31f2PQFEE8ETcCbbiabG/rWi1p3ssraz0xzQtMXI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YsdxGaTUGSITkBkADdCb+6NXyqd0mkxNwMzvSIvJ+A5HZmURJhNwzo6HjiUk8D61o ur54QrE0fn4OT63Pq3jiy7B8TWa1aTcY4pieX6NtWlXOyhVnQjCFjdb/PMMABEjjQ6 PH+pb139hWFVFKgxM8NYCpIPiigV3waRbII2pUBE= Received: from mail.hostfission.com (www1.hostfission.com [127.0.0.1]) by www1.hostfission.com (Postfix) with ESMTP id 5269D53932; Sun, 26 Jul 2020 23:33:48 +1000 (AEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 26 Jul 2020 23:33:48 +1000 From: Geoffrey McRae To: Alex Williamson Cc: hdanton@sina.com, tj@kernel.org, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org Subject: Re: Poor windows VFIO performance, GPU stalls (bisected) In-Reply-To: References: <30452714b2935b530b9c2bbf2d20854a@hostfission.com> <20200726073052.284dadb2@x1.home> Message-ID: <1a23ec3c1f1b9d213ddc5fb8adcd9005@hostfission.com> X-Sender: geoff@hostfission.com User-Agent: Roundcube Webmail/1.3.8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-26 23:32, Geoffrey McRae wrote: > On 2020-07-26 23:30, Alex Williamson wrote: >> On Sun, 26 Jul 2020 17:49:07 +1000 >> Geoffrey McRae wrote: >> >>> Hi All, >>> >>> The commit 22540ca3d00d2990a4148a13b92209c3dc5422db causes a Windows >>> KVM >>> guest running under QEMU with a VFIO passthrough GPU to randomly >>> stall >>> when using the GPU leading to the guest assuming that the driver has >>> hung. Reverting this commit resolves the problem. >> >> Please double check this commit ID, I can't find it in mainline or >> linux-next. Thanks, >> >> Alex > > Confirmed: > > https://github.com/torvalds/linux/commit/22540ca3d00d2990a4148a13b92209c3dc5422db Sorry, I just noticed my error, it should be: aa202f1f56960c60e7befaa0f49c72b8fa11b0a8 > >> >>> The host system is configured with the following kernel arguments >>> which >>> may be related: >>> isolcpus=0-5,24-29,6-11,30-35 rcu_nocbs=0-5,24-29,6-11,30-35 >>> >>> The system is an AMD Threadripper 2970WX on a Gigabyte x399 AORUS >>> Gaming >>> 7 board. >>> It has two GPUs each being passed through to two separate KVM guests, >>> one is an AMD Radeon 7 in a Linux guest, the other is a GeForce >>> 1080Ti >>> in a Windows guest. >>> The cores used for these two guests are isolated from the host for >>> performance reasons. >>> >>> Any insight as to why this is occurring would be appreciated. If you >>> need any more information or would like to test patches please let me >>> know. >>> >>> Kind Regards, >>> Geoffrey McRae >>> HostFission >>> >>> https://hostfission.com >>>