From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9F4C6D3F07F for ; Wed, 28 Jan 2026 15:24:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1AF3710E2C7; Wed, 28 Jan 2026 15:24:02 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Y41BOaKW"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 702D510E2C7; Wed, 28 Jan 2026 15:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769613840; x=1801149840; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=xA/cLH3p3j7UsPePj5u+LBkikGeRVEePxWLy+SJODAk=; b=Y41BOaKWmU4BIUpi5icRnKLFLptBL9OVf19EQfRcYLpBqtyQ6dPk9Bj9 foN4axb86lqUfING3+VyEMs8IlQt3HKLvJosZ9nIGSS+EsKC5vqeUROR9 PODMLtVFaP2eN5rZ500cXNiKAS+LWEU4j8+qPKXjsFHy5FkDeXyHikF8k 6Vfqv0Pod103RH2UYXfHc49s5X+2SgUJXlb80dYPsSCCUrXw2XrWZ0vgD 9omHmbSZoHovu3c86TAkEcXePDRPMcZeJIg2Wj7pE9VV0IdWtfNyqmuHM V5fg2az6zm+5qYTCNYAAKRZos0VPOy6tX/yWG4iJTdo2zyMCPDDFyH9ST g==; X-CSE-ConnectionGUID: WEHcH+XESvqaWRpImfUD9g== X-CSE-MsgGUID: HSJJvIsoSMes0evomPCH3Q== X-IronPort-AV: E=McAfee;i="6800,10657,11685"; a="70546742" X-IronPort-AV: E=Sophos;i="6.21,258,1763452800"; d="scan'208";a="70546742" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2026 07:24:00 -0800 X-CSE-ConnectionGUID: ujyiKXTLQoWwg/FzKCQVMA== X-CSE-MsgGUID: a4l5P1gKQ8yqjSCXIm0q0A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,258,1763452800"; d="scan'208";a="212780268" Received: from ettammin-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.246.207]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2026 07:23:54 -0800 From: Jani Nikula To: Atharva Tiwari Cc: Atharva Tiwari , Ard Biesheuvel , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , David Airlie , Simona Vetter , Thomas Zimmermann , Javier Martinez Canillas , "Borislav Petkov (AMD)" , Lenny Szubowicz , Francesco Pompo , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 2/2] drm/i915/display: Disable display for iMac's In-Reply-To: <20260128145855.1071-3-atharvatiwarilinuxdev@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland References: <20260128145855.1071-1-atharvatiwarilinuxdev@gmail.com> <20260128145855.1071-3-atharvatiwarilinuxdev@gmail.com> Date: Wed, 28 Jan 2026 17:23:51 +0200 Message-ID: <26c4e0b7f9c25f405401288d13fc7e5097e9c7f5@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Wed, 28 Jan 2026, Atharva Tiwari wrote: > Disable display on iMacs, as they can't do link training > on the internal display. I'd expand on that a bit, based on the previous discussion. > > (tested on iMac20,1) > > Signed-off-by: Atharva Tiwari I can't test this, but if nobody chimes in to oppose, I'll take it. Reviewed-by: Jani Nikula > --- > .../gpu/drm/i915/display/intel_display_device.c | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/driver= s/gpu/drm/i915/display/intel_display_device.c > index 1170afaa8680..b1fec1018d7e 100644 > --- a/drivers/gpu/drm/i915/display/intel_display_device.c > +++ b/drivers/gpu/drm/i915/display/intel_display_device.c > @@ -3,6 +3,7 @@ > * Copyright =C2=A9 2023 Intel Corporation > */ >=20=20 > +#include > #include >=20=20 > #include > @@ -1435,7 +1436,18 @@ static bool has_no_display(struct pci_dev *pdev) > {} > }; >=20=20 > - return pci_match_id(ids, pdev); > + static const struct dmi_system_id dmi_ids[] =3D { > + { > + .ident =3D "Apple Inc. iMac", > + .matches =3D { > + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Apple Inc."), > + DMI_MATCH(DMI_PRODUCT_NAME, "iMac"), > + } > + }, > + {} > + }; > + > + return pci_match_id(ids, pdev) || dmi_check_system(dmi_ids); > } >=20=20 > #define INTEL_DISPLAY_DEVICE(_id, _desc) { .devid =3D (_id), .desc =3D (= _desc) } --=20 Jani Nikula, Intel