Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2225168pxb; Wed, 30 Mar 2022 19:55:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZHLnsoq6ufx3c3AYsR9mPO/039usy0Fo/tgoGX1ebPRAdq1OjtRavMxn0vvcTTwjdui5b X-Received: by 2002:a17:90b:118c:b0:1ca:307:9b50 with SMTP id gk12-20020a17090b118c00b001ca03079b50mr3551324pjb.26.1648695322561; Wed, 30 Mar 2022 19:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648695322; cv=none; d=google.com; s=arc-20160816; b=C8bwj0ygLHypw9qaWzkZ2DPVlprhZ2rGAXoooCzt69urPzk1e76aO3XIewNwO5vVYO qRpTDcbPF/AHa2/AYGVSCYM5pG7u7SBwv6lAAGVPp+9Oj+TNEVNelhqFDQ0quW0mvgfX PdoR5Xu1thZBUYWGlE4Wkv3Rg8F5T1oHnPiXvCbzP0UYLn9vyEepqDpldSz3G9/n6vgu ruTWPMxekfKwZ4jxgqKySi+RF0XZA/XazWn7anbNjF26rHmoTO2ViVMU7ULB/4Ux0m6w apt7nbs0Pbjq8nWZag5nctY7RAjScJhIa/caZHZjvs5G4KN2CR4AtYrzEvvvBpGhl3tS iEzg== 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=SSKi39PDpsQvMNgCfkcWVHQSLGZLiPgFI8QRLkyxSyY=; b=BtJMl3C+BFxNo1Epd0S91o0tfSIymnj0OsDLFZjaywKr8n6t3vhEF30m93NTan+gsY fK7y4podUzRLxFIw9J8XGU4l4feeEq6haaAqV5q/B8sl12LHUIvHM/XH6hQtCbx8pImn E6dqF7iNVV0YM9E7TLASXcSGNVv8uORp87a214qB+bXGUSD7aJRErFJ/ZMEFaCksqZOX TmAXOpfkQOSjKg4wHAFth6FzR+fGPcR708PtHZ8vN131bG8uVhn9kCTiuzpRjnMDTek/ 2cH8vRW/Y/o9/XVFLShLR+S3YhHRdJCarr5DGL32HTtt0KYBlzT1Wdr0hsyOc6UXS50r oJNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=SJnzdWhn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n10-20020a63ee4a000000b003816043f0d5si21758275pgk.714.2022.03.30.19.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 19:55:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=SJnzdWhn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EBCA7D4CAC; Wed, 30 Mar 2022 19:40:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349584AbiC3R5R (ORCPT + 99 others); Wed, 30 Mar 2022 13:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349575AbiC3R5Q (ORCPT ); Wed, 30 Mar 2022 13:57:16 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5FC52981A for ; Wed, 30 Mar 2022 10:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=SSKi39PDpsQvMNgCfkcWVHQSLGZLiPgFI8QRLkyxSyY=; b=SJnzdWhnhu1gvA7Efu9RcTl+A2 z7PdgE1deeP5jyFNyL/D5kZe6Cm6S+bTlzBOgWYNmh/S2eSgdrZowCNHvTS9p6PyD486pRo1xa0y9 TXmrU2cUfn9krlLbrfjVnMMBkdlv6rdZfEdZ1gOkgofp9tjPqbxPE3rUtm64kyqX6C9RKagXWhZjI sWkf0PuxUUppvonwUVDTrkSC/i/wksPR5LQkqbCx5YQjq/dSkc7/zrk3Hgr5G1l/2zi9L0ohR4FqP 4lEHJLXc9bKF3apW3rCT+Z5PA9dwunQsc9IvwtvKkQ7yUXMaQzbkPt9qfzkKIKFo4/FS98bx8iJbL wV2ozBuw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZcXX-00H3Sa-Pd; Wed, 30 Mar 2022 17:55:27 +0000 Date: Wed, 30 Mar 2022 10:55:27 -0700 From: Christoph Hellwig To: "Alex Xu (Hello71)" Cc: Christoph Hellwig , regressions@lists.linux.dev, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org Subject: Re: "dma-mapping: remove CONFIG_DMA_REMAP" causes AMD SME boot fail Message-ID: References: <1648659326.eabkokyuym.none.ref@localhost> <1648659326.eabkokyuym.none@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1648659326.eabkokyuym.none@localhost> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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=no 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 On Wed, Mar 30, 2022 at 01:51:07PM -0400, Alex Xu (Hello71) wrote: > Hi, > > After a recent kernel update, booting one of my machines causes it to > hang on a black screen. Pressing Lock keys on the USB keyboard does not > turn on the indicators, and the machine does not appear on the Ethernet > network. I don't have a serial port on this machine. I didn't try > netconsole, but I suspect it won't work. > > Setting mem_encrypt=0 seems to resolve the issue. Reverting f5ff79fddf0e > ("dma-mapping: remove CONFIG_DMA_REMAP") also appears to resolve the > issue. > > The machine in question has an AMD Ryzen 5 1600 and ASRock B450 Pro4. This looks like something in the AMD IOMMU code or it's users can't deal with vmalloc addresses. I'll start looking for a culprit ASAP.