Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp90080imn; Fri, 29 Jul 2022 00:06:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uaV4v+GwE05CenOepIQCdCohpsplBBBbQcb3147epfLkrKvnBxUXkdkJbNVmQEpEzX5vn9 X-Received: by 2002:a05:6402:1d4c:b0:43b:c85f:5c95 with SMTP id dz12-20020a0564021d4c00b0043bc85f5c95mr2241970edb.213.1659078393177; Fri, 29 Jul 2022 00:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659078393; cv=none; d=google.com; s=arc-20160816; b=SUHgQJcjCGDl+b2Xk52anq6QFe6PiPcaQ78fZ9XLXQKl5brPFk8u4MQ0fQ9GzqxeZ4 kIrRMKGmirKih60NFww6VWNg6nsf5tfGwtLquONoQ1NL0SxNIgmSQlzE0oSOIAXv9Azd lz16p4gYcNVrOHhiCojeyOzx7rnRsVtNbvcUxcES1pK9mOP7I4ebKwOSsKlWft0MFT7l rpeFiyzTyL6uUvdehQyKzwu1US2ZAY+JvvLT7KaBKJB0pFfCnJ4bADaAbCb46Luh4cgk iq8ws5/kDyAcgCUtT34jDXBXk1OfBiua632BHnYbVimAAJPf0pdNKV+sHzReWZ/j1Wr2 WSHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=F/VcB08DLtLihzLHhsXihlf82tpLSaRC39ONs6SETxs=; b=vUl2HSMY7SiPYsRufSLU2sKvHw9n2jE++GFf5myzYtb4MnWoAcMl2Rw0gV+zclJBq7 wWH8wUJlXS+jx+jqzkFcbuk+bbXl0CSQaYG1b/FaL9d9FniwG/e652mPKu9WzMTo/n3x Rzu8sDNK18qXDZes1dFL8I8DFvrcYlvz1HGIfmg8CAjGocuvRVBQvGgOI9ZQsWqxrIc2 I6MZVH2D0DbRaSRtKj9+dtcGFLw+AlMbUeNnY9nlAHN67StQYhhkIWPd1GSR7WePpRbC JVO1JT3pT3ZvJdN8oSzod/kX7t84fX4C2P1BlAblqVieQBu27BQ9XkLqt2/XYsFaqpr4 5fAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=Yyf+039Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a05640205c800b0043a6efbaaa4si1520777edx.301.2022.07.29.00.06.08; Fri, 29 Jul 2022 00:06:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=Yyf+039Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234252AbiG2HED (ORCPT + 99 others); Fri, 29 Jul 2022 03:04:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232907AbiG2HEB (ORCPT ); Fri, 29 Jul 2022 03:04:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71DC02F39D; Fri, 29 Jul 2022 00:04:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0F64861A15; Fri, 29 Jul 2022 07:04:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65564C433D7; Fri, 29 Jul 2022 07:03:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659078239; bh=fzCBMgJfZnLfcaUhqg9JhjJadviES9eqpXWT+njnHTg=; h=From:To:Cc:Subject:Date:From; b=Yyf+039YkXdBICHTs98ag+yEw6yF8QT8bAC4OODtkBlfhp67tCKgZ0MU0tvVTt3P7 ztzi//nINQlNfrWF/sRHa9IbEpSr8xHs3szShKGlnKD4Xz+GlZJuL2podux/40S7O2 rFAtudqi+0tdIV3mNkmc3BFMRyETo55M/BW1I/jdxu/k+Af2/lexXThSYjJ4HhFWtC K1LXYO7FQZVrvJKw+k0j6lgO7zEU3Fyrfl8/mKhqGproj2TD3rF9LvN05xkh1zdPRr YzRUBYS7UWan8d4R0g6R3WI67B3G6Br3q37o9b7fkn0Cmsmm8DwsjyZcZUbzCVg5BN MYmUuL6/R7E2w== Received: from mchehab by mail.kernel.org with local (Exim 4.95) (envelope-from ) id 1oHK2O-005nBq-Vd; Fri, 29 Jul 2022 09:03:56 +0200 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Daniel Vetter , David Airlie , Jonathan Corbet , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Move TLB invalidation code for its own file and document it Date: Fri, 29 Jul 2022 09:03:53 +0200 Message-Id: X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are more things to be added to TLB invalidation. Before doing that, move the code to its own file, and add the relevant documentation. Patch 1 only moves the code and do some function renames. No functional change. Patch 2 adds documentation for the TLB invalidation algorithm and functions. --- v2: only patch 2 (kernel-doc) was modified: - The kernel-doc markups for TLB were added to i915.rst doc; - Some minor fixes at the texts; - Use a table instead of a literal block while explaining how the algorithm works. That should make easier to understand the logic, both in text form and after its conversion to HTML/PDF; - Remove mention for GuC, as this depends on a series that will be sent later. Chris Wilson (1): drm/i915/gt: Move TLB invalidation to its own file Mauro Carvalho Chehab (1): drm/i915/gt: document TLB cache invalidation functions Documentation/gpu/i915.rst | 7 + drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gem/i915_gem_pages.c | 4 +- drivers/gpu/drm/i915/gt/intel_gt.c | 168 +---------------- drivers/gpu/drm/i915/gt/intel_gt.h | 12 -- drivers/gpu/drm/i915/gt/intel_tlb.c | 208 ++++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_tlb.h | 130 ++++++++++++++ drivers/gpu/drm/i915/i915_vma.c | 1 + 8 files changed, 352 insertions(+), 179 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/intel_tlb.c create mode 100644 drivers/gpu/drm/i915/gt/intel_tlb.h -- 2.36.1