Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp81962lqb; Tue, 4 Jun 2024 05:56:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgfxp+7tZPfvlj6aY9MFfF9uO7LGAfLP32PqeFGMoNfMUKXUZ2/qsHC4e8kMukLthTqQ2ueZkRB0+ARLq4W/g1R2O/R0BBaz0yhsF4Vw== X-Google-Smtp-Source: AGHT+IFmUGHzmiqtV2ihb8PfTRMpxmZWJTCJuv520KpWABAG0pWaykKBa6MoSVKO0ebTPkk4nBJ5 X-Received: by 2002:a05:6808:1509:b0:3d1:e8c8:1369 with SMTP id 5614622812f47-3d1e8c81798mr10284753b6e.59.1717505812755; Tue, 04 Jun 2024 05:56:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717505812; cv=pass; d=google.com; s=arc-20160816; b=N/1/hGA9atMn+85uImEEjP+CTeo+ILaprzdJNJ21CzK7qGsLWxzbvGdqZfwd4f5+Ma 2mFl/POnjHO/yrT6Byd94JbROf+2Yw7fKpsY+z2HLebupU0zSf3mnkSYQBE2fvKDZXlU I5lXNkEMnTRx91dG82DsVB36utYR/q5AJLPf3b8qrN/FueaSwzG0Uxy43hn7i1YYh639 hVdC1AsgkCKwkCGTXIzQIo1VJbzI0mVWJHQvvjNiquhzsBn4LeUr0HraS/jd04kBrXr2 3JbBPcPS/K3c/YN+2VN/gvDYepeFTGe+jr3RHwLwBHHJBOHO4yzkekMhLy2KcUQbV+c4 Avvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ETTIRp6+sIjU+IWTI+nRyjXxT3ESKvDw8LivhS9+14U=; fh=OpO66bnWYHp53S+QeqeBZynq7PiR9PUrW0G8UNcrFZ4=; b=N8WyS8NlZZ6DxO6lZk7EJMq6bOIAR2x6ePHF+X8pb8m5T1Gde17l+xJunOpdo4+cOM ZLSd21AeJG2Kj4WlaV5Ts6zixk+k4PFelnBOQ9I8seZRAGrWv496+HBTvIQkAWktgmOK xOxrd7Q5pTN84PDWfHn/5kTySJ0PqX29hLbQay8nVv4NRLpkoLDT4miynqn7RJWmJw+0 Ohsc7adwtTFRCcFw2WOvLR9FPPgQNnxusMuPvD5EN68MQdnZutGVZXEHFxjRExxHdSy5 Lng4xcooIKTNB2o/LzOCVKXtXVNfCIHWblZooCY8mT/pQmDoW5x2pUQQ0m1EADLC786x uxcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3KdnjRs0; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-200653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200653-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794f2f05905si208631485a.36.2024.06.04.05.56.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 05:56:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3KdnjRs0; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-200653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200653-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B629A1C24B73 for ; Tue, 4 Jun 2024 12:56:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 333A7146D69; Tue, 4 Jun 2024 12:54:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="3KdnjRs0" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B5031459F5; Tue, 4 Jun 2024 12:54:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717505679; cv=none; b=Yg+YDXciZelul0I8PA1+hiVBbktTPu99PK+AGLywAyMS1P7H+zsLNdUoaK3ltQsy7LU+RoEwVZbOg2/fF6Yz1bB6rrWmTiKL9CsHmK3r1wbtGsMyLrcaTk2CLcTEnPn0Dz6fkeyHEong/f7cqJjbkz3S+v9sI6BsW7x1lMRHJ2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717505679; c=relaxed/simple; bh=oKPIUnQ8NiMX8mTL6yCMUTijSz2W1I1iwjC/sDG5wv4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cxXBzgX26sB9x/+nNWZFtwh7Hq4S2fj1nfQqv4ZCQZt6pxaf9dqiUyEf69VWBiljFfwO0LR6fJ3N45QgEIaz1q1yY9H5iQ4f3TE9X/xhxSTgpl1Bq7ZYH+ElQGRsF8IhMcgsKjP1Oec4l0SvktRvSttJfX/yBy/kmhwlGeG3MM8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=3KdnjRs0; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=ETTIRp6+sIjU+IWTI+nRyjXxT3ESKvDw8LivhS9+14U=; b=3KdnjRs0saRERtsNQaPkPtxdUn vR7XhNZpVZPu6ScMFo6Lu2Quk6XowS/HlD+m4N2odifHbxs2u/KLRjUSPm+kMn+rhLk65QKgNQktm AbHxNI24Z2nl7+COPAqcvfv3pubBdOGRGEh6o9pCssG+DqLxAvXxUtnQ2ntAu5zilB0M=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sETgC-00GnoP-3T; Tue, 04 Jun 2024 14:54:20 +0200 Date: Tue, 4 Jun 2024 14:54:20 +0200 From: Andrew Lunn To: Yojana Mallik Cc: schnelle@linux.ibm.com, wsa+renesas@sang-engineering.com, diogo.ivo@siemens.com, rdunlap@infradead.org, horms@kernel.org, vigneshr@ti.com, rogerq@ti.com, danishanwar@ti.com, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, srk@ti.com, rogerq@kernel.org, Siddharth Vadapalli Subject: Re: [PATCH net-next v2 2/3] net: ethernet: ti: Register the RPMsg driver as network device Message-ID: References: <20240531064006.1223417-1-y-mallik@ti.com> <20240531064006.1223417-3-y-mallik@ti.com> <4416ada7-399b-4ea0-88b0-32ca432d777b@lunn.ch> <2d65aa06-cadd-4462-b8b9-50c9127e6a30@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2d65aa06-cadd-4462-b8b9-50c9127e6a30@ti.com> > >> + u32 buff_slot_size; > >> + /* Base Address for Tx or Rx shared memory */ > >> + u32 base_addr; > >> +} __packed; > > > > What do you mean by address here? Virtual address, physical address, > > DMA address? And whos address is this, you have two CPUs here, with no > > guaranteed the shared memory is mapped to the same address in both > > address spaces. > > > > Andrew > > The address referred above is physical address. It is the address of Tx and Rx > buffer under the control of Linux operating over A53 core. The check if the > shared memory is mapped to the same address in both address spaces is checked > by the R5 core. u32 is too small for a physical address. I'm sure there are systems with more than 4G of address space. Also, i would not assume both CPUs map the memory to the same physical address. Andrew