From patchwork Tue Jun 12 06:44:01 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: 10463271 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 C46BF6020F for ; Thu, 14 Jun 2018 04:53:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A88F128B45 for ; Thu, 14 Jun 2018 04:53:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A83228B5A; Thu, 14 Jun 2018 04:53:57 +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 13E3028B45 for ; Thu, 14 Jun 2018 04:53:55 +0000 (UTC) Received: from localhost ([::1]:38233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTKGh-00071j-2T for patchwork-qemu-devel@patchwork.kernel.org; Thu, 14 Jun 2018 00:53:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTKFN-0006cG-Si for qemu-devel@nongnu.org; Thu, 14 Jun 2018 00:52:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTKFK-0003yQ-R6 for qemu-devel@nongnu.org; Thu, 14 Jun 2018 00:52:33 -0400 Received: from mail-dm3nam03on0065.outbound.protection.outlook.com ([104.47.41.65]:54316 helo=NAM03-DM3-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 1fTKFK-0003yE-Hl for qemu-devel@nongnu.org; Thu, 14 Jun 2018 00:52:30 -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=xFD4ckA392tZmXAfyKtyN1TP0ZV0ibBvjeya6CxnslERsumj9NAxbeeA30yf3qUsns4/6Ci1NAjVMx25sFCrtmtTVvGB7CPWQWYo6JNn03bqv39WjBEDCj2xSX2BGl0qH3Yq0/tPNo5O3vQlrd05iXWm89sB83Oi2J7WsBAP7+c= Received: from BN6PR02CA0103.namprd02.prod.outlook.com (2603:10b6:405:60::44) by BYAPR02MB4952.namprd02.prod.outlook.com (2603:10b6:a03:47::26) 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 04:52:27 +0000 Received: from BL2NAM02FT053.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::205) by BN6PR02CA0103.outlook.office365.com (2603:10b6:405:60::44) 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 04:52:27 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) 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.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT053.mail.protection.outlook.com (10.152.76.225) 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 04:52:26 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1fTKFF-0003RX-UY; Wed, 13 Jun 2018 21:52:25 -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 1fTKFA-0006gm-SR; Wed, 13 Jun 2018 21:52:20 -0700 Received: from xsj-pvapsmtp01 (smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w5E4qKDb030698; Wed, 13 Jun 2018 21:52:20 -0700 Received: from [172.23.37.96] (helo=xhdsaipava40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fTKF9-0006gB-Q8; Wed, 13 Jun 2018 21:52:20 -0700 Received: by xhdsaipava40.xilinx.com (Postfix, from userid 14131) id 8F9E113C2925; Tue, 12 Jun 2018 12:14:12 +0530 (IST) From: Sai Pavan Boddu To: Date: Tue, 12 Jun 2018 12:14:01 +0530 Message-ID: <1528785843-2769-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.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(346002)(39380400002)(39860400002)(376002)(396003)(2980300002)(438002)(189003)(199004)(5660300001)(51416003)(186003)(1857600001)(50226002)(476003)(59450400001)(50466002)(305945005)(48376002)(2616005)(126002)(8676002)(52956003)(316002)(54906003)(42186006)(81166006)(16586007)(47776003)(426003)(478600001)(486006)(81156014)(26005)(8936002)(36756003)(4326008)(106466001)(6266002)(103686004)(90966002)(336012)(39060400002)(356003)(63266004)(6916009)(551934003)(106002)(2351001)(2906002)(6666003)(107986001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR02MB4952; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; LANG:en; PTR:unknown-60-83.xilinx.com; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT053; 1:USkGVH81eM9A760Q8COUC7DDFMq4dywbKHUSuFOkPdlKHbbeylovMzh/7WGBspVhJQMk7JMudzf4q+d6j693U+28KTYE2z6Z17IiitqnvFs5s+xPrsKweXoldFeboY44 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 96e7a9b4-ecea-478f-3ecb-08d5d1b2a064 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(4608076)(2017052603328)(7153060); SRVR:BYAPR02MB4952; X-Microsoft-Exchange-Diagnostics: 1; BYAPR02MB4952; 3:O6iMKTK+EXwI+cZ8v4SDt4kmtjkTNuo3onbnPk3MD4sPWW3BVDgBSXwKm4X8mknTNPqY3LYAzjH+qq+aodMjDbtHkijs/T9Age3JndujkIshV9LKhMVC4YOh+uFf6YJPWIg1jb5RFttFoyIUhZ6LlQvVNPEPqO1Nj3wQk44H6EyxWrxdKGvKFdREQYo+YX2ExXw7aq5vZK+lV0cgKNYZC8Pn2d7nyvOIk+abLQzn/TtmClEYt+LJ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ZezpVvKIduz4XC+AhkZZ6JADJMpjL76cBfUQhkHsZmRvMKM8BRHxb2XnanBqNI1WM0uN57xgwphRXtLJJ44O9gjk8Y0xDgRVHGLNXXzZ0/1g7V0hjcwe9diaBca6+AEc+1GOFqjtncXFLDepRPOfkE1zfzlU9WQLSkEYIHXUVy3U6cydKH+YuisLg01GCn6luGjPK15S2xuIBwA 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)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93004095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:BYAPR02MB4952; BCL:0; PCL:0; RULEID:; SRVR:BYAPR02MB4952; X-Microsoft-Exchange-Diagnostics: 1; BYAPR02MB4952; 4:yvch1c4JYC5QGOaSrH7eGUjwhRlK3VDbqym0VREHOGC1d2HDf4mWK4oH7MXZEISDwN5SYvln/+BLWaQqRi6qhgW8M3EYxIo+MFf1egt0G+2dF4PJK2mJGNQRPGp6z3HDT5XtUGJSQb8ACuykg8wPEnicbEDXAhYG+A80HkUj3h6gxsuzFjpsmJaArx2Ll2qauG19p5pvsz76kgQlxu2jCsRATNZHfZcXi/b10qO7hhVmRO6rXLYk5XZXhgXiYiPA3N0h7fKFb7NlT6gdgMqp2HnPbBbFsoq0TII+bRtQv0WNFRCcOjApD5hfXwzY1uDY X-Forefront-PRVS: 0703B549E4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BYAPR02MB4952; 23:zsfF1mUXy7Jmh4vOvN7YhknFjQf4DjRltGKbbas2w?= =?us-ascii?Q?6yRXdk2iT/WRcOWYhv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?NJdyxcnd9QjVO/flVfKzJRJVA6xK/81KgPuxJZXzEYxf06czP41zeqie3A2+?= =?us-ascii?Q?q6iIQqCFl9jySx6QhRks3iAPdQsHPXtw7k52jmiRji6h1aEqcHIepHhpar/Z?= =?us-ascii?Q?KLuDPI6UZflgXxtSgjin9nwJZBpFqVMbEYXifhyDqjLHx0hiJ3D5bx00Npjp?= =?us-ascii?Q?kZArhq94jMwWQgC4pxf3RisIQ2n/pmlnc5NiEfWjHzluvQFX7ZYjergpa9fJ?= =?us-ascii?Q?4upQDNAZxpN8k+E2IBgMt2uz3drLhihe0VDVQl+eZKRcv3qN8w8P0IZ2Fs9t?= =?us-ascii?Q?3tpejpzJukbFkEEvvL6ib4KfCY7f+V9ozlgTRT+?= X-Microsoft-Antispam-Message-Info: EyYDzT9qpF1XeNu2bFbBVvdAYv521NKV9OyDndfURdZyopICJoUINcPMBThBhCR9QdOv2F13BM4RP06inZrIv9F5D5pcj3g8hwr2YwJStZoe4X0YAcUF28m63zwnNQqIMh7LlTTsmgnv9nNoS8D6y9Hb5GzBo3MwC7MJxcpBfut9NfqcjmFnSMTPrMz+pG1Q X-Microsoft-Exchange-Diagnostics: 1; BYAPR02MB4952; 6:T7MZYy/KqLY15Px1ZO1+xjGe18fLKFSlZcIPljjFQC44pXKmkE+l7R8UOh+slq3g1oQw62Ik1T6Bo8ez2731ANTStoTlA+lcLFUOnI8Mptsun2RERI2kplKuGhyOyQ99lKbpNsxd98sHA3eiNw0SacSM8FeN3yJqFm9ZtqqdSHCd2pgbGbREwDy7Pg7mkFo89Vl5r5SLRB5itppv7OT5s1trAfO9yAOejIrHVOTtYkMsQzA24uC+cX2lfI+LULNAEaVoH5Fx4U5zsvFCx6Za5tpBpidEDfHSNkI+RLC0+Yn1vCkB05OnA1jVI7+jZcypqC3qUDgevX2jj0Mpq3sfdEtfHw6O0Fflh4C84Eyn8QsYL98frUM5/G7QXhg/4+5K+rmBuRRZIEE63stObur0k9Yc0lEUX/f/4bRFBSoUGom35M7dBhdn6eX3leCEn3Z6kPCunE6jivEQUaWoETvLuw==; 5:CAPeD3U9bgjRAc8XG1PCcXtgQY4SKiygxu2bf7AT7zK49VmhrLPI/81V4d7UzskpjddtDl7Z4uUR1pwfUVrAFkhFvmXQigpxf+sS2iJgA29DH/Fz0B6W4FzFVKKNo78uCmwl861GXrTeSQNQca9dW51tTVcFMBwfM8fEErKlUQs=; 24:+hXE6y451VvH2wqOyQLftFI9L6oaHrOvoLDcquuXlnUEFbrTgzd33gkqWWGgdFgWKw+YepBBPh+Gm+288QXbsOOLHMlVC0jSm5Xer4uZ06E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BYAPR02MB4952; 7:6HFOd1QOIQCz+2vgji5drVrYikcRNQ5DcQKMGHml+F6fOobNIAWrOMkX0IFw60MOuUqW1vvJuGt2UOjIrpZEvHP0e3aJONro894vnOFyzg3NiX11iGaoZZnTsCbTu0hKJwInlSx5iJGqvcwFqsCwmTfJHcogY5Mdg105qDRNtfmxp4DQqJLfepXkBFat+RPvboOWSvNztm6g3xY39JEpaqzQPU7F168TkL3txDwT0aPsf4DYhZKFC8V2dqDhcZyX X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 04:52:26.5601 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96e7a9b4-ecea-478f-3ecb-08d5d1b2a064 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.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB4952 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.41.65 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 , Peter Crosthwaite , Francisco Iglesias , Alistair Francis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , KONRAD Frederic 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];