Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933903AbcJ0BIl (ORCPT ); Wed, 26 Oct 2016 21:08:41 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35513 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932464AbcJ0BIi (ORCPT ); Wed, 26 Oct 2016 21:08:38 -0400 Message-ID: <1477530511.2313.1.camel@gmail.com> Subject: Re: [PATCH] powerpc: process.c: fix Kconfig typo From: Cyril Bur To: Michael Ellerman , Valentin Rothberg Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 27 Oct 2016 12:08:31 +1100 In-Reply-To: <878ttby7vh.fsf@concordia.ellerman.id.au> References: <20161005055726.5614-1-valentinrothberg@gmail.com> <1475708074.735.2.camel@gmail.com> <878ttby7vh.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1549 Lines: 50 On Wed, 2016-10-26 at 16:52 +1100, Michael Ellerman wrote: > Cyril Bur writes: > > > On Wed, 2016-10-05 at 07:57 +0200, Valentin Rothberg wrote: > > > s/ALIVEC/ALTIVEC/ > > > > > > > Oops, nice catch > > > > > Signed-off-by: Valentin Rothberg > > > > Reviewed-by: Cyril Bur > > How did we not notice? Sounds like we need a new selftest. > Indeed... Here is probably a good place to say why we didn't catch it and under what circumstances this will have a negative effect. If a thread performs and transaction with altivec and then gets preempted for whatever reason, this bug may cause the kernel to not reenable altivec when that thread runs again. This will result in an altivec unavailable fault, when these faults happen inside a user transaction the kernel has no choice but enable altivec and doom the transaction. The result is that transactions using altivec may get aborted more than they should. The difficulty in catching this with a selftest is my deliberate use of the word may above. Optimisations to avoid FPU/altivec/VSX faults mean that the kernel will always leave them on for 255 switches, this code prevents the kernel turning it off if it got to the 256th switch (and userspace was transactional)... Cyril > Looks like this should have: > > Fixes: dc16b553c949 ("powerpc: Always restore FPU/VEC/VSX if hardware > transactional memory in use") > > > And I guess I need to start running checkkconfigsymbols.py on every > commit. > > cheers