From nobody Mon Nov 23 04:26:32 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1795126175; cv=none; d=zohomail.com; s=zohoarc; b=hqNThbq4WbBOQIAmYm+cbGURfEAxquuiWIb0VcWfqWzgV1K1Ktz5ht34iC9uSkrURAfaGKMIwWwmcLEXlblrQm+3RxkRRmrL5p/qHfcRPPDB94sgxLC5ASeGlvOHGE+K2SAhXIBM5NQSRkmevThfCR0DXHb/O1nr9LVbO1OGE0o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795126175; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=h2dJqBGRYPcKr/OQB7HAxQOtBhZ6kiAZvlt7ANZAA3A=; b=OwvbNB+tMbQj9yKgDhMqBkSFFr0fiyMNgtZ/Pu6ChHXvwAtBrShrL/5/gt5+UDI7zbk8Fl3fAeSmpYRt5dYHENULPZvwYT0h9rMSac7gsXeEXIUAe2xsT3Nlh5s2o3cVn/4apVoQetWqP1SZnaraop+eUNtXwNt/WZDnYu5g1mA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795126175720321.4025834306847; Thu, 19 Nov 2026 14:09:35 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUAJJ-0003J8-0x; Thu, 19 Nov 2026 17:08:53 -0500 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 1xUAJH-0003Iz-E5 for qemu-devel@nongnu.org; Thu, 19 Nov 2026 17:08:52 -0500 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 1xUAJG-0006kA-0l for qemu-devel@nongnu.org; Thu, 19 Nov 2026 17:08:51 -0500 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 6AJJUXfD3367487 for ; Thu, 19 Nov 2026 22:08:49 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j27b5rph6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 19 Nov 2026 22:08:49 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-9495dd0f07eso51244985a.0 for ; Thu, 19 Nov 2026 14:08:49 -0800 (PST) Received: from localhost.localdomain (pmd666.hd.free.fr. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8526cbd0sm82588425e9.0.2026.11.19.14.08.46 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 19 Nov 2026 14:08:46 -0800 (PST) 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= h2dJqBGRYPcKr/OQB7HAxQOtBhZ6kiAZvlt7ANZAA3A=; b=TSIMTACFxMMDsSAz S4QiGmyJjclQL4oC41+uQJkihDYGP7ztsY+7Ul/vHUb0VA/Et2PnAY2pCwOXu0Ja TmMPdox74ju/by76ekZ1YE5tcn+iR6GU3OPBP1x0zX9X+XC8aRk8A9XfiygtTD3p kdQn1qaFLHIJk26K6GdFRbX6b3Uie6pIQx1CgORDeH4bWBY9Mrp1+ijVSi8AWb3S T6UxcVbX3j3Xkwm5Xwz/RB5pfeQcFvR01H8huVq0iP9uiwvtSKGL+PVFjkUz3reJ 3QNRczj/RR4TqjIPNC/fBBqUiyeg2P6TMcuaB+UqzVHf9pYzCnmDxUvVohiuXMgq UpEYlg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795126128; x=1795730928; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=h2dJqBGRYPcKr/OQB7HAxQOtBhZ6kiAZvlt7ANZAA3A=; b=JOZB+Pj8Bd5CsN9xWZbQAWPJngCBCGi8W1i8DOAqACthf6efl9k8DaqW6zzYlQrZf5 cqb67UfhYvS+IN1kb8zz4nnQudp/nBmRTvU9jIFKThSExa53FbqYh2Y89xJOX4Y4sD6r 0WeF7TY72Ut8BZ9fa4zotCQWiSFoeH5Ts9dR7uaPqzDT+HkZKbGmlrpDZTrr+fSlZcUL lvsVS+5IAM5pQ/LobMTZdQF0vpXvdAm/am28SRx6xR3Oi36oU+bYczreqm6FWfndcSUb 4KwRuucldCumUtE59tlOuCrpLGbKSq7NJ1aRK01MaQVc/b9+8tyz/iFtMZNFOife9GyS fSFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795126128; x=1795730928; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=h2dJqBGRYPcKr/OQB7HAxQOtBhZ6kiAZvlt7ANZAA3A=; b=Fo6zPPYgWGx01TQiL8TY9UT6JC63yABLa58qN+/si7GT97KvM7dqujEq8wk9enROYI 2kPOqxJ7Vc6Dc6H4T3nrbIFdokqEoGjp+rPI/vtZIT7g+eJGhm0cOUoS1+JTg+XCGvyE RAxpxhWdSJpZWu6orZgx9c/uYqkCVOKPaaJl3G1jWzj/5+/0L622ECbn2+Mu7MF204iY 0T0ef5/SPyiiNvfVlPz0xkPYFJT1YJVqcVBAcKEQ+2jeI8yh7vBVS0vfJyNtCP6qH8rv rOuZX6l2vaLSOlcYv1gBKzfC2JU1QQGxRXIjcPwLddxcbwIGiqeWaQWKc60o5fEP9hVq 1/iw== X-Gm-Message-State: APuU4Z/+Q8w3Gl9CaQ7XQv0XetDCXQrVoLckcQF2czCaR5oV6nM1JZIa 8CoMdHZqOKNt70GXcvlBBANc2ffeX08Q89eP6Vwpin3go3Pzv/70CbjuuIITuU7AtfziHmDIrg/ npClDVfq1+d02GJ6UzdL3wM5z3sBUEcrKp9+/4yFF3pTnVN2F+FpwERIhvPSvoF0Kgegu X-Gm-Gg: AYBFou0LbITfplnd2+NJRp/pKiJ8TFcJhXitrpXmUoMETpeenLeTsMDfeQI/jiipHhk U+e4otm9gxgD8eR0/+0ERGgA7qmn/Ewxu2X3anaic0Y0jZZ49c3ZJyQMFRio1P7eVbLbOFG+KMP pxvqtXwLP4vqfeElUcpjMGxS86wY5yf2osQw9fQRoNdPmeVxcIRGNmtUdT7XZPxBf01lyGF3tIm eQToxxSLCqDCiSYp1irToqaja3Z7vDqjPzsIek6DSDNy00oS+EokjAtkFpgQ5waHN/tEtBBlLcS h7It2iiVfJTpDG1xL7KNhoJ4GaHn+rt+GTEy3ie9Z3EptsSuOMlaiAYqcOzMmNBd/z7xVxbkikf 4HXPtEAWXm3znFjpfN89ndJTDX3bmXHgeEqey8H+Jy4m8/WWoUH2U8YyRnSbC+CVW0ZZ8utkDUS nMDzasHDVSBiYBog== X-Received: by 2002:a05:620a:2856:b0:949:ba09:c68 with SMTP id af79cd13be357-949bab5a3ddmr173227185a.76.1795126128343; Thu, 19 Nov 2026 14:08:48 -0800 (PST) X-Received: by 2002:a05:620a:2856:b0:949:ba09:c68 with SMTP id af79cd13be357-949bab5a3ddmr173223085a.76.1795126127917; Thu, 19 Nov 2026 14:08:47 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , "Michael S. Tsirkin" , Paolo Bonzini , Mark Cave-Ayland , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/3] hw/dma/i8257: Read the mask from the RWAMB port Date: Thu, 19 Nov 2026 23:08:35 +0100 Message-ID: <20261119220838.52034-2-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261119220838.52034-1-philmd@oss.qualcomm.com> References: <20261119220838.52034-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE5MDA4OSBTYWx0ZWRfXywGvZwG7H2od SV4a4pBV+4e5FsJ3JVhRtP3c5JVQEQModPASQQmO25rzQggtPpb9yNqYHSUA9IQhTGngJgUxbo+ ZUYfNYyzNAYXsXlXZCzyd4GXEkVDVG0= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE5MDA4OSBTYWx0ZWRfX5kbCb7Hsn5mh jXljMV/sgJ4LbghRZ/kVaQmDQodvw3coiAe6jSY8ovVgIe3aR99BqdkpIlRqEEjwWxdPih3oPUI /zr9zjcqgTssc+qw5JwTyvmZgDjf5RHjk8uAznrjoL0fkZ2jF5z5xYzNaHcy1N+FxRnaxdSvlft KrpJANCx60VupVPv8Rwyiusj8BC3A7WsRs21OTexnHWNys9UNai6uzyvuIHZhRlNyz0H0x/zQPV 1kS5XLiHEuR56mDQLTUzF+W4It+sdZskNmK5TLDF5vgLmTpjtqbY+01ANlwPlym/NG9HEUj8pKW qaMG1VZ9FKA56sBa73hj3eOBCUCBTZM/0exyNbCX4fwFB43YdJU9yWDCV4Kaos9+szT7Wvs+zO6 YIi7ZHqa4WqI1uNIKWT1Ev0rfFfteLyxgKdRnn4wLVEyXLu3kJrC3pVkBkDkfXkoyo3cKNYoS4r /VrAEa1ddIg95V/GOKw== X-Proofpoint-GUID: etOBHfsJYXmEfkvbHWoC9E9AzqMFONQu X-Proofpoint-ORIG-GUID: etOBHfsJYXmEfkvbHWoC9E9AzqMFONQu X-Authority-Analysis: v=2.4 cv=LPTz05W9 c=1 sm=1 tr=0 ts=6aff7371 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=9CvvSRwhk_vVGl7fKr8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-19_05,2026-11-19_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 spamscore=0 adultscore=0 lowpriorityscore=0 phishscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611190089 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; 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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1795126176481158500 The 82C37-compatible register layout, as documented in the PIIX3 datasheet, has the write-only request register at I/O 0x09 and the read/write-all-mask register at 0x0F. Move the mask read to the latter. Fixes: 9eb153f18f6 ("dma clean up - added missing read accesses") Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/dma/i8257.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index 577154988952..f44632de3db0 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/i8257.c @@ -281,7 +281,7 @@ static uint64_t i8257_read_cont(void *opaque, hwaddr np= ort, unsigned size) val =3D d->status; d->status &=3D 0xf0; break; - case 0x01: /* mask */ + case 0x07: /* read all mask bits (RWAMB) */ val =3D d->mask; break; default: --=20 2.55.0 From nobody Mon Nov 23 04:26:32 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1795126176; cv=none; d=zohomail.com; s=zohoarc; b=U6Ku2XI3/x5UmyItRPvs2fSYgaXYmM3WrUtq8mo080R1MQt/tuVW3bBlJK81CypYqk8zKuOUNJvUyviRzb/RnDEMzG+oFAUEeY6tOr9li3fzoaZ8q4YW7YVcUW/qPtxuHDV0U2R7sM7L7m8yZ/5s5pwFNY8n3hptdVut6xLe/oY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795126176; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RFxiPMZUDtV+dWCcaJ3V32Pmo+3Ha8y5QA0lhXRngy0=; b=khdzxCZc17hfnCLqGafvYRabO5HldvOWc05E0AAWkaiJOVltAT9cBrjQVlCwfxhJ1M7Uk8U71K88wyqBshqXry6qxMbDfZaL8meN+QWChJWcJ+VSyMaFMMSg1mU9MaflW4UL7HNq22JpOf2vy6crShAWYOTX5wP1GeEQFEicEl8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795126176693166.2299674636913; Thu, 19 Nov 2026 14:09:36 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUAJT-0003MG-KU; Thu, 19 Nov 2026 17:09:03 -0500 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 1xUAJQ-0003Lj-FC for qemu-devel@nongnu.org; Thu, 19 Nov 2026 17:09:00 -0500 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 1xUAJO-0006l2-4Q for qemu-devel@nongnu.org; Thu, 19 Nov 2026 17:09:00 -0500 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AJJ1XDd095604 for ; Thu, 19 Nov 2026 22:08:57 GMT 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 4j1xx1bg9w-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 19 Nov 2026 22:08:56 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f3969a2a7so49235385a.2 for ; Thu, 19 Nov 2026 14:08:56 -0800 (PST) Received: from localhost.localdomain (pmd666.hd.free.fr. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989eesm1823796f8f.50.2026.11.19.14.08.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 19 Nov 2026 14:08:54 -0800 (PST) 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= RFxiPMZUDtV+dWCcaJ3V32Pmo+3Ha8y5QA0lhXRngy0=; b=C+9ieQEFAapM4DIa CkpM94CRW3gKe2EnmVjs48g70N765ftRzNL8AntOdHr3uB6JxgRGfTHtoWOzuRl1 WrnjwR6bUnOSTgpYM+OEdV/LVfan9m/N+zSQxrtEQw2Fyr1iH+Uk3aH8QLzhsaYf tLgzyiQOI0bcokz7sHbId+aOh/e1p0qHeT0ROpoSw+F94z5ULksXwhgqxvH5VYDb 5l59T5yv3aJmn7r9jz/LZHqFk3GqHMIJ4g3eA3UOlhDhR+iB/4edK0XEJ5CVNpM/ 3mtCJiZ1Tg0uhnlnt35gea7BPojZltXj0zf/V98UJvwyRTwOjV4oXJOVlARiE9wj y5JJkA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795126136; x=1795730936; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=RFxiPMZUDtV+dWCcaJ3V32Pmo+3Ha8y5QA0lhXRngy0=; b=XFouYdDs8VumSJFd+OOdSH13J+wsGG+Mqzk693ErKhYRC7RNPxsANMccDPcvwYbmlv i1MDaVZSbWRZUHi405kOXGxLf4DjWRjet4pYygGl1zJDDCsuk1fv2MyCLYoTIpWviXVt PobV74iB/IFd6kF2dAot0gNJXKGSlEdc5roeVF4hckNPpQk/XMGaUBFz+6AaJwsr5yxf Isx9fl63sOXmgzrpqDvo06dTWP9fRTxN9Kf9eAH8dfb7NuMF0SrkwxvfanpgWShRVNMr f7WzbWfh1OXUk6c0Po8crOC/mXJwflDJiMHVg7nZ+VgtuhjFLxQsWIcz7AbIGYUwPM2g /wLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795126136; x=1795730936; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RFxiPMZUDtV+dWCcaJ3V32Pmo+3Ha8y5QA0lhXRngy0=; b=R8a84CWme543PR+G1dgUUBR8W4w65+UUq6ccGvD+Qi1rQ9b7DjyJLM6+juSoer+7I+ cBgOvFk7w5PknHaV9L9P4v4a1jrgGmdkKNAM0OELuiJv8xl21oUhU7k5+bKNDOh94JO7 w5pqj7cUYp45waugbxnKnM9fOw+zH8JL8ChxJ+YqDexane5W4T08Oi846GLj2csfxbzJ 8NNILe/tTTWM9AUTd9CaRQb4QdljV7223egSQvDHT0Q9ablnswfUCXGsdguoqbvwgrHi bW2KWXsJYOJo7tVXARinQwkbdGWZDsV5sC9EQlaFoi2U6pvsYna/zYJPnHXrTCmltEnU 6lZw== X-Gm-Message-State: APuU4Z8x0G6BySJgdgK77a0R7FG00WMH9BtKkKmpGmTJb5LV7RB1slEm SokGx/JoYiClz1rmPmDlEFKPbPeqx1sjpXPtdsH8i9Wok6HsZ66HXLOiJAAmoLM8vPhdPHqCSUw x8EJqW2vP9fg82R9FWmx8ZzBkQW5xJJ8CoQtNxvHyyKgk2sIYiLrNA3KRsgibP30uy9ms X-Gm-Gg: AYBFou3O4irUlaBXD47AuzszWW0rgFc/lHLuZTKozS2DRgftVrDs9HGG/oWp9m5UmOA gMH06faP7tOhjvqTauvvW5Kua7fLi6v1gjwKqwQYoMCVy9E7rjc+rHUH/hdHBpR8IP0Szy99AEX d+Kv0hqBR+dczn0ocLOrZxYKz+lvwyRcFIQzaJqKIDyAjiJ7iUsa8HsOpsvKLEkFtWZMdnvR/Fr h1ODed1y1Tm93LTfVd+WsEKBMAbWdJGep8lPfV4m2QY8YzuC7jnIEqOdo8ymlzXVGZUnAuVZZFq C29IzrYuYMvIxDOT2Cep3wskzXe1cVKhOyhC2/QV4uimuwjYZq0r/rLRnQt1Z3Kqsi/uMontKb5 dK4QimwzWXN3QZkRlGaEd7OnD+2Ca4dXolUQ6dx9YxA+oGg7DPb9sLB+qLdcwx0ZOLmgiLwibLH NarcDA0w6K1MxglA== X-Received: by 2002:a05:620a:6f05:b0:93f:2e72:8389 with SMTP id af79cd13be357-949bab47baamr189146985a.54.1795126136078; Thu, 19 Nov 2026 14:08:56 -0800 (PST) X-Received: by 2002:a05:620a:6f05:b0:93f:2e72:8389 with SMTP id af79cd13be357-949bab47baamr189142185a.54.1795126135603; Thu, 19 Nov 2026 14:08:55 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , "Michael S. Tsirkin" , Paolo Bonzini , Mark Cave-Ayland , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 2/3] hw/dma/i8257: Zero the reserved bits of the mask register Date: Thu, 19 Nov 2026 23:08:36 +0100 Message-ID: <20261119220838.52034-3-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261119220838.52034-1-philmd@oss.qualcomm.com> References: <20261119220838.52034-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=PcBqFShd c=1 sm=1 tr=0 ts=6aff7378 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=zk1an3oMGe3fWqGA7cwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-ORIG-GUID: 8hWO86Iu8QQrYfMsWbGPbbQWl1X7zEYT X-Proofpoint-GUID: 8hWO86Iu8QQrYfMsWbGPbbQWl1X7zEYT X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE5MDA4OSBTYWx0ZWRfX8zJlaxnJ1pUL 29JdCOaHt72N8omEz+pYYg2vwLi5+S06amogO73qfqKtwuqEHLKkXyO6P7VelZtWYOMyr1tY5nY AXNeMBoiiIMVFWMDnCMy7PW7AgpAAmiNbugxb8MBqURl82KBHBX0AIrlUdd6RYtVhYQv7W+NSZH J3NeGjEyKN+xs8OgC9OLh06obeIDxKA8GuZPkTjjBNpGsU8oWRhs1hwulzLVim/oy3w1CaQXoxv 7OLC+57FD0JjofBU/yKQGB0VFnt3FH2oU59MEZX+NVnkpzgcrYV//QCPSi+6pCpWOPEoIJ1ebTN iC588PQU46R0/DbGL9CRcxGGpeiRFg0tfz8bFKOND1bnlL+/kLq315w5yClB/gCXuWtxjHxfcLT DwmZZHl5SJirJKdTxZrkA57qAaI4EkN5lzuI+27vtr6tfwmDYkVub/m6R9FVq4PonXhYSuXLbp7 eVKeh1A6LeW4YvTQ6mA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE5MDA4OSBTYWx0ZWRfX7D1euz8TJgjT iqmewLrr/wwyTOBsMu73Vuxh4t0yJy1BLTLPep8bXa8zNAmykJJkSlwRXD/b1JSafVkb7wxOXBB iLtiBqkPZFL71AwcPGy7Sv8olR8a0hw= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-19_05,2026-11-19_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 clxscore=1015 impostorscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611190089 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; 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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1795126178409158500 The 82C37-compatible read/write-all-mask register has four channel-mask bits; the upper nibble is reserved and reads as zero (PIIX3 datasheet, section 2.5.1.5). The model reset it to all ones and exposed the reserved nibble. Keep only bits [3:0] in reset, write and read paths. Fixes: 27503323968 ("Soundblaster 16 support") Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/dma/i8257.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index f44632de3db0..ade8609ff438 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/i8257.c @@ -242,7 +242,8 @@ static void i8257_write_cont(void *opaque, hwaddr nport= , uint64_t data, =20 case 0x05: /* reset */ d->flip_flop =3D 0; - d->mask =3D ~0; + /* bits [3:0] mask the four channels; bits [7:4] are reserved 0 */ + d->mask =3D 0x0f; d->status =3D 0; d->command =3D 0; break; @@ -253,7 +254,7 @@ static void i8257_write_cont(void *opaque, hwaddr nport= , uint64_t data, break; =20 case 0x07: /* write mask for all channels */ - d->mask =3D data; + d->mask =3D data & 0x0f; i8257_dma_run(d); break; =20 @@ -282,7 +283,7 @@ static uint64_t i8257_read_cont(void *opaque, hwaddr np= ort, unsigned size) d->status &=3D 0xf0; break; case 0x07: /* read all mask bits (RWAMB) */ - val =3D d->mask; + val =3D d->mask & 0x0f; break; default: val =3D 0; --=20 2.55.0 From nobody Mon Nov 23 04:26:32 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1795126175; cv=none; d=zohomail.com; s=zohoarc; b=kNReb+w5ewTWNxWluf2VLl7TX7qS2pvXoj1T/wfU6w+MoVCKc+7BIAw5MwyzXmlocCbDlUUolxbbgwpCJ+oWvzZasp9DVW3nhPy1KqPjnRpAwSVNxC05F3HU8+tqPnLjjTbOl5BsNx8wtu3LwZSq88KXL6SgXM4W6kYwtUjZH+Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795126175; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ltHiwHgjiggOUQEJEu8RCiVw5s3vOXJQB4loMqc0Nbk=; b=PT0aDnv9+ixRAFvPwpOh+Ev7lBWnHtErcQyd2OMjnVYeu1ojdb/blEFfkJTPLGIY5afHqwQO3YPfueFmliOBNLhIn5+3XbYKOiwtrYwUeUIx54aKcVazpr8rtbxc8VaGsEtxIZ62wdYNQu0IynLRCbQf4R09/X6Afot2g20LtCg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795126175720986.7273859236025; Thu, 19 Nov 2026 14:09:35 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUAJd-0003QU-3I; Thu, 19 Nov 2026 17:09:14 -0500 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 1xUAJW-0003Mi-63 for qemu-devel@nongnu.org; Thu, 19 Nov 2026 17:09:06 -0500 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 1xUAJU-0006ln-NY for qemu-devel@nongnu.org; Thu, 19 Nov 2026 17:09:05 -0500 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 6AJJU3dV1113054 for ; Thu, 19 Nov 2026 22:09:03 GMT 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 4j27au0pcp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 19 Nov 2026 22:09:03 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-94960131befso50800085a.0 for ; Thu, 19 Nov 2026 14:09:03 -0800 (PST) Received: from localhost.localdomain (pmd666.hd.free.fr. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb88f6b6a6sm18273895e9.5.2026.11.19.14.09.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 19 Nov 2026 14:09:01 -0800 (PST) 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= ltHiwHgjiggOUQEJEu8RCiVw5s3vOXJQB4loMqc0Nbk=; b=a36EZ/zttZ7796QW +lHl2ryfLfju1kVcRnXOGmPJELZyfHLo9aGAJTr0VzsBwtBBCH1W8Q72YHI/qz9D rlP5bSl9z6ydzAyIuuFpc7ca2rRlXDHf9KzzJJbkvCLhSJXCmlIGJndmcPmNbMXa vqXG6FB0vyxTsfVcSiJXtOdOGWFGItkmn4cZI0BByHq09eIYlWcw5DQ1/ntGj/nf WGlxPDJAtFHlMgG+Tpi1jyyO++n8C9nB1cqLsmPr6b9e9rjCsTSsSTvXH5eqEuOU zsLOV3yM1ehJXg2ccfA06PRgGArw6Wh7I5MSbQPX9AkenCI4CwkjFoYFl3pVQ4ZA xHRc5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795126143; x=1795730943; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ltHiwHgjiggOUQEJEu8RCiVw5s3vOXJQB4loMqc0Nbk=; b=Iw4wcIzV2AeNogLMnwZ9ANJX/6PRTqKEAt2qEuisWNdRj/byvku2Yyj28t6sScBUZu VfJsRkSqBqgGYdQi3Oy1aJ8VzfG+iOjoII2c/wsCx/j1kVxVQ8sUYj1XHJPAAO2pqnnV V78vBjXnqLt7p9tUVDbU0iQWdv1AxOE6+eaiUCSJH4Yh+8LMoAmjLLshYIC5W8x0yPTs 3vBkkShTE8/s9ma26oNDFLZ9YRGyCqt+T5S4Ms/luzBah5THc3FqMXNFQIaCVAGYbnI0 V2FDbQHqcQQy4IfTk6T4JMfb5TdLFWT/I1mYeXFicLoR3vwq+todUcS7/dLsEDAMm7eY wiDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795126143; x=1795730943; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ltHiwHgjiggOUQEJEu8RCiVw5s3vOXJQB4loMqc0Nbk=; b=cNO2M2ZjUFM1+uO3tEND0QlDZU00DbaVJVowmLXlfUpMDcWdSlIJ8pCLIZdrCdrmfy hPjiCDspATSTjvA0We0rkluDORZyzFfdO8tyEMgIP+dyWf3tolupv25Pc15rBr4ocIp5 oFzxBRKLUxDcjFZ/ypBIcdEFFaVOezfEY3YTSrIrsNX1v9ay5DmGMPotcjRqPIuw19Wp Tp9hDugoZOMXdXFA81jw/P3Y6l0D+HaXb2MAu65wJgA0ihqm2RtExxT1q6a/lmlK1wUS cXGYY1lrfgUrIk2JW0DLWXWMeEmiqSzV1WiMYxkbo2Qrvyyk9c3Oh4z59Ujdcu3ZKDsw 6SEg== X-Gm-Message-State: APuU4Z/0495igCzahvX4D8lJextCmpz7sxmCgOKU16VUNLwb/sRL6v2X u2SUCz+HextELn0smjPYKNz0A7tnMT1SOOIdJEDO3c5KStCsyzgEXRJZIDX004Br9ilvyFZnj2L c5lYjzW6XJso5HluT71UKH18vF/xRJxnFd7WsbBavA4s7N2uEwcdHOmAPJZbxIOrMP+R6 X-Gm-Gg: AYBFou09WNu8JUPD6qdYhqOHp/5I2a6fvPUw0HSnmGmHByR5+1CZVyykh+C8a6lIC8x XBHb73IjcdfWUvinmSAusmSyvrP22jY9+lqhfnUHWS3h5+mcQkJM8rZgJOM6YRt5w+oXVVyoe8P FwvpG1kjQURcQtTZIjd9PE+cd0X780pTPXStufvaMA8yAswlx6RO3Ikdfe6bNr8sbzjh7YZMQT+ 3i1qFC9yO2K0phfOmX1SvI8KmQSB5Cs6bN86AysT8V21bVqrTjA68tA9zixXkRW0mF4X4Q7bAzS ZuhZ2uZz2CdNLgstoDXMcuiEmUcrZzMqUWrnS/CRjPjY2HJ4JbsQih18XhKojP/zjhJ/j44PqG/ FTobthI7gAiPFopDUQQ2U7r8zZdHdbKc9xvw7PjXhQcSZsz3Q27g7r8U61iKt9zRj06aCGfWRyq ASohiGw9kf6R0yDA== X-Received: by 2002:a05:620a:6011:b0:949:733e:ddd8 with SMTP id af79cd13be357-949ba9ef1c1mr160140985a.54.1795126143052; Thu, 19 Nov 2026 14:09:03 -0800 (PST) X-Received: by 2002:a05:620a:6011:b0:949:733e:ddd8 with SMTP id af79cd13be357-949ba9ef1c1mr160137385a.54.1795126142610; Thu, 19 Nov 2026 14:09:02 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , "Michael S. Tsirkin" , Paolo Bonzini , Mark Cave-Ayland , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 3/3] hw/dma/i8257: Honor the command register group-disable bit Date: Thu, 19 Nov 2026 23:08:37 +0100 Message-ID: <20261119220838.52034-4-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261119220838.52034-1-philmd@oss.qualcomm.com> References: <20261119220838.52034-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE5MDA4OSBTYWx0ZWRfX4i4c40l/G9Fv EBtCBIo9OeaA3W6fsoSMxAE3ccuzzYcW77/Ilu95tij3BEjpzSP3ckbaUp3aA3sQq4FOeP2LGg+ 8l23MPViafTD2O22w4VdVm0F/DeAx92cV+GgZkQyWpa/fw7/Zx6AprNfTOz/su9uiqcU6jxRByY ggiE5zji/gOzxHp8YM7ubpNciecvfZpz7Ljp1wZAiU+h1hVQE3DQ+gkpcBhulNDQLXTOEm29JWv 8Afm46zOn/Ka2Tou4yZVP28BVuPslWdE2BhQbzMuDfCl6w7+WFSrt7Y3W9Rw0a3LttiVX+1uGUN 38/EY9cPbkHUnJ0ShfvmDZqIXWoyQ/zIznRt/X92okW2u5Tly5rrowdMg6diPSy8M0xAm5S9eEQ XAKM+bYWOTnyipgk3j8IcZBQITuQdVwCff09AAmrCBhjWxiPBe15qhCpb3BwLIFmxA79w88u22z oxBK0EJAdpm0rXYcPrw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE5MDA4OSBTYWx0ZWRfX0Lqdrq6cO/pS a1MXVvWhGYWyM7ZaPbOPt0jJAkQ17HGotIAM541OO9mxNIOtqbuT59mtZYVoHxENDvJuIZgRyei bLWw/jwVfiqYQWTD5tcyFz9iMMxC8Fg= X-Proofpoint-ORIG-GUID: qlqLD3jsEKKj1o2amQMVgvr9NpA4eOVA X-Proofpoint-GUID: qlqLD3jsEKKj1o2amQMVgvr9NpA4eOVA X-Authority-Analysis: v=2.4 cv=KuHYSmWN c=1 sm=1 tr=0 ts=6aff737f cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=BZKEOktK5fCU6sL8zLEA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-19_05,2026-11-19_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611190089 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; 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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1795126176483158500 Command bit 2 of the 82C37-compatible DMA controller disables the channel group (PIIX3 datasheet, section 2.5.1.1). The model accepted but ignored it. Gate servicing on that bit and re-run the engine after a command write so re-enabling resumes pending requests. Fixes: 27503323968 ("Soundblaster 16 support") Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/dma/i8257.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index ade8609ff438..42143ca57dd6 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/i8257.c @@ -195,6 +195,8 @@ static void i8257_write_cont(void *opaque, hwaddr nport= , uint64_t data, return; } d->command =3D data; + /* A pending request may be serviced once the group is enabled. */ + i8257_dma_run(d); break; =20 case 0x01: @@ -355,6 +357,11 @@ static void i8257_dma_run(void *opaque) int ichan; int rearm =3D 0; =20 + /* PIIX3 DCOM bit 2 disables the channel group. */ + if (d->command & CMD_BLOCK_CONTROLLER) { + return; + } + if (d->running) { rearm =3D 1; goto out; --=20 2.55.0