Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1513636yba; Thu, 25 Apr 2019 00:43:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwURpMjGyN08zkAZA5VVzbmQTlZPma+l9KkMJCntMPuDwSdPNgmwfR35LsUpKnfJK1N73KC X-Received: by 2002:a62:424b:: with SMTP id p72mr37392492pfa.167.1556178200921; Thu, 25 Apr 2019 00:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556178200; cv=none; d=google.com; s=arc-20160816; b=D7wgOj8NaE+ZfgBn+myx4c/HDNRudGoISHWWEcQcSUJLorpt5P7T9qUa9V2iR/n01Q ftiqri2cCXuqQa+re45qgcs8hPRq+aNaWOCK+ylpFJxQZeSgHfjMmdH0J2eA0qxo3bhz OMm/4Dmfl2MsTjEjms6XBVIuGDyOCt9ZUUos77UIkykc0Z5AgyqLrd1rirg427b2i/HW Uy2fgtahCr2uDrsfAc9IxfYhu/40pYkcDm0yiZjSaORN8Pb4MU1ljr9M2a6tIvicnZMr 7e7CsEyfodCqMEe4ySpnohwoy/JFoIzDZVqlASEE8opjZcHSV6OR9Dn6rFcd5Q5hmhwj EuvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=bOog4KPRUXXUl6cu2sBdR7LqNalMNhi5xWWV7wTQ04Q=; b=AvCcpyjG7eaW0o1MKSip8Uuc+v+UaxlNNllEPrSyyNpU/K6elgX0sY1euXBdJW7tE/ hQ7fTPbPj9kEx2s7Sn0AZjlozQpMP1j68+AlR0VVqkGQDzKvMHOrgBFZdeSiEy8ZCbGD I1PtUiLJzqHQp9+F8JoBjHO3Q8AnF9Ui8R5UjviGHSHArPJBl9zhPb5JQN3FDw1sXC+3 N/R3abKBko7S0rMXnDoo5RYZDNgyhZVTl0+20asx4KRytHBKt8lbv/ptojGuzNdwFJOO ll62G+w0tYdsZSJ83aJSMnAwV5BuioazPkIb2NCw5Bn2Cjmsd//ewHNyPqO5g+ktRBib uqTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=DdJ69+sF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si19093940pgp.391.2019.04.25.00.43.05; Thu, 25 Apr 2019 00:43:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=DdJ69+sF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728125AbfDXXXB (ORCPT + 99 others); Wed, 24 Apr 2019 19:23:01 -0400 Received: from mail.efficios.com ([167.114.142.138]:55470 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727358AbfDXXXB (ORCPT ); Wed, 24 Apr 2019 19:23:01 -0400 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 75F6A1DA134; Wed, 24 Apr 2019 19:22:58 -0400 (EDT) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id b_oUwa0eRlQh; Wed, 24 Apr 2019 19:22:57 -0400 (EDT) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id C7C501DA12E; Wed, 24 Apr 2019 19:22:57 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com C7C501DA12E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1556148177; bh=bOog4KPRUXXUl6cu2sBdR7LqNalMNhi5xWWV7wTQ04Q=; h=Date:From:To:Message-ID:MIME-Version; b=DdJ69+sFlewHwDbesfZ/RdWtCHtVb8Ms7bgH9/na9jCq69oIHDBxIeurxEwRYErvC NkD5QC6HnT+E1IK4a3RqeT82xp1thJ3Ip7PaN/QvUE8F12qpDSmpUz+oI5ylHp2VTT NAmDJAxQI+v8/DxJpZAzdTLns1jh65NfnP5dzCGY3aSuWfUYvseMP3YVw10jt4SvfQ pUH/DZiFXpZoRVkhi/U2nMVqWwYGL0QQhsViSx+4UNrqY4ss4lbBgO55AP9V/iY8gt lF5f3L5d03dPJI2GHoypjWAbUWR5EcdGvT45xJpKi+LtoWm5GLe1djPx8TbKOHo5qK ApND0nypqXQRg== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id QXEK4muzn7qh; Wed, 24 Apr 2019 19:22:57 -0400 (EDT) Received: from mail02.efficios.com (mail02.efficios.com [167.114.142.138]) by mail.efficios.com (Postfix) with ESMTP id A7AB91DA128; Wed, 24 Apr 2019 19:22:57 -0400 (EDT) Date: Wed, 24 Apr 2019 19:22:57 -0400 (EDT) From: Mathieu Desnoyers To: Paul Burton Cc: Peter Zijlstra , "Paul E . McKenney" , Boqun Feng , linux-kernel , linux-api , Thomas Gleixner , Andy Lutomirski , Dave Watson , Paul Turner , Andrew Morton , Russell King , Ingo Molnar , "H. Peter Anvin" , Andi Kleen , Chris Lameter , Ben Maurer , rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Joel Fernandes , shuah , James Hogan , Ralf Baechle , linux-mips Message-ID: <2047127593.1305.1556148177478.JavaMail.zimbra@efficios.com> In-Reply-To: <20190424231717.os4p6fq7fbx6afxa@pburton-laptop> References: <20190424152502.14246-1-mathieu.desnoyers@efficios.com> <20190424152502.14246-11-mathieu.desnoyers@efficios.com> <20190424220609.4kryfcgsv46iu3ds@pburton-laptop> <2114325810.1301.1556147523476.JavaMail.zimbra@efficios.com> <20190424231717.os4p6fq7fbx6afxa@pburton-laptop> Subject: Re: [RFC PATCH for 5.2 10/10] rseq/selftests: mips: use break instruction for RSEQ_SIG MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.142.138] X-Mailer: Zimbra 8.8.12_GA_3794 (ZimbraWebClient - FF66 (Linux)/8.8.12_GA_3794) Thread-Topic: rseq/selftests: mips: use break instruction for RSEQ_SIG Thread-Index: AQHU+rH+AJnCxtNxUESFNInzrhwEUaZL3nOAYM0M9Xb8+at4gJ21bNWN Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Apr 24, 2019, at 7:17 PM, Paul Burton paul.burton@mips.com wrote: > Hi Mathieu, > > On Wed, Apr 24, 2019 at 07:12:03PM -0400, Mathieu Desnoyers wrote: >> Does the following comment above the forest of #ifdef work for you ? >> >> /* >> * RSEQ_SIG uses the break instruction. The instruction pattern is: >> * >> * On MIPS: >> * 0350000d break 0x350 >> * >> * On nanoMIPS32: >> * 00100350 break 0x350 >> * >> * On microMIPS: >> * 0000d407 break 0x350 >> * >> * For nanoMIPS32 and microMIPS, the instruction stream is encoded as 16-bit >> * halfwords, so the signature halfwords need to be swapped accordingly for >> * little-endian. >> */ > > I'd probably just say nanoMIPS rather than nanoMIPS32, because when we > get nanoMIPS64 in the future it'll be a superset of nanoMIPS32 & the > break encoding will be the same. Done. > > But otherwise it looks good to me :) Great! I've added your "Suggested-by" tag to the patch. Thanks, Mathieu > > Thanks, > Paul -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com