From nobody Sat Sep 26 21:37:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1787659147; cv=none; d=zohomail.com; s=zohoarc; b=Ikd/xgBvGiEwSaE4Pt4p21GZLodIo+uOvhvrFqLOwUJjz7ly1aTQ8lCyn9rbeV7ly8M9dFTW0niCape8LuZD9PfKEcig5xyMxgP65sDqFsIQ8hcuF7lOpKImTfGXhu5FaMxD2uVL718nU/3jDJO1myZMXHZxX828VtC8Kcjmyvs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1787659147; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Vu40Jvj4DTe3lsTrp1mJOcnMme/A7Nuvzxz5WcZyXKM=; b=DBI3mYCAtD2ypRpFTJLqy/X+yVnY1O33w5nfHRGJZmZ2tFxmqM9x/PE3QtItqAXfwomrivUpujZcu2uS1D9CrTHHWjVJhBIn9uHY97BMsZaxWfG/q+oo4D4RX/RsE7QhIUI5f8L8I3TAarfFE/qrXpDOZ/6D4uA0UH9ACE15mCM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1787659147643933.0887682367126; Tue, 25 Aug 2026 04:59:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wypn4-000490-49; Tue, 25 Aug 2026 07:58:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wyn5I-0008GW-KV for qemu-devel@nongnu.org; Tue, 25 Aug 2026 05:04:44 -0400 Received: from mgamail.intel.com ([198.175.65.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wyn5H-0003NQ-22 for qemu-devel@nongnu.org; Tue, 25 Aug 2026 05:04:44 -0400 Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2026 02:04:40 -0700 Received: from qat-wangyuan-17e.sh.intel.com ([10.239.92.81]) by fmviesa003.fm.intel.com with ESMTP; 25 Aug 2026 02:04:38 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787648684; x=1819184684; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IRospQUnhQ5VlCdPiqzdzA8GrVNZTBQfRJl7Pzsv5LY=; b=Xp0MS7fJa+tDzir6BpR/2aFU05PQN2iWrBVs8SCFfZVGW41eGSl+mSgh LnX9l5X7ALtYfnJJ/fZ5dnecSsetTVTP2++pxwzQ2hvNSIphQeQmNEodZ f65OxD55AYON6N4Q65wI95HyJJfGfNRiiu7UmWO0WYE2xw9cTsIUu9G8L wemiQouZxlVFLH0tBBx8GI2JOCSf1rz0g+jUL7ol18SQJkUm6YbkABgvj OwVCRD7tFSkM5vkFuhx6DXZKJJhIqcTai6JgGWMJXnxjU4+Owox1lCzs1 mDydi9DhyChS/h9FW7Oi4P1yJ8Y8euf9Q8E0QtI+4q2fw6AZwuHOKsRsB Q==; X-CSE-ConnectionGUID: 078963zCTOOtQDcOoOAd3w== X-CSE-MsgGUID: NwfijpfgTw+j0H+XbGR1AA== X-IronPort-AV: E=McAfee;i="6800,10657,11885"; a="88128061" X-IronPort-AV: E=Sophos;i="6.25,242,1779174000"; d="scan'208";a="88128061" X-CSE-ConnectionGUID: 0MnKJLNIRWOogCb/kQC/dg== X-CSE-MsgGUID: CeNaN+1nSa+EtC/EycT3lw== X-ExtLoop1: 1 From: Yuan Wang To: qemu-devel@nongnu.org Cc: alex@shazbot.org, clg@redhat.com, tomitamoeko@gmail.com, Yuan Wang Subject: [PATCH v2] vfio/igd: Add device ID support for Meteor Lake and Arrow Lake Date: Tue, 25 Aug 2026 17:04:35 +0800 Message-Id: <20260825090435.1492485-1-yuan1.wang@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=198.175.65.17; envelope-from=yuan1.wang@intel.com; helo=mgamail.intel.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 25 Aug 2026 07:58:04 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1787659150264158500 Content-Type: text/plain; charset="utf-8" Currently, igd_gen() does not include the PCI device IDs for Meteor Lake and Arrow Lake platforms, causing it to return -1 for these GPUs. As a result, QEMU calculates the stolen memory size as 0 and exposes a zero-sized 'etc/igd-bdsm-size' entry via fw_cfg. When OVMF boots, IgdAssignmentDxe fails validation on the zero BDSM size and aborts without programming the ASLS register. Consequently, the guest Intel GOP driver fails to locate and read the OpRegion (ASLS remains 0x0). Add the device ID prefixes (0x7D00 and 0xB600) to igd_gen() as Gen 12 so that stolen memory is correctly determined, allowing OVMF to properly initialize the OpRegion and BDSM for the Intel GOP driver. Signed-off-by: Yuan Wang Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Tomita Moeko --- v2: - Resending because the v1 patch was sent with an incorrect future=20 system timestamp due to an unsynchronized local clock. No code changes. --- hw/vfio/igd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/vfio/igd.c b/hw/vfio/igd.c index 413a49aae9..a0b6b34d81 100644 --- a/hw/vfio/igd.c +++ b/hw/vfio/igd.c @@ -96,6 +96,8 @@ static int igd_gen(VFIOPCIDevice *vdev) case 0x4C00: /* Rocket Lake */ case 0x4600: /* Alder Lake */ case 0xA700: /* Raptor Lake */ + case 0x7D00: /* Meteor Lake / Arrow Lake */ + case 0xB600: /* Arrow Lake */ return 12; } =20 --=20 2.34.1