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 994336 - qemu only display partial screen after keyborad inactive for 600 secs
Summary: qemu only display partial screen after keyborad inactive for 600 secs
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-07 05:21 UTC by Xiaoqing Wei
Modified: 2017-02-27 08:39 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-27 08:39:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
debug (1.75 MB, application/x-bzip2)
2013-08-07 05:21 UTC, Xiaoqing Wei
no flags Details
logs (268.54 KB, application/x-xz)
2014-01-21 06:28 UTC, Xiaoqing Wei
no flags Details

Description Xiaoqing Wei 2013-08-07 05:21:48 UTC
Created attachment 783666 [details]
debug

Description of problem:
qemu only display partial screen after keyborad inactive for 600 secs

Version-Release number of selected component (if applicable):
qemu-kvm-1.5.2-2.el7.x86_64
3.10.0-3.el7.x86_64

How reproducible:
4/4

Steps to Reproduce:
1.install a RHEL7 guest, I am using 20130628, the latest compose
/root/staf-kvm-devel/autotest-devel/client/tests/virt/qemu/qemu \
    -S \
    -name 'virt-tests-vm1' \
    -nodefaults \
    -chardev socket,id=qmp_id_qmpmonitor1,path=/tmp/monitor-qmpmonitor1-20130802-140603-CICxnu7y,server,nowait \
    -mon chardev=qmp_id_qmpmonitor1,mode=control \
    -chardev socket,id=serial_id_serial1,path=/tmp/serial-serial1-20130802-140603-CICxnu7y,server,nowait \
    -device isa-serial,chardev=serial_id_serial1 \
    -chardev socket,id=seabioslog_id_20130802-140603-CICxnu7y,path=/tmp/seabios-20130802-140603-CICxnu7y,server,nowait \
    -device isa-debugcon,chardev=seabioslog_id_20130802-140603-CICxnu7y,iobase=0x402 \
    -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=0x4 \
    -device virtio-scsi-pci,id=virtio_scsi_pci0,addr=0x5 \
    -drive file='/root/staf-kvm-devel/autotest-devel/client/tests/virt/shared/data/images/RHEL-Server-7.0-64-virtio.qcow2',if=none,id=virtio-scsi0-id0,media=disk,cache=none,snapshot=off,format=qcow2,aio=native \
    -device scsi-hd,drive=virtio-scsi0-id0 \
    -device virtio-net-pci,netdev=idDVoGib,mac='9a:5e:5f:60:61:62',bus=pci.0,addr=0x3,id='idbr8m6m' \
    -netdev tap,id=idDVoGib,vhost=on,fd=22 \
    -m 4096 \
    -smp 4,maxcpus=4,cores=2,threads=1,sockets=2 \
    -cpu 'SandyBridge' \
    -M pc \
    -drive file='/root/staf-kvm-devel/autotest-devel/client/tests/virt/shared/data/isos/linux/RHEL7.0-Server-x86_64.iso',if=none,id=virtio-scsi1-id1,media=cdrom,readonly=on,format=raw \
    -device scsi-cd,drive=virtio-scsi1-id1 \
    -drive file='/root/staf-kvm-devel/autotest-devel/client/tests/virt/shared/data/images/rhel70-64/ks.iso',if=none,id=virtio-scsi2-id2,media=cdrom,readonly=on,format=raw \
    -device scsi-cd,drive=virtio-scsi2-id2 \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \
    -kernel '/root/staf-kvm-devel/autotest-devel/client/tests/virt/shared/data/images/rhel70-64/vmlinuz' \
    -append 'ks=cdrom:/dev/sr1 nicdelay=60 console=ttyS0,115200 console=tty0' \
    -initrd '/root/staf-kvm-devel/autotest-devel/client/tests/virt/shared/data/images/rhel70-64/initrd.img' \
    -vnc :0 \
    -vga cirrus \
    -rtc base=utc,clock=host,driftfix=slew  \
    -boot order=cdn,once=d,menu=off   \
    -no-kvm-pit-reinjection \
    -no-shutdown \
    -enable-kvm

2. wait for installation finish
3.

Actual results:
screen would display only partial content, the left side

Expected results:
screen keep update all area

Additional info:
after issue happen, select the guest vnc window and input something(press ctrl or shift or enter)
the screen would continue to update all area.


debug file uploaded, containing screenshots

Comment 2 Xiaoqing Wei 2013-08-28 08:28:25 UTC
-spice port=3000,password=123456,addr=0,image-compression=auto_glz,zlib-glz-wan-compression=auto,streaming-video=all,agent-mouse=on,playback-compression=on,ipv4

-vga qxl -global qxl-vga.vram_size=33554432


This exists when using spice/qxl too

Comment 3 Gerd Hoffmann 2013-10-29 09:33:42 UTC
Hmm?  Screenshots look perfectly fine to me.  Text lines fill the left side of the screen only because they are much shorter than the screen width allows.

Comment 4 Xiaoqing Wei 2014-01-17 03:46:31 UTC
(In reply to Gerd Hoffmann from comment #3)
> Hmm?  Screenshots look perfectly fine to me.  Text lines fill the left side
> of the screen only because they are much shorter than the screen width
> allows.

Hi Gerd,

then why after pressing any key, the guest screen continue to update all area ?
when it stops rendering all area, the screen snapshot looked like guest hang,
then our autotest would treat guest die, which impacted our automated test. :-(

Comment 5 Gerd Hoffmann 2014-01-17 07:57:12 UTC
Ah, you mean screenshots 120-129.  Didn't notice them last time I looked at the issue.  I suspect it is something in drmfb.  Adding Dave.

There have been a bunch of drm updates to the kernel since.  Can you retest please?  Which vga cards are affected?  qxl?  cirrus?  std?

Comment 9 Xiaoqing Wei 2014-01-21 06:28:48 UTC
Created attachment 852980 [details]
logs

    -vga std  \
has different look, the screen is completely black after a while.

Comment 10 Gerd Hoffmann 2014-01-21 08:37:20 UTC
screen going completely black is the screen saver.  Tapping any key should wake it up and make it display the normal screen again.

Could be the screen saver doesn't work properly with drmfb.  That would also explain why it starts behaving normal again after tapping a key.  Is the idle time the same (for screen saver on stdvga and broken display on cirrus/qxl)?

The screen blanking can be configured with the setterm utility (-blank and -powersave options, see man page).  Not sure setterm is on the anaconda install image, but you could try turning off screen blanking in the kickstart %pre section and see if that helps.

Comment 14 Gerd Hoffmann 2014-01-22 09:17:38 UTC
Ok, so we have a solution for the screensaver-disturbs-autotest issue.

Still worth investigating why the screen blanking doesn't work correctly with qxldrmfb and cirrusdrmfb.  Screen should go completely blank like it does in text mode (when using qemu stdvga).  Not critical enough to justify fixing in 7.0 though.

Comment 16 Gerd Hoffmann 2016-08-12 07:53:56 UTC
(In reply to Gerd Hoffmann from comment #14)
> Ok, so we have a solution for the screensaver-disturbs-autotest issue.
> 
> Still worth investigating why the screen blanking doesn't work correctly
> with qxldrmfb and cirrusdrmfb.  Screen should go completely blank like it
> does in text mode (when using qemu stdvga).  Not critical enough to justify
> fixing in 7.0 though.

Moving to 7.4.

btw: seeing this on physical hardware (arm boards) too.  Seems to happen when console blanking doesn't put the monitor into powersave mode.  Or, to be correct, it probably happens all the time but with the monitor in powersave mode you don't notice b/c you can't see it ...

Comment 17 Gerd Hoffmann 2017-01-09 14:51:41 UTC
(In reply to Gerd Hoffmann from comment #16)
> (In reply to Gerd Hoffmann from comment #14)
> > Ok, so we have a solution for the screensaver-disturbs-autotest issue.
> > 
> > Still worth investigating why the screen blanking doesn't work correctly
> > with qxldrmfb and cirrusdrmfb.  Screen should go completely blank like it
> > does in text mode (when using qemu stdvga).  Not critical enough to justify
> > fixing in 7.0 though.
> 
> Moving to 7.4.
> 
> btw: seeing this on physical hardware (arm boards) too.  Seems to happen
> when console blanking doesn't put the monitor into powersave mode.  Or, to
> be correct, it probably happens all the time but with the monitor in
> powersave mode you don't notice b/c you can't see it ...

Yep, drmfb (drm_fb_helper_blank) just tries to puts the monitor into suspend mode.  Framebuffer content is not touched, so it remains visible in case putting the monitor at suspend doesn't work, either because there is no physical monitor in the first place (virtual hardware), or because dpms isn't working properly (probably the case on the arm board where I saw this too).

No easy way out.  Just clearing the framebuffer isn't going to work because we can't easily restore the content on unblank.  We could try do something special for virtual hardware instead of using the generic drm_fb helper function.  Not sure this is worth the trouble for this cosmetic thing.

For the original issue (autotest checking screen for updates) blanking should be turned off anyway, no matter whenever it works correctly or not ...

So, bottom line, I'm inclined to close this as wontfix.  Objections?

Comment 18 Gerd Hoffmann 2017-02-27 08:39:31 UTC
> So, bottom line, I'm inclined to close this as wontfix.  Objections?

Done now.


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