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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5234FC4707B for ; Sun, 14 Jan 2024 12:53:45 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOzz8-0005kV-TD; Sun, 14 Jan 2024 07:53:06 -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 1rOzz6-0005jy-JU; Sun, 14 Jan 2024 07:53:04 -0500 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOzz4-0008Fh-Go; Sun, 14 Jan 2024 07:53:04 -0500 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a28b1095064so876693666b.2; Sun, 14 Jan 2024 04:53:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705236779; x=1705841579; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Yk8tga08CrdY4DjvsNUPiKdZHs9Hwkb5uBqEnFn+viM=; b=l3LDwnlkh1nC2lkzp82wYRkkwjnIE18GxJ4ztDOORDo8CLJWh0nDkCBFuj+OB3Qyhq Jvl77L7I6y9SIw8PqLNgb8PKmE2VVRnG5gECdKX3GDHEMBOaYTVUcJyoEo6S20E+AvtS ZUcNp5fpNKxYmxy7JnRw8YY3mW8XcdET9AmkK040pXSF0i4VcC0CbZhECmDg2vJ8gVtC n7kOyuY4+bAT83V2YsY9P085Vq/CCM5uMW7Rvo+ImjV1dqPr0MpahexcKQ3HTZyyvoXC +JuwrOsObsxGvPAIka2b3m5rXn0oxQiAKYJGTKLSjtG/RYeE/3/CQdsDJXL46VyiUEpS 4guQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705236779; x=1705841579; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Yk8tga08CrdY4DjvsNUPiKdZHs9Hwkb5uBqEnFn+viM=; b=L8N7H6GfnUqOlPORWr4EqyIj9VjhxKDOSCLTpWxOMkSo3Ra7Prcj2qcQYdz8Y1BBEe O0WGUqyEP57YlOg2YX1QN5WdQYeil4P5WcIpmVfH7V9aeuuftnrzVNU5TxKNqWNO4aa6 rEjNbb296SciL8LS8oymuZqmkqBqfG0obhA9zkfGpooz8zTjjfDVx1iaS/qRGin6NTZY X4jSYr8mMW7CKmIAolmLfhHRj1KaNu8aF4AO6ET7lYZcDpfqNeqf8kNTo0PsAMWPdmFv 1IWbIUPcnwLF2b+8Bxqz8F4/pn5yHKxAGX3IqTeFc4NNYQWRgTGbAqVS4iwCpoRHl9Rw vmGg== X-Gm-Message-State: AOJu0Yy60NFwYoloYPGJZIDN2A8/lvZWa2A4SfrfjB9Dv3Wdiu23yNwa WxaGioWdIGuUoQbZP+Kvni27PDZRLXo= X-Google-Smtp-Source: AGHT+IGyWOfxo+c9x9eLu39QZPKfsDLQKmrlSKPnKGFiKTyK9qj4bsMdcUwJYUxBvNRsWtNdY/LdUw== X-Received: by 2002:a17:906:361a:b0:a2d:9c0e:ead5 with SMTP id q26-20020a170906361a00b00a2d9c0eead5mr141408ejb.117.1705236778883; Sun, 14 Jan 2024 04:52:58 -0800 (PST) Received: from [127.0.0.1] (dynamic-077-183-249-018.77.183.pool.telefonica.de. [77.183.249.18]) by smtp.gmail.com with ESMTPSA id w19-20020a17090652d300b00a2b091e93aesm4026460ejn.115.2024.01.14.04.52.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Jan 2024 04:52:58 -0800 (PST) Date: Sun, 14 Jan 2024 12:52:53 +0000 From: Bernhard Beschow To: qemu-devel@nongnu.org CC: Nicholas Piggin , qemu-block@nongnu.org, Sergio Lopez , =?ISO-8859-1?Q?Fr=E9d=E9ric_Barrat?= , =?ISO-8859-1?Q?C=E9dric_Le_Goater?= , Richard Henderson , qemu-ppc@nongnu.org, Artyom Tarasenko , Fabiano Rosas , =?ISO-8859-1?Q?Herv=E9_Poussineau?= , =?ISO-8859-1?Q?Philippe_Mathieu-Daud=E9?= , Hanna Reitz , Jiaxun Yang , John Snow , Thomas Huth , Peter Xu , Paolo Bonzini , Mark Cave-Ayland , Leonardo Bras , "Michael S. Tsirkin" , Eduardo Habkost , =?ISO-8859-1?Q?Marc-Andr=E9_Lureau?= , Marcel Apfelbaum , BALATON Zoltan , Aleksandar Rikalo , Kevin Wolf , David Hildenbrand Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v5_00/11=5D_hw/isa/vt82c686=3A_Implemen?= =?US-ASCII?Q?t_relocation_and_toggling_of_SuperI/O_functions?= In-Reply-To: <20240114123911.4877-1-shentey@gmail.com> References: <20240114123911.4877-1-shentey@gmail.com> Message-ID: <05B650FF-EA74-471D-B427-A0AC037423DF@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=shentey@gmail.com; helo=mail-ej1-x631.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, T_SCC_BODY_TEXT_LINE=-0.01 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Am 14=2E Januar 2024 12:39:00 UTC schrieb Bernhard Beschow : >This series implements relocation of the SuperI/O functions of the VIA so= uth > >bridges which resolves some FIXME's=2E It is part of my via-apollo-pro-13= 3t > >branch [1] which is an extension of bringing the VIA south bridges to the= PC > >machine [2]=2E This branch is able to run some real-world X86 BIOSes in t= he hope > >that it allows us to form a better understanding of the real vt82c686b de= vices=2E > >Implementing relocation and toggling of the SuperI/O functions is one ste= p to > >make these BIOSes run without error messages, so here we go=2E > > > >The series is structured as follows: Patches 1-3 prepare the TYPE_ISA_FDC= , > >TYPE_ISA_PARALLEL and TYPE_ISA_SERIAL to relocate and toggle (enable/disa= ble) > >themselves without breaking encapsulation of their respective device stat= es=2E > >This is achieved by moving the MemoryRegions and PortioLists from the dev= ice > >states into the encapsulating ISA devices since they will be relocated an= d > >toggled=2E > > > >Inspired by the memory API patches 4-6 add two convenience functions to t= he > >portio_list API to toggle and relocate portio lists=2E Patch 5 is a prepa= ration > >for that which removes some redundancies which otherwise had to be dealt = with > >during relocation=2E > > > >Patches 7-9 implement toggling and relocation for types TYPE_ISA_FDC, > >TYPE_ISA_PARALLEL and TYPE_ISA_SERIAL=2E Patch 10 prepares the pegasos2 m= achine > >which would end up with all SuperI/O functions disabled if no -bios argum= ent is > >given=2E Patch 11 finally implements the main feature which now relies on= > >firmware to configure the SuperI/O functions accordingly (except for pega= sos2)=2E > > > >v5: > >* Use cpu_physical_memory_write() in pegasos2 (Zoltan) > >* Use an int as for loop variable (Zoltan) > > > >v4: > >* Drop incomplete SuperI/O vmstate handling (Zoltan) > > > >v3: > >* Rework various commit messages (Zoltan) > >* Drop patch "hw/char/serial: Free struct SerialState from MemoryRegion" = > > (Zoltan) > >* Generalize wording in migration=2Erst to include portio_list API (Zolta= n) > > > >v2: > >* Improve commit messages (Zoltan) > >* Split pegasos2 from vt82c686 patch (Zoltan) > >* Avoid poking into device internals (Zoltan) > > > >Testing done: > >* `make check` > >* `make check-avocado` > >* Run MorphOS on pegasos2 with and without pegasos2=2Erom > >* Run Linux on amigaone > >* Run real-world BIOSes on via-apollo-pro-133t branch > >* Start rescue-yl on fuloong2e > > > >[1] https://github=2Ecom/shentok/qemu/tree/via-apollo-pro-133t > >[2] https://github=2Ecom/shentok/qemu/tree/pc-via > > > >Bernhard Beschow (11): > > hw/block/fdc-isa: Move portio_list from FDCtrl to FDCtrlISABus > > hw/block/fdc-sysbus: Move iomem from FDCtrl to FDCtrlSysBus > > hw/char/parallel: Move portio_list from ParallelState to > > ISAParallelState > > exec/ioport: Resolve redundant =2Ebase attribute in struct > > MemoryRegionPortio > > exec/ioport: Add portio_list_set_address() > > exec/ioport: Add portio_list_set_enabled() > > hw/block/fdc-isa: Implement relocation and enabling/disabling for > > TYPE_ISA_FDC > > hw/char/serial-isa: Implement relocation and enabling/disabling for > > TYPE_ISA_SERIAL > > hw/char/parallel-isa: Implement relocation and enabling/disabling for > > TYPE_ISA_PARALLEL > Ping for the above six patches=2E These are critical for this series and h= aven't had comments from maintainers for five iterations, so pardon for the= annoyance=2E Best regards, Bernhard > hw/ppc/pegasos2: Let pegasos2 machine configure SuperI/O functions > > hw/isa/vt82c686: Implement relocation and toggling of SuperI/O > > functions > > > > docs/devel/migration=2Erst | 6 ++-- > > hw/block/fdc-internal=2Eh | 4 --- > > include/exec/ioport=2Eh | 4 ++- > > include/hw/block/fdc=2Eh | 3 ++ > > include/hw/char/parallel-isa=2Eh | 5 +++ > > include/hw/char/parallel=2Eh | 2 -- > > include/hw/char/serial=2Eh | 2 ++ > > hw/block/fdc-isa=2Ec | 18 +++++++++- > > hw/block/fdc-sysbus=2Ec | 6 ++-- > > hw/char/parallel-isa=2Ec | 14 ++++++++ > > hw/char/parallel=2Ec | 2 +- > > hw/char/serial-isa=2Ec | 14 ++++++++ > > hw/isa/vt82c686=2Ec | 65 ++++++++++++++++++++++++++++------= > > hw/ppc/pegasos2=2Ec | 12 +++++++ > > system/ioport=2Ec | 41 +++++++++++++++++---- > > 15 files changed, 168 insertions(+), 30 deletions(-) > > > >-- > >2=2E43=2E0 > > >