Message ID | 438bcc014f8f8a2f8f68f322cb6a53f4c04688c2.1491947224.git.alistair.francis@xilinx.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w2j0k4khBz9sNd for <incoming@patchwork.ozlabs.org>; Wed, 12 Apr 2017 08:49:26 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="ySR+lVNB"; dkim-atps=neutral Received: from localhost ([::1]:41425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1cy4bE-00049B-8f for incoming@patchwork.ozlabs.org; Tue, 11 Apr 2017 18:49:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alistai@xilinx.com>) id 1cy4aj-00047k-P4 for qemu-devel@nongnu.org; Tue, 11 Apr 2017 18:48:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alistai@xilinx.com>) id 1cy4ag-0002bR-IZ for qemu-devel@nongnu.org; Tue, 11 Apr 2017 18:48:53 -0400 Received: from mail-bn3nam01on0075.outbound.protection.outlook.com ([104.47.33.75]:15538 helo=NAM01-BN3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <alistai@xilinx.com>) id 1cy4ag-0002bJ-B9 for qemu-devel@nongnu.org; Tue, 11 Apr 2017 18:48:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=4TQy7LXkELdwmSsakvh4fNGHa8VPTjv2Gj0g6MyU5XQ=; b=ySR+lVNBZQ91tN1QH/S7OOv6yJRar1TxVages1eUuUfYS80CcQd08xp/FeD8EDbpHB+lLLv7DdtdvGinhSSwZEnC2GODe4Uge+CdkQ1pZW6QFANlyz6sWNGeWmlhRUezJO/FvoRa7PwHmsnqbVm+gRFhRmBL0/piLDYmmL8PZbc= Received: from CY4PR02CA0027.namprd02.prod.outlook.com (10.175.57.141) by DM5PR02MB2588.namprd02.prod.outlook.com (10.168.195.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 11 Apr 2017 22:33:00 +0000 Received: from CY1NAM02FT024.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::203) by CY4PR02CA0027.outlook.office365.com (2603:10b6:903:117::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10 via Frontend Transport; Tue, 11 Apr 2017 22:33:00 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by CY1NAM02FT024.mail.protection.outlook.com (10.152.74.210) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Tue, 11 Apr 2017 22:33:00 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:43994 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1cy4LL-0005h8-O0; Tue, 11 Apr 2017 15:32:59 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1cy4LL-0006K5-MB; Tue, 11 Apr 2017 15:32:59 -0700 Received: from [172.19.2.220] (helo=xsjalistai50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1cy4LE-0006Ie-1d; Tue, 11 Apr 2017 15:32:52 -0700 From: Alistair Francis <alistair.francis@xilinx.com> To: <qemu-devel@nongnu.org>, <peter.maydell@linaro.org> Date: Tue, 11 Apr 2017 15:30:22 -0700 Message-ID: <438bcc014f8f8a2f8f68f322cb6a53f4c04688c2.1491947224.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <cover.1491947224.git.alistair.francis@xilinx.com> References: <cover.1491947224.git.alistair.francis@xilinx.com> X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-22998.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39410400002)(39400400002)(39850400002)(39860400002)(39840400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(54906002)(76176999)(50986999)(5003940100001)(8676002)(9786002)(39060400002)(50226002)(8936002)(4326008)(81166006)(77096006)(47776003)(356003)(5660300001)(33646002)(106466001)(189998001)(38730400002)(36386004)(118296001)(63266004)(48376002)(2950100002)(6666003)(50466002)(305945005)(36756003)(2906002)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB2588; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; MLV:ovrnspm; MX:1; A:1; PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT024; 1:yRp8wkDICrC0okbiDGrrcgvPFYjaxekw/ZXpKWl8P7ANH7fdUfr8Lbie1TeIA++pVH5MsPA4utFYo0VoSz5BheqWQabInHflU+CgtYl/xKQSprLG+buiVPKRz9xnyqZEXNvoQAQMzqCf/omaMoY7w2USXb/sUqB2WNOH72/jL7LR5948A78fviyi0NAt5epYToRYLtb3MCnXDWadaKAIygGI/ge0I9ZS+t+xlTLKE55mXMrYaiz+7vdQJUfvhiY6a4JUeVW950pNRUPdIfPsqjSjZQYMHB2zfB4Oef+epDUWCyQ9gPmEA8qCxQyONHCr9uYQsymvNf6rtsvwh/v529yGt7cduBTzvruNh/zGv5Ew7PLN1gP4U7L/CB5eHLAajnkrA5kQDJB+xQI96bdvo0sRbSj8SIUUz+rZ/1feiDFgXMTkosbVQFF7Uj9duS+MTWlvrSKMQwpSWq/BBJ71p0ZKRDm/CUdBVCsx8OI3zqCXN5C+amaHx2Jg56kuZyz2IymScXniMx05uC0FSK1aslQRKC9r52S9DEKUu7QOi5dbR4E1CSW5hiGXyitWllI6 MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2f31cf86-94e0-4832-81e2-08d4812ab5e7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR02MB2588; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2588; 3:w0+cf5wYEQA6fYnkzoPqQTQlHqQHknD7y+Y88WE8Jjc9z7daBp2D8RFfHeFSTV5/KoNgCVKOjhqTYDt3TTtBFUQx59KcItzpt4kf8CnFthuq64XkO/Kn4kwUFyp5BZGgJUZsiQ2pFe6xuTD5i6UYLqg4ee0w0Xkb9Fl+h2ypzQ76i6X7EaCGRj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p6woN9mIDD9Icvxy1eeiMGc3jmNyX1Xncg== X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2588; 20:iZOQ7ZF9bd1+UXs/RBny+D0WsNUHRErshdeXmbGoeqsR033856jVYSJ0tYBbYuEXVRMAa7Q/Fz6cHHKJqixYKPa4HIt0ou148nlpZb9TZej92nhjFq8jJ6SJQ7/B3hMoLhY3nZB371xak/svTl4yWcMEzSKP8PasbdlQKl6asGIZbTo1+Vv0vIokubMXnbHGuEkDsYsRugHYK7o9QU1p9pr+FWM8kHYpYNxz9F/XAl3H4f/ZNOnP6zIX03cek26G9jPME0p2d9EcAJAiGFlFuBhg/6yHYV2DG7eWpeTwj8il7k1zgCcUst+PhB9eQMD1v+1sO+o62GvFMjccafNJl9LLMLRRrWTeNXIDLE+WqZgVq75Jf+AjxQ7I10OzAyOJbvwFQIwuYfVXfHuhUvovoKOVG+gEYwyziFYq7jVLZKVghDzV/efy6VK511DzDwOUBCZs+pLcQFiNxW/O8j04shI216uWQSqyTVjVHY4g389TLlgGX5rYCpuAI9z+I6q+ X-Microsoft-Antispam-PRVS: <DM5PR02MB25884FB34492363BDFED27E4DC000@DM5PR02MB2588.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13015025)(8121501046)(5005006)(13018025)(13017025)(13024025)(13023025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:DM5PR02MB2588; BCL:0; PCL:0; RULEID:; SRVR:DM5PR02MB2588; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2588; 4:EwaWTZqtZ+EKelMyuaCTkQkf06/zh9Eyp3dGRQidoL8M8cTkA3lVIwmDgAleT1s+Y/kkbFi9DMnWk+3zBgdVlPWjQ9YQCX5gNsvxCi6qn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aofFGPkqE7gNutWedMjYjLYQMgZT+lykl3/ef3vMz3Cb71zTHN?= =?us-ascii?Q?pLZbM4b2wMO/WgQp73IUfvMfMQ1?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2588; 6:P0qZOSN5ADlX48Hay8lSr/VH4wVhthqItMtHN8VJdnrggbfYzb7prg/55TST56B7klZBQF2sCOiReFkvH3W2XZVFmi20ekMiXwjpSWEXwdqihtFnbf0/I0x1R9vpfcu0kxXUAkb2IhQ0W59HCpwYe7rNPLixwVmCz/+QlayZpAlbBAS79oA9JjdLAZ622XXXBL2gj46FF4nwD8o03JluS8yXw1d6Lc9nM7LulugI3G4gyeYAKq8K5DXF2oynsDnJaoP2gBV54Kgo7ELCNu+XetSXA5AWAsSj0kM5OPcLDGgeBBO88Dld3cGsPoAh8Od4b9mnf0h9jiLBjBLTX5xBcjac3ECHIqoUqQTWdaW/6jmgF8cALVwvjJQYOHEOVH6jt12ONoRSgI5UxVQ0ZwQTXxj1CG80/Y1Igw8gHPhoMklbKctQNfwg/YgK9yow8uiyTLvUXqS247Dxfhi2+/50OvoqURzxFQrMjS8fZ3p0QDU=; 5:5I6vgJ4GBOHTkcZOk8dF8NslZLBWpNWeBtpHiH7fzn+Wk1RN2J40pAzgt2rxTqROIndXDYRThWKymmMbH2EfSNES+USyM7nP7PjPjpCaiUufE5emQIy8sCoNjuGgIXKYCO2NtY56KAhn617ED/+uXQheytVIerys8xR+SBNrkNQ=; 24:uM/stB0+N8cT0Y9ZQQ2OkUE6TQdhPPOvBjonJJOycG4x+72thKVjlK5Ss5S2WmuP4s3tqQjDkpgrGqf+BNfpkcpzxRsIqIM1imFteGX0cVk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2588; 7:HojE/1cS5tZUyTfGYJLJ/hiUe7Bwe1uGIYPIwhoICpQcqMephVbcdSZasjpnbmiFjAv3n79NX4++Tj58GaWZ1RfSYRqGiMxgXJycKjK80jpQiKlnoXZJa9aEr9NChIK8Y9uzQlzwJ+SfUPf4xYRN0A0dM/GlhGT4BEIdeIHKD4IkOXNCSJzH3a6Cs8eOkx4nXvcYLObmmT8vhuIj2HaBzfK7WdlxcYmpf42jsHCmI9m9SWiHVKeIOvFNKgwFwy7nbz1SDVzEai+soSrObT5NFzILBLvPsETmavXx/55eYtcfNcIebWjMwLHw88OecleCCp2WlyH4kYYw7Jn26Szt2Q== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 22:33:00.4040 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2588 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.33.75 Subject: [Qemu-devel] [PATCH v3 3/5] cadence_gem: Correct the interupt logic X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://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>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: alistair23@gmail.com, f4bug@amsat.org, alistair.francis@xilinx.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index a66a9cc..e1962e1 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -509,7 +509,18 @@ static void gem_update_int_status(CadenceGEMState *s) { int i; - if ((s->num_priority_queues == 1) && s->regs[GEM_ISR]) { + if (!s->regs[GEM_ISR]) { + /* ISR isn't set, clear all the interrupts */ + for (i = 0; i < s->num_priority_queues; ++i) { + qemu_set_irq(s->irq[i], 0); + } + return; + } + + /* If we get here we know s->regs[GEM_ISR] is set, so we don't need to + * check it again. + */ + if (s->num_priority_queues == 1) { /* No priority queues, just trigger the interrupt */ DB_PRINT("asserting int.\n"); qemu_set_irq(s->irq[0], 1); @@ -1274,7 +1285,6 @@ static uint64_t gem_read(void *opaque, hwaddr offset, unsigned size) { CadenceGEMState *s; uint32_t retval; - int i; s = (CadenceGEMState *)opaque; offset >>= 2; @@ -1285,9 +1295,7 @@ static uint64_t gem_read(void *opaque, hwaddr offset, unsigned size) switch (offset) { case GEM_ISR: DB_PRINT("lowering irqs on ISR read\n"); - for (i = 0; i < s->num_priority_queues; ++i) { - qemu_set_irq(s->irq[i], 0); - } + /* The interrupts get updated at the end of the function. */ break; case GEM_PHYMNTNC: if (retval & GEM_PHYMNTNC_OP_R) {
This patch fixes two mistakes in the interrupt logic. First we only trigger single-queue or multi-queue interrupts if the status register is set. This logic was already used for non multi-queue interrupts but it also applies to multi-queue interrupts. Secondly we need to lower the interrupts if the ISR isn't set. As part of this we can remove the other interrupt lowering logic and consolidate it inside gem_update_int_status(). Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> --- hw/net/cadence_gem.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-)