Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/300/?format=api
{ "id": 300, "url": "http://patchwork.ozlabs.org/api/patches/300/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/Pine.LNX.4.64.0809161108350.1621@vixen.sonytel.be/", "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": "<Pine.LNX.4.64.0809161108350.1621@vixen.sonytel.be>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/Pine.LNX.4.64.0809161108350.1621@vixen.sonytel.be/", "date": "2008-09-16T09:09:08", "name": "powerpc: Kill /proc/ppc_htab remainings", "commit_ref": "1b483a6a7b2998e9c98ad985d7494b9b725bd228", "pull_url": null, "state": "accepted", "archived": true, "hash": "a699c04d17ab1c35b3c9f6275061a97f172068cd", "submitter": { "id": 58, "url": "http://patchwork.ozlabs.org/api/people/58/?format=api", "name": "Geert Uytterhoeven", "email": "Geert.Uytterhoeven@sonycom.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/Pine.LNX.4.64.0809161108350.1621@vixen.sonytel.be/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/300/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/300/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 217C2DE389\n\tfor <patchwork@ozlabs.org>; Tue, 16 Sep 2008 19:09:31 +1000 (EST)", "from vervifontaine.sonycom.com (vervifontaine.sonytel.be\n\t[80.88.33.193]) by ozlabs.org (Postfix) with ESMTP id 95CF1DDFF1\n\tfor <linuxppc-dev@ozlabs.org>; Tue, 16 Sep 2008 19:09:10 +1000 (EST)", "from vixen.sonytel.be (piraat.sonytel.be [43.221.60.197])\n\tby vervifontaine.sonycom.com (Postfix) with ESMTP id D929558ABD;\n\tTue, 16 Sep 2008 11:09:08 +0200 (MEST)" ], "Date": "Tue, 16 Sep 2008 11:09:08 +0200 (CEST)", "From": "Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>", "To": "Paul Mackerras <paulus@samba.org>", "Subject": "[PATCH] powerpc: Kill /proc/ppc_htab remainings", "Message-ID": "<Pine.LNX.4.64.0809161108350.1621@vixen.sonytel.be>", "MIME-Version": "1.0", "Content-Type": "MULTIPART/MIXED;\n\tBOUNDARY=\"-584349381-1505100942-1221556148=:1621\"", "Cc": "Linux/PPC Development <linuxppc-dev@ozlabs.org>", "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>", "Sender": "linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org", "Errors-To": "linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org" }, "content": "commit 14cf11af6cf608eb8c23e989ddb17a715ddce109 (\"powerpc: Merge enough to\nstart building in arch/powerpc.\") unwired /proc/ppc_htab, and commit\n917f0af9e5a9ceecf9e72537fabb501254ba321d (\"powerpc: Remove arch/ppc and\ninclude/asm-ppc\") removed the rest of the /proc/ppc_htab support, but there are\nstill a few references left. Kill them for good.\n\nSigned-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>", "diff": "--- a/Documentation/powerpc/00-INDEX\n+++ b/Documentation/powerpc/00-INDEX\n@@ -18,8 +18,6 @@ mpc52xx.txt\n \t- Linux 2.6.x on MPC52xx family\n mpc52xx-device-tree-bindings.txt\n \t- MPC5200 Device Tree Bindings\n-ppc_htab.txt\n-\t- info about the Linux/PPC /proc/ppc_htab entry\n smp.txt\n \t- use and state info about Linux/PPC on MP machines\n sound.txt\n--- a/Documentation/powerpc/ppc_htab.txt\n+++ /dev/null\n@@ -1,118 +0,0 @@\n- Information about /proc/ppc_htab\n-=====================================================================\n-\n-This document and the related code was written by me (Cort Dougan), please\n-email me (cort@fsmlabs.com) if you have questions, comments or corrections.\n-\n-Last Change: 2.16.98\n-\n-This entry in the proc directory is readable by all users but only\n-writable by root.\n-\n-The ppc_htab interface is a user level way of accessing the\n-performance monitoring registers as well as providing information\n-about the PTE hash table.\n-\n-1. Reading\n-\n- Reading this file will give you information about the memory management\n- hash table that serves as an extended tlb for page translation on the\n- powerpc. It will also give you information about performance measurement\n- specific to the cpu that you are using.\n-\n- Explanation of the 604 Performance Monitoring Fields:\n- MMCR0 - the current value of the MMCR0 register\n- PMC1\n- PMC2 - the value of the performance counters and a\n- description of what events they are counting\n- which are based on MMCR0 bit settings.\n- Explanation of the PTE Hash Table fields:\n-\n- Size - hash table size in Kb.\n- Buckets - number of buckets in the table.\n- Address - the virtual kernel address of the hash table base.\n- Entries - the number of ptes that can be stored in the hash table.\n- User/Kernel - how many pte's are in use by the kernel or user at that time.\n- Overflows - How many of the entries are in their secondary hash location.\n- Percent full - ratio of free pte entries to in use entries.\n- Reloads - Count of how many hash table misses have occurred\n- that were fixed with a reload from the linux tables.\n- Should always be 0 on 603 based machines.\n- Non-error Misses - Count of how many hash table misses have occurred\n- that were completed with the creation of a pte in the linux\n- tables with a call to do_page_fault().\n- Error Misses - Number of misses due to errors such as bad address\n- and permission violations. This includes kernel access of\n- bad user addresses that are fixed up by the trap handler.\n-\n- Note that calculation of the data displayed from /proc/ppc_htab takes\n- a long time and spends a great deal of time in the kernel. It would\n- be quite hard on performance to read this file constantly. In time\n- there may be a counter in the kernel that allows successive reads from\n- this file only after a given amount of time has passed to reduce the\n- possibility of a user slowing the system by reading this file.\n-\n-2. Writing\n-\n- Writing to the ppc_htab allows you to change the characteristics of\n- the powerpc PTE hash table and setup performance monitoring.\n-\n- Resizing the PTE hash table is not enabled right now due to many\n- complications with moving the hash table, rehashing the entries\n- and many many SMP issues that would have to be dealt with.\n-\n- Write options to ppc_htab:\n- \n- - To set the size of the hash table to 64Kb:\n-\n- echo 'size 64' > /proc/ppc_htab\n-\n- The size must be a multiple of 64 and must be greater than or equal to\n- 64.\n-\n- - To turn off performance monitoring:\n-\n- echo 'off' > /proc/ppc_htab\n-\n- - To reset the counters without changing what they're counting:\n-\n- echo 'reset' > /proc/ppc_htab\n-\n- Note that counting will continue after the reset if it is enabled.\n-\n- - To count only events in user mode or only in kernel mode:\n-\n- echo 'user' > /proc/ppc_htab\n- ...or...\n- echo 'kernel' > /proc/ppc_htab\n-\n- Note that these two options are exclusive of one another and the\n- lack of either of these options counts user and kernel.\n- Using 'reset' and 'off' reset these flags.\n-\n- - The 604 has 2 performance counters which can each count events from\n- a specific set of events. These sets are disjoint so it is not\n- possible to count _any_ combination of 2 events. One event can\n- be counted by PMC1 and one by PMC2.\n-\n- To start counting a particular event use:\n-\n- echo 'event' > /proc/ppc_htab\n-\n- and choose from these events:\n-\n- PMC1\n- ----\n- 'ic miss' - instruction cache misses\n- 'dtlb' - data tlb misses (not hash table misses)\n-\n- PMC2\n- ----\n- 'dc miss' - data cache misses\n- 'itlb' - instruction tlb misses (not hash table misses)\n- 'load miss time' - cycles to complete a load miss\n-\n-3. Bugs\n-\n- The PMC1 and PMC2 counters can overflow and give no indication of that\n- in /proc/ppc_htab.\n--- a/include/linux/proc_fs.h\n+++ b/include/linux/proc_fs.h\n@@ -139,7 +139,6 @@ extern int proc_readdir(struct file *, v\n extern struct dentry *proc_lookup(struct inode *, struct dentry *, struct nameidata *);\n \n extern const struct file_operations proc_kcore_operations;\n-extern const struct file_operations ppc_htab_operations;\n \n extern int pid_ns_prepare_proc(struct pid_namespace *ns);\n extern void pid_ns_release_proc(struct pid_namespace *ns);\n", "prefixes": [] }