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 86CA2C98310 for ; Thu, 24 Sep 2026 04:50:38 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x9bPS-0000bU-PB; Thu, 24 Sep 2026 00:50:14 -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 1x9bPQ-0000aM-Op for qemu-arm@nongnu.org; Thu, 24 Sep 2026 00:50:13 -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 1x9bPP-0007cE-2s for qemu-arm@nongnu.org; Thu, 24 Sep 2026 00:50:12 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68O36gYH1574206 for ; Thu, 24 Sep 2026 04:50:09 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= XH1MckLYOHcs6kD8Zp13IzPpP+1VjEah9U1ju9Ea1os=; b=dKCfXoMURU0wh9B5 TEy1F1cA+Px2JPFVvhUEszwuLBGq+8lq3vhE6j5Eia19YnyNs6Lq3fNXl76xeBxk 0EURBuvyEPybn47wXya0WgjCfgyRkidCwu0q8r7arPkTundfdQtPdBIMlHnUJ64I toAnlhhuh+h4KK/1g8j+xZvo+CIwKH6+wiR9V0wCWZHcBtBcKfzZTDrGZtGLdt+u nFiV8l8qnLImh2JUXXWKau0IGV0jNKRu9A46tbRtjSCkg1hg4Vpl0gSrvaR7oHmo lQk3gq19miQmirFHHgPd5N/wKBmWif93p+d2fDdJ0bfcGudJps6gkpCcUpGlXEIW 6JLHAA== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gvdb63vht-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 24 Sep 2026 04:50:09 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93a1e564fd5so291068885a.1 for ; Wed, 23 Sep 2026 21:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790225409; x=1790830209; darn=nongnu.org; h=content-transfer-encoding:content-type: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:content-type; bh=XH1MckLYOHcs6kD8Zp13IzPpP+1VjEah9U1ju9Ea1os=; b=J14PbGQaL/mRYZdinUiDrwNcD8DJfYhnAEg5Chz5hUX9yt5fEpguUwKCa/4Yfr959B APU1yi4rMRFh0pPZhelviAwDibNOZGBaRGzDhqapKtfVG9QxEZreNpQHMMkB1cb+9BZf s9ab+cGHkj3NHXHfnQNktg019bZ7+iIHMHU/SwT7IgTJiubcbUVGjXVtbHyaMAd9hPzT USPRFoHpJYlir+9BvonZmO7gTmE0w9KqON4Q5jD0C8xuIMYSRHLcS0X0lB9tHkJDmkrb QO7Zo8y2O5uqkyFz+N8FbPPExXB9P5z49Mz1ubasF8uThG4X3SLXEs0LgQqlu/vsCNqd obNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790225409; x=1790830209; h=content-transfer-encoding:content-type: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:content-type; bh=XH1MckLYOHcs6kD8Zp13IzPpP+1VjEah9U1ju9Ea1os=; b=1i2bQtzz7FJXD/x2wkjxkYl0okiiQyvquHxTrHi4PjHFaDUiodJd3tKGfR4g/MmZ/X gsoZshO7YgEm0LEH9wjA+MNy9ekYk/te4oGyktERqI3SY/9psUNpRzdsZ4kFTBrAsZBP IRV59Q9q7oNjReIomzYSxgGCHfPPj1gPJm+gyjm5UUh4ZCSteiIg0wJS4HinPaKLvOAq gM3wgg6+3KIMM0dbO+Ltwk+fo0WjmC1XwirHPSQHpRcz/D3PHa01X0Y06mxM341e75Um ld1YTz1hajmnD0kwZk+O0ZG7EcJrm7q2d02DbNyIG8SloxaDst9uuj4l061u+EqOJEZA OyUA== X-Forwarded-Encrypted: i=1; AKwUvBzMC7Pn7sJ0hnCqRW1VpGWX4K0oV+PJt37MyQpmKMoec3unkZ4fVEeCIcJYkcf28FYkM2vEdwmKPA==@nongnu.org X-Gm-Message-State: AFuF++nMdd1E4MlPnhSykbftnrDvp6NMOEATVDRV5xX6RfhT0nP6E0yV CJZq/7DVrghsT/rPk94/bC8KwYRKRPBuwA9iFEnzOjNczcREGaf7zlCvPJamFqq5SHLpZv3eFoO RTp9spMQAmQJ2w1xaZjbVyKSmrw93GXWAAbVGHZr5aQ5h8MCaLjLDxXQ= X-Gm-Gg: AYBFou2PuowACAnP+pMdNb1F4w8iKngSOL43t90p61xHM+yiBGi9tTz2T4ge1Nr81PQ wbZK2+y5UJyjDWJFH9yNAizE/gzpYhXhr4Iyix74oEeEbpFBMVkZ+AXeWNlS1TT8l0xzqEHh927 GLO3mnRxPKkvHhq1ebVoX9y+kldnKyhzqGNR8N2rCldxuUOcknLqNTUAaJ8RWOp4KK2D0msjn6a VCKYTzoJPA9uGukx6R50M58ARVWv4NIaV0xoxdU4JiBd+n/WhlDxvFmCX2x8tbVUUEAHSuM+ieg Or101lckhO2zIa1LVnQjeUal4ukXu3qAFQVWr5XCHfnkz+MTzaJAms5xMiThXsM4gzg4tybCinY KFw0h0PEZxys3CcCawwhPjdqRi25RxLQjUg== X-Received: by 2002:a05:620a:4084:b0:93b:d7a2:83c6 with SMTP id af79cd13be357-93c363fd8e6mr123039485a.53.1790225408514; Wed, 23 Sep 2026 21:50:08 -0700 (PDT) X-Received: by 2002:a05:620a:4084:b0:93b:d7a2:83c6 with SMTP id af79cd13be357-93c363fd8e6mr123037185a.53.1790225408060; Wed, 23 Sep 2026 21:50:08 -0700 (PDT) Received: from [192.168.69.225] (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fe5dff204sm58241895e9.14.2026.09.23.21.50.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Sep 2026 21:50:07 -0700 (PDT) Message-ID: <1363e225-e3a4-4ee3-bffd-6f46265d75d2@oss.qualcomm.com> Date: Thu, 24 Sep 2026 06:50:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 17/19] hw/net/bcm2838_genet: fix TX ring activation check Content-Language: en-US To: Marcelo Manzo , qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: Peter Maydell , =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , Jason Wang References: <20260811143557.7862-1-marcelomanzo@gmail.com> <20260811143557.7862-18-marcelomanzo@gmail.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20260811143557.7862-18-marcelomanzo@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: 2pUeigWMPjOmFHIb-hH8PXEao2ZgeTRK X-Proofpoint-ORIG-GUID: 2pUeigWMPjOmFHIb-hH8PXEao2ZgeTRK X-Authority-Analysis: v=2.4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== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-24_01,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 adultscore=0 clxscore=1015 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609240021 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org On 11/8/26 16:35, Marcelo Manzo wrote: > bcm2838_genet_tdma_ring_active() extracted the per-ring enable bit > from ring_cfg_reg using the GENET_DMA_CTRL register's EN field > definition (1 bit wide, at bit 0) instead of GENET_DMA_RING_CFG's > own EN field (17 bits wide, one bit per ring). Since a 1-bit > extraction at bit 0 only ever reflects ring 0's enable bit, every > other ring (1-15, and the default ring 16) was silently treated as > inactive regardless of whether the driver had actually enabled it. > TX traffic hashed onto those queues was dropped with no error, > eventually tripping the guest's qdisc watchdog ("NETDEV WATCHDOG: > transmit queue N timed out") and causing intermittent DHCP failure / > link-local address fallback. > > bcm2838_genet_rdma_ring_active(), the RX equivalent, already used > the correct field, confirming this was a copy-paste error isolated > to the TX path. > > Confirmed fixed across repeated boots: real DHCP lease every time, > 0% ping loss, no more checksum or watchdog messages in dmesg. > > Signed-off-by: Marcelo Manzo > --- > hw/net/bcm2838_genet.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé