Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp37298ybt; Thu, 9 Jul 2020 14:48:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDamOJsuPfqdTGj93s96MkVI7VJdksj+E8mSLUGtV86iKtMLkAT88wmk4AvWyLtP4ARzMw X-Received: by 2002:a17:906:3009:: with SMTP id 9mr41485976ejz.220.1594331309358; Thu, 09 Jul 2020 14:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594331309; cv=none; d=google.com; s=arc-20160816; b=EtiO+ZUhIJvmjiFBTB7lYQWqvNp2naP4diYbgMJf6XP+mxF457uvPSLKCyQZrKgBoh fCY6GFW6TvjnvBJgxtB0tMkNBM5i6dGDe53fuFzfRuhQnI4CiKlnG4JJcKbvkQJqriV7 1GDMr3Aufz3OgXe8bpORpyRG4HlBX4NJvoVKvC+XaVmSPLn1crxfcepc1YzVsVJJBtxE QtKM9lKWlIuD/buatNL2ybTMqooefo8s4s3iJAiMMkMa8TilIcW1cEGL53WAHXzWiSl8 ey9EPpEUWVDxkb7wBNK+z4ZPbng+IO6b7axloZKNPR+JKiIrWnD4oJb+d47yKVDyYOIv s2yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=3ZVIY3Uh21PSHby7uDQirlJmyVi+sT/V+eGSfwDSnig=; b=kuQUJtPtNgtc2tVa/yKsPBlSZUnzDXzdL/2RJOF1Fc/wX2uNu5RGAeji6wBGCjEmMp L4hUy8yD57jwwt1v6TLNyA92M/pRObh/ixukv0lpQ65JuwoDM0INpWyLt+geRhuOOurG P6o4oHjTePLVUrNxRekchJbrmMYwPnOMxBt7gNSRdNzwsMA+6TN4fzoLMZh8Z51CAoso WMlH6LmPkd9+e/+ahHhykaNFNZ6fljeDdKpUJYa88mQPp73eKqDtgog4f8EFQ0yO3llZ CCJMxR/dvMViAShvndpgHK3PDeHI4uMYPfhPKh4Uh6EwBD0QPAs0xQ1dXfCzch0BBuw+ ASRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Fl75ul74; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl16si2612047ejb.125.2020.07.09.14.48.04; Thu, 09 Jul 2020 14:48:29 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=Fl75ul74; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726624AbgGIVrl (ORCPT + 99 others); Thu, 9 Jul 2020 17:47:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726444AbgGIVrk (ORCPT ); Thu, 9 Jul 2020 17:47:40 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 620CFC08C5CE for ; Thu, 9 Jul 2020 14:47:40 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id u5so1576679pfn.7 for ; Thu, 09 Jul 2020 14:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=3ZVIY3Uh21PSHby7uDQirlJmyVi+sT/V+eGSfwDSnig=; b=Fl75ul74qjFTiw8HF8Zdsg0x9BeA1yYTtFUlTB3tyfIxzsbiAqppQhDl78MrHtBk+u ib3sE81iaCMvr4RPhmlfQUj+oKBiwBHDKHHfFNcCWHo7zISurmMlPoEoP8SGas0EVl0j 6i+35yqlwGI+jSeF/u9Jr5hAGTFwbHBXw6+5epFxk1kFf24a4MzaNbm96aH+cVszf1Sp t2xPn4prKDvcz80pcdupK3Z2cJbsaK2l8LUwvet1XwzqIzAvr18k4PjhkQEfvfYffwGB lekYmJ67+Ik2fuPvPmv3PqhUvjupnMJjTjZoiSxxKohngfWv4Jz5/ie/kW2q0rGqC4CJ QqpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=3ZVIY3Uh21PSHby7uDQirlJmyVi+sT/V+eGSfwDSnig=; b=eFOVPnmZguk6/w46qXwh3cCTaYUNr37BNwRH+Wk63pd7l7bxqGXfimMnaL4HrZWcJE XPhVeWY83lh23kmGVX1Vx6dR9CXO7uaEQI0Th8xbJu+26wZAek+scrW45UYP+W4blBTf TdSPZ6so+8mBdQdhygXf9fp1hzvpcvD5NWeW9da3Ih/fM0Oht0/aBClpVw/yW5NBCe1E q+UQwQoauWhsYv3mhB08GPxaEIunKmSeiYkv2xgsMhA+B6fJqG6/5+tYOSpVcXzgux6c bbSfUrVATeld9t6UqVWbDotgwx2DAUcoXDe//piwxQXgXXz+AmshnlxueeOH6ZpogKdj lf/Q== X-Gm-Message-State: AOAM532tcKRb4DwbukQI4f3XQb8PpVU+wbD+lqssNfP6jsHvw0dMLLCu cGmLcYVZOk1T8j5daUsN9eXc5A== X-Received: by 2002:a63:8c4a:: with SMTP id q10mr56412758pgn.431.1594331259707; Thu, 09 Jul 2020 14:47:39 -0700 (PDT) Received: from [2620:15c:17:3:4a0f:cfff:fe51:6667] ([2620:15c:17:3:4a0f:cfff:fe51:6667]) by smtp.gmail.com with ESMTPSA id e16sm3720025pff.180.2020.07.09.14.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 14:47:39 -0700 (PDT) Date: Thu, 9 Jul 2020 14:47:38 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Nicolas Saenz Julienne cc: Christoph Hellwig , Marek Szyprowski , Robin Murphy , linux-rpi-kernel@lists.infradead.org, jeremy.linton@arm.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dma-pool: Do not allocate pool memory from CMA In-Reply-To: <20200708164936.9340-1-nsaenzjulienne@suse.de> Message-ID: References: <20200708164936.9340-1-nsaenzjulienne@suse.de> User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 Jul 2020, Nicolas Saenz Julienne wrote: > There is no guarantee to CMA's placement, so allocating a zone specific > atomic pool from CMA might return memory from a completely different > memory zone. So stop using it. > > Fixes: c84dc6e68a1d ("dma-pool: add additional coherent pools to map to gfp mask") > Reported-by: Jeremy Linton > Signed-off-by: Nicolas Saenz Julienne Acked-by: David Rientjes Thanks Nicolas!