From patchwork Wed Feb 7 09:12:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 770634 Delivered-To: patch@linaro.org Received: by 2002:a5d:40c1:0:b0:33b:4db1:f5b3 with SMTP id b1csp212692wrq; Wed, 7 Feb 2024 01:13:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6jfp1NxEJ5saI3/OrLQd5jhO9GyFbVAtO33g3YpggWQgiPHeMdEqg3duFGyIO8IFuMJbu X-Received: by 2002:ae9:f714:0:b0:785:8aa8:f3ba with SMTP id s20-20020ae9f714000000b007858aa8f3bamr5009140qkg.54.1707297232418; Wed, 07 Feb 2024 01:13:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707297232; cv=none; d=google.com; s=arc-20160816; b=Ow+j/FiwUlSsliELeAAUwj1VQvF8ndTDem0xN3CEZ94uEQP7SoQeNlpnqPHFq7pEne uLF/WWtCgnYM27ZEzICdcFYXIr6gZrtYZppTMrzhccgvQ3wofx386hPjOuTbkEVd5HLN dtHYfl8zOW9Usjjf7hC+V+zJpP+fQtPGj2SOg0LrxVLkrBqSJUd1eENT4pStikwCJK2c pGMiZjzRfLqnWzWMDS1GPIPZDxl8Nf1Ig9IOk+NpjA5EOzrYFDjOSmatyoTFr5MEN3bU TaPQ5e2bej86xqBSZo2eLbgURPh1nzCUvvD+TYIWn1sEkdPNUQsUHQz2XUmhB+z7dhko yUwQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qdGMcRfsmtGhYej/iom74nzzoWRpqiyUHpcA+be6vSE=; fh=34LGA38jEUEacykIdb9/VMuggTcGW5Bdw7XKkQvXMQc=; b=R8wL9n5tTKmRSKwOtzsJDcR/jhgOxchQWPYxbAS8KaE3tnWU1tSTwGS947WmUXYVKU QjPfM/L2Vjlr47znBaFIiPTKuSjRpWryb49Y7OzHZ2MTx9A3F71Iho2gaY3Cp1C/uJKY 9qODwaHBdjX3I86QvlO44PUIrZSCREfHDcQmoe54FfoNqSsVhlFOye0WkhGnTK6NVfgP c3FHWD0p3udFfrJwFwKu9dr4tHC+OR2XjG/47SNLvHDOWGODlZr0w2n/HS+vzim4BegD ed30q2uFPWSSW7KC8z/rIzPqTIRz723j9X87sOEX9bPpSFyLN41nDpY1B5uCRStpm/kE cTKw==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IVDfq4qg; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUdVdojKJ7KWQibNiCgTIM/vshfD3HMpzv0kYRS+b5aUpkO6/omGY9ySPWqYILlnJJSzO3gzevJ/K6GekT9jvCs Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bm38-20020a05620a19a600b007858b5fdc82si725447qkb.377.2024.02.07.01.13.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2024 01:13:52 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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=@linaro.org header.s=google header.b=IVDfq4qg; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXdzU-0005Ly-Ul; Wed, 07 Feb 2024 04:13:12 -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 1rXdzP-0005HQ-5k for qemu-devel@nongnu.org; Wed, 07 Feb 2024 04:13:07 -0500 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXdzN-0008Gh-Do for qemu-devel@nongnu.org; Wed, 07 Feb 2024 04:13:06 -0500 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-55790581457so486103a12.3 for ; Wed, 07 Feb 2024 01:13:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707297183; x=1707901983; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qdGMcRfsmtGhYej/iom74nzzoWRpqiyUHpcA+be6vSE=; b=IVDfq4qgANHftUYI4IjFXArSeiMJib04Q556HO5bX6ihQrqMCYmuO0G/I9WXl5j2b/ NvcWChN/HbAzbh/ue4guOoAV9Jv1M//bcScX9xVcv0nuzLsKJ7E58R4U6QnWK03tEKLM pic89958dgUBL1e3WQrUoyJSYQcQFZTI7+T8R1VeTALHKDHOMotrkcR6GyV9x+Bf8Fxd 9gaHkX1jqkK0M1ClNFcZTaskch7F//hboYP9VDa5zZbBp1bi8tgr4fV8F7S3AyYOVcHI nM4gXMj+ItRCtVTP/7SRw4Lzy5cAwMmgecjw4Qf3AvBuyMAwF7PQeuj2z3mED3wu/CId tSmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707297183; x=1707901983; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qdGMcRfsmtGhYej/iom74nzzoWRpqiyUHpcA+be6vSE=; b=errFbp4i3DCQC9THQ1BgQyAUVb5SJnlQUZUn8IeZwEF5TiQtxk1EVW8FkGGHWSeiMc Bq7XQ73qcl9XHKays+qj0+M/jwTpulQC8Dy+yY3w0i1CSn1q+LRrdantfmeVjCGhVZlH X7o2jSz+w1yabZX0As7RtiTHyMlwvK++L/QDzJLMP08F9NrWS5BjO8VKK3l0ss7dCrTS zL6k8iD0umBzx9dQBOXGLM2K5bJjiUMN7gd1+Y3Y+9mf0MpB94uMXuxUyr7UHkxVJ71B 4G/6YfJ4lqb3+gaCjqp+/Waw/neg01FQSy/IPLFpEY4BkoEuvamZT8SDbJt4ouelVie7 pbug== X-Gm-Message-State: AOJu0YzUm7/XwcSKZH0HdfR706wga6pjVF9EkMEvgUA5dLW17rhb/Mc7 dkTUwFuA+Dm0zTkUnN75l5pCGjFSXxo7zsSamLBPPC5YdLR2bSSLntF+oIum1hJsLEyA6RNqtLz Y X-Received: by 2002:a17:907:960b:b0:a35:edda:ca8b with SMTP id gb11-20020a170907960b00b00a35eddaca8bmr4708718ejc.76.1707297183122; Wed, 07 Feb 2024 01:13:03 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXhd8ty0xLb2MwePx3PI+ojZX59wy9omw5on58bLRU/8WU+LeSOzP2u9ncHSm8CAzzEaYadlcg4wp+llFfEXreWmSeMXzYXRob2ssp1X0g/zfIaivRfBx9QdJjfG2wGd/e9sJ5kEnjAemK5ceEoEz7Aorq0Rb6vA4twDlIaBHg0ckgu8LS33HA+y+vX88l49qLueW3yRKRHIjpoe6dn+ViapySSg29wgMikSY1uCyNGRJvBv2A9YC8= Received: from m1x-phil.lan ([176.176.170.22]) by smtp.gmail.com with ESMTPSA id w24-20020a17090652d800b00a3738c18c9csm528627ejn.178.2024.02.07.01.13.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 07 Feb 2024 01:13:02 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Nicholas Piggin , BALATON Zoltan , qemu-ppc@nongnu.org, =?utf-8?q?C=C3=A9?= =?utf-8?q?dric_Le_Goater?= , Paolo Bonzini , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= Subject: [PATCH v2 1/4] hw/ppc/ppc4xx_pci: Remove unused "hw/ppc/ppc.h" header Date: Wed, 7 Feb 2024 10:12:51 +0100 Message-ID: <20240207091254.1478-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240207091254.1478-1-philmd@linaro.org> References: <20240207091254.1478-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=philmd@linaro.org; helo=mail-ed1-x535.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: BALATON Zoltan Message-Id: <20231011132427.65001-2-philmd@linaro.org> Reviewed-by: Thomas Huth --- hw/ppc/ppc440_pcix.c | 1 - hw/ppc/ppc4xx_pci.c | 1 - 2 files changed, 2 deletions(-) diff --git a/hw/ppc/ppc440_pcix.c b/hw/ppc/ppc440_pcix.c index df4ee374d0..d84418cb7b 100644 --- a/hw/ppc/ppc440_pcix.c +++ b/hw/ppc/ppc440_pcix.c @@ -25,7 +25,6 @@ #include "qemu/module.h" #include "qemu/units.h" #include "hw/irq.h" -#include "hw/ppc/ppc.h" #include "hw/ppc/ppc4xx.h" #include "hw/pci/pci_device.h" #include "hw/pci/pci_host.h" diff --git a/hw/ppc/ppc4xx_pci.c b/hw/ppc/ppc4xx_pci.c index 0a07aab5d1..e4101398c9 100644 --- a/hw/ppc/ppc4xx_pci.c +++ b/hw/ppc/ppc4xx_pci.c @@ -24,7 +24,6 @@ #include "qemu/osdep.h" #include "qemu/log.h" #include "hw/irq.h" -#include "hw/ppc/ppc.h" #include "hw/ppc/ppc4xx.h" #include "migration/vmstate.h" #include "qemu/module.h" From patchwork Wed Feb 7 09:12:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 770636 Delivered-To: patch@linaro.org Received: by 2002:a5d:40c1:0:b0:33b:4db1:f5b3 with SMTP id b1csp212733wrq; Wed, 7 Feb 2024 01:14:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfp+ZdRRGm0Il58eXwN4cDQkgoUTeduxv/CraWECVmcSNZUJVNtXqlSQQM4CwkD1ok1ZiL X-Received: by 2002:a05:620a:844:b0:785:53af:2899 with SMTP id u4-20020a05620a084400b0078553af2899mr4932959qku.60.1707297240242; Wed, 07 Feb 2024 01:14:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707297240; cv=none; d=google.com; s=arc-20160816; b=BzVdExyVnjIvAHxoFa6A27JTervbfbp9rXpWbK2WoXdO51P0ALNjP6r7S0z4WIx+b/ XCNMTFrA6/7nTQmL2Jo/ULeB5perWASRfO4gJv4TbkFSKXfneZ58mxPNlj0VgG7nDQkB Z8nCKzFjVpsWIC8XzIXaqg5rjHahvCLgMyTvzk9frB35SbRys+R+i4PFnK1rQ3258CaE vLj+Q5kSjUZogPy8UgNI216GNnZYbhJlIsvrkMw0RYZrrUER5nLTCjzRcbl2LC94kDez s3GKZahqFu/mIrhYFVWN05SFTe1UMzJjYo6LlfEau/C8cEvhenN8kuIqutXkNcnzrOeO lIkg== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yytOM426lSRQ7TkKcf1G+JiJxoGr/F3Uafxb01Uxm28=; fh=ZmVQKJtugXfLBKYNIq8jpA3+Gnn+/5EpBt6LVsSLt28=; b=nS5VZVAYTaiA5zOyTXGQDs0jlM8SU+TGn4pe6J2GGIwoeIiCRJLSyaHnJVv4jysAeA oisRx/4IA0q7Y7bYDqDXSEOffyHMh4NaRyB1FheR48NutxHbjrUbZ8/j9MdRx5O6wV+J M0ab25L5axplPrKTcuDZRIlh7w0rKldhwDAYhwyUbrdsMa4JabLVzYcuc4a7DW8eB/V+ ycXhfOeiyFkF9/gXagrHEKU0mauwXDm+mB4rYvi3P89/pILOXd98IzeP5Y8WzJ9e4R4N 6kO1DExNlioo64L/dkNhuYSmYvNloAzKEt6Jo9PPlHg+cEe/QAnKELwF/+BFedkt58bv gcgQ==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vG32kjNi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUTq3Mj5hd1nl03E393zjRFwflTIBFv6FmmC/glIVYK2BdXLJA2q5Er2/dr23MAiutbGNyRBNT/iu//Em7WmBV4 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v18-20020a05620a123200b00783eb03fe1dsi732796qkj.222.2024.02.07.01.14.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2024 01:14:00 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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=@linaro.org header.s=google header.b=vG32kjNi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXdzg-0005Q3-U6; Wed, 07 Feb 2024 04:13: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 1rXdzV-0005MB-5Y for qemu-devel@nongnu.org; Wed, 07 Feb 2024 04:13:14 -0500 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXdzS-0008JG-VM for qemu-devel@nongnu.org; Wed, 07 Feb 2024 04:13:12 -0500 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a3864258438so81872166b.0 for ; Wed, 07 Feb 2024 01:13:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707297189; x=1707901989; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yytOM426lSRQ7TkKcf1G+JiJxoGr/F3Uafxb01Uxm28=; b=vG32kjNiOx8e15s9qxdVGn8E4L0kr1t0KBWG3pwERYdXgh1u1caTKnFkTCK7TCAFBs ag+P8dzlnRkGjUSd3ahX14L5xUFjWRSWUIePq2+N7Dc32DXfVMzJ2wKf2KGL6jwYjwtj jRaU8Jo7uFGRGrJ0FZV72cbmoaMVOIszx1HxnyE6s9+ReFPryZ9Ufn/jmajUSVQMjGE9 DXG7bTlg3JvznRbCxlPkePkJc8ltQbrtisi9V/Gvb37opwoFZTcr+nquh3S/r6eYPSHR tMvb8nnEklcWlto16G9TEOKZRPJldcrfJn04Qye0VbgnpW69lh6BUGnXtmMmgeCkTZcT ojyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707297189; x=1707901989; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yytOM426lSRQ7TkKcf1G+JiJxoGr/F3Uafxb01Uxm28=; b=biCdURxPYMlCX4pb0GndPD/q34BYc9VrNfIL6LVKNint7hIxVHVWXXfVY2XIHlFucn MO6dD7ifqqcVub9tuE30fr5l53DYMVNVRTr6jVJE09CWLf24U7PO7qYpv5Sgc9//RUUk HAGV2VE4QOawSTr6NZWMOIWDZ9MY2b480+jawheDOVmgc2z4g6OpyqJJ7Ra/eDKJvw5M 7zkVsajfxuFkHwLC/3Oa28f+DEQP+xkIwmobtACkHO9rkrTXdPGGbnFLv4btqhN8yMZE mYNVZtv7079Ru8Nbm2HTRp/P+8QZ5EDuekuFPZtlGu9cxL7SCGU59JevMBXr7o2z6m5+ H3lg== X-Gm-Message-State: AOJu0YxRtAW5laj8Q29oeQTbX/2kD5yXnwzfewdG1F4SuJ5btg5koPPo RTwMJJMtpCKZK9seuBCeFNWrqYAou/FeJ+MtCfWhSTk3IRv1eSZzQU4eVPIPNegpkRinCnAgqka k X-Received: by 2002:a17:906:3d29:b0:a38:187c:2a9f with SMTP id l9-20020a1709063d2900b00a38187c2a9fmr3431236ejf.36.1707297189012; Wed, 07 Feb 2024 01:13:09 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW7vjVGQW98Tllh5Ihtam1hDoFmUJ6jv7ppRYKcs3rqOsQp/ySh69YeH9ey322Is+WrYmDoezHyKEWPfGvJ+URUlzEZdbjXv2wSn7kgLNSI1jrXaDsTZlXknc6mcy2vDy/FfYF1Tis+agDa6oJYosoVHKr5UIqkJVltI7kyEb02nLWX6xLv0rgyOWAg89covRdHmJlZaFd0RsbD0Ecwx0ppYgi9iZlJMoabB4Ek45S8u0lnustCpAs= Received: from m1x-phil.lan ([176.176.170.22]) by smtp.gmail.com with ESMTPSA id f5-20020a170906084500b00a372132718esm527985ejd.90.2024.02.07.01.13.07 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 07 Feb 2024 01:13:08 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Nicholas Piggin , BALATON Zoltan , qemu-ppc@nongnu.org, =?utf-8?q?C=C3=A9?= =?utf-8?q?dric_Le_Goater?= , Paolo Bonzini , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= Subject: [PATCH v2 2/4] hw/ppc/ppc4xx_pci: Extract PCI host definitions to hw/pci-host/ppc4xx.h Date: Wed, 7 Feb 2024 10:12:52 +0100 Message-ID: <20240207091254.1478-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240207091254.1478-1-philmd@linaro.org> References: <20240207091254.1478-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=philmd@linaro.org; helo=mail-ej1-x62b.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: BALATON Zoltan Message-Id: <20231011132427.65001-3-philmd@linaro.org> Reviewed-by: Thomas Huth --- MAINTAINERS | 1 + include/hw/pci-host/ppc4xx.h | 17 +++++++++++++++++ include/hw/ppc/ppc4xx.h | 5 ----- hw/ppc/ppc440_bamboo.c | 1 + hw/ppc/ppc440_pcix.c | 2 +- hw/ppc/ppc440_uc.c | 1 + hw/ppc/ppc4xx_pci.c | 2 +- hw/ppc/sam460ex.c | 1 + 8 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 include/hw/pci-host/ppc4xx.h diff --git a/MAINTAINERS b/MAINTAINERS index 2f9741b898..b288f0dc76 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2068,6 +2068,7 @@ F: hw/ppc/ppc4xx*.c F: hw/ppc/ppc440_uc.c F: hw/ppc/ppc440.h F: hw/i2c/ppc4xx_i2c.c +F: include/hw/pci-host/ppc4xx.h F: include/hw/ppc/ppc4xx.h F: include/hw/i2c/ppc4xx_i2c.h F: hw/intc/ppc-uic.c diff --git a/include/hw/pci-host/ppc4xx.h b/include/hw/pci-host/ppc4xx.h new file mode 100644 index 0000000000..dc36e1ea29 --- /dev/null +++ b/include/hw/pci-host/ppc4xx.h @@ -0,0 +1,17 @@ +/* + * QEMU PowerPC 4xx PCI-host definitions + * + * Copyright (c) 2007 Jocelyn Mayer + * + * SPDX-License-Identifier: MIT + */ + +#ifndef HW_PCIHOST_PPC4XX_H +#define HW_PCIHOST_PPC4XX_H + +#define TYPE_PPC4xx_HOST_BRIDGE "ppc4xx-host-bridge" +#define TYPE_PPC4xx_PCI_HOST "ppc4xx-pci-host" +#define TYPE_PPC440_PCIX_HOST "ppc440-pcix-host" +#define TYPE_PPC460EX_PCIE_HOST "ppc460ex-pcie-host" + +#endif diff --git a/include/hw/ppc/ppc4xx.h b/include/hw/ppc/ppc4xx.h index ea7740239b..1bd9b8821b 100644 --- a/include/hw/ppc/ppc4xx.h +++ b/include/hw/ppc/ppc4xx.h @@ -29,11 +29,6 @@ #include "exec/memory.h" #include "hw/sysbus.h" -#define TYPE_PPC4xx_HOST_BRIDGE "ppc4xx-host-bridge" -#define TYPE_PPC4xx_PCI_HOST "ppc4xx-pci-host" -#define TYPE_PPC440_PCIX_HOST "ppc440-pcix-host" -#define TYPE_PPC460EX_PCIE_HOST "ppc460ex-pcie-host" - /* * Generic DCR device */ diff --git a/hw/ppc/ppc440_bamboo.c b/hw/ppc/ppc440_bamboo.c index c75c3083e6..e18f57efce 100644 --- a/hw/ppc/ppc440_bamboo.c +++ b/hw/ppc/ppc440_bamboo.c @@ -24,6 +24,7 @@ #include "elf.h" #include "hw/char/serial.h" #include "hw/ppc/ppc.h" +#include "hw/pci-host/ppc4xx.h" #include "sysemu/sysemu.h" #include "sysemu/reset.h" #include "hw/sysbus.h" diff --git a/hw/ppc/ppc440_pcix.c b/hw/ppc/ppc440_pcix.c index d84418cb7b..1926ae2a27 100644 --- a/hw/ppc/ppc440_pcix.c +++ b/hw/ppc/ppc440_pcix.c @@ -25,7 +25,7 @@ #include "qemu/module.h" #include "qemu/units.h" #include "hw/irq.h" -#include "hw/ppc/ppc4xx.h" +#include "hw/pci-host/ppc4xx.h" #include "hw/pci/pci_device.h" #include "hw/pci/pci_host.h" #include "trace.h" diff --git a/hw/ppc/ppc440_uc.c b/hw/ppc/ppc440_uc.c index 7d6ca70387..1312aa2080 100644 --- a/hw/ppc/ppc440_uc.c +++ b/hw/ppc/ppc440_uc.c @@ -14,6 +14,7 @@ #include "qemu/log.h" #include "hw/irq.h" #include "hw/ppc/ppc4xx.h" +#include "hw/pci-host/ppc4xx.h" #include "hw/qdev-properties.h" #include "hw/pci/pci.h" #include "sysemu/reset.h" diff --git a/hw/ppc/ppc4xx_pci.c b/hw/ppc/ppc4xx_pci.c index e4101398c9..b6c6c8993c 100644 --- a/hw/ppc/ppc4xx_pci.c +++ b/hw/ppc/ppc4xx_pci.c @@ -24,7 +24,7 @@ #include "qemu/osdep.h" #include "qemu/log.h" #include "hw/irq.h" -#include "hw/ppc/ppc4xx.h" +#include "hw/pci-host/ppc4xx.h" #include "migration/vmstate.h" #include "qemu/module.h" #include "sysemu/reset.h" diff --git a/hw/ppc/sam460ex.c b/hw/ppc/sam460ex.c index 1e615b8d35..a28498f39c 100644 --- a/hw/ppc/sam460ex.c +++ b/hw/ppc/sam460ex.c @@ -25,6 +25,7 @@ #include "elf.h" #include "exec/memory.h" #include "ppc440.h" +#include "hw/pci-host/ppc4xx.h" #include "hw/block/flash.h" #include "sysemu/sysemu.h" #include "sysemu/reset.h" From patchwork Wed Feb 7 09:12:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 770637 Delivered-To: patch@linaro.org Received: by 2002:a5d:40c1:0:b0:33b:4db1:f5b3 with SMTP id b1csp212778wrq; Wed, 7 Feb 2024 01:14:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbeBGOjwcTCGtft8o+D0xQJau/u7HAwyTafSfyGt+2jz/+PqqxfSk+19rX+8sW6EyZjiuI X-Received: by 2002:a05:620a:24c7:b0:783:f77b:6dc9 with SMTP id m7-20020a05620a24c700b00783f77b6dc9mr9638649qkn.18.1707297249005; Wed, 07 Feb 2024 01:14:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707297248; cv=none; d=google.com; s=arc-20160816; b=ZlP0wNfEgi0PPI0GobsKD6iB9oZDXQFAXbsMwt8vn9GvAn9hmPEhGwhb4jhM6stNZx +Cf1nT0i+RgBeEbCABlwu2ws1uExRxX45Xd5adyuQ2E2cyQc5mjAIvZ0w5TVffYppedP dM8FMGXJe7PweE/QojtmYB+wAB7OxwGR3AxISz9P0WqiFhnSZ8TnGPzbuAlIGQPR0t1A QAqVLp27qdjzsRcHJktoN6PerzHlBy/deaLD7BU5tpMCZ7vU7Zl11UfstqbU0koqIvqU iLQa20P+1TxMG+0xj6g/6JbUxFmyUu/EQKJCcYz2zHRyJPG7XW3Gg7D5q0J1c0/+c0hj qwaA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QVBl6Dk4lUHM78vggkMek+g7I/12xu6COw4rVVhDdU4=; fh=PqZsCB2IKspBU+C+vSpz6XrMBu+Dg3DdyMuI/y2F2Kc=; b=Gyc0XGOsQB7wcKchQTw/7vJ/Bn+dRJXAld1rEeTcysFshYnvlWdv2OojWf3b1fL8FF +lnO3clQ/wJRzYeYfR7QFWX6mipB26Pk9CLJA4IQsCBeuMLeGl3JLPOE5q/Y6m3hb6sx H0dUmdFOuvmrJwghlvmTNAdbckwSn3lhoWdhxGpssuhUEOb+zKrSI0O46b2jK5dFbvOV JeU+B7E1cf88KiC/4Zs3HtwYWroNk6drXUcCnC6c5gJaHV5Go1tZCpGwwR7/NO+pR08x 766AGgBrKIQ79t5lEr6HIiodkO0UxGNaPWM8MWYpkm2Btls+PpQyy1T7Ui6vpI8hEw0l MXjw==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nxd4I82k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCVdx8oVkUt5wzZ4xk4tKmeLW1+oZ3yMacSM0OOtg+t8sIWCq/+8OblzfMMdibdCzQxxLv5nQKdSQ2Gkfy0c/T4v Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b7-20020a05620a04e700b007859ebf2434si365264qkh.599.2024.02.07.01.14.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2024 01:14:08 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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=@linaro.org header.s=google header.b=Nxd4I82k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXdzg-0005QA-VK; Wed, 07 Feb 2024 04:13:25 -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 1rXdzb-0005NZ-68 for qemu-devel@nongnu.org; Wed, 07 Feb 2024 04:13:21 -0500 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXdzY-0008K3-2a for qemu-devel@nongnu.org; Wed, 07 Feb 2024 04:13:18 -0500 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a370328e8b8so45161966b.3 for ; Wed, 07 Feb 2024 01:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707297194; x=1707901994; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QVBl6Dk4lUHM78vggkMek+g7I/12xu6COw4rVVhDdU4=; b=Nxd4I82k41Pb6B7XxV4yu5ISz+jQErs0hT8qFfIOH721WyI3RuEKnAGQ481cwNruCR TjXXCJf4Zf6eDz51ewnzGwwk/SBufT5vgsAdDqCN/o75MMICwJLj+6tc2WjYkh7uWiX6 yTEgi49eQMhG0H11tS1M7ANBzEAzutxvjZqH+Dusnn4IQcXFCqtsHTZmZ6Sul/WPMV7z NDnDvlwHdafBqU79//JzyUy9FfJiKlDh9A58DJLlbOQ2bSW2j+ZvraBlI78KHpow+OWe 75XAmNJDPHlowdAWWb66/LNJ+gox84dXdD9qgy3DMEXGkNAlo+hAJIrFCPdhGrlqXcXW X8fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707297194; x=1707901994; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QVBl6Dk4lUHM78vggkMek+g7I/12xu6COw4rVVhDdU4=; b=QRisi5PAR7axEnBbtERDln8kv4Y3QlKPO+5EA8M86qvlfee6OSN3E/QMXedE1aYo06 uxncWBMrsB9VeqeblxIaicpjtsTjTnEcVD7sJKQiAJ34v55Hc8p2b2K62YraDUTp7lHQ MX6vk7X+b9tbzfYeX6MvcW0v6BO0t5Wb7X8up0meIpQVdD7ee6NfCxIiNO5ahVaMBg6h 47XZAG6O9eqw+u+QlbT0RC6ooed3/Owd7cPOM2P/tn4UOODxbKNnWOCwbBD9/3b+pQiu 4AmBpcOZ/I2c0qhGaTJTaPyGHcj6XccWd2AAFyDxfRIASangVBnKeP5SXH+RAMhyVPgg iJHg== X-Gm-Message-State: AOJu0YyddnTMnbKL9iT1gaRKC+Es8JlBJjydAKuu1rOE+FACttDFB28F NGGEvlCwRhQuJxHb2OIWakfvMSNUhno+mmQcb5tbjy2HBVmdmZWMCsF+Vy3HNOAFpICzD4+cNYr i X-Received: by 2002:a17:906:abcc:b0:a38:7909:7a87 with SMTP id kq12-20020a170906abcc00b00a3879097a87mr698474ejb.54.1707297194559; Wed, 07 Feb 2024 01:13:14 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUp4N8gq3kQdRWACqm495rF4ODPFQ5lU1g6s85RofXxC3z43BmMPPvW8eVspD+0BcA5MeCMsy6UhoMkwrrQNGjT+GVwjaNneTi9uI2TDDxRNYRCXRg+q9n34EWTcz9ZzP1OmaUNmONSIaCRgP5h7oEqQRGlfUMTMeU/JriKrMKv61de1dhInODBzujqxVyxFm0fIEDlZ4rG2n1hDfAGIdMp/Ejbmk2fLlPTUMKO3LCLDNm97cEC1ds= Received: from m1x-phil.lan ([176.176.170.22]) by smtp.gmail.com with ESMTPSA id l24-20020a17090612d800b00a3820ec721csm533640ejb.8.2024.02.07.01.13.13 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 07 Feb 2024 01:13:14 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Nicholas Piggin , BALATON Zoltan , qemu-ppc@nongnu.org, =?utf-8?q?C=C3=A9?= =?utf-8?q?dric_Le_Goater?= , Paolo Bonzini , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= Subject: [PATCH v2 3/4] hw/ppc/ppc4xx_pci: Move ppc4xx_pci.c to hw/pci-host/ Date: Wed, 7 Feb 2024 10:12:53 +0100 Message-ID: <20240207091254.1478-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240207091254.1478-1-philmd@linaro.org> References: <20240207091254.1478-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=philmd@linaro.org; helo=mail-ej1-x62a.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org ppc4xx_pci.c is moved from the target specific ppc_ss[] meson source set to pci_ss[] which is common to all targets: the object is built once. Declare PPC4XX_PCI selector in pci-host/Kconfig. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- MAINTAINERS | 1 + hw/{ppc => pci-host}/ppc4xx_pci.c | 0 hw/pci-host/ppce500.c | 2 +- hw/pci-host/Kconfig | 4 ++++ hw/pci-host/meson.build | 1 + hw/pci-host/trace-events | 4 ++++ hw/ppc/Kconfig | 2 +- hw/ppc/meson.build | 1 - hw/ppc/trace-events | 4 ---- 9 files changed, 12 insertions(+), 7 deletions(-) rename hw/{ppc => pci-host}/ppc4xx_pci.c (100%) diff --git a/MAINTAINERS b/MAINTAINERS index b288f0dc76..1927530c2d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1421,6 +1421,7 @@ Bamboo L: qemu-ppc@nongnu.org S: Orphan F: hw/ppc/ppc440_bamboo.c +F: hw/pci-host/ppc4xx_pci.c F: tests/avocado/ppc_bamboo.py e500 diff --git a/hw/ppc/ppc4xx_pci.c b/hw/pci-host/ppc4xx_pci.c similarity index 100% rename from hw/ppc/ppc4xx_pci.c rename to hw/pci-host/ppc4xx_pci.c diff --git a/hw/pci-host/ppce500.c b/hw/pci-host/ppce500.c index fa0d67b342..95b983b2b3 100644 --- a/hw/pci-host/ppce500.c +++ b/hw/pci-host/ppce500.c @@ -5,7 +5,7 @@ * * Author: Yu Liu, * - * This file is derived from hw/ppc4xx_pci.c, + * This file is derived from ppc4xx_pci.c, * the copyright for that material belongs to the original owners. * * This is free software; you can redistribute it and/or modify diff --git a/hw/pci-host/Kconfig b/hw/pci-host/Kconfig index f046d76a68..0a221e719e 100644 --- a/hw/pci-host/Kconfig +++ b/hw/pci-host/Kconfig @@ -6,6 +6,10 @@ config XEN_IGD_PASSTHROUGH default y depends on XEN && PCI_I440FX +config PPC4XX_PCI + bool + select PCI + config RAVEN_PCI bool select PCI diff --git a/hw/pci-host/meson.build b/hw/pci-host/meson.build index 36d5ab756f..eb6dc71c88 100644 --- a/hw/pci-host/meson.build +++ b/hw/pci-host/meson.build @@ -14,6 +14,7 @@ pci_ss.add(when: 'CONFIG_REMOTE_PCIHOST', if_true: files('remote.c')) pci_ss.add(when: 'CONFIG_SH_PCI', if_true: files('sh_pci.c')) # PPC devices +pci_ss.add(when: 'CONFIG_PPC4XX_PCI', if_true: files('ppc4xx_pci.c')) pci_ss.add(when: 'CONFIG_RAVEN_PCI', if_true: files('raven.c')) pci_ss.add(when: 'CONFIG_GRACKLE_PCI', if_true: files('grackle.c')) # NewWorld PowerMac diff --git a/hw/pci-host/trace-events b/hw/pci-host/trace-events index b2f47e6335..90a37ebff0 100644 --- a/hw/pci-host/trace-events +++ b/hw/pci-host/trace-events @@ -37,6 +37,10 @@ unin_data_read(uint64_t addr, unsigned len, uint64_t val) "read addr 0x%"PRIx64 unin_write(uint64_t addr, uint64_t value) "addr=0x%" PRIx64 " val=0x%"PRIx64 unin_read(uint64_t addr, uint64_t value) "addr=0x%" PRIx64 " val=0x%"PRIx64 +# ppc4xx_pci.c +ppc4xx_pci_map_irq(int32_t devfn, int irq_num, int slot) "devfn 0x%x irq %d -> %d" +ppc4xx_pci_set_irq(int irq_num) "PCI irq %d" + # pnv_phb4.c pnv_phb4_xive_notify(uint64_t notif_port, uint64_t data) "notif=@0x%"PRIx64" data=0x%"PRIx64 pnv_phb4_xive_notify_ic(uint64_t addr, uint64_t data) "addr=@0x%"PRIx64" data=0x%"PRIx64 diff --git a/hw/ppc/Kconfig b/hw/ppc/Kconfig index 44263a58c4..82e847d22c 100644 --- a/hw/ppc/Kconfig +++ b/hw/ppc/Kconfig @@ -53,7 +53,7 @@ config PPC440 config PPC4XX bool select BITBANG_I2C - select PCI + select PPC4XX_PCI select PPC_UIC config SAM460EX diff --git a/hw/ppc/meson.build b/hw/ppc/meson.build index eba3406e7f..d0efc0aba5 100644 --- a/hw/ppc/meson.build +++ b/hw/ppc/meson.build @@ -63,7 +63,6 @@ ppc_ss.add(when: 'CONFIG_PPC440', if_true: files( 'ppc440_pcix.c', 'ppc440_uc.c')) ppc_ss.add(when: 'CONFIG_PPC4XX', if_true: files( 'ppc4xx_devs.c', - 'ppc4xx_pci.c', 'ppc4xx_sdram.c')) ppc_ss.add(when: 'CONFIG_SAM460EX', if_true: files('sam460ex.c')) # PReP diff --git a/hw/ppc/trace-events b/hw/ppc/trace-events index f670e8906c..b59fbf340f 100644 --- a/hw/ppc/trace-events +++ b/hw/ppc/trace-events @@ -146,10 +146,6 @@ rs6000mc_size_read(uint32_t addr, uint32_t val) "read addr=0x%x val=0x%x" rs6000mc_size_write(uint32_t addr, uint32_t val) "write addr=0x%x val=0x%x" rs6000mc_parity_read(uint32_t addr, uint32_t val) "read addr=0x%x val=0x%x" -# ppc4xx_pci.c -ppc4xx_pci_map_irq(int32_t devfn, int irq_num, int slot) "devfn 0x%x irq %d -> %d" -ppc4xx_pci_set_irq(int irq_num) "PCI irq %d" - # ppc440_pcix.c ppc440_pcix_map_irq(int32_t devfn, int irq_num, int slot) "devfn 0x%x irq %d -> %d" ppc440_pcix_set_irq(int irq_num) "PCI irq %d" From patchwork Wed Feb 7 09:12:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 770635 Delivered-To: patch@linaro.org Received: by 2002:a5d:40c1:0:b0:33b:4db1:f5b3 with SMTP id b1csp212732wrq; Wed, 7 Feb 2024 01:14:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFT8Pn0Z6MBXfVZG4ndfBDP/w5zyl0Jo1i4B5e/vAUbtUjsCL8loTFxs/byBVJN/elnIvHd X-Received: by 2002:a05:620a:7e7:b0:785:974c:d896 with SMTP id k7-20020a05620a07e700b00785974cd896mr2124149qkk.60.1707297240074; Wed, 07 Feb 2024 01:14:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707297240; cv=none; d=google.com; s=arc-20160816; b=grFSFOS3lpmJCVZ5hYHGPyeNEYT95Jp/NwZUgNb+MOBB83f3GcQaZwkqWG6oWYUzsJ cWUA4lvFXicRKQSAf7rltGKdzVAG7T6w7rEfBIUlhqMyDRs/2efZhc37YhhxQvgIWGA5 uhc215IEznqh/xNrBKTfLWBeiAsnstigRn1W6pgGqdv/dW83Vt0NYKAkjF2fSW+e7kWk tQNSq1qCIaZW9rFR02cDICbOlGQGAmRv8LR/Av1wppFa2/F2f3cjwuVakoVvVCCnDZOr /xgOy7KUkqneeRWnYXh/dp7e3+NIXQW3t91iRhtHtzseIG6d2l4fM4isAAhr0PS1bZlT xWhA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CLIvO5yt2v6iz48I5tKRmsspXhcoptGguz7s2UGjGhU=; fh=eG4t9gSQ6C9Fl1q57TNcUBy9vyIAW7q7kFu8UXFvd4E=; b=ZJzpO7wpQMQn5hsuRUVzWwvHncRKPyBp2kWMSn6zs6FNgYh38lISYej5QJpb3mcMDx 0KUru9kaR9g2sZSseY2J8FdGudgVaSKRpqnoQ0iyUxMnU2aSYsDKOTvkn5rkzLO1kdyb JS/TVhBnZsNjm/vyo+6dXenVWwIwM8LLTAPfbLfY0y3rSA1qisaGZoggkjU4MYKpAuEs J1vQZZZW4qg+fqdc0QKSaXbBnopXY2NANqZTNzwNc83mw7IixMsTUF7MRFM5h7e/a25S ZRqGn+1udHP49/LGeUgiNB6CHD/ORoPIJrfrWibChhXi1LHTdxHud0pnQIg1iZtcuvA1 VYqQ==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kCTPCp/A"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCXF5QHRh7EA4tc8tv27DV9G526QHMtzrUuytjXW2DypD1/SD3JRcNFuZpPTKUcCKEhv2WZqSPS0ldAuofexuBsa Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z11-20020a05620a100b00b0078585f1ecdcsi685659qkj.360.2024.02.07.01.13.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2024 01:14:00 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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=@linaro.org header.s=google header.b="kCTPCp/A"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXdzk-0005Sj-5Y; Wed, 07 Feb 2024 04:13:28 -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 1rXdzf-0005Q5-NB for qemu-devel@nongnu.org; Wed, 07 Feb 2024 04:13:24 -0500 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXdze-0008Ku-2D for qemu-devel@nongnu.org; Wed, 07 Feb 2024 04:13:23 -0500 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a3832ef7726so45363266b.0 for ; Wed, 07 Feb 2024 01:13:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707297200; x=1707902000; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CLIvO5yt2v6iz48I5tKRmsspXhcoptGguz7s2UGjGhU=; b=kCTPCp/AaRMIJ6fC1sUbRANrOcn1q3Xn4o/Fblp698uIgk4ASwWvoFJWAGSfla4A/u GDW/myrepr9QIBCLBRZByilZRGmLiaFzZfpttVrmAmeqOPXH2/Ljzz3fgwoPWOiEYkOx GyTk9NyTFbX5BUNcssymxKda3S0ZORiz6U+KwUinrYBik0+4dYc86leB7BOTpfd4J4N6 eKfFQ3UJXD6aEtAQphzoKL+AutQLwOjWJZLsTGg+2vffPZDsYFJDoy0WPwYR1xcJFwGi CgkdpxJclXR5prvg0NeYkA4oEM0LOKiRpSHBwK8XfULBWOFte0VCRxErf2u8hFY690cP DKxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707297200; x=1707902000; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CLIvO5yt2v6iz48I5tKRmsspXhcoptGguz7s2UGjGhU=; b=G3+Wv0HvaSuF6dN73eZ+q1P8TKok24Xws0r4mV7WEsyTLk0iaKV+oISyXkiC83eWAl ke3GElTOW/extn68F9ec6AEB5atwegrAhN2klmuribP1OKRrwx+FHw+g9L07RnqARljU lRQ73rkyXOMwcEPu9UWFGbJ6zd5ODX6+hgcHTLqdNKrDdeUX36PTZ58tGmiNutOpgp61 peFpNUiI9JPQbF/VMHFyFAjRBjxXD1SPDgEL2XM2ESW7r6zDCGgvykGcLUenI0H9AH8j XKmcHT3LG1Q0ZbxagRyq5ZnaMT8A6wxdz9Rt245q+mVxppJPMwvBpXaiN6OsCtTPhKqV Ujrg== X-Gm-Message-State: AOJu0Yz12v+9ZZNyH+z/NEJF9/uGuctplxNFYwlBTKjKidAcs0NHlxXp fZpjpUG5uVYXjeDYyhibVifEpgsKRQYtsH7a8KM8oqwVlYQSzlUNllRditQQvItJaUfylTLGrEz K X-Received: by 2002:a17:907:7791:b0:a38:7171:e832 with SMTP id ky17-20020a170907779100b00a387171e832mr866963ejc.32.1707297200021; Wed, 07 Feb 2024 01:13:20 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVXvJM8Abm/Lo9YPdc4HJ2GV9NcB8x8JKV7ELA3XRPZB1KkCW6XBmVhuIHI0E4dieMt/D8smeoz7G514P5irK9YiJfRIsM3BB8WNxR6FhufVoFpXovhSw/gT4g9HstkRpO+l38OyrJ0ls08ku7jWLU11m5WD/fMEjCE10oWCl6VXIRPI0A0fjKLU/29HdauepD5opz3lPHVzmnzGy/+Ws3rxx4B/6+1JpEEhTwsSLnRr9z79shmpZw= Received: from m1x-phil.lan ([176.176.170.22]) by smtp.gmail.com with ESMTPSA id h9-20020a17090619c900b00a35ed4fd4cesm526799ejd.115.2024.02.07.01.13.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 07 Feb 2024 01:13:19 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Nicholas Piggin , BALATON Zoltan , qemu-ppc@nongnu.org, =?utf-8?q?C=C3=A9?= =?utf-8?q?dric_Le_Goater?= , Paolo Bonzini , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= Subject: [PATCH v2 4/4] hw/ppc/ppc440_pcix: Move ppc440_pcix.c to hw/pci-host/ Date: Wed, 7 Feb 2024 10:12:54 +0100 Message-ID: <20240207091254.1478-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240207091254.1478-1-philmd@linaro.org> References: <20240207091254.1478-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=philmd@linaro.org; helo=mail-ej1-x62d.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org ppc440_pcix.c is moved from the target specific ppc_ss[] meson source set to pci_ss[] which is common to all targets: the object is built once. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- MAINTAINERS | 2 +- hw/{ppc => pci-host}/ppc440_pcix.c | 0 hw/pci-host/Kconfig | 4 ++++ hw/pci-host/meson.build | 1 + hw/pci-host/trace-events | 8 ++++++++ hw/ppc/Kconfig | 1 + hw/ppc/meson.build | 2 +- hw/ppc/trace-events | 8 -------- 8 files changed, 16 insertions(+), 10 deletions(-) rename hw/{ppc => pci-host}/ppc440_pcix.c (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 1927530c2d..42e63ed696 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1554,7 +1554,7 @@ L: qemu-ppc@nongnu.org S: Maintained F: hw/ppc/sam460ex.c F: hw/ppc/ppc440_uc.c -F: hw/ppc/ppc440_pcix.c +F: hw/pci-host/ppc440_pcix.c F: hw/display/sm501* F: hw/ide/sii3112.c F: hw/rtc/m41t80.c diff --git a/hw/ppc/ppc440_pcix.c b/hw/pci-host/ppc440_pcix.c similarity index 100% rename from hw/ppc/ppc440_pcix.c rename to hw/pci-host/ppc440_pcix.c diff --git a/hw/pci-host/Kconfig b/hw/pci-host/Kconfig index 0a221e719e..b348cacadb 100644 --- a/hw/pci-host/Kconfig +++ b/hw/pci-host/Kconfig @@ -10,6 +10,10 @@ config PPC4XX_PCI bool select PCI +config PPC440_PCI + bool + select PCI + config RAVEN_PCI bool select PCI diff --git a/hw/pci-host/meson.build b/hw/pci-host/meson.build index eb6dc71c88..83cf3a1783 100644 --- a/hw/pci-host/meson.build +++ b/hw/pci-host/meson.build @@ -15,6 +15,7 @@ pci_ss.add(when: 'CONFIG_SH_PCI', if_true: files('sh_pci.c')) # PPC devices pci_ss.add(when: 'CONFIG_PPC4XX_PCI', if_true: files('ppc4xx_pci.c')) +pci_ss.add(when: 'CONFIG_PPC440_PCI', if_true: files('ppc440_pcix.c')) pci_ss.add(when: 'CONFIG_RAVEN_PCI', if_true: files('raven.c')) pci_ss.add(when: 'CONFIG_GRACKLE_PCI', if_true: files('grackle.c')) # NewWorld PowerMac diff --git a/hw/pci-host/trace-events b/hw/pci-host/trace-events index 90a37ebff0..0a816b9aa1 100644 --- a/hw/pci-host/trace-events +++ b/hw/pci-host/trace-events @@ -41,6 +41,14 @@ unin_read(uint64_t addr, uint64_t value) "addr=0x%" PRIx64 " val=0x%"PRIx64 ppc4xx_pci_map_irq(int32_t devfn, int irq_num, int slot) "devfn 0x%x irq %d -> %d" ppc4xx_pci_set_irq(int irq_num) "PCI irq %d" +# ppc440_pcix.c +ppc440_pcix_map_irq(int32_t devfn, int irq_num, int slot) "devfn 0x%x irq %d -> %d" +ppc440_pcix_set_irq(int irq_num) "PCI irq %d" +ppc440_pcix_update_pim(int idx, uint64_t size, uint64_t la) "Added window %d of size=0x%" PRIx64 " to CPU=0x%" PRIx64 +ppc440_pcix_update_pom(int idx, uint32_t size, uint64_t la, uint64_t pcia) "Added window %d of size=0x%x from CPU=0x%" PRIx64 " to PCI=0x%" PRIx64 +ppc440_pcix_reg_read(uint64_t addr, uint32_t val) "addr 0x%" PRIx64 " = 0x%" PRIx32 +ppc440_pcix_reg_write(uint64_t addr, uint32_t val, uint32_t size) "addr 0x%" PRIx64 " = 0x%" PRIx32 " size 0x%" PRIx32 + # pnv_phb4.c pnv_phb4_xive_notify(uint64_t notif_port, uint64_t data) "notif=@0x%"PRIx64" data=0x%"PRIx64 pnv_phb4_xive_notify_ic(uint64_t addr, uint64_t data) "addr=@0x%"PRIx64" data=0x%"PRIx64 diff --git a/hw/ppc/Kconfig b/hw/ppc/Kconfig index 82e847d22c..2da6c16186 100644 --- a/hw/ppc/Kconfig +++ b/hw/ppc/Kconfig @@ -46,6 +46,7 @@ config PPC440 imply TEST_DEVICES imply E1000_PCI select PCI_EXPRESS + select PPC440_PCI select PPC4XX select SERIAL select FDT_PPC diff --git a/hw/ppc/meson.build b/hw/ppc/meson.build index d0efc0aba5..da14fccce5 100644 --- a/hw/ppc/meson.build +++ b/hw/ppc/meson.build @@ -60,7 +60,7 @@ ppc_ss.add(when: 'CONFIG_PPC405', if_true: files( 'ppc405_uc.c')) ppc_ss.add(when: 'CONFIG_PPC440', if_true: files( 'ppc440_bamboo.c', - 'ppc440_pcix.c', 'ppc440_uc.c')) + 'ppc440_uc.c')) ppc_ss.add(when: 'CONFIG_PPC4XX', if_true: files( 'ppc4xx_devs.c', 'ppc4xx_sdram.c')) diff --git a/hw/ppc/trace-events b/hw/ppc/trace-events index b59fbf340f..157ea756e9 100644 --- a/hw/ppc/trace-events +++ b/hw/ppc/trace-events @@ -146,14 +146,6 @@ rs6000mc_size_read(uint32_t addr, uint32_t val) "read addr=0x%x val=0x%x" rs6000mc_size_write(uint32_t addr, uint32_t val) "write addr=0x%x val=0x%x" rs6000mc_parity_read(uint32_t addr, uint32_t val) "read addr=0x%x val=0x%x" -# ppc440_pcix.c -ppc440_pcix_map_irq(int32_t devfn, int irq_num, int slot) "devfn 0x%x irq %d -> %d" -ppc440_pcix_set_irq(int irq_num) "PCI irq %d" -ppc440_pcix_update_pim(int idx, uint64_t size, uint64_t la) "Added window %d of size=0x%" PRIx64 " to CPU=0x%" PRIx64 -ppc440_pcix_update_pom(int idx, uint32_t size, uint64_t la, uint64_t pcia) "Added window %d of size=0x%x from CPU=0x%" PRIx64 " to PCI=0x%" PRIx64 -ppc440_pcix_reg_read(uint64_t addr, uint32_t val) "addr 0x%" PRIx64 " = 0x%" PRIx32 -ppc440_pcix_reg_write(uint64_t addr, uint32_t val, uint32_t size) "addr 0x%" PRIx64 " = 0x%" PRIx32 " size 0x%" PRIx32 - # ppc405_boards.c opba_readb(uint64_t addr, uint32_t val) "addr 0x%" PRIx64 " = 0x%" PRIx32 opba_writeb(uint64_t addr, uint64_t val) "addr 0x%" PRIx64 " = 0x%" PRIx64