Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3323808pxb; Tue, 19 Jan 2021 21:33:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKcasSOltfSLdHdjBjYhc784/LdCK1Y0TAarCinMVD4jiz1DAsPnV5PyFToYKQ3+6hWNNm X-Received: by 2002:a17:906:1291:: with SMTP id k17mr5398938ejb.288.1611120798853; Tue, 19 Jan 2021 21:33:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611120798; cv=none; d=google.com; s=arc-20160816; b=WqaKaVh8D5N0TG3QwP5tcpKT17+/jeNBynmVItcDf+ISXIrNdW3l1FaXipMlmRcWGf bSSDkQU+bo+ez7NJyq5tF+PE187mwpO6iZqoDIqfaDRRUMOxxHOeSHznofbAnfvWAXKq Ogs+hd2aCANIR3rRKMEkrumjHKqQqITJxL+xBm4y5Z0JLJfEB9YO3QaSBpSaNXiAmm4P nctKLagnFsXSqX2Nsmrm/Oqn0RuIJ09uqXj4ZSOrnLFwy7f/+z3wz3p0/mz2QKbcFjQR G6MxPaYsHKdew+mN8Ge1ySfKmAC/1fqrOvV4JspjElcbk2KcZfIWUOucpeCE7aQVIdlX sKzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=elqg9TnQqVo3z+rjCzoXTDJ/nWUGnhtMTJRsONyCrT4=; b=yiMLb/lD0fOqYN/X5EZ8p5RbgGv3PeY/d6ODzUOqKiC3RG9PAm/AeZUMcrcLjZP+rs jvqJa7Ziu5CpwfSLtXIlKWTbHXgtDJ1CRdCp3d9fmUlCdTSpqxW5O7d9jg0AxcqVyBjX lCKfJUECaTB0bkNja+YGR0E5B6UPPGD//7AQdtuCx+B/np2BOOj6ftnpmQ8ZY/Wn2RJw Xe4yL2km0LboAViJ5iLJhaKqH2CyM1HFX+H/D1gULhkvIp3GIa3nm0Mm8QPEQzqR7fUp 6q5/aQNMFq/zPanQfAPhOk2CCiGDhl0rjSbRNZYjDCU+BnMBINRHhK29dD5TN0PaRfzG 2d/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=awHetKhw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si329346ejm.29.2021.01.19.21.32.55; Tue, 19 Jan 2021 21:33:18 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=awHetKhw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730000AbhATFVk (ORCPT + 99 others); Wed, 20 Jan 2021 00:21:40 -0500 Received: from m42-8.mailgun.net ([69.72.42.8]:39785 "EHLO m42-8.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbhATFTs (ORCPT ); Wed, 20 Jan 2021 00:19:48 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1611119961; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=elqg9TnQqVo3z+rjCzoXTDJ/nWUGnhtMTJRsONyCrT4=; b=awHetKhwpcZ0LJiBuu2CaN9PbuDl4Z/pqd0ngAcI9x0bWQ36qOcOnWzANQ6nZjBpEoamNxDG D5DCC8CAl7aQykJN3V8Ku9rHHyE+710+kaDqBUfP6mcqejOiSBS1/W5gYjfFPeFC0yQ/NCEs qvMaj5dpTJdrAE4kOmZUbYKTDEE= X-Mailgun-Sending-Ip: 69.72.42.8 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 6007bd3b75e5c01cba52c749 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 20 Jan 2021 05:18:51 GMT Sender: saiprakash.ranjan=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 25F3EC43470; Wed, 20 Jan 2021 05:18:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan) by smtp.codeaurora.org (Postfix) with ESMTPSA id 52F8BC43464; Wed, 20 Jan 2021 05:18:50 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 20 Jan 2021 10:48:50 +0530 From: Sai Prakash Ranjan To: Will Deacon , Robin Murphy , Joerg Roedel , Jordan Crouse , Rob Clark , Akhil P Oommen , isaacm@codeaurora.org Cc: 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 In-Reply-To: References: Message-ID: <3e6ec220c07bcf91fae0985e1798f7a1@codeaurora.org> X-Sender: saiprakash.ranjan@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-01-11 19:45, 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. > > 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 Gentle Ping! Thanks, Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation