RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1056354 - seabios can not recognize system disk with more than 1 downstream
Summary: seabios can not recognize system disk with more than 1 downstream
Keywords:
Status: CLOSED DUPLICATE of bug 1055832
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: seabios
Version: 7.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-22 03:16 UTC by Jun Li
Modified: 2014-01-23 15:07 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-23 15:07:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
seabios sreenshot (1-downstream) (18.08 KB, image/png)
2014-01-22 03:22 UTC, Jun Li
no flags Details
seabios sreenshot (2-downstream) (15.19 KB, image/png)
2014-01-22 03:26 UTC, Jun Li
no flags Details
seabios.log (8.30 KB, text/x-log)
2014-01-23 09:44 UTC, Jun Li
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 987322 0 medium CLOSED fail to boot guest when attach more than 4 devices to the same pcie switch 2021-02-22 00:41:40 UTC

Internal Links: 987322

Description Jun Li 2014-01-22 03:16:30 UTC
Description of problem:
scenario 1:
Boot two upstreams
1 upstream bridge + 2 downstream behind it
--
Seabios can not recognize system disk, only recognize the data disks under downstream. see the attached screenshot of seabios.

scenario 2:
Boot two upstreams
1 upstream bridge + 1 downstream behind it
--
Seabios can recognize system disk, and can boot guest successfully. see the attached screenshot of seabios.


Version-Release number of selected component (if applicable):
seabios-1.7.2.2-10.el7.x86_64
qemu-kvm-rhev-1.5.3-37.el7.x86_64
3.10.0-67.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.boot guest with 4151115-script.sh script.
# sh 4151115-script.sh 
--
# cat 4151115-script.sh 
#!/bin/sh
num=2

cli="$cli /usr/libexec/qemu-kvm -enable-kvm -M q35 -smp 4 -m 3G -usb -device usb-tablet,id=input0 -name RHEL-Server-7.0-64 -drive file=/home/juli/rhel7_64.raw,if=none,id=hd,format=raw,cache=none,werror=stop,rerror=stop -device virtio-scsi-pci,id=scsi0 -device scsi-hd,drive=hd,scsi-id=0,lun=0,id=scsi_image,bootindex=1 -netdev tap,script=/etc/qemu-ifup,id=netdev0 -device virtio-net-pci,netdev=netdev0,id=device-net0 -spice port=5927,disable-ticketing -vga qxl -monitor stdio -drive file=/home/disk/disk0.qcow2,format=qcow2,if=none,id=disk0 -device virtio-scsi-pci,id=disk0 -device scsi-hd,drive=disk0,scsi-id=0,lun=0 -boot menu=on"

for r in $(seq 2)
do

    cli="$cli -device ioh3420,bus=pcie.0,id=root.$r,slot=$r"
    cli="$cli -device x3130-upstream,bus=root.$r,id=upstream$r"
    echo upstream$r

    for k in $(seq $num)
    do
        cli="$cli -device xio3130-downstream,bus=upstream$r,id=downstream$(((r-1)*$num+k)),chassis=$(((r-1)*$num+k-1))"
        cli="$cli -drive file=/home/disk/disk$(((r-1)*$num+k)).qcow2,if=none,id=drive-virtio0-0-$(((r-1)*$num+k)),format=qcow2,cache=none -device virtio-blk-pci,scsi=off,drive=drive-virtio0-0-$(((r-1)*$num+k)),id=virti0-0-$(((r-1)*$num+k)),multifunction=on,bus=downstream$(((r-1)*$num+k))"

    done

done
echo $i
$cli
----------------
# cat 4151115-creat-disk.sh
#! /bin/sh
DIR="/home/disk"
if [-d "$DIR"]; then
    rm -fr $DIR
    mkdir -p $DIR
else
    mkdir -p $DIR
fi

i=0
while ((i<232)); do
    qemu-img create -f qcow2   $DIR/disk$i\.qcow2  100M
    i=$((i+1))
done
------
2.
3.

Actual results:
seabios can not recognize system disk. Please see the attached screenshot of seabios.

Expected results:
seabios can recognize system disk and can boot guest correctly.

Additional info:
this issue is different with bug 1055337. In this bug, the system disk is not under downstream.

Comment 2 Jun Li 2014-01-22 03:22:03 UTC
Created attachment 853572 [details]
seabios sreenshot (1-downstream)

Comment 3 Jun Li 2014-01-22 03:26:57 UTC
Created attachment 853576 [details]
seabios sreenshot (2-downstream)

Comment 4 Gerd Hoffmann 2014-01-22 15:22:28 UTC
Please attach seabios logfile for both cases

-chardev file,path=/dir/seabios.log,id=seabios \
-device isa-debugcon,iobase=0x402,chardev=seabios

Comment 5 Jun Li 2014-01-23 09:43:09 UTC
(In reply to Gerd Hoffmann from comment #4)
> Please attach seabios logfile for both cases
> 
> -chardev file,path=/dir/seabios.log,id=seabios \
> -device isa-debugcon,iobase=0x402,chardev=seabios

ok , please download seabios.log from the attachment.

Comment 6 Jun Li 2014-01-23 09:44:55 UTC
Created attachment 854269 [details]
seabios.log

Comment 7 Gerd Hoffmann 2014-01-23 15:07:31 UTC

*** This bug has been marked as a duplicate of bug 1055832 ***


Note You need to log in before you can comment on or make changes to this bug.