Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2038684imj; Sun, 10 Feb 2019 17:02:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IZF0zxIAURSjTNFYICtq48s2FG6zMl8JCKOnfWwDbLc6in1WjBDB1tn+SDSRyZIYWfDhOe/ X-Received: by 2002:a65:41c2:: with SMTP id b2mr26323645pgq.67.1549846975843; Sun, 10 Feb 2019 17:02:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549846975; cv=none; d=google.com; s=arc-20160816; b=LxqqP9L/ygT9KvaEhJkMlSKIGvaLZJrGlgAlkB1FBAM7u7cKD2i6yegjKGKdNG3W0y H5m4DMSHtHTzKqC5U1IgP0HNvHZhYuO4BjcqzaEJXLdODZQledXs3QR7nm7z6pLK5+dE NM8jWnwQf6Vv0Jr+yve0wRzA3oA7kAhUVXh+FvtTXoJmoD14f+sbWT6uC9CYeU9Gj7SO +npeFZkBeIx0wJTJhV2Xncl3Ai//3ToOXU15DvSioVjsp1Le8ScLkmIwviBZ7DU/BzFQ a6JpagafbL92FKUuhaOEf6mTQG21SkL0a5gl/kXjMA+kSrnst2ZBHGf0mEGNU9QpoQMA t9Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=uIMg4VrS8A39V4ZWxoaCNWF5IyD8WxvQMfpSLYiXhP4=; b=SVkVsH+tec2bYnudivfOX1eo6eHnrtF+uS+OcnYAw6Sa8XdR4P++zXZbpie6zS5RV/ mZuLAOw/X5zEAv5TbcYZH//a9C76Z6V9vra4qwXDwxO3boL4KwEYGM3SptELz2+bLwx1 xXfWrucdErP/Zv+4pAcT2EOQ1PXAFGwhgd46TsMoz2n9ze7te9xAB6KfYlML0uQJ7EZ5 MsQFLo+wD5nw/CO3OQI+arfg+YuCObWWKst/lGfx1rMdBxqWNLnkyrMKixcUOxx8DlPM YIl2i7S6eIQwLk+3e6aG0KZcW2vv+ga+J35s/S2p9Ryzf8MNNT7LOvPtQUdiQy6TjgU4 S6Iw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si3476253pfe.240.2019.02.10.17.02.37; Sun, 10 Feb 2019 17:02:55 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726157AbfBKBCe (ORCPT + 99 others); Sun, 10 Feb 2019 20:02:34 -0500 Received: from gate.crashing.org ([63.228.1.57]:41472 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbfBKBCe (ORCPT ); Sun, 10 Feb 2019 20:02:34 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x1B0LjHR014682; Sun, 10 Feb 2019 18:21:46 -0600 Message-ID: <749f719a0881531cad2071a7011dc5e894812d3d.camel@kernel.crashing.org> Subject: Re: [PATCH v1 03/16] powerpc/32: move LOAD_MSR_KERNEL() into head_32.h and use it From: Benjamin Herrenschmidt To: Christophe Leroy , Paul Mackerras , Michael Ellerman , Nicholas Piggin Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Mon, 11 Feb 2019 11:21:44 +1100 In-Reply-To: <1946d8ed86a92a9a6827ec260d0d9c99e0d88184.1549630193.git.christophe.leroy@c-s.fr> References: <1946d8ed86a92a9a6827ec260d0d9c99e0d88184.1549630193.git.christophe.leroy@c-s.fr> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.4 (3.30.4-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-02-08 at 12:52 +0000, Christophe Leroy wrote: > /* > + * MSR_KERNEL is > 0x8000 on 4xx/Book-E since it include MSR_CE. > + */ > +.macro __LOAD_MSR_KERNEL r, x > +.if \x >= 0x8000 > + lis \r, (\x)@h > + ori \r, \r, (\x)@l > +.else > + li \r, (\x) > +.endif > +.endm > +#define LOAD_MSR_KERNEL(r, x) __LOAD_MSR_KERNEL r, x > + You changed the limit from >= 0x10000 to >= 0x8000 without a corresponding explanation as to why... Ben.