From nobody Wed Mar 23 13:39:13 2022 X-Original-To: freebsd-x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1509C1A2AFBF for ; Wed, 23 Mar 2022 13:39:18 +0000 (UTC) (envelope-from alexander.coers@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KNqFw2nVFz4Tmb for ; Wed, 23 Mar 2022 13:39:16 +0000 (UTC) (envelope-from alexander.coers@gmx.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1648042754; bh=7bRi74TauWFKAlXADfij19dSXhrjSQx8TsiDVLYYfds=; h=X-UI-Sender-Class:Subject:From:In-Reply-To:Date:Cc:References:To; b=VU3OIu3CCyr8SLtkjHio4T2P587rIwVAXmwo93f8MiFdy1AP6hgXsZRhUpR0D59QZ THNZH1l9tHzQi6vMWgRAokMgQGR5iZg5k2WJxghNRW4ZHBwTDyhum9RgbyBklueHpr VuVJL/XIX4ZK2h2z/kXzEpT/yX7oYNQoz7A26o3M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from smtpclient.apple ([91.9.234.35]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MLR1V-1nnrGc43Hv-00IYOx; Wed, 23 Mar 2022 14:39:14 +0100 Content-Type: text/plain; charset=utf-8 List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: Fixed virtual box driver (drm_v5.4.144_6), sort of From: Alexander Coers X-Priority: 3 (Normal) In-Reply-To: <728905678.132.1648028482165@mailrelay> Date: Wed, 23 Mar 2022 14:39:13 +0100 Cc: "freebsd-x11@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <6ADD603F-E8ED-4883-9E09-DD5FDEDBBB77@gmx.de> References: <50E4A7BF-A89A-4B66-9709-3AA247D52B83@gmx.de> <728905678.132.1648028482165@mailrelay> To: Ronald Klop X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Provags-ID: V03:K1:H4hAd41hc7M+7Z6jyAriK1JiTL+J3R1/X/MT5NDG60dqxgPcGB1 u5xIaL2fKt0Eharfz7Hri1VQTEjkY/GGMx4H60l4FbdzgfrbfOrv2/ZipnD6XVb3xZwvuTm U5Dws0f2OgJ6YSI69VA18UbS5dKpGn2ITiPMkoEvnT/Ix5qjx+Hv/U5Uj7pbJulgJw5wmcR 7Y4/UK3n096DHQGPNhynw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:HlRVeXeZBU8=:j5C9X/W7xI5uZJ8jLMA9of +sHQVmt9Ok4JjP1M19Fgbi/OKaSYS70BW13S2JBCeXEnczT302CpHukl/32ExD/3qBxX3ktmd ygapEvOOlq/8FqspvgnNzIsvClBZNC/Xovcx8KdkQ7cCZ2XY6O15HPP0MomAG6wONpKIG2slk Ar/5neTFIRVM5U1GdgIpB2fr2TtQsih+9m9R+cfBde9nLjcrd2dNpOFpJno9B1FWsdAKTxCq2 nAPEXSGs3jHzwYB5LgCYDSMizNMKc74pCKm5biqgvgwEPUUL+8GqTzxxQa6nGQehufa9NDxKk FI86eFDvl+Zy67fYNoUmpx5cLwUpme6psM6LTF40jzpyPPNgl3pDONUeVBDIAzKEJkbZ4ceOW ZEX30c6Cl3XHIzAzjrTXN9utmuGjTPviKGAJZ0wCR5G1REJIxVINlQVyHXdvyIAxFPMvrz9Sk PgBwf1f3Egv7qCDZ5JSUMSzFRVmxZeXPu49KFD2wSyuivZzFXSWRRGCwteI/PxxVaXh64kacR TO83MXN5KYZw8uronvpXFyr5U8bpAztxLRug/gdVHMugVqEV8CZe+dPfuF4chE4rur0yy/vw/ KCJy9IoqzsGSnUxZFXnEaDoeDf1881EC7NfJRKMZgboWTL4LMFQv8By1+NM1IyBDjbA7Hfv0I 4ZKDhV5QydjadKDwnzsX8dG1zpOEL5qIL7HCghP7Ow+yrKjKy17s/yQ2cx4KuiDo1OuZ5hF1k pYIyCdasejG7Pf7Ntnx3zWz8mop1kowDomj+VzM0rLCkypt1r/QvI8OIvy1uTbEJ6aOcmuaKy KJVFHeXpMCRSeE6Vr3RgE4HV32qjNnb9K9Z4NYb8uVsBZNRKouTSw74cmMkBksUGoXsLt64rr HqBE8FmQbZWWHr70PMOwMZb10ykE3GzLcTTEfry8Vk2uoI4xk0XDzjTnOqTOxeiIBO7bphqms ARbekrfrnpDXvb947ThKekRqy4V9gtUURkw4K9kGy42/xw4YW8KivrOAsCe2kBoEfaFxUjKff Ts/aMo7gSasvmlokZK+7/uFjwLZEWr/s2+5ACxky39rWMDkutf2MY7z/P1KTa0KG9nLMQQhWZ h85U4/35kiowEc= X-Rspamd-Queue-Id: 4KNqFw2nVFz4Tmb X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=VU3OIu3C; dmarc=pass (policy=none) header.from=gmx.de; spf=pass (mx1.freebsd.org: domain of alexander.coers@gmx.de designates 212.227.15.15 as permitted sender) smtp.mailfrom=alexander.coers@gmx.de X-Spamd-Result: default: False [-4.59 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:212.227.15.0/25:c]; FREEMAIL_FROM(0.00)[gmx.de]; DKIM_TRACE(0.00)[gmx.net:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.99)[-0.991]; DMARC_POLICY_ALLOW(-0.50)[gmx.de,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmx.de]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.15:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; RECEIVED_SPAMHAUS_PBL(0.00)[91.9.234.35:received]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.997]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_LOW(-1.00)[gmx.net:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-x11]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.15.15:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > Am 23.03.2022 um 10:41 schrieb Ronald Klop : >=20 > Van: Alexander Coers > Datum: zondag, 20 maart 2022 16:20 > Aan: "freebsd-x11@freebsd.org" > Onderwerp: Fixed virtual box driver (drm_v5.4.144_6), sort of >=20 > Hi everyone, >=20 > Since I wanted to know how all things are working out between FreeBSD, = DRM and Linux, I skimmed through the source and tested a lot with FBSD13 = running in Virtual Box 6.x on FBSD13 host. Now I fixed the Makefiles and = found the issue for the kernel panic which happens directly after = loading the vbox DRM driver. > Within X11 everything looks now okay, multiple monitors as well as = different resolutions work, but in the console there is still a bug = making it unusable: > You can=E2=80=99t see any output, the console is frozen. If you force = the repaint of the virtual machine window (moving other windows around = or open the =E2=80=9Eabout dialog=E2=80=9C of Virtual Box), the output = is drawn. So console works, but the framebuffer output seems to have = issues. > Do you have an idea where I could look to fix this issue? Is there any = more documentation on how DRM works? > Also, how should I provide the fix? Diff here in the list, or PR in = Github? >=20 > Best, > Alexander >=20 > =20 >=20 >=20 > Hi, >=20 > This sounds very promising. I think you can ask the maintainer of = VirtualBox how to proceed with this: vbox@FreeBSD.org. Or is the driver = not in the VirtualBox source. > See: https://www.freshports.org/emulators/virtualbox-ose/ >=20 > A possibility is to create a PR in https://bugs.freebsd.org/bugzilla/, = but I'm not authoritative in development of the virtualbox software on = FreeBSD. ;-) >=20 > Regards, > Ronald. > =20 Hi Ronald, the driver source is part of the drm-fbsd-kmod repo and the driver = behaves always the same on different host systems, like Windows, Linux = or FreeBSD. So I think the console issue needs to be fixed somewhere in = the drm source, but I have no clue about the inner workings, so any hint = or help would be appreciated. Best, Alexander