From nobody Fri Apr 4 00:05:42 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1733233118; cv=none; d=zohomail.com; s=zohoarc; b=Ga4j2F+maXe5JxXCasLt7kR6ZZxIYSn94lqYmaoaK7ud+tli8beJ+JroI+sykxhAkR4ybRhhs/xfudkGVN2Qp+46ys4GExJaj3R2cegUuJ29ENE1cp/pZFx+2yE77hsul8cFDd9IER08HdrHKVhyEKvQCnYhLJC0FoosMRjQ56I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1733233118; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ZjcHxmTcRcs6gnPDz+2J4eyjqpNf01UJzBW549ZcPYA=; b=kw7VrezI1YecZt+liTKnHmn6rrTJewWFEdStovwu7fgRwz2Gb/562x7z8dilknNmeA2zZ6s9ora8YVx4jyt4r9qt9bm54EqIcP3tTjgOODKlj1v0AaEpJ2x3k0zBW9Ck56jAdmP2NaAXt9vUfm4GK4EKG/7hcnHHTMybwrLImB8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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 lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1733233118015946.9990035839802; Tue, 3 Dec 2024 05:38:38 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIT4f-00081v-4Y; Tue, 03 Dec 2024 08:36:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIT4e-00081l-Al for qemu-devel@nongnu.org; Tue, 03 Dec 2024 08:36:20 -0500 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIT4c-0001Gg-S9 for qemu-devel@nongnu.org; Tue, 03 Dec 2024 08:36:20 -0500 Received: by mail-pf1-x442.google.com with SMTP id d2e1a72fcca58-7251ace8bc0so4567471b3a.0 for ; Tue, 03 Dec 2024 05:36:18 -0800 (PST) Received: from kotori-desktop.lan ([116.231.112.6]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-215810cf18esm44183975ad.242.2024.12.03.05.36.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2024 05:36:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733232977; x=1733837777; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZjcHxmTcRcs6gnPDz+2J4eyjqpNf01UJzBW549ZcPYA=; b=AqMeUzp5zEZLHNn7V9T9QjWq+lSCCzawjvgvRt4L7stq4J86onJPgM8sHS5jwdIqnp 9pZZeBjEnAU+KZIm8Pi51/4motMlfGRJboTA9yyiHmtO7GfAv8IU5YfCPPKnkstIORrr WzIbqJAjMNu9ORyfCkccou7dd1lVL1uasXx83u5x0u0Q+mpd7/MY+LpvmJ5818qDVO/P 8q3poSR4Qm8JZd3iZe8opSh9dFq911JMqZtoG8WULGnsx60eMKPfCispo9VTk771J8Bb kjr6j2v6c9KUqd8WSEvmJYpa3vMToSv/n4fe1yB4UsGyWCgpiQ7BP++RH7zGXUKz9JeJ 1ong== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733232977; x=1733837777; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZjcHxmTcRcs6gnPDz+2J4eyjqpNf01UJzBW549ZcPYA=; b=pTZXCjYlwsiajWn7QkKJtyyGSds4cbRV1NFeEH51BERPQ793ChF9qNXJgKgtfInSKA 3+dWpcfwBZU8xNwrHhflhLZWcHnBpcxkxboBNe3OcGSMkbZXm57nWzeprLwxhmpNk69H XHZIdW2dH5toWdP52UerY7HmO0s7aOlayaQZyALKGlVLyCXJGQbBS+MGbKMzfMwN5Uw+ 3/2NfLuO7/Yo2RByTKg6BBYXt7SlPZXNs4c5aAIRlWxJLtM/5E0yp23WVlk5NVJUoyPa HCDeGbZ3BSFIZUvhUIK8vAq/HXKu15btBnwWO7jUwJpDuyoCKB7Bx1DHw0CLL7fbFXk+ iMVw== X-Gm-Message-State: AOJu0Yx4LRT8NugX27Ga41cgIC6QvDxWfeNdFIDKxr4GDOfGysptAvVN FpHyu4zY5g6Xn24qst/cm5nFcoSsEXmmjuLGQQWDSOqjmIEjrAqa+tlQtMvHiw== X-Gm-Gg: ASbGncsoQzooYF+KvljnAOcjux9LztPV8qMZzDOUnzIrhzp3T4NTH4g10vyJ8zpQB5D e9RxTb4O7VUx/zqAsxvjXokBXdhUGIPNHEZhlbY51iO9o9I9PdorHla3siWixcdU/bCuqXTf8G3 2W4RXYdW0qviFyYMhqGYWCPOcoBx+porxyMGSqaN0eaAZf3tpPqIvvpD1xVyDyMhBSBFo9tPJMP 07vrpNwhR+VedA9YFx+eJdurcGOF0fGGSp9l583Ywl/XTB0bYqaKlV3JAg= X-Google-Smtp-Source: AGHT+IHLU8Qbd8COS32ppcZTd9Xilkw/vVDaxNE5+Jl9ZL2XC+XKBqCf2F2X2DjpP5bJvCnMut7peQ== X-Received: by 2002:a17:902:e746:b0:215:7136:f7e3 with SMTP id d9443c01a7336-2157136fb52mr209800245ad.19.1733232976853; Tue, 03 Dec 2024 05:36:16 -0800 (PST) From: Tomita Moeko To: qemu-devel@nongnu.org Cc: Alex Williamson , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , =?UTF-8?q?Corvin=20K=C3=B6hne?= , Tomita Moeko Subject: [PATCH v2 4/9] vfio/igd: add Gemini Lake and Comet Lake device ids Date: Tue, 3 Dec 2024 21:35:43 +0800 Message-ID: <20241203133548.38252-5-tomitamoeko@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241203133548.38252-1-tomitamoeko@gmail.com> References: <20241203133548.38252-1-tomitamoeko@gmail.com> 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=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::442; envelope-from=tomitamoeko@gmail.com; helo=mail-pf1-x442.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: 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 @gmail.com) X-ZM-MESSAGEID: 1733233119822116600 Content-Type: text/plain; charset="utf-8" Both Gemini Lake and Comet Lake are gen 9 devices. Many user reports on internet shows legacy mode of igd passthrough works as qemu treats them as gen 8 devices by default before e433f208973f ("vfio/igd: return an invalid generation for unknown devices"). Signed-off-by: Tomita Moeko Reviewed-by: Corvin K=C3=B6hne --- hw/vfio/igd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/vfio/igd.c b/hw/vfio/igd.c index b5bfdc6580..7f389de7ac 100644 --- a/hw/vfio/igd.c +++ b/hw/vfio/igd.c @@ -80,8 +80,10 @@ static int igd_gen(VFIOPCIDevice *vdev) case 0x2200: /* Cherryview */ return 8; case 0x1900: /* Skylake */ + case 0x3100: /* Gemini Lake */ case 0x5900: /* Kaby Lake */ case 0x3e00: /* Coffee Lake */ + case 0x9B00: /* Comet Lake */ return 9; case 0x4500: /* Elkhart Lake */ return 11; --=20 2.45.2