Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp507526pxu; Wed, 25 Nov 2020 08:32:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZ42KlxqLeWrCDzzIVIvkjLmIyG0SnMxSpIuDaTIjgPFDyd62esrK6JjJwQf9ZJI5tnqWO X-Received: by 2002:a05:6402:54d:: with SMTP id i13mr4531686edx.3.1606321942688; Wed, 25 Nov 2020 08:32:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606321942; cv=none; d=google.com; s=arc-20160816; b=OJU0hyTdb7ydWlZf8cpdBD4ewls4DGY2zTluzO+hTpgffCJYOS5vbtRdVJWBiJ0Oa3 bJczha1zf3+Dz2cWHDZmay9V4B2J8cK+hV0g7rri7hHilYLgLZ0TAh+DAmk9UA4wIC5x JMmEAs/VixL0FQ06bQ8qpM9ZgtZ+yjrKx5BPl7wrwWyMoXc3uL84B/WGOpjUtlZu1F0i WySadoprIkgf0t/ROI1XnafLGogeGtX+GpP4wxiQ54vdmuEoYtO2BQxTGD7U+1p0VGVM UPBWw1wCuIrV71+zNeXVhbftCIndIifFf7dmZro5fMPq6a0Iyc1NwSj6xAfPYCUpK2NZ d10g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=I/1ZQpHRo5FvZ+7MER1oPACleSCOCri4PJdTvGdnr8g=; b=I0k245gBjOf/AE54AEzyqCVYYv6OoNL+iP7N5scydvre8HDqguPJ/mp1/kihTYB6bp y8joW6QkiXPfiiw1RdZswYIV5z6H/HyOqnIF0FETBgisVYN0GV2ftuNoqVFzv31EYycO HHH+Znc39cI8LWFrDl758r8kb8i6zCyUxJo3h1nXnpYcigsH1qW10zovcZFjWGLTX8Dz xfBE+I3xQu5Yb2jF2UpxMVUKwECHYUJFZH8jei6Jbejk/jbqzjSMm8Yjn/vub05qzeCD NINNbU0fokRermUlGjnqvFO2FtVrocAirxgD3bY1NxKd9jk//sWP5nS9uRcwPSTcrN1c rC5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qJWrozM0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si1441560edo.544.2020.11.25.08.31.59; Wed, 25 Nov 2020 08:32:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qJWrozM0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731893AbgKYQ1d (ORCPT + 99 others); Wed, 25 Nov 2020 11:27:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:52000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730560AbgKYQ1d (ORCPT ); Wed, 25 Nov 2020 11:27:33 -0500 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B54312083E; Wed, 25 Nov 2020 16:27:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606321652; bh=4guIsYJBgPRIiLG0nUPKOsb5v+5v6jxyqDmQ3XzlsVc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qJWrozM0HOM7o+cMlJ+yVBzByAtoJL+roDOJZnRLqh8HcLMP5YELlNr/2nN0o3uhw N77RY+w8wAA7RBLJqJ+smz+9TP/WhQQJcYebo/MhJnINKyTV67VieRQdSj/Rtp+g8V HLEWfJvzXE+Hghem18pj3DE9CE3o3rh75blxEytU= Date: Thu, 26 Nov 2020 01:27:26 +0900 From: Masami Hiramatsu To: Vasily Gorbik Cc: Josh Poimboeuf , Masami Hiramatsu , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Miroslav Benes , Alexandre Chartre , Julien Thierry , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/insn: Fix vector instructions decoding on big endian Message-Id: <20201126012726.38f23d18069ec54792fc6276@kernel.org> In-Reply-To: References: <20201113173052.vdy72pytmv6ztnbj@treble> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Nov 2020 14:33:10 +0100 Vasily Gorbik wrote: > On Fri, Nov 13, 2020 at 11:30:52AM -0600, Josh Poimboeuf wrote: > > On Fri, Nov 13, 2020 at 05:09:54PM +0100, Vasily Gorbik wrote: > > > Running instruction decoder posttest on s390 with allyesconfig shows > > > errors. Instructions used in couple of kernel objects could not be > > > correctly decoded on big endian system. > > > > > > insn_decoder_test: warning: objdump says 6 bytes, but insn_get_length() says 5 > > > insn_decoder_test: warning: Found an x86 instruction decoder bug, please report this. > > > insn_decoder_test: warning: ffffffff831eb4e1: 62 d1 fd 48 7f 04 24 vmovdqa64 %zmm0,(%r12) > > > insn_decoder_test: warning: objdump says 7 bytes, but insn_get_length() says 6 > > > insn_decoder_test: warning: Found an x86 instruction decoder bug, please report this. > > > insn_decoder_test: warning: ffffffff831eb4e8: 62 51 fd 48 7f 44 24 01 vmovdqa64 %zmm8,0x40(%r12) > > > insn_decoder_test: warning: objdump says 8 bytes, but insn_get_length() says 6 > > > > > > This is because in few places instruction field bytes are set directly > > > with further usage of "value". To address that introduce and use > > > insn_set_byte() helper, which correctly updates "value" on big endian > > > systems. > > > > > > Signed-off-by: Vasily Gorbik > > > --- > > > Please let me know if this patch is good as it is or I should squash it > > > into the patch 2 of my patch series and resend it again. > > > > It all looks good to me, thanks! > > > > Masami, does this patch look good, and also patches 1-2 of the series? > > (I think you previously ACKed patch 2). > > > > Friendly ping... Sorry for replying late. Yes, I think this series and the last patch look good to me. Acked-by: Masami Hiramatsu for this series. Thank you! -- Masami Hiramatsu