From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 30 Nov 2017 23:57:17 +0100 (CET) Received: from 9pmail.ess.barracuda.com ([64.235.150.225]:56595 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23990412AbdK3W5Ifr7n3 (ORCPT ); Thu, 30 Nov 2017 23:57:08 +0100 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx3.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Thu, 30 Nov 2017 22:56:38 +0000 Received: from localhost (192.168.154.110) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 30 Nov 2017 14:56:17 -0800 Date: Thu, 30 Nov 2017 22:56:15 +0000 From: James Hogan To: David Daney CC: David Daney , , , , "David S. Miller" , Rob Herring , Mark Rutland , , Greg Kroah-Hartman , , "Steven J. Hill" , , Andrew Lunn , Florian Fainelli , Carlos Munoz Subject: Re: [PATCH v4 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations. Message-ID: <20171130225614.GJ27409@jhogan-linux.mipstec.com> References: <20171129005540.28829-1-david.daney@cavium.com> <20171129005540.28829-3-david.daney@cavium.com> <20171130213635.GH27409@jhogan-linux.mipstec.com> <54c83e6b-35e2-be38-e4f1-87eb420938cb@caviumnetworks.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9iyR+p8Z2cn535Lj" Content-Disposition: inline In-Reply-To: <54c83e6b-35e2-be38-e4f1-87eb420938cb@caviumnetworks.com> User-Agent: Mutt/1.7.2 (2016-11-26) X-Originating-IP: [192.168.154.110] X-BESS-ID: 1512082597-298554-29164-167056-5 X-BESS-VER: 2017.14-r1710272128 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.187478 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.50 BSF_RULE7568M META: Custom Rule 7568M 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.50 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_RULE7568M, BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 61250 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: james.hogan@mips.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips --9iyR+p8Z2cn535Lj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 30, 2017 at 01:49:43PM -0800, David Daney wrote: > On 11/30/2017 01:36 PM, James Hogan wrote: > > On Tue, Nov 28, 2017 at 04:55:34PM -0800, David Daney wrote: > >> Signed-off-by: Carlos Munoz > >> Signed-off-by: Steven J. Hill > >> Signed-off-by: David Daney > >> --- > >> arch/mips/cavium-octeon/setup.c | 6 ++++++ > >> arch/mips/include/asm/octeon/octeon.h | 12 ++++++++++-- > >> 2 files changed, 16 insertions(+), 2 deletions(-) > >> > >> diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon= /setup.c > >> index a8034d0dcade..99e6a68bc652 100644 > >> --- a/arch/mips/cavium-octeon/setup.c > >> +++ b/arch/mips/cavium-octeon/setup.c > >> @@ -609,6 +609,12 @@ void octeon_user_io_init(void) > >> #else > >> cvmmemctl.s.cvmsegenak =3D 0; > >> #endif > >> + if (OCTEON_IS_OCTEON3()) { > >> + /* Enable LMTDMA */ > >> + cvmmemctl.s.lmtena =3D 1; > >> + /* Scratch line to use for LMT operation */ > >> + cvmmemctl.s.lmtline =3D 2; > >=20 > > Out of curiosity, is there significance to the value 2 and associated > > virtual address 0xffffffffffff8100, or is it pretty arbitrary? >=20 > Yes, there is significance. >=20 > CPU local memory starts at 0xffffffffffff8000, each line is 0x80 bytes.= =20 > so the 2nd line starts at 0xffffffffffff8100 What I mean is, why is 2 chosen instead of any other value? Cheers James --9iyR+p8Z2cn535Lj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlogjI4ACgkQbAtpk944 dnpFwRAAvcdOoeuZmttJOSoZsf5ZGMk42m47eyYYXuo36qqZcyfjMbtA/98HbmvX zHCrt/9ov5eNEjvxqT/9nrIqD3KoBN4veW6XiTu3gry38WF96yJRoxEMjuLllf8a OTiIiP+Ls4Bskl2v1eL1uIVhRxaIC4AVlBQGnT4kD3f3rc+N3yjICHtacBXgxjOx 3+7LrD4Wu3INKwJp0V/LK4Lqnw3Mks39dYlu2JzJaCVOh018I9wOqSR9AGmhqQ7n v+Od/nfHOahLRc7fE71X9Qnh3hY+U4Ohi9A7qb4ylxA7xd9UlJh9SohWtVtjm2vg vvf21+dVqk+0XF/sh8paIhxbeFG9GoST0kQSh1huwF0UVHXI8moAG8t7VOMCw4le TjvTNPrZqF11W2iUemdXF+Wy8OwK2EL8Ed1c2EZFjyli9cRv56Wlvrg4fi4qe2Bl dc7G0Rm3b4oz3ohdBnJ34hc+TMK1EFTWXJ+Bpcif3ywJ7LgkWD0b+BuohItIteZi VMJMM5hhYSv01/qWVcyhianytDX7L80ZHwql+H+ctfIRDxQWTUbgAlnqETFWn6Km 7eOpyEZJpmT1j11yqYleICjmTmL/0ju/AWrEVwEnEG5YeA0hhR67zeFZDmtLOFL5 AlGQvnuGtgAKe5Di404p2MYjDseJ57ROHg9HK1gRxFL2pp+7gE0= =M4rc -----END PGP SIGNATURE----- --9iyR+p8Z2cn535Lj-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 9pmail.ess.barracuda.com ([64.235.150.225]:56595 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23990412AbdK3W5Ifr7n3 (ORCPT ); Thu, 30 Nov 2017 23:57:08 +0100 Date: Thu, 30 Nov 2017 22:56:15 +0000 From: James Hogan Subject: Re: [PATCH v4 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations. Message-ID: <20171130225614.GJ27409@jhogan-linux.mipstec.com> References: <20171129005540.28829-1-david.daney@cavium.com> <20171129005540.28829-3-david.daney@cavium.com> <20171130213635.GH27409@jhogan-linux.mipstec.com> <54c83e6b-35e2-be38-e4f1-87eb420938cb@caviumnetworks.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9iyR+p8Z2cn535Lj" Content-Disposition: inline In-Reply-To: <54c83e6b-35e2-be38-e4f1-87eb420938cb@caviumnetworks.com> Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: David Daney Cc: David Daney , linux-mips@linux-mips.org, ralf@linux-mips.org, netdev@vger.kernel.org, "David S. Miller" , Rob Herring , Mark Rutland , devel@driverdev.osuosl.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, "Steven J. Hill" , devicetree@vger.kernel.org, Andrew Lunn , Florian Fainelli , Carlos Munoz Message-ID: <20171130225615.vObuYUV-7WjWUConjU8nRz3sdMYVIByY9CwThZFdkt4@z> --9iyR+p8Z2cn535Lj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 30, 2017 at 01:49:43PM -0800, David Daney wrote: > On 11/30/2017 01:36 PM, James Hogan wrote: > > On Tue, Nov 28, 2017 at 04:55:34PM -0800, David Daney wrote: > >> Signed-off-by: Carlos Munoz > >> Signed-off-by: Steven J. Hill > >> Signed-off-by: David Daney > >> --- > >> arch/mips/cavium-octeon/setup.c | 6 ++++++ > >> arch/mips/include/asm/octeon/octeon.h | 12 ++++++++++-- > >> 2 files changed, 16 insertions(+), 2 deletions(-) > >> > >> diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon= /setup.c > >> index a8034d0dcade..99e6a68bc652 100644 > >> --- a/arch/mips/cavium-octeon/setup.c > >> +++ b/arch/mips/cavium-octeon/setup.c > >> @@ -609,6 +609,12 @@ void octeon_user_io_init(void) > >> #else > >> cvmmemctl.s.cvmsegenak =3D 0; > >> #endif > >> + if (OCTEON_IS_OCTEON3()) { > >> + /* Enable LMTDMA */ > >> + cvmmemctl.s.lmtena =3D 1; > >> + /* Scratch line to use for LMT operation */ > >> + cvmmemctl.s.lmtline =3D 2; > >=20 > > Out of curiosity, is there significance to the value 2 and associated > > virtual address 0xffffffffffff8100, or is it pretty arbitrary? >=20 > Yes, there is significance. >=20 > CPU local memory starts at 0xffffffffffff8000, each line is 0x80 bytes.= =20 > so the 2nd line starts at 0xffffffffffff8100 What I mean is, why is 2 chosen instead of any other value? Cheers James --9iyR+p8Z2cn535Lj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlogjI4ACgkQbAtpk944 dnpFwRAAvcdOoeuZmttJOSoZsf5ZGMk42m47eyYYXuo36qqZcyfjMbtA/98HbmvX zHCrt/9ov5eNEjvxqT/9nrIqD3KoBN4veW6XiTu3gry38WF96yJRoxEMjuLllf8a OTiIiP+Ls4Bskl2v1eL1uIVhRxaIC4AVlBQGnT4kD3f3rc+N3yjICHtacBXgxjOx 3+7LrD4Wu3INKwJp0V/LK4Lqnw3Mks39dYlu2JzJaCVOh018I9wOqSR9AGmhqQ7n v+Od/nfHOahLRc7fE71X9Qnh3hY+U4Ohi9A7qb4ylxA7xd9UlJh9SohWtVtjm2vg vvf21+dVqk+0XF/sh8paIhxbeFG9GoST0kQSh1huwF0UVHXI8moAG8t7VOMCw4le TjvTNPrZqF11W2iUemdXF+Wy8OwK2EL8Ed1c2EZFjyli9cRv56Wlvrg4fi4qe2Bl dc7G0Rm3b4oz3ohdBnJ34hc+TMK1EFTWXJ+Bpcif3ywJ7LgkWD0b+BuohItIteZi VMJMM5hhYSv01/qWVcyhianytDX7L80ZHwql+H+ctfIRDxQWTUbgAlnqETFWn6Km 7eOpyEZJpmT1j11yqYleICjmTmL/0ju/AWrEVwEnEG5YeA0hhR67zeFZDmtLOFL5 AlGQvnuGtgAKe5Di404p2MYjDseJ57ROHg9HK1gRxFL2pp+7gE0= =M4rc -----END PGP SIGNATURE----- --9iyR+p8Z2cn535Lj--