Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2273336rwb; Thu, 15 Dec 2022 23:04:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7OM9YbR1SO7bQYYE3UF9r1rVXRj8Plq0AiPIsNYE3vvPJmVaoMmC/vrlUsM90jIwfZJIIw X-Received: by 2002:a17:90b:702:b0:219:5f68:586e with SMTP id s2-20020a17090b070200b002195f68586emr32551028pjz.18.1671174247327; Thu, 15 Dec 2022 23:04:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671174247; cv=none; d=google.com; s=arc-20160816; b=a//m9zo/0gV2i64YV9Lq1BvFYeCjtGR2RClovrN0nxOfaWPVYsqEd6QVWoYV19j0hA mbZLIT1IN130Jti6+zVC+3PWeaDQtcjAAVP0NjZfEXkBZH88+wJy14OZu8Rx3edP8Z28 jjmSQwTmv+PlB6ew66ygXd6BRNeAUA3FTVgK7b+fOJPp65eHZ+ZorFtWB6+HI1v2jjAS XIcd6E8yh+R8duZ/Vx0NwL7W2MJtTaLJow9jxitRKJqPN1ReFCiLk6giMbcya2rHv1XE j2RL9r3FwiEmvyToQnFNRXIq+ubFchpi3Lv8LCny/BgjH09SwL6tAjCEEyDQlEhQ3dXQ fi4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ikzPdgHv4kC15WdqaXi9KkwgmzsAnvw5dRyIzUtEa54=; b=cX6gCdUWkHvtrkhBpCBcZKgdQ7eFcuslVBkDkl1kGCBqKTz/FiPqVPEm43MCmismOx gP3JxgyhL1DKYpsDW5FAGU2F5+lsdY2UvOFLn+lmnqIAKtjnkv2Nfl/Sm64wPo5YjOmu MyN8IT5sdUnxdtDWDuzfBfnbk2q8O0ZVQik1hStSpQzuDT1AGKv5Mpre0cDLmYiwe5K6 6bgvFGSGMBcTwsqu/VGFHS3eTiQB4RKRjPZtjqgUCiaPRApCwwodcOqrVnY9LtOyV5vQ JyjB8qgKy/QsNDVUKBQMN81oaivC2+4/0xpnEfqtGyLKaefzlfgajksVzkXuJFQunUQM qb/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pb18-20020a17090b3c1200b0020d542eb5f0si7578345pjb.110.2022.12.15.23.03.56; Thu, 15 Dec 2022 23:04:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229908AbiLPGrC (ORCPT + 68 others); Fri, 16 Dec 2022 01:47:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbiLPGqv (ORCPT ); Fri, 16 Dec 2022 01:46:51 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C94D755ABF for ; Thu, 15 Dec 2022 22:46:49 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id A8D8E68AA6; Fri, 16 Dec 2022 07:46:45 +0100 (CET) Date: Fri, 16 Dec 2022 07:46:45 +0100 From: Christoph Hellwig To: Mikhail Gavrilov Cc: Takashi Iwai , alsa-devel@alsa-project.org, hch@lst.de, m.szyprowski@samsung.com, Linux List Kernel Mailing , Robin Murphy , iommu@lists.linux.dev Subject: Re: [6.2][regression] after commit ffcb754584603adf7039d7972564fbf6febdc542 all sound devices disappeared (due BUG at mm/page_alloc.c:3592!) Message-ID: <20221216064645.GA24446@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 Ok, it seems like the sound noncontig alloc code that I already commented on as potentially bogus GFP_GOMP mapping trips this. I think for now the right thing would be to revert the hunk in dma-iommu.c (see patch below). The other thing to try would be to remove both uses GFP_COMP in sound/core/memalloc.c, which should have the same effect. diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index 9297b741f5e80e..f798c44e090337 100644 --- a/drivers/iommu/dma-iommu.c +++ b/drivers/iommu/dma-iommu.c @@ -744,9 +744,6 @@ static struct page **__iommu_dma_alloc_pages(struct device *dev, /* IOMMU can map any pages, so himem can also be used here */ gfp |= __GFP_NOWARN | __GFP_HIGHMEM; - /* It makes no sense to muck about with huge pages */ - gfp &= ~__GFP_COMP; - while (count) { struct page *page = NULL; unsigned int order_size;