From nobody Wed Apr 16 14:11:17 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1641576265; cv=none; d=zohomail.com; s=zohoarc; b=Fb0EiUpBV/mIEDybeLI8I0+ZGL6IrFn9DXt1BNyt5peMalQ1j1lGUCW6cKLQwpqHpHqtoZiwzDPxeM2/wrwb+6yp+a6QQ1Y0DfGGiNBOEdqY0VkrO80xzBZs3NU8yrJ6ew1G7eIDONqmcKkCJA9pXx8Oni3vVukVf2Wxumpnvnc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641576265; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=p0bFkZNomX7Q5MaA4fGopx5oG80cnusqXxawnRuyq4M=; b=Mb0PskNeqg4ObKbnGdwa31mtXva516/kOKxEr5D42aEnhk6SY1xmknyvsak+N+9Tzv1kR6gYHvsrcXjog53WfXcgCx6W4TuApBBKgV8AJ83OmSk4vUvNICmL/mx6RAqyl0XVsHVqf1ZcN7hfuc0FV6SP1+2lBMkgZ5thmWpDUO8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1641576265245117.56442926500586; Fri, 7 Jan 2022 09:24:25 -0800 (PST) Received: from localhost ([::1]:43530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5syV-0007pE-IG for importer@patchew.org; Fri, 07 Jan 2022 12:24:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5sw0-000542-Ud for qemu-devel@nongnu.org; Fri, 07 Jan 2022 12:21:49 -0500 Received: from [2a00:1450:4864:20::429] (port=34326 helo=mail-wr1-x429.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5svy-0007s3-Mi for qemu-devel@nongnu.org; Fri, 07 Jan 2022 12:21:48 -0500 Received: by mail-wr1-x429.google.com with SMTP id h10so2184778wrb.1 for ; Fri, 07 Jan 2022 09:21:46 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id i6sm6060219wrf.79.2022.01.07.09.21.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 09:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=p0bFkZNomX7Q5MaA4fGopx5oG80cnusqXxawnRuyq4M=; b=XHJtFzZlA1DAaYgvG0kPPrbNAFhNldhOJ8N2flQgdyHuIjVOgzrhL+x4QSaGHpyBAY oNdBehRWxhRxSRog3StFLiolx5QjJiL8w7aXPjnP5QTLE22n6BEnvY2p5KDk8s2WixzG CXRfKltqXou13gmVsP1J5AszTnoz9g/HeZ6H+Mpc/PRVEXwWbaOKPmSVGQZiC/rp/QRf JFz0CsBNomp95904+YCwrsRxgGuLUltO8Ru4ToDOWiP/a3A15Dl2gOYfDJmBDZqysCTg ZbJnqepZr7BnAA0EB128FIOTS12XspdDTEBDleFy2POKwANGdX7o/TqfTykIthsqJOcs zUBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=p0bFkZNomX7Q5MaA4fGopx5oG80cnusqXxawnRuyq4M=; b=PAq74QeIbvE/gMVjXKRbqhVFETH2Q30Z24kmv8qCUcCBMxZ+FX0GjtmKGN+AGdnfl7 JkD3qQTpvqDkSzpRk00SPi4YRQ0AE5QZ0Bo8gjVBA89p5QAGJHTdgN3PxzS5470f2HgE 95zaWjmlBboA7J+cLL3t02QIiujTIlKAypDmLn7iqGYZvA8RaDpbLU9LUsKXCGyZvwoP 6bUEenOpIBYPcmLaQWXGg3dYZVZfL9IHUvvpt9ZLaizcScLykZ25sExv8iJSC9wp2kIx 0c7zexXdsbguAGWsMGDkcgWQ0CrRCcYAD6NiRwLXhfBG7U8jZbm7CFia2xbWZx6w2OrE QQOQ== X-Gm-Message-State: AOAM5316Iw2fammDAHAEdn0hNDZsVppQoLpbMXCksRwQenkjyGWoIfvx c454ezM5zDdAtszjZuwW7DD5vPqvBNlFpw== X-Google-Smtp-Source: ABdhPJzQkjbVT7X57KmZ6ErnuGWpN267ss0LcaSElFvtqQ0etKKu/jqzACWoibYU1yrVXeUg97YgaQ== X-Received: by 2002:a05:6000:1684:: with SMTP id y4mr53409025wrd.26.1641576105421; Fri, 07 Jan 2022 09:21:45 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 01/19] Add dummy Aspeed AST2600 Display Port MCU (DPMCU) Date: Fri, 7 Jan 2022 17:21:24 +0000 Message-Id: <20220107172142.2651911-2-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220107172142.2651911-1-peter.maydell@linaro.org> References: <20220107172142.2651911-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::429 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x429.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1641576266620100002 From: Troy Lee AST2600 Display Port MCU introduces 0x18000000~0x1803FFFF as it's memory and io address. If guest machine try to access DPMCU memory, it will cause a fatal error. Signed-off-by: Troy Lee Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: C=C3=A9dric Le Goater Message-id: 20211210083034.726610-1-troy_lee@aspeedtech.com Signed-off-by: Peter Maydell --- include/hw/arm/aspeed_soc.h | 2 ++ hw/arm/aspeed_ast2600.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/include/hw/arm/aspeed_soc.h b/include/hw/arm/aspeed_soc.h index 8139358549d..18fb7eed461 100644 --- a/include/hw/arm/aspeed_soc.h +++ b/include/hw/arm/aspeed_soc.h @@ -139,6 +139,8 @@ enum { ASPEED_DEV_EMMC, ASPEED_DEV_KCS, ASPEED_DEV_HACE, + ASPEED_DEV_DPMCU, + ASPEED_DEV_DP, }; =20 #endif /* ASPEED_SOC_H */ diff --git a/hw/arm/aspeed_ast2600.c b/hw/arm/aspeed_ast2600.c index 0384357a951..e33483fb5dd 100644 --- a/hw/arm/aspeed_ast2600.c +++ b/hw/arm/aspeed_ast2600.c @@ -19,9 +19,11 @@ #include "sysemu/sysemu.h" =20 #define ASPEED_SOC_IOMEM_SIZE 0x00200000 +#define ASPEED_SOC_DPMCU_SIZE 0x00040000 =20 static const hwaddr aspeed_soc_ast2600_memmap[] =3D { [ASPEED_DEV_SRAM] =3D 0x10000000, + [ASPEED_DEV_DPMCU] =3D 0x18000000, /* 0x16000000 0x17FFFFFF : AHB BUS do LPC Bus bridge */ [ASPEED_DEV_IOMEM] =3D 0x1E600000, [ASPEED_DEV_PWM] =3D 0x1E610000, @@ -44,6 +46,7 @@ static const hwaddr aspeed_soc_ast2600_memmap[] =3D { [ASPEED_DEV_SCU] =3D 0x1E6E2000, [ASPEED_DEV_XDMA] =3D 0x1E6E7000, [ASPEED_DEV_ADC] =3D 0x1E6E9000, + [ASPEED_DEV_DP] =3D 0x1E6EB000, [ASPEED_DEV_VIDEO] =3D 0x1E700000, [ASPEED_DEV_SDHCI] =3D 0x1E740000, [ASPEED_DEV_EMMC] =3D 0x1E750000, @@ -104,6 +107,7 @@ static const int aspeed_soc_ast2600_irqmap[] =3D { [ASPEED_DEV_ETH3] =3D 32, [ASPEED_DEV_ETH4] =3D 33, [ASPEED_DEV_KCS] =3D 138, /* 138 -> 142 */ + [ASPEED_DEV_DP] =3D 62, }; =20 static qemu_irq aspeed_soc_get_irq(AspeedSoCState *s, int ctrl) @@ -298,6 +302,10 @@ static void aspeed_soc_ast2600_realize(DeviceState *de= v, Error **errp) memory_region_add_subregion(get_system_memory(), sc->memmap[ASPEED_DEV_SRAM], &s->sram); =20 + /* DPMCU */ + create_unimplemented_device("aspeed.dpmcu", sc->memmap[ASPEED_DEV_DPMC= U], + ASPEED_SOC_DPMCU_SIZE); + /* SCU */ if (!sysbus_realize(SYS_BUS_DEVICE(&s->scu), errp)) { return; --=20 2.25.1