Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 04A65C001B0 for ; Sun, 23 Jul 2023 04:43:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2B48F86823; Sun, 23 Jul 2023 06:42:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 3AE5C861BE; Sun, 23 Jul 2023 06:42:01 +0200 (CEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 644CA867F4 for ; Sun, 23 Jul 2023 06:41:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng@tinylab.org X-QQ-mid: bizesmtp84t1690087244tw005es2 Received: from ubuntu.. ( [111.196.130.174]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 23 Jul 2023 12:40:41 +0800 (CST) X-QQ-SSF: 01200000000000F0H000000A0000000 X-QQ-FEAT: 1zTQkmttJmdic6NKxK12XbwC+LI2lkejUYfyujMZA4Tq2n/MXGLQCwoGV7NT5 D2EXxSHIdPHQpFR89ShLZhTO+kRYdelimiuylZ/p45/SFSVNahIOwnSd2FoecWL0htbLhYo ozSbyGsUMMn7WOthk4uX9FbBuu4ywRzMsq6lgGcRCJ1/Aqu6nqyKFDhpmzN5gN1k+K4gsx2 3bznUrXPNiN+u6VihbgIgeNcUDB9I91AkFzwJp3wnooMe+KfxfYiFGX1Xen3jwfy7A9HgIu o3uD2/++GW8XSPBn8BeaQAiDsSKrgFNHfjXOWAe846Hg1kOd0SLiTbnbAV1HwTPDeTvIrAE wTUn7FEh+08g8FIf3Y= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 16943499372420742270 From: Bin Meng To: Simon Glass , u-boot@lists.denx.de Cc: Anatolij Gustschin , Bin Meng , Harald Seiler , Heinrich Schuchardt , Leo , Marek Vasut , Masahiro Yamada , Nikhil M Jain , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Patrick Delaunay , Rasmus Villemoes , Rick Chen , Stefan Roese Subject: [PATCH 00/18] video: bochs: Remove the x86 limitation Date: Sun, 23 Jul 2023 12:40:23 +0800 Message-Id: <20230723044041.1089804-1-bmeng@tinylab.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz7a-0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The Bochs VGA card emulated by QEMU does not enforce any architecture. It was first introduced on x86 and indeed the x86 IO instruction is used to access the legacy VGA IO ports, but that does not mean it has to be done like this. The first half of this series enhances the bochs video driver to remove the x86 limitation. The second half of this series enables bochs video as the output console for QEMU RISC-V, to prove that the bochs video driver can indeed work on a non-x86 architecture. To make it actually useful, enable a usb keyboard as well, otherwise we can't just type anything :-) This series is available at u-boot-x86/bochs for testing. Bin Meng (17): dm: video: Cosmetic style fix video: bochs: Drop inclusion of video: bochs: Drop the useless argument of bochs_vga_write() video: bochs: Avoid using IO instructions to access VGA IO port video: bochs: Remove the x86 dependency video: kconfig: Fix wrong text for the PCI default FB size video: kconfig: Drop the superfluous dependency video: kconfig: Set default FB size for Bochs video: bochs: Set the frame buffer size per configuration riscv: qemu: Enable Bochs video support console: kconfig: Drop the redundant VIDEO dependency console: Make stdio_print_current_devices() static console: Refactor stdio_print_current_devices() a little bit console: Print out complete stdio device list riscv: qemu: Enable PRE_CONSOLE_BUFFER riscv: qemu: Remove out-of-date "riscv,kernel-start" handling riscv: qemu: Enable usb keyboard as an input device Heinrich Schuchardt (1): riscv: define a cache line size for the generic CPU arch/riscv/cpu/generic/Kconfig | 1 + board/emulation/qemu-riscv/Kconfig | 13 ++++++++ board/emulation/qemu-riscv/qemu-riscv.c | 27 +++------------ common/Kconfig | 2 +- common/console.c | 44 ++++++++++++++++--------- doc/board/emulation/qemu-riscv.rst | 10 ++++++ drivers/video/Kconfig | 15 +++++---- drivers/video/bochs.c | 12 +++---- drivers/video/bochs.h | 7 ++-- drivers/video/video-uclass.c | 6 ++-- include/configs/qemu-riscv.h | 15 +++------ include/stdio_dev.h | 2 -- 12 files changed, 84 insertions(+), 70 deletions(-) -- 2.34.1