LWN: Comments on "Destaging ION" https://lwn.net/Articles/792733/ This is a special feed containing comments posted to the individual LWN article titled "Destaging ION". en-us Thu, 09 Oct 2025 17:48:27 +0000 Thu, 09 Oct 2025 17:48:27 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net ION is removed https://lwn.net/Articles/1005666/ https://lwn.net/Articles/1005666/ yashi <div class="FormattedComment"> FYI: ION never graduated from the staging tree. Instead, it was removed in commit <br> <a rel="nofollow" href="https://git.kernel.org/torvalds/c/e722a295cf493388dae474745d30e91e1a2ec549">https://git.kernel.org/torvalds/c/e722a295cf493388dae4747...</a><br> </div> Tue, 21 Jan 2025 06:10:46 +0000 Destaging ION https://lwn.net/Articles/793493/ https://lwn.net/Articles/793493/ excors <div class="FormattedComment"> <font class="QuotedText">&gt; I'd like to see the vendor specific gralloc HAL be replaced with a generic implementation with a fstab style config file that simply maps buffer usage to heap name</font><br> <p> If I remember correctly, the gralloc implementation is responsible for calculating the sizes of image buffers, which might be in some vendor-specific GPU-efficient tiled layout with funny padding etc. mali_gralloc_ion.cpp has the AFBC code too. That kind of logic wouldn't fit in a config file, so I don't see how you can get away from needing a vendor-specific gralloc implementation.<br> </div> Thu, 11 Jul 2019 19:23:07 +0000 Destaging ION https://lwn.net/Articles/793491/ https://lwn.net/Articles/793491/ jhoblitt <div class="FormattedComment"> (disclosure: I am not an android dev; just a user)<br> <p> Aww, I didn't realize that there was a hal between surface flinger and the kernel. I suppose that means the kernel buf interface is essentially outside the scope of AOSP, in that the gralloc implementation could be anything so long as the GSI boots?<br> </div> Thu, 11 Jul 2019 19:10:56 +0000 Destaging ION https://lwn.net/Articles/793486/ https://lwn.net/Articles/793486/ jstultz <div class="FormattedComment"> So the ION interfaces are usually accessed via vendor specific gralloc HAL code, so its not something we can shift all of AOSP to in one step. Each vendor has to move their out of tree ION heap implementations over and also rework their custom gralloc HAL to use the new API, so there will likely be a transition period. I've got such an gralloc implementation ready to be submitted to AOSP for the HiKey960 board already so there will be a reference example.<br> <p> Personally, I'd like to see the vendor specific gralloc HAL be replaced with a generic implementation with a fstab style config file that simply maps buffer usage to heap name, so vendors only have to provide that config file, but I know there is always hesitancy to remove the ability for the vendors to have fully custom HAL implementations, so that may not be widely adopted.<br> <p> I have been keeping the Google developers in the loop, and there has been no objections, and they do seem motivated to get vendors to to use proper upstream kernel interfaces, so while I can't speak for them, I believe they are on board with this new API.<br> </div> Thu, 11 Jul 2019 18:37:57 +0000 Destaging ION https://lwn.net/Articles/793407/ https://lwn.net/Articles/793407/ jhoblitt <div class="FormattedComment"> Is there in indication that AOSP intends to convert to the new API or is this a completely independent effort?<br> </div> Thu, 11 Jul 2019 02:32:52 +0000