Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4014603imj; Tue, 19 Feb 2019 13:40:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IawEP2810tO+55/l4X1x++ooCSiUF9dGHrbaEM6CsF8ErT4zVK5KmYEaTxWBPq0JpUNYnPA X-Received: by 2002:a17:902:2ac3:: with SMTP id j61mr33141261plb.185.1550612407189; Tue, 19 Feb 2019 13:40:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550612407; cv=none; d=google.com; s=arc-20160816; b=JMwRFZq5qbztBS5fPhHf7NmyRZ+hAVyM0jFcw0lrrnzRL3T7DOF/pcdlNSzLgVVxPf bMKWNl8ks+cxKR93Aa+qWj2z8AaXMCsWOkSVUUGOiz8PCDDNB66td0kCzfa5Hag39wbd Ukwn3WCdO3pwSBabTMUqEMBtXtVPqtguGJcoZKrPKhmNL/oAgVCeqAr87Y0sTYtcOucp Ue121dghjL+rtu9SVz2V4OUsXBAvcL/e6t51Pu1YBNxUCLWusfYQClt1HIQAE8+XFBoe eNeOs1s2fqwoO+Ye9OVt0TOywSLeWO9McIDakoElO/YXtIlg00D2M2brntBI7vdrV/So IrbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=negk3eC+GoymokVpzay6lU5dVWvVumB0yt3iSqDQKz4=; b=Ca9iCOlhRWyO3g423Y96Ks4hisTnhnNZAiIyKBKAgWkuA4LL9UqQtiqEfB98xEKHAt BpFQVZcQxY/2FBqZw12vRr8125G9Erig9OAfNtqJ/NZa48Vik/CvUO1mEeG1aEFtxeCh 15H1EJcFFDi6VfgeX4jIWvfxmIIJMqqgonCKQ+QdorN/ye2TN1Tgi/ZkomT1EVF8QJCt ck0uein5b2RaiFT9j4ecq0a7a1biEmT22D//wyP/6GaWxiJPv58CO0Gya7m6dwSRSrJc aDMmqF3qnVbVeOirbodxOhCPGkW3n7lyQEYXPSTKvAdnq6u84CnDHe9anH2MWXTmrrP4 dwMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si8529969pfm.181.2019.02.19.13.39.51; Tue, 19 Feb 2019 13:40:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728212AbfBSVhs (ORCPT + 99 others); Tue, 19 Feb 2019 16:37:48 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:38397 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbfBSVhs (ORCPT ); Tue, 19 Feb 2019 16:37:48 -0500 Received: by mail-qt1-f194.google.com with SMTP id 2so25000193qtb.5 for ; Tue, 19 Feb 2019 13:37:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=negk3eC+GoymokVpzay6lU5dVWvVumB0yt3iSqDQKz4=; b=heVpDPm7gVnNFhEXI/8Rkpr/kBurZgnGVnl/0fSQQwTReqFUQOWpsa5EcpZH2xxq4h xVp64y7QH1crlFLePs+hlyx+zB0h7JML3Lyz2/40aQsQt3Auc1TwmSXQwJBq2pSQyK07 sy06lcJSMGNGqmfsz4eOy6p15GencREHoUe9Y6X0GfyB/qwMAtOtJtIsA5P5rdZTOnSC TgvS/1bhJJygu+npzJ4UHFtNn4jTHxhBcABE6yuTYumIfjTvsP+W54oOf/TvzZFiiQ0E o5jZFeQJFHbOreCodp4qxQZhoM7DPmxLO1MoyDOKYZwQykUY1T0rMetURypuUhc9mLlf lpCg== X-Gm-Message-State: AHQUAuaNQtACcvmULXfO5GMK3+b9HRyRrcnLDeYzycoLJyJWy/NwLnMb pRu9pQ25ZZRf7Qz2jtKUgoSf4A== X-Received: by 2002:ac8:2b17:: with SMTP id 23mr9492711qtu.157.1550612267403; Tue, 19 Feb 2019 13:37:47 -0800 (PST) Received: from ?IPv6:2601:602:9800:dae6::112f? ([2601:602:9800:dae6::112f]) by smtp.gmail.com with ESMTPSA id u32sm21096992qtc.54.2019.02.19.13.37.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 13:37:46 -0800 (PST) Subject: Re: [PATCH 13/14] staging: android: ion: Do not sync CPU cache on map/unmap To: Brian Starkey , "Andrew F. Davis" Cc: Sumit Semwal , Liam Mark , Greg Kroah-Hartman , =?UTF-8?Q?Arve_Hj=c3=b8nnev=c3=a5g?= , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" , dri-devel , nd , Daniel Vetter References: <3bf4bfce-aee6-9c52-c2f7-783dc63bfc3a@ti.com> <20190121112235.g36qqptpv6wjuj7w@DESKTOP-E1NTVVP.localdomain> <20190123171153.ql25gyg6sma4fpqb@DESKTOP-E1NTVVP.localdomain> <20190124164447.3dwwampprzofwbyr@DESKTOP-E1NTVVP.localdomain> From: Laura Abbott Message-ID: <08057adf-d1da-7cb7-79ac-8e6e3934e7d7@redhat.com> Date: Tue, 19 Feb 2019 13:37:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190124164447.3dwwampprzofwbyr@DESKTOP-E1NTVVP.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/24/19 8:44 AM, Brian Starkey wrote: > On Thu, Jan 24, 2019 at 10:04:46AM -0600, Andrew F. Davis wrote: >> On 1/23/19 11:11 AM, Brian Starkey wrote: > > [snip] > >> >> I'm very new to all this, so any pointers to history in this area are >> appreciated. >> > > [snip] > >> >>> In case you didn't come across it already, the effort which seems to >>> have gained the most "air-time" recently is >>> https://github.com/cubanismo/allocator, which is still a userspace >>> module (perhaps some concepts from there could go into the kernel?), >>> but makes some attempts at generic constraint solving. It's also not >>> really moving anywhere at the moment. >>> >> >> Very interesting, I'm going to have to stare at this for a bit. > > In which case, some reading material that might be of interest :-) > > https://www.x.org/wiki/Events/XDC2016/Program/Unix_Device_Memory_Allocation.pdf > https://www.x.org/wiki/Events/XDC2017/jones_allocator.pdf > https://lists.freedesktop.org/archives/mesa-dev/2017-November/177632.html > > -Brian > In some respects this is more a question of "what is the purpose of Ion". Once upon a time, Ion was going to do constraint solving but that never really happened and I figured Ion would get deprecated. People keep coming out of the woodwork with new uses for Ion so its stuck around. This is why I've primarily focused on Ion as a framework for exposing available memory types to userspace and leave the constraint solving to someone else, since that's what most users seem to want out of Ion ("I know I want memory type X please give it to me"). That's not to say that this was a perfect or even the correct approach, just what made the most sense based on users. Thanks, Laura