From patchwork Wed Feb 26 18:02:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 25367 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3837C20636 for ; Wed, 26 Feb 2014 18:03:56 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id hu8sf2917024vcb.10 for ; Wed, 26 Feb 2014 10:03:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=CpThJPWBy/8gXA9sYdpO0EIjIMui2EJ8myq7bllmX+g=; b=Q2B8wbhFqgW5KI8rlt2ab9mL+FRNw0q8c6oIajDE2wd0sFcalwHNMgCZSCVh/kVlLe RteG5N5QCE2Y59aOvLIoT1Hp82+4IbMit1FqYtE84cke+VgsxBu7QpBLqOYjmjmwsocN QjSQ8jAYCcZhrKbf57dn8+zIfKSOSGYphPsT33qJvsFASD4K1P0AFHgZ5pr05EfUS2A4 B0ZclFqB9Yrd54l1JTE1c0itkRG6YqoCCQeNWv56jNJFBYtvupE3uurIYy9XlNO07Nvr 23Tje/CIMKMH8f8Pysvw8i+oMj94k3to28AACqs1E6FJeUM4U3utzPl6wK2/StJmdMcJ 1uTw== X-Gm-Message-State: ALoCoQkcMvSlXpAq+l6A4+AfZp3i6sQ/vj4lIZEJoCY3N9pQfZ05Hgbv2Vd3Pv32vluKOIWINhVF X-Received: by 10.224.20.133 with SMTP id f5mr3153734qab.8.1393437835937; Wed, 26 Feb 2014 10:03:55 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.165 with SMTP id x34ls299462qgx.53.gmail; Wed, 26 Feb 2014 10:03:55 -0800 (PST) X-Received: by 10.52.230.105 with SMTP id sx9mr5888281vdc.10.1393437835760; Wed, 26 Feb 2014 10:03:55 -0800 (PST) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id av10si424097ved.112.2014.02.26.10.03.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 10:03:55 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id lf12so1314103vcb.31 for ; Wed, 26 Feb 2014 10:03:55 -0800 (PST) X-Received: by 10.58.155.162 with SMTP id vx2mr273212veb.46.1393437835671; Wed, 26 Feb 2014 10:03:55 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp44531vcz; Wed, 26 Feb 2014 10:03:55 -0800 (PST) X-Received: by 10.224.115.78 with SMTP id h14mr10127992qaq.94.1393437835034; Wed, 26 Feb 2014 10:03:55 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k1si983943qaf.85.2014.02.26.10.03.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 26 Feb 2014 10:03:55 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:42131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIipm-00022z-Iw for patch@linaro.org; Wed, 26 Feb 2014 13:03:54 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIioh-0000kU-LA for qemu-devel@nongnu.org; Wed, 26 Feb 2014 13:02:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIiog-0007JC-Fv for qemu-devel@nongnu.org; Wed, 26 Feb 2014 13:02:47 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:46191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIiog-0007Eu-AF for qemu-devel@nongnu.org; Wed, 26 Feb 2014 13:02:46 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WIioY-0006Dx-0I; Wed, 26 Feb 2014 18:02:38 +0000 From: Peter Maydell To: Anthony Liguori Date: Wed, 26 Feb 2014 18:02:33 +0000 Message-Id: <1393437755-23586-44-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1393437755-23586-1-git-send-email-peter.maydell@linaro.org> References: <1393437755-23586-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: Blue Swirl , qemu-devel@nongnu.org, Aurelien Jarno Subject: [Qemu-devel] [PULL 43/45] dma/pl330: Add event debugging printfs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Crosthwaite These are helpful to anyone trying to debug event sequencing. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Message-id: e82a0ad804db3de4f46839e55a9d287735ef870d.1393372019.git.peter.crosthwaite@xilinx.com Signed-off-by: Peter Maydell --- hw/dma/pl330.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c index 8046a6f..303f8b8 100644 --- a/hw/dma/pl330.c +++ b/hw/dma/pl330.c @@ -873,6 +873,7 @@ static void pl330_dmasev(PL330Chan *ch, uint8_t opcode, uint8_t *args, int len) DB_PRINT("event interrupt raised %" PRId8 "\n", ev_id); qemu_irq_raise(ch->parent->irq[ev_id]); } + DB_PRINT("event raised %" PRId8 "\n", ev_id); ch->parent->ev_status |= (1 << ev_id); } @@ -975,6 +976,7 @@ static void pl330_dmawfe(PL330Chan *ch, uint8_t opcode, } } ch->parent->ev_status &= ~(1 << ev_id); + DB_PRINT("event lowered %" PRIx8 "\n", ev_id); } else { ch->stall = 1; }