Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp24976ybk; Tue, 12 May 2020 14:15:23 -0700 (PDT) X-Google-Smtp-Source: APiQypJS/tLs6Y8061C1XtmKTdyIlLppSvri3rc8GfWxUDjBmZ/IYcWUTUp/gs7VFzL9httlsSQy X-Received: by 2002:a17:906:3791:: with SMTP id n17mr13505777ejc.262.1589318123186; Tue, 12 May 2020 14:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589318123; cv=none; d=google.com; s=arc-20160816; b=u3qeOk4S/WHXW0MxO3oW6ibfl4ssM+YQuDcJ0k6orIPpor2NAwW/LHy57bq3sfYXR/ OWM8ahS7hogwyeJVKDck5T9Fth0x/pLnSLFw0gr56LOST2r7dsox1Q7lSLr7aZbfgw8z GwUlBm8dJMoSW51y7tzl3EkX7B3sp+XhRC2vT8oTRQkZ7e9Vv48RaOpp3tuMwJFlPozQ qLM6UOH1TUzLSRd1MSipK09HYQs+idaNFYB+0msS15e3PXoN1/DlXTk//olbJiND+7+G ZFUQbjuQfFcBu3HTpgrmjR+joEYKesH4Jm838ekxNPjbMDsM8H96NvfP2CXeuFPvsmM6 YGWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Xd1woiESW7QHq0V13x2hjq/bM6/cWyYL6yKiAB/3rjQ=; b=A775aIfmMhzG7O3LDyUOG7sXIo7kJrTixvbucEOfIn0JjE0VDdgDrejf1NTr7msPL4 0X+KwJfQ3xlQ2PKU/c7/GxXet8iDrFJ447kShqGBHAgLtxTc6M8P63BdZVFI4/Oj1Ph9 DQ0K+IWGsWENC/tAcsWsJMW3kL51h+msRE38ynr8dzjTJRcgxon9/fmFDH3UVSMF+jt/ hBPx/D+QvsjVjotAkVC25HCnn7AYSHGk4f3zJ9ljoAWJRaNw6Xco7c3TtAzNcUgxh/QA lXZ6nLh28WQ6yqtIHtl/eK1Lu0cheIJhASviI2cRQvaiPYiRjyFL8iSUy9HeUg7hLs9m nDOw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si4927372eja.402.2020.05.12.14.14.56; Tue, 12 May 2020 14:15:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731164AbgELVNV (ORCPT + 99 others); Tue, 12 May 2020 17:13:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:44818 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbgELVNV (ORCPT ); Tue, 12 May 2020 17:13:21 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BBE4AAC22; Tue, 12 May 2020 21:13:22 +0000 (UTC) Date: Tue, 12 May 2020 23:13:18 +0200 From: Joerg Roedel To: Lenny Szubowicz Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-kernel@vger.kernel.org, rafael.j.wysocki@intel.com, tglx@linutronix.de, x86@kernel.org, Lu Baolu Subject: Re: Failure to shutdown/reboot with intel_iommu=on Message-ID: <20200512211317.GG8135@suse.de> References: <20200506144558.GA4019@taurus.defre.kleine-koenig.org> <20200508150734.GP8135@suse.de> <20200512133429.GZ8135@suse.de> <26b328dc-2161-fdaa-f533-bf0027c13efc@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26b328dc-2161-fdaa-f533-bf0027c13efc@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lenny, On Tue, May 12, 2020 at 04:00:26PM -0400, Lenny Szubowicz wrote: > Some Lenovo laptops provide an ACPI DMAR RMRR that identifies the memory > range that the kernel should open up for permissable DMA access > for this purpose. Unfortunately, the PCI device that performs these > DMA operations is hidden from the kernel by the BIOS. Given that the > associated PCI device is hidden, the Linux kernel does not act upon > the associated DMAR RMRR. That sounds aweful. We should add to the VT-d driver that it sets up RMRR mappings for request-ids which are not present as a PCI device, to fix the Laptops which have it. For the others, is the region the TPM talks to via DMA known so that we can add a quirk? Joerg