From patchwork Mon Oct 4 13:47:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 515206 Delivered-To: patch@linaro.org Received: by 2002:adf:fbc8:0:0:0:0:0 with SMTP id d8csp4372207wrs; Mon, 4 Oct 2021 06:52:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAflFMZTszpAAQOnrXNQqCPi93U2Nb6EgOA2lQBDW08b5T8kZw2ufRM9MFbyL9ygw7STuE X-Received: by 2002:ac8:4e53:: with SMTP id e19mr13237270qtw.220.1633355539519; Mon, 04 Oct 2021 06:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633355539; cv=none; d=google.com; s=arc-20160816; b=qq7aJkXgwXNpCYhkR16Ikb48gxmLCGhQUYhJqqnzNyS8/cq71aiW0ZrL3ifOSgISt/ 5uFopPXIq3BOwsMd8IgORVyMgrNZ4PARTKYo0asZeR0dO6uFcWB1m9d4eUDmRkW8qCU9 fWlJghMJJSekR9qDMmDp2mPD2+sYAOiPuribm1bBifQAv0lwk6Ecl0iNMDwRpkD2MkdB 5MXonbcKdOHT0ARUwKBJJ3pfND5IK4ujy0iSM5B+A2BgleWx8Bl+Cd8wDgwErH0aWb5X etQ/Hk1ZNGHEjG6lV+C2MnplVl0lYQYs9xHgLsA/55vT9y5W+G/4v0D0WizlI8GpOEcN D4cA== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=lIR/QX1UEyMaEQkzlnv0koPsuyPpzDzqnJZkMaWnDRw=; b=LgkDJ/eeNXFSVj2VacHZURnG7HrGbP35qDcDIqx0WuOkzRCbIt35CK9NcYSv3Y0Kiw /gPgCr7rQxRz57ThkveuOBzLUGeNHyt4o5nVq8tMeIdIdJVQqqS7deGUFtcIuNNVOqsH NvaOaCnMCP27GtzTLQTTFiNHMMqImb3CkeWwmDJYVgbDUr5GbFF414h5V8NpwxQmKkgg yoHN3Goyr5Hs97TyYI3maptTJDoEFdh+QYXhRsWBkTTR9neMlMg6kG0w9ziKzReGttwf rnnmJUvauL27trLRNcjku5oB2xHKITV1Zfhq9vWfh7h7kIZm8M6UbK7nj6s/KsD+odoI VDiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MpHMUEsJ; 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=fail (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 l26si9416777uac.121.2021.10.04.06.52.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Oct 2021 06:52:19 -0700 (PDT) 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=fail header.i=@linaro.org header.s=google header.b=MpHMUEsJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXOOA-0003g8-Td for patch@linaro.org; Mon, 04 Oct 2021 09:52:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXOJp-00062Q-3q for qemu-devel@nongnu.org; Mon, 04 Oct 2021 09:47:49 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:37583) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXOJm-0007Az-8Y for qemu-devel@nongnu.org; Mon, 04 Oct 2021 09:47:48 -0400 Received: by mail-wr1-x42d.google.com with SMTP id e12so10657202wra.4 for ; Mon, 04 Oct 2021 06:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lIR/QX1UEyMaEQkzlnv0koPsuyPpzDzqnJZkMaWnDRw=; b=MpHMUEsJ982icNkG1XQ1Gfu47udzGozksirRt3xXnr1w2t+Yj7ahjkG6wdr5oCob6l PVIvV5NQAFMgTvqb0SCYSEppUmKTFZX/Iv89AsXBmYRW9S/GwLFturOIdwnsbSMw5EK/ QFldFLW52dm4oqucRRghu5MAX05C7CF8MYJiFZqqhx0Uw4js0+ol1hE+wt3+LR8RpIgo WEkLCt/UXFUXm3eFAcFPPF+yzFpVf8uifzYdQw44tqF6IYpp7wiDaiBVQJZW8GOBMTg4 ZVlPD6kJiYjrT5yh3bXvY3uwR5NVsfHPJQxFAsgiX78eH4FFRZg9matQbuzvowCD8JGW V7/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lIR/QX1UEyMaEQkzlnv0koPsuyPpzDzqnJZkMaWnDRw=; b=UD86s0A4/QOzlBFK6x/fC+dIg+P7zCbaPgRfZVJCOSkGk9w7l6TExIfBdNdwI6f6Mf kZeSL527mxlf36wbCYhdQ2qlfNBDjCUX9l9FKNE+1tlIiF9OHWdE80zFB6ljdckLqnYe /6IoJ4dBM9bNkjpy1pg9btQtmMgSIQLSVxyAl0yLqEcJodxFSruJnw2fyYOSnII3XnjF PeGiIiCzbW2drzCMXcl3YzSc1JOI4MZfqC/C6fU8yBvCErdy8cG/17ma+CVT13tRmnlq +NYwpxTZCjiW7xswUgN0TibM8CAZrn/nRICc8GxHQw6BJ2/hAhf2DKBzRtL3o3BNY5Kj TH8w== X-Gm-Message-State: AOAM530SaoMZhW11lRrYyyikSbDrzXL/+4RMmvvHYEIPjkk2GPEwGAIn Wfp0S+ms9pF4qz8r6isPxL152A== X-Received: by 2002:adf:c70b:: with SMTP id k11mr13947426wrg.154.1633355263744; Mon, 04 Oct 2021 06:47:43 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id q10sm14357977wmq.12.2021.10.04.06.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 06:47:42 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2CE6F1FF99; Mon, 4 Oct 2021 14:47:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 2/7] hw/misc/bcm2835_property: Handle the 'domain state' property Date: Mon, 4 Oct 2021 14:47:36 +0100 Message-Id: <20211004134742.2044280-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211004134742.2044280-1-alex.bennee@linaro.org> References: <20211004134742.2044280-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Peter Maydell , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , f4bug@amsat.org, Andrew Baumann Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé The kernel is happy with this change, so we don't need to do anything more sophisticated. Reviewed-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée --- hw/misc/bcm2835_property.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.30.2 diff --git a/hw/misc/bcm2835_property.c b/hw/misc/bcm2835_property.c index 791c7554ec..b089e47584 100644 --- a/hw/misc/bcm2835_property.c +++ b/hw/misc/bcm2835_property.c @@ -133,6 +133,14 @@ static void bcm2835_property_mbox_push(BCM2835PropertyState *s, uint32_t value) resplen = 8; break; + case 0x00030030: /* Get domain state */ + qemu_log_mask(LOG_UNIMP, + "bcm2835_property: 0x%08x get domain state NYI\n", + tag); + /* FIXME returning uninitialized memory */ + resplen = 8; + break; + case 0x00038002: /* Set clock rate */ case 0x00038004: /* Set max clock rate */ case 0x00038007: /* Set min clock rate */