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 X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBC8FC55179 for ; Wed, 21 Oct 2020 17:31:43 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 180462224E for ; Wed, 21 Oct 2020 17:31:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.com header.i=@suse.com header.b="WZwwrHeB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 180462224E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 031076EE30; Wed, 21 Oct 2020 17:31:42 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id A8C7C6ED85 for ; Wed, 21 Oct 2020 13:59:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1603288764; 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=/WERzru05Wb69j9MCKzq+AXXcyefJcxA2Zc/EP6RoqE=; b=WZwwrHeBy/Ul0HckOcAl5CtPMetXmjU4TkIwf/aC4TL5xdNtsXsTKqgPEyQiRpfsSuDzEv GO/1z7aAIU/TYUrNSyDXpB3fQm4bQm65EQoqempmfuNxyhqnk5IJsyJY3oGGX36b48b1Zv WJwO/2EXx0FYX2oczl2m+QcOkbfD09I= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 61683ACE6; Wed, 21 Oct 2020 13:59:24 +0000 (UTC) To: Jason Andryuk References: <1a3b90f4-564e-84d3-fd6a-3454e8753579@citrix.com> <20201015113109.GA68032@Air-de-Roger> <20201021095809.o53b6hpvjl2lbqsi@Air-de-Roger> From: Jan Beulich Message-ID: <9bbf6768-a39e-2b3c-c4de-fd883cc9ef85@suse.com> Date: Wed, 21 Oct 2020 15:59:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Mailman-Approved-At: Wed, 21 Oct 2020 17:31:41 +0000 Subject: Re: [Intel-gfx] i915 dma faults on Xen X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , intel-gfx@lists.freedesktop.org, xen-devel , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" T24gMjEuMTAuMjAyMCAxNTozNiwgSmFzb24gQW5kcnl1ayB3cm90ZToKPiBPbiBXZWQsIE9jdCAy MSwgMjAy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m9uLWRldmVsb3BtZW50IHB1cnBvc2VzIG9mIHdo YXRldmVyCmtpbmQuCgpKYW4KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX18KSW50ZWwtZ2Z4IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0 b3Aub3JnCmh0dHBzOi8vbGlzdHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50 ZWwtZ2Z4Cg== 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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E147C388F9 for ; Wed, 21 Oct 2020 13:59:40 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C011F21481 for ; Wed, 21 Oct 2020 13:59:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="WZwwrHeB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C011F21481 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.10087.26591 (Exim 4.92) (envelope-from ) id 1kVEeG-0001WZ-0V; Wed, 21 Oct 2020 13:59:28 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 10087.26591; Wed, 21 Oct 2020 13:59:27 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVEeF-0001WS-Sj; Wed, 21 Oct 2020 13:59:27 +0000 Received: by outflank-mailman (input) for mailman id 10087; Wed, 21 Oct 2020 13:59:27 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVEeF-0001WN-4i for xen-devel@lists.xenproject.org; Wed, 21 Oct 2020 13:59:27 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 2f32bf0b-bfd6-4569-9dab-e8d2cd0b16d0; Wed, 21 Oct 2020 13:59:25 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 61683ACE6; Wed, 21 Oct 2020 13:59:24 +0000 (UTC) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVEeF-0001WN-4i for xen-devel@lists.xenproject.org; Wed, 21 Oct 2020 13:59:27 +0000 X-Inumbo-ID: 2f32bf0b-bfd6-4569-9dab-e8d2cd0b16d0 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 2f32bf0b-bfd6-4569-9dab-e8d2cd0b16d0; Wed, 21 Oct 2020 13:59:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1603288764; 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=/WERzru05Wb69j9MCKzq+AXXcyefJcxA2Zc/EP6RoqE=; b=WZwwrHeBy/Ul0HckOcAl5CtPMetXmjU4TkIwf/aC4TL5xdNtsXsTKqgPEyQiRpfsSuDzEv GO/1z7aAIU/TYUrNSyDXpB3fQm4bQm65EQoqempmfuNxyhqnk5IJsyJY3oGGX36b48b1Zv WJwO/2EXx0FYX2oczl2m+QcOkbfD09I= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 61683ACE6; Wed, 21 Oct 2020 13:59:24 +0000 (UTC) Subject: Re: i915 dma faults on Xen To: Jason Andryuk Cc: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , Andrew Cooper , intel-gfx@lists.freedesktop.org, xen-devel References: <1a3b90f4-564e-84d3-fd6a-3454e8753579@citrix.com> <20201015113109.GA68032@Air-de-Roger> <20201021095809.o53b6hpvjl2lbqsi@Air-de-Roger> From: Jan Beulich Message-ID: <9bbf6768-a39e-2b3c-c4de-fd883cc9ef85@suse.com> Date: Wed, 21 Oct 2020 15:59:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit On 21.10.2020 15:36, Jason Andryuk wrote: > On Wed, Oct 21, 2020 at 8:53 AM Jan Beulich wrote: >> >> On 21.10.2020 14:45, Jason Andryuk wrote: >>> On Wed, Oct 21, 2020 at 5:58 AM Roger Pau Monné wrote: >>>> Hm, it's hard to tell what's going on. My limited experience with >>>> IOMMU faults on broken systems there's a small range that initially >>>> triggers those, and then the device goes wonky and starts accessing a >>>> whole load of invalid addresses. >>>> >>>> You could try adding those manually using the rmrr Xen command line >>>> option [0], maybe you can figure out which range(s) are missing? >>> >>> They seem to change, so it's hard to know. Would there be harm in >>> adding one to cover the end of RAM ( 0x04,7c80,0000 ) to ( >>> 0xff,ffff,ffff )? Maybe that would just quiet the pointless faults >>> while leaving the IOMMU enabled? >> >> While they may quieten the faults, I don't think those faults are >> pointless. They indicate some problem with the software (less >> likely the hardware, possibly the firmware) that you're using. >> Also there's the question of what the overall behavior is going >> to be when devices are permitted to access unpopulated address >> ranges. I assume you did check already that no devices have their >> BARs placed in that range? > > Isn't no-igfx already letting them try to read those unpopulated addresses? Yes, and it is for the reason that the documentation for the option says "If specifying `no-igfx` fixes anything, please report the problem." I imply from in in particular that one better wouldn't use it for non-development purposes of whatever kind. Jan