Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/335244/?format=api
{ "id": 335244, "url": "http://patchwork.ozlabs.org/api/patches/335244/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1396260255-2581-1-git-send-email-prabhakar@freescale.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1396260255-2581-1-git-send-email-prabhakar@freescale.com>", "list_archive_url": null, "date": "2014-03-31T10:04:15", "name": "[U-Boot,4/10] powerpc/mpc85xx:Disable non DDR LAWs before init_law", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "ce4e3dfe8a4f51a845b445a3b028e5e82756a0f3", "submitter": { "id": 6576, "url": "http://patchwork.ozlabs.org/api/people/6576/?format=api", "name": "Prabhakar Kushwaha", "email": "prabhakar@freescale.com" }, "delegate": { "id": 2666, "url": "http://patchwork.ozlabs.org/api/users/2666/?format=api", "username": "yorksun", "first_name": "York", "last_name": "Sun", "email": "yorksun@freescale.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1396260255-2581-1-git-send-email-prabhakar@freescale.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/335244/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/335244/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Received": [ "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 17F5A1400B2\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 31 Mar 2014 21:04:52 +1100 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 8FEB94B663;\n\tMon, 31 Mar 2014 12:04:50 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id x++DrWckp23L; Mon, 31 Mar 2014 12:04:50 +0200 (CEST)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 18BCF4B677;\n\tMon, 31 Mar 2014 12:04:46 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 3D1C64B675\n\tfor <u-boot@lists.denx.de>; Mon, 31 Mar 2014 12:04:41 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id cbQ7Zok0s3xE for <u-boot@lists.denx.de>;\n\tMon, 31 Mar 2014 12:04:40 +0200 (CEST)", "from tx2outboundpool.messaging.microsoft.com\n\t(tx2ehsobe004.messaging.microsoft.com [65.55.88.14])\n\tby theia.denx.de (Postfix) with ESMTPS id 175794B661\n\tfor <u-boot@lists.denx.de>; Mon, 31 Mar 2014 12:04:28 +0200 (CEST)", "from mail216-tx2-R.bigfish.com (10.9.14.241) by\n\tTX2EHSOBE014.bigfish.com (10.9.40.34) with Microsoft SMTP Server id\n\t14.1.225.22; Mon, 31 Mar 2014 10:04:24 +0000", "from mail216-tx2 (localhost [127.0.0.1])\tby\n\tmail216-tx2-R.bigfish.com (Postfix) with ESMTP id B791A5C0436\tfor\n\t<u-boot@lists.denx.de>; Mon, 31 Mar 2014 10:04:24 +0000 (UTC)", "from mail216-tx2 (localhost.localdomain [127.0.0.1]) by mail216-tx2\n\t(MessageSwitch) id 1396260262397080_18151;\n\tMon, 31 Mar 2014 10:04:22 +0000 (UTC)", "from TX2EHSMHS020.bigfish.com (unknown [10.9.14.234])\tby\n\tmail216-tx2.bigfish.com (Postfix) with ESMTP id 525E934004C;\n\tMon, 31 Mar 2014 10:04:22 +0000 (UTC)", "from mail.freescale.net (70.37.183.190) by TX2EHSMHS020.bigfish.com\n\t(10.9.99.120) with Microsoft SMTP Server (TLS) id 14.1.225.23;\n\tMon, 31 Mar 2014 10:04:22 +0000", "from tx30smr01.am.freescale.net (10.81.153.31) by\n\t039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP\n\tServer (TLS) id 14.3.158.2; Mon, 31 Mar 2014 10:04:21 +0000", "from b32579-VirtualBox.ap.freescale.net\n\t(B32579-02-010232132051.ap.freescale.net [10.232.132.51])\tby\n\ttx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\ts2VA4Gto026960; Mon, 31 Mar 2014 03:04:20 -0700" ], "X-Virus-Scanned": [ "Debian amavisd-new at theia.denx.de", "Debian amavisd-new at theia.denx.de" ], "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)", "X-Forefront-Antispam-Report": "CIP:70.37.183.190; KIP:(null); UIP:(null);\n\tIPV:NLI; \n\tH:mail.freescale.net; RD:none; EFVD:NLI", "X-SpamScore": "0", "X-BigFish": "VS0(zzzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6hzz1de098h8275bh1de097hz2dh2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dc1h1dfeh1dffh1e23h1fe8h1ff5h2218h2216h226dh22d0h24afh2327h2336h2438h2461h2487h24d7h2516h2545h255eh25cch25f6h2605h268bh1155h)", "From": "Prabhakar Kushwaha <prabhakar@freescale.com>", "To": "<u-boot@lists.denx.de>", "Date": "Mon, 31 Mar 2014 15:34:15 +0530", "Message-ID": "<1396260255-2581-1-git-send-email-prabhakar@freescale.com>", "X-Mailer": "git-send-email 1.7.9.5", "MIME-Version": "1.0", "X-OriginatorOrg": "freescale.com", "X-FOPE-CONNECTOR": [ "Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%", "Id%0$Dn%FREESCALE.MAIL.ONMICROSOFT.COM$RO%1$TLS%0$FQDN%$TlsDn%" ], "Cc": "yorksun@freescale.com", "Subject": "[U-Boot] [PATCH 4/10] powerpc/mpc85xx:Disable non DDR LAWs before\n\tinit_law", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.11", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "u-boot-bounces@lists.denx.de", "Errors-To": "u-boot-bounces@lists.denx.de" }, "content": "Before parsing LAW table i.e. init_law, boot loader should disable all\nprevious LAWs except DDR LAWs which has been created by previous\npre boot loader during DDR initialization.\n\nSigned-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>\n---\n arch/powerpc/cpu/mpc8xxx/law.c | 43 +++++++++++++++++++++++++++++++---------\n 1 file changed, 34 insertions(+), 9 deletions(-)", "diff": "diff --git a/arch/powerpc/cpu/mpc8xxx/law.c b/arch/powerpc/cpu/mpc8xxx/law.c\nindex a401083..0aa6ce1 100644\n--- a/arch/powerpc/cpu/mpc8xxx/law.c\n+++ b/arch/powerpc/cpu/mpc8xxx/law.c\n@@ -221,6 +221,32 @@ int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id)\n }\n #endif /* not SPL */\n \n+void disable_non_ddr_laws(void)\n+{\n+\tint i;\n+\tint id;\n+\tfor (i = 0; i < FSL_HW_NUM_LAWS; i++) {\n+\t\tu32 lawar = in_be32(LAWAR_ADDR(i));\n+\n+\t\tif (lawar & LAW_EN) {\n+\t\t\tid = (lawar & ~LAW_EN) >> 20;\n+\t\t\tswitch (id) {\n+\t\t\tcase LAW_TRGT_IF_DDR_1:\n+\t\t\tcase LAW_TRGT_IF_DDR_2:\n+\t\t\tcase LAW_TRGT_IF_DDR_3:\n+\t\t\tcase LAW_TRGT_IF_DDR_4:\n+\t\t\tcase LAW_TRGT_IF_DDR_INTRLV:\n+\t\t\tcase LAW_TRGT_IF_DDR_INTLV_34:\n+\t\t\tcase LAW_TRGT_IF_DDR_INTLV_123:\n+\t\t\tcase LAW_TRGT_IF_DDR_INTLV_1234:\n+\t\t\t\t\t\tcontinue;\n+\t\t\tdefault:\n+\t\t\t\t\t\tdisable_law(i);\n+\t\t\t}\n+\t\t}\n+\t}\n+}\n+\n void init_laws(void)\n {\n \tint i;\n@@ -233,6 +259,14 @@ void init_laws(void)\n #error FSL_HW_NUM_LAWS can not be greater than 32 w/o code changes\n #endif\n \n+#if !defined(CONFIG_SECURE_BOOT)\n+\t/*\n+\t * if any non DDR LAWs has been created earlier, remove them before\n+\t * LAW table is parsed.\n+\t*/\n+\tdisable_non_ddr_laws();\n+#endif\n+\n \t/*\n \t * Any LAWs that were set up before we booted assume they are meant to\n \t * be around and mark them used.\n@@ -244,15 +278,6 @@ void init_laws(void)\n \t\t\tgd->arch.used_laws |= (1 << i);\n \t}\n \n-#if (defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)) || \\\n-\t(defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD))\n-\t/*\n-\t * in SPL boot we've already parsed the law_table and setup those LAWs\n-\t * so don't do it again.\n-\t */\n-\treturn;\n-#endif\n-\n \tfor (i = 0; i < num_law_entries; i++) {\n \t\tif (law_table[i].index == -1)\n \t\t\tset_next_law(law_table[i].addr, law_table[i].size,\n", "prefixes": [ "U-Boot", "4/10" ] }