From patchwork Wed Sep 4 17:13:01 2019 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: 11131117 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0870B1398 for ; Wed, 4 Sep 2019 17:15:18 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D3B7821726 for ; Wed, 4 Sep 2019 17:15:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MAKIsy0b" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D3B7821726 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:35524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5YsG-0003JR-Dx for patchwork-qemu-devel@patchwork.kernel.org; Wed, 04 Sep 2019 13:15:16 -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-Google-Smtp-Source: APXvYqxQZOkt6h6QuO2t1OCqM53dErrR1xVza4kJQmJKgeridEXyn71exmK35BwWnUlfBZR5cwMLfg== 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_Mathieu-Daud=C3=A9?= To: Peter Maydell , Esteban Bosse , Andrew Baumann , qemu-devel@nongnu.org, Pekka Enberg , =?utf-8?q?Zolt=C3=A1n_Baldaszti?= 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 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_Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Clement Deschamps , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Luc Michel Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" 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(-)