From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5ECBC433EF for ; Mon, 27 Sep 2021 17:53:59 +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 72F1C60EE2 for ; Mon, 27 Sep 2021 17:53:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 72F1C60EE2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:34256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUupC-0001sl-EL for qemu-devel@archiver.kernel.org; Mon, 27 Sep 2021 13:53:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUuoI-0001BG-2A for qemu-devel@nongnu.org; Mon, 27 Sep 2021 13:53:02 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:39029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUuoE-0002oh-5O for qemu-devel@nongnu.org; Mon, 27 Sep 2021 13:53:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632765176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WZT5jgVLx2srJB6/eVU0oqRY7qibCtj37NmvTUq7ISo=; b=fylBAXvt1/7yQ+E3VMh4MvEbFiLRhDkhVoWZVYKtKfEw3PjWOTJegKavSCVSms2rrUq+Mp QcqaXTgz36Ra53gjOU9tkiymPfYDHsHEp8+XN7tR+jLnVIQzJxb3mMQMHE2UfTFtVHQEpw YVxNWIPA9ThUjOd9PFM+mh6s4G02y3A= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-388-LJsW6XCrPpyrpUe5w5Bojw-1; Mon, 27 Sep 2021 13:52:54 -0400 X-MC-Unique: LJsW6XCrPpyrpUe5w5Bojw-1 Received: by mail-wm1-f70.google.com with SMTP id j142-20020a1c2394000000b0030d06638a56so267755wmj.9 for ; Mon, 27 Sep 2021 10:52:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=WZT5jgVLx2srJB6/eVU0oqRY7qibCtj37NmvTUq7ISo=; b=mlgn8XX/iLsIr4I2gM9snwX/up9sgzdZAUT4mt2e9rIWvwr3E+p+eEJ0xa5GrIu8rl qJJ45s+WyfjTf7lf8d3ttIRGgXAQICd8gGWbgLS3EiMNAOhwpjD/qTpRSjkDwZnwJ2q9 NRDP1k+/pUdRDj7TOE8DMFNgS5CVV1oAU4d0chv0m75E6/v0TFqpwYYVgFgZtbdlE/zg iz6xPCChB/AnAAuFYkWVnoostzINbFb1QXU40fzeCNkC1mzpMH1VA8aPM5mERZ7de/Rk q9vh536Occ9qy60buXLwPxWRp4CRY5/X/jfGnQUgKa4/MHMc7wVzRkUyvzzhJJv3z29s gXgQ== X-Gm-Message-State: AOAM533q4IeGP0kUNCK9uZwUoliQdq87BLXRy9aVM/T/DTvs529J2U83 fotb+J6/BrVXsCzV5CsjweS2oyvn+lCjn/SSEYf5wcvy1APmUdoNVpb13xnpdoOYX71FBysGiOG w5pAeNEsd301YGOA= X-Received: by 2002:a5d:59ae:: with SMTP id p14mr1400300wrr.278.1632765173315; Mon, 27 Sep 2021 10:52:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkY9zhzB+sq/E81p093tOkqJlhe+nOBE0j1hQuK+GjX6TxAix3xWjPseMOr7G6tWHvpYC7Ww== X-Received: by 2002:a5d:59ae:: with SMTP id p14mr1400272wrr.278.1632765173061; Mon, 27 Sep 2021 10:52:53 -0700 (PDT) Received: from [192.168.1.36] (118.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.118]) by smtp.gmail.com with ESMTPSA id k17sm717844wmj.0.2021.09.27.10.52.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Sep 2021 10:52:52 -0700 (PDT) Message-ID: Date: Mon, 27 Sep 2021 19:52:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH v2] tests/acceptance: Test powernv machines To: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , qemu-devel@nongnu.org References: <20210817093036.1288791-1-clg@kaod.org> <557fc854-042f-bef0-386d-e290dbd6c4ab@kaod.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <557fc854-042f-bef0-386d-e290dbd6c4ab@kaod.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -58 X-Spam_score: -5.9 X-Spam_bar: ----- X-Spam_report: (-5.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-3.136, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Thomas Huth , Cleber Rosa , Joel Stanley , Wainer dos Santos Moschetta , David Gibson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 9/27/21 19:37, Cédric Le Goater wrote: > On 9/27/21 19:21, Philippe Mathieu-Daudé wrote: >> On 8/17/21 11:30, Cédric Le Goater wrote: >>> Fetch the OpenPOWER images to boot the powernv8 and powernv9 machines >>> with a simple PCI layout. >>> >>> Cc: Cleber Rosa >>> Cc: Philippe Mathieu-Daudé >>> Cc: Wainer dos Santos Moschetta >>> Signed-off-by: Cédric Le Goater >>> --- >>> >>>   Since v2: >>> >>>   - Change the skiboot.lid file to use the one shipped with QEMU >>>     tests/acceptance/boot_linux_console.py | 35 >>> ++++++++++++++++++++++++++ >>>   1 file changed, 35 insertions(+) >>> >>> diff --git a/tests/acceptance/boot_linux_console.py >>> b/tests/acceptance/boot_linux_console.py >>> index 5248c8097df9..59c9309c4d0b 100644 >>> --- a/tests/acceptance/boot_linux_console.py >>> +++ b/tests/acceptance/boot_linux_console.py >>> @@ -1176,6 +1176,41 @@ def test_ppc64_e500(self): >>>           tar_hash = '6951d86d644b302898da2fd701739c9406527fe1' >>>           self.do_test_advcal_2018('19', tar_hash, 'uImage') >>>   +    def do_test_ppc64_powernv(self, proc): >>> +        images_url = >>> ('https://github.com/open-power/op-build/releases/download/v2.7/') >>> + >>> +        kernel_url = images_url + 'zImage.epapr' >>> +        kernel_hash = >>> '0ab237df661727e5392cee97460e8674057a883c5f74381a128fa772588d45cd' >>> +        kernel_path = self.fetch_asset(kernel_url, >>> asset_hash=kernel_hash, >>> +                                       algorithm='sha256') >>> +        self.vm.set_console() >>> +        self.vm.add_args('-kernel', kernel_path, >>> +                         '-append', 'console=tty0 console=hvc0', >>> +                         '-device', >>> 'pcie-pci-bridge,id=bridge1,bus=pcie.1,addr=0x0', >>> +                         '-device', >>> 'nvme,bus=pcie.2,addr=0x0,serial=1234', >>> +                         '-device', 'e1000e,bus=bridge1,addr=0x3', >>> +                         '-device', >>> 'nec-usb-xhci,bus=bridge1,addr=0x2') >>> +        self.vm.launch() >>> + >>> +        self.wait_for_console_pattern("CPU: " + proc + " generation >>> processor") >>> +        self.wait_for_console_pattern("zImage starting: loaded") >>> +        self.wait_for_console_pattern("Run /init as init process") >>> +        self.wait_for_console_pattern("Creating 1 MTD partitions") >>> + >>> +    def test_ppc_powernv8(self): >>> +        """ >>> +        :avocado: tags=arch:ppc64 >>> +        :avocado: tags=machine:powernv8 >>> +        """ >>> +        self.do_test_ppc64_powernv('P8') >>> + >>> +    def test_ppc_powernv9(self): >>> +        """ >>> +        :avocado: tags=arch:ppc64 >>> +        :avocado: tags=machine:powernv9 >>> +        """ >>> +        self.do_test_ppc64_powernv('P9') >>> + >>>       def test_ppc_g3beige(self): >>>           """ >>>           :avocado: tags=arch:ppc >>> >> >> Kinda borderline w.r.t. 90 sec timeout limit... (using --enable-debug): >> >> JOB ID     : 5229c34e837b7b6de18c68115b07f0eebc446784 >> JOB LOG    : >> /home/phil/avocado/job-results/job-2021-09-27T19.15-5229c34/job.log >>   (1/3) >> tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_ppc64_e500: >> PASS (6.58 s) >>   (2/3) >> tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_ppc_powernv8: >> >> PASS (80.38 s) >>   (3/3) >> tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_ppc_powernv9: >> >> PASS (89.22 s) >> RESULTS    : PASS 3 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | >> CANCEL 0 >> JOB TIME   : 176.84 s > > It's too long I agree and I can remove some of the PCI adapters which > need training. > > What's your laptop like ? i7-8650U, but maybe better ask Gitlab what are theirs runners like ;)