Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp973170pxu; Wed, 7 Oct 2020 23:07:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk3Do8lBBd8qAGwzb3N7kld83OynMfQuKeD3E7xmtHUs4NVlg6J9lMZjUDax6d+3nco+al X-Received: by 2002:a17:906:82c5:: with SMTP id a5mr7253593ejy.173.1602137270753; Wed, 07 Oct 2020 23:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602137270; cv=none; d=google.com; s=arc-20160816; b=L2eSagoofKzW/9DcDxqfVgMqSoNkwNqol5yPwJG0A7adBM9kJSgM8VWXxTpwFfccRj /T4YwKNkzLZc5DakQYiO2IcUYV91eDL8uTmA5zY5AUVEn8bKhWFs7ejzpTOU7rZ4ZAFb mRFj/00CjwFCBtOiTI2EpO0uH17qg/TKUwvhVwRAVTfPXhnKQhpr/3EX+Kv3V2BsqMWz NMOuw0ZabDmP3vcyhiwg0MPJEr1PENF5kJNDQBuIr8qILhH0K6z6VFN0KIcaabV0XkVf n10StupfY5PzZ6MiqJVjIgKegoRJaClJ0hwIouvYi8UlbCG7xTsVUYTPTbWqiyJYq8ej 6/vA== 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=y4J6xZLLT7X+F7OLOzqqVjMYajEePxtfk9UzEIVuZt0=; b=nCO+9nfECUlbT7TIvp4YMLhfKw0NSCW1nq3TrESimtVVCDsiNn2HJnH9mUp8yzis4I 6yE5rulF/zxxTSWPH58sF2+cn3bzyrCw141BKGW512RT9Lc+JRcrNcb//+gguxgylT3W Xf1Vc5KooFTPDfQPA4dNEMDwICbHZP1qNz5lRo1/DLaCHyMNssISqaIK5Op9svcmAoEP p1BfN6Pmk7S/gi49im9Nk6Mg6QM1CPzrP19IOP5nIRCjeuEOOhmrVg1k2D35NawP8QZ8 /jhA4cE2PEY8q+EDRAXdv0IoLhIl/c6yhYCnUA7oRmGEgRYQ23D7xYmYdpBkpodcpktd HGOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kPUNcT6E; 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 qo19si3011101ejb.524.2020.10.07.23.07.21; Wed, 07 Oct 2020 23:07:50 -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=kPUNcT6E; 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 S1727866AbgJHFD5 (ORCPT + 99 others); Thu, 8 Oct 2020 01:03:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbgJHFD5 (ORCPT ); Thu, 8 Oct 2020 01:03:57 -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 71760C061755 for ; Wed, 7 Oct 2020 22:03:57 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id i12so4428499ota.5 for ; Wed, 07 Oct 2020 22:03:57 -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=y4J6xZLLT7X+F7OLOzqqVjMYajEePxtfk9UzEIVuZt0=; b=kPUNcT6En9JIRrz2QtGnFe3Selq9hqXUXprs+7y6un8lFV/TiArK5U3JSZO6nA0HXc EU4OZInvsC8NfhGrNcJXbKRwIFPmMl52gGu1MbN1wkmVtqNJXZnkisUPsHD1g8cpTvTP /vYBDakKhR3/pdkBfiqsry4OoWqlMvulH6vI0ZzHJz2wwj3Xt3EF7CsCwU6oleYGE1xW Mn+9FWxvPmlHuAGmHkToJ27FQbxcncnyjXun8PnvmbTdM9TevYBPVs8KoHB/UKiPru74 oGLab6xbAPZlonR8LD/jDVDjWC/ksf7nTNlNEazWJtI7qa74TS+7TctEknxblIXbVaAW cXvQ== 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=y4J6xZLLT7X+F7OLOzqqVjMYajEePxtfk9UzEIVuZt0=; b=HBdD9glBPkp6koW9sjANJVywOazoiU9mPolMNP1MGl4GquzfmdYqhxFAV1512k1BvD jYaEfv20ov1sS/EpOPg5HlMbdKA/mpQIkrYHzMgZQzhx29TrzV5oOjzxxa6u9fC4uHdf vNANISg/1fMgriOrAfgQRwJctEZ93oZkX7U2pM5B7QpTtG04OWKazgSV3TRBxjscEP6E BGPX4jPWZVAKHzODb8Ce1SfgTpBOzj6smcE0Sd1dgaQbqEDxLnL2p5XwFNCtg5Ilscos BXy54f1IfbB7ZKvRyMl+4uL8mTMXqoLdo3sflNhSRj2PgnFazVrIa2UEWogd1+8uwut1 47Iw== X-Gm-Message-State: AOAM532DaPzlTYMXn5daE9A9uXNTc/BnpFK6P2LS2br497izlTDiVn3X efTyZI7N9gaSWrrXC17E+Uxum8cVXJcaHD4Tnk1VmA== X-Received: by 2002:a05:6830:196:: with SMTP id q22mr3771201ota.221.1602133436666; Wed, 07 Oct 2020 22:03:56 -0700 (PDT) MIME-Version: 1.0 References: <20201003040257.62768-1-john.stultz@linaro.org> <20201003040257.62768-8-john.stultz@linaro.org> <20201005134528.GA11644@infradead.org> In-Reply-To: <20201005134528.GA11644@infradead.org> From: John Stultz Date: Wed, 7 Oct 2020 22:03:43 -0700 Message-ID: Subject: Re: [PATCH v3 7/7] dma-buf: system_heap: Add a system-uncached heap re-using the system heap To: Christoph Hellwig Cc: lkml , Sumit Semwal , Liam Mark , Laura Abbott , Brian Starkey , Hridya Valsaraju , Suren Baghdasaryan , Sandeep Patil , Daniel Mentz , Chris Goldsworthy , "??rjan Eide" , Robin Murphy , Ezequiel Garcia , Simon Ser , James Jones , linux-media , dri-devel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 5, 2020 at 6:45 AM Christoph Hellwig wrote: > > How is this going to deal with VIVT caches? Hrm. That's a good question. I'm not sure I totally have my head around it but, I guess we could make sure to call invalidate_kernel_vmap_range() in begin_cpu_access() and flush_kernel_vmap_range() in end_cpu_access() rather then exiting out early as we do now? Unless you have better guidance? Worse case we could check CONFIG_CPU_CACHE_VIVT and not register the system-uncached heap. thanks -john