From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web08.4114.1628662101515152855 for ; Tue, 10 Aug 2021 23:08:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AgW/97Lf; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628662099; 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: in-reply-to:in-reply-to:references:references; bh=/v0iJ8Eu5zEy/ojFhhXnmNxA4853UOZMvDEF4Uj2E+4=; b=AgW/97LfhUYhpXMrxrDWmRFhRPqmUme1gGw7RZZj/4miWbLjpStbDcHJ/1RI7INufmsehr VG8qr4XVECCdj3CgrAfbf8G9Y+RS62vXj32T2CsUa4kTeWO+GJx9TMG5QOR/XiQXn8+H+E V83m9r/LAUaYhLiwd7FLRs+WgotJTsU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-225-S57HaNsVMGKanW1BkhoiDA-1; Wed, 11 Aug 2021 02:08:18 -0400 X-MC-Unique: S57HaNsVMGKanW1BkhoiDA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C9726107ACF5; Wed, 11 Aug 2021 06:08:16 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.193.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7CE4677701; Wed, 11 Aug 2021 06:08:16 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C4E24180063A; Wed, 11 Aug 2021 08:08:14 +0200 (CEST) Date: Wed, 11 Aug 2021 08:08:14 +0200 From: "Gerd Hoffmann" To: devel@edk2.groups.io, James.Bottomley@hansenpartnership.com Cc: chris.willing@linux.com, ardb+tianocore@kernel.org, jiewen.yao@intel.com Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg PlatformBootManagerLib: Move TryRunningQemuKernel() Message-ID: <20210811060814.vnxegcrny72enjmt@sirius.home.kraxel.org> References: <20210728020232.127332-1-chris.willing@linux.com> <1695D2E15A92C8E7.3876@groups.io> <62f9ffa0-786f-09dd-9546-c4c118fa2a17@linux.com> <1b544f28-b5b9-c08c-bab7-8c1f41778dce@linux.com> <5c85a3f963d1ab7d20e177db9a07a73e82a0eed0.camel@HansenPartnership.com> MIME-Version: 1.0 In-Reply-To: <5c85a3f963d1ab7d20e177db9a07a73e82a0eed0.camel@HansenPartnership.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > > -drive file=disk.img,format=raw,cache=none,index=0,media=disk \ > > -cdrom > > /storage/iso/slackware/slackware64-15.0/slackware64-15.0-20210807.iso > > There's no definition of a disk device in here. First line is disk, second is cdrom. Both are attached to the piix4 ide controller. Linux finds the controller just fine in both cases (see bugzilla for the logs): ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc040 irq 14 ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc048 irq 15 But only in one case it finds disk and cdrom: ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100 ata1.00: 41943040 sectors, multi 16: LBA48 ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100 [ ... ] Not obvious why. There isn't an error message in the non-working case. Does ovmf talk to the ide controller in case the order of the two calls is changed? Maybe that does some initialization which the linux driver depends on. take care, Gerd