Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1331204rwd; Wed, 7 Jun 2023 14:44:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ65qi4+PXWW3ximkyids6/1WmoytWczW4NYoJmM6REjEbPO8W3UTNrVGhmSCnB6uE59JkCN X-Received: by 2002:aa7:88c7:0:b0:662:5146:c77a with SMTP id k7-20020aa788c7000000b006625146c77amr3302867pff.31.1686174266820; Wed, 07 Jun 2023 14:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686174266; cv=none; d=google.com; s=arc-20160816; b=r1kayXEUvapp6fAxf223Fki6ADDU1UxpX+oLdMxAEenUv0bLoAIEWew03uvKB+wkEt 0K1vHZnt/6tdUW0PaAgVPzELbDdfSvsZ0lpyMQudLN0bMG2PnL/IZY0wI1CFOGNvVtl9 rs8/NTvIOi0e7D5L0wbJXqD8TrD9xJcqrMlZtQhvS+YAxoF3lKvWPBq3qGOd2u+cJCdN s9RpPYPevCOtGqKC+KuBh6sSZEiwAS/Czq5I4T+ucs0jXU4lAggf42rtoZEihRg+HpTe uVM9Vrgg36FVRyQlIRqAt3Fh0oSls3STtBsGtBVxRCqPtpCJ3aLIjP/TU3vE6zk1D1I1 kCng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=TXANwQx4pNRJfjx/Gs0JxB1vIogp1KfQQ2yRBTFgV4g=; b=EXrSaANjZ0KMiCGWD8aqW2fa7ljfvgwtOwrwTxA2jbASZEKEk6fohMzbhut2LzNWc+ EpQ35+iwaBf5bGJIyWuLmY3NbREb76plIgJQ0FM4mmS2IoGMFtdW5sB8NUjdMsjkJ05m b8VvdedZpmyTWHVx9Jfku3bw1ElORLrM9ecI7adguH7pe1r/bR4/1u0mc4vU5sS8I7VX ybt0hRrZ2H21IXE9myUL3gR13lpZNVyyvZJX57VM9Wn3SFu7wN0gn8ukHB4658DxRbM8 PNxddMX0d/s9bT9y8Fcfo5fTIM4XAlfq8ng/dThxGzSuBdh4A7yBjlNhf7LMcFj1TtwD 1zDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=KTNvxPin; 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 z29-20020aa7991d000000b0063b77381764si8213977pff.49.2023.06.07.14.44.15; Wed, 07 Jun 2023 14:44:26 -0700 (PDT) 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; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=KTNvxPin; 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 S235849AbjFGVAw (ORCPT + 99 others); Wed, 7 Jun 2023 17:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236157AbjFGVAZ (ORCPT ); Wed, 7 Jun 2023 17:00:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 734CE2109 for ; Wed, 7 Jun 2023 14:00:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3B1E2648CC for ; Wed, 7 Jun 2023 21:00:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2252BC433D2; Wed, 7 Jun 2023 21:00:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1686171602; bh=K7QsNx354p5UJb+W0jt0jJmIo1DtPxXeGq1FHy48xWw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KTNvxPinFizEuJn1y1ca+OL7HSvTz45fSL1nS4DIvD+mRfKBSBF+XQsXofn0uAWLw Cm9GZS4khbbCdQlp00yyEJPPiS6HTZ5LXu/afx0eqEv2zq4yCcTz2jcQkzb3crBfLf mwoI4754n1XsqP8Oqd8DCAaT0ZMyvzV3fKt5xAJg= Date: Wed, 7 Jun 2023 14:00:01 -0700 From: Andrew Morton To: Mike Kravetz Cc: Gerd Hoffmann , Junxiao Chang , kirill.shutemov@linux.intel.com, mhocko@suse.com, jmarchan@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, muchun.song@linux.dev, Vivek Kasireddy , Dongwon Kim , James Houghton , dri-devel@lists.freedesktop.org, Greg Kroah-Hartman Subject: Re: [PATCH] mm: fix hugetlb page unmap count balance issue Message-Id: <20230607140001.6685b0a058511f125a005da4@linux-foundation.org> In-Reply-To: <20230607205310.GA4122@monkey> References: <20230512072036.1027784-1-junxiao.chang@intel.com> <20230512232947.GA3927@monkey> <20230515170259.GA3848@monkey> <20230516223440.GA30624@monkey> <20230607120312.6da5cea7677ec1a3da35b92c@linux-foundation.org> <20230607205310.GA4122@monkey> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, 7 Jun 2023 13:53:10 -0700 Mike Kravetz wrote: > > > > BUGs aren't good. Can we please find a way to push this along? > > > > Have we heard anything from any udmabuf people? > > > > I have not heard anything. When this issue popped up, it took me by surprise. > > udmabuf maintainer (Gerd Hoffmann), the people who added hugetlb support and > the list where udmabuf was developed (dri-devel@lists.freedesktop.org) have > been on cc. Maybe Greg can suggest a way forward. > My 'gut reaction' would be to remove hugetlb support from udmabuf. From a > quick look, if we really want this support then there will need to be some > API changes. For example UDMABUF_CREATE should be hugetlb page aligned > and a multiple of hugetlb page size if using a hugetlb mapping. > > It would be good to know about users of the driver. So disabling "hugetlb=on" (and adding an explanatory printk) would suffice for now?