Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1020269pxb; Thu, 9 Sep 2021 18:11:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzixLXEx0sv50oJr3DzjF7gI0VfnBEGk5NOZOFCWIGm0CD3EOdSb1g3mw+CdqRePZy73/1K X-Received: by 2002:a92:4a10:: with SMTP id m16mr4558257ilf.91.1631236294710; Thu, 09 Sep 2021 18:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631236294; cv=none; d=google.com; s=arc-20160816; b=0PklsuqVtXA1Ya0EQ8OSB+dQu4aFlDBxX6fzSw485sIJ+hn+GxtUTntXoyOTJZdd7C aOOh88BwSwRzcEbp8+kT/PQWstKJkQpDkSSBjFOYyU6AQl0ufFOwFJcrFN6uMmBAqlM2 +jjLhOg/bVOW9rkosQox75sCGKZLxsDJvnfhbAlbKtOH/6qTz/Uz2t9xl8BtAxgnB4nU CPeElzEn2b+4uhY07DVd/+Y8i0PfLV75kOTl1tI1fhYvcm/SWzTdCCSrfy83SpDsB1Ym nbtuyFoTnaJQoPg8D4C9AK2kD5rnrx4QhHO6CY7yx7aS1URFfCNTbqME/fw+rC660d+9 sgGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=V6F7bdaXf2OKxaplYOc+J8bYBVsMAGw7SiKf5H6zkvY=; b=QpMSeXNG34n6WxAjPE1Hx91xixisozxV6dc6kIDaKzye9D0SrpU7f/brU+136E9oav dvJJAKq3Rq2475lPFD7xZnTxnDoywW1oV5qQE9nknlW3j46ndDpHSy8jYCifqtm/5L2h NTXn/f4ePj9gHUxuyTDT0G10UhxO3h3teo8T+K13vqwHtQubd3mwj9jdw5gUwqchDSEF MN29KonNo7uBTLHBixTaQEiiZKDesR/X8ME85lL868ugAxvFC7/yiZTVJ2ldvHDkz4ZQ CNIYHe/zGK2txHl3VglCYrbCcvf1gUO1scg6CicBTOjvZ2qDDxYRP8dnjd8LcFAo5eZU DbEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2021083001 header.b=UqI+VY9J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si4555142ilx.115.2021.09.09.18.11.23; Thu, 09 Sep 2021 18:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2021083001 header.b=UqI+VY9J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231699AbhIJBKb (ORCPT + 99 others); Thu, 9 Sep 2021 21:10:31 -0400 Received: from terminus.zytor.com ([198.137.202.136]:53617 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbhIJBIa (ORCPT ); Thu, 9 Sep 2021 21:08:30 -0400 Received: from tazenda.hos.anvin.org ([IPv6:2601:646:8600:3c70:7285:c2ff:fefb:fd4]) (authenticated bits=0) by mail.zytor.com (8.16.1/8.15.2) with ESMTPSA id 18A1729L277238 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 9 Sep 2021 18:07:08 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 18A1729L277238 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2021083001; t=1631236030; bh=V6F7bdaXf2OKxaplYOc+J8bYBVsMAGw7SiKf5H6zkvY=; h=From:To:Cc:Subject:Date:From; b=UqI+VY9J3gscDPibGFV+GaghgePB3g8ITCLAyDkkf7xFk6KRPA1sX9Tr3anudTCD5 2REygG/vPnLwhylBlCQuoMFPJ3ZoxcOB+H0XKK7jPKkqzlnCEQzCdqC1KYH/oX6NgV 96i6oWwzW1kpUv8X/kx01vvLYMVmCwCBtt7Vsb1h+ZiZla3Cfc7D/ke0U/I/1EJWEw DuIY4xVSQWWvKrd+lZGuJkFn+KZhUe5+0AKZe6qFOk3HsvgBzqGaJTDAYh2bEx0u5i bV3ewWGmA+C0IcriU0B341jt74JYOK+nSYi4smIFrpsdchw8XuC9duCtGO+WxAYgds Aw0kvtB3U7r1g== From: "H. Peter Anvin (Intel)" To: Gerd Hoffmann , David Airlie , Daniel Vetter Cc: virtualization@lists.linux-foundation.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, "H. Peter Anvin (Intel)" Subject: [PATCH] drm/bochs: add Bochs PCI ID for Simics model Date: Thu, 9 Sep 2021 18:06:55 -0700 Message-Id: <20210910010655.2356245-1-hpa@zytor.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Current (and older) Simics models for the Bochs VGA used the wrong PCI vendor ID (0x4321 instead of 0x1234). Although this can hopefully be fixed in the future, it is a problem for users of the current version, not the least because to update the device ID the BIOS has to be rebuilt in order to see BIOS output. Add support for the 4321:1111 device number in addition to the 1234:1111 one. Signed-off-by: H. Peter Anvin (Intel) --- drivers/gpu/drm/tiny/bochs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c index 73415fa9ae0f..2ce3bd903b70 100644 --- a/drivers/gpu/drm/tiny/bochs.c +++ b/drivers/gpu/drm/tiny/bochs.c @@ -63,6 +63,7 @@ MODULE_PARM_DESC(defy, "default y resolution"); enum bochs_types { BOCHS_QEMU_STDVGA, + BOCHS_SIMICS, BOCHS_UNKNOWN, }; @@ -695,6 +696,13 @@ static const struct pci_device_id bochs_pci_tbl[] = { .subdevice = PCI_ANY_ID, .driver_data = BOCHS_UNKNOWN, }, + { + .vendor = 0x4321, + .device = 0x1111, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .driver_data = BOCHS_SIMICS, + }, { /* end of list */ } }; -- 2.31.1