Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp928116rdb; Thu, 15 Feb 2024 22:54:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWEuWDdon2RLx9FTiMRFchjswkeTXvPiRTGv8UXxb3ttZ5AO3LKSTsqs+wjEkehu2jZzL/dcKcv8yGF1U8oPMF/LvAvNw/zgKfQsc8zmg== X-Google-Smtp-Source: AGHT+IFCNIqIOv6SWlwclUOgEAVAEc48a1xMfk/B7dv/tfAz9erve5UmglLSc9DuM+pMUh0I57Zu X-Received: by 2002:a17:906:b09a:b0:a3b:e9d9:bf6a with SMTP id x26-20020a170906b09a00b00a3be9d9bf6amr2912640ejy.40.1708066493060; Thu, 15 Feb 2024 22:54:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066493; cv=pass; d=google.com; s=arc-20160816; b=CjOCWQesC0v7nv4+m/IMbt60CcOD41gprkYpTwnwGWuis5YbGk5Ql6GGYBNETo8ysF wTJ873n8IZ/jSd61JAPlHwSzCDDFfQ8wlDtr4ewI3B+JDtTmS2xb47Fhj7WX5YJsxVJh DuEevDBi48P5PghUfJhdoRWbwyoq1lSBmN7H8A7aEa9dfUEVZVRIKHneqGKhQoZaeiI5 z20RQtINprpJK7gokvt6liyv2R3cQ+r44+fLHHvDF3BEnTPX4fT7US3EPGLBnG4qYSHr JdL46WOg3+PkT2TPzWE85wwhRHCoqzsbMK/wTGgOgBWysmdaZn0xPjoeqAOaPartr0sY HWpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=H3ZEZ1ee/NPEuNqv+WBiQDS3NSxj5aSFT+AKUNgYvnI=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=a6g5PTBfN77aLANifTYcUGN3r8K3SD61SjOgVkWhrXNlKbNfJcjmJfvoIaynOeWZn9 KdUUnMkP9jWrKDq8NdLGwXzuRjDhRXgiwlmc2A3nNnNmrnhzrjy8YOwmgeTvEHRE9Tdj TXzNTAtrzcoujRbLZ1Mp+nNiR1pNMgtfMI1OyrQPZ3VMhyWrQx990LMAoxYLB0vO+SrN uhd2G2dWqIUaeFABXluLMNS3683v+Ej5vgVe+isYIWVnAPudwlCu7ZrWyPT4Kr+4k9fT Y+proJaHzaQOiq7HDFAnWCC7kDg2sY3V/In8v9Lmnsej4T2meYxks/7UU3187wyAKFZX lyew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gRSpAaUC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68120-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68120-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w2-20020a1709064a0200b00a3cee3528a5si1332658eju.1028.2024.02.15.22.54.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:54:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68120-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gRSpAaUC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68120-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68120-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CB7B81F22B27 for ; Fri, 16 Feb 2024 06:54:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A1D71B974; Fri, 16 Feb 2024 06:53:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gRSpAaUC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B6051B959 for ; Fri, 16 Feb 2024 06:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066431; cv=none; b=cX/3AjR8gk3Yumf2h18AUVypx8P+wMYJ2HnYZmrIqiEuA14oqzqtTxp8PXkW4ZgEOBqMcKDPDU17cmiCE0Ep0P9hqhNNTAbUEMfmxj760vL+EUP5lMMTxu2KpgsGinc/03s77TDiQl+tc6vZaIG00kvuxqOVLjzsSV/3d/75Fis= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066431; c=relaxed/simple; bh=eet1vEI7EGs4P/wMxc9m6gOO4iuk9u8MjHggPAsGzEc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f3JzfbZcfJYnsbYauB/jXObKe5Wsku41lBg9gJjZjANM6qLnBDhmXADGzMbM1GPzvede+i8e81EdqSLfVhYHPg1J8oVz+5m8LIstT1rvedQG056OcmgrgQmoMJm602+G5RppZN/zzHlfjkCqjBGN2djY9rrgAdV4Ugx36oDSb38= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gRSpAaUC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A57AC433C7; Fri, 16 Feb 2024 06:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066431; bh=eet1vEI7EGs4P/wMxc9m6gOO4iuk9u8MjHggPAsGzEc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gRSpAaUCq7sEC/LdG4M3Prfc0JaS8gfE/ZNfbr3xXAa+cwpwcDl0zfq9KRfMRwunE aHcasZ3/yonQzNLzyHiKFokR5zQLwEFmz09UtPTvTA6EHbgwoxRfP6x9+QRmKiMWLp eb9q0U0C54U5xO41R0JDA8qHjM3CNOrK5qJ6kfnBILsh3qHGe8z19tZOP9bA1Cf2VC 3zSma9BWhPEotfmdH+P2JQlG1fsMRTBltcDKbRAIisxZCc7TPD3Pgcm5BjXd78B+H8 tqBf+civB8pKDnVAZvqVu3UPWKMVNrkl89yjMvFOIa0EqiblkauoZBCEA4c7kRpqkN qIav2T3ztQW8w== From: "Jiri Slaby (SUSE)" To: jani.nikula@linux.intel.com Cc: linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , intel-gfx@lists.freedesktop.org Subject: [PATCH 06/21] drm/i915: remove intel_vgpu_workload::{ring_context,restore_inhibit} Date: Fri, 16 Feb 2024 07:53:11 +0100 Message-ID: <20240216065326.6910-7-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.1 In-Reply-To: <20240216065326.6910-1-jirislaby@kernel.org> References: <20240216065326.6910-1-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit intel_vgpu_workload::ring_context was never used since its addition in commit 28c4c6ca7f79 (drm/i915/gvt: vGPU workload submission) and ::restore_inhibit since its addition in commit e473405783c0 (drm/i915/gvt: vGPU workload scheduler). Drop them. Found by https://github.com/jirislaby/clang-struct. Signed-off-by: Jiri Slaby (SUSE) Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin Cc: intel-gfx@lists.freedesktop.org --- drivers/gpu/drm/i915/gvt/scheduler.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/scheduler.h b/drivers/gpu/drm/i915/gvt/scheduler.h index 1f391b3da2cc..cd94993278b6 100644 --- a/drivers/gpu/drm/i915/gvt/scheduler.h +++ b/drivers/gpu/drm/i915/gvt/scheduler.h @@ -104,10 +104,8 @@ struct intel_vgpu_workload { /* execlist context information */ struct execlist_ctx_descriptor_format ctx_desc; - struct execlist_ring_context *ring_context; unsigned long rb_head, rb_tail, rb_ctl, rb_start, rb_len; unsigned long guest_rb_head; - bool restore_inhibit; struct intel_vgpu_elsp_dwords elsp_dwords; bool emulate_schedule_in; atomic_t shadow_ctx_active; -- 2.43.1