Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1541516
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | christophe leroy <christophe.leroy@c-s.fr> |
| Newsgroups | linux.kernel |
| Subject | Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs |
| Date | Tue, 13 Dec 2016 21:50:02 +0100 |
| Message-ID | <sO2bo-5LY-51@gated-at.bofh.it> (permalink) |
| References | <sNZZT-4x7-17@gated-at.bofh.it> <sNZZT-4x7-21@gated-at.bofh.it> <sO1fj-5cf-9@gated-at.bofh.it> |
| X-Original-To | Segher Boessenkool <segher@kernel.crashing.org> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Antivirus | avast! (VPS 161213-0, 13/12/2016), Outbound message |
| X-Antivirus-Status | Clean |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 27 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Benjamin Herrenschmidt <benh@kernel.crashing.org>, Paul Mackerras <paulus@samba.org>, Michael Ellerman <mpe@ellerman.id.au>, Scott Wood <oss@buserror.net>, Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Tue, 13 Dec 2016 21:39:55 +0100 |
| X-Original-Message-ID | <1fbdc292-df1c-f6a8-efc4-019350209536@c-s.fr> |
| X-Original-References | <cover.1481652710.git.christophe.leroy@c-s.fr> <e6292c23163fac0865def3a385ff01d1497b005b.1481652710.git.christophe.leroy@c-s.fr> <20161213191514.GJ30845@gate.crashing.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1541516 |
Show key headers only | View raw
Le 13/12/2016 à 20:15, Segher Boessenkool a écrit : > On Tue, Dec 13, 2016 at 07:19:41PM +0100, Christophe Leroy wrote: >> At exception prologs, once SRR0 and SRR1 have been saved, MSR RI is >> set to mark the interrupt as recoverable. >> >> MSR RI has to be unset before writing into SRR0 and SRR1 at exception >> epilogs. > > Why? What goes wrong without this? Etc. > > The following patch implements perf instruction counting using the 8xx debug counters. When the counter reaches 0, it fires a debug exception. If that exception happens between the setting of srr0/srr1 and the rfi, values set to srr0/srr1 are lost and we end up with an Oops. To avoid that, MSR RI has to be unset. That way, because the debug counters mode is set to masked mode in register LCTRL2, no debug interrupt will happen during that critical phase. Christophe --- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs Christophe Leroy <christophe.leroy@c-s.fr> - 2016-12-13 19:30 +0100
Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs Segher Boessenkool <segher@kernel.crashing.org> - 2016-12-13 20:50 +0100
Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs christophe leroy <christophe.leroy@c-s.fr> - 2016-12-13 21:50 +0100
Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs Segher Boessenkool <segher@kernel.crashing.org> - 2016-12-14 00:00 +0100
Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs Peter Zijlstra <peterz@infradead.org> - 2016-12-14 09:50 +0100
csiph-web