Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp761480pxk; Thu, 17 Sep 2020 15:53:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJG8PyPBzYtScLKznKmZfKqmTfbwjm4NwazhuJNlY5D3DZO3Fkx/7XZO2qU0k+o82tM9Gn X-Received: by 2002:a17:906:b813:: with SMTP id dv19mr32591025ejb.70.1600383225607; Thu, 17 Sep 2020 15:53:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600383225; cv=pass; d=google.com; s=arc-20160816; b=EHpflLDXjKno1kc85+ogHb9Ns1h/jAgcqOAoAI1ZPP4Gy2O7aeJ4r27qm2S2ncYjAO mdE/DYWac6jOXsEbobf3HP9gUY5EtTzk4T5UXeP5tg7FqoVdj9PgCD3yI9E32GFWv9Zx Fqo8zLfKGFkkWqcbWhk7mh78drbo56q8MsxqmwruWWprOFI5tclVaOrXhf/3JYdma1Mn 1ps0amWBsvY3VXyEYGyWvdr7yWL4x4iM5731zxt0M6zII4nu8QdIRshLws1Fv9Rtc+Ia ijbr8RDE7ga49ZJfBfUMjGNemlZ9Duz6CqzpqvCmt5OkLdL3EVLfbmv65hO0sMUbPQOu WDWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=3sOKZHLHkK1mgGZP/iObMu7uDeEW+RWFtoZsLP9+QoQ=; b=WMwp87O+82HXNc22xruozC6MvX38ZDDT3vB2iQMVjcPGNZGFGJCFyIfSQF4EuF5qer QGSkInjN8QaTP2qfMk4a7reIu6er2nPa3+9e2yj3OhEvm+YSyJkcE9F+f+0VkU8TaHqO cBXcilSF8qqVivrWeSC//y9XcwfO6YdQFpg8fW/g6zeF25WoCJgFHp6MkEnrAM7y/otD WqNBp/y1/n+WVjeVZw1ktEAM8Gdk5nv2SJdKhoJcbW/vgxdfcHrrQdiWyfwTesUYftjf IcZfkO0BQgkx8uFHpKgj6lIUaj+OqBRFZXStkBp8UpXygDqzD1F1nnOtDB/dQfQe/zx+ 6YGg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=bK3Kj01u; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx8si976157ejb.175.2020.09.17.15.53.21; Thu, 17 Sep 2020 15:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=bK3Kj01u; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726179AbgIQWuq (ORCPT + 99 others); Thu, 17 Sep 2020 18:50:46 -0400 Received: from mail-dm6nam11on2042.outbound.protection.outlook.com ([40.107.223.42]:7777 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725858AbgIQWuq (ORCPT ); Thu, 17 Sep 2020 18:50:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kckCpwHplbEGAt+SO4yjH14TffKFCfZxjDr9Q0m9X7bLCjm+NENDvplaVFQwWzesGKF6+WIR/0w+9gMes+QHLe99PFM5kfgcpF7qnCB2mx7scDKeDkoWdNg7EJjXGhqsAFThqorBhVP88KtOcgQyCD8p1HTafSi/OAJ0qHiuR/3pGsUQSf61s6JeaKK1UgY719E8+y2wZWyvOPT/R1zbY83XFCXX+1Yp3k4RSGuW6A5EQltBIpY22lUZ/CYM6I36pccaB+/LKCDGl9NWZTrTjwwQJkxpEsCmrWU0bHmTaYZMeGQhvtyBYO2jgn+OBvWy4JgKeBD63oLu7MOa2euO/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3sOKZHLHkK1mgGZP/iObMu7uDeEW+RWFtoZsLP9+QoQ=; b=AAEn7AkCMVjE5JB2kY+ifcF4ve0yrF9Two0TV02Co4qxGaHOyw8x4uRYzj+emd6WF/IJR3ekOlSUUwBncDAey6Q0J0H69sgngjrxClFAhuJxQ05aP13ALvczgvwPy9IQg9NWr61ZchsbnZN8q5noio0h3HQ0kMRXEy6xnAG+cNZMV7ikrzlKbMyZ/cAZjAjL87vtyqMbjB2GJzEPN2jnToCF27dnlbNPBKuePn+x8CQVNLRbWvIvJ6Ut8G+KFTmnxpsYe7m4U7PSmHsNQAfM7ywbDKaitg8x/9dWdH4RR6tI48JUI8mxJ5BdZSuyr8gngU4tG3C4nrDfG4ECF49xzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xilinx.com; dmarc=pass action=none header.from=xilinx.com; dkim=pass header.d=xilinx.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3sOKZHLHkK1mgGZP/iObMu7uDeEW+RWFtoZsLP9+QoQ=; b=bK3Kj01u2eMpooHCjq924bETDkdFOKUaT56iVa23i49ocwVt+iboJkrPkYKB89VlKGxPurdmB/mR94mfpoAGIS5IlzLMT40vzo0Bai2bCB1bqQPygKi15sZ7pgQ/Qm17HvVdvr5OgOV4CD3QbeG/EXic7gHbFEVEQWtr0c7gUCA= Received: from BYAPR02MB4407.namprd02.prod.outlook.com (2603:10b6:a03:55::31) by BYAPR02MB5127.namprd02.prod.outlook.com (2603:10b6:a03:6c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Thu, 17 Sep 2020 22:50:42 +0000 Received: from BYAPR02MB4407.namprd02.prod.outlook.com ([fe80::b0f6:b3a:6543:26f5]) by BYAPR02MB4407.namprd02.prod.outlook.com ([fe80::b0f6:b3a:6543:26f5%5]) with mapi id 15.20.3391.011; Thu, 17 Sep 2020 22:50:42 +0000 From: Ben Levinsky To: Michael Auchter CC: "devicetree@vger.kernel.org" , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: RE: [PATCH v14 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver Thread-Topic: [PATCH v14 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver Thread-Index: AQHWjSzx2v36zrUuJk25DA+tFuTaOqltZJcAgAAAbzCAAAnbcA== Date: Thu, 17 Sep 2020 22:50:42 +0000 Message-ID: References: <20200917194341.16272-1-ben.levinsky@xilinx.com> <20200917194341.16272-6-ben.levinsky@xilinx.com> <20200917221120.GA15530@xaphan> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: ni.com; dkim=none (message not signed) header.d=none;ni.com; dmarc=none action=none header.from=xilinx.com; x-originating-ip: [24.5.142.107] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3440f0b9-3af2-4945-7718-08d85b5c1b31 x-ms-traffictypediagnostic: BYAPR02MB5127: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gS3/TwZ1wrOUJ1XkfjoQgzRWbO7kvVssWAgrv6tEHK96ee+PGXEy1cx6qQ+1Jtu53Xcu/jf2ZRWMrGK/UFUfM4FXx73BqjM2PSvKh+FUgoFoD/+1OJyqVmImurfTk0tB6Y3yoYYMBpIy0TZUYx73DyflvLGtx66CSZojDXfid+QqAgLyYZFAwvRRbpetQeTaTDuly6duEW+SBONuWLqVwf/uGzFVXl0UWpuI8aq4Bx9YOcwP3K1FA+WgSzaiocl6HD5ULsic5h0wPP9RuBeyWfqujlS8ZytD1mFNbLRqhSU5feGhyf2I2nfGkrx1iz4auRpBdRk1TPPoqga9brZ5sR9VXny3otI5Bj/axJRnwjlGkcBgm7o3hrlJK4Vytb2H x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR02MB4407.namprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(376002)(396003)(346002)(366004)(39860400002)(136003)(4326008)(54906003)(83380400001)(8676002)(52536014)(8936002)(33656002)(66946007)(71200400001)(5660300002)(76116006)(66556008)(64756008)(66446008)(66476007)(186003)(2940100002)(86362001)(2906002)(7696005)(9686003)(55016002)(316002)(6506007)(53546011)(478600001)(26005)(6916009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: g2an5XUhrZMQ4QzDzdkHtDwpLADXtd2OVw6sQXAD7qKaE6eIzqUdT/86LvX57v6YvU+i6cR67H2JxJNWMzPDp4n1dIiRZSRvqnXhz6WQ4UWeMiatmH0wLaSHpgQBll7DYyPPwmo+zm0OSX+Eu7LrU+8VSodA/hFIfi3ghp/vIaGG1jPtL6VKUiVV7MkpJtpTVBUzunav0WS/YvgxHjawlhnkhDaG5VfqdNlc+zUtM8IJDadwXtNf3Oad3IpsmwpL2sKNUqnZYx//gIjPSwM/Z3XKwk62Gd2+T8yQ8Ktjo5MUgJv2nnwDnFvYqB3JYxwSKdDDk6vk11HdtwUB0FhqGfGmte6hUJMXjzOu92eytkGfuyfeitmeSD1/HemS045Gj6CeZFT4oeMwjPhQvsx5eefHBpdCdocpV1N9U7cT/s1JWCa4P1uqIM5iYiT1XWWaBQw+0LWsOf0wm+jOfKLl72jzGfZfDF16D274KpGkyy835DV9fw/NzRIQIq7ul9blKmEEkWv9OogyEs3LgSh01alGB2qdeDaAJ07c6JJnuZdC5qiEa3sw4niHu1QEZmLp/+Z4UGomgF9UrHiEBrivSbP2MzytEeQDDZ3ug8b+iacOlksKQQ2TqnrnsTX8cIb3AErVu/l3t86fEKirIXUdHg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR02MB4407.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3440f0b9-3af2-4945-7718-08d85b5c1b31 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2020 22:50:42.3041 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zO6pj6LHN8Tj7+/keujHQwh5l2EzEuYZrkiR0Q/Dn3Tz1Ywr2MpF3maWApQyZe0a+Vnuu4VPcJrNZCGu6MaHSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB5127 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Ben Levinsky > Sent: Thursday, September 17, 2020 3:19 PM > To: Michael Auchter > Cc: punit1.agrawal@toshiba.co.jp; Stefano Stabellini ; > Michal Simek ; devicetree@vger.kernel.org; > mathieu.poirier@linaro.org; Ed T. Mooring ; linux- > remoteproc@vger.kernel.org; linux-kernel@vger.kernel.org; Jiaying Liang > ; robh+dt@kernel.org; linux-arm- > kernel@lists.infradead.org; Jiaying Liang ; Michal Sim= ek > ; Ed T. Mooring ; Jason Wu > > Subject: RE: [PATCH v14 5/5] remoteproc: Add initial zynqmp R5 remoteproc > driver >=20 > Hi Michael, >=20 > Thanks for the comments, >=20 > > -----Original Message----- > > From: Michael Auchter > > Sent: Thursday, September 17, 2020 3:11 PM > > To: Ben Levinsky > > Cc: punit1.agrawal@toshiba.co.jp; Stefano Stabellini ; > > Michal Simek ; devicetree@vger.kernel.org; > > mathieu.poirier@linaro.org; Ed T. Mooring ; linux- > > remoteproc@vger.kernel.org; linux-kernel@vger.kernel.org; Jiaying Liang > > ; robh+dt@kernel.org; linux-arm- > > kernel@lists.infradead.org; Jiaying Liang ; Michal S= imek > > ; Ed T. Mooring ; Jason Wu > > > > Subject: Re: [PATCH v14 5/5] remoteproc: Add initial zynqmp R5 remotepr= oc > > driver > > > > Hey Ben, > > > > Split mode is still not functional in this patch series (as was the cas= e > > with the last few revisions). > > > > Before sending out the next revision, can you _please_ ensure you're > > testing all supported configurations? > > > [Ben Levinsky] I will make sure to update in next revision. > As per review, I tested on QEMU and hardware firmware loading in split > mode on R5 0 split, R5 1 split and R5 lockstep and was able to successf= ully > load, start and establish IPC links >=20 > That being said, I will update the to reflect the values between the enum= for > rpu operation mode and the documentation in the binding. >=20 > For testing, I can provide a pointer to a publicly available device tree = I am > using if that helps. If not, can you expand on the testing of supported > configurations? >=20 In addition to device tree, is there particular linker script you use for y= our R5 application? For example with OCM? As presently this driver only has= DDR and TCM as supported regions to load into=20 And I planned to add OCM support if/when the driver gets in. Thanks, Ben > > On Thu, Sep 17, 2020 at 12:43:41PM -0700, Ben Levinsky wrote: > > > +/** > > > + * RPU core configuration > > > + */ > > > +static enum rpu_oper_mode rpu_mode; > > > + > > > > <.. snip ..> > > > > > +static int zynqmp_r5_remoteproc_probe(struct platform_device *pdev) > > > +{ > > > + int ret, i =3D 0; > > > + u32 lockstep_mode; > > > + struct device *dev =3D &pdev->dev; > > > + struct device_node *nc; > > > + > > > + ret =3D of_property_read_u32(dev->of_node, > > > + "lockstep-mode", > > > + &lockstep_mode); > > > + if (ret < 0) { > > > + return ret; > > > + } else if (lockstep_mode !=3D PM_RPU_MODE_LOCKSTEP && > > > + lockstep_mode !=3D PM_RPU_MODE_SPLIT) { > > > + dev_err(dev, > > > + "Invalid lockstep-mode %x in %pOF\n", > > > + lockstep_mode, dev->of_node); > > > + return -EINVAL; > > > + } > > > + > > > + rpu_mode =3D lockstep_mode; > > > + > > > + dev_dbg(dev, "RPU configuration: %s\n", > > > + lockstep_mode ? "lockstep" : "split"); > > > > The binding documents lockstep-mode as: > > > > > + lockstep-mode: > > > + description: > > > + R5 core configuration (split is 0 or lock-step and 1) > > > + maxItems: 1 > > > will update this as you note so that lockstep and split mode are accurate= ly > reflected. >=20 > > (Which needs to be reworded, but it looks like the intent was "split is > > 0 and lock-step is 1") > > > > However, rpu_oper_mode is defined as: > > > > > +enum rpu_oper_mode { > > > + PM_RPU_MODE_LOCKSTEP =3D 0, > > > + PM_RPU_MODE_SPLIT =3D 1, > > > +}; > > > > so the assignment "rpu_mode =3D lockstep_mode" is incorrect. > > > once the binding is updated, why would this still be incorrect? Assuming = the > documentation is updated, the above line would be ok, right? >=20 > Thank you for the review > Ben >=20 > > - Michael