Received: by 2002:adf:ef42:0:0:0:0:0 with SMTP id c2csp978623wrp; Wed, 4 Sep 2019 10:14:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxp8z/DlQBQ2YWZ7OF3eQtjXv8ICHopKV39fZpGJjr6s8Y9gFAKWstiND8rfPfQCjnBDj4r X-Received: by 2002:ac8:6bcf:: with SMTP id b15mr41189590qtt.239.1567617286566; Wed, 04 Sep 2019 10:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567617286; cv=none; d=google.com; s=arc-20160816; b=KYzysGAWprCj0SUIQ/3gxJUE+54wxxuN8YAQxxTNO+zatoGYO30kkGnOyyoa/Qolav 9MYTYblaFh9ZDIW0c+C4OmXpqyE1Ov7CyLSCii847apwqqV4i5IuFUzf0abA06eL5M1m nh0HiA+Tt/sXMYPUerFhTTNmOh8EaPkr5n8t4zduhXJs4tZTQ1nNCxoXWZlG4JjdEocb fYI05a1cACmbEuJHOIpt0s1DOlOhDy56eg/nLs+ug+76YVRSAPicDRhZ/z4LMgXWOQuF Kcf7XVIsNlhTS1vvp7+PkDXIUhdhSJAeBukweeRjO0iR1C3Ma5BEqyzkyzZA7MTKHmo2 WsIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature; bh=HKqL9ZWZyoX9rq8jSewYQgNwV5pak8csw5WRGNU8fT4=; b=yQYShLgSkzb1hlbgCCKTRfnSnFzaSxnIqHiwNA6cIePuXUYFx763DHiPEkyyNzP8nH 5FlwRHBe6fhcWYdkc+wHD71wG9Na5V9c+j7P336m6djWcfoNyKSFrVKlWGzATeItXuz3 1cWVwswmu/66Ks+22iv/SMogQ7iKzhrmB3tNVEV25ydfpQ1lA9oEGzmTtEQQEDdiOyRk 9Upe9smaWf9tfWKfSpiR0R0PsUJjU9P329ZWaSSrFMVQjY2LbacQqgsd4pR/CYHM0FCj gzD1+oARDGazeK+YBIhwaXxpoxLrlrxr/h7QBFgCl+02bZoW0eMoB2xNMIX6B/duLG3Y U0bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MAKIsy0b; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u17si15467421qvg.177.2019.09.04.10.14.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Sep 2019 10:14:46 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=MAKIsy0b; 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" Received: from localhost ([::1]:35506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5Yrl-0001Lk-FM for alex.bennee@linaro.org; Wed, 04 Sep 2019 13:14:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48323) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5YqP-0001IO-Pk for qemu-devel@nongnu.org; Wed, 04 Sep 2019 13:13:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5YqO-0006yN-J1 for qemu-devel@nongnu.org; Wed, 04 Sep 2019 13:13:21 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:38168) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5YqO-0006xq-AH; Wed, 04 Sep 2019 13:13:20 -0400 Received: by mail-wr1-x42e.google.com with SMTP id l11so13287194wrx.5; Wed, 04 Sep 2019 10:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HKqL9ZWZyoX9rq8jSewYQgNwV5pak8csw5WRGNU8fT4=; b=MAKIsy0b4kNQoSVuI8b4dWYgKCHioDrLYFEBmlWnfzZBlRAscFbRjM0biwqimEi/tf 1ZR4mSsRMh17EiCTf2ouO244s+TnZYY5p/tddCo8FWFUxZMlCznQTLSCcDZ9BQIEJTjp kcP/rdWAV1QBwnbT0GGvO2YAUwyT/6lmb5v/b60Yap3TGinxldvknJL/zysE5xG9Nba3 OBQLZosuO1mtScjeHFNpUvTBidAi4wx6KXEBmrmayIHNKYGW9D/Ya1l4NPhLmjPfxRF1 4vAYYAwnsp6dqA0ynB0hlJyFZ/z3l1g0Cg2aIsgKuQ6OQQLsXBsSEvKVpLFdw+QqMGp3 B/9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=HKqL9ZWZyoX9rq8jSewYQgNwV5pak8csw5WRGNU8fT4=; b=KSOOR0NYZ63xFliLnqj2M3toTPxbxjImsClGXw6wHuS4EyCYkn8QFi8nu9GvkPMfve gBUQNEu7kDJNItegURyXS0MsWXyDZo60tbGYS5ed836bUCreh9sdFKhSS2onTaYoHBL5 D3H1NGEykjtqTDIH5GZoxoCM7AW3CgB7CJP9GtfruWxJFXMG+9GXbngGGvPWp5mn3nU0 vvPyr2vLSfIC7+EvDlaZObRB4dGecKFotxhJMs/eg5D26mtAX4Qgo0tcv0HAGGlKUW6P +9u+iaMFzDKRHthbHrrg6MYrzzt5FuGQ9hOr4cubYyHgBf1awLWtt3SuQdy3UjlDxnL5 Mu1w== X-Gm-Message-State: APjAAAUtfWNm5xHpfTzv2TyCYDHAP10XnsfdVVit8JKM7mFrKGzBNVDt P80Dz7Ef2Uc7DWt8p5JnxpI= X-Received: by 2002:a5d:4382:: with SMTP id i2mr33855811wrq.297.1567617198245; Wed, 04 Sep 2019 10:13:18 -0700 (PDT) Received: from x1w.redhat.com ([195.166.127.210]) by smtp.gmail.com with ESMTPSA id p19sm2339512wmg.31.2019.09.04.10.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 10:13:17 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Peter Maydell , Esteban Bosse , Andrew Baumann , qemu-devel@nongnu.org, Pekka Enberg , =?UTF-8?q?Zolt=C3=A1n=20Baldaszti?= Date: Wed, 4 Sep 2019 19:13:01 +0200 Message-Id: <20190904171315.8354-1-f4bug@amsat.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42e Subject: [Qemu-devel] [RFC PATCH 00/14] hw/arm: Add the Raspberry Pi 4B X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Clement Deschamps , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Luc Michel Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: abwb9P4yOKlk Esteban wrote me over the weekend asking about raspi4 progress. I cleaned up my patches/notes to pass him. Other help is also welcomed :) I got scared trying to understand how to use the GIC, and wire the various IRQs. Most important notes about testing are in patch #12: "Add the BCM2838 which uses a GICv2" Not much works yet, it only runs a bit until configuring the GIC. branch pushed at https://gitlab.com/philmd/qemu/commits/raspi4_wip Regards, Phil. based-on: 20190903120555.7551-1-philmd@redhat.com cutils: Move size_to_str() from "qemu-common.h" to "qemu/cutils.h" https://lists.gnu.org/archive/html/qemu-devel/2019-09/msg00229.html Philippe Mathieu-Daudé (14): hw/arm/raspi: Use the IEC binary prefix definitions hw/misc/bcm2835_property: Add FIXME comment for uninitialized memory hw/misc/bcm2835_property: Handle the 'domain state' property hw/arm/bcm2835_peripherals: Improve logging hw/arm/bcm2835_peripherals: Name various address spaces hw/arm/bcm2835: Rename some definitions hw/arm/bcm2835: Add various unimplemented peripherals hw/arm/bcm2836: Make the SoC code modular hw/arm/raspi: Make the board code modular hw/arm/raspi: Define various blocks base addresses hw/arm/bcm2835_peripherals: Map various BCM2838 blocks hw/arm/bcm2836: Add the BCM2838 which uses a GICv2 hw/arm/bcm2838: Map the PCIe memory space hw/arm/raspi: Add the Raspberry Pi 4B board hw/arm/bcm2835_peripherals.c | 49 ++++++++- hw/arm/bcm2836.c | 103 +++++++++++++++++-- hw/arm/raspi.c | 142 ++++++++++++++++++++++++--- hw/char/bcm2835_aux.c | 5 +- hw/display/bcm2835_fb.c | 2 +- hw/dma/bcm2835_dma.c | 10 +- hw/intc/bcm2836_control.c | 7 +- hw/misc/bcm2835_mbox.c | 9 +- hw/misc/bcm2835_property.c | 28 ++++-- include/hw/arm/bcm2835_peripherals.h | 18 ++++ include/hw/arm/bcm2836.h | 3 + include/hw/arm/raspi_platform.h | 79 ++++++++++++--- 12 files changed, 393 insertions(+), 62 deletions(-) -- 2.20.1