Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33A89CD98E1 for ; Tue, 16 Jun 2026 15:00:02 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wZVGM-0006bY-TJ; Tue, 16 Jun 2026 10:59:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wZVGJ-0006ae-Q0 for qemu-devel@nongnu.org; Tue, 16 Jun 2026 10:59:35 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wZVGG-0000ze-2q for qemu-devel@nongnu.org; Tue, 16 Jun 2026 10:59:35 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65GDxgLv3764443 for ; Tue, 16 Jun 2026 14:59:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= cJUXQvNAPsOTQ369p2XR/ExFmKzy/Y6bGHq3tSZ79wc=; b=jCQsRXcTm9Snc6me Lk1xySTKTy4UX3n5B77BVrDtkwTRCTicKlEWpTimYaYYKpYA7CW11T/HfdbHiR/l e/r9VCk2ujGdzX2P7aYRjZN/uocxkFr2lziUipU/QGFC00FoHKRPhDT50/p2WFt8 wc6hvKOESLb5ESqCwHJ7pVQXO+E/N8UKRJfTLIIAMGGak/Prif4cXfN9ZpFItbVV bBB4hdRpJy9t+Kxz+daAZGCiDzHPYglGIqhS4lv+KhRv5YrNBRKy9nNysg7Qty/r lCdxFnFhS8fjpy38Lr/f833BLKaQAlw9Gb+7In4O/toU7Z8AhzzHfvKB67ulVw2z HKA/mg== Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eu09kae64-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 16 Jun 2026 14:59:28 +0000 (GMT) Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-966d40aca0eso42325241.1 for ; Tue, 16 Jun 2026 07:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781621968; x=1782226768; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=cJUXQvNAPsOTQ369p2XR/ExFmKzy/Y6bGHq3tSZ79wc=; b=KU4EYz1koi80Yn/yDrzGCBSXN+AlIlXhccC4vr0Is//jTLlWoDQ2I3V2eH9Ui/QEyk DGVMeqqzD+UBTKWMg4IQrF+uok3IQ7iOqhzZM9HSQKnWHKnCyBh2peiK1dwqn/bHdrjT 4YGC574a25CHxlvt/iL9LYFs03xy/zVG2QEF14KxXcmPyyN7TVE8m4p/NM2SwamOwRbS M69xosj/+5zFhU9tO2vkH7ICqmIjeZ2YdHWmyaR9P0B/Shxht4RJeoJy/IFU5Cuj7E0o XQonAVbr5PwQbBISIQ7rR5VeP3GE/WKTpp/K82+VjOqVFPlyP4AN1aMjb740GYofIG8s Daag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781621968; x=1782226768; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cJUXQvNAPsOTQ369p2XR/ExFmKzy/Y6bGHq3tSZ79wc=; b=Rh6QGDoTYqfetc7ajeu3VypgJpT8AU7c1dPHkM1e1gQUdcznip/6OzTqOuJCybGyjx A+PapBZA8pTgffLHHZGO91jb/Wil9fls1PcCOCb2iCtLrEgnNkBwh4msaUF+oJwW4VqO Y0vtds3W+wf/SfglhCwY0/f1q2Kr59KZF4tdtTvE50Wrzax7U2XJFboWNkvKOzvn7r1A BALOn38+EWezET6hmNo31CyfwBQB7HEkECsY3iGu6RiT0hbP6Kp66H/L1i0oiRHjXWcl daTbjkCHpglbmd4oXMioRRW5fOopvcKS9EubZKAiEUgnX+Ywy/3g4a74A3ez23zto91L 3mlA== X-Gm-Message-State: AOJu0Yw5tuiEEarpf/bIfMP4IxdggtMw9dWkK3KVKxkO55ax0TDaiN+j 7x54g1YBS2hZesJ6R/RTXGzOpG560Rwp6A5QwhEqb1copjKWBGbXTdi2V2qohL0HfT7h6mXtm93 w/au9f34nwlF18Pf6zfVUlZ6UFnQBBQOrJmoVuVWfrL+ISqNqr4CJIJDUfA== X-Gm-Gg: Acq92OFZERaC4CRqRVYXYuFiJC1y5OBjlS+jVLkuQ1SzRLiZp+P6IZh2MOg/SFvqr7i fnotnWKWAeEJrb7EaFRXAvzMsMDVsM4KfrSB+lpNYGLdsmS7RdaDYOtpDtUC2XJ3ix66CAZ16U5 AdXPWm8LI4+vViohyu5/OuruYk5t0K4MQ97Vg/0enm64ZxzzqPvhBb2PKi5+iX2ThcLrAzoaufR s2Z/njGY1fxUmiKBtabe3WLtRhSVgQWY8qDadsM+ipm5HM32HuQTTUA3HA5TXD5V4/wFok1Dt/a 7f+NxyXmyUqRE3U8O7rkrReHzPhDXKwnKPMEMOzs37eKUhW/KT1PaU1m+kOEZ+1oQkLN/WiUFHs cgHteM5J1ASKPXjTivz3o2boOYxlI5wx6QfbyuA6maB3cOsNvtljGpuxXIJ4OcjrOTDkGkAXh X-Received: by 2002:a05:6102:160a:b0:636:984a:1e5d with SMTP id ada2fe7eead31-71f5eb00fb7mr9387564137.11.1781621968232; Tue, 16 Jun 2026 07:59:28 -0700 (PDT) X-Received: by 2002:a05:6102:160a:b0:636:984a:1e5d with SMTP id ada2fe7eead31-71f5eb00fb7mr9387540137.11.1781621967791; Tue, 16 Jun 2026 07:59:27 -0700 (PDT) Received: from [192.168.69.214] (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490ea9520f9sm260532455e9.1.2026.06.16.07.59.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Jun 2026 07:59:27 -0700 (PDT) Message-ID: Date: Tue, 16 Jun 2026 16:59:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] hw/arm/bcm2838: Route I2C interrupts to GIC Content-Language: en-US To: Peter Maydell , Nicholas Righi Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= References: <20260609024027.22140-1-nicholasrighi@gmail.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE2MDE1MyBTYWx0ZWRfX6pGa2KeKbfyb xsmVywRfWoB5nE0Dy2qiWZG7MqBRkws6R5fjBRYeG1+oslIUVQJxbLX4ak11rmEp3NJkJ3jRhNd f8Hhe0zqCH1K6jmGCRKeUxkOXUpQzRY= X-Proofpoint-GUID: zltxTM9L0x54ZUqGytXginhLWY6DF-7X X-Authority-Analysis: v=2.4 cv=DoZmPm/+ c=1 sm=1 tr=0 ts=6a3164d0 cx=c_pps a=ULNsgckmlI/WJG3HAyAuOQ==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=LfsA7Cq2GQzuzbZ-N0YA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1WsBpfsz9X-RYQiigVTh:22 X-Proofpoint-ORIG-GUID: zltxTM9L0x54ZUqGytXginhLWY6DF-7X X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE2MDE1MyBTYWx0ZWRfXzonPhhgX5UGg dsUZXdU2LgKCkuuMsOar3te+lsntQ6E1Bb0Bn3eNQz8R7VeCcfL6oipWDUuQkVTHqBy4BgoTr1m QWVQeavUmRTpwxNRWvtFbX1X3yo19L2i6U9GP/6Cs8S24zinm/xSUXK1jpyMQQllPMUHOldg2d+ qpp9p2UEe0Ci7h+Nr8bOlXOlZVorV8Iz8cKtxqDMFbnb4v70dLTRm5Rqxq/Pk0s3/x3b+bA/Pbi 89AEfj+lqWyIVX/AF7jy+sYIwZbtaAQprLew6eNcQ2W9+tLlqoeaX8r4VBv2322yIDsOtUAId/F jVwGILUoXGzWKfeuwxpb36Xz3q1rzWSBIf5KGWnFdPc2p9axFjHscTqzj0N03J0h3+pFnB1aA7K LtMEtcDNWeHhe1jurPcoRKgAYnuU3Pg7eGySmJLBpYWuiQEvLCxcrf8tif/xJQvRaWvW8YD6T3Q wkuNcnoLnBKhAK/BTLg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-16_04,2026-06-15_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 phishscore=0 adultscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 spamscore=0 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606040000 definitions=main-2606160153 Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 16/6/26 13:10, Peter Maydell wrote: > On Tue, 9 Jun 2026 at 03:40, Nicholas Righi wrote: >> >> The I2C interrupts are only routed to the legacy interrupt controller. This means >> that for modern device trees that use the GIC, the interrupts don't work. This patch >> adds a splitter to route the I2C interrupt to both the legacy interrupt controller and the GIC. >> >> Testing >> >> Add these lines to QEMU invocation >> >> -drive if=none,id=i2c_storage,format=raw,file=eeprom.bin \ >> -device at24c-eeprom,bus=i2c-bus.1,address=0x50,drive=i2c_storage,rom-size=4096 \ >> >> note: eeprom.bin is all zeros >> >> Before this change, running i2c get to read from EEPROM would result in this >> >> i2cget -y 1 0x50 >> Error: Read failed >> >> After this change, running i2c to read from EEPROM results in this >> >> i2cget -y 1 0x50 >> 0x00 >> >> The eeprom can now also be enabled in the device tree. Before the >> eeprom driver load would fail due to the read failing >> >> ls -l /sys/bus/i2c/devices/i2c-1/1-0050/ | grep -i eeprom >> -rw------- 1 root root 4096 May 17 16:57 eeprom >> >> Signed-off-by: Nicholas Righi >> --- >> Changes v1 -> v2: >> - Use a splitter to route the OR gated i2c interrupt to both the >> legacy interrupt controller and the GIC, instead of just replacing >> the legacy routing with the GIC routing >> --- >> hw/arm/bcm2835_peripherals.c | 9 +++++++++ >> hw/arm/bcm2838.c | 4 ++++ >> include/hw/arm/bcm2835_peripherals.h | 2 ++ >> include/hw/arm/bcm2838_peripherals.h | 1 + >> 4 files changed, 16 insertions(+) > > > > Applied to target-arm.next, thanks. Too late but still it was in my review queue: Reviewed-by: Philippe Mathieu-Daudé