Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp497259imw; Wed, 13 Jul 2022 02:31:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tvT7IPuVyrkoOaTV8jcgtHHOd9kxwb3tizTlDRhERTTuNq2aPSjO4SpFnONP8tzHbnbGO7 X-Received: by 2002:a17:902:d581:b0:16c:91e7:cfe1 with SMTP id k1-20020a170902d58100b0016c91e7cfe1mr206822plh.92.1657704702574; Wed, 13 Jul 2022 02:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657704702; cv=none; d=google.com; s=arc-20160816; b=dUdhoCBXrqa4snKzFcJtBbvsFWfZzY9XTuMqwc3ExMWZB4rAGuyBt8NdGPDzlrhKR8 9lm4XiqqaovWfi4nCjZq88hJqxGvGo11cDdR4zUNmT8RqpYwRKdwqiRhkooiZxoYlJZm RuvGZlWAGKBezcxswA/DB3ZvioEq1H5QbME9frEeNEwNYdECclfeuiteT66XCGiedPQ4 uMfck/bjDYoAW/Ar+s0rY1Bi6riYiCAjFRxwT1yF/WQQ2zihqSLjQvFHCqB1jv26fvfz i7/4Eq6WjPwoUs1gkGV2Aj1xZ0G7HYYisxSK0ZHccHHiMHOn7+eA/EM51RFS/doJDgko H5VA== 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 :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=fuuP+iz6kDkdf7sEA3VXxD1ORoC5XrvrJGbZCdNe7+o=; b=OlJYZ/iE8fWW8FW3wDPSaj7hFNcKssYxVQBztxt+qxtJxAGJu8d+pDNJCsRdWNkExf Cdo42OTEXe71jeboH7ofpKzQw9kV8tB7EUn3KtWvPj1sk63Er/0IxZYAKBK5u+Mjy19Y n+PQ4VQ0NiVCTxMVilZ9zHHbjR4C4g6NIe3cZAHfeRw4OqagAy01CJ6vsgsPy+Pp6tJ0 ANvw4FRjpEnMGv9z75hzHSdpQyjgW9Kxtm1cy2m0vEgykxMx0Q+HYtYPbat23TQUughm Jur20HYVRxsMzLblmbXJot9tHdEnMgWeswAd3R1CPOkIOS2qih0mM0/vGcdQsYgR7xAN spvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=SAbvoxeX; 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 r29-20020a638f5d000000b00411f660a8b0si17076841pgn.124.2022.07.13.02.31.30; Wed, 13 Jul 2022 02:31:42 -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=SAbvoxeX; 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 S235579AbiGMJaa (ORCPT + 99 others); Wed, 13 Jul 2022 05:30:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235271AbiGMJaY (ORCPT ); Wed, 13 Jul 2022 05:30:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D546BEE1F8 for ; Wed, 13 Jul 2022 02:30:23 -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 7229861CAE for ; Wed, 13 Jul 2022 09:30:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26A02C341D9; Wed, 13 Jul 2022 09:30:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657704622; bh=numqK226xRmWDfGwHz4d5UBb1H2QKPgM+SkFWYMj/wI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SAbvoxeX0Ggt9W/GCv9SVYOeovlGpOZD7jsBImb7PhuMpPL2NV8AhwQ++WOQu4lrB SUFyClvGEs4Jh5lWKYfxQh10iKBOLOeePFezzCpaFRTjbNYFrfs1Hk1hfPScgpx01h U8CkhvAz/xu6hzblOMsgFz0qlGbul9WvQZjHYE3/1RpfcMB1Qlr+P02h3BFpKqcjHS sS20FeC369U3qu6cIZ6Dgj4d1dEaOEH60H2bj5eHrKshkRYqww6UBRRXQOn1GXeKyr Eyf4Z9cki4QvvUYKZtXqo8fxAGZXuhkmnP5p4jUvpuEuQAuv9m7PFCVY4bfaWGQw+k FPVMJi2zh3RpQ== Received: from mchehab by mail.kernel.org with local (Exim 4.95) (envelope-from ) id 1oBYhH-0050Lg-PO; Wed, 13 Jul 2022 10:30:19 +0100 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Alan Previn , Daniel Vetter , Daniele Ceraolo Spurio , David Airlie , Jani Nikula , John Harrison , Joonas Lahtinen , Lucas De Marchi , Matthew Brost , Prathap Kumar Valsan , Rodrigo Vivi , Tvrtko Ursulin , Umesh Nerlige Ramappa , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/21] drm/i915/guc: document the TLB invalidation struct members Date: Wed, 13 Jul 2022 10:30:08 +0100 Message-Id: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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,T_SCC_BODY_TEXT_LINE 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 Add documentation for the 3 new members of struct intel_guc that are used to handle TLB cache invalidation logic. Signed-off-by: Mauro Carvalho Chehab --- See [PATCH 00/21] at: https://lore.kernel.org/all/cover.1657703926.git.mchehab@kernel.org/ drivers/gpu/drm/i915/gt/uc/intel_guc.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc.h b/drivers/gpu/drm/i915/gt/uc/intel_guc.h index f82a121b0838..73c46d405dc4 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc.h +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc.h @@ -76,11 +76,23 @@ struct intel_guc { */ atomic_t outstanding_submission_g2h; - /** @interrupts: pointers to GuC interrupt-managing functions. */ + /** + * @tlb_lookup: TLB cache invalidation lookup table. + */ struct xarray tlb_lookup; + + /** + * @serial_slot: index to the latest allocated element at the + * @tlb_lookup xarray. + */ u32 serial_slot; + + /** + * @next_seqno: next index to be allocated at the @tlb_lookup xarray. + */ u32 next_seqno; + /** @interrupts: pointers to GuC interrupt-managing functions. */ struct { void (*reset)(struct intel_guc *guc); void (*enable)(struct intel_guc *guc); -- 2.36.1