From patchwork Thu Jun 14 05:27:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai Pavan Boddu X-Patchwork-Id: 10463295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BEBB26020F for ; Thu, 14 Jun 2018 05:29:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEB8A28866 for ; Thu, 14 Jun 2018 05:29:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FC2928A1E; Thu, 14 Jun 2018 05:29:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 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 mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1065728866 for ; Thu, 14 Jun 2018 05:29:05 +0000 (UTC) Received: from localhost ([::1]:38328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTKoi-00046C-BZ for patchwork-qemu-devel@patchwork.kernel.org; Thu, 14 Jun 2018 01:29:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTKn8-0003KG-CQ for qemu-devel@nongnu.org; Thu, 14 Jun 2018 01:27:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTKn5-0004PP-6b for qemu-devel@nongnu.org; Thu, 14 Jun 2018 01:27:26 -0400 Received: from mail-co1nam03on0081.outbound.protection.outlook.com ([104.47.40.81]:42013 helo=NAM03-CO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTKn4-0004OS-Q1 for qemu-devel@nongnu.org; Thu, 14 Jun 2018 01:27:23 -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:X-MS-Exchange-SenderADCheck; bh=docaYoHK+KMi48O56+f5iPyCXoWOcD7Ii25MgBLROyg=; b=gAWJqqsCR8SrUxCRG3jIAaOBHXbkCnB30Je4SG7zaiZ0zdU4h34B39jVzFLAEsAoDdmg9iajXSCTvaCfOiz9+itvzz/2SCT7tIDATtqFg/X9SfWEKp58AB7zAY1fONGFQYPulTVjDaTJeTmo7gYO8awoB8cJlWebyfSgVPw/7ck= Received: from SN4PR0201CA0008.namprd02.prod.outlook.com (2603:10b6:803:2b::18) by SN6PR02MB4349.namprd02.prod.outlook.com (2603:10b6:805:a4::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Thu, 14 Jun 2018 05:27:19 +0000 Received: from CY1NAM02FT036.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::206) by SN4PR0201CA0008.outlook.office365.com (2603:10b6:803:2b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.863.16 via Frontend Transport; Thu, 14 Jun 2018 05:27:19 +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 CY1NAM02FT036.mail.protection.outlook.com (10.152.75.124) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.863.11 via Frontend Transport; Thu, 14 Jun 2018 05:27:18 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:54585 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1fTKn0-0002kh-D6; Wed, 13 Jun 2018 22:27:18 -0700 Received: from [127.0.0.1] (helo=xsj-smtp-dlp1.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fTKmv-0005vQ-8O; Wed, 13 Jun 2018 22:27:13 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp1.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w5E5RCDn016293; Wed, 13 Jun 2018 22:27:12 -0700 Received: from [172.23.37.96] (helo=xhdsaipava40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fTKmu-0005vN-8U; Wed, 13 Jun 2018 22:27:12 -0700 Received: by xhdsaipava40.xilinx.com (Postfix, from userid 14131) id 8612813C2925; Thu, 14 Jun 2018 10:57:20 +0530 (IST) From: Sai Pavan Boddu To: Date: Thu, 14 Jun 2018 10:57:04 +0530 Message-ID: <1528954027-7938-1-git-send-email-saipava@xilinx.com> X-Mailer: git-send-email 2.7.4 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.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)(396003)(39380400002)(346002)(39860400002)(376002)(2980300002)(438002)(189003)(199004)(48376002)(50466002)(63266004)(426003)(6666003)(486006)(6916009)(8676002)(305945005)(81156014)(8936002)(476003)(2616005)(356003)(5660300001)(126002)(50226002)(81166006)(551934003)(478600001)(106466001)(2351001)(47776003)(2906002)(59450400001)(90966002)(106002)(54906003)(6266002)(52956003)(51416003)(336012)(186003)(26005)(1857600001)(36756003)(4326008)(16586007)(103686004)(316002)(39060400002)(42186006)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR02MB4349; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; LANG:en; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT036; 1:W+VUW7B/T9dGybGxGw8jETxLSULtd1k6cGsHbGyEm+bt0R1oBr8ez7rUV0dnh8ZI/Z/G4u5SbQ6tFUL424ZRSUaBHfrRfJrzKjUpgZeAReLKNndBu7NfqzIOkes/tuQh MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5333f422-fba9-4f0d-f6e8-08d5d1b77f9c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(4608076)(2017052603328)(7153060); SRVR:SN6PR02MB4349; X-Microsoft-Exchange-Diagnostics: 1; SN6PR02MB4349; 3:fg0P0UDGOMnO6vYYw+hJwHBe0FhdLjb8Z4S3pTipG1nOXCqyJTzna/lM+P12hYmA0IVikJ/dVUh5O15m5wO3DJ4egtWx3gfeC39wYYcsDSGQuGeBC5sOwS4WMMRavTBHBOqz1zxuj/x2lqwsbZRNS3pp+A0FE773jNF6Kdk87LarKmPsJcWs8juPS3yZIKyG2rLn5XZ1dkpfGWb32E0zlQ2Zt30+dp8nC/QR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pdd6Wh2KuXR39BhlBawqZyVBj986ssSSnRZSXMXeUMZGyM2KjZR5678Pgr7sp5owPl26Ey/x7USph4Lr2gVCxPYivQlB+DCoCzsQJuSoZfIRf27NfBlCyNVYiIYGDq3n303XdWFgz5leNViOSGbbx8tZZznmeZ9wJgPFGFHDBcgSvuhrX+lal8WviiIhEFVtoDWF9Wqia9p+CFK7wN4Zsqqk+DQsB X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93004095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:SN6PR02MB4349; BCL:0; PCL:0; RULEID:; SRVR:SN6PR02MB4349; X-Microsoft-Exchange-Diagnostics: 1; SN6PR02MB4349; 4:WaEpQaQu+gaM+gDVTTRafVDeaE3SKqwUQmaG80buhLpWJf3AN28q56x1PEK2QF1lpd0mmT7EDHfsjNU4BgT5Z+BwCklBaWCRrKz69BIsV2xfpm1w/PeAJvd153qM9KQ8uyowqU4qYqe4G66EXBu0hCMHyiHzhR8E9hD9M94+R74iMrY9vshrLQsXizHsjBSyrL+3XkOX3Squn0OiQe7WJrnJKN7AgiuEyXUpm5KoCsAV94XU3IVK7/auWVpdcfx1aN234EHuBCLFoiCjpFP18mwLNV1ImSngyI8+70hmio1qE2MSwfwe9n0WThJyf6lH X-Forefront-PRVS: 0703B549E4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN6PR02MB4349; 23:zw00ts29C8TuUHQJ9ZQDsiA0TkgxNeqHXNhF57P8e?= =?us-ascii?Q?z7F7Fw4OR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lc0q/g==; 5:Hj9N2aRbPDbOu6MH4VBJSbs1D6xvVM89jUU+lH2ZHYPf/KIIDk8VgC4vK16rpIUg0JlRMV2Ptetmcq3Z6g4n5DYpv9njwkthSBwFqwUBxgAClU3X/FIERZGdw2uPWG7l/A2C4o3IkxXEgDBNu29+PCCJx8WZ3gVyUbWA+eb3ylg=; 24:U3+t6755ARD37MjZ5YHdEVObtDGa9tJCczbVQbOEMhkIEv5ylVz4jPCEBU+VkTI7rVc4d5bXZKBL3Vrk8/tm07KClfyk6Qcu4K/YI63btjk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN6PR02MB4349; 7:hIZGyd+dLN2I7WhqjjQT6i2M6e62L1AedMdjFcUg64cydDjGxvNe4Sb4cmbvovvEf2Qo34lr3LZmVQ04rF59LcelxLaMl13Bp5IyJGwiJh9fyALQaC9J1hBmSHBg9BfoWPMqx1/6RynSxQuU7zqaVcGR2oeBttDofA62yIaKT2k3a/MDOAj+xidkblBil4aMe1QtqN+LVJaZ3Njwkj1eFKbGzG0tTmGmwCAWjoH9pbYbVfBtZuNwIlut9b1Xk77b X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 05:27:18.9256 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5333f422-fba9-4f0d-f6e8-08d5d1b77f9c 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: SN6PR02MB4349 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.40.81 Subject: [Qemu-devel] [PATCH] xilinx_spips: Make dma transactions as per dma_burst_size 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: "Edgar E. Iglesias" , Peter Maydell , Alistair Francis , Francisco Iglesias , Peter Crosthwaite Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Qspi dma has a burst length of 64 bytes, So limit transaction length to 64 max. Signed-off-by: Sai Pavan Boddu --- hw/ssi/xilinx_spips.c | 18 +++++++++++++++--- include/hw/ssi/xilinx_spips.h | 3 ++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c index 03f5fae..ea006c4 100644 --- a/hw/ssi/xilinx_spips.c +++ b/hw/ssi/xilinx_spips.c @@ -851,12 +851,17 @@ static void xlnx_zynqmp_qspips_notify(void *opaque) { size_t ret; uint32_t num; - const void *rxd = pop_buf(recv_fifo, 4, &num); + const void *rxd; + int len; + + len = recv_fifo->num >= rq->dma_burst_size ? rq->dma_burst_size : + recv_fifo->num; + rxd = pop_buf(recv_fifo, len, &num); memcpy(rq->dma_buf, rxd, num); - ret = stream_push(rq->dma, rq->dma_buf, 4); - assert(ret == 4); + ret = stream_push(rq->dma, rq->dma_buf, num); + assert(ret == num); xlnx_zynqmp_qspips_check_flush(rq); } } @@ -1337,6 +1342,7 @@ static void xlnx_zynqmp_qspips_realize(DeviceState *dev, Error **errp) fifo8_create(&s->rx_fifo_g, xsc->rx_fifo_size); fifo8_create(&s->tx_fifo_g, xsc->tx_fifo_size); fifo32_create(&s->fifo_g, 32); + s->dma_buf = g_new0(uint8_t, s->dma_burst_size); } static void xlnx_zynqmp_qspips_init(Object *obj) @@ -1411,6 +1417,11 @@ static const VMStateDescription vmstate_xlnx_zynqmp_qspips = { } }; +static Property xilinx_zynqmp_qspips_properties[] = { + DEFINE_PROP_UINT32("dma-burst-size", XlnxZynqMPQSPIPS, dma_burst_size, 64), + DEFINE_PROP_END_OF_LIST(), +}; + static Property xilinx_qspips_properties[] = { /* We had to turn this off for 2.10 as it is not compatible with migration. * It can be enabled but will prevent the device to be migrated. @@ -1463,6 +1474,7 @@ static void xlnx_zynqmp_qspips_class_init(ObjectClass *klass, void * data) dc->realize = xlnx_zynqmp_qspips_realize; dc->reset = xlnx_zynqmp_qspips_reset; dc->vmsd = &vmstate_xlnx_zynqmp_qspips; + dc->props = xilinx_zynqmp_qspips_properties; xsc->reg_ops = &xlnx_zynqmp_qspips_ops; xsc->rx_fifo_size = RXFF_A_Q; xsc->tx_fifo_size = TXFF_A_Q; diff --git a/include/hw/ssi/xilinx_spips.h b/include/hw/ssi/xilinx_spips.h index d398a4e..cca1813 100644 --- a/include/hw/ssi/xilinx_spips.h +++ b/include/hw/ssi/xilinx_spips.h @@ -95,7 +95,8 @@ typedef struct { XilinxQSPIPS parent_obj; StreamSlave *dma; - uint8_t dma_buf[4]; + uint8_t *dma_buf; + uint32_t dma_burst_size; int gqspi_irqline; uint32_t regs[XLNX_ZYNQMP_SPIPS_R_MAX];