From patchwork Thu Jan 25 05:55:39 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: 765942 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp2458818wrx; Wed, 24 Jan 2024 21:58:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgavUwY3kJs94pvhHGaDnodvazwhEo8eCu6DF+u687KTws7z0G7bp2UqrlWVQrV4cah8OM X-Received: by 2002:ad4:4ea6:0:b0:685:2e11:dfae with SMTP id ed6-20020ad44ea6000000b006852e11dfaemr786802qvb.15.1706162283676; Wed, 24 Jan 2024 21:58:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706162283; cv=none; d=google.com; s=arc-20160816; b=RGAqQvf7VIQpzPEo3ykQydJdE1VdxYB0OJXRdie+NgMWH4LK0TzNll9UdzTeDvlhft Tle8iugPqWYmp8e/kDvq4oqFAsVnzl/JYRufc27WXVS6jUaoTBEo5q369CMqchq1fUaR b1RJgeeto+4rk8U59LGYkly/scerDbOeTvUoE49e59qetBiPpla9YD2I1ufrtsMM6w0y IyZg+wBn77HCVYasOgXhZiRcAMRBGJ/eWEisXsKRR4/vvRzsAq8Wqe2fcJoByn4AZUAr y/12LCdV6UgouKmCQNMQSCLmk3acT8BrXa0rsZsLmHZytHRXfeNWv541V83P46Qkw4tb PJFw== 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:date:subject:cc:to:from:dkim-signature; bh=LTjUodNM1cz/FwQ+agsvuxdNwnKZ6thXnjAI9kk5o1E=; fh=ZofYB1COZgii34hhzHLtVD/QpgCjrxWfRH5mgsGMmL4=; b=sxhQokfrzZKxnPIJotqroDckJWhd8YJhEoNEOSramHPU5CGjjsKToKkQELBtvEtifA BfQULVI6Q9tQaKEJbpifVuLSx1DtpbXmKc6AwWbakzPOtvf42ord3eHOxM1F6HZueT4H cDS1CN/M4uNzFgqPCpKiX9QdH/BoMbzBgW3bJBGFwXMguUFY/WzrzMs9e5fVWUy7phv+ 2hjHFWHLhzjY451gKBbVScXEUpXrt+4fNMH8ArjF+JoYP6zPqsvS0gF/ACGQRMQ6KRDm f5W0xTKw0Vg5z3qGIwkOlypPA9FSz/Qqm4syugY08SIcNjVWAjLgVT5lp06cFxinLmmi b3eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hure3xIE; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i13-20020a0cf38d000000b006818be1a1a2si12292023qvk.364.2024.01.24.21.58.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2024 21:58:03 -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=hure3xIE; 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 1rSsiT-0003Gl-1J; Thu, 25 Jan 2024 00:55:57 -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 1rSsiP-0003GC-DM for qemu-devel@nongnu.org; Thu, 25 Jan 2024 00:55:54 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSsiM-00016R-4B for qemu-devel@nongnu.org; Thu, 25 Jan 2024 00:55:52 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40ed1e78835so1527335e9.2 for ; Wed, 24 Jan 2024 21:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706162147; x=1706766947; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LTjUodNM1cz/FwQ+agsvuxdNwnKZ6thXnjAI9kk5o1E=; b=hure3xIE0uajhbLsa4z+UrtyDXcDnOk8FD9OjbUuyG4dchJou+ZC1bO5WgdTIEIM3k HqzxjBxXrn/klSAhPll1WhqJWV8S7UEtQwffknl+qtFDYw2ZlNSIzBASyT0Ifl933504 z/lamoS3u6lQvBmPAMhW6CFzpEWkOoyrYeE4SO+LDoJ3FeCgmCLVkIttxOOWqxTrJ1B7 NN7V9kMeJQBpEl1ponzkOoJUcdP0xggVeoN+Mayxg5bPzBbevnidyzKtD400xTlxoaSW irDJR8wfZ6qkzsvAo8v69PazULTVbVF9EfWhQIkRWmZjzKTWJyc+aUYBwMXUcEWGgKs6 NfMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706162147; x=1706766947; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LTjUodNM1cz/FwQ+agsvuxdNwnKZ6thXnjAI9kk5o1E=; b=RQDggitFS31Hk9Dj7kkE3cP6uwIonATNAmB8nROFyRuNnHslUjei1+0t4r5RtQRmma rRy1aRDuQE9Xt3UOFwQQihXhg20jIZJUAYktHp8kz4ZPBnzCZ0nPA8G0fdKSWh8BaTUB 2B/TULMg+IHVM8z8EPW9oZGZWMAduZfd5lJEUpOxNKCSig6klksHID/iZtJ1DfuUzFev 3F4McLC3mVg/uNM4L7OIBfyGaKlY8Fzwml/aWsB6n15P9iaAPCnuxtcbzc9jnf35ZA3l UZ57PWwtyUY+DpBM0ilbBb1saTC4Cy9BdNuE4Oyt5oCYMjwPMa+vBoU4B5osZAhH/O9W uqKg== X-Gm-Message-State: AOJu0YwVynSYFZMp3GCI8ue6fdsW0WNT5dRQV0NuJw/e72DhsF6iKjLU zy4QqT0pN+uKtoqotMMtwC/Qa3DgleaxHcToe9RR6Nt+cZZIbaNxy/HyO7gHMlGV8NBUtLIkVHE m X-Received: by 2002:a05:600c:54d0:b0:40e:6639:6708 with SMTP id iw16-20020a05600c54d000b0040e66396708mr16641wmb.49.1706162147617; Wed, 24 Jan 2024 21:55:47 -0800 (PST) Received: from m1x-phil.lan (lec62-h02-176-184-19-125.dsl.sta.abo.bbox.fr. [176.184.19.125]) by smtp.gmail.com with ESMTPSA id d10-20020a05600c3aca00b0040e88fbe051sm1222406wms.48.2024.01.24.21.55.46 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 Jan 2024 21:55:47 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , =?utf-8?q?C=C3=A9dric_Le_Goate?= =?utf-8?q?r?= , qemu-arm@nongnu.org, Andrew Jeffery , Joel Stanley , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 0/5] hw/arm/aspeed: Check for CPU types in machine_run_board_init() Date: Thu, 25 Jan 2024 06:55:39 +0100 Message-ID: <20240125055544.79405-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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 Series fully reviewed. Since v2: - Addressed Gavin & Richard review comments. - Collected R-b tags Since v1: - Follow suggestions from Cédric from [*] [*] https://lore.kernel.org/qemu-devel/e13c655b-7904-4e47-a673-4efd13c26b3d@kaod.org/ Based-on: <20240123222508.13826-1-philmd@linaro.org> Philippe Mathieu-Daudé (5): hw/arm/aspeed: Remove dead code hw/arm/aspeed: Set default CPU count using aspeed_soc_num_cpus() hw/arm/aspeed: Init CPU defaults in a common helper hw/arm/aspeed: Introduce aspeed_soc_cpu_type() helper hw/arm/aspeed: Check for CPU types in machine_run_board_init() include/hw/arm/aspeed_soc.h | 4 ++- hw/arm/aspeed.c | 70 +++++++++++++++---------------------- hw/arm/aspeed_ast10x0.c | 8 +++-- hw/arm/aspeed_ast2400.c | 15 ++++++-- hw/arm/aspeed_ast2600.c | 9 +++-- hw/arm/aspeed_soc_common.c | 8 +++++ 6 files changed, 65 insertions(+), 49 deletions(-)