Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2558521rwb; Fri, 16 Dec 2022 03:51:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UHOIUF9HlW5IC5YWSoRIdDVvwFF/BMyXxBCggAafNHj33gz2r919lJXYMAnHDfVOikjWs X-Received: by 2002:a05:6a21:9105:b0:9d:efbf:7853 with SMTP id tn5-20020a056a21910500b0009defbf7853mr38048936pzb.8.1671191516917; Fri, 16 Dec 2022 03:51:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671191516; cv=none; d=google.com; s=arc-20160816; b=sr/M2JzyGd0G2D9T4YPrL3AEh7yeNBEdG3CXwzMio2o+iiy9/Szw8YRk/Ty5Jfefyh meb+UXYYcrq3qAwsmYRDvnYjVybcic2G5jawJ80cq3UMGaJzuS595J4L2/iCFzoLv2p7 /USdmCDvJXkec64b4Vgisu+QNhEXDoAmWFhb5q0IgIegfDoAfQnlmFV4iVBYcP09N9BE LP3QWU/TuHOsZeDvu2t9IWmMQZZ73MlKIJViIXhnnoKfzjDaWMwBVTH7opPzHz6IF4zU tEMT4iYD7Dc3SHHuh3SdustSoOjIbnIzDGvSKbVMOmE1jLszL3p0nhNFza+wtWnsYoE8 AF7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=zXiZoFryk/rdWLTmk1CoV7QgyVLzGo8Ov72NW1X2yds=; b=b7IfqW5aG5zpYvjuU+AKbos6sSq0870KPC1opyDsCGv5l/Wp5cIZA8fCiF6cxW8Twg TugufLGVjeMmhP8uCYOVmcXBq2EBnVcdjmnFqalvbJIdRu40kzg8tAvMhjGdpANApFBj IDl1GG9yJX4qXnZ/4FZsVOYj9lGTvnbIXnZdV0ZGfmamTU2M5kdOoGwAm5SavkFdYmAz Z7G4zpxORFpv1yWLzKETkmETDnlMhBT+biitE6d2riVUVTRy9SIQVY+RFDNGZZoyGbVA ZETkCRBque+IU0whANDABcI2UQRe2ZDYVlaHio2Vrror9cT9OMnDuyt8I4sxaekLGRlr Q09g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l5-20020a63ba45000000b0047853e401c8si2496815pgu.69.2022.12.16.03.51.48; Fri, 16 Dec 2022 03:51:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbiLPLlT (ORCPT + 68 others); Fri, 16 Dec 2022 06:41:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230391AbiLPLlF (ORCPT ); Fri, 16 Dec 2022 06:41:05 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B77011442 for ; Fri, 16 Dec 2022 03:41:03 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F19081042; Fri, 16 Dec 2022 03:41:43 -0800 (PST) Received: from [10.57.88.234] (unknown [10.57.88.234]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2AF4B3F73B; Fri, 16 Dec 2022 03:41:02 -0800 (PST) Message-ID: Date: Fri, 16 Dec 2022 11:40:57 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [6.2][regression] after commit ffcb754584603adf7039d7972564fbf6febdc542 all sound devices disappeared (due BUG at mm/page_alloc.c:3592!) Content-Language: en-GB To: Christoph Hellwig , Mikhail Gavrilov Cc: Takashi Iwai , alsa-devel@alsa-project.org, m.szyprowski@samsung.com, Linux List Kernel Mailing , iommu@lists.linux.dev References: <20221216064645.GA24446@lst.de> From: Robin Murphy In-Reply-To: <20221216064645.GA24446@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 2022-12-16 06:46, Christoph Hellwig wrote: > 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. Or we explicitly strip the flag in dma_alloc_noncontiguous() (and maybe dma_alloc_pages() as well) for consistency with dma_alloc_attrs(). That seems like it might be the most robust option. Robin. > 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; >