{"id":2220663,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2220663/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260407043614.372871-5-alistair.francis@wdc.com/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.1/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260407043614.372871-5-alistair.francis@wdc.com>","date":"2026-04-07T04:36:13","name":"[4/5] hw/timer: ibex_timer: Update IRQs after writing CTRL","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"fee22d4ac0430a50679c58d1206e9daedc6ab9b0","submitter":{"id":64571,"url":"http://patchwork.ozlabs.org/api/1.1/people/64571/?format=json","name":"Alistair Francis","email":"alistair23@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260407043614.372871-5-alistair.francis@wdc.com/mbox/","series":[{"id":499030,"url":"http://patchwork.ozlabs.org/api/1.1/series/499030/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499030","date":"2026-04-07T04:36:12","name":"target/riscv: A collection of bug fixes","version":1,"mbox":"http://patchwork.ozlabs.org/series/499030/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2220663/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2220663/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=KpyP6wZd;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqx002B8Gz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 08 Apr 2026 05:21:52 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wABXe-0000Ij-9v; Tue, 07 Apr 2026 14:52:50 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <alistair23@gmail.com>)\n id 1wABUK-0002am-CG\n for qemu-devel@nongnu.org; Tue, 07 Apr 2026 14:49:24 -0400","from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <alistair23@gmail.com>)\n id 1w9yDT-0007IQ-38\n for qemu-devel@nongnu.org; Tue, 07 Apr 2026 00:39:09 -0400","by mail-pj1-x102d.google.com with SMTP id\n 98e67ed59e1d1-35c238f1063so2774690a91.1\n for <qemu-devel@nongnu.org>; Mon, 06 Apr 2026 21:39:06 -0700 (PDT)","from toolbx.alistair23.me ([2403:581e:fdf9:0:6209:4521:6813:45b7])\n by smtp.gmail.com with ESMTPSA id\n 41be03b00d2f7-c76c6491fedsm15809963a12.8.2026.04.06.21.39.01\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 Apr 2026 21:39:04 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775536745; x=1776141545; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=gWzjUTCd9em7jjYKpUK6oDcQv+hHOaT5Rzf5ShfZusE=;\n b=KpyP6wZdTVs3dB9ozJoZF/kxnCpjTLa7BtQ2MXaDcxxViv28Za9D920Zn4XY6q0hRS\n IKBYRhHlWKjgOg8MoyfRGX2ujpIc7kDnSCGAdlekI/NeV6FlwtgySNX41MGVTcza6o7x\n 5NyjU+43SoMcWax/8uqyGLG41lsnPiIfvRvDZZJU1Y3c8HqpwmWGY1cwrdDBl5VTfvos\n 6V7raHKTfTb5IEAIRcbmRmzZP5kHB38pQoOwmpLHa22YCtAlrak2L6Xi57Ugv84khTIL\n NZJ3/d1Fnf0JAvXFYGp9INqKNLPwr8dmg9K2+Ckinvld+1HTrHJ1hX3NjAZaYVI9O3Z9\n GjzA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775536745; x=1776141545;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=gWzjUTCd9em7jjYKpUK6oDcQv+hHOaT5Rzf5ShfZusE=;\n b=IiIugtzby5KzAMTFzpIFFsz8MP/+2IkDjlrF040z/wpTwUJkG37YYXQ/rbvlIMs/GF\n nwSYOYNrjRNDxfmRfeF1kYWMVeqiHurd4BYbsT05mRSZiCkQzcwOmqZHjvKsqpf2Qgv6\n /53YDq45pzyKleqqQ986trrknY5sQ2WEOvfcaZj6Qwn3H08MIiGDfwQoWJHRUGIbU/Ec\n lJvAFfB472maQw0wlHz8dgKjXhnR5eecnYQMy8fEhEYiXn0K1eGNVI9NVX4hdrMpZYY7\n xwNktLgwxVyTT0EwMJPZWKz/+KhYEabLmOV9BmI2HVeawAsN/nBJN2G81EiGcEWFJAS7\n DlcA==","X-Forwarded-Encrypted":"i=1;\n AJvYcCWIw4Rz+LM+KoM27TxrIFU4MUFBK+qiLiMypGFtjxJLxzKaXtU21IaxwhwgZz5fiCgCU97rHq36z1S/@nongnu.org","X-Gm-Message-State":"AOJu0Yy2aiySqLzERnOZ5cyw11xmPa5sppaJwQ6jCGRvyoaoi5++kXuy\n hPd1wXOI7iCO6a6UlfwwVZcaq7mAyIEWQTuUJ3VAxnWCxs0Qt/hCkAFd","X-Gm-Gg":"AeBDieu0mEOWkwhT3YVUnVBtbRXhe89/dk5m80OenR7u5nHzm4js4drHoTCZ0AmMyP8\n AP6v8soxT/EVL662ju3Y3TX4MSPLDvoCYoOvYiYqs1ZCzr5tAkL/XxskpxJS7wOM+5PtmYF9KUA\n MbOhmHcuGgJBRkf8ADvQhlfkMbiyBLT7VD2rW7EcJnE4I5dCew0DQhl7p9orz+VIAlu8eSO+5gn\n mzRy9xlDe05Nb/tNts1zsGHiwrqXZFENyBVdSxKQZrBJ5gtSI5jPiQdAyBMOSuBD6AjdSFxS0Q8\n AIiR6ke+EZp1sLRs9lfFAQh1FyQVEf2bfouqYLc7ZWKnMTDt2NY3OjMVsvKNVf2RxN9EN8DYSxl\n 6LrpamJsqgoTXQM0I4zxMd34DwhfGElUsg/EQwDzlqyxSYO9bTYbsITer799SD/X9zOYTp8i+NR\n Ts8KVb75+00pfIUDX0UPIFeBrWnI29uTs8oLvAhiCJ","X-Received":"by 2002:a17:90a:d40e:b0:35b:e51a:ec77 with SMTP id\n 98e67ed59e1d1-35de697176cmr13261499a91.16.1775536745580;\n Mon, 06 Apr 2026 21:39:05 -0700 (PDT)","From":"alistair23@gmail.com","X-Google-Original-From":"alistair.francis@wdc.com","To":"palmer@dabbelt.com, liwei1518@gmail.com, daniel.barboza@oss.qualcomm.com,\n zhiwei_liu@linux.alibaba.com, chao.liu.zevorn@gmail.com,\n qemu-riscv@nongnu.org, qemu-devel@nongnu.org","Cc":"alistair23@gmail.com,\n\tAlistair Francis <alistair.francis@wdc.com>","Subject":"[PATCH 4/5] hw/timer: ibex_timer: Update IRQs after writing CTRL","Date":"Tue,  7 Apr 2026 14:36:13 +1000","Message-ID":"<20260407043614.372871-5-alistair.francis@wdc.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260407043614.372871-1-alistair.francis@wdc.com>","References":"<20260407043614.372871-1-alistair.francis@wdc.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2607:f8b0:4864:20::102d;\n envelope-from=alistair23@gmail.com; helo=mail-pj1-x102d.google.com","X-Spam_score_int":"-17","X-Spam_score":"-1.8","X-Spam_bar":"-","X-Spam_report":"(-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"From: Alistair Francis <alistair.francis@wdc.com>\n\nWhen writing to rv_timer.CTRL after setting the compare values the timer\ndoesn't fire as we don't update the interrupts. Ensure we update the\ninterrupts after a write to the rv_timer.CTRL register.\n\nResolves: https://gitlab.com/qemu-project/qemu/-/work_items/2796\nSigned-off-by: Alistair Francis <alistair.francis@wdc.com>\n---\n hw/timer/ibex_timer.c | 1 +\n 1 file changed, 1 insertion(+)","diff":"diff --git a/hw/timer/ibex_timer.c b/hw/timer/ibex_timer.c\nindex 0f12531934..571633803d 100644\n--- a/hw/timer/ibex_timer.c\n+++ b/hw/timer/ibex_timer.c\n@@ -193,6 +193,7 @@ static void ibex_timer_write(void *opaque, hwaddr addr,\n         break;\n     case R_CTRL:\n         s->timer_ctrl = val;\n+        ibex_timer_update_irqs(s);\n         break;\n     case R_CFG0:\n         qemu_log_mask(LOG_UNIMP, \"Changing prescale or step not supported\");\n","prefixes":["4/5"]}