Received: by 2002:a17:906:dac7:b0:886:babc:7eeb with SMTP id xi7csp2935802ejb; Sat, 11 Feb 2023 08:24:11 -0800 (PST) X-Google-Smtp-Source: AK7set+EcuaIUnjjiepZbVyUFFgZM8MTB5k2ay18mkqR5rDWL95caZpfzJhvrRSVGSrjvZn5eIZn X-Received: by 2002:a05:622a:1447:b0:3b8:6c80:c113 with SMTP id v7-20020a05622a144700b003b86c80c113mr35107718qtx.66.1676132651300; Sat, 11 Feb 2023 08:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676132651; cv=none; d=google.com; s=arc-20160816; b=rN6zPFZOYeIgfkfOh5bryVQEeJM0kqW9Ps73B7eA/d0yuPI6aCcNmZQh2sajCZtQs7 yfcvd48yC/+nTRufDnsFyr0ihU4W/OWX6rFcUGaT2s7FW5myin/NHOtFGd2WLZvSMAy/ YRgfWeeQI0lbFX5LzcFrxVDJ5fdd865G0rez0MhLueH92JyFV8SxIcP4QjKdAyfEOq6c t6IdTVLdVni7UfVgX2sM1Aqc5iIhCJT9u1EdHS8r5xsL0T3Ef8Glw0u0kNOViQ340jwA s8Mp6T5GCjpVvkjKbd6Yqi+8mxzv3Q4Afg5P8g08QwNZBuJpUw79LU8KtUx0Js/m9lWk 9p7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:references:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=e0LWcciV7eEwJQzvAUGSu/I7aDprqRhWVIotoi+Jf58=; b=yFIRErDDuoQY0nJ3Ff7xeOnMp4Gk+kjvyzzjsKAT1g3wEvwqezX1r3sm5HQVfCdmgD QmqgZKH8SozKDFm/frmxBQVUr1hfVvdog8f7EMmTzreGa8FKAbCt2KwnBYtTiWVvHo96 iUp5cFP0pdUoOfLrzFdIbKLlWEB3ZWLKJw7UNO8NARA7O6oWgVXnykojYEzNvTaLaVSv 5a5mSdK5Sw0RV0r3AMX7yt+3SmyGWzBouF4uRly8HyQ7vbUp6X5Bzeasy/+Y73fYLTBq g6gbZW55fg+jE0wxG4X7qpeemQr42h4zm/X0TRUP5e+tUH2WPb73FAkqm6uEy18MQnTu +Htg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WpQmci1D; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o5-20020a05622a008500b003b86a606052si5798939qtw.383.2023.02.11.08.24.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Feb 2023 08:24:11 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WpQmci1D; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQseq-00050r-MY; Sat, 11 Feb 2023 11:23:24 -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 1pQsep-0004zp-3H; Sat, 11 Feb 2023 11:23:23 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQsen-0008Gt-2G; Sat, 11 Feb 2023 11:23:22 -0500 Received: by mail-ed1-x52c.google.com with SMTP id s11so132647edd.10; Sat, 11 Feb 2023 08:23:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=e0LWcciV7eEwJQzvAUGSu/I7aDprqRhWVIotoi+Jf58=; b=WpQmci1DZASSYRo5et0YwcrXbU12hkdG04TxQZQ7ERoyOr4p53SuEKRjGCWIKVqB38 vYec+AaSzV50EUVT+EHGOc42V3nAWqG3b4vGQvdSQJFi0DMlpaYCb+RhRqF7ohBVLipf y2oNAnrDTnwOSnj+/cYl13ZoOEuap6tDlKmRiK0d80bf7pxjERwt8mjtUL9//Rjl0FX9 9ZdMcfyxfYuSG/kN7NHSR6KJ0qO4SKI/+CCGilvi2H/Zf82EkAuIaq2Ium8OGH9p2Kz8 I3zq0QZ6I/lqQtzYXEQfEGSv5Avt3jPhFEbUNmIpbfZToJ5L8JGxuNzI1CBRbQy63sm3 P5rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=e0LWcciV7eEwJQzvAUGSu/I7aDprqRhWVIotoi+Jf58=; b=WpSn1E5BuPHTyZPHNvBHeKHfHek8bFvBFH62/udZeKZMOMnFnbmMKOWO/Jx0XvGUGi wSQw1BBWoO4XDPTBF/gGLg2uNcgICQKX+1haZoLdghoQUjBNWUJHa0lvIdy8cYnQQNvW 7pT7OZ19Olf1mN/kDyvDcU+A9l/IM7DA6rd+Jaw367vDwwSMp8h03aRcNVo7Ec6hASDw 9a7v4K9eN8BZVDOJfNFL9ZSWr1g60nXnN4eXzm9cXkfrtUqcL8OYlcFh6mUduzI27Ibi o1qhkV+UHSBSRqz3lATopWka7VMPrXKtSCQ7AUDleISN9XRzWYrgVDNTEkAhcsoVdzv8 ej5A== X-Gm-Message-State: AO0yUKXAq22ntTn8N0e+yX5Yty4wTIucpdqzaeLJ1WkFVmbMG+oXPnos j1vWvMnRLcjKpniM/aBSzI4= X-Received: by 2002:a05:6402:268a:b0:4a3:43c1:843f with SMTP id w10-20020a056402268a00b004a343c1843fmr2356191edd.19.1676132595787; Sat, 11 Feb 2023 08:23:15 -0800 (PST) Received: from [127.0.0.1] (dynamic-089-014-099-074.89.14.pool.telefonica.de. [89.14.99.74]) by smtp.gmail.com with ESMTPSA id l7-20020a056402254700b0049dc0123f29sm3855872edb.61.2023.02.11.08.23.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Feb 2023 08:23:15 -0800 (PST) Date: Sat, 11 Feb 2023 16:23:10 +0000 From: Bernhard Beschow To: =?ISO-8859-1?Q?Philippe_Mathieu-Daud=E9?= , qemu-devel@nongnu.org CC: John G Johnson , Richard Henderson , Igor Mammedov , Elena Ufimtseva , Ani Sinha , Eduardo Habkost , Gerd Hoffmann , Jagannathan Raman , "Michael S. Tsirkin" , Paolo Bonzini , John Snow , Aurelien Jarno , qemu-ppc@nongnu.org, Jiaxun Yang , qemu-block@nongnu.org, Peter Maydell , =?ISO-8859-1?Q?Philippe_Mathieu-Daud=E9?= , Marcel Apfelbaum , qemu-arm@nongnu.org, =?ISO-8859-1?Q?Herv=E9_Poussineau?= Subject: Re: [PATCH v6 00/33] Consolidate PIIX south bridges In-Reply-To: <6f97d406-ff70-07b2-2477-c69420bff2a7@linaro.org> References: <20230109172347.1830-1-shentey@gmail.com> <211e791a-9d37-9655-ca93-9e3bda2e21c3@linaro.org> <6D8095E7-E540-4D7E-B976-D71522F8664A@gmail.com> <752135A6-44DC-4504-8E16-C2E71EC76872@gmail.com> <9578e7ca-5f3d-2d00-7288-16ae486fb8c0@linaro.org> <36BB4E64-8163-44BA-B622-8943E1C1DCE8@gmail.com> <50FA07E9-C8DA-4D6E-9A87-F40BB9C2D324@gmail.com> <6f97d406-ff70-07b2-2477-c69420bff2a7@linaro.org> Message-ID: <75F7CD0D-1E37-41FF-B938-75D625537C6F@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::52c; envelope-from=shentey@gmail.com; helo=mail-ed1-x52c.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 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+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: DR8yLiIOe5Nx Am 10=2E Februar 2023 17:11:06 UTC schrieb "Philippe Mathieu-Daud=C3=A9" <= philmd@linaro=2Eorg>: >On 10/2/23 17:27, Bernhard Beschow wrote: >>=20 >>=20 >> Am 23=2E Januar 2023 15:51:49 UTC schrieb Bernhard Beschow : >>>=20 >>>=20 >>> Am 23=2E Januar 2023 09:25:51 UTC schrieb "Philippe Mathieu-Daud=C3=A9= " : >>>> On 20/1/23 13:22, Bernhard Beschow wrote: >>>>> Am 13=2E Januar 2023 17:39:45 UTC schrieb Bernhard Beschow : >>>>>> Am 13=2E Januar 2023 08:46:53 UTC schrieb "Philippe Mathieu-Daud=C3= =A9" : >>>>>>> On 9/1/23 18:23, Bernhard Beschow wrote: >>>>>>>> This series consolidates the implementations of the PIIX3 and PII= X4 south >>>>>>>> bridges and is an extended version of [1]=2E The motivation is to= share as much >>>>>>>> code as possible and to bring both device models to feature parit= y such that >>>>>>>> perhaps PIIX4 can become a drop-in-replacement for PIIX3 in the p= c machine=2E This >>>>>>>> could resolve the "Frankenstein" PIIX4-PM problem in PIIX3 discus= sed on this >>>>>>>> list before=2E >>>>>>>=20 >>>>>>>> Bernhard Beschow (30): >>>>>>>> hw/pci/pci: Factor out pci_bus_map_irqs() from pci_bus_irqs(= ) >>>>>>>> hw/isa/piix3: Decouple INTx-to-LNKx routing which is board-s= pecific >>>>>>>> hw/isa/piix4: Decouple INTx-to-LNKx routing which is board-s= pecific >>>>>>>> hw/mips/Kconfig: Track Malta's PIIX dependencies via Kconfig >>>>>>>> hw/usb/hcd-uhci: Introduce TYPE_ defines for device models >>>>>>>> hw/intc/i8259: Make using the isa_pic singleton more type-sa= fe >>>>>>>> hw/intc/i8259: Introduce i8259 proxy TYPE_ISA_PIC >>>>>>>> hw/i386/pc: Create RTC controllers in south bridges >>>>>>>> hw/i386/pc: No need for rtc_state to be an out-parameter >>>>>>>> hw/i386/pc_piix: Allow for setting properties before realizi= ng PIIX3 >>>>>>>> south bridge >>>>>>>> hw/isa/piix3: Create USB controller in host device >>>>>>>> hw/isa/piix3: Create power management controller in host dev= ice >>>>>>>> hw/isa/piix3: Create TYPE_ISA_PIC in host device >>>>>>>> hw/isa/piix3: Create IDE controller in host device >>>>>>>> hw/isa/piix3: Wire up ACPI interrupt internally >>>>>>>> hw/isa/piix3: Resolve redundant PIIX_NUM_PIC_IRQS >>>>>>>> hw/isa/piix3: Rename pci_piix3_props for sharing with PIIX4 >>>>>>>> hw/isa/piix3: Rename piix3_reset() for sharing with PIIX4 >>>>>>>> hw/isa/piix3: Drop the "3" from PIIX base class >>>>>>>> hw/isa/piix4: Make PIIX4's ACPI and USB functions optional >>>>>>>> hw/isa/piix4: Remove unused inbound ISA interrupt lines >>>>>>>> hw/isa/piix4: Use TYPE_ISA_PIC device >>>>>>>> hw/isa/piix4: Reuse struct PIIXState from PIIX3 >>>>>>>> hw/isa/piix4: Rename reset control operations to match PIIX3 >>>>>>>> hw/isa/piix3: Merge hw/isa/piix4=2Ec >>>>>>>> hw/isa/piix: Harmonize names of reset control memory regions >>>>>>>> hw/isa/piix: Reuse PIIX3 base class' realize method in PIIX4 >>>>>>>> hw/isa/piix: Rename functions to be shared for interrupt tri= ggering >>>>>>>> hw/isa/piix: Consolidate IRQ triggering >>>>>>>> hw/isa/piix: Share PIIX3's base class with PIIX4 >>>>>>>>=20 >>>>>>>> Philippe Mathieu-Daud=C3=A9 (3): >>>>>>>> hw/mips/malta: Introduce PIIX4_PCI_DEVFN definition >>>>>>>> hw/mips/malta: Set PIIX4 IRQ routes in embedded bootloader >>>>>>>> hw/isa/piix4: Correct IRQRC[A:D] reset values >>>>>>>=20 >>>>>>> I'm queuing the first 10 patches for now to alleviate the size of = this >>>>>>> series, and I'll respin a v7 with the rest to avoid making you suf= fer >>>>>>> any longer :/ Thanks for insisting in this effort and I apologize = it >>>>>>> is taking me so long=2E=2E=2E >>>>>>=20 >>>>>> Okay=2E=2E=2E What's the further plan? Is there anything missing? >>>>>=20 >>>>> Ping >>>>=20 >>>> The plan is "I'll respin a v7 with the rest"=2E >>>=20 >>> I understood that part=2E I wonder what the blocking issue is/was=2E >>=20 >> The first part of this series contains piix3 changes such as the ISA pr= oxy pic and movement of rtc=2E This seems the riskier part of the series to= me which I'd like to get feedback on from the field rather sooner than lat= er=2E The reason is that I can't currently forsee how fast I could react if= these changes were merged during (soft) freeze=2E > >What bugs me is the i8259 proxy=2E I agree that it smells like a workaround for some problem elsewhere=2E The patch introducing the proxy to piix3 could be replaced by a patch movi= ng: - isa_bus_irqs() into piix3's realize method and - `piix3->pic =3D x86ms->gsi;` in front of the realize call of piix3=2E Would that work for you? I could respin then=2E A first test run with the pc machine seems promising=2E The Malta machine = would need similar treatment=2E Best regards, Bernhard >I applied your patches locally, and am >trying to rework to avoid using it=2E I amend a 'Co-developed-by' tag >to patches modified: >https://docs=2Ekernel=2Eorg/process/submitting-patches=2Ehtml#when-to-use= -acked-by-cc-and-co-developed-by >