From patchwork Fri Feb 16 06:53:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338010dyb; Thu, 15 Feb 2024 22:53:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVFq+Eqq+ZbcX0YUKiWZatS5mTg01TaVss5HbVQ9HLkpdlZR4K3RhCAyCaORA4Vs9JbHCe1LFdi8UQwxd4e6tJAz21XWw== X-Google-Smtp-Source: AGHT+IFOebBeWH+FfGLhwzzat9RHzcevcRyz8e0GmjN7su9WUfzCebnhnOn3Z/Q3MBC86rBQf7Sl X-Received: by 2002:a17:90a:ee96:b0:28f:ef30:804a with SMTP id i22-20020a17090aee9600b0028fef30804amr3874719pjz.35.1708066438246; Thu, 15 Feb 2024 22:53:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066438; cv=pass; d=google.com; s=arc-20160816; b=Kp/v+cK5W9reLB/YtJmOsFuHHnydv6Ih9ZA5r1Y/QyXt2QixxM7s+TG6/gp2G0hxNX qJG1h4LfKxm2xiTrUuJOPz8RCWsVVi/5z2muZ7nwsB+AY9mRdKOYYqciShlnVuk+2yjy kP++43FdT9aghyWOp+R6luzn81USEC6CepuG0kPyuP7q2PLk1oMq8GmkxjLeIzygs/wf D+mxugCR9Wdqz+GtZfygvojJWdKImQZiQ/lpJAsvepR1txGjLI0UcpCYXNHHVuHk6l8f GGGbRfp3VWUxv11EkYmMyt6IFjN4lq1BCedzvgy/AS19oqCyWp7jtnip6N8sTyOygG0R THbg== 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=Mzj0DBut/S//5YnuLSAF0Muv8+CzgLlXFX7VoZPX680=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=MFTzjnr2dIUKNEq8EulXggOrM2SjQRK4828vJWK2mIDElrhH06cmoTpmozQHTVV8Cr dJEW2QYirhTPNZELnazw2GtwNJgE7PzAr4CZIlVODo9fjZimldW1KbLITqJXgwfgFcB4 Hcox6wW8o3qSEMQD3z/NjiWcfclNv+JEhOqsm13oQ+g8kwhsKRBC+U0bKa4N6VYM62IP 9tsvNK33aaPyEzt/LC9xwcnCmaNKs9CPUP2lWkp15aLUIH4rc4vS16ifp1d7mzjM17WZ UgidtMR/6g4eXago86MziXfqMhzF0ZB1m0Bxjl2/oeZAPii10ah3pjxmThmfWwV4lpJK qryQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W6rw1uNd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68115-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68115-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id su8-20020a17090b534800b00298d4416077si2646982pjb.82.2024.02.15.22.53.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:53:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68115-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W6rw1uNd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68115-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68115-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 149CB286B83 for ; Fri, 16 Feb 2024 06:53:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9C9E17BB5; Fri, 16 Feb 2024 06:53:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W6rw1uNd" 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 68F0E175BC for ; Fri, 16 Feb 2024 06:53:35 +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=1708066415; cv=none; b=YtChO9X/0SmOtOc1PSdaeVhBO0DnBrdTUiE9NZhY5MwhO7Wr43NkK8wpxTSgj2zyRp1Jo9n9yr2x/yGwiVKYnCFqJt4t8DbKRUjuXafLlDFfocQgm0O9Z/pG+e9yooGXmZrLcoVZOhKMlbLUVoubGmpB+WPi2GFL6ax+NQS0Oew= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066415; c=relaxed/simple; bh=S4KYIAgS4mvLQSOwp8dAYCk+tnxgKRZCI0XPqNFrrhs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qfh5J0Rc6rT2yJ7cN5DY3PsN+RTPmHxFRMHJWUAMTfIIkFR8MrCYyp0bv0TXJWebga48ajxnNMe/LvdL96EuhQHShqG6HvxCqZDFDHlAHyoeOtNN/Vv2bT1dtRZWA1aG2jvPtrvrG6grnApBzJyocpYfKSBKhd58OeIXkWzXZEA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W6rw1uNd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6C93C43390; Fri, 16 Feb 2024 06:53:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066415; bh=S4KYIAgS4mvLQSOwp8dAYCk+tnxgKRZCI0XPqNFrrhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W6rw1uNdI2qWadebU+FZ6zBEiJarygA8OEobGVeQkQxUePa25tpohVS4Yh7qOF7jm QKlWeEUAAqX63u7U4OTFKOQvqEAr/CqKLiZIdyHflQk7meZpfAqw1HdvrUWPHONJmA 943Iuu9VBxclR6A1xNs/H3IJGfsprJrAeylDbmtfCx6ZaYOBqlo0CwxLYYZA/je7nw W/oESRD+0BCAHMxtta6RdXxl5WK0shyOFj1N7f9jlCgUc6P+78zTYb2KY8KXPgh8rR NG/WjZaVKRWSNQ4syOmwIqGR2MZNDTHcfFzdJj5vghS6n2NlUYVFQ2LBWW8svk59pz TVtcWD3fspCKw== 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 01/21] drm/i915: remove unused intel_dvo_dev_ops hooks Date: Fri, 16 Feb 2024 07:53:06 +0100 Message-ID: <20240216065326.6910-2-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037473679711681 X-GMAIL-MSGID: 1791037473679711681 struct intel_dvo_dev_ops's ::create_resources(), ::prepare(), ::commit::, and get_modes() are all unused since their addition in 79e539453b34 (DRM: i915: add mode setting support). Drop all of 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/display/intel_dvo_dev.h | 25 -------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dvo_dev.h b/drivers/gpu/drm/i915/display/intel_dvo_dev.h index f7e98e1c6470..af7b04539b93 100644 --- a/drivers/gpu/drm/i915/display/intel_dvo_dev.h +++ b/drivers/gpu/drm/i915/display/intel_dvo_dev.h @@ -53,12 +53,6 @@ struct intel_dvo_dev_ops { bool (*init)(struct intel_dvo_device *dvo, struct i2c_adapter *i2cbus); - /* - * Called to allow the output a chance to create properties after the - * RandR objects have been created. - */ - void (*create_resources)(struct intel_dvo_device *dvo); - /* * Turn on/off output. * @@ -79,16 +73,6 @@ struct intel_dvo_dev_ops { enum drm_mode_status (*mode_valid)(struct intel_dvo_device *dvo, struct drm_display_mode *mode); - /* - * Callback for preparing mode changes on an output - */ - void (*prepare)(struct intel_dvo_device *dvo); - - /* - * Callback for committing mode changes on an output - */ - void (*commit)(struct intel_dvo_device *dvo); - /* * Callback for setting up a video mode after fixups have been made. * @@ -111,15 +95,6 @@ struct intel_dvo_dev_ops { */ bool (*get_hw_state)(struct intel_dvo_device *dev); - /** - * Query the device for the modes it provides. - * - * This function may also update MonInfo, mm_width, and mm_height. - * - * \return singly-linked list of modes or NULL if no modes found. - */ - struct drm_display_mode *(*get_modes)(struct intel_dvo_device *dvo); - /** * Clean up driver-specific bits of the output */ From patchwork Fri Feb 16 06:53:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201943 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338083dyb; Thu, 15 Feb 2024 22:54:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUyubMpQ8XiZoGbX9ee9fagiMGeSIe2/hdkaUsI9UhCyt9et+R8Wyq7NJFlAhTxqRuwWzpEoqBfrTcRZuRIws4gfcb5VQ== X-Google-Smtp-Source: AGHT+IGCqT4Bg8p56T80Y1RgaLcbIqPvA810VmymIe/CnxOTM9bhHtsVSWrYUGxVzS4S3U5F3biZ X-Received: by 2002:a05:6870:9727:b0:21e:470c:82ce with SMTP id n39-20020a056870972700b0021e470c82cemr2795530oaq.16.1708066452644; Thu, 15 Feb 2024 22:54:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066452; cv=pass; d=google.com; s=arc-20160816; b=rXJfou5/HEHkLRSy+h93H3M3nCjnHJ8dkFFQUsEERv1XHnE+WlXGdpS+aAQdQDAI8r OzopKRKmjRQmvKUWmm7dgyC0bSoPd50ICGR78nTT7XNTkYsoCcZigXy35gSODw3MKZ8K LY0cN4gwA2ZZr/xaZARoxz2SRZZo8a4Q6JpZGN+ivGYtaFyq4QlJ+BB+4BS86dPKFZsr 5wZleboz0+sDPuLysT58EHdIP7uSDfqwUXDz8lbcbzrRLayhyn3mrHT8yJdsLexSjaWm bEKLqvLY4XeRItmdrVG6As9f4YoXmAmxZUQb0air8us2pwFsR1CLUIpuXR3zE7f6XGpN sqsA== 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=l0HtJ0K4LyzmsRR4gT68hqTQ6dcnw8kQ/jmHpMN949E=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=l8hKzxoAzn+aSJgv5wg3teZoL9Ekg+AECMOuwvGUDyg3m0DRoXOHD7ZllMjCI7/Uz4 nXEd29p5RgGcXdI+86nOPE69X5DvBzYSX2pZe58Z4/ppwh//KunbMcCk5QmXfFMWMvi0 nW2GUkQ0RoI1B7MaUj9vTiJVGxAPH4wZq4DpkhWmMtYJRVd5FvClcjsKODloJymdbQAp a2d4LSwtVS7F2ghWGQZT9Y5YK8GyCUFkcsU8FdGETRYAu4C/soIIQon4p56iOx7EzGgX jNzNIXeam0DtWSpCP6K8CAfTpJODXgOuRgyDlWp9L2P+QmoVIdFT4VamZFQj+oC6Iz4B cAvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Y0o9/HY5"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68116-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68116-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l193-20020a6391ca000000b005dc48e561adsi2399646pge.20.2024.02.15.22.54.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:54:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68116-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Y0o9/HY5"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68116-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68116-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 97FD9B23D01 for ; Fri, 16 Feb 2024 06:54:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D248182BF; Fri, 16 Feb 2024 06:53:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Y0o9/HY5" 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 C60D117BC9 for ; Fri, 16 Feb 2024 06:53:38 +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=1708066418; cv=none; b=BrM9RxG0FgHgTvjjfBlq+sG6Udd2f5pC6uToTMjmwGDLDVtaWO78Us5k8xGJy2+yzs5BbYBLitGDJ6cI8qLRhHBgOm7aZ0+LbQv8pqJphUryUu9+r76zH3Im0vhCK30D9IS8apRX9s7TGerTEK+bMzZgV4fMgss+u7/Nc6XmhLE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066418; c=relaxed/simple; bh=pXw6+3BPDvBumd0PwA+aAJatufGvT44a+p6B8ZAqPXg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mEj8vzMgik6A+gOEUsoUq7mYVLszKy22PPiTCcMY24b8xiAFKjaaJI2HFdZgF1BW1ktjp9HkXOKAya66m8g90eEJVvovQC+3I696f7KwjFHwpDqAF3forUWL35iWcWR21xNzlim8xCNz/yaZJyb7zAQWUTL8ujFotunZawabFlA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Y0o9/HY5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07D32C433C7; Fri, 16 Feb 2024 06:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066418; bh=pXw6+3BPDvBumd0PwA+aAJatufGvT44a+p6B8ZAqPXg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y0o9/HY5F2PEyFbtUd5uHnUb/4bjqoiE6DU767MASXwLFxpanMtU0lFrsZqH5Gcd4 bl31pIfTFA1GIkCS+R14e6FV07Q1o+mxoAJks1TRO/5lzULPAcdP2eyTcaj+sM/zdL N4DUmtOI535iN6br5CyWlxIWHauPYOu15R1JkWglfRgQURsD92lxkH0yjA0ukxa40x fjTvpX6mtC2IHEWFnt+Az3SDHBtGC4+q+hidXBhZcrL/ZtRo5+6Nzds08IkoYDmjKr Q/RR2v8rYegAQ8VsJ1k8b0BYpittp5xJW9yvbgiehpOARow5a90hLFVe4r413/KnAM HKTww1cbxWHRw== 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 02/21] drm/i915: remove structs intel_vgpu_pipe_format and intel_vgpu_fb_format Date: Fri, 16 Feb 2024 07:53:07 +0100 Message-ID: <20240216065326.6910-3-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037488550606113 X-GMAIL-MSGID: 1791037488550606113 Both struct intel_vgpu_pipe_format and intel_vgpu_fb_format were never used since its addition in commit 9f31d1063b43 (drm/i915/gvt: Add framebuffer decoder support). 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/fb_decoder.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/fb_decoder.h b/drivers/gpu/drm/i915/gvt/fb_decoder.h index 4eff44194439..fa6503900c84 100644 --- a/drivers/gpu/drm/i915/gvt/fb_decoder.h +++ b/drivers/gpu/drm/i915/gvt/fb_decoder.h @@ -152,17 +152,6 @@ struct intel_vgpu_cursor_plane_format { u32 y_hot; /* in pixels */ }; -struct intel_vgpu_pipe_format { - struct intel_vgpu_primary_plane_format primary; - struct intel_vgpu_sprite_plane_format sprite; - struct intel_vgpu_cursor_plane_format cursor; - enum DDI_PORT ddi_port; /* the DDI port that pipe is connected to */ -}; - -struct intel_vgpu_fb_format { - struct intel_vgpu_pipe_format pipes[I915_MAX_PIPES]; -}; - int intel_vgpu_decode_primary_plane(struct intel_vgpu *vgpu, struct intel_vgpu_primary_plane_format *plane); int intel_vgpu_decode_cursor_plane(struct intel_vgpu *vgpu, From patchwork Fri Feb 16 06:53:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201944 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338145dyb; Thu, 15 Feb 2024 22:54:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXUsa5j01H7jY8FBpIWgh/kTnyjv3gPlMLyi+icT3XoGGlibTjkWJiB5evGgorjvuPG/lE19pAztN92C5CT8dbdUisWeA== X-Google-Smtp-Source: AGHT+IFO8kJbLKXAU0qhdK3lZykfXrXjC6Ugc80RVS6BNKPUCCGq13sVtSBbYB1Uz5IWzonHLaHx X-Received: by 2002:a17:906:1c8d:b0:a3d:16dd:307c with SMTP id g13-20020a1709061c8d00b00a3d16dd307cmr3061303ejh.5.1708066464075; Thu, 15 Feb 2024 22:54:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066464; cv=pass; d=google.com; s=arc-20160816; b=zay/I1SoHQWicUlXuwBXTeMj17TX2QJkLgMGfdSX1sjQ0uf5Gf+6veZRwn3cW590EP pUKwOIo3FhdEM3BygnDH7Gta3gql2gMVESZmAzrycwtb2LuZKtmmbg6KEHW31UZ9CFVD ljEDrkhjQwf6RptBX1MZp95RKZc7kRw93RRrAw3ieZq6SGZD+PGDHZ3rlqxfjC56XyfH B9V2+E+dVC3CuAC8F69zjMJvgOJ5NKnKX5oDtXYy1WuuENOg7lu08BpU8QWi9o0xb6Hp lzZeV9AvohqBCnADv+muVVvikiIzQwZae++CoDlaEAbog6zLm5mWZfWFTQOgmaYikSnV 4Leg== 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=2ocEEDn20Pay+t4OZLILs+H4gXLrD2lhkJvR1/9AjtQ=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=K/lbBsUUe0mcgV83vNK+dHZBhEn1tV+Y6D0QLHddrmQ0k2TVIoYozXpt1BK9GJD6ap 1H/NQU360z11mt7olQvQ8+sIDSBhE3bkAuqHM+d32KcThAiFjWxGgrJe8KiDkL4nF1pQ gvoUVWMtyUXO8piLxNZE9mwgWtLydXRZ16OzLOKkbnxxPbJTXNf9hFa6+MKKatsvOthh LkXbc3QsXORGzrAoAqd756qtWJZIpRDLBMAC21zyUMrG7wYbJpv4c3VOeRW66Em5YtpP IPtad1kCr7R1wdZrL3zqAzZee0t5nrF/0A/8c5rJZCb7oSs9k6c9Op2tuo02/n3z9PCW tf4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mLD6gqCd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68117-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68117-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n15-20020a170906b30f00b00a3d82178053si1341290ejz.514.2024.02.15.22.54.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:54:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68117-ouuuleilei=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=mLD6gqCd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68117-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68117-ouuuleilei=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 AF3BB1F25298 for ; Fri, 16 Feb 2024 06:54:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E27CA1A5BA; Fri, 16 Feb 2024 06:53:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mLD6gqCd" 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 656191862F for ; Fri, 16 Feb 2024 06:53:42 +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=1708066422; cv=none; b=cETfNJQl2jqf35QHuvPAXOVogQL7IuU1FwG8pa3M1SQbiqyzmv0rvXD8K7kIW9QslxZ6OsFfeo8ayNh5MThyx/LTDhYWpZ5vLzmJkQIsIL4F+1eY8G/SPh7IhfqUy7ueDTUpsjM5OQGPOxOTWAzRmgrB+cOxKsFMq4OBdUZ0Pmg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066422; c=relaxed/simple; bh=amudruWj9HLCey00JO7KSVlxOakx7qFxQBUB40Y74us=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C/+MXUvQo08fWK9qjebjS1v/HVr/jVKe4rVFenqGVY1pXf5fIyvz4UusOe49SZTe7iVrMccdYzq5kemswDbNtlEXKbRY+uomPjKdNl4d+RF16rs17OA0c9IC6i/wnoGJcRo7ax4otzewn4Zh0ZQdhjZN20taz44r1lh1fweG12Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mLD6gqCd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BF4EC43390; Fri, 16 Feb 2024 06:53:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066421; bh=amudruWj9HLCey00JO7KSVlxOakx7qFxQBUB40Y74us=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mLD6gqCd+4bBf7thLiyk9DVfkCA8lRghiFBtNXzuEQ2h1aaq0lwuSuqaVrzZ9L4lw XWDIHc0l7tRFoASez4k/goMJyHoNQNMi7l6m70P8Hq+AAOQaD9QFZasMxiT0Vmxw4C aQHgZVvrnfHtLMLfXkht+oTJSGfrF2+UbkMSt8IZoQxq1xpMQz5ca+sNGsqNCtzfxA P6fO2HgYcv4oC/So+Gqxg6oWWXnp+nwBXMjx0FLDG4H84S/4oa2ab+ryhDsmdVC5aT 7tU4WNDeciASWvRQRXWYv0sSOEJXWVY0QfzfAPpFl4UbyjYDcy2C5P1aNJPkLR42d8 9xNhKMtdF4FpA== 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 03/21] drm/i915: remove intel_dsi::{port_bits,hs} Date: Fri, 16 Feb 2024 07:53:08 +0100 Message-ID: <20240216065326.6910-4-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037500398767420 X-GMAIL-MSGID: 1791037500398767420 intel_dsi::port_bits is unused since commit 369602d370fa (drm/i915: Add support for port enable/disable for dual link configuration) and ::hs is unused likely since commit 063c86f60ad4 (drm/i915/dsi: remove intel_dsi_cmd.c and the unused functions therein). 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/display/intel_dsi.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dsi.h b/drivers/gpu/drm/i915/display/intel_dsi.h index 083390e5e442..e99c94edfaae 100644 --- a/drivers/gpu/drm/i915/display/intel_dsi.h +++ b/drivers/gpu/drm/i915/display/intel_dsi.h @@ -57,9 +57,6 @@ struct intel_dsi { u16 phys; /* ICL DSI */ }; - /* if true, use HS mode, otherwise LP */ - bool hs; - /* virtual channel */ int channel; @@ -93,7 +90,6 @@ struct intel_dsi { bool bgr_enabled; u8 pixel_overlap; - u32 port_bits; u32 bw_timer; u32 dphy_reg; From patchwork Fri Feb 16 06:53:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201945 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338205dyb; Thu, 15 Feb 2024 22:54:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXiQK5M4tYznOhJGpbkGrF9mla+sY5tEg9W4PcXQkze1RQ0VYwaXrpPhBcKIvpAVE+S3xtajbNtLkTJ+RbjB9mFNNnQ7Q== X-Google-Smtp-Source: AGHT+IHQhE4qVIPy3r6SOlXb1TnefuQ0sIho4B1tBysMe6vyqv7SgH2tEyL9FWg6B34pRfppHckq X-Received: by 2002:a0c:f5d3:0:b0:68c:46e0:78d with SMTP id q19-20020a0cf5d3000000b0068c46e0078dmr4020272qvm.45.1708066475119; Thu, 15 Feb 2024 22:54:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066475; cv=pass; d=google.com; s=arc-20160816; b=WvTSYFhpxz1/vZjtfcvQzPlcMSCVi7crRRwsytOqHQMoFM9dmeaXsFurqba1xTQPRA IO+tDoD7qgNLhwtIwsD/pen7ieddsLE+eHu98eOdeaXP9Ig56rDVVe6IRmp9LsIc+5Ih mts4AUrV4NF1DPyBDT8mIYPjc4hr43AKHNBtT9wYSLrw8npFglrmxr2/Iz+x2yYKUofJ qwSOu/OVtwyWrgXkuOR7FDc52HsW75Bc6JuQhwvmndkNp27Ke6d3mnhNUTfAHov4KLQ2 i+47kiXZdsB7StpBQjT1tYl5Kyg4zSRVY8lDFZehN1PYL0qPyQWEnlc/ecLwWphjaqRh onhg== 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=gYKsDUiTrx9yPA28Ee/9jsC4zNpN7cDhlXDYddHkwdc=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=i5ChR4iP8o9p8aSU++C0Ss8QTK2c/KnUaWsXR6v0ughIZQPF142t0SLBeWeFvfLzPh o9vYKmYrffyeDaV/piOq8o6GLhfiNUJyAhhlYgBQGF97G5UkRbf4xKI51Ic0Qyu4ypN+ Opr7+ELBP6h1lBAj0IrYeAuYXU0smHDYxH2L2P69AN/CTERPuZd7EndmXo/TZX7IVu47 Awzay17bpW9SzkcqKs603dnnfhaPWZjjF2YL3hLA3qnwioBDD3m5oR6e/MWx3c2fplTh P4xPyXH2wB5V5kcz9d3t+7eqqjfELrMSoJNwQXvgq+7PuNWwltfgNiSuf49AWJSqotAE kBfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AZfOy8AS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68118-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68118-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jf9-20020a0562142a4900b0068d03eaab18si3283264qvb.404.2024.02.15.22.54.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:54:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68118-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AZfOy8AS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68118-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68118-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D26801C22692 for ; Fri, 16 Feb 2024 06:54:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1676C1B803; Fri, 16 Feb 2024 06:53:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AZfOy8AS" 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 8FA6C1AACF for ; Fri, 16 Feb 2024 06:53:45 +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=1708066425; cv=none; b=PpCgHPb9LglTOExvlYii0gIm5IeBWxP7C9W+eTm/8F+535E43qChkaOKiauStnqQtYqBw99TiRlEysCyJu4KXyzupg7P/lGUbpwpoKXowEbpgiJDDihfXKYKtvz1SyR8CHxPkXPMzoNs2zJParLMX/jaqFT8TnyfmitQTrGelqk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066425; c=relaxed/simple; bh=sH0FzSylb4GHpKMjELKxOSqoIZwIATsF0+uo2uRnxfE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pQeU1QnNHcBeP/jH1TVpk17YEZVc5zTv1EB0Z2zUGleWvhLiu3Yx3MhjABQMPOzODHVs7EqqV5eRj9q/lyjPvh9IyfmK3GsEA1FB1fUwxux8UEuiG4I0cZR7ESKAl55a0Y1Kf18hbf/Wf3/7RuL/mxoGXpmyAGuuZ1m6s7X2HtQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AZfOy8AS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 932E8C433C7; Fri, 16 Feb 2024 06:53:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066425; bh=sH0FzSylb4GHpKMjELKxOSqoIZwIATsF0+uo2uRnxfE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AZfOy8AS1VK794BqL6EDv6yN4/raYXNT5U7KlgAdOJiZS4GPNDzMCLba4+68d/6CH fQweIQd5bMxXv8H33HHDsDkqEnikj528gOFmAc3ypAnDT2qYip7vOoZOqlYZuRGorc xeiSKoxWi7pPX0S3hJF9YETECd9RujLyhyKZqqV/lcAQOClVYwOFp9EnO39LsUSKG1 aFFlIuiXlycxCnHFJ26ihTzCPz7pfYIiERAKyExjotKbiIzg9VuxrVuoFvvaac2nFj 0M07qcJK7luruzbR+Ai8jXgBVZcXkYWynqFyfjqq4KEm4LqbG8gpdPvoIp/BxqfDug RfX7JfabFHc0A== 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 04/21] drm/i915: remove intel_gvt_gtt::{mm_alloc_page_table,mm_free_page_table} Date: Fri, 16 Feb 2024 07:53:09 +0100 Message-ID: <20240216065326.6910-5-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037512269604859 X-GMAIL-MSGID: 1791037512269604859 intel_gvt_gtt::{mm_alloc_page_table,mm_free_page_table} are not used since commit ede9d0cfcb78 (drm/i915/gvt: Rework shadow graphic memory management code). 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/gtt.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/gtt.h b/drivers/gpu/drm/i915/gvt/gtt.h index 4cb183e06e95..fb96ea454fd1 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.h +++ b/drivers/gpu/drm/i915/gvt/gtt.h @@ -93,8 +93,6 @@ struct intel_gvt_gtt_gma_ops { struct intel_gvt_gtt { const struct intel_gvt_gtt_pte_ops *pte_ops; const struct intel_gvt_gtt_gma_ops *gma_ops; - int (*mm_alloc_page_table)(struct intel_vgpu_mm *mm); - void (*mm_free_page_table)(struct intel_vgpu_mm *mm); struct list_head oos_page_use_list_head; struct list_head oos_page_free_list_head; struct mutex ppgtt_mm_lock; From patchwork Fri Feb 16 06:53:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201949 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338530dyb; Thu, 15 Feb 2024 22:55:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWw0vtXBtsT6f7HJfAFxtksQWjYIS48+mJ9OXpOn6wDzFCRBNVGQfjTGqHxk4PvQmkNqMtmbmPqg70fuj8l9MQfwB3LkQ== X-Google-Smtp-Source: AGHT+IHhMSEQ7WLCQrjsHwVfj3SORjUG/9M+Iy6tf58UC2N9dX9vMlrkengn2Jl5rzaH4aKC3yxY X-Received: by 2002:a05:6a00:18aa:b0:6e1:1e05:d629 with SMTP id x42-20020a056a0018aa00b006e11e05d629mr5381557pfh.18.1708066540713; Thu, 15 Feb 2024 22:55:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066540; cv=pass; d=google.com; s=arc-20160816; b=DXF5WxDGazSBoXwEBxMPfveJqAYSYS+Hp5KXNvpwgPonfbs/91Fx05H8k+DTCfUVsQ nHC/DE/xr9oab9BhCvLLZs9wkgmLTHpQXP+hWE9yzlG/ytG8wSWLROA1JPFwLWd41Gdx rF/DQ1hDrF78UaOFHoFHJPVv8lWuwu7VZqCEItf0l09+6pSqcVydlWd+k5D88nx6c8HB ETOIDBlyRO0Y9fGtZyW+3aZvqWHkkIX8i28TxmV8JnsPYhjZzIziFHouxK/Eq9mo8l+l 2PT24dwIgzZ2dbRlkfuNYIvKifw5cnlxKL2twTgdEy4xzFOnGqEv2eXQBU5xVvutTq4S xYBw== 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=j8pPDTvCKIp5y4wk1+j1kc05D1ZgS9KYtvlyCeVrUH4=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=hDS42+I2LkmF0urgmZTdh0XI6+Dh1EoAbZtCagLf2bA/7XXHEFtGs8im8t0CjHr2fN WfB/lQBfg1n/cTDqHC1NxdCF8tqVP/JdOe0G9szGt+3TrsN3oA6VWsGpWvHjXy+ElkWM yVHjBsbvhmD6OVVBUi76o+CRx0pfV8kyqlAJsBW+TP+B+aLacs/auydjV1vvH3RcuphJ 2wPo8fNWmzow4T96tL41GyZaI8mTU2es85nc5/soqQwhhmmyLO99Z+M89BJFOQN/sES9 nuNbDSwx/2WJHxvDxCwPm4xtatki6m803L4IJvc3n1WgIy6u8uC8rdvubkKAbXCHFxVy cHqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u7Qk1Sx4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68119-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68119-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f18-20020a056a00229200b006e081c9be0fsi2524956pfe.392.2024.02.15.22.55.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:55:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68119-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u7Qk1Sx4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68119-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68119-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7420F2832FA for ; Fri, 16 Feb 2024 06:54:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D5CE1B95A; Fri, 16 Feb 2024 06:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u7Qk1Sx4" 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 EDB8D1B812 for ; Fri, 16 Feb 2024 06:53:48 +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=1708066429; cv=none; b=j//97qXGpbpiDbY/1/tHQDmQvwG8WzI+iZTH1od0qcPC3kKabO7G9z1NYzJFQA15ij4keSk/fb6H+CltIwPR8vYtDslS/PV8CoarpxWf8mgMom+ldQlOyUtV9VAGgnNqhpFJYEpFdOxrJVPXxU7f9r84N1dl2kb87xmMuTPYteI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066429; c=relaxed/simple; bh=qkEq3E8Km4jpaGRnx1Vm2eeB5z7Na+ns2sz54n6h9uI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UopiKH7eG+vgORDjQ7wwP5/j/rrhnExjPUNcU+AwxN6WgEp4Eiqqd5haNq2qDO7XBsuwdDUvh1ZsP+UgOqdO1YHS35uASMp0ugpFmvVrAjZx4mc8gbsXho6q00YoUbaBJEE/r72Ne1C5y0ivdVc+rjLVgIFFWPNYaFGa10SEnS8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u7Qk1Sx4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F02DC433A6; Fri, 16 Feb 2024 06:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066428; bh=qkEq3E8Km4jpaGRnx1Vm2eeB5z7Na+ns2sz54n6h9uI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u7Qk1Sx4GA+PGmFjQyCFB2rBOZ8P5QWLyc9Jh5KlH9OocfGntKGl75SuUz2Bi+9J4 3I5IfLJuVP+ogCoPL4n9b8H/U3Kr9ev+t5BHRElOVCFHW9FERbXvNH/eVG0iuhqURy Z+OMoy66+JIxkK9LzplSveGRMzqKLuPd4L3SwrGP46ODY1hm71WVuRIspzO50219nx N/DizssclSDGn1Sup9OZ4A0csADlHybg9vVfZ60a018fmhWDovvO8GvF71UcODibIu 6FBKW9V5mCgdrU19Lzl0/nnqd/D90L6uytIClTUUfNpDReTZSpSDuGpO5Zgzqh5+Gn EMDkYkElKaqqw== 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 05/21] drm/i915: remove intel_gvt_mmio_info::{device,addr_range} Date: Fri, 16 Feb 2024 07:53:10 +0100 Message-ID: <20240216065326.6910-6-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037581344463602 X-GMAIL-MSGID: 1791037581344463602 intel_gvt_mmio_info::device is not used since commit e0f74ed4634d (i915/gvt: Separate the MMIO tracking table from GVT-g) and ::addr_range was never used since its addition in commit 12d14cc43b34 (drm/i915/gvt: Introduce a framework for tracking HW registers.). 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/mmio.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/mmio.h b/drivers/gpu/drm/i915/gvt/mmio.h index bba154e38705..32ebacb078e8 100644 --- a/drivers/gpu/drm/i915/gvt/mmio.h +++ b/drivers/gpu/drm/i915/gvt/mmio.h @@ -62,10 +62,8 @@ typedef int (*gvt_mmio_func)(struct intel_vgpu *, unsigned int, void *, struct intel_gvt_mmio_info { u32 offset; u64 ro_mask; - u32 device; gvt_mmio_func read; gvt_mmio_func write; - u32 addr_range; struct hlist_node node; }; From patchwork Fri Feb 16 06:53:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201946 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338333dyb; Thu, 15 Feb 2024 22:55:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBQ3/fuSOCz5m/BOAHq5bNj64W+614euROb3iOYP6Iu1tZTrh7HTzxMbsVNcB4VbMHor2N0/lW2xn1+9n696uQWpuyUw== X-Google-Smtp-Source: AGHT+IEWJx8Tx7apIHhPXQmSwM6BgGq4QsES5oOSuHiMb5UCEnWZ5uJmmmJjQYTB6RbphKRbaL2F X-Received: by 2002:a17:906:4157:b0:a3d:7ca3:fbab with SMTP id l23-20020a170906415700b00a3d7ca3fbabmr2930401ejk.27.1708066500015; Thu, 15 Feb 2024 22:55:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066500; cv=pass; d=google.com; s=arc-20160816; b=e8DutJC4Y4azkx1x51JlfJicC0iQtzVYSMcD6RCMt9O5NL1J0CeQl78XcgqTQ3gyYY cisgU4DAopBTCZtnm6Q56TLxR4jgSzYJ2vo+MFxapUbVuPLkZ4pa6FqRwBK1uG1nLl82 CDLowp9SnzwzKwn5hbRJ7JpIpFxlzLY8yrhw+Uhgq2wIqSfElwNe9DsPatHP71rds17R meYP3ypfeSU4a+Ma8Wsil8nPOT85vQX4/C5KCO2/043SSTsPUFphEcEKIJB3/x1Y/qWo Mw+8wUV2GBWUWDRE7ptwhvSG83G6KqFGHmnkWkIUM68nnW0gT0VJYNW8QJVdIqUchixF UsOw== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68120-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g17-20020a170906395100b00a3d61775460si1315671eje.176.2024.02.15.22.54.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:55:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68120-ouuuleilei=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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68120-ouuuleilei=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 A10001F22AE0 for ; Fri, 16 Feb 2024 06:54:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F4311BC3F; Fri, 16 Feb 2024 06:53:54 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037538044799935 X-GMAIL-MSGID: 1791037538044799935 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; From patchwork Fri Feb 16 06:53:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201947 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338393dyb; Thu, 15 Feb 2024 22:55:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU+caDU+VgwAKCLVMplhUOWXz3jjlb+tZRF+mxaUyhfej2pl1Lrhmnr/VMvhD0fo0kwrFNc2UuEkelsNwqVTIk51UU97g== X-Google-Smtp-Source: AGHT+IEFLGzWIv6Y8zUJufZzdLIRMtTO2aBEVJSWQ5fVOTCiDGXCObgTrDLJU07H7lRiF7p7X6cr X-Received: by 2002:a17:906:5614:b0:a3d:75f9:f22c with SMTP id f20-20020a170906561400b00a3d75f9f22cmr3483848ejq.0.1708066511972; Thu, 15 Feb 2024 22:55:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066511; cv=pass; d=google.com; s=arc-20160816; b=nZaVastqjXdUS8KsYfUtxBabmKQDeE7PYjawFDiBrp6HXEelRhMVvmcBXdgvSLsYUI N1UUL8+8xaN227AwdiUCnj5cVxLUPHdmhU7uUsrBq11SGbIjsF+KPtuujhZskJ9YyRZi GhUR2J2ykz46gRUVc5JznVpHeLzn6a+QUdWRFhUrAMoWvLUQsnRdv4kUUeDxp06NEpzh 5R59d0GcTFXXVL0NTqRQgH3sBPj0v5gIF/wiTUgNju/EdbJw920CrONYgAZ82fyHxVDq F+RAvoOMvf2xHkGUcPZbbpLY+S1hIvPYJhjHFxdpoNJR46U6/HZAg5OZt/wJoTHe0CgL PFMA== 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=1bCVSWmH/NTaJ8P2mp6mq+Bw4Y6j+wq3E4NlE1WGME4=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=gbHdHOXE6PapsCRMJBI9B46szowt8PZD7ENLJ8bn423Kof2as9xqQuspnj+SiJDWLD UQH/kTs4A0MLsHC6twjnnRewEaQo+KfUF7c0dZFamOewUKLbtGOqwtNiSGodp0aNt1Ge eqrEJD2MBZGjm+7iXzMiNkYxagHZEm2FviZLdnDoHzs3j55qbMyltdnw0/sOUpT9FB4B OUwhiNCZzmK8rQnFMBqh0IiPqgTDRQKZP+GCxVlao7rSf6mxXTc8xvlLQYfn9WEXZu8q qhQ/W8ZfyEUYJTxLK2J+G8nrR5gCPXywEBbxvIYgusEW18RmZAe6h7OCb3620LAPUZH1 SsYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M/L6YYR8"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68121-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68121-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q21-20020a170906b29500b00a3d5ac2278esi788442ejz.527.2024.02.15.22.55.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:55:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68121-ouuuleilei=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="M/L6YYR8"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68121-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68121-ouuuleilei=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 934DE1F252DC for ; Fri, 16 Feb 2024 06:55:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2850D1BDF8; Fri, 16 Feb 2024 06:53:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M/L6YYR8" 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 6E2831BC46 for ; Fri, 16 Feb 2024 06:53:54 +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=1708066434; cv=none; b=WFrKtU5R5TnUloWziHUQekR1C3B/RvCk0T7ly1Hk0w+5G5DcCZGA6rdKIJukFDOyGrUI5rt/85p2AoKakIgsLiv7+a80uuhHVVNgZAw22QPLzL+CyPTzW33lh1tJZaQ7GHdTQGZHECxu3gxdVfXLsXC4uRFVuf9zDRyYah8PJq0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066434; c=relaxed/simple; bh=OMwiUGzZhHIC9yKcus+0Ro/4xBOBkZGCI2WykwcHxec=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hqmAt8zXBz8fiWG/guapbmx3JoTt9SCL3YWsvMWDvQ4zLguqr5qz38KOGeKT985nBI6n2rOt29L0vMqT+LqoxkKKxzrrNueVdP6AEhCWHa9tEEbCSquc9M/eaObR4b+F1Ty9BlpUhy2YB9Lym3zGvqyWHvzoN+IqoxoTiX/y+Yc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M/L6YYR8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1638AC433C7; Fri, 16 Feb 2024 06:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066434; bh=OMwiUGzZhHIC9yKcus+0Ro/4xBOBkZGCI2WykwcHxec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M/L6YYR8D3lmY2K9Pmpzprip1CG/noGquvl9fgyT0V71zUn97O8v6rljtSk+IB6+U I6MTnvOhmBybARhB1manPvdvX8CtCUXLKkouXx/66VqqGWwKhofjSM4HmVxm0SASjK 0o/AbW2l+iWAo1n1e1s1qUp5WqKnjl7mFUQG787geHYKWyyFp7T8xYgDSNjBDZKS34 rCyGoBCD6K2FeRfef2OBdrTBvhEJOdy+nhwxClQUssTqziUTPx6gmGXiW+WRXpMkIo URd4BsUqbJsoKZstUGmrXFEwBHvS8LDAMe91AO2SQeRsMo2LyLC1b+uBhFe9/Nq4o/ 79nI9WRxWH2fQ== 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 07/21] drm/i915: remove intel_vbt_panel_data::edp::initialized Date: Fri, 16 Feb 2024 07:53:12 +0100 Message-ID: <20240216065326.6910-8-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037551059139049 X-GMAIL-MSGID: 1791037551059139049 intel_vbt_panel_data::edp::initialized is not used since commit 9f0e7ff4b366 (drm/i915: fetch eDP configuration data from the VBT). Drop it. 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/display/intel_display_types.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h index 01eb6e4e6049..e0d291dd7d2d 100644 --- a/drivers/gpu/drm/i915/display/intel_display_types.h +++ b/drivers/gpu/drm/i915/display/intel_display_types.h @@ -327,7 +327,6 @@ struct intel_vbt_panel_data { struct edp_power_seq pps; u8 drrs_msa_timing_delay; bool low_vswing; - bool initialized; bool hobl; } edp; From patchwork Fri Feb 16 06:53:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201956 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338959dyb; Thu, 15 Feb 2024 22:57:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbYz8iDvtI3RvVpSlbkdh8ue2WjyH0oBXIJpX67CruaiRQ/plgs3ybrwfiwfZ3MomN40v6G2rxx4tRAoYs2PHy0L1Z9A== X-Google-Smtp-Source: AGHT+IHQECMttcIcwj5rHkMdAfaOtwTND//g8jRY5e4XV0koGuVyfC0wWiCLv2IN2xu3f9oo2WZr X-Received: by 2002:a9d:6c04:0:b0:6e2:e185:d817 with SMTP id f4-20020a9d6c04000000b006e2e185d817mr4951419otq.0.1708066630329; Thu, 15 Feb 2024 22:57:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066630; cv=pass; d=google.com; s=arc-20160816; b=of+6S2nXWm6FV7QZmXoGBJA9rkkOMngJdDlTGlz/0G2Uxj4PI4Q2z6ObAisvi3jwz0 2m7ewAKSxrro1gKRAqii5FtgPXnzoFfnxzHbCHc0A4X6RNL1IBEnbPVJhiuAEkb+qIZE LDS7PSl8kXgcxuvOUTK3jv7yyCVTzX9L/9eu9Es6ZzzUyn3dEzs3Y36ZiktdgUtug60U QB9SWqVY/Euw0MklZbGFHyToRj0LQeOj/xQ6gadgAZVPsGHytvnk8g3wYxnA52YDVHRi nM0n8y9wJ/AWfxe8KrhdfIUq6q0TUa3fJ28MI8OKmnLYIeVUcD96SNDJMCNptqs+GBB0 sE8A== 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=Aq+GR6mr8fDdmdokXCks4Sdw7BHX4ntxxfClRNazpag=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=GLGkgt13QMTqftrYR+r7VlpndqeHcUcglbFj9blme3fYnoOSKaNvyVkq/rqAtdbcu0 FbqF3rVredjPFDNT++E4x9a5xSnQRQ5GnBCXs7I4JoKhGalBC27BB94GvF+d+ia8T2si Dy80P7jfehagaegVefDjCXh1ISDbLqUuFMmW30ETxWnij13Vp0uQnz2aFxLzL2utwGQ1 OZ23Z6HjtKf7JZbqMJyqfehMZA9YF0Y7PN2CZOBSDnPy0ZqB66aCvC8FqtWoh6hRbEAm me2UtE/WCzeSrjtlApwMz8jH3uZZO9Cj9ZR82lZFv3dEvGfW69mEPPRJCmyz4a+wKXev S2Nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X7EaO9HR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68122-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68122-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k6-20020a632406000000b005d8e401b4a2si2426719pgk.801.2024.02.15.22.57.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:57:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68122-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X7EaO9HR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68122-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68122-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 687E6B24268 for ; Fri, 16 Feb 2024 06:55:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FB841C294; Fri, 16 Feb 2024 06:54:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X7EaO9HR" 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 9A2E71BF34 for ; Fri, 16 Feb 2024 06:53:58 +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=1708066438; cv=none; b=eXC/j/67ab+QIF5lufZa4sB0G6F1f+EBkHQ41iUK+OYTNmp7R/6Uphu2Y/N0eBIgnPauCNx/luJFzqQC8E6dWAzehRZmx6AfNNGhgEovZyq1ajWiueRKQu9oUSD7/BSHCHg4/qJrhxS8jedIJ+Rfzs29P8GrQQxHKDqhfWiQ0F0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066438; c=relaxed/simple; bh=xAhGbARzs83EneUXBDZflPwViGnccMXkpjIP1CYeQhA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=k6B5CUeWlICT2EMU9/vol1aBW2keH587rVsS7HgblEtOfy7Dd6IIuOut5z47oVwA9Tq3tUSW202A8kB/Y51iKlGRdJM7NupDuzwkT0SS5gSpvB/E9LfoGsDm6xzOx9SnUhp1JnU0PI+ogpWsDb75tj0tyeN1VH1SmuMXSIcg2l4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X7EaO9HR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1FF7C433C7; Fri, 16 Feb 2024 06:53:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066438; bh=xAhGbARzs83EneUXBDZflPwViGnccMXkpjIP1CYeQhA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X7EaO9HRGWuJT9OQFFjFHOAEGCSPJNOQSEQW0OotFJMCh7gKgYIKkMgYhYMzAWg9v qfpU8ExWaTf2OiwDh6c53Ac7/1HYTXPhh8A4fkDq/nCoduEvxlSW5EwGNsEq5J8nZx 2qpItkKEWsQ+JyzTFRXoPRNjaX061QSbmI4gQ7YKSR6YwV0Ex3jI3HNSIyEmJuFnL+ B+mbyNcy95vWmTcsE140ztEKmi/9iquKXznkR58v1/wo+m7TpRalI4f/dqHyYkdMwk P8jXM54QskG/ecIOS/wDcQFhiw2xjKEM7sC2BYuIdwyRGOg02R29XGzsgOGMKQag2p 8pfD4dIju9SlA== 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 08/21] drm/i915: remove intel_guc::ads_engine_usage_size Date: Fri, 16 Feb 2024 07:53:13 +0100 Message-ID: <20240216065326.6910-9-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037674813659230 X-GMAIL-MSGID: 1791037674813659230 intel_guc::ads_engine_usage_size was never used since its addition in commit 77cdd054dd2c (drm/i915/pmu: Connect engine busyness stats from GuC to pmu). Drop it. 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/gt/uc/intel_guc.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc.h b/drivers/gpu/drm/i915/gt/uc/intel_guc.h index 813cc888e6fa..be70c46604b4 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc.h +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc.h @@ -206,8 +206,6 @@ struct intel_guc { u32 ads_golden_ctxt_size; /** @ads_capture_size: size of register lists in the ADS used for error capture */ u32 ads_capture_size; - /** @ads_engine_usage_size: size of engine usage in the ADS */ - u32 ads_engine_usage_size; /** @lrc_desc_pool_v69: object allocated to hold the GuC LRC descriptor pool */ struct i915_vma *lrc_desc_pool_v69; From patchwork Fri Feb 16 06:53:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201948 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338505dyb; Thu, 15 Feb 2024 22:55:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWErHrt5NIbLH/RfjGN5aYPJcRqSOFXE9Sd/7Beo13/dL/jNQ5vEa6FzcTS+r5xe+P7eRGiO96a+q4F8o8SVGhaUWMc2w== X-Google-Smtp-Source: AGHT+IGKJsj89PUcBc9R6ORvx7P6IvNhG9xpQi45ivU+ll/OkZnaU/vb2jeYhEvTUHPmFi6t4TzH X-Received: by 2002:a05:6214:4116:b0:68c:7c38:6cd with SMTP id kc22-20020a056214411600b0068c7c3806cdmr4785557qvb.36.1708066535149; Thu, 15 Feb 2024 22:55:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066535; cv=pass; d=google.com; s=arc-20160816; b=Y4xftweNbSFd0xWGe4PjUil3Vmk0b2W3UfxlTgY7dirfE4JBPN2jqodwx0EFRtPij4 r/jJZ6l09Bs1wOX1h35c/MYEgsiUxVhnDZUGcBGKKvwW5/v713j9wm0dZfRgdF3vIMPv Yok6M1RSISTX0EkGhe0dHhMXpsuameIgjjndcYH4GW9z9dUG4aPY1gu4BPBCIS22YzhO uYNJjtHXJYaojGq0r9QXOyVenldVTrorYTztfCd641FRJNyiAF2KSmQghViL+j8rieGr yMr3phs6rwZP8p7FuEDPzeA2/R87kq3+IlN+A//gNKODROeeXoypEdtkkzGTJWbaC9mW HPTg== 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=6Di1C6HRhkDh6fNt7Gkr1OFrmY1l7JSFR0IxtDDb5eY=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=RegCcZZFbCI8LoZQGjBuqG5r5kCyEJPfG9SXZVPhLF9bm7VZmV3yM82MMbiKV4P+4b jqRLwH09ia9tblu6Fewkz4aWPAbPDXSDikWuB35K+iaMb+HhgrQXc0H2phMfY8LdFGql i/71OAOmAm6BwqkawZC6RjP/cqorUHShL+cFUZnjm4+NrpLl/YunAqmGNwr+FPRAgOij i/aUsn2SsuCVPsnA/4owy+WHFwfu4hpngR+H/i46quh5GN5Y8zaIAxlASmVtl1mXhVHL /rklABgSoYIgGsez4WdZ82+DSTKPzbLIX63bEf6egva2pKELFtpsN9nNdY4PgyFjeapv kxhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MYhfAahz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68123-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68123-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fq9-20020a056214258900b0068c8c29bca6si3459654qvb.340.2024.02.15.22.55.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:55:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68123-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MYhfAahz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68123-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68123-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EAD801C20EC6 for ; Fri, 16 Feb 2024 06:55:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 626331C69C; Fri, 16 Feb 2024 06:54:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MYhfAahz" 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 D71F01C28B for ; Fri, 16 Feb 2024 06:54:00 +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=1708066440; cv=none; b=NAsRdqtplkf9LKmx0ET1zsZVr7KRQRVmdP1PscthTm4tAx1Z0scXr49FOfl9At7u5yEadGKTRlporuMxia57d36ECVPGMO7wD5/65xk/7bHhbVs0+lWOlCqRcH1RcroU0JOngfrx5bL/a9THe2j1+rZoQDZkAk2/zAA9aoATvl0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066440; c=relaxed/simple; bh=e3JLcK2Zorv6NzoLDXNqOtoctfvRfUkVpj0zHb6Uma0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SbCTRT0gVoy9PlE68Rlj+hSGE2FBkCfpCg2OtSCv3+chZV75yIi+pPZbRLvYI3FYK+GJDGkwYUf3bKD3972TzCKx3bHzW1F+KALx71OgJLQWQAIQg50u4/e+4gzzTeUPvA6lBSAO++deNL0QuoWzha58xaoLQg9ytvFD93khjxU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MYhfAahz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 873C8C43390; Fri, 16 Feb 2024 06:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066440; bh=e3JLcK2Zorv6NzoLDXNqOtoctfvRfUkVpj0zHb6Uma0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MYhfAahznJHHc68nDGRIoxA2wQ6gIDbhrKn+7x4NtBDivZwEl1JX6AcMoyyufiVcp AXtdHNVVfwW/c7PEUNYyy3OCjLq/uonp9U+Y5zx0v0R7H3b9QyFhKfKrjVfw25bgNC vRDgrr78LIDkkkqOTS9LV4DbW0LllabFa+IrTGrx0n8P7YMuvQl6LCCNjFzMtIQMrF YnIFg25kvKFlZndJGBmmcJFm6ayZIWAIem3QMmRN0ydO0++zMkRbFz0xQYkXQ1B+5F JINaZHCT7vopkXJvrkhhRO/ejiy/1W9JMmUTK0JGKwJfalNn7vExyRzv9vnzl7Ft8T PrrAqqQz2GcAw== 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 09/21] drm/i915: remove i915_drm_client::id Date: Fri, 16 Feb 2024 07:53:14 +0100 Message-ID: <20240216065326.6910-10-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037575311748536 X-GMAIL-MSGID: 1791037575311748536 i915_drm_client::id is not used since commit e894b724c316 (drm/i915: Use the fdinfo helper). Drop it. 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/i915_drm_client.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drm_client.h b/drivers/gpu/drm/i915/i915_drm_client.h index a439dd789936..2e7a50d16a88 100644 --- a/drivers/gpu/drm/i915/i915_drm_client.h +++ b/drivers/gpu/drm/i915/i915_drm_client.h @@ -24,8 +24,6 @@ struct drm_printer; struct i915_drm_client { struct kref kref; - unsigned int id; - spinlock_t ctx_lock; /* For add/remove from ctx_list. */ struct list_head ctx_list; /* List of contexts belonging to client. */ From patchwork Fri Feb 16 06:53:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201951 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338562dyb; Thu, 15 Feb 2024 22:55:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUGoqILxgaAYJFfGxFnvYrziZxPV8jtCSMGn6UfR9VINF+puopCsgtNxovWTS20ySrKe6UR+hUaz/2/ULPPBaO8TmJ51Q== X-Google-Smtp-Source: AGHT+IHcnUAo14M8B3UkaQi2Fb3YqwFLhYxAsD0IQf9WOhMa9CWlJSF6cxBcMjiiOEw0KBLcCckg X-Received: by 2002:a5b:ed0:0:b0:dbd:120e:f337 with SMTP id a16-20020a5b0ed0000000b00dbd120ef337mr3979109ybs.30.1708066546822; Thu, 15 Feb 2024 22:55:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066546; cv=pass; d=google.com; s=arc-20160816; b=P4EK0aYzZhzG2yZLyEsMZXfqEf84v9vsp7EqXPTt7/p42eVg7y2FoDxnjdAEq51CJd 162EBPdzlcbr95g2WM2YqY1g7W3iB/oFU5wMdQwWaYuIdfn5ZZejuuAl3/xAafIFx/Yt /6o3aaVRKItUN9n8OmszImL6gWGfRqQ/7Ou4DGBbFt6geQLfb/9g6zFbPJEyk9N/Ef1J cbJL2TFOn7KuWoU3a5bxjrFQU/8UoP9JyuUB8f5xkQZ3aA/63Hnkkk1EvWlJpPs3s/OQ jjSkBdLNNGs2syLhDs/g4/cQkq9wGICGno4ChUrSGY0H980M3sW2bXWZemc9YScwYVm+ Pk5Q== 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=u4EKpPOsZnf0MN4NTe/sZPZtJ4x/aHR1odvTBsoeXzA=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=cX5MUVIQyXxs0+ix1y60Z3VaUHqOSj+Sr06re0C5h5koV7djcdOpGGsERF47B6ya21 6AfZc2gD0kFoVGomd/U7AVX7tXtx6tb+uixaV3k/+M5EualFGvN8CucZ7yUhYVj/9UtD bYkjBf/yIlC+EAAoqL/F98D8khi3xF3G9N3Gib7cg9CbyhBxc+TgnBezNuKsufgu2zuE DnU6QVydHoojmBrVx+w4CcpA/5rHSJRx6DuQigTS4FMpo1TxgYcxdrS44pqpLyAq3ukf 7jVs56YpGUpA1Qu++r6kWbMTy2Bj62axJc0s3+UUAL4qzoUHFnRLQvuH0CLopLf7ruED /89A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="aDyJ4V/b"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68124-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68124-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i24-20020ac860d8000000b00429d470ea36si2958153qtm.592.2024.02.15.22.55.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:55:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68124-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="aDyJ4V/b"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68124-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68124-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 98A0B1C2114E for ; Fri, 16 Feb 2024 06:55:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EF7A1CA8D; Fri, 16 Feb 2024 06:54:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aDyJ4V/b" 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 8132B1C69F for ; Fri, 16 Feb 2024 06:54:03 +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=1708066443; cv=none; b=F7Ff8jtqG7+bcKetFBJGSBbSEKpEuXF+55zQ+8+0NGnIqV4VQ/xCDXP1WCew52KbiJUTdBlYj2iJsIdksctdXdbnzzCjhdhzjRPzPD7YdYjeEjmpg9jguMaz6UTgVliWHiO0RjXBlLWpoafo+c/DNLVSKE6sWNgzvxHoeaRbxWQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066443; c=relaxed/simple; bh=YgYjxfvUqDqcc0kdOcmV9/pe6rLivB5Hnys3gp0apvU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f9eNsRpCdj+VNLAka7dtz1KKC6Wf/9ECCzdZVc6pK6QOHGVKG6NN988DSnFFLa7CENvgosTRi8Dbg74v+qUWNqM+N8yYvwxCZ125FS/47HqIHk8MEXdHDRFwQlX4HzFKuT8lILrcy7Kr9TRRjs6IW10bp02rPknJvD23wtK+IGA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aDyJ4V/b; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1EE4C433C7; Fri, 16 Feb 2024 06:54:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066443; bh=YgYjxfvUqDqcc0kdOcmV9/pe6rLivB5Hnys3gp0apvU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aDyJ4V/bLN4EkcMd8v47X1GZjrkbl4ceRUkFCXyjR/WHxHtMAmW8xc4cPK1n/BSCo fIqVQrxaOyozPq9h7b1vzKQQNuzbvdTG/id6nXhT1vKErrtpsVvEKjYXDbf6VDNn59 OUGefLN2cjl1iN4ua9iqNJRgS3HobVWSRtRjrptOwzu+x2vuqmy1q/GRh4Atk9NWv0 k0/BprtQj2kLdq/6ZlLApcfoUL2yO296nyzeV6sh0ZxRc2fU3sFg9MdVcjeO7zZFxt HVsj9AYDjTopKUxsbUHn34LtHeJkLAN2t1F7Gd0sF09/b6MfOPH0WrZPdJ7QxTRiqr 1rLk1LQoXhfbg== 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 10/21] drm/i915: remove i915_perf_stream::size_exponent Date: Fri, 16 Feb 2024 07:53:15 +0100 Message-ID: <20240216065326.6910-11-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037587399285657 X-GMAIL-MSGID: 1791037587399285657 i915_perf_stream::size_exponent was never used since its addition in commit a37f08a882b0 (drm/i915/perf: Refactor oa object to better manage resources). Drop it. 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/i915_perf_types.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_perf_types.h b/drivers/gpu/drm/i915/i915_perf_types.h index 46445248d193..39fb6ce4a7ef 100644 --- a/drivers/gpu/drm/i915/i915_perf_types.h +++ b/drivers/gpu/drm/i915/i915_perf_types.h @@ -288,7 +288,6 @@ struct i915_perf_stream { struct i915_vma *vma; u8 *vaddr; u32 last_ctx_id; - int size_exponent; /** * @oa_buffer.ptr_lock: Locks reads and writes to all From patchwork Fri Feb 16 06:53:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201954 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338799dyb; Thu, 15 Feb 2024 22:56:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUtck7CpGIwwlU0NimjywJ9HpqTd5WDGcAQo3Nq2+5ccfhsrCSUD5VPnvhzen7M9aZ0lUECCqY6fHqwyZcUE2gHWMOBrQ== X-Google-Smtp-Source: AGHT+IH9lT+9M15SfCqqha872DID7KQwUjjwVJBEATnEBGF6YmvWsmXFW9ZRSPFHr9vGr2d5lPpb X-Received: by 2002:a05:6a21:31c7:b0:1a0:85ac:8c06 with SMTP id zb7-20020a056a2131c700b001a085ac8c06mr1865962pzb.13.1708066597947; Thu, 15 Feb 2024 22:56:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066597; cv=pass; d=google.com; s=arc-20160816; b=xvRT5MFzdFLdGzHLUbcegA6ZZ1YUr6DHqrjtL98JuJb9oQUPUHEG/AaB18vSVopyjH X+etUMcfNlJ3latsS2AGqA3hlQRQ3Mzx9yxVcTbNwY/JWxTva0rAyV5+HjjnV3SiZPU6 Cmqc57TuEgasZLKR13L7IT3ej5Y8r/sXnUi4cCNC2WQ82wJ40pJ9j7p6wNvoK6I6B3AS Cpq8/SMvz8NIL+i7ys5eFpL90RtCF9P8dweRQzg9rNvBrNSZoq8t6chioExRPHEIuiMs MsrFhGy4zKgHwV6MNvDwmQaMNEe5B4+PcMCUC32MePnPeydOFZnAZ8G6qWgBtSK34t3+ xwWA== 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=Hc4GYd00YXwWo/SSfa3ynoODglAmJEpi+A3amrzJV4g=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=t7uASCNS5ZUNfI791OLf2gpWEhOHURml58zGiPU00ajY8siJSjrZvErrRyDehSnWF/ Bfm8zTF5yxBfTZtQM8QfEKQLaT6W1Lb8fIa5m4Ebh43KsWajdlaeTzjoOH028DLXGGl+ 0Um5iL4X1o1BFUmiJ3rzj2Vk0q7hZu4sCzrNtlonx8BHDPPrhThdhpVLU48aQzKOW4w3 QcELzNdfvZRj1bs3sTrBF+wbm6Pn9uJ0MGiwX6D+jX3H5oOUsbLv9UKemayUrvCBxRv4 Awq8T7Ear7rNzp/u7d6cT/rFPOfnYiP+m0Y/6vGnQ0ZpbaMIgTtEtNbFNkZP/cICsHO7 sduA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bcPOWQoE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68125-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68125-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n4-20020a17090a9f0400b00296e7530e94si4274894pjp.188.2024.02.15.22.56.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:56:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68125-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bcPOWQoE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68125-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68125-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D2035284881 for ; Fri, 16 Feb 2024 06:55:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E86651CABB; Fri, 16 Feb 2024 06:54:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bcPOWQoE" 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 642941CA9A for ; Fri, 16 Feb 2024 06:54:06 +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=1708066447; cv=none; b=slIgSeT+jAKm58vFmP9PFtQPXf9Rg/8QjnkSWymibO1j9d6Menhc07GQrK6GKIVAq0+ZzkPleNvWouL8sWPtgTNbqDiZK84pi5xX6qacLP2afQvUyjZXRde1bBXsJOY8HL18A2NItlseyIFuLaQLK9hO7hZGRxvTBlpoWojIf6Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066447; c=relaxed/simple; bh=D1UVKTUwrumNB4hwYMCCqn17XRjRd4Butj96fqO0Ms8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A9hyfHQ4SOh9oWEn2kLpHuNwb08jjqdYzouTBnHs51Mjvz2NguEve5c4ZyGkX/IzuXgkabynnDs7VFPyEDdtoFO3TpNWcQzyuueMu3GAyylwwA04BMQcaxmHpIOTt7+5ZB1Q59d7Fq5rWczZPAZxBy6kImgbt6rqCfZ8H964j1M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bcPOWQoE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2D78C433F1; Fri, 16 Feb 2024 06:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066446; bh=D1UVKTUwrumNB4hwYMCCqn17XRjRd4Butj96fqO0Ms8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bcPOWQoEz23Zw9RUcbqEyl8B6I+N8c2+TNF+litP20oTavcBUp4OMcqgSikxs9hIy GBUv8uCuIGafuExHqqNKSGSexCkHq2tZl+4NTqRLuUSAQlAquRvyKfMh9ZEaDuWvYi 7Hwo0cJmbybLTXpfvhEU97F+owLSUn0nfuVr44SNOC4FBO5CBz3XdlAS87pPXo73RY YiUpVcKDF0HlR+Bii/IWPxg6+qMa7l4kjVr+djNQCMxDkEYj0v1QAnshCedXfLqx5M N68b3v8f0aCn+Hu6mL/eovXey2vuAviuiC0HezrAYj6ivjaPf2ow46KWtVaYYTAJRK uRSTpcFUqEYNA== 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 11/21] drm/i915: remove intel_vgpu_gtt::active_ppgtt_mm_bitmap Date: Fri, 16 Feb 2024 07:53:16 +0100 Message-ID: <20240216065326.6910-12-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037641401783459 X-GMAIL-MSGID: 1791037641401783459 intel_vgpu_gtt::active_ppgtt_mm_bitmap was never used since its addition in commit 2707e4446688 (drm/i915/gvt: vGPU graphics memory virtualization). Drop it. 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/gtt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/gtt.h b/drivers/gpu/drm/i915/gvt/gtt.h index fb96ea454fd1..cb50700e6cc9 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.h +++ b/drivers/gpu/drm/i915/gvt/gtt.h @@ -208,7 +208,6 @@ struct intel_vgpu_scratch_pt { struct intel_vgpu_gtt { struct intel_vgpu_mm *ggtt_mm; - unsigned long active_ppgtt_mm_bitmap; struct list_head ppgtt_mm_list_head; struct radix_tree_root spt_tree; struct list_head oos_page_list_head; From patchwork Fri Feb 16 06:53:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201952 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338665dyb; Thu, 15 Feb 2024 22:56:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVW18ilpW2jIWpM1+VNqHmZwT7mRrA685TlrS2ivWfPM1F60K4WTcmYEExae2sUQ6/kp1JoBp/zVqpJDTWvz+FsCBN/pQ== X-Google-Smtp-Source: AGHT+IE4V4QHLG9Eer1s+lbQxQIxCZ2aJp0o9ddy6TayAftbgiV5NldNIcvyq6CDujZpV8EaG3za X-Received: by 2002:ac8:5f4b:0:b0:42d:c7da:eb43 with SMTP id y11-20020ac85f4b000000b0042dc7daeb43mr4962194qta.1.1708066570634; Thu, 15 Feb 2024 22:56:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066570; cv=pass; d=google.com; s=arc-20160816; b=o6YSy5vcS0ADIAE8VYu9bIZZCrjcIST95UnxWxgMKQqDPhMDiWwlyVdvUiPAHhN7zh bkL1dAcery88DGVk5rI8dZM0Q7z1oO0lVRKc/ZSY4oIGRx6+3mvpiXxrkHXpJARrgp4R JGrFkWUuoMA5GRDLIEhMRtu21qLU0EoIE2gPMRJpRj0EqiqOKxxP7AWFCVVMAVmUOtYR njvtSa61n5on5YvyUx2KnNpOstuNADkwVcUL48aHjZivIrbdSLBaVeDYUhiDNUXsKAG9 HR9WQf9r47uLaq30YYR467bdjSpBmiNttlS19v/5vuDQsE9LgLvceUQRvH1tUvtFzDfR JuEA== 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=hodXtwu8V1BhQDC9etuwvcRmEibeFHKJr4TIdSZ8gFo=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=OymGYgLfdWYGlVKbjzEV1e8NSar0PkDWaUdwG7o1Mgb6827Eb16Kym5ZPE9f2YCKQQ wxWiMG9Ag01/ZMAEZGJKa/poAQPIZ6pqiUb051ThPG+UrzbQXJFc33IZKvBrD2c8I/7V HiSjbE8PrnOizq0EgnCYRHi14OMHQxORo3s6Phu4WOLI+1FVOoVw909zGt0cLLigG4jN PNH8zsrSB/cnTj7cuwyy07S/KbdvTaTveCf8CGQp1uzkvX1Xfmp9kdBOQefQnWqLc/ls 4rKgAZaXXnTajwwxXyQM+ODpcW8ZnqZrQl6odcpxNY3QGQIO1Z77/jH97plJJv4FC5PR MWjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KDfx5flm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68126-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68126-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z17-20020ac87f91000000b0042dd522fa45si2536202qtj.678.2024.02.15.22.56.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:56:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68126-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KDfx5flm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68126-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68126-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 697F51C213FE for ; Fri, 16 Feb 2024 06:56:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54D511CD23; Fri, 16 Feb 2024 06:54:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KDfx5flm" 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 C3E9B1CAB7 for ; Fri, 16 Feb 2024 06:54:09 +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=1708066449; cv=none; b=qxMONfvXYhLm0y+aX7tKl2zviOcPFNRXNcJJUR78D7urTIyPLPScnzBfFUesOEGysupiZusVKxeVs1QuD79qiuROCakGHUSC33iFio+VPD0RMm0g47sQqi718IjtLYrIM3HPzrjUuSHsA6hJl3lA2SXCDFUfEcdy4t1o+wRVwAo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066449; c=relaxed/simple; bh=8o0wvfgtp9sQfzOgFfW8t1yUu/RnxbOaOuDmpI5A5qk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=anwak8RlJe7tKv/tv77bh5F/Iry8XufU+L6qQeIp7GiGifxKomT9crjRqoFUO87Mmhn08raa64ufaDI8P9zqVc2GxyZ1lvRMeFlZAgp8+3yl+zzbqi6uzWjAEv1/yxHYXQfwetxQpMNlIlxOIfaWSHC5u3G8t8fZIQ2mIHgcSpE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KDfx5flm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1434FC433C7; Fri, 16 Feb 2024 06:54:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066449; bh=8o0wvfgtp9sQfzOgFfW8t1yUu/RnxbOaOuDmpI5A5qk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KDfx5flmsaTtfTYf4Irng/CnPwsgJzJ+dCaPmXn2In2KJowAOIDfk3S4a8EZN8Wci BNHEy6+fHdkUEo33XX5p8tlaEut0C49KaVhNLaHht/oPG2DVLypJecnoYueC81JbXi V0HMdYliYRfKvpOuoGFohYyUEurgXau3BOqP80MA+a6fFF2OrIEUmbWa6oaOlOC/I9 l6Py+6hUpe5SiWWTWl///JzRTnAmmSkRN2KvUepgwDllHeTf1tMrfqLy5uFFpg1g6y H+/gIlTcFRsYy4ZdCjDqRfIxjzk/y2rYHqBZoql1212DKkabX918XDQfNWKRkEzMzb xNGpHrnT1crUQ== 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 12/21] drm/i915: remove intel_vgpu_fence::base Date: Fri, 16 Feb 2024 07:53:17 +0100 Message-ID: <20240216065326.6910-13-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037612058951415 X-GMAIL-MSGID: 1791037612058951415 intel_vgpu_fence::base was never used since its addition in commit 28a60dee2ce6 (drm/i915/gvt: vGPU HW resource management). Drop it. 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/gvt.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h index c57aba09091f..b6fe17f1a16f 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.h +++ b/drivers/gpu/drm/i915/gvt/gvt.h @@ -89,7 +89,6 @@ struct intel_vgpu_gm { /* Fences owned by a vGPU */ struct intel_vgpu_fence { struct i915_fence_reg *regs[INTEL_GVT_MAX_NUM_FENCES]; - u32 base; u32 size; }; @@ -444,7 +443,6 @@ int intel_gvt_load_firmware(struct intel_gvt *gvt); #define vgpu_hidden_gmadr_end(vgpu) \ (vgpu_hidden_gmadr_base(vgpu) + vgpu_hidden_sz(vgpu) - 1) -#define vgpu_fence_base(vgpu) (vgpu->fence.base) #define vgpu_fence_sz(vgpu) (vgpu->fence.size) /* ring context size i.e. the first 0x50 dwords*/ From patchwork Fri Feb 16 06:53:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201958 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp339222dyb; Thu, 15 Feb 2024 22:58:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVppD++Q5EGadEEluGLAPEQso8ydOQU20dMyzmhLzqWhjEd9RN9J8RbiiH0UA0Es/SGiltmJ6IQSvRhdI7SI3HrE7p4Tw== X-Google-Smtp-Source: AGHT+IG7V5PffAAitTQ6YZSD3F97jdpQ4UJ1XMaGD+bGZAFfC314xZFQpD0iHdzkHAaOW9dbdX2u X-Received: by 2002:a05:6a00:2e1a:b0:6e1:3cdb:76f1 with SMTP id fc26-20020a056a002e1a00b006e13cdb76f1mr1062232pfb.20.1708066683799; Thu, 15 Feb 2024 22:58:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066683; cv=pass; d=google.com; s=arc-20160816; b=nnyLK84GIFUapWgfvM9qrm6jURIbbqm6+Hb5xKijYALmxVwJ1/sEv6mKnI1FNycnCH unC/wmg3rKupWrdBeDjdeF2jrrol1WEaRs8tarCkLdFS8/H9kLqxqhDQqpBSIRPJ8Vw7 XnTLmc7G3BVEPrjZoqbAzcxknLJ+arzOU99KK+I9YI0mIsRhh2hWsil13gWeiEtkzd/a +TOetiAKyVzSsc7ydDAqUZvujrLO5wRU2ANMNpsECdw97UFcFayxMOEyJxrJpqqyKUPF oNomr4GBc25Axbjjm1ywGf+SGan0RGn1rvnlMmZOA0pt9WOsFP92/N10hocJMhmqw1b/ VTZg== 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=sfKvCjOxEloSEokX3hCJlcYhlMwc55DsPcPKthC4r7w=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=XgBhmnqBqYz/j3oCJO2ktdeBjL36Z33cDPVqf76k2Kl91fpUR9/izSMy8h2/PvSCHa aWOUyy518vE1DixA04YagSG5hx+vqE7zyUNOaAbexcIpCrTo4qmedoKVvvPlFvw3zdfH vKQsihyqgpP5Sln00Ar5qss5PPKxrfVFFCqGUat+pD+KKIVqSaS6rVy24JV1s8bxTtNL ZfjruAmb82+NSWmkfzLdJZOGmddSPbTduaIT9vtF8odemBGyEnmAGKtZUZQD5HV95u4S zavBiscBrwDzIMvyrItaYc67gkMFIIvUJvgpDNFYQh209gWMOVHtT09JEsAjGN3Zdfl/ 8IWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FNZN1U+W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68127-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68127-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f7-20020a056a00238700b006e13dbeb8b6si573627pfc.302.2024.02.15.22.58.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:58:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68127-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FNZN1U+W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68127-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68127-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5CF08B21AA0 for ; Fri, 16 Feb 2024 06:56:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B61741CF94; Fri, 16 Feb 2024 06:54:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FNZN1U+W" 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 2D2C81CD2B for ; Fri, 16 Feb 2024 06:54:13 +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=1708066453; cv=none; b=ON1xXu9zJ62xAqpOqUzaLvQsaFak0kuyeVj+Dx4Z4LYddOf8coOA7hvDFd3PJ4EbJSG02AjfpTDgny0LYttPbuFhpESqLZZzekzJo+xF4LHeET/4TOpwBpHxHw4SsCZljd+RjRYlfb3ijRTZ3bDRDaIG6dGy9ntqL46ZkBKx2mA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066453; c=relaxed/simple; bh=TktpFXRJz/ldFZumo7iwlZkQPrtoXAs7MIXqQ9AMx+A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GtQqnUaL8epq24qCHq2Ewrq9ZHqzFQ84CPyZI6Y4uH8MAC4TgP1jDn8rwP7H3QZeZLzC3eSaimT4Q/F6YnTmc7k0wI6HM15Yb6suebXrpYwOKTGjyH1IXVCCUxJ+aP6WxpotVEiahoxDlIrlq61LP31N/QWL6kDEQ8Ll4qPF1E0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FNZN1U+W; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 665B7C43399; Fri, 16 Feb 2024 06:54:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066453; bh=TktpFXRJz/ldFZumo7iwlZkQPrtoXAs7MIXqQ9AMx+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FNZN1U+WIzhHHPi5oj6KocxGGyE+DAW/vy1cSJoV03TW0rpM7j68r9Y0/KAC/GZHL Cc7oh1TJ29x8OBhQwOJt5brlWQ/o6m2uVrxXMyq42QtrwEfReN/C7DWGa1sN5k2A/p weXkEzT8r55DVqJyD9izVzNfObcpkZ6qQSXmxOrM+6HDtO8D+J1FLoo5iG5FY4eBy1 kZXa9mlRuLSAwi81J12G2RmwQe5PCi2CCqtJuUYF84b4pewjVi1ahvyTQAZrJehH4U nWqh5wRFZ1ND/RTTd+kXNm8ZpcDC24td26oInNolWGYhN/uupW6kmehBSbWhM+47YW rBX2+8omIIPHw== 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 13/21] drm/i915: remove intel_vgpu_opregion::mapped Date: Fri, 16 Feb 2024 07:53:18 +0100 Message-ID: <20240216065326.6910-14-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037731107591392 X-GMAIL-MSGID: 1791037731107591392 intel_vgpu_opregion::mapped is not used since commit 367748066eeb (drm/i915/gvt: remove enum hypervisor_type). Drop it. 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/gvt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h index b6fe17f1a16f..8e5d696fc79c 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.h +++ b/drivers/gpu/drm/i915/gvt/gvt.h @@ -118,7 +118,6 @@ struct intel_vgpu_irq { }; struct intel_vgpu_opregion { - bool mapped; void *va; u32 gfn[INTEL_GVT_OPREGION_PAGES]; }; From patchwork Fri Feb 16 06:53:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201953 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338792dyb; Thu, 15 Feb 2024 22:56:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUpqEC6UI299HT9ErUjskx0j0Flfz3lcJmy03JdCh8uj5NGZU50yFtSvPYjaWE0AUdJ4LQhV6EJWA5wAVmCQu+OqV2uGA== X-Google-Smtp-Source: AGHT+IEnnwpNCN89WB0ZoJ0rkFGsBdHuWNVE2cFDIYBQDDiLVdXoxn+kMSIY5SabfRIAjUY6gg+N X-Received: by 2002:a17:906:81cd:b0:a3d:bbea:13f8 with SMTP id e13-20020a17090681cd00b00a3dbbea13f8mr1297740ejx.16.1708066597299; Thu, 15 Feb 2024 22:56:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066597; cv=pass; d=google.com; s=arc-20160816; b=bUSyCvUHz3Sac0Ua1PlPgy62m+qNNzX5bXhRlj++Gz/tEvvptqdAgOJ7VzV0RnRMy4 /yq/cBpdR+7PPr3bqQvWtWUqrM+Wi5zQ4JSwmlpCXEeQYSnhgHGr6S8bNSAyy3mDQJlN v809JNaj8J0fKCd6YZAjsQg+KTEh2avjW0Qz+m1E2m2rvks7zH/1ivc0+accq9xV9FQa lQEXyDKfSpv4wAEM/4spsetNE2aCeqS4oWLBamzQ+GgHGrJIFIvq4QtMAVB2OmuLuwka vSisKRy96jTv1RLttCwebvLZMNTK8leZIVfdFGsTpPEkFqcmw8UG1+PQLJFOmUk74aVI cCgg== 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=Wd2czlcOWin31T/DMf1cSaMjQ3Nwr9dopca++9MsMVU=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=O60mYZYCSaQIvLzxGvNqqANDT2YMixPhcoD+j7AonqFxEUOqF3F++pa1Md/22DpDuI /Aj5WwWuawSTIQMYDdXY6uQ4nMBiEVbpUXT7qUf+I9QgeGVU2BOI/3Jk8MjUtBpLaT5I gOLgFPNzAB+rPlwGUy3rgVoZioW3OncLFsNxmxk7LujodP4CycYZgPsIS5sqgys+SYz4 pUa5e5IykQfCX/jD4bnu6cHVlXFwz3H7MKuhhdU6l3rQsicgjj8CAJFnAp/AMyaZAWKz bu1dHPewtHm+sKoqU4Gf8dwJ3O8WZb4iDNfkhvlHJgiOIe5svjHu4BxYJ7U8XDQ3ONRG VkfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ID/5JZuI"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68128-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68128-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g11-20020a170906394b00b00a3d151da798si1365807eje.905.2024.02.15.22.56.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:56:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68128-ouuuleilei=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="ID/5JZuI"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68128-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68128-ouuuleilei=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 EC09C1F22F5B for ; Fri, 16 Feb 2024 06:56:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4ECEA1D55C; Fri, 16 Feb 2024 06:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ID/5JZuI" 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 C6FCF1CFAC for ; Fri, 16 Feb 2024 06:54:16 +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=1708066456; cv=none; b=Hq9QitiMXs46Bxaf2D5FBc45QbStMBGncT24mHLO8KXJyheMvTh7MwtxI4s8RSElxFGY/rG2rn1Gu3If1g0/cZ1AMqZit0h4gv9sdnu3Hlax4CXhEwsw3lL2FB9dlkcRb/j2sUhTwjqJQn4TpuCLi8C/3tpgyl8QpON04j3bqcI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066456; c=relaxed/simple; bh=SXyIHpFd6ET8iufV6ZRXcOFvDY4mmrBUfCieGBadR0I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hkvilpDNA75YggB2auqpWZBaq99DW3w+a0Mqcs93fG+FPjznZxcqFQ5G5bv36W8n5uT/aorr1u4h8NsrW0c4ivDGc0tviPNUZzJoUg03dXcM25ezXp5LzfusMnq04W/Ducq7MmN7fLWd2ZJOctA2OiPqDRZtJriqUODZcLRc50w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ID/5JZuI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2631C433F1; Fri, 16 Feb 2024 06:54:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066456; bh=SXyIHpFd6ET8iufV6ZRXcOFvDY4mmrBUfCieGBadR0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ID/5JZuIbZ7qR1aXjg2e0yERBM7vDBtiMaOKDAbabO1Cz1Sqt7sMoMOR+AZLRcshz KkpjdY7DmWTACjfEIrMqmLPmj82z/2aToB1WKxmewUwew8c8scMtgIhCX6olwQU+CY uXrphMLBWfGRsiB7m2y3U1qPgVZiU31qxJutPxz3dHx8YG0Rli7Q+5S/0z+APoqq9k Ak0PWXsjVwt0wqvttbAY1bFcDhRafgqlO3ILJlUQk3fkZCqsAKSVuyBqEH+JOSnLj6 cI8IXozf1s30jEkneAMJBPzzNCgaAiz0oAFEaFXySEv340/YXVnqJTXGYAcX/mkYAN lGBIgQ2vH3fOw== 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 14/21] drm/i915: remove intel_vgpu::intx_trigger Date: Fri, 16 Feb 2024 07:53:19 +0100 Message-ID: <20240216065326.6910-15-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037640200856005 X-GMAIL-MSGID: 1791037640200856005 intel_vgpu::intx_trigger was never used since its addition in commit f30437c5e7bf (drm/i915/gvt: add KVMGT support). Drop it. 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/gvt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h index 8e5d696fc79c..b8b8ffe4d566 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.h +++ b/drivers/gpu/drm/i915/gvt/gvt.h @@ -221,7 +221,6 @@ struct intel_vgpu { struct vfio_region *region; int num_regions; - struct eventfd_ctx *intx_trigger; struct eventfd_ctx *msi_trigger; /* From patchwork Fri Feb 16 06:53:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201955 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338847dyb; Thu, 15 Feb 2024 22:56:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUvWw2kl9m1jlZ1+paQiagXJEPM6kCgU1u7tNo6zSLcunS9usoJIvjLD948EvgZMVgas5nFQccHkPT8+mB0vPHpu+FsDg== X-Google-Smtp-Source: AGHT+IERXLU3xlEUfknpvEbeOCIW+s0HswLEu1o0E6hpAb5IpOWoTmeZe3F5M6EvV3iWblfUBOFA X-Received: by 2002:a05:6512:200d:b0:512:8a57:d0b5 with SMTP id a13-20020a056512200d00b005128a57d0b5mr2226868lfb.16.1708066607247; Thu, 15 Feb 2024 22:56:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066607; cv=pass; d=google.com; s=arc-20160816; b=yLcGGKtmzu+P8jglCruLaiDCSbxDM15dQ6YVxKkrPfy6/ys/AQ8wYix1dTvBzGmgW9 gI4D7sOk4RWQ/IWc8cckdjHYUYuNDhR8+0hqFCp8EXs6nSuFLGdlIMDnRyj/noRJw76N cx7Mc8PetPIZmLmdotJqEO0BEGUnlcLd7sxHGN5os9x/zeA24IAnyAv4x6nQ8oVpNCuG KGJuu4dSvOizaSg2bZgvZIZSULsPJZ+izqj9NJB11nJQhhpbFsu/E3KzlXsAGKssxCbd 1KnQuC/qoNL81uEHVb02+6E+cUNc2oZe/PogQymmfhS0eTobQSxISn7VfmJHP/RDQraV e0KQ== 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=WkkFHEvo2B9TE0nNh5I41QgfO0rPSvAfMcHhWdTuDxo=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=TMSeIqFefKM+PWEFyC3RIKH7UiS5n8G7y0Y6q0hJ/iOwa4iVWrxXSoFaq+awWHxP0J j6LODkeLQ9LSPsoQYceHloldzXfcS/Ia80ltl6BfmWUG5y7uUh6f9O/pbZz8xhDO9x2e MQiA5aLZSlG+COxKUKu3t2cLDl59puqU7Mnr7nXZHNQQONBvxQf+rNSLLqN/JJL44k+C 418BarR7JPKUwHyOc3l5bKxUIzmf52isM5KpWtqmxpuTZOzoFmd5s7FKo/d1j2z1WBbK GlIs521VFAOkvSqtKYFhvO6gHgbhY8gUIRxv6y2GqIARNBYc8TVEo/E5muFDb3UR5uSe /TpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OZYa6F4s; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68129-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68129-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s17-20020a056402521100b0056389d2d63bsi1416384edd.30.2024.02.15.22.56.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:56:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68129-ouuuleilei=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=OZYa6F4s; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68129-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68129-ouuuleilei=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 D14531F20F94 for ; Fri, 16 Feb 2024 06:56:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A42B01DFFA; Fri, 16 Feb 2024 06:54:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OZYa6F4s" 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 1E7EA1DA23 for ; Fri, 16 Feb 2024 06:54:19 +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=1708066460; cv=none; b=m+mIRxcNeDGRR0UbKeTHOQWX4WO+WBLqLkSo1x4EyUCtElW9fQ8V6FXhJDeKqMiMqU/mUdRmnZQtN4rMkdZSisCVeAOJSgVYmA/fu+cgfG0rhFTKCphXtZyFKXd1mDGEO9f4nidP7TMS1xb5OlCq9YppvNh8PlYVKZn8QzE4Y6o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066460; c=relaxed/simple; bh=BXImqGWAPuqO33Ld3ZnMdqeekf4kcUYdKg21p7D7eN8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SbdylYw+yG3Ac37YpaRJ/Bm7ekUA8NiNeJe7naT1gq1SZHE7IH7dzWeNONpUSgArd1etUwdhIQ+yx8l61dhvm8jKHY9IB7uGH7Uv73aXhlBqoLGF4HeBQhDOZ57p6UnBer6CeHQQFnUE9QMGtJgOYBa308YN99FJsRkNeprGAFE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OZYa6F4s; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4DD1C433C7; Fri, 16 Feb 2024 06:54:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066459; bh=BXImqGWAPuqO33Ld3ZnMdqeekf4kcUYdKg21p7D7eN8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OZYa6F4sJIbOHW1A/nf05Cx7UXrlVbKnctd7m6e53k5qk8qOzli1waB1ESFi+U2kM P2n7o+9xU4Ntq4h0Cenr6KVAOohzzzX7qwCJK+WI3IuxC5cSB34oywUqoOSyhRuvKb aLKc44lOuKkKl66wsvAS9WJ7J8ioRM2/cjBSJJ8LMfhqiRA/TRDj5nNHO28jkT6H4N t3wKvbTA+xDlpXRf3E/OfJ/TayYEbOW0ZTu/bJDW2ZbLWxajekbTh0wPJ1FJ+oP0ga lkSC+uUbjxdLM6E3hn5kJ68nOcZqtknkriN1Nv3taD8LPYcq7WmzzZO0msKpQG1zm/ 2VxP9q4/ufFlg== 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 15/21] drm/i915: remove gvt_mmio_block::device Date: Fri, 16 Feb 2024 07:53:20 +0100 Message-ID: <20240216065326.6910-16-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037651014385981 X-GMAIL-MSGID: 1791037651014385981 gvt_mmio_block::device is not used since commit e0f74ed4634d (i915/gvt: Separate the MMIO tracking table from GVT-g). Drop it. 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/gvt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h index b8b8ffe4d566..2c95aeef4e41 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.h +++ b/drivers/gpu/drm/i915/gvt/gvt.h @@ -253,7 +253,6 @@ struct intel_gvt_fence { /* Special MMIO blocks. */ struct gvt_mmio_block { - unsigned int device; i915_reg_t offset; unsigned int size; gvt_mmio_func read; From patchwork Fri Feb 16 06:53:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201960 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp339368dyb; Thu, 15 Feb 2024 22:58:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUvl6xtdMIHYjnJuA8Y6bgclEJR9OUCkuxoZlFO4g+P9Ot1MW2oYtw5yLLHvGLWXR/G2m1kvL699CbRKKhucviCCMBU2A== X-Google-Smtp-Source: AGHT+IGBS1ZYhFEZtr3pNAAokhPVJArBDgYy4ULYnQwivera2titb6zdyiB7S+pqhMkkv5G4FIGT X-Received: by 2002:a05:6a21:3941:b0:1a0:885e:9706 with SMTP id ac1-20020a056a21394100b001a0885e9706mr1317536pzc.18.1708066719893; Thu, 15 Feb 2024 22:58:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066719; cv=pass; d=google.com; s=arc-20160816; b=BqIUqp6mhK7V57w73Na8RlKh/US5gWzjhWY38cmC25o0R/HGNFbeYY1N7xvBohsXEl nCMps9BaA3xdQvC6EvTTN2FT8nGO/ucz4R4d0kLZWc05vGxGXjiq06q6tgqARtmvAG0N O8R95BqbvlZ1A8DMnkJ/xAttmT6REuoyql3v5LfLA4U0b/rWYMkTV0pU2UNYACDNncGd kE1yBuKl6uFw+hCxyVRHKiERLpialU+KXsC0UxkP6MHl7YrNZZJiyC5CytfoO/tvN6v/ cSFfPiKgkK8XiPHvwf3XQ6Tl1KgjRILAq6hjT3kGsm8aDgZL4cyMkIyWtHG15pnmVK/y kCqw== 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=iVrvuMprdWN2OxtdLUAunEFvyBtPgwAnjwO2RwxSyl0=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=AYlekZvAT++LJEd8W3fnIh3INTbm2rJQbQ/cl2M1QvLWUj48eIz7FTJZEbW5+3Setb cIr7b5wFrFnWUGw+AA2DRhBwImrDxhNbyS04FmA5W7ZEagR5zs7FEuq8L8JimTnshuyA 44HuMgEReXVgJLhk/92atsVsaegER7jBckWD/WVvXSeGBUyNZH+bVN52m/TOhjtkjFFz vVB31tjiYgzw+r3pvib1QN7EmbP8qE811HBSPS1n43VBninx9eYks7w+TVcH9i2Wa1g5 bkPphAA8dIHrcsaWXm7gvDq1xkOWI3x355XjMAvL7tvBBXJtYsMP7haUmxBOXjhCAkpH dxbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sTepzBhp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68130-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68130-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f7-20020a056a00238700b006e13dbeb8b6si573627pfc.302.2024.02.15.22.58.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:58:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68130-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sTepzBhp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68130-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68130-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 74967B23FDC for ; Fri, 16 Feb 2024 06:57:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20ADE1F922; Fri, 16 Feb 2024 06:54:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sTepzBhp" 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 905F01E888 for ; Fri, 16 Feb 2024 06:54:22 +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=1708066463; cv=none; b=uzob/XqlOWCw28YPiZKMsX72OVILz9yYuFBdfGztJBQ7XuJ7LvpSufFDGKdZGRt0l8GX5ehbmXqr+9MCVnoz9to2A6T8JVeTF7S1D3tqqq3ccrc+mMIClUNXJ0a1TRySNUmc6ZjqFmg/1ARxrjq9r/6N6mtTa5apCCFXlH7btWw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066463; c=relaxed/simple; bh=76rc2RXrSGYrSj0C5tpAcUBDgwB+L+6GnchV2Cb1TXk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RylIRBoBUqliHGvDasJpmvcKr1Txpvy5pcA4X9zJ9zpHY5OuZSnWBoydrmQLYKJ1zzVyeK8W8NIFlctPv12777qkJLuur+f7etj9av/decAX+6sp+3ehmOq1d/BW83hY3mJKIvkvO8WQonGG63Yn+iAtNKjE/RDGlSepXAYhjbw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sTepzBhp; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 477CEC43394; Fri, 16 Feb 2024 06:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066462; bh=76rc2RXrSGYrSj0C5tpAcUBDgwB+L+6GnchV2Cb1TXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sTepzBhpub0N6GDHAWQ92fg6hamVDAWFkhi1H3OtEdwVXR6BNgFJkIPVRVIhczNtY ONzylcaA0wElfNFJcdsPuk0mkKJNZDECU+nYLVaAlA4GAyU6pQbIaIXE6ClA0wSeR5 oC/eBD0nRHX5kZ3wPgWaVZqYwtLBaa4z6OrnVatq7GWMoN84XmAupCV/BadcabFxVV D662aciGIIKh06bobhx5cHhSObz3FGi3TC6b0Cm5z2SV7asXpY4IFYWoeI5y/OkhA7 bEiwXCwZnbh+F2O4Lg9k6m/BfLwyF+I+eMm97cAh1nrU2UBbLHoLnd9hI0XzuEJ4lo AVYPt998gh00A== 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 16/21] drm/i915: remove intel_gvt_irq_info::warned Date: Fri, 16 Feb 2024 07:53:21 +0100 Message-ID: <20240216065326.6910-17-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037768740376434 X-GMAIL-MSGID: 1791037768740376434 intel_gvt_irq_info::warned was never used since its addition in commit c8fe6a6811a7 (drm/i915/gvt: vGPU interrupt virtualization.). Drop it. 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/interrupt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/interrupt.c b/drivers/gpu/drm/i915/gvt/interrupt.c index c8e7dfc9f791..336d079c4207 100644 --- a/drivers/gpu/drm/i915/gvt/interrupt.c +++ b/drivers/gpu/drm/i915/gvt/interrupt.c @@ -40,7 +40,6 @@ struct intel_gvt_irq_info { char *name; i915_reg_t reg_base; enum intel_gvt_event_type bit_to_event[INTEL_GVT_IRQ_BITWIDTH]; - unsigned long warned; int group; DECLARE_BITMAP(downstream_irq_bitmap, INTEL_GVT_IRQ_BITWIDTH); bool has_upstream_irq; From patchwork Fri Feb 16 06:53:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201961 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp339403dyb; Thu, 15 Feb 2024 22:58:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUR0tf31GYrlMeSfbTgTrDmfoLF/sAOlVNj43ewg3M/U2bqlbjPoTbosoCBRd/i615DaqM+STxvdN+hsf7PUbnclae/ew== X-Google-Smtp-Source: AGHT+IEDCQGw9t/ekOsm8ad828lU3KRjzXwT7u6MKHou9CrqOjkYdlYP+n2iNlDn/+Ry89pUd5q9 X-Received: by 2002:a17:90b:3658:b0:299:1a41:da46 with SMTP id nh24-20020a17090b365800b002991a41da46mr4369279pjb.23.1708066729660; Thu, 15 Feb 2024 22:58:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066729; cv=pass; d=google.com; s=arc-20160816; b=tXdF6tcHxa1vQvg6qakKDMAdX+ie6u8ERYonTFZPglIzgRnF92aXFmYXN4C+Uh1R9/ tYW3VJEBMdX+Ts7J9WDjHM9pHAwUJJyVQnUHf4KJ9k+30pVpx/B3OQjhrwarAmehbpdD GtF1NUsuPWuF3m7PJ+AkuG5ZdGNvvu/URnNQkjBaJnAKmEabIk+rRpSL0HcAujknWcqq mAEFQv3DZ8fXzNe5VRN9pqoix5cae/jKptHvUVkvjX8P7FkR3silp3+nUXlAlomPelFk 2yOOwYrb/+5FjONbNQjxaNUbI2TwE30jyGWZvHXVDSFj0omI/ah0LT3qMJI7Z32sc3jO dnRg== 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=FRwdFiVGjimwQiGOlXdYMpPIosBqZWbnx0ytI5uhB48=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=j8+HpYxD0um6lKYmhZ1C81fyvZ5TBX1X5G81r/Yjd+qwMrGUn/x3tJLBLNuD4SLvOf ukryQHsUYjgBJnh7B7ov4wUThIYpBSjZyMdHimFHlR54TGI2ozGQBJwH6XFpoo8D4Rh5 939KhBSkYeLfo2SYnzupSHJP0pygSx7YOPDT775KCg8YvJlMFxRaui6SsQuOhzt1CToG 4fwjoBVcjsr9mWGQ4SDIbwAcUjzrs1BnINqoB08pvo7HMvrJayk5ZlP+X/xAWDXR8u/9 maWxk37TMRW71sBn2rW2Hmmnu/Jc6sv/XsiW9sRIkgWYC7nXxi43BDmEJ/WIt/DZ8pY3 tmmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CD9yVN3+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68131-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68131-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id qi14-20020a17090b274e00b00298f6b0c4fdsi2432520pjb.74.2024.02.15.22.58.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:58:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68131-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CD9yVN3+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68131-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68131-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 16992B24020 for ; Fri, 16 Feb 2024 06:57:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FF29200C8; Fri, 16 Feb 2024 06:54:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CD9yVN3+" 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 B33D11EB4F for ; Fri, 16 Feb 2024 06:54:25 +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=1708066465; cv=none; b=W+hrX6t77Qwut/fZVPMXJlUY7WV4sERYum0DIKQoqEsEmvZ6VUiUspOt1mi46coW5lqVmRgWpu+/r6ieEiBjL6r9XiZCgrSmxzvU172UeuGj/BatLqCGoAx6TQPiffWRh4a7qS14jfVbqczhEqGl2V4J6QlJ6DWbvCtvOnpF/9U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066465; c=relaxed/simple; bh=guZaFSqSf3MqQt8V36466MzszKjuXHWltT0kqFLvhWY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UB8MW+S/9oQm2PPpLid9r7LDW3zExIuCAzDNfMlGX2vNDK/zHg4qSR36OJV3+3GvAC/didU7h0JPKkt/G+OF0XV2SIVQBhyCToSOeI6RU/nH5zWoBgaJIz8fC6Vaa6b3SzfP5PhFKgXFc8vKui65ZKws2mMOkTD78fCRRHEmkLw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CD9yVN3+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CF8CC433C7; Fri, 16 Feb 2024 06:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066465; bh=guZaFSqSf3MqQt8V36466MzszKjuXHWltT0kqFLvhWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CD9yVN3+t6Oxc4Su6jO9CPZk5HJwbk1hnn9GS0N9rM148G0KprQN5AW+JnV49jYzM Vy1se9Y35OI1KnxNf8NkYYyTMb1AP7/PAEe0d8Wt186IepDpbl2ApTLK4CXigB3mTe 5QJDpTfy6FvqP/w7B+wbF/I+v2b50yEclWqyQ1T2L1Dpo59qQu7k7jlI+XRU9br8X3 pco+MMsyC+qsoDJtNAp+Z2Ni5C/FOEqLgZZeB5JC3nuJ80Scwa7ig5Z3fGG1dOrPVb LHHjT4UoQWO4CxvjoIo6pT1s22I+pGeB/OWDTbqqYM46jxc8cUxRm+LfWLj3Ycs+rG d6XkQFoG5UK4A== 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 17/21] drm/i915: remove intel_gvt_event_info::policy Date: Fri, 16 Feb 2024 07:53:22 +0100 Message-ID: <20240216065326.6910-18-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037779144206835 X-GMAIL-MSGID: 1791037779144206835 intel_gvt_event_info::policy was never used since its addition in commit c8fe6a6811a7 (drm/i915/gvt: vGPU interrupt virtualization.). Drop it. 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/interrupt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/interrupt.h b/drivers/gpu/drm/i915/gvt/interrupt.h index e60ad476fe60..b1fd6ed4e34a 100644 --- a/drivers/gpu/drm/i915/gvt/interrupt.h +++ b/drivers/gpu/drm/i915/gvt/interrupt.h @@ -177,7 +177,6 @@ enum intel_gvt_irq_type { /* per-event information */ struct intel_gvt_event_info { int bit; /* map to register bit */ - int policy; /* forwarding policy */ struct intel_gvt_irq_info *info; /* register info */ gvt_event_virt_handler_t v_handler; /* for v_event */ }; From patchwork Fri Feb 16 06:53:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201957 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp339023dyb; Thu, 15 Feb 2024 22:57:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW3HM/5CdSY/2+9qtbV0xAiAEOgM4sCwdPySbqvvWwkiJ4yKbWsb/dJBaiZZa17p/LwTv3CoKgXfKMGqFAz1lMZN8YRSw== X-Google-Smtp-Source: AGHT+IFkcej7cY89Rv7NizA+aaQktABWNZIXTgx0XDTM+dT6ZHdjnYJ28pMGRL/wHkZ65bN63A5g X-Received: by 2002:a05:620a:530c:b0:786:5911:767a with SMTP id oo12-20020a05620a530c00b007865911767amr4401447qkn.26.1708066642768; Thu, 15 Feb 2024 22:57:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066642; cv=pass; d=google.com; s=arc-20160816; b=tIYlqub1uIlIWUBhW7nXFeJiC381Zs/y9vjVkkOQilEdFUM8IKfcrRJtanNutLBPBX pvMXKNnkmgGo0gvISzGk+pBDOwVbNrqZwd8AxuxkqYNDjMjtBxb1pSP70rXPDHr2Auar U7HF3G4i9KHPduADM0SoB5CizXXwWKX6HpDUK8B/1FtD4ntYQ4v2apaCEBu9EbcOtDDA oTwdgF+IWkBOfR007pEF7xrx6vZ6zI0oauFemdXvRvUOmcAjGLxlM/iAWeuKka8zQxrp sttFQbBqgJvI51Ld+Z/xgvl47nxEINU4ul04pbLPw0eNusg/gbJRVJnuJLH0m7pbaB6+ K1QQ== 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=SiWM5qIluQfoAffSqOm8qNt5QXNMn9TxT1v54TqHQeo=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=adzoNO1wdZR/Gc5CeQAQWHf961J1XQvtQedZu692tPOJvrxujx/Qe7niJZR9u28p4J hFQ3tLES4Qj/AEF7rpnqJZffZqLD3mKy7PX2tArJ4UhK5tYqV4X8l+nIokYO9C+x/10a YJKTLXPnjZfFfCRsXFHSd0VRr3fWDz5jtEFTZzG8ANqVc8Lxl1xtJwoWj4lfYuGr+9b5 YN/Rg2+C7ZFcgonmJYt7JhadcTOZgs0i2AuhYcT+1frWyzTplVXN/2m7eYmw7eJy7wWW 8kGm4W5bwp9pv3aJv6cxDzexlJc+tzE3iiXcUMmO/P3D36xJFrxX7ibUXZP8EaGZZHzL DHww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CJqCV8/y"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68132-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68132-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d24-20020a05620a205800b007873d74380esi1924537qka.330.2024.02.15.22.57.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:57:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68132-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CJqCV8/y"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68132-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68132-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8AB301C22685 for ; Fri, 16 Feb 2024 06:57:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4350E208A5; Fri, 16 Feb 2024 06:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CJqCV8/y" 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 A7668200D1 for ; Fri, 16 Feb 2024 06:54:28 +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=1708066468; cv=none; b=AJRv2XCiMqDQb4oC2VWsPb93QW9wCpdTW46P1NILTxZRQJlavPw7KsV+T1Ng5vGXA2xLXyxfQh/bkV8zYuTZzPf/v7YRsuLdajhXEcqx5ZySUxCLFE9+IEr/6cXPPZ3qBT2oZrNqYH928QF/fnUf+GpfhqivAqYbeZ/eQlb00dk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066468; c=relaxed/simple; bh=FdrONz3jqnEbBJVqtq1ykjLmdW7prwTBxhfQ4GglgTs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IWBpmtIIxdiIOtjzH7YLhFmZD3C57Z9YVbBCfbOtzoFspgztEaj/DM5LM4vVKG3FTJ63aAKQLjizYQ3keu2ci3jYFYkVzGhEh8cobcadVM3Ur9UQ4ZkvS3GgnIluMWyYSFP17RG03FXcgcL4t0cApKnyQxSZExovr4fWPX6yRp0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CJqCV8/y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39BF0C43390; Fri, 16 Feb 2024 06:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066468; bh=FdrONz3jqnEbBJVqtq1ykjLmdW7prwTBxhfQ4GglgTs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CJqCV8/yNzOiPeXngxMZCidOZ2fEeSBe7MNvGGeKcUAZcvCE9A7SQK+hJG4s9kfjw vXE2Uu77p1raT/HW+nbRV6hkej2H7N6zAg/8ZrC4Sr5o0SmceBZC+XJ46r7StE3KEl o6x6NeyQnKKBz3pCA/p8VXxhY0h1NeMQaSCF+EAbouvlthpTMewOWOvJSyKRJn/Eor typPJkEulN5DS6e3TeD/PgzkF0HgWDVUMwZSgSrCVIGg022tGWmbxmLsDqTzuD2rMb ATAlZwiezvB5qOdZivlJWHAyhb570/hY1KpCUnYsvGhb6ZgQFNCww1uqIAhtzN2ko9 BJG76DnQun4/Q== 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 18/21] drm/i915: remove intel_gvt_irq::pending_events Date: Fri, 16 Feb 2024 07:53:23 +0100 Message-ID: <20240216065326.6910-19-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037687906465041 X-GMAIL-MSGID: 1791037687906465041 intel_gvt_irq::pending_events was never used since its addition in commit c8fe6a6811a7 (drm/i915/gvt: vGPU interrupt virtualization.). Drop it. 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/interrupt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/interrupt.h b/drivers/gpu/drm/i915/gvt/interrupt.h index b1fd6ed4e34a..cd214be98668 100644 --- a/drivers/gpu/drm/i915/gvt/interrupt.h +++ b/drivers/gpu/drm/i915/gvt/interrupt.h @@ -187,7 +187,6 @@ struct intel_gvt_irq { struct intel_gvt_irq_info *info[INTEL_GVT_IRQ_INFO_MAX]; DECLARE_BITMAP(irq_info_bitmap, INTEL_GVT_IRQ_INFO_MAX); struct intel_gvt_event_info events[INTEL_GVT_EVENT_MAX]; - DECLARE_BITMAP(pending_events, INTEL_GVT_EVENT_MAX); struct intel_gvt_irq_map *irq_map; }; From patchwork Fri Feb 16 06:53:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201962 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp339484dyb; Thu, 15 Feb 2024 22:59:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUalMdR+u2PEsfsu0UR5WaZr+d+Wa+sEKLPKog5nSrGZ48iuswrvEAutfV69L9HDEekEIUqi1odDMg4TaDPu4L3O3U73g== X-Google-Smtp-Source: AGHT+IFu1qrxRsnDE+E2qqmmxd2ORf54hfR5qHCYu9JKsMbn5KK+MVVTlvs71f7KLBYg93Dv9Bn4 X-Received: by 2002:a05:6a21:3941:b0:1a0:86af:510b with SMTP id ac1-20020a056a21394100b001a086af510bmr1996488pzc.32.1708066751315; Thu, 15 Feb 2024 22:59:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066751; cv=pass; d=google.com; s=arc-20160816; b=o3myZKhIGBDRIsDZvgRFmuQ+m0fODYuU3Y5waBSqZM7s7yINqjRuTavLH5XF00s+cn caqb/IKphq4I+ZaxaGG51SZeyW0SKAnwg4SDcfxxf75ehVdJ8c6QVEC2tGut4CL56NPH +1+sS9YYLyTO8y3u3oNCSdMgJag9HH7XFftG7DlztmsQLVEz8QXnKSxsOH/g5RCL2+fg 7lNKHSE7MfKAwLAJ19nP5hVB0qyyKzzMswj7EaglgGyJbbDAiaW/vCyrXkFqwVXSbkmV XjFuNg6qqoquVRRHpEJEJVtKcS1oULe/zSmVXOEMfPneheDtr01KRRErshaj/0FPzdic 10Sg== 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=y0DxK8zVli4AdZIWBmFbmeXU3htV84RRx/ptH+S4pMA=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=GhZ6or8tmY0jdNZ9ryRyYExuDIfuAlQu0nsIW251gg9R1aEX5cTl2wNpR07W0fv24O aonMCiYNvNVs54UgtS7fYyy9OrUIG4wtpWR5uMv9j5zzrMvN7alOADXfCieMCKPsOQ7c 9l5DjTfsQmATl/q7ZcStgiXJSO90lSTVwxKyQsWShtoIdWr2nmvQBvhQeNYyVSGMadpg /fiLLbiMr9/gT+WZfxmRpxnDNxUAjaKcN4dWUjMUtNkJ70ScnI6uecP7Ac0sSu/Tj66m vwY7JYylI9FqgD02k9Zr4wrTwFBKm0peVmjg87uxIDY3M+iHgAifDlnng2skaQJpi0uo OEnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pvmJQd1o; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68133-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68133-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g16-20020aa79dd0000000b006dfde776206si2479712pfq.75.2024.02.15.22.59.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:59:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68133-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pvmJQd1o; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68133-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68133-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8AC42B2454D for ; Fri, 16 Feb 2024 06:57:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1FE7208C0; Fri, 16 Feb 2024 06:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pvmJQd1o" 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 72333208B8 for ; Fri, 16 Feb 2024 06:54:32 +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=1708066472; cv=none; b=aksIqCqki5PqUxR+kDHyGFioYqWvREtXtIaidlpA1eQjLlhSYWUXlwkfmft8HHfkr6ZvCvK30y3VDbpEoO/Bij2nnbCaK/uHUDIX31W48e+j8RCzyFr9xeXAkDP2G77QlP/SpclxyWGYDZ83j2eeNhO4PlfARaqdVSc9gB3tFbo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066472; c=relaxed/simple; bh=vDCO89h9ED/qo4wLWevCKElHpB2BcZotTCPZ1w3i9Jc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rxiGJ5a7XHWphyrsaMLWLGp3uMToMy564l7OIW/Wbny6d8ag7B1DjUgymV+R0EIiSrrmR2m2rYJ8niffNf6pyebYq39acFvh/zWHeVGQDD/kk+zBQlkT/vxbUnnONZxRLSUP1KN1LS8rySCVz/4+v2iYmc//CiPku/75Y0hPYng= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pvmJQd1o; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B58AC433F1; Fri, 16 Feb 2024 06:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066471; bh=vDCO89h9ED/qo4wLWevCKElHpB2BcZotTCPZ1w3i9Jc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pvmJQd1o5CPP9qPttQiY8V031wAlyPP80QwLnSBoz7mapvpDVmB0wq9pCsvT88IrX Iuta+sHkqfu1xh25oWlE98lwYiv6ag5ntxnwyRNEvLwru12wKB0SJUlIzc+dQCvtsy p9TyfWuQKHnJj756zzSkg7Tqv6NYshRSJ22ABSL3L98kvQlwW2Usnm0BJnp3WjBnrz nGPIXkqWsjtkR0TyHn5IyVseq9XEN3h7IrZ7YvurSZ6awet7/7Y9Jlb0xb6lAxvrX4 Dcigyiv139H7vp8DNQG7K5OwwaXijp+kQV1A/+ruD8H9e0q98RA+qk+NyC4ABkBNGm uugYm5JdvTBOw== 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 19/21] drm/i915: remove execute_cb::signal Date: Fri, 16 Feb 2024 07:53:24 +0100 Message-ID: <20240216065326.6910-20-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037801556786916 X-GMAIL-MSGID: 1791037801556786916 execute_cb::signal is not used since commit 5ac545b8b014 (drm/i915/request: Remove the hook from await_execution). Drop it. 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/i915_request.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c index f59081066a19..519e096c607c 100644 --- a/drivers/gpu/drm/i915/i915_request.c +++ b/drivers/gpu/drm/i915/i915_request.c @@ -52,7 +52,6 @@ struct execute_cb { struct irq_work work; struct i915_sw_fence *fence; - struct i915_request *signal; }; static struct kmem_cache *slab_requests; From patchwork Fri Feb 16 06:53:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201963 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp339525dyb; Thu, 15 Feb 2024 22:59:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVvpO0QjVkYcHB4rk59BjbN5ZQo4buul95CM3sG0fSVqh/fFjcauiHiqOu9du1saZ5HH6EHG4c8iwVD+TCQDt9xnZleWw== X-Google-Smtp-Source: AGHT+IE5rOMhKNeg18SZoCqPyBmmhh/+jvlYDAWAznpy1V8Qkue5hUkF4SKh/PvujqpgNPC8d0eB X-Received: by 2002:a17:902:c1cc:b0:1db:ad21:d834 with SMTP id c12-20020a170902c1cc00b001dbad21d834mr380108plc.10.1708066761810; Thu, 15 Feb 2024 22:59:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066761; cv=pass; d=google.com; s=arc-20160816; b=osvuUmVFPgaN8H5lS3JiBucr2OtNNPIacUOcOtrIUnlZOUkYXoafTvUWqOm0QW9STt FcfS+uAFyBfYEmrXpVay+UR8JWhiLbxlYofON4cP7rPEdAg5rLVbyL/fY7CHwGLXKicN F3Smb0VpmQfNPzgz1VKDN3IVXTlqfV5itNHaeQUyMnDXMcHiipFuqFiN5LIdej6gH8y3 jpLVXbfntcQNd0ybD1qORyMSx4TutCPURYZIN4hpX5lTtUCDWebMylaCHJQAM0G//AuY IJ5/sQguyizy2k0jw5spaCVstUbUoNclVnf+aeMzwDx4fd5XA96FoPefSDF8TD/8vrTX CQAQ== 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=eKWvJkvOVYp1WZAwRnItZuT5FXBB6hFy9j/VCE7H0V8=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=vZqo+rNoL221/QGDp5SeaQWm0J9O0RXe0TxhukVsCXVVhFFPoXH4T5PRub0Nxy9MhX Ii27H+4JcJk5rqkhQdVeMD2hyaxDPWfVVtWAxK4GNsQYxp7Yo/j4mfSUi7ag5m6rr4Cg QkDBTgphzz9GOjS0GixsvH1BIRafjGL0zKg+of7dmvTQf5FvvDYBMCeaIX59Rccvr23l xRfes8VUmEdYaxwLllbZz61GHqICdQRoJ/iF4qLrRNuQsOnUigT+TIS6stdOdsZe0LbF kzxLBYDbIHt3dhvCIBe6xvP31BinSghAwblEMhXxs7wwv+NeEm2wZ3urN+Enzn8870bJ +sdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bvbK5G7W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68134-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68134-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b2-20020a170902650200b001db895d759dsi2339664plk.298.2024.02.15.22.59.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:59:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68134-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bvbK5G7W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68134-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68134-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7BE50B24664 for ; Fri, 16 Feb 2024 06:57:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D43AF20DF0; Fri, 16 Feb 2024 06:54:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bvbK5G7W" 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 12C8920B0E for ; Fri, 16 Feb 2024 06:54:35 +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=1708066476; cv=none; b=FQ14NwA1R52r4zKbEa6lhG1qNtSjtV6Sd3lyoCsrsKGv4W+VUnl4nXdao9NNIM+RNg5n5e+601aoXabvgE3ln1kQeG6pqUOTA9FkHZZ3WfFaShkBCP4dJNaFWaDvWLnQfkILeDNap0kxuViz6ltWxL+kdMrgNoUwdc35UgbSILI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066476; c=relaxed/simple; bh=xZUGSW7pkokV4zLjCnd/mTKR/eQZWFNFZ3+e+td1jik=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n7m1Yu4Qf4Iw6UiEQzjyTI2lYcza338ZyoMtRDVJs1c1JpHJHMOMfZ8CwyQx3jjm643Wl98AsabCEOnDTWkz95KbP84csSCJ6IZNACkGCmwSNU/TyiyN0oMPDVlirgRRgqV6WZNJJfS0XNcDJNhgJPknbRmQdPT9SvLNizLo+2I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bvbK5G7W; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0B28C43390; Fri, 16 Feb 2024 06:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066475; bh=xZUGSW7pkokV4zLjCnd/mTKR/eQZWFNFZ3+e+td1jik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bvbK5G7WtJpIv0+P1LBfllzinl78UnS7HDCkgrkAygGGKuAR/29I82hegp9YHjajH Cv8tWzg5QpvUoZnq320Qk1pz2MrsXgsvoJ6I/Nfb3jIhVUdhbHuAyU0rYcZVokHmUU bsrcuCtwJbUabfZDKwDbYAgHHcBciD58mAuwUrhP8ZefsvoBmecQzDzFP4YY+pUlmo kNHUDzI4my+B9ziMkXSVZB/xu5UJ9g9w+omKiX7cqFuy4EKX5iuMu3DKTMg1x3dMBe SV0Qxg64gnQKK0SqxBKXQg26s3ZetKrwOMWRHEeQCrpvyNHYAg8EHb6fFaTQ3G1lmb pG3wpv4WdY1rw== 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 20/21] drm/i915: remove i915_vma::obj_hash Date: Fri, 16 Feb 2024 07:53:25 +0100 Message-ID: <20240216065326.6910-21-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037813196301274 X-GMAIL-MSGID: 1791037813196301274 i915_vma::obj_hash was never used since its addition in commit 4ff4b44cbb70 (drm/i915: Store a direct lookup from object handle to vma). Drop it. 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/i915_vma_types.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_vma_types.h b/drivers/gpu/drm/i915/i915_vma_types.h index 64472b7f0e77..559de74d0b11 100644 --- a/drivers/gpu/drm/i915/i915_vma_types.h +++ b/drivers/gpu/drm/i915/i915_vma_types.h @@ -290,7 +290,6 @@ struct i915_vma { struct list_head obj_link; /* Link in the object's VMA list */ struct rb_node obj_node; - struct hlist_node obj_hash; /** This vma's place in the eviction list */ struct list_head evict_link; From patchwork Fri Feb 16 06:53:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 201959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp339255dyb; Thu, 15 Feb 2024 22:58:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVEorXo/jrT6KymrrHUK8YX90UHPKe031gc8PXc2kD0qoUsSp0asFgsfqzSlgnGu+VRcU3r1NMnO0azYhiivMjO2wAR9Q== X-Google-Smtp-Source: AGHT+IEAzDUBcAG1reSt7iX2qkKmc68TWUyjTkhnuZ5U4bbmJfVdanG8s1aMfu1MWjyCqiM+R+2A X-Received: by 2002:a05:6358:5927:b0:17a:a774:93a3 with SMTP id g39-20020a056358592700b0017aa77493a3mr2920148rwf.15.1708066690620; Thu, 15 Feb 2024 22:58:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066690; cv=pass; d=google.com; s=arc-20160816; b=k9O5XZUXbBd1s/RMolELw0BOBvcuToJUSlDM0o+p8o27mnxuUgV6OQM/A4/fcbSiN9 vfimRs4cEZHzqVS+jsC3Ca546funfRWzyd3eBeY524pRYT5nEQkz02gYBmLBcBrCMQJh saKrnBDly3sbjmlcDMQvPcbA9v4cFhsyzAJpXBYJPIrDb6Lt39ZOvjKMjnDTdqsHNzWt 8KQ4+FUMrHbkhYcXn+6uGnsipC4K8qfIKi9qFaZSKV748QH4xgktItBL9koyL77hk1U9 D002XPG0dRee2OSf9RTXoA6sOkF/dntplgpTB/lfy/OIS4n1QVSatRkBOU3dPxuGNBP0 2usA== 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=D2G6HaOAQd/9QYkMmOss4Y++jwv013h/wOEW/6Wbqww=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=dSzkhZ2+TnkNFJSz7S23ocWaJpKEkPRIP9DQZCJyBtomC/lJcgQOUA2PmAGmNaS7J6 H+Cn6mF7IgpUEeBltWCweS0OBbkEyP8jVIbB/8qONR5gI6qcVYnkTc0OaWSsi61yd2m8 Dn+eoreb82aigZsbTxEK1zUtsK+2YkxDAE7gfNq9TwNczHpy3b4aCsqYbbu4qzWb2jEq wwzu+EctVItfyswmJ4gnHWglQpfRN4qFgUvIkPAc68Xe2z6IM8OioxLnSc0PW2jB0XUB wt8iQshgobYEArpbBTI/NCg5NG99upVjRyEOzshMlYlHHng8dtwB550CZlAkNUrbxPhs Z4mA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KkCk/EdX"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68135-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68135-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e15-20020aa7824f000000b006e03a9f39fdsi2459045pfn.190.2024.02.15.22.58.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:58:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68135-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KkCk/EdX"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68135-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68135-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 55B18282438 for ; Fri, 16 Feb 2024 06:57:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E71652137E; Fri, 16 Feb 2024 06:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KkCk/EdX" 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 4C01B20DE5 for ; Fri, 16 Feb 2024 06:54:39 +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=1708066479; cv=none; b=Y4LRoUpVV1/BxCuDUWKr1xgsAj6ZCw2ZqSnHq1ynblpyocPcSFDdSXDJQi1quGank10wgNAD7GoJ2vDlYk7Kkb6K2Xn8jz+u+xf74ecxnT22u8KcGbJae6HZdwHNw8uI1VuxliVOV5E7PWG8vJNwyrpyr5pNZ8G5UTtGcWDo2tI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066479; c=relaxed/simple; bh=Jq2+MsKda76OUscmqQ543pe72ImY+6RM/tfDpkyIMK8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cupkLw8ETIeRO/s01IZODzDHVc8lCCMBaLRmJHgmhwObW+muDKO4SZ2YqFdBGO+vPoIxb45aPkdvSRHiMj1ZAfWG0KR8HwX6hxdyQe6rEp5mgIvLdaAIbqB5jMYr181Hv3HPZBKSF6CYo7+8VpwYfzEH+pzwOSKQx+atyPdjZ/Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KkCk/EdX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57635C433F1; Fri, 16 Feb 2024 06:54:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066479; bh=Jq2+MsKda76OUscmqQ543pe72ImY+6RM/tfDpkyIMK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KkCk/EdXUalSl8XNMQmbSKUjLRJjlybaY/6DisldmRz2BqNd/KYBYSArzer+GxFYD gNFrHIYOIOhy6Gut4k1WJb7w0/8JVT8GsaoTmyF2Whf7YgHTxpsDuamgEwPaiEWNYj pfpbk5AF/DejlPXJWyYzgw+lt0kqZkb1gIhAx2Kp+CBF7wmSLZbSAnmAMyqcdHhHRy QK5Fwg0R+6vuD/uj+IoEvpJ9ZdsO/MRaUmNVQ63cE1V6O43+DQ7/93WqbppPszqVdf +PQbtvX9kacjomPPNYXau7JpYJ03BnzzfaZSVg4tP9sf4UyIbmOWn50SFraGbN8aXQ D5KLtC6WYJ4Aw== 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 21/21] drm/i915: remove intel_memory_region_ops::flags Date: Fri, 16 Feb 2024 07:53:26 +0100 Message-ID: <20240216065326.6910-22-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037738578895996 X-GMAIL-MSGID: 1791037738578895996 intel_memory_region_ops::flags was never used since its addition in commit 232a6ebae419 (drm/i915: introduce intel_memory_region). Drop it. 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/intel_memory_region.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_memory_region.h b/drivers/gpu/drm/i915/intel_memory_region.h index 40810cfb3fd9..8c927e303c4a 100644 --- a/drivers/gpu/drm/i915/intel_memory_region.h +++ b/drivers/gpu/drm/i915/intel_memory_region.h @@ -50,8 +50,6 @@ enum intel_region_id { for_each_if((mr) = (i915)->mm.regions[id]) struct intel_memory_region_ops { - unsigned int flags; - int (*init)(struct intel_memory_region *mem); int (*release)(struct intel_memory_region *mem);