From patchwork Wed May 2 20:06:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francisco Iglesias X-Patchwork-Id: 907684 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=208.118.235.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PXflgY30"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40bq7h2qqsz9s4r for ; Thu, 3 May 2018 06:07:26 +1000 (AEST) Received: from localhost ([::1]:52392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDy27-0007CH-Aq for incoming@patchwork.ozlabs.org; Wed, 02 May 2018 16:07:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDy1Z-0007C6-Az for qemu-devel@nongnu.org; Wed, 02 May 2018 16:06:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDy1U-0007pQ-Ce for qemu-devel@nongnu.org; Wed, 02 May 2018 16:06:49 -0400 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:33066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDy1U-0007pC-4L for qemu-devel@nongnu.org; Wed, 02 May 2018 16:06:44 -0400 Received: by mail-lf0-x244.google.com with SMTP id m18-v6so22691874lfb.0 for ; Wed, 02 May 2018 13:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=UmGYzY/tFez1RDPFY8hf0ehYTENvylAjGQuqzBIqR/8=; b=PXflgY30D78m4TI1dO8Tg1tca2DVDDIPFYuAW39bmbV1npT1AKDcxA2hst81JxnEdv jEEOguNEu0PKNAT6MLYIE6nmACimKZMraDySXP9qzR9GKYkAhqfqH8RuUIHcDvZ5rvdL 7RljqwgbXllqn+1NfbfCVaCLLSiP6WGiGpS80br7AKtM1Is6o94NGhIXipc+5RomtO24 dpSdNmLOH6BCslZCbs24HEzPyAUr7NAcIatXvSoDb8GOLEcVvI1R9LSUiwp+MPX+m4LY +e8Wc8rNOwWmsNpLVn3buCBNej4oozPHkqKIf7QLvEMK82c76rpCi/F81lcps8VGCLcx lsmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UmGYzY/tFez1RDPFY8hf0ehYTENvylAjGQuqzBIqR/8=; b=UJn9MzFi4EXtyKsmd20nYzhzb0/2KZ8A8LUexfhYxXDtCl3lVS4SUz5ztwUbCXtrc9 wHJ5m4oIrcwVz49gRGorMm1VHbh7X4DXVtSCj0zOIzRZfyWy0JylkPgXqFySGukwEMmX Arcci0xykuBN/JQdXUKdFftGcehhHSK4r0tcWkwjWO627CDr8h9XFa9UTPBvlTscsp2f TWwNxCA9OwBZLo7PCSLlmmzxifcilrI4h972hHVa4voHgdwN+Xv1Xha0qxknE4RYbuoI McWrtYAKx311nQOUqKRAUmo9m9MB+tm+w2gjbGg5cF9N0Ob1lICb4AGG0tnywIV1As8b 5Zyw== X-Gm-Message-State: ALQs6tBNXCet3NnXlPNZ9TMB+JxGuNzYaj1sX7miPJ5bpWab00Qg7G39 ozELtdvoY8fElt6qjHwEgtuiRQ== X-Google-Smtp-Source: AB8JxZr9mGQY3qLdxpD5vZ2nn9G7bzrOtCUe9rB1iM23aJxp9l3FYiyCWScsRK38W1Acyqu/+ytKAA== X-Received: by 2002:a2e:9f56:: with SMTP id v22-v6mr13714804ljk.42.1525291602338; Wed, 02 May 2018 13:06:42 -0700 (PDT) Received: from localhost.localdomain (94-255-130-40.cust.bredband2.com. [94.255.130.40]) by smtp.gmail.com with ESMTPSA id e24-v6sm2510687lfb.54.2018.05.02.13.06.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 May 2018 13:06:41 -0700 (PDT) From: Francisco Iglesias To: qemu-devel@nongnu.org Date: Wed, 2 May 2018 22:06:38 +0200 Message-Id: <20180502200640.22635-1-frasse.iglesias@gmail.com> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::244 Subject: [Qemu-devel] [PATCH v2 0/2] xlnx-zynqmp: Add emulation of the ZynqMP GDMA and ADMA X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, francisco.iglesias@feimtech.se, sai.pavan.boddu@xilinx.com, alistair@alistair23.me, edgari@xilinx.com, alistair23@gmail.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Hi, The ZynqMP Soc contains two separate instances of a generic DMA, one located in the FPD (full power domain) called GDMA and a second one located in the LPD (low power domain) called ADMA. This patch series attempts to add emulation support for these two DMAs on the ZynqMP board. The first patch in the series adds a model of the ZynqMP generic DMA (the ZDMA). The second patch in the series connects the two instances of the ZDMA, the GDMA and the ADMA, to the ZynqMP board. Best regards, Francisco Iglesias Changelog: v1 -> v2 * Don't unpause the DMA channel if CONT is zero and clear CONT after unpausing. * Added 'state' to the vmstate_zdma. * Renamed defines and variables in 'xlnx-zynqmp: Connect the ZynqMP GDMA and ADMA' to better reflect they are channels variables. Francisco Iglesias (2): xlnx-zdma: Add a model of the Xilinx ZynqMP generic DMA xlnx-zynqmp: Connect the ZynqMP GDMA and ADMA hw/arm/xlnx-zynqmp.c | 53 +++ hw/dma/Makefile.objs | 1 + hw/dma/xlnx-zdma.c | 835 +++++++++++++++++++++++++++++++++++++++++++ include/hw/arm/xlnx-zynqmp.h | 5 + include/hw/dma/xlnx-zdma.h | 84 +++++ 5 files changed, 978 insertions(+) create mode 100644 hw/dma/xlnx-zdma.c create mode 100644 include/hw/dma/xlnx-zdma.h