Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp44942pxu; Tue, 24 Nov 2020 18:06:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgBpcmSpy7xhG0OXav3Njd+kzTNABJOtjv0JIiqhYgNC+ngRINENELRpVOpH+uzJ83tRT9 X-Received: by 2002:aa7:c3c1:: with SMTP id l1mr1362130edr.153.1606269981215; Tue, 24 Nov 2020 18:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606269981; cv=none; d=google.com; s=arc-20160816; b=fcxREfT/n5xidPqc28OtoJHeqqDwWR2wLvs8OwxDRBmh19PhpblUOO/xctG8Wsk62U Oq0wRR+uu6JwRXMi+kyoZaBP4Bzwi8mg3ZAMzSmxjoqB4+lwMOj71+N4B0wluKsRkkLg l+DQU1dzEH6dCSGU69FYvk+r8ayjc2vls+i1dwfMY0V2EaNVfPnvd6gudCWCL+sgwsHo NSZLQJDyrS5D1reHEdMPayyo6WJc4qJQi53+9FvGdiyaYG5HT2JTtg96McpVUEtuA8fv 6nf/YkqwITDESxnrkZDMGdCUr5pUkcMPh7zjzcxIiI8ivoC6bvd9wyDyudp1qirhvbiN mIGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Up34+xk5Hh3uaem2s98GkoXOQa+MmxHIken7R58zN+4=; b=0OGM5HDLnJcfwv0L5/tlmTnuKbOmkLwShS2oYSOCwuvBM+ga9h7RPGXZ/wwrQzThOn Yzban4RVTABir3Jk6p2JhfrOrdFUoKBx/YwieNLIHdRRv6u52YoUHGESjihbMcpid7/x ZqLqj3Ou2GuqXIlj+pxRDgc67MG1C4DX16ah9ktuVKtDFR2/YlkMH0cQklLtg+jxlWr9 QSU/pUIPiwtPSXEDblKFzPX5meL9V1FANxqWH+gAPewDZCWpJ/AvZbR6uE5cfGG6uSQc H2PwwgJ/J2ytSp5lOX++gBjhrSQ+sSUogHvBm/Gn+YkU0WayKopQxR7I+cZELdZDeIPU 5qYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=dMh9axdb; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si345541edy.62.2020.11.24.18.05.58; Tue, 24 Nov 2020 18:06:21 -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=@ibm.com header.s=pp1 header.b=dMh9axdb; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388399AbgKXNfy (ORCPT + 99 others); Tue, 24 Nov 2020 08:35:54 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:10084 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725616AbgKXNfy (ORCPT ); Tue, 24 Nov 2020 08:35:54 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AODWDer139473; Tue, 24 Nov 2020 08:33:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=Up34+xk5Hh3uaem2s98GkoXOQa+MmxHIken7R58zN+4=; b=dMh9axdbsIw2m80Vbx02bRag9DhvhSNV0b/2Vt5aOC8PbC4zWV2v3cp/MGZGmd+aEXXi EYbRtM/MQKwgjNrPnbwRebJCFsyEPWVoDImHSSoGuCFhMcbA5rHwPzwFT5JrOmzp8O2m MLZ+Oe0wa8DKyvy5D+k/6wJJPlt17HOsCd8XbW32ubbL4+rKILe1CLcL88/Qsx5NT5E5 mgeINfSUNR4Iu218OicpmS0POxFOObZMQdO/Q/SGOlWVJQBjMf7B2M8p8h8JkwDaHDFW 6yiX1nbertg3y28BGfVWyJ9RVqhw1Pfq5jwTgJl20RGDwA1EUwdI8wRwFlkco7MsAE4f 1A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 350rn9c9fx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Nov 2020 08:33:17 -0500 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0AODXHJT145235; Tue, 24 Nov 2020 08:33:17 -0500 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 350rn9c9ek-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Nov 2020 08:33:17 -0500 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0AODSgO1026468; Tue, 24 Nov 2020 13:33:15 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma05fra.de.ibm.com with ESMTP id 34y6k4smn9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Nov 2020 13:33:14 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0AODXC5b4784770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Nov 2020 13:33:12 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 97B2711C050; Tue, 24 Nov 2020 13:33:12 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E427D11C04A; Tue, 24 Nov 2020 13:33:11 +0000 (GMT) Received: from localhost (unknown [9.171.12.143]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 24 Nov 2020 13:33:11 +0000 (GMT) Date: Tue, 24 Nov 2020 14:33:10 +0100 From: Vasily Gorbik To: Josh Poimboeuf Cc: 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: References: <20201113173052.vdy72pytmv6ztnbj@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201113173052.vdy72pytmv6ztnbj@treble> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-24_04:2020-11-24,2020-11-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 mlxlogscore=932 mlxscore=0 adultscore=0 suspectscore=1 impostorscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011240081 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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...