From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web10.423.1675799729250449301 for ; Tue, 07 Feb 2023 11:55:29 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=pps06212021 header.b=qQ3uCw++; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=1402c89f96=bill.paul@windriver.com) Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 317IkAoc006912; Tue, 7 Feb 2023 19:55:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=PPS06212021; bh=pa1zAhhuW8cAlU9f+msHrd56bXVGgWJJRY+ahxO162s=; b=qQ3uCw++o4+0SYUxT2K2sqi0XPFNYvjmTmiO2BueQ7srKQRoqlLkDzd80FycTm+yYBNI 4ZdFxH7OKcyHZUX7CTyGNQ4kmmS4mIADdfjQejJ0kFHnRQO6AQqWAosdwOPj2rHTcFiB prakSw+Nb6jU1pO1upbfrccfxQDKxu7bb2VFXXbtz2SpGyiugOYR/HYz2mtPi9AvUPAy mK9/iU6OQ2rs6lS9V3kMv/L5027SgWoIBGUUF5LGET/WRlpmGd4eg1PEwokjMsq9FD87 sRSFdDFzyWzOnQIjUfUO5s1oi1o6mQ2BfuI3YpYEgUA9/P4domXOsCzH1wBMz+fgFJUi /A== Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3nhebab8w1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Feb 2023 19:55:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IypNBkllMnwyQduk5Ee0m188CtXpuAeMfaQKLr00th9S0cGgje9G/k7vNknmLKYQifeA1le0Ft4wZTCUJ/A+rYG83gzubwXIBh5m07X7ZL1fYMp+0TVnuvqsINEXwXzUQRgVUvH9CN2yIzK1ngB+6g4PsJnQFtp48tQ0dbxBPq5wKE5BFi/WD6kWWcuSh/N1Z37UijAaUebjl/87ml+TwGdm+cLWbcefEjXqFcMCoerDuPbktNZztx1Fx432+RFWsgmG/CPNEf2WZtTbzd6tP1IVI5T1Iz52PXelakEj8DZvcB8yzayDlp5IZGGFXNM0rX3W2trfrSPtYsfizwEvvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pa1zAhhuW8cAlU9f+msHrd56bXVGgWJJRY+ahxO162s=; b=QOWn9E8V2NfvBHYM5Jfte65J+ilmODdvv97NFKrFNpYv0AJEeUBpJB85RxjxR/8TFFoGwBxSRh6yeRUR14OhjkLgGGT2uaKHUAiuvAYiufKNn8rMw9UtsDjp6PKRz7Ed7Trp3PKna+Vda67M67tB4LxH2A05PGUUpsAqK0irxY+yHNrWL3i6FDGp+7ngRtoQaYwnUADBtfRoPSkur9v748fVbCz9tfrMVuvfkNq/JcNlpJm54ozUokUkXQ0lDoCkYYx3XfcXL6FDLHSRqK4X+XxoUbW32bCHj+PSSWYfrVWyh8twznDzxywSdhCoAcoIXeFeeTSFcwmP/Gp38QH89w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from CO1PR11MB4962.namprd11.prod.outlook.com (2603:10b6:303:99::23) by IA0PR11MB7814.namprd11.prod.outlook.com (2603:10b6:208:408::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34; Tue, 7 Feb 2023 19:55:25 +0000 Received: from CO1PR11MB4962.namprd11.prod.outlook.com ([fe80::ce2a:ef6b:bc63:1467]) by CO1PR11MB4962.namprd11.prod.outlook.com ([fe80::ce2a:ef6b:bc63:1467%9]) with mapi id 15.20.6064.036; Tue, 7 Feb 2023 19:55:25 +0000 From: "Paul, Bill" To: "devel@edk2.groups.io" , "devel@edk2.groups.io" , "alibanejad1376@gmail.com" Subject: Re: [edk2-devel] Graphic Output on qemu Thread-Topic: [edk2-devel] Graphic Output on qemu Thread-Index: AQHZOxI1C0JjclL/FkKfb/kK3d7vLK7D5hcA Date: Tue, 7 Feb 2023 19:55:25 +0000 Message-ID: <6558368.1D856uYhSO@core> References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO1PR11MB4962:EE_|IA0PR11MB7814:EE_ x-ms-office365-filtering-correlation-id: 32568309-fcfc-492c-e3c1-08db0945412e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Q5sto1d9LNJNNbiWmC5G+9e+g/uPpqOCOa+h8ylIAi2ASAfv0N9VSS3adC/AhY63D8ikiwhoqWe9sWdPqpj4SxiYuoYsGUzXZxbbI2ZX1rynLmYKszz4N7kiItwrGR6P4TlyUfs4RM+50WrgZNEDmFi4UDeKvFyEPQ8QRxnJczXlgdsCR6Ohl1zju67eB5uYy3mum7Z2MowMjCW7ycGhC7euYyHmt9VwhJYkFDCTBo+4VC4mEFDHiVrQxbOHTDMZPXhEihWEXAmvuOmRVRMq7UJk1gGeAlo0u725abizO2QKZbZ05nSNH0aVP4eI1ZvqSsIymZAIRelrRByirzh2qHd98sEOaMVVDWgZ+Ht0CSNaaE28D97p0HEy2SO4LDT4L7kw72FIdCZfv9l6+i0usCBLkAhkWE/x6JTINW20LZQdNUQCNX8bi0YoYxeqowDV1FnHfYCQBgpeu4q90bwVbka5TIOk3G9TCPqAX5k1U7pm3CKCijNeRySTmc49liAnn6sGHBkORZjBLpUwfZphSbg7etuscy4u85/q0X7qWki8S87l2qeru0lDBRGBAzOoeuxokrsHDkiUcN9YymaUkMD61G/7NKfep37y/WFx7VIY/rtwAYEL3dd0Z+SSXmY1unRFtQUUnBEIPQfB3qQhNDV9vFuzqZ3WBxr8dFaiEeOXMdyswncd7racB04rD/ydA09J+QYaNT0basVLkKoP6A== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4962.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(7916004)(4636009)(136003)(366004)(346002)(396003)(39850400004)(376002)(451199018)(71200400001)(316002)(478600001)(9686003)(6506007)(186003)(33716001)(110136005)(6512007)(26005)(40140700001)(6486002)(5660300002)(86362001)(122000001)(38100700002)(66946007)(38070700005)(83380400001)(2906002)(8676002)(76116006)(91956017)(64756008)(66556008)(8936002)(41300700001)(66476007)(66446008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Fcz0NJOiB/GA9138WlfLLe/aIJClTTzmzda+4PpGEQI3ikaohoxDEu29dY?= =?iso-8859-1?Q?OxZBqaI6HBlz5ZkumWusrYFUazL05OyhxCB9jVp8tVq3UTKseBJR6/si3L?= =?iso-8859-1?Q?BK7M84Hn6DH4d/NykobT/Fnn0lwQ4aLeIqg8TcFzgENdlBEMSSdmI/SFVk?= =?iso-8859-1?Q?VYzU8q82/icven/rovoP7PPhtz1qIQzTH1twf+agNuMiANc3dBhJkHZH9R?= =?iso-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H77NFBItgpqIx+dDFE1gK?= =?iso-8859-1?Q?O3pkGG3x1OxIHlP2cMxQ5jDz4oS8ja/kcsNfWxRSCapi5W79UywK9OeeZx?= =?iso-8859-1?Q?2NLN6Q7fco9b2gyIkQvqB0qDxw8pyAnHtA15XS3KFloSMymUVHpZkDy0Nk?= =?iso-8859-1?Q?St8iIBaOwK/ibov9TM9IM7fzIVcnDPsXBW0bMHQWA2EZzy004t+EuuvkIx?= =?iso-8859-1?Q?7wkVyXMQivfaalK8+NWUvo4PwF4XrO4p6P1SkRxVLoIyivu+RXXnwVVj3S?= =?iso-8859-1?Q?6MVdlCVVidMDXby7s2ULnbN3r6WyaQG64o/E9LUPDVWoS4G29psPnSRFWP?= =?iso-8859-1?Q?5sGE+eiqHIuQEn4hE/otC79T3zb/SrTkf+AMmrVPVGCTRtgfQP/ZHQNgSd?= =?iso-8859-1?Q?bmSJzflz6z4zN++CGQZD0ygNPSxYz3YlX8AbxKjsRHRPJYy7O2+yZC0DyH?= =?iso-8859-1?Q?CEFJnk3TprNn+KGbLnFgH8DEgQgOddzZsxM1s97wnf5I8vKHFPIZdng4Ki?= =?iso-8859-1?Q?GfQ57MHc5bUbPv1+dh8RSXW1bR+Ho1kygH8gzvlCGNLLPX8fZMvscrOQ?= =?iso-8859-1?Q?=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4962.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32568309-fcfc-492c-e3c1-08db0945412e X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Feb 2023 19:55:25.3573 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fmkYBu1Zx5P4U0deSwVPs04w7S4mDI9+OOQRjDZlNmsw0XO0q5q3Fa9e0S4po+e7pg15213TOmRmZ0sKPJCrOw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7814 X-Proofpoint-ORIG-GUID: H2dky8jKnwI4p6Uh8rqiMwoMn4lHJsRW X-Proofpoint-GUID: H2dky8jKnwI4p6Uh8rqiMwoMn4lHJsRW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-07_11,2023-02-06_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 phishscore=0 mlxlogscore=980 adultscore=0 impostorscore=0 suspectscore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302070175 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <3D3958BD8B7A034B9DB202F044855FFE@namprd11.prod.outlook.com> Content-Transfer-Encoding: quoted-printable Of all the gin joints in all the towns in all the world, Alireza Banejad ha= d=20 to walk into mine at 02:22:32 on Tuesday, 7 February 2023 and say: > Do not click links or open attachments unless you recognize the sender an= d > know the content is safe. Hello everyone, > I am trying to use the GOP library for my uefi development. But no matter > what code whenever i want to open the GOP handle RETURN_UNSUPPORTED is > returned. I think this may be a qemu problem as if it doesn't support the > GOP at all. This is how I run my qemu >=20 > qemu-system-x86_64 -bios $FIRMWARE -hda fat:rw:$DRIVE -global > isa-debugcon.iobase=3D0x402 -net none -debugcon file:debug2.log -machin= e > pc-q35-6.2 -device virtio-gpu >=20 > Should I add any specific options for the qemu command or should I just u= se > another lib for GOP on qemu? One question: when you launch QEMU, do you actually see a graphics window p= op=20 up with the Tianocore logo? If you press F2 as it launches, are you able to= =20 enter the setup menu? I'm trying to understand if QEMU/OVMF's graphics display is working all all= .=20 If it is, then in theory the GOP support should work. If I may suggest, omit the -device virtio-gpu option. In my experience, the= =20 OVMF firmware for Intel works with the QEMU built-in emulated VGA display=20 device. With the code I've written in the past, calling BS->LocateProtocol(= )=20 with the GOP GUID returns a valid handle. Once you have that, you should be= =20 able to use the GOP methods, e.g. GOP->Blt(). -Bill --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D -Bill Paul (510) 749-2329 | VxWorks Software Architect, wpaul@windriver.com | Master of Unix-Fu - Wind River Syste= ms =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D "I put a dollar in a change machine. Nothing changed." - George Carlin =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D