Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1375066pxb; Thu, 4 Mar 2021 09:41:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzictdd8kFJ1tDnwgEmtXRUWvT+jdkKBSF/faRXFVroybCDbf1dxWTJirQk70U9Oy5LmnKc X-Received: by 2002:a05:6402:2cd:: with SMTP id b13mr5656793edx.55.1614879669388; Thu, 04 Mar 2021 09:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614879669; cv=none; d=google.com; s=arc-20160816; b=YhyEfHSs3gE29XzeSO4YlOtVXhkOVx96Ysba2aa7io+s2pzCRe4sEGf7RQ1IWL4LYu 3XGoHiORkkC3lJqmD/mfevmmi1blegT4/SPedo0jtHxCLJzaUTVnSszyi2n3bYw895DM TKpnLF72JaqxFB0caeILemlLUj7EhVKDlSvH8R6ZJxHpi6Dqec79LdauSqHpuGbso3iV XqMvU8xwLvVIumxeuLW7X0IqEf7kEXYveeSxsEg6uEICo8BicUizoMHC9vUsGBsz5bTi b/TcfyZzLtAbXXuBKJBlEGfllnXhnuJDPA8/78ZrTYVpEq+B9h/cgDe8CeAbfrYewA3R hRlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id; bh=9/3gcRek0ohqJ3cpTswHIG2Pp98/YORBw1ug47y47NA=; b=yWuU+ehk4QBGQNCNAhfgvnY5eSKApYU2FknzpuG4VOJnANEZSg0GDL88p36/0hAXgs dl+R4Bow3dDHupHIPtyWmg6RistrubN6Odubq105rH23e4tdwXxW0flOPJjPU5UhM762 vZxAGI7NOukKucM1tQmlZKM8m7sDBTKEXZZ32WGqpm/HN5I70uSeaW/tR27Szj1dDtcB VMg9xRB0EMvT/fCWTz/kstayoBI/KJN/+MdpUss+0ZDEBClYK4ETKTeF3JxC9R1gwAAI hCeAgAXuC55LiwVEJ96JBO7UaKmgb6aL5PPDZt5rkRGf1buKH4rYr6Dxj4ivWvbFIRz5 YThg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si2313390ejh.313.2021.03.04.09.40.46; Thu, 04 Mar 2021 09:41:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239240AbhCDOGn (ORCPT + 99 others); Thu, 4 Mar 2021 09:06:43 -0500 Received: from mx2.suse.de ([195.135.220.15]:53812 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237908AbhCDOGQ (ORCPT ); Thu, 4 Mar 2021 09:06:16 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E1DFBAAC5; Thu, 4 Mar 2021 14:05:34 +0000 (UTC) Message-ID: <9bc396116372de5b538d71d8f9ae9c3259f1002e.camel@suse.de> Subject: Re: [PATCH stable v5.10 0/7] arm64: Default to 32-bit wide ZONE_DMA From: Nicolas Saenz Julienne To: Greg KH , Jing Xiangfeng Cc: catalin.marinas@arm.com, will@kernel.org, akpm@linux-foundation.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, rppt@kernel.org, lorenzo.pieralisi@arm.com, guohanjun@huawei.com, sudeep.holla@arm.com, rjw@rjwysocki.net, lenb@kernel.org, song.bao.hua@hisilicon.com, ardb@kernel.org, anshuman.khandual@arm.com, bhelgaas@google.com, guro@fb.com, robh+dt@kernel.org, stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org, frowand.list@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, wangkefeng.wang@huawei.com Date: Thu, 04 Mar 2021 15:05:32 +0100 In-Reply-To: References: <20210303073319.2215839-1-jingxiangfeng@huawei.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-ahu+lDeVyw/D0YYfX8dU" User-Agent: Evolution 3.38.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-ahu+lDeVyw/D0YYfX8dU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Greg. On Thu, 2021-03-04 at 14:46 +0100, Greg KH wrote: > On Wed, Mar 03, 2021 at 03:33:12PM +0800, Jing Xiangfeng wrote: > > Using two distinct DMA zones turned out to be problematic. Here's an > > attempt go back to a saner default. >=20 > What problem does this solve? How does this fit into the stable kernel > rules? We changed the way we setup memory zones in arm64 in order to cater for Raspberry Pi 4's weird DMA constraints: ZONE_DMA spans the lower 1GB of mem= ory and ZONE_DMA32 the rest of the 32bit address space. Since you can't allocat= e memory that crosses zone boundaries, this broke crashkernel allocations on = big machines. This series fixes all this by parsing the HW description and chec= king for DMA constrained buses. When not found, the unnecessary zone creation is skipped. That said, I have no clue whether this falls or not into the stable kernel rules. Regards, Nicolas --=-ahu+lDeVyw/D0YYfX8dU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAmBA6SwACgkQlfZmHno8 x/63Hwf/dPKsaiMfp4bHs98aLzm1BcfLltFqLOj2tjBqOYX6mUdfSKOkKZYGvyTs zZo2tT5ezbzEvU69CHgGmb6u3y4Q6PxDKqoL94xC+7RGwDrw4g4o0TZp67pcA/9d fUjl00sLvQUl6YYcajb6s0Ev97pb3XAyvAozXb3hfz36j/30mKbizfnxhn9gTZD0 lJ6Kp8Bmm0/weVW4Kj/SOnBk0J2WF7IwSxbJMKRz8k2ejAytoILh4PZ24V9c58Jw qhATgehwhDXk7hyZYQAKCr3pQD9fjWVVjU4/vbWXqBFvUhdmDSkCRAfYwZLJA1Cw lRRAL3P3GOOnCmGp7VZpexw14txF9Q== =1f1V -----END PGP SIGNATURE----- --=-ahu+lDeVyw/D0YYfX8dU--