Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1521765pxy; Mon, 2 Aug 2021 03:57:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyD6id+IlQtBfUMJO37ZIUcqFcBnP4Yvy+/508ipHfqdMa56AdLE8ym5RMt7+OgxRmM7sHD X-Received: by 2002:a05:6402:40f:: with SMTP id q15mr18663792edv.86.1627901852988; Mon, 02 Aug 2021 03:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627901852; cv=none; d=google.com; s=arc-20160816; b=n1KDQ7+0FNX5Wyz0yJkJDsVsoN/QmpYO+OciPNqzNBF5TXEGdk6TfHZWkvE6eMblhh 0DgaWzqffMdfup0WhPDvmTv8wcygtGDG+sUnkZkxYlyk0mgSGNQ+dSlI99dsdyD9aJFK xJ0k8ROJWVlt8BOruKxG1lW2pHKPxAj58Rikgy3tZsAJk4+IgkOuTkIwoujfPz0c+KRG /t2EVJzB+8TwqhaZaFhtTHxx+Ckrmyqspmoyydl41G6fZq8GsBSXTxVA7NAwzbS24wBw 4NzFF9ie5jaWOIEnpWc9/aRwhbSrqerNa9qS8NW8mc3Gv05FDMF+XykFqB4Mod1I+EkR AdMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=4bdkBdWtKvRfAXpiXSFhw+f8RSx4HrXORfRwEiUNrTk=; b=LiQKzNFZFJVuzWVHiqUJJj0s4+uYdlkayqOF96g2KD++D7DNi9EMvBYS//I84FH+JK KzjihCuOQGInSgGK3z7WV2hi+Ym59+hoZD/aYRiSzyzE0UYFI9xuoW0bWu/oWnJ7tmS4 HBH6rYdxuKtAiF9jpXVM2Udj6VCielYk8mLt1z4FcBLTfUcUY+CJqqb1Vmu2qgD6MXsM 6yfAjUgbf0TqNANnnIA5QHhJYCMRXIra7k+SuYOstUMIlZA5a7skg4Lo8Z5vsIDxM9QB 6N7whhdEb8IeN3N73U2dWI8DUm7s+JSGiFjde3wgIzp9lE23BLWad1l9g3/sWJtv7kvq U/vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MvBW1mFB; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si9493793edc.10.2021.08.02.03.57.10; Mon, 02 Aug 2021 03:57:32 -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=@kernel.org header.s=k20201202 header.b=MvBW1mFB; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233317AbhHBK4B (ORCPT + 99 others); Mon, 2 Aug 2021 06:56:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:44038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232553AbhHBK4A (ORCPT ); Mon, 2 Aug 2021 06:56:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 99A0860FD8; Mon, 2 Aug 2021 10:55:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627901751; bh=FydgtdwsRp9EnGLAnZNQbni8BGi4iPlFDNZ5+Emj/bA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MvBW1mFBfhWkp0RBKF+6rg70GNMqy/Ec+rGLHr9Ib+LS8A4Wn5wG+szv9Xfj8Z6QI 6fUU9w5xm+BMjbL9SbQ0Oso5xWOJ89CdZuCx2EF1mHeGKGSqOKSWyyDXtlZiM+X7VM l6LHTB6s9uL2CWcNTxtbGafHUBYmR24zuSfY+KRQOVaCTmDzulBFvuP5vqjUPF/STf GZAlfD1MvRTjG2fhXvc6VcceLei2ZKbtfdSkQxmg6r2vWyg1rKF4+s7Bvl1XGDyY76 nqYofb5tXVzNHKDJ1m7EUsm3XyckKGDN1FlCa2R4Sqn1VxZZvZ7cMat6rEfaDEADzU kXlX2gcQrkz5Q== Date: Mon, 2 Aug 2021 11:55:45 +0100 From: Will Deacon To: Sai Prakash Ranjan Cc: Georgi Djakov , isaacm@codeaurora.org, David Airlie , Akhil P Oommen , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Sean Paul , Jordan Crouse , Kristian H Kristensen , dri-devel@lists.freedesktop.org, Daniel Vetter , linux-arm-msm@vger.kernel.org, freedreno , Robin Murphy , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 0/3] iommu/drm/msm: Allow non-coherent masters to use system cache Message-ID: <20210802105544.GA27657@willie-the-truck> References: <20210728140052.GB22887@mms-0441> <8b2742c8891abe4fec3664730717a089@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8b2742c8891abe4fec3664730717a089@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 29, 2021 at 10:08:22AM +0530, Sai Prakash Ranjan wrote: > On 2021-07-28 19:30, Georgi Djakov wrote: > > On Mon, Jan 11, 2021 at 07:45:02PM +0530, Sai Prakash Ranjan wrote: > > > commit ecd7274fb4cd ("iommu: Remove unused IOMMU_SYS_CACHE_ONLY flag") > > > removed unused IOMMU_SYS_CACHE_ONLY prot flag and along with it went > > > the memory type setting required for the non-coherent masters to use > > > system cache. Now that system cache support for GPU is added, we will > > > need to set the right PTE attribute for GPU buffers to be sys cached. > > > Without this, the system cache lines are not allocated for GPU. > > > > > > So the patches in this series introduces a new prot flag IOMMU_LLC, > > > renames IO_PGTABLE_QUIRK_ARM_OUTER_WBWA to IO_PGTABLE_QUIRK_PTW_LLC > > > and makes GPU the user of this protection flag. > > > > Thank you for the patchset! Are you planning to refresh it, as it does > > not apply anymore? > > > > I was waiting on Will's reply [1]. If there are no changes needed, then > I can repost the patch. I still think you need to handle the mismatched alias, no? You're adding a new memory type to the SMMU which doesn't exist on the CPU side. That can't be right. Will