From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42BD9C433E9 for ; Wed, 27 Jan 2021 08:37:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E1D272075E for ; Wed, 27 Jan 2021 08:37:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231622AbhA0Igv (ORCPT ); Wed, 27 Jan 2021 03:36:51 -0500 Received: from mx2.suse.de ([195.135.220.15]:56100 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231355AbhA0Ieb (ORCPT ); Wed, 27 Jan 2021 03:34:31 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1611734976; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z+p6bEQorWYXK5ITr6/TxfiZXISXTdaIfax+Bli0jTM=; b=hK9GcC93FfxaYov5kx4K6xzL3B587XMGE9MVaPSbYp8agrdlnsozPRW9vO3XkAckUy22zJ Hq6hlXnW6cmSOsxpY9D1YDxNmrJGuxDyChCOY0QA9VQWGbTHba8ghsZJTv6M094rFbafjA XK4S5ogOg6dqO0a5qm3dlFPBq4PkIVc= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1613DB92B; Wed, 27 Jan 2021 08:09:36 +0000 (UTC) Date: Wed, 27 Jan 2021 09:09:34 +0100 From: Michal Hocko To: Minchan Kim Cc: Andrew Morton , linux-mm , LKML , hyesoo.yu@samsung.com, david@redhat.com, surenb@google.com, pullip.cho@samsung.com, joaodias@google.com, hridya@google.com, john.stultz@linaro.org, sumit.semwal@linaro.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, hch@infradead.org, robh+dt@kernel.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH v4 4/4] dma-buf: heaps: add chunk heap to dmabuf heaps Message-ID: <20210127080934.GZ827@dhcp22.suse.cz> References: <20210121175502.274391-1-minchan@kernel.org> <20210121175502.274391-5-minchan@kernel.org> <20210126074605.GB827@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 26-01-21 11:25:36, Minchan Kim wrote: > On Tue, Jan 26, 2021 at 08:46:05AM +0100, Michal Hocko wrote: > > On Thu 21-01-21 09:55:02, Minchan Kim wrote: > > > From: Hyesoo Yu > > > > > > This patch supports chunk heap that allocates the buffers that > > > arranged into a list a fixed size chunks taken from CMA. > > > > > > The chunk heap driver is bound directly to a reserved_memory > > > node by following Rob Herring's suggestion in [1]. > > > > > > [1] https://lore.kernel.org/lkml/20191025225009.50305-2-john.stultz@linaro.org/T/#m3dc63acd33fea269a584f43bb799a876f0b2b45d > > > > Who is using this allocator in the kernel? > > Userspace uses the memory via mapping it via dmabuf. Ohh, I see. I thought this was an interface to consume in the kernel. Thanks for the clarification! -- Michal Hocko SUSE Labs