Patchwork [U-Boot,2/3] powerpc/p2041: fixup portal config info

login
register
mail settings
Submitter Kumar Gala
Date Oct. 12, 2011, 9:39 p.m.
Message ID <1318455574-14963-2-git-send-email-galak@kernel.crashing.org>
Download mbox | patch
Permalink /patch/119310/
State Accepted
Commit 510f28cff9906b6a20bf2a434a90268090dd8e5d
Delegated to: Kumar Gala
Headers show

Comments

Kumar Gala - Oct. 12, 2011, 9:39 p.m.
From: Haiying Wang <Haiying.Wang@freescale.com>

P2041 has 10 qman portals, we need to configure all of them:
* As there are only 4 physical cores sdest can only be 0 to 3
* We assign dqrr & frame data LIODNs for all portals so if they
  are utilized the proper mapping tables can be setup uniquely
  (PAMU stashing)
* We set Portal 6-10 to LIODN offsets 1-5 as the global LIODN
  assignments are tuned around an assumption of at most 5
  partitions.

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 arch/powerpc/cpu/mpc85xx/p2041_ids.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
Kumar Gala - Oct. 14, 2011, 4:21 a.m.
On Oct 12, 2011, at 4:39 PM, Kumar Gala wrote:

> From: Haiying Wang <Haiying.Wang@freescale.com>
> 
> P2041 has 10 qman portals, we need to configure all of them:
> * As there are only 4 physical cores sdest can only be 0 to 3
> * We assign dqrr & frame data LIODNs for all portals so if they
>  are utilized the proper mapping tables can be setup uniquely
>  (PAMU stashing)
> * We set Portal 6-10 to LIODN offsets 1-5 as the global LIODN
>  assignments are tuned around an assumption of at most 5
>  partitions.
> 
> Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> arch/powerpc/cpu/mpc85xx/p2041_ids.c |   20 ++++++++++----------
> 1 files changed, 10 insertions(+), 10 deletions(-)

applied

- k

Patch

diff --git a/arch/powerpc/cpu/mpc85xx/p2041_ids.c b/arch/powerpc/cpu/mpc85xx/p2041_ids.c
index 112ea56..8d25496 100644
--- a/arch/powerpc/cpu/mpc85xx/p2041_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/p2041_ids.c
@@ -27,16 +27,16 @@ 
 #ifdef CONFIG_SYS_DPAA_QBMAN
 struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
 	/* dqrr liodn, frame data liodn, liodn off, sdest */
-	SET_QP_INFO( 1,  2,  1, 0),
-	SET_QP_INFO( 3,  4,  2, 1),
-	SET_QP_INFO( 5,  6,  3, 2),
-	SET_QP_INFO( 7,  8,  4, 3),
-	SET_QP_INFO( 9, 10,  5, 4),
-	SET_QP_INFO( 0,  0,  0, 5),
-	SET_QP_INFO( 0,  0,  0, 6),
-	SET_QP_INFO( 0,  0,  0, 7),
-	SET_QP_INFO( 0,  0,  0, 0), /* for now sdest to 0 */
-	SET_QP_INFO( 0,  0,  0, 0), /* for now sdest to 0 */
+	SET_QP_INFO(1, 2, 1, 0),
+	SET_QP_INFO(3, 4, 2, 1),
+	SET_QP_INFO(5, 6, 3, 2),
+	SET_QP_INFO(7, 8, 4, 3),
+	SET_QP_INFO(9, 10, 5, 0),
+	SET_QP_INFO(11, 12, 1, 1),
+	SET_QP_INFO(13, 14, 2, 2),
+	SET_QP_INFO(15, 16, 3, 3),
+	SET_QP_INFO(17, 18, 4, 0), /* for now sdest to 0 */
+	SET_QP_INFO(19, 20, 5, 0), /* for now sdest to 0 */
 };
 #endif