Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/194/?format=api
{ "id": 194, "url": "http://patchwork.ozlabs.org/api/patches/194/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20080907075132.GA3563@tuba/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20080907075132.GA3563@tuba>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20080907075132.GA3563@tuba/", "date": "2008-09-07T07:51:32", "name": "powerpc: Fix major revision number for Freescale cores", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "22f3e4e1b2f881ebceeaf04a0a8c5427c059a7a8", "submitter": { "id": 114, "url": "http://patchwork.ozlabs.org/api/people/114/?format=api", "name": "Martin Langer", "email": "martin-langer@gmx.de" }, "delegate": { "id": 13, "url": "http://patchwork.ozlabs.org/api/users/13/?format=api", "username": "paulus", "first_name": "Paul", "last_name": "Mackerras", "email": "paulus@samba.org" }, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20080907075132.GA3563@tuba/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/194/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/194/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org>", "X-Original-To": [ "patchwork@ozlabs.org", "linuxppc-dev@ozlabs.org" ], "Delivered-To": [ "patchwork@ozlabs.org", "linuxppc-dev@ozlabs.org" ], "Received": [ "from ozlabs.org (localhost [127.0.0.1])\n\tby ozlabs.org (Postfix) with ESMTP id DEF4FDDF10\n\tfor <patchwork@ozlabs.org>; Sun, 7 Sep 2008 17:52:30 +1000 (EST)", "from mail.gmx.net (mail.gmx.net [213.165.64.20])\n\tby ozlabs.org (Postfix) with SMTP id 220AADDD04\n\tfor <linuxppc-dev@ozlabs.org>; Sun, 7 Sep 2008 17:51:38 +1000 (EST)", "(qmail invoked by alias); 07 Sep 2008 07:51:34 -0000", "from pool-69-134-198-89.dbd-ipconnect.net (EHLO tuba)\n\t[89.198.134.69]\n\tby mail.gmx.net (mp045) with SMTP; 07 Sep 2008 09:51:34 +0200", "from ml by tuba with local (Exim 4.50) id 1KcF3U-00010N-HO\n\tfor linuxppc-dev@ozlabs.org; Sun, 07 Sep 2008 09:51:32 +0200" ], "X-Authenticated": "#2769515", "X-Provags-ID": "V01U2FsdGVkX18VuG4VHbwVHF0UTgFCv3eipRVLuRYBztYQtIpoiK\n\tm9bH9rolT210Ui", "Date": "Sun, 7 Sep 2008 09:51:32 +0200", "From": "Martin Langer <martin-langer@gmx.de>", "To": "linuxppc-dev@ozlabs.org", "Subject": "[PATCH] powerpc: Fix major revision number for Freescale cores", "Message-ID": "<20080907075132.GA3563@tuba>", "Mime-Version": "1.0", "Content-Disposition": "inline", "User-Agent": "Mutt/1.5.9i", "X-Y-GMX-Trusted": "0", "X-FuHaFi": "0.52", "X-BeenThere": "linuxppc-dev@ozlabs.org", "X-Mailman-Version": "2.1.11", "Precedence": "list", "List-Id": "Linux on PowerPC Developers Mail List <linuxppc-dev.ozlabs.org>", "List-Unsubscribe": "<https://ozlabs.org/mailman/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://ozlabs.org/pipermail/linuxppc-dev>", "List-Post": "<mailto:linuxppc-dev@ozlabs.org>", "List-Help": "<mailto:linuxppc-dev-request@ozlabs.org?subject=help>", "List-Subscribe": "<https://ozlabs.org/mailman/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org", "Errors-To": "linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org" }, "content": "Some 74xx cores by Freescale are using the configuration field instead \nof the major revision field for their revision number. This patch \ncorrects the wrong behaviour for those ppc cores including my one.\n\nThere is a reference document at Freecale. It decribes the PVR register. \nThe patch is based on that pdf. You can find the document here:\nhttp://www.freescale.com/files/archives/doc/support_info/PPCPVR.pdf\n\nSigned-off-by: Martin Langer <martin-langer@gmx.de>", "diff": "--- arch/powerpc/kernel/setup-common.c.ORIGINAL\t2008-09-06 23:26:50.000000000 +0200\n+++ arch/powerpc/kernel/setup-common.c\t2008-09-06 23:27:11.000000000 +0200\n@@ -254,8 +254,21 @@\n \t/* If we are a Freescale core do a simple check so\n \t * we dont have to keep adding cases in the future */\n \tif (PVR_VER(pvr) & 0x8000) {\n-\t\tmaj = PVR_MAJ(pvr);\n-\t\tmin = PVR_MIN(pvr);\n+\t\tswitch (PVR_VER(pvr)) {\n+\t\tcase 0x8000:\t/* 7441/7450/7451, Voyager */\n+\t\tcase 0x8001:\t/* 7445/7455, Apollo 6 */\n+\t\tcase 0x8002:\t/* 7447/7457, Apollo 7 */\n+\t\tcase 0x8003:\t/* 7447A, Apollo 7 PM */\n+\t\tcase 0x8004:\t/* 7448, Apollo 8 */\n+\t\tcase 0x800c:\t/* 7410, Nitro */\n+\t\t\tmaj = ((pvr >> 8) & 0xF);\n+\t\t\tmin = PVR_MIN(pvr);\n+\t\t\tbreak;\n+\t\tdefault:\t/* e500/book-e */\n+\t\t\tmaj = PVR_MAJ(pvr);\n+\t\t\tmin = PVR_MIN(pvr);\n+\t\t\tbreak;\n+\t\t}\n \t} else {\n \t\tswitch (PVR_VER(pvr)) {\n \t\t\tcase 0x0020:\t/* 403 family */\n", "prefixes": [] }