From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FBCB606A322 for ; Thu, 3 Dec 2026 23:59:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Rv6vQyqG Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 149B3112C85; Thu, 3 Dec 2026 23:59:04 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id E2F60112C70 for ; Thu, 3 Dec 2026 23:58:57 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 6AABE414C8; Thu, 3 Dec 2026 23:58:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B21D1F000C2; Thu, 3 Dec 2026 23:58:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796342337; bh=GB5kFDNeOCHNyu6YGud9FrcCwAIrptz45ghcuD6FSvo=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Rv6vQyqGr3dVwAEZZczB75C7H8TNKDQW9Px2KOiV3fI+JK/w0TNoWCPL7rp+/pCqk CP7nEBnbA8u0GqixEjFvO8Pk/onuNsqvn6mXKhSdgnHhZAt8sQ8rX6NtTqNQ0l1Y+u I0TiP8wwQNMjipEctmxR3VOkUvOQ54pfqZMbpEVTA41IKdLzXZPPsJAucfKEVQnmzh 0gwbrkEV4ODnQOntMLT+Z5CSclgSLGXHLbrC2LNTiQ/hlhxa7jUXCqv0wJyxEnD24P u1WzEGWW7NCxR8GUhXwJkbQo8KGLlKn1ZIVLFrPsNMga6FLpQn0f9k/lYWGtCfsl1R oajdwgNhIUQFA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] drm/xe: Add enable_media module parameter To: "Stuart Summers" Cc: intel-xe@lists.freedesktop.org In-Reply-To: <20261203232859.321380-5-stuart.summers@intel.com> References: <20261203232859.321380-4-stuart.summers@intel.com> <20261203232859.321380-5-stuart.summers@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 23:58:56 +0000 X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-xe" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] drm/xe: alloc_media_gt() suppresses Media GT disabled log on SR-IOV VFs -- commit 70b923e02e002693479f5778516b2b12abe532d5 Author: Stuart Summers drm/xe: Add enable_media module parameter This commit adds a tri-state enable_media module parameter and latches the combined modparam and configfs decision into xe->info.media_allowed during early probe. > diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c > index 3f61d3eec2e2c..4e464ba3bbee8 100644 > --- a/drivers/gpu/drm/xe/xe_pci.c > +++ b/drivers/gpu/drm/xe/xe_pci.c > @@ -652,7 +652,7 @@ static int read_gmdid(struct xe_device *xe, enum xe_g= mdid_type type, u32 *ver, u > int err; > =20 > /* Don't try to read media ver if media GT is not allowed */ > - if (type =3D=3D GMDID_MEDIA && !xe_configfs_media_gt_allowed(to_pci_de= v(xe->drm.dev))) { > + if (type =3D=3D GMDID_MEDIA && !xe_device_media_allowed(xe)) { > *ver =3D *revid =3D 0; > return 0; > } [ ... ] > @@ -962,13 +977,13 @@ static struct xe_gt *alloc_media_gt(struct xe_tile = *tile, > struct xe_device *xe =3D tile_to_xe(tile); > struct xe_gt *gt; > =20 > - if (!xe_configfs_media_gt_allowed(to_pci_dev(xe->drm.dev))) { > - xe_tile_info(tile, "Media GT disabled via configfs\n"); > + if (MEDIA_VER(xe) < 13 || !media_desc) > return NULL; > - } > =20 > - if (MEDIA_VER(xe) < 13 || !media_desc) > + if (!xe_device_media_allowed(xe)) { > + xe_tile_info(tile, "Media GT disabled\n"); > return NULL; > + } > =20 > gt =3D xe_gt_alloc(tile); > if (IS_ERR(gt)) [Severity: Low] Does reordering these checks suppress the "Media GT disabled" log message on SR-IOV VFs? When media is disallowed on a VF, read_gmdid() returns *ver =3D 0 for GMDID_MEDIA, leaving MEDIA_VER(xe) =3D=3D 0 and media_desc =3D=3D NULL. alloc_media_gt() then returns early before xe_tile_info(), so VF logs can no longer distinguish disabled media from hardware without a media GT. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203232859.3213= 80-4-stuart.summers@intel.com?part=3D1