Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1475554pxu; Fri, 16 Oct 2020 13:00:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmQTz8pBww/K5tZv9Cr39UcCT61rWjiosHv6Pv7xRRqKZmwMrbodueB29z8qnqlErAOFMZ X-Received: by 2002:aa7:d7ce:: with SMTP id e14mr6225996eds.258.1602878402324; Fri, 16 Oct 2020 13:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602878402; cv=none; d=google.com; s=arc-20160816; b=ELeo3dIC/zT+gH1XuFxzsT0x4PFvzq+/k34ameXmJkXy2hqFKwNUHYJR41lxAQonEW yNj7pmg1yOEyoEU0LZzFqtXdYrndKWCu6oSMuVYISDvVeYDETpm4kj9/YpqgfbXhOcxF YfV3bRKN1MdrayoFa+CgVSEtk0HrHSrIypBQrXAtQ1s0dgKoV4U0cujc4jxYssQRgESs P8+TAO0Nd3kKOjwhrv4bjbm5vbkyX8DRGx/MBgDu92r9/w2kirqzbJTDpsquY/toL1ll elAp3+P/XjWABjd99Aih+yn9fGQgQ/nXzGN+5HkXxmFTPAlefQFfx5fA+Gb1XKdyE1g4 ivXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/6ZPAavAgIBaIj1gBG4jv7Gu9L4sN03UOtnPoYPnkGM=; b=GiJ3X1ZkM9N7luPNUpXAvJSrdDFTopN5vBeJDp9cm9lDnnAURMXRvOMvfFGTZ+EjGI 9bYTsPsQf7//Pf4gz082PG8L6AWEDA2ByTjweitbWhuZ4DsLMYc5Knp5hTNyQ5cyuaJA 4xjGNaHDYiGoCsHyjBBZudVb72Gq5gDruEiZTpCqcVsVGR5M1hVcekOElajlwiIro0R/ YK5RP73hTgdqai2gus2VdzLSApao6A7qtCjoVW33ZPBXgSmDzAn3u878xRlG1NYJME4t MQtP2IizyDC88f0zoakL2IsKPrrL9H+weKnIHTUf2Fhb8Iy6MSUmyKsbQpkG/Ib00AsM AIqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lP4NOv51; 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 c15si2511438ejr.333.2020.10.16.12.59.40; Fri, 16 Oct 2020 13:00:02 -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=lP4NOv51; 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 S2403813AbgJPSr6 (ORCPT + 99 others); Fri, 16 Oct 2020 14:47:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393020AbgJPSr6 (ORCPT ); Fri, 16 Oct 2020 14:47:58 -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 3A924C061755 for ; Fri, 16 Oct 2020 11:47:58 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id 32so3380237otm.3 for ; Fri, 16 Oct 2020 11:47:58 -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=/6ZPAavAgIBaIj1gBG4jv7Gu9L4sN03UOtnPoYPnkGM=; b=lP4NOv51TEXmx39salQG6uTSU8gkLmkF8p4KPDm1dBqsQhZGdByHYty0AxeWaPaWU8 IMBNfFJZEqSvFcX/JetY+udEH2E82sSSdgfZuuppOCDvedBZJjGbifYxGHw+S7eNMkl7 Q4yPOvK7BXm8r1/s/BzGQMn0sLvwN7kWFqYfrHSd+w3n665ToypEQlxLHvd/d1PUW4vB lOcigsbdkdaso/ojnZ9YEwwCJDkWy14nmMFgohf3GDceQCc+WNSA+0TELgk0n2HJ8reg s0X2GbNw/6VhfYupl1ci+c1/LDuzgv37IEaqsXpF4sHnYq/fMeKyFnBOZQamOHM/6axz 243Q== 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=/6ZPAavAgIBaIj1gBG4jv7Gu9L4sN03UOtnPoYPnkGM=; b=qYFb/YVNaAoqphhTYZvI45MjZV4CkksDyAxOTZ+eNCeqnviUNemIGtGrqPYem058G+ aKdGQ8Lf0rP2R/k7Pj5yymAlF4dzfPuIj51Q2odEGBGSMXaTf6D9KZtciC3n24Pv/zxV oaYx30y6BhLnJuc+umP6D+vq46C5iTWkvzX0MLBWPo0o4CeRMv5v/ekyvXn6WhMbk2XB J729jpkexUIeMOrSuDfTv3DVaRXeOzy5UdFwMdilVgfnUgNjW3/ez4g9g/02+jVvJcJw ELqbCDm0+AlxX1KjsfftwJ9y+RlRw1UCTqNqq/ATl1NFT9z9m4Qqaf3fizUfI/22j1KG T0WQ== X-Gm-Message-State: AOAM531k6Ji9jbmiN5K4b4JOF3VrsQfWY/cfecUZ5BHtksEZRLKwP07J jPBO03zxyDfuI3OpBzgOun5l/Y/9q9QRdDAi0ysbMA== X-Received: by 2002:a9d:2d81:: with SMTP id g1mr3546671otb.352.1602874077645; Fri, 16 Oct 2020 11:47:57 -0700 (PDT) MIME-Version: 1.0 References: <20201003040257.62768-1-john.stultz@linaro.org> <20201008113602.n7ju2hu3j6qsaxve@DESKTOP-E1NTVVP.localdomain> In-Reply-To: <20201008113602.n7ju2hu3j6qsaxve@DESKTOP-E1NTVVP.localdomain> From: John Stultz Date: Fri, 16 Oct 2020 11:47:44 -0700 Message-ID: Subject: Re: [PATCH v3 0/7] dma-buf: Performance improvements for system heap & a system-uncached implementation To: Brian Starkey Cc: lkml , Sumit Semwal , Liam Mark , Laura Abbott , Hridya Valsaraju , Suren Baghdasaryan , Sandeep Patil , Daniel Mentz , Chris Goldsworthy , =?UTF-8?Q?=C3=98rjan_Eide?= , Robin Murphy , Ezequiel Garcia , Simon Ser , James Jones , linux-media , dri-devel , nd Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 8, 2020 at 4:36 AM Brian Starkey wrote: > > Hi John, > > On Sat, Oct 03, 2020 at 04:02:50AM +0000, John Stultz wrote: > > Hey All, > > ... > > > > > I did add to this series a reworked version of my uncached > > system heap implementation I was submitting a few weeks back. > > Since it duplicated a lot of the now reworked system heap code, > > I realized it would be much simpler to add the functionality to > > the system_heap implementaiton itself. > > That looks like a neat approach to me. Referencing your previous > thread, I like the separate heap (as you have done), rather than a > generic "cached"/"noncached" flag on all heaps. > Sounds good! I really appreciate the feedback on this. > > While not improving the core allocation performance, the > > uncached heap allocations do result in *much* improved > > performance on HiKey960 as it avoids a lot of flushing and > > invalidating buffers that the cpu doesn't touch often. > > > > Feedback on these would be great! > > Minor nit: s/detatch/detach/ on both heaps, but other than that > you can add my r-b to patches 1-5. Doh! Thanks for the spelling catch! Thanks again! > As you've said, it does feel like there's some room for > de-duplication, but that will be easier to work out once the > implementations settle. > > I've a couple of comments for the uncached heap, but I'm not confident > I understand the implications of having the non-cached alias enough to > say if it looks OK or not. Thanks so much! -john