Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1461973pxa; Fri, 28 Aug 2020 13:16:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYe20DDE7mKhvKL5dPVBq1VVfXL97rfJxHdNeFe9iCxSKpueQJL3siFxsikhvDtTB7FiRI X-Received: by 2002:a17:906:74de:: with SMTP id z30mr439302ejl.478.1598645760410; Fri, 28 Aug 2020 13:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598645760; cv=none; d=google.com; s=arc-20160816; b=yVFni/hPntVV2TY+MjyDh/nkzloBZsj+BYCvenwoB0j9uXrmKa7suL0JwGXsfVCQ/8 YusEcAFDtk2tv1nJBU0m1QmZYiGgJQm2gIgfvZIuTjA47eKlkNwJcpWBYSr3E+iG+bD8 +XMczSzg6QUjQDlENvrp6zsvXCaY1qB4ydqVYcGdB3ZYs7hs7wq+u5Tz8irgS0RNpZQ+ L0bjO8ysUvyVfbJ7nCwf/A93frmmp8gc1SyH+KVixrf85lmLeymGI9pzBCoLmewKbf+d NTVkOXeN9hKeJ0PKyCWnowZiLd2o2pDwbHXNr/tSSSb6958DIwii1TzPZziucYrToH+r rTJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HoCq7hZfHCm7PsYPPZZKrsBeqX1HiFjWHIVfF9O1nts=; b=IXl9WfNWkItN99GSqb5ACUpN9xBt0/cuCWHWcZiJMp/oCo273i9Zz2ti2o3AVPcH3f 9D5JvWZ/ePkddDfR05e/HYBAmh7KWKDc1cRl5e+qu1sm6lcdDN9TpFiHnUPpjTj2HwWo UvayIqP71Psq42p2sIBCuA5pwod2AfbKoO/ho07xgiYoR221GZgPZ4buJ01dnSOk4f5+ QcR5R7Tkv5279rK+/dzB4Mzg3Dx1HGHgr0fj5OTZ7r2baf9eU4bI+ASN9fvtFx7nXQL1 YCj1hDh3M5xS+34to/H7cZjSILkMouUOjh3FR3mDJotpVkDseRmjlNnhn/9b9KVEcSAV xuzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b9vxyGam; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si132049eds.353.2020.08.28.13.15.33; Fri, 28 Aug 2020 13:16:00 -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=@linaro.org header.s=google header.b=b9vxyGam; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726446AbgH1UOW (ORCPT + 99 others); Fri, 28 Aug 2020 16:14:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726146AbgH1UOU (ORCPT ); Fri, 28 Aug 2020 16:14:20 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72311C061264 for ; Fri, 28 Aug 2020 13:14:20 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id h17so279265otl.9 for ; Fri, 28 Aug 2020 13:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HoCq7hZfHCm7PsYPPZZKrsBeqX1HiFjWHIVfF9O1nts=; b=b9vxyGamlHheTjhK3U4kclX/OcRIIzhI8/rk1Vv4SFeX3yiKqzpBb6A5klAR0ERgGf EU+qfVErXLTS/ATpVznUUjz1ujoKxiNVoXJwixFQAK4/Q3zJAnNwKej1NLJ0s92m7Ydb Q3uSriyX6smYtC/BG15pS1uWgcuBVZCVTR+j45ZVwK9P+QgAeb9CyOPrkpXhzTZ5j0nh A0KMAWDXZ2w/SL9FGgHabDNad6puxWgXAACuflMZ50E3pmrFw/ZORFn2PJr9zgWNmDSE MReBdgSkMGiYC6DQE9HY302Jeg3Onbo67hZWG1fKW33J2uVIST/T3fmfMYm1uWoMsFvg nOhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HoCq7hZfHCm7PsYPPZZKrsBeqX1HiFjWHIVfF9O1nts=; b=Ex0ht2DQK+VpgdP1/Mox/5NHuLsnmU0R3/MSo0bnUvJVu2x0PHoUOs8nBbwUjgEdWo 0fFIDNrVj7jgV3j/7rk3bcgUz4dAHTMge2z5m/unzqN1hALNtH544c0XTdxtIfhv+nNP OjjWVasH7h5JbVB/Hj46TP5gHMbHs5b3lJsJxYI7vl9WL/XFn+CyGT9bR43eIyVlkXGf 8W0BwAW+qG23YLkUKHnpYWShuI7kjHUWdr4tSDwvHzT6Ib3yV3fDCF19ORvgnB117Yyb RFIuTilZvEdpYUgvjHtUl7coKzYoylPhAdP3Cw346eFSHPLSapeUXAHC8IPVLaF3Ncrb Bbdw== X-Gm-Message-State: AOAM530HwbG+GnvcYO51NTAZyuEws3xqoTZFGChfPCvw7YHm/urCTWgd nDc8MEvKQONiIc/55o30H/mzjIZowajeHP3CFGraVg== X-Received: by 2002:a9d:7846:: with SMTP id c6mr239804otm.221.1598645658901; Fri, 28 Aug 2020 13:14:18 -0700 (PDT) MIME-Version: 1.0 References: <20200827123627.538189-1-gregkh@linuxfoundation.org> <3d8de519-65b3-123b-8ace-e820982884e0@labbott.name> <20200827160506.GC684514@kroah.com> <20200827171745.GA701089@kroah.com> <20200828080527.GA1005274@kroah.com> In-Reply-To: <20200828080527.GA1005274@kroah.com> From: John Stultz Date: Fri, 28 Aug 2020 13:14:06 -0700 Message-ID: Subject: Re: [PATCH] staging: ion: remove from the tree To: Greg Kroah-Hartman Cc: Amit Pundir , "open list:ANDROID DRIVERS" , Christoph Hellwig , Android Kernel Team , Todd Kjos , Martijn Coenen , lkml , dri-devel , =?UTF-8?Q?Christian_K=C3=B6nig?= , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Joel Fernandes , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Suren Baghdasaryan , Hridya Valsaraju , Laura Abbott , Shuah Khan , Sumit Semwal , Christian Brauner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 28, 2020 at 1:05 AM Greg Kroah-Hartman wrote: > > On Thu, Aug 27, 2020 at 11:54:12AM -0700, John Stultz wrote: > > On Thu, Aug 27, 2020 at 10:17 AM Greg Kroah-Hartman > > wrote: > > > On Thu, Aug 27, 2020 at 10:31:41PM +0530, Amit Pundir wrote: > > > > I don't know what is the right thing to do here. I just want to > > > > highlight that AOSP's audio (codec2) HAL depends on the ION system > > > > heap and it will break AOSP for people who boot mainline on their > > > > devices, even for just testing purpose like we do in Linaro. Right now > > > > we need only 1 (Android specific out-of-tree) patch to boot AOSP with > > > > mainline and Sumit is already trying to upstream that vma naming > > > > patch. Removal of in-kernel ION, will just add more to that delta. > > > > > > As AOSP will continue to rely on ION after December of this year, all > > > you are doing is postponing the inevitable a few more months. > > > > > > Push back on the Android team to fix up the code to not use ION, they > > > know this needs to happen. > > > > The point though, is your main premise that no one is using this isn't true. > > They are using the version of ion in the Android kernel tree, yes, as it > has new features that many people are relying on. > > The version that is currently in the kernel tree is crippled, and maybe > works for some use cases, but not the majority, right? So my understanding is the Android Common Kernel tree version was mostly reworked to allow heaps as modules, and allowed heaps to have their own exporter logic (not unlike how dmabuf heaps do it). The main allocation interface is maybe slightly tweaked for out-of-tree vendor heaps, but doesn't affect the in-staging heaps. There's also a few optimizations we have skipped taking upstream. So yes, there are differences, but I don't feel your characterization is quite accurate. > > I'm actively working with Hridya and folks on the codec2 HAL side to > > transition this on the userland side: > > https://android-review.googlesource.com/c/platform/frameworks/av/+/1368918/3 > > > > I'd like AOSP to not use ION after September (though being external I > > can't promise anything), much less continuing after December. > > The android team has said they will be dropping ION use for the "next" > Android release, which is sometime next year from what I recall. > December is probably not going to happen :) AOSP is what the next Android release forks off of, so it needs to be fixed first. > > I want this migration to happen as much as anyone. But I'd prefer to > > keep ION in staging until after the LTS is announced. Having both > > around helps development for the transition, which helps us have a > > reliable solution, which helps vendors to migrate and be able to do > > comparative performance testing. > > I don't understand what having this in the "next" kernel helps us with > here. And I would really really prefer to NOT have an outdated version > of this code in a kernel tree that I am going to have to support for the > next X number of years, when no one is using that version of the driver. > > What is this LTS fixation to keep this code around for? Who does it > help? Vendors usually target LTS releases for their hardware bringups. Having a LTS release with both ION and DMA BUF Heaps helps them validate their old ION solution as performant, and then migrate to DMA BUF Heaps and be able to do performance comparisons holding all other things equal. > > I do appreciate that keeping it isn't free, but I also don't feel the > > chaos-monkey approach here is really motivational in the way you > > intend. > > I don't see it helping anyone to leave this around, except to cause > merge issues for me, and development issues for other developers. > > Anyone who really wants this code, can easily revert the deletion and > move on and grab the AOSP copy of the code. That's what they did when > we deleted other Android features that are still relied on. > > Given that the "isn't free" is causing _me_ real pain, and not the > actual users of this code, I am leaning toward wanting to move that > pain/cost to those users, for obvious reasons. Sure. Again, I do understand the desire to remove it, and it's your right to do so. Keeping the code for an extra year in LTS (over 5.4) is a cost, so I understand if you drop it. But I'll ask that you make that judgement clear as the main motivator/rationale of the commit message, rather than flippantly pretending it's not being used, and that everyone agrees it has no usefulness to keep around (especially after we've had this conversation a few times already this year). thanks -john