Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5265488pxv; Wed, 28 Jul 2021 07:02:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhFePMqA8VA5C6fkgHpU8bzlgBJdpWAa9paKpiDnNH09cQfGmwQWP0VgHstM0zEG5aPuL3 X-Received: by 2002:a17:907:9d4:: with SMTP id bx20mr397411ejc.123.1627480974611; Wed, 28 Jul 2021 07:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627480974; cv=none; d=google.com; s=arc-20160816; b=DMcWaYNVtOsrNAGwVXNTGBLJlz/pZbwk6in4otmxBKYQes43kMfvx2T1fyzZ+xkuPo hXc/xNYUAY4sUR61CUmM/5JWBGl/nd9YFTY4+jqriomQiIizWS9/RpLWn2mXOq2M3186 6cxoB8C/xJc42VbW1adNcaXNs98edv+EwPB9hQV31pFD20GhMu8uO1GWkSX2Ji0JMN2U XJNa//zufslmN1pZtQu+6vQOTQ5nk0tUUoG730tLDvJVhgDQlwDJfCvbl0LFYOgS9/YK d1yFUavA827qRNCO9vHJuTjbH4nlH3suIBQMmhGjiSYUG95NBPXHJ63/tMBttSJITbgy 1f3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vDOb1NyYtFk34hN9/9aJ4d2HfYGxY98ujuDBITarcPs=; b=hjNHXoRoLXGAW/YzI51Uyw3Qs9Q7umtw9NWZcLsUlPksPAacNIeN2saO/pf2sqgnel 0SQ3bNNMXpq5dkjuPG/JcGHlbYNU0NqKJbwkJpU6ZGzRKvVJXPzNzZ8XTuZzQ5Klt+Zk aFRRx63ZGCiIZ535gwSYi1sosis8m1M2Ohhr1BcLZOwoHn+vfxIwrumKl8qptW1oMwLG wmfIgz+q2ImCJOQv8pmL7vCM2oR3eCvlh23dk7ik19zOSiktb2Jc/WmuzNGdegOPo/kz vuZt1MqEolPQLxq2cCRWih54Gm87NJZbtSdx3XeJeMm7r9xSVBwLzckNpTSP9gyAvXnT n+CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uSK3rYX3; 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 g20si6095578edj.128.2021.07.28.07.02.30; Wed, 28 Jul 2021 07:02:54 -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=uSK3rYX3; 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 S235335AbhG1OBD (ORCPT + 99 others); Wed, 28 Jul 2021 10:01:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:35946 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233254AbhG1OBB (ORCPT ); Wed, 28 Jul 2021 10:01:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A326E600EF; Wed, 28 Jul 2021 14:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627480860; bh=sNNg1eBjaBERoOL+pNGqJG1GnXOiFtnWCHGA3ZA1guw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uSK3rYX334vCPmIzWf/THTX34yLnn8ni/QBiKG2wSaCIb8flS7V+h/B0eP4sytljM /dQCjspApub1KKi22poI11WUSYyfjIatH2hfq7qGrbqIBlbq4S7vAjAAhS+KS8TxV8 5woiYW5ZUA5Il7RUYHhP1Ry/YyXRyBxz8Ox2BtJMlMkWsKjuc9kKYiDOiacib9sy0i aPfPMZkkYmDggAK37mahkCnICO1fDZeN0JaiIFzgSxGeXShgdXEF1DAYPxU22ln/Di kGzFe7xSqPBokwQ8jjNqfX2hYMIrPy1ah7XaTQx6UwViWPpfyLEfsPSfZ5MEsWr3Ps NAkXFU5X3exlg== Date: Wed, 28 Jul 2021 17:00:53 +0300 From: Georgi Djakov To: Sai Prakash Ranjan Cc: Will Deacon , Robin Murphy , Joerg Roedel , Jordan Crouse , Rob Clark , Akhil P Oommen , isaacm@codeaurora.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno , Kristian H Kristensen , Sean Paul , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 0/3] iommu/drm/msm: Allow non-coherent masters to use system cache Message-ID: <20210728140052.GB22887@mms-0441> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Hi Sai, Thank you for the patchset! Are you planning to refresh it, as it does not apply anymore? Thanks, Georgi > > The series slightly depends on following 2 patches posted earlier and > is based on msm-next branch: > * https://lore.kernel.org/patchwork/patch/1363008/ > * https://lore.kernel.org/patchwork/patch/1363010/ > > Sai Prakash Ranjan (3): > iommu/io-pgtable: Rename last-level cache quirk to > IO_PGTABLE_QUIRK_PTW_LLC > iommu/io-pgtable-arm: Add IOMMU_LLC page protection flag > drm/msm: Use IOMMU_LLC page protection flag to map gpu buffers > > drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 3 +++ > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 +- > drivers/gpu/drm/msm/msm_iommu.c | 3 +++ > drivers/gpu/drm/msm/msm_mmu.h | 4 ++++ > drivers/iommu/io-pgtable-arm.c | 9 ++++++--- > include/linux/io-pgtable.h | 6 +++--- > include/linux/iommu.h | 6 ++++++ > 7 files changed, 26 insertions(+), 7 deletions(-) > > > base-commit: 00fd44a1a4700718d5d962432b55c09820f7e709 > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >