Message ID | 20220821181917.1188021-1-robdclark@gmail.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADC4CC00140 for <linux-arm-kernel@archiver.kernel.org>; Sun, 21 Aug 2022 18:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mWjJ92RQU3sKOZM9QeIEAsIEKnxIR8FwjyYd0pOjfpA=; b=lo0ZQ35ogdBhEF Zm0KPt4c+mV0i2C2ViJVTN1O3ruLyQQQ6GYZGUU6IUfoYPQTfC6jtM0e51989E9LZAJeh0eLHBhKR pHGrereqGhWK6iU0GCMZOOcpQszkUh7xK7xMgWHiQTEbqKB/zCMkSxjotZQmfsjDbhv0K5ecifSQd TWHwuPHLmJy80EsjhLMsX9iucVmpGm6CJc97MBXIaIQDgSCH4S17pydbNZVfAmBdP0UpOKGhhgiji gUOE6xpoA6beVufVDQwnyITnwfszfLYCTdLXqEtjc1QbzBB/WYXBTDPLh3VfwWbE2mnVnUGieerWa +204UhmBeyXTnucG+asw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPpXD-00DG7y-Jw; Sun, 21 Aug 2022 18:18:55 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPpX6-00DG3P-CF for linux-arm-kernel@lists.infradead.org; Sun, 21 Aug 2022 18:18:52 +0000 Received: by mail-pl1-x630.google.com with SMTP id u22so8087629plq.12 for <linux-arm-kernel@lists.infradead.org>; Sun, 21 Aug 2022 11:18:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=c7bGOCwCut3qJRTlJSLX/tQ+GZfNMJd7MaxTPLedcU4=; b=P3dwVwj3ElFzcjZaUJDdt6flBmuan50tBUY6b7hDWZFmqDSN9OLs2alfaT6XMsOYo3 FDeIDa7PRo/TtuGvXJKZ4NVPSkCSL474me2baWzTNoG357uWKrB7Q4EgSSs4nfKSXQvz XJXmoQzgm937dSG/jaMw2T5DcO9bkCUFOVfSDbBhMU8vbYIxJQCv5dIw5RFfora9fEYI 99bzHsi1qj6q6qYPa7IXMLHGy7PW/Ru61aTfqSe/xvbDlTiC6eNjy2N9F312nnmsaKN+ urYPskRD8xI5V/iv8VRKsKUgP08hQwaJU+7b0yjDnyi3EF73NNjEDnGnCbdq6/+Gsrns Vlhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=c7bGOCwCut3qJRTlJSLX/tQ+GZfNMJd7MaxTPLedcU4=; b=c81pLXDR78szRhdrRjSP6rKlOmnOqIH6mr9AtV3oIbQdmjkqKMTwu/VfFRatifUDlw E1b4FG0xB1Q0DsuToymqCY/uCfiG23JE/hr5TGi0KR3o4TlyOhcYxlgPBsQywfPVCI/n 0Abv10pA3h6qJmhBA/8HiVxhESY3GXh8oNAOSFpY62GwGoTeylo3YY2HQZxquuxPjCtZ c9G75lhB5swewsaZl1T5dvowDXIEogcVLOkG+rEmXVYBY5w4pI9oCeCQL7qBLG3zZzJD emYFoLzBP8Qfk/oM9lba+jCCIuoVTqB2Tywm21tz8lIvauXOGZdRz5/oiH8cPkmC4/jN VVdQ== X-Gm-Message-State: ACgBeo1AyqpZLQgrseHSUS80YioyhMNr/i1vsTMe9zIiBf8Cu3dUZTa8 O4rrzCYdVZFpfLyL7KbghkFwaLEhDvE= X-Google-Smtp-Source: AA6agR57mA7zNviZGDBPe/nd5LlRYobJ2Lt2nZD/kVP6bCUNXwMGM4G4e4fsuQBTH/AKetIff6wKKA== X-Received: by 2002:a17:90b:514:b0:1f5:59b2:fceb with SMTP id r20-20020a17090b051400b001f559b2fcebmr19459511pjz.82.1661105925043; Sun, 21 Aug 2022 11:18:45 -0700 (PDT) Received: from localhost ([2601:1c0:5200:a6:307:a401:7b76:c6e5]) by smtp.gmail.com with ESMTPSA id z10-20020aa7990a000000b005364e0ec330sm3098307pff.59.2022.08.21.11.18.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 11:18:43 -0700 (PDT) From: Rob Clark <robdclark@gmail.com> To: dri-devel@lists.freedesktop.org Cc: linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Rob Clark <robdclark@chromium.org>, Akhil P Oommen <quic_akhilpo@quicinc.com>, Bjorn Andersson <bjorn.andersson@linaro.org>, Chia-I Wu <olvaffe@gmail.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Douglas Anderson <dianders@chromium.org>, iommu@lists.linux.dev (open list:IOMMU DRIVERS), iommu@lists.linux-foundation.org (open list:IOMMU DRIVERS), Konrad Dybcio <konrad.dybcio@somainline.org>, linux-arm-kernel@lists.infradead.org (moderated list:ARM SMMU DRIVERS), linux-kernel@vger.kernel.org (open list), Loic Poulain <loic.poulain@linaro.org>, Lu Baolu <baolu.lu@linux.intel.com>, Robin Murphy <robin.murphy@arm.com>, Sean Paul <sean@poorly.run>, Sibi Sankar <sibis@codeaurora.org>, Vinod Koul <vkoul@kernel.org>, Will Deacon <will@kernel.org>, Yang Yingliang <yangyingliang@huawei.com> Subject: [PATCH 0/5] drm/msm+iommu/arm-smmu-qcom: tlbinv optimizations Date: Sun, 21 Aug 2022 11:19:01 -0700 Message-Id: <20220821181917.1188021-1-robdclark@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220821_111848_506935_43C6A6ED X-CRM114-Status: UNSURE ( 8.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
drm/msm+iommu/arm-smmu-qcom: tlbinv optimizations
|
expand
|
From: Rob Clark <robdclark@chromium.org> Two additions to adreno_smmu_priv to allow for a couple of optimizations: + Use a separate ASID for each set of pgtables to avoid over-invalidation. + Detect the case of unmapping from non-current pgtables where we can skip the redundant tlbinv Rob Clark (5): iommu/arm-smmu-qcom: Fix indentation iommu/arm-smmu-qcom: Provide way to access current TTBR0 iommu/arm-smmu-qcom: Add private interface to tlbinv by ASID drm/msm: Use separate ASID for each set of pgtables drm/msm: Skip tlbinv on unmap from non-current pgtables drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 6 +++ drivers/gpu/drm/msm/msm_iommu.c | 44 +++++++++++++++++++--- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 10 +++++ drivers/iommu/arm/arm-smmu/arm-smmu.c | 43 +++++++++++++++++++-- drivers/iommu/arm/arm-smmu/arm-smmu.h | 1 + include/linux/adreno-smmu-priv.h | 18 +++++---- 6 files changed, 106 insertions(+), 16 deletions(-)