Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp322734rwd; Thu, 8 Jun 2023 00:50:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7UkeLUj2UYY8G1JkFHz+QnkTyvgAnLSFIKH6IZFG2ScexOjIbBnZgr2+98qooJW7LqVhbT X-Received: by 2002:a05:6214:20af:b0:5a2:abf1:7d33 with SMTP id 15-20020a05621420af00b005a2abf17d33mr860475qvd.50.1686210656879; Thu, 08 Jun 2023 00:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686210656; cv=none; d=google.com; s=arc-20160816; b=sV6HI+TRA3MCO8cwfWSQquqPoiTHYqwfKNztOkyqWGhu6FL1/68guQohj29fomBV5w FPKqGYKYIJf3OoSIWKpkfT4qpeH8FQJxOE7dGbNki2dREjycDrbQWga65JWsZUVQ9VSk P/7qPY+ORN67LU4aMjRhhx+6DsYpY1dgXX5AQxqjD/Xm0xi+9Ir/WuuHdjuPAsEsGOzb eAsLtgGOoshiGlbaPaSNzTBIYFQPUDXt9mgoIF++ZmwvKJ/Jnev57iag6Ef5lJ5izT9p 27LtWtjQjs6wticYo1ZsitCTWXFyffndrxnvZkjUIMplgJRTit6APqgWbVtTrbW1OUrK IOuA== 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:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=t4c10xINaZk3zkvGR2qh4gks80MlmOsa3Cftwgec9Mk=; b=PilskWMLTcCgrRw1GawbDpF8iBjbdUPm5zCJaXXuJsgDr2IJQ7X724k5eUZaj5hhkU YCqQQnDt8kX3xiK8+4jYOeuQpr6JU2XmekZja3dYaxG3A1epWrWwAZIjP7FhXaLqGudd TLVsXuK4Adc+e7fOrD5PYxI11gfavxqDzBlr057KxQiEtn4LDIHiNQJygBqedGNrmR1e Wjx3O/oinCkwg9JvQWwnIwJAI6ZAHF61TTE1ZgZbuK+QVhAYSb+v378OnOmrThmp/jen mUYCgdoU2jpFrDwnLidVc1aG945+FLqNPhk/Wzky+H+q7MtaV3x9+IiDEuFdyQFBjhAx Bv+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=IFqs2V6j; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t190-20020a625fc7000000b00661cd40bd67si420861pfb.314.2023.06.08.00.50.44; Thu, 08 Jun 2023 00:50:56 -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=@shopee.com header.s=shopee.com header.b=IFqs2V6j; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235272AbjFHHiz (ORCPT + 99 others); Thu, 8 Jun 2023 03:38:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234665AbjFHHix (ORCPT ); Thu, 8 Jun 2023 03:38:53 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15CDA1BDF for ; Thu, 8 Jun 2023 00:38:52 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1b18474cbb6so1015785ad.1 for ; Thu, 08 Jun 2023 00:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1686209931; x=1688801931; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=t4c10xINaZk3zkvGR2qh4gks80MlmOsa3Cftwgec9Mk=; b=IFqs2V6jVzqst1fg75pvcNNdwOM+CQLePTiaSPr9y7U+i518QlsGxYBHaONZtdhwql IAmzimfKOucyw42Kq6aoWhWEeBmvPPKneMrVxIo3go2Sl/Y+MjrkndQ2Ryb/PurF3u+r XRzkM+A+PtEbEX2XtZI9Hj+fWFzEc6kzEmgBYdC3YcmI2wFZ+NKUpZL15ZgFW+NUfVRb kgVJml+/pOZoGB+NwdsrFQwk5cdnpVVykbV3ZnbhsnSVFKAijlgcHf0/ll+5fIhj5l70 l3WQQ8eEUn4qznYg8NanhirB4Xx51epDwFoi7yYYwvhzxiHEUSB046VlAxaxRDI9qGqP b8BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686209931; x=1688801931; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=t4c10xINaZk3zkvGR2qh4gks80MlmOsa3Cftwgec9Mk=; b=UT1ADThd4LdvWXD7Vhnr4PIKFM6qlf8kGiktqUB2zQu1KTkoqqGZJSviT5sPbqEQCH 7/TTPXgX9EptQ4CF9cqNePtUR3puhaUPy2YVwv6YeOsiWJ1toKVxG43+u4pK1TQO9ig6 WSb9gWAd2ioy2xwSxDFqSP2qRepIDV0GYitybik1TOnd9mIJSP0yiUiWNd8eiz77olZj EkLPNt5jJrcX4airgC2EqUCW0jZUp9QJwZxgUY21e4GuhO/ryWXTSFzucQNzi9zQfWQk T15GXeeRJDfX5oQh2fgRU48NQObtMO2dU2gD6qiewrvBxWEnKnEUeoDm6xpIULh61u7m CYpQ== X-Gm-Message-State: AC+VfDzmbCFbdUtaLgBniJ7s2TAlDoywgewoCoVv9+T6pDxSkd09UtK/ /OtLpQHb7ENQVY34x3Uc+MXqqUoedAM8R3DVJBE/iw== X-Received: by 2002:a17:903:11d1:b0:1b2:49f6:6cdb with SMTP id q17-20020a17090311d100b001b249f66cdbmr4051465plh.37.1686209931239; Thu, 08 Jun 2023 00:38:51 -0700 (PDT) Received: from [10.54.24.10] (static-ip-148-99-134-202.rev.dyxnet.com. [202.134.99.148]) by smtp.gmail.com with ESMTPSA id x15-20020a170902ec8f00b001b176ba9f17sm749831plg.149.2023.06.08.00.38.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jun 2023 00:38:50 -0700 (PDT) Message-ID: <34f32148-24c3-09a3-8bec-9515139e15b1@shopee.com> Date: Thu, 8 Jun 2023 15:38:48 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] mm/mm_init.c: add debug messsge for dma zone To: David Hildenbrand , Michal Hocko Cc: rppt@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230607090734.1259-1-haifeng.xu@shopee.com> From: Haifeng Xu In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2023/6/7 18:22, David Hildenbrand wrote: > On 07.06.23 12:16, Michal Hocko wrote: >> On Wed 07-06-23 09:07:34, Haifeng Xu wrote: >>> If freesize is less than dma_reserve, print warning message to report >>> this case. >> >> Why? > > I'd like to second that question, and add > > a) Did you run into that scenario? > b) What can an admin do in that case with that error messages? In theory,dma_reserve shouldn't exceed freesize, so the error messages can remind us to verify whether the configuration of reserved memory is correct. > > If it reveals a buggy situation, maybe a WARN_ON_ONCE() is warranted ... but maybe only if anybody actually ran into that issue. >