Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E543CC48BD5 for ; Tue, 25 Jun 2019 16:07:45 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BBE672080C for ; Tue, 25 Jun 2019 16:07:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BBE672080C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ilande.co.uk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:33482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfnyy-0004G6-Sl for qemu-devel@archiver.kernel.org; Tue, 25 Jun 2019 12:07:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35362) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfnZK-0006eO-OJ for qemu-devel@nongnu.org; Tue, 25 Jun 2019 11:41:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfnZI-0002ua-OT for qemu-devel@nongnu.org; Tue, 25 Jun 2019 11:41:14 -0400 Received: from mail.ilande.co.uk ([46.43.2.167]:59968 helo=mail.default.ilande.uk0.bigv.io) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hfnZB-0001SZ-2m for qemu-devel@nongnu.org; Tue, 25 Jun 2019 11:41:07 -0400 Received: from host86-173-229-95.range86-173.btcentralplus.com ([86.173.229.95] helo=[192.168.1.65]) by mail.default.ilande.uk0.bigv.io with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hfnVX-0007MI-AC; Tue, 25 Jun 2019 16:37:19 +0100 To: Richard Henderson , Aleksandar Markovic References: <20190519041522.12327-1-richard.henderson@linaro.org> <8f28d008-2608-a579-7505-4546b08deb41@linaro.org> <085d6881-f518-9888-a13e-081cdc09de46@ilande.co.uk> <0b9f4772-37f6-1453-e4ea-5ad9d0f52a5b@ilande.co.uk> From: Mark Cave-Ayland Openpgp: preference=signencrypt Autocrypt: addr=mark.cave-ayland@ilande.co.uk; keydata= mQENBFQJuzwBCADAYvxrwUh1p/PvUlNFwKosVtVHHplgWi5p29t58QlOUkceZG0DBYSNqk93 3JzBTbtd4JfFcSupo6MNNOrCzdCbCjZ64ik8ycaUOSzK2tKbeQLEXzXoaDL1Y7vuVO7nL9bG E5Ru3wkhCFc7SkoypIoAUqz8EtiB6T89/D9TDEyjdXUacc53R5gu8wEWiMg5MQQuGwzbQy9n PFI+mXC7AaEUqBVc2lBQVpAYXkN0EyqNNT12UfDLdxaxaFpUAE2pCa2LTyo5vn5hEW+i3VdN PkmjyPvL6DdY03fvC01PyY8zaw+UI94QqjlrDisHpUH40IUPpC/NB0LwzL2aQOMkzT2NABEB AAG0ME1hcmsgQ2F2ZS1BeWxhbmQgPG1hcmsuY2F2ZS1heWxhbmRAaWxhbmRlLmNvLnVrPokB OAQTAQIAIgUCVAm7PAIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQW8LFb64PMh9f NAgAuc3ObOEY8NbZko72AGrg2tWKdybcMVITxmcor4hb9155o/OWcA4IDbeATR6cfiDL/oxU mcmtXVgPqOwtW3NYAKr5g/FrZZ3uluQ2mtNY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thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 86.173.229.95 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on mail.default.ilande.uk0.bigv.io) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 46.43.2.167 Subject: Re: [Qemu-devel] [PATCH v4 0/7] tcg/ppc: Add vector opcodes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Howard Spoelstra , QEMU Developers , David Gibson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 25/06/2019 07:56, Richard Henderson wrote: >>> One more hint: if I try a build of d8dcbb57e9 along with my tcg_can_emit_vec_op() >>> hack and pass --enable-debug-tcg to configure then I get an assert on startup: >>> >>> qemu-system-ppc: /home/mca/src/qemu/tcg/tcg.c:2207: process_op_defs: Assertion `tdefs >>> != ((void *)0)' failed. >>> Aborted >>> >> >> Mark, Richard, Howard, David, >> >> I just sent v5 of the series, that is (in the sense of net-result of >> code changes) equivalent to v4, but the patch 1/7 from v4 is now split >> into ten smaller patches. This was done mainly to enable Mark to >> perhaps try v5 and bisect, in order to at least somewhat narrow down >> the culprit. Most likely it will be patch 5 from v5, that is still >> sizeable, but even if this is the case, we can eliminate other smaller >> things from consideration. > > Thanks for the help on that. > > I don't believe your split is actually bisectable -- there's a minimum amount > that is required to enable vector opcodes at all. Patch 5 is the first that > enables tcg_out_{mov,ld,st}, so while patches beforehand may compile, they > certainly will not run. > > I can retain your split, but for real bisectability we need to move the enable > of TCG_TARGET_HAS_v128 from patch 2 to patch 5. > > Given that all this works for me on a Power9 host, I expect that there's a > simple fix for Mark's G5 host. Given the above assertion, a missing opcode > definition, perhaps for -m32 vs -m64? Right, I'm starting to dig into this a bit more now. First of all, I've figured out what is triggering the above assertion: "qemu-system-ppc: /home/mca/src/qemu/tcg/tcg.c:2207: process_op_defs: Assertion `tdefs != ((void *)0)' failed." The problem is that in tcg/tcg-op.h we define "DEF(dup2_vec, 1, 2, 0, IMPLVEC | IMPL(TCG_TARGET_REG_BITS == 32))" and in the last patchset dup2_vec isn't introduced until towards the end. Unfortunately it's not a simple as bringing the patch forward within the series to maintain bisectability because the current implementation depends on VMRG which only appears in the patch just before it... Next to try and figure out what exactly is causing the fault. Just a quick question out of curiosity: is your Power9 system BE or LE? ATB, Mark.