Received: by 2002:adf:e804:0:0:0:0:0 with SMTP id o4csp82552wrm; Thu, 17 Oct 2019 15:58:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBFZvT00n4MeHwn73SiVwU/V9FKUcCJxY9X000RnUb/ONC9fDJVwpthjw2notAJLUG/V+m X-Received: by 2002:a0c:fd46:: with SMTP id j6mr6413022qvs.209.1571353131007; Thu, 17 Oct 2019 15:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571353131; cv=none; d=google.com; s=arc-20160816; b=KSa7fshUwJNXgipzx87jVvWTXm6k2p63ccsCqsSTkW495rGDmJ2YFPG9UVgIRruTD1 mvay4hCgLlTUFDwYsAjLAe2bGcenY0eB7axQ2H+c+6tvWS7VnXSM24oODUgTJ33Dhqom 4dtALcNq0Y3LTA3dNwEXnoKKs0Y/TyHC8y4rVGx3wKmu87SqOW2Vnx1JDIjJmjYw7L+1 PHshwIRVYmt5Y2R+k+jKeTSRzf9702cTNIubASOCS6htsd/qGEZv0t7+ISN9bcy3hZ9h GlINEH6Dr9mUGSvIwrZlIHK6uO26EpQqPqTi8nmCaN85YenwYls7of5GPBfG5kmDsuCm voqw== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=lVgPPsMZxQlKV7Uev3P1rYQRpbx5QCi6gWz7bM0qE7M=; b=JHmUfLUsEUq03gNexbcq6X+pTkV2xs11u7N34pXLHkvlFCbN1Y5t6b5qZaRjmE5TYp grvVLzjBfK4r7PetHDMwHMXRp9BvS1yAKhCzCnaD4f3DfsCjSFwhp5BK5TkSI7MfDtp3 L5lAKpQkhzbXWrlyQcfDMAowV4fYjW5/4Agj1THNOq0IE6WcJek5tdNM6mJ72hix+Gha sJxRjCCNjzeqyKGgMNEts0Hfp4OCI7y1xO+74be55WPnAvuvyxCQvw630vy34nfDcZ6J xCJnxpOVV+0THRveFxiEMJKBU8rcnhYVnhEoNRAQnAoyYjdqETZyXfIEwpvLz9Ql9mJE Uszg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=fccyx991; 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 28si3724216qkr.140.2019.10.17.15.58.50 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 15:58:50 -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=fccyx991; 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]:33774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLEjK-0000Gj-4o for alex.bennee@linaro.org; Thu, 17 Oct 2019 18:58:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40963) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLEid-0000GE-Q5 for qemu-devel@nongnu.org; Thu, 17 Oct 2019 18:58:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLEic-0002H8-KZ for qemu-devel@nongnu.org; Thu, 17 Oct 2019 18:58:07 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:39248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLEic-0002GJ-Bp; Thu, 17 Oct 2019 18:58:06 -0400 Received: by mail-wr1-x441.google.com with SMTP id r3so4141803wrj.6; Thu, 17 Oct 2019 15:58:06 -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=lVgPPsMZxQlKV7Uev3P1rYQRpbx5QCi6gWz7bM0qE7M=; b=fccyx991Ntw9hV16bt7CpnqelzTm4j8u6O4aLlsyoIGOTUA4RkjqLhjyJVdNjDa+lx jGpCcZBrlCSKJ18QjWAy0lTTLRhpTad3y5v87+1yqybiR0X8Sa2DJqC1aYqu1zwObpnc 4LlxiC4FLLuUO57H3HQodAi3VllMmaMz0im21q/M+2D4IXVqsGfSujRIy4BTa5Jn8mrG /i138C8HiFUNMPvjBHthod6pfUt6VljNoembE5eksGVa8e5RholvIC+qlQ1Ek/PaWh9x XZV1FsgXKDdQwYfaVLaLh/ECNhgOBaPA8pkit3NCQP+sKhTRWeRFLJsFemC7kKSeJ1Jv Yy5w== 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=lVgPPsMZxQlKV7Uev3P1rYQRpbx5QCi6gWz7bM0qE7M=; b=plB/cMx+Lsb/zvHgODoRnuG646TQ1hgLzzCahyJJUEPPfCRniRTPHqMOkJpV6OQU8C Ky7YmwaAeiKHyx3UWR57hTJJhk538rnQq3F8PP6F0I66BBbwuhA8b/dgQEV93qw8fdjH kwq5oF6/wY+UokAwKElfYKF1ZVlkEUq4LnPs1+S3B9guSYMHYDvRNtxg2nrI18kZ8iZR pZK3ExihO+CuG2faMyldlhB27uqX1gm17ZHAFi/Qj3hRayogX/CUlof3Bx+CPziokVYC Pf2uFCKuvecE3/jiKJUmEQsrmtIk1YDE5UxFA20peA6OOvQOnjkz8DoKcnZEYtFRmluU KUYA== X-Gm-Message-State: APjAAAWsM6LxD2KSUZVy2ZQDlbFpHoeZaGd8N7BEYT+v7NozugjbAQH2 g4PnOvQz59YAv8b5VSEXkEUr3Pmo X-Received: by 2002:adf:a54e:: with SMTP id j14mr1986461wrb.265.1571353084236; Thu, 17 Oct 2019 15:58:04 -0700 (PDT) Received: from localhost.localdomain (14.red-88-21-201.staticip.rima-tde.net. [88.21.201.14]) by smtp.gmail.com with ESMTPSA id m18sm3993873wrg.97.2019.10.17.15.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 15:58:03 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 00/10] hw/arm/raspi: Add thermal/timer, improve multicore address space Date: Fri, 18 Oct 2019 00:57:50 +0200 Message-Id: <20191017225800.6946-1-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 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::441 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: Rob Herring , Peter Maydell , Alistair Francis , PhilMD , Andrew Baumann , Pekka Enberg , Esteban Bosse , qemu-arm@nongnu.org, Pete Batard , Cleber Rosa , Laurent Bonnans , Cheng Xiang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Clement Deschamps Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: uDZPa9roUF12 From: PhilMD Hi, Some patches from v1 are already merged. This v2 addresses the review comment from v1, and add patches to clean the memory space when using multiple cores. Laurent, if you test U-Boot with this patchset again, do you mind replying with a "Tested-by:" tag? The next patchset is probably about the interrupt controller blocks, then will come another one about the MBox/Properties. The last patch is unrelated to the series, but since I cleaned this for the raspi and the highbank is the only board with the same issue, I included the patch in this series. Please review. Regards, Phil. Philippe Mathieu-Daudé (10): hw/misc/bcm2835_thermal: Add a dummy BCM2835 thermal sensor hw/arm/bcm2835_peripherals: Use the thermal sensor block hw/timer/bcm2835: Add the BCM2835 SYS_timer hw/arm/bcm2835_peripherals: Use the SYS_timer hw/arm/bcm2836: Make the SoC code modular hw/arm/bcm2836: Create VideoCore address space in the SoC hw/arm/bcm2836: Use per CPU address spaces hw/arm/raspi: Use AddressSpace when using arm_boot::write_secondary_boot hw/arm/raspi: Make the board code modular hw/arm/highbank: Use AddressSpace when using write_secondary_boot() hw/arm/bcm2835_peripherals.c | 73 +++++++----- hw/arm/bcm2836.c | 91 ++++++++++++--- hw/arm/highbank.c | 3 +- hw/arm/raspi.c | 123 ++++++++++++++++---- hw/misc/Makefile.objs | 1 + hw/misc/bcm2835_thermal.c | 135 ++++++++++++++++++++++ hw/timer/Makefile.objs | 1 + hw/timer/bcm2835_systmr.c | 166 +++++++++++++++++++++++++++ hw/timer/trace-events | 5 + include/hw/arm/bcm2835_peripherals.h | 9 +- include/hw/arm/bcm2836.h | 11 ++ include/hw/arm/raspi_platform.h | 1 + include/hw/misc/bcm2835_thermal.h | 27 +++++ include/hw/timer/bcm2835_systmr.h | 33 ++++++ 14 files changed, 610 insertions(+), 69 deletions(-) create mode 100644 hw/misc/bcm2835_thermal.c create mode 100644 hw/timer/bcm2835_systmr.c create mode 100644 include/hw/misc/bcm2835_thermal.h create mode 100644 include/hw/timer/bcm2835_systmr.h -- 2.21.0