Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp479507ybr; Fri, 22 May 2020 11:06:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEHqYBKKhAu5QUrd3CcniZERKe0n1klAewu79Zwgp4zCyTqvtknXgGI7az1CKX7PK8zpkW X-Received: by 2002:a17:907:447c:: with SMTP id oo20mr9104049ejb.385.1590170785723; Fri, 22 May 2020 11:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590170785; cv=none; d=google.com; s=arc-20160816; b=gJSq7XMrToZye/CKq8/DQRJ9GwTkUbADI/rhaRb5dR5+0dHtFfiDc8G1BmJB4bM3JO AyJat8w2AZntpTSoDqJa/vP/RVO+QXoOinSV317AE2CYhAmy7f5fx3KL4EKARWSLJTfP 2+8YbvKACyWi0W7H66h+q3bCidb+nYFf1Omo1PHc3j+2ay4jE9l94qvQT+e3DHD+GDoq n7G1MzUbS4lmGZeCELiPRQQkcjW4eAKU96VmWcQ+7XibF30pFA0dxmpJlpzxF9/Y6pHP 8r8uPPkCUrXUCN356DkNHc0SeFRWSsJJmDSMSdnL+D4zBVw4Tu4KGem2HgJzeN1m9rml GfCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=67U1V6rCy7YUc6UpgjCDmhVN9IIhQuAA6TSa+JbplFo=; b=F6LnFgDlBBi2gI3w4RskRuneQLG4Q89vSdV3Fc1ZkIJ05zYsdztm0DYG0fgDs7/vxg +3JU6MX4JfuC66kaB/AtkrY1xZqkhMpDqEjz0DI/x9ZrJ88Cgv80CE4VmipuXqHIcL41 Ykw4KxcvDBI4BwAxb68WxbbIR8fhCzUgxTHLaGOvuoMwltTmNc4yb0tM+dqIaOcd1f4j 2+GA0pNiPegjJIb5IF+SejhYuTYvTHJ5qzNHOQNB0xG8FcYll1ODKQRJ8lJpeIZVfHWz EZRzCQ78Ccau1mjtEJb1KYxoq67Om2Wlt+1Z8CD3kCByHvmg8mjIixPWVKAP7yg+7O4t aFrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=kKAQad8R; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kalray.eu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds10si6450560ejc.183.2020.05.22.11.06.02; Fri, 22 May 2020 11:06:25 -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=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=kKAQad8R; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kalray.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730904AbgEVSDr (ORCPT + 99 others); Fri, 22 May 2020 14:03:47 -0400 Received: from zimbra2.kalray.eu ([92.103.151.219]:50422 "EHLO zimbra2.kalray.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730674AbgEVSDo (ORCPT ); Fri, 22 May 2020 14:03:44 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 5B1F627E06AA; Fri, 22 May 2020 20:03:42 +0200 (CEST) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id IaL2CMJpeGDJ; Fri, 22 May 2020 20:03:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id B4DCE27E1552; Fri, 22 May 2020 20:03:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu B4DCE27E1552 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1590170621; bh=67U1V6rCy7YUc6UpgjCDmhVN9IIhQuAA6TSa+JbplFo=; h=Date:From:To:Message-ID:MIME-Version; b=kKAQad8RhOyvwXbgXoN5NUfFaKRc9usZvBnKkjrLZeYCPZJSTkf/8I3hFGjDNyPCd 5ySQh0kGU50F5FS9vxQFi78aMazxHqgwQuPyy+oN0sxP8EtZIavliQZ716JWicvSPt /pPGP2TfnLHMj8QB76Lg0PYV47rgn9cfNyV8q/zY= X-Virus-Scanned: amavisd-new at zimbra2.kalray.eu Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id L9kMkSqF4DrI; Fri, 22 May 2020 20:03:41 +0200 (CEST) Received: from zimbra2.kalray.eu (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 9AAE627E06AA; Fri, 22 May 2020 20:03:41 +0200 (CEST) Date: Fri, 22 May 2020 20:03:41 +0200 (CEST) From: =?utf-8?Q?Cl=C3=A9ment?= Leger To: Bjorn Andersson Cc: s-anna , Rob Herring , Mathieu Poirier , Loic PALLARDY , Arnaud Pouliquen , Lokesh Vutla , linux-remoteproc , devicetree , linux-arm-kernel , linux-kernel Message-ID: <1739080680.4218297.1590170621467.JavaMail.zimbra@kalray.eu> In-Reply-To: <20200522173346.GJ11847@yoga> References: <20200325204701.16862-1-s-anna@ti.com> <20200325204701.16862-4-s-anna@ti.com> <20200521180417.GJ408178@builder.lan> <997d6f9a-64ba-7a89-e909-9a5a474120b0@ti.com> <20200522173346.GJ11847@yoga> Subject: Re: [PATCH 3/4] remoteproc: add support for a new 64-bit trace version MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [192.168.40.202] X-Mailer: Zimbra 8.8.15_GA_3895 (ZimbraWebClient - GC81 (Linux)/8.8.15_GA_3895) Thread-Topic: remoteproc: add support for a new 64-bit trace version Thread-Index: L30XW51sgsk7NRKU7I+TV4VplJ8G6Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Suman, ----- On 22 May, 2020, at 19:33, Bjorn Andersson bjorn.andersson@linaro.org= wrote: > On Fri 22 May 09:54 PDT 2020, Suman Anna wrote: >=20 >> On 5/21/20 2:42 PM, Suman Anna wrote: >> > Hi Bjorn, >> >=20 >> > On 5/21/20 1:04 PM, Bjorn Andersson wrote: >> > > On Wed 25 Mar 13:47 PDT 2020, Suman Anna wrote: > [..] >> > > > diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc= .h > [..] >> > > > +struct fw_rsc_trace2 { >> > >=20 >> > > Sounds more like fw_rsc_trace64 to me - in particular since the vers= ion >> > > of trace2 is 1... >> >=20 >> > Yeah, will rename this. >> >=20 >> > >=20 >> > > > +=C2=A0=C2=A0=C2=A0 u32 padding; >> > > > +=C2=A0=C2=A0=C2=A0 u64 da; >> > > > +=C2=A0=C2=A0=C2=A0 u32 len; >> > > > +=C2=A0=C2=A0=C2=A0 u32 reserved; >> > >=20 >> > > What's the purpose of this reserved field? >> >=20 >> > Partly to make sure the entire resource is aligned on an 8-byte, and >> > partly copied over from fw_rsc_trace entry. I guess 32-bits is already >> > large enough of a size for trace entries irrespective of 32-bit or >> > 64-bit traces, so I doubt if we want to make the len field also a u64. >>=20 >> Looking at this again, I can drop both padding and reserved fields, if I >> move the len field before da. Any preferences/comments? Not only the in structure alignment matters but also in the resource table. Since the resource table is often packed (see [1] for instance), if a [1] https://github.com/OpenAMP/open-amp/blob/master/apps/machine/zynqmp_r5/= rsc_table.h >>=20 >=20 > Sounds good to me. >=20 > Thanks, > Bjorn