Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp447972imn; Thu, 28 Jul 2022 05:50:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sSPY9HfUlDqEL2iaAD84CC3rQ7vVlurIXL/JK00HGQ5iVdEjbqNkrXkW3yoe7cCRcEJjgd X-Received: by 2002:a05:6402:1d53:b0:43b:e662:9fe7 with SMTP id dz19-20020a0564021d5300b0043be6629fe7mr22153486edb.168.1659012616516; Thu, 28 Jul 2022 05:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659012616; cv=none; d=google.com; s=arc-20160816; b=mTEBWK2ns1zX2mdzoEUahEOjATFAOG27aVuds7d1dx2GU0xdrMwq2yfQHgbcGT+ivK lN5RQ87kbz4+xbInvRnazPnYqdcsTy1jWn1tiGbiME5U4Gj9oUAxj71eJZ2rhYl5wzhS v53DN0fQ2A4xIJfn0flvIk7oWPEmDag8eCHNnLEOW7I8+0OMqLQT1IAy4HzM9izJ13yS GD/ZPvuHV0+H30Uqj4nR77bG/dp2pl8W+ft2do3cHwE0o/iHpBSakSoh5q0Bln2Idl2R v3xZ41plm0qQAy7Yo1drO1Z11mCLUSRsFbBicOp944R1QY0T/Ofr+bhdCyG78cyWEd1R oXLQ== 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=vWYV6Pz453+rtC/HVp0OWo1LkRcGfbssYK7Em5XnH/E=; b=sbNsjzG27HrdnULyyfbsRJFHgIC5MydTkzAIx3ORBHmcrF5WACkeGwWLrCv//Jm6Cl y0bgrX6U4SsiiRtVPwCcVSoHGaFDR9k1QGQRYrnH/6/gxuQlUSK/Le05hXWF0kyi1hzB 1WV8OUXXs7ouQMIshfwuSDjEYFN7hNJuiIaE/J9PiS3+5JnKXp2rHpAk06RmBzNb6fK/ 90UcsEj6CN4jxIZ73T96HdjJbxul4wYTEDKoWqTKsMix66jUB6B4YCoMtvLuZ05mMKWb GXC+XOR9RBOrm+Xx0RDs4Orpu0TKWC8q6kIqMgNogcdGudVRyYQruH59Pd/kjfwRSKWb uiAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=mloeqN3p; 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 bf2-20020a0564021a4200b0042df92502a1si575643edb.329.2022.07.28.05.49.51; Thu, 28 Jul 2022 05:50:16 -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=mloeqN3p; 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 S234675AbiG1MaW (ORCPT + 99 others); Thu, 28 Jul 2022 08:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237566AbiG1MaP (ORCPT ); Thu, 28 Jul 2022 08:30:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6A0A38B for ; Thu, 28 Jul 2022 05:30:07 -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 5369161CB5 for ; Thu, 28 Jul 2022 12:30:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC3E6C4347C; Thu, 28 Jul 2022 12:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659011406; bh=SsLKQKAJDVdmsjFvuEvNTnovowDQ9E5EcEd8pA4PGds=; h=From:To:Cc:Subject:Date:From; b=mloeqN3p2gVVuWZfpt5whWnuCmI19/IGx+lB3YAP9QC2uQ9mKtcWA5MmRci4SBSnN A3242ZO939pfOZe9CPGwbXZCHdqcNCuV/SZ1+S+qsuX/jaSRFn6EsOUSfpb+LmQ+qX 2l5TZNOMRRqcvej1lT+UsIv1SRxCIDExrXx4+Q768jnUGg8aWA3zeCDxS2vagMcKUn Xywkd6UGWYKC3d2ACZqwNF5QAGE+jskhS3rzxHFhk/RCOqVqWR0GBXLrOxzM68XUnw F9qmxPYJm02Eg34hB/Suee44VQfh9aowrLaeoUPi4AKcE+dW9406ggSPzTA0NG+dRk +Nm/Yx0iVAleg== Received: from mchehab by mail.kernel.org with local (Exim 4.95) (envelope-from ) id 1oH2eS-005W6T-95; Thu, 28 Jul 2022 14:30:04 +0200 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Move TLB invalidation code for its own file and document it Date: Thu, 28 Jul 2022 14:30:01 +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. 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 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 | 112 ++++++++++++ drivers/gpu/drm/i915/i915_vma.c | 1 + 7 files changed, 327 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