Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5803595pxv; Wed, 28 Jul 2021 21:41:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGjofT6scD4AA/f8Y5o0bYk1p4xQWVUSgiZYjj672Oyx6mJiu5HR4BPpFdCQYF/NcBVPj2 X-Received: by 2002:a50:cf8c:: with SMTP id h12mr706590edk.360.1627533659981; Wed, 28 Jul 2021 21:40:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627533659; cv=none; d=google.com; s=arc-20160816; b=iw9T2zB92aGZPkCUh5kn2aXr6eI+pq8m4faLrfq3nUxqb5bYG+IJqgTJxBMi9YXsxE 0IKtQPW9Q5aLA9WgCk2RUZQBzbRQZ0PsN1BcOU8y5GqJHutIbqMm7sl2niEcz/yoNNh0 tkm8bOpfrFO0ii+7Y/u0XEsGwYM61PSW00jH525iTj0xOTVX6gdL9z5i79GWRW78+mFz tH/4im7Y3OGSlNOBt7tcCo2rWPjOIKoWc2RwuVAChNCPmtOLJNywLVfCgX+UoMRTOUeI rj1cTY1BDlBmk9ZN1Z4bESftp+u6IfsCyivbTf61eo7IIUJnaMfBDnA/aqXpgFvqIJn6 +JIA== 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=kEfEwT/ODxxc08E2cVLUhKxwnEHlWMj0LfLS8lLCtPU=; b=D9mtCrqhQ5q81j2b7kWnqHOqgwC30KSKZ5ZDyCHgYBvazp4LUPhNDGNOwiRBweFLtZ WplXf2pgcrq8FXxkvegnvCXOQA8onTMOkbrqbw2XSH+17xtLXKW0FKuDuLrrypOD9CK9 U89nl2S9/skI6AFQ5wKeDEEGgiW2RhY2DE6r0YnlF2DsGjZar4HTq1ZrFYKfwPnQqrch 4NRHKq9LMSjrGXBI1Ly6U8494Edeu0Fc4vNxO8rkBcT51f9M4Ee4kn9d26cuhCgwHvYW Rvx6fbWqMKJyB1bMtNBlhkuINTSAyhtikzCCRxId24dPxhdN6hXPdvHCzYeq/DpB9RN2 YlDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="td2/P6bU"; 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 e10si1775490ejy.33.2021.07.28.21.40.35; Wed, 28 Jul 2021 21:40:59 -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=@mg.codeaurora.org header.s=smtp header.b="td2/P6bU"; 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 S233572AbhG2Ei2 (ORCPT + 99 others); Thu, 29 Jul 2021 00:38:28 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:51396 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233540AbhG2Ei2 (ORCPT ); Thu, 29 Jul 2021 00:38:28 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1627533505; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=kEfEwT/ODxxc08E2cVLUhKxwnEHlWMj0LfLS8lLCtPU=; b=td2/P6bU03U0go1NDSm8vKjDksy58ugYEVIoztKZg2jf4bD2Ftk1j8E4/Zy1In094oTSiaAb TnwJSbDqw/OzTVwyj7WZXKkPgNxTnHeBz6TYmzdS17g7Sp2fNi5sQFzqfdzZeLU+R4lwirfp uwBxQt5QC1fiNAFnE5rDhEkOc1w= X-Mailgun-Sending-Ip: 69.72.43.7 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-east-1.postgun.com with SMTP id 610230c017c2b4047d9ed643 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 29 Jul 2021 04:38:24 GMT Sender: saiprakash.ranjan=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id ACE9CC43146; Thu, 29 Jul 2021 04:38:23 +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 6DFA3C433D3; Thu, 29 Jul 2021 04:38:22 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 29 Jul 2021 10:08:22 +0530 From: Sai Prakash Ranjan To: Georgi Djakov 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 In-Reply-To: <20210728140052.GB22887@mms-0441> References: <20210728140052.GB22887@mms-0441> Message-ID: <8b2742c8891abe4fec3664730717a089@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 Hi Georgi, 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. > > Hi Sai, > > 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. [1] https://lore.kernel.org/lkml/21239ba603d0bdc4e4c696588a905f88@codeaurora.org/ Thanks, Sai > >> >> 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 >> -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation