Bug 1450725

Summary: Kernel 4.12.0-0.rc0.git7.1.fc27.x86_64 Does Not Properly Refresh Screen or Adjust Resolution on QXL
Product: [Fedora] Fedora Reporter: Joseph D. Wagner <joe>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gansalmon, ichavero, itamar, john.ellson, jonathan, kernel-maint, madhu.chinakonda, mchehab, prd-fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1462469 (view as bug list) Environment:
Last Closed: 2020-05-27 19:45:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joseph D. Wagner 2017-05-15 03:42:42 UTC
Description of problem:
RHGB screen flickers 3 times, then freezes. Unable to escape.

Version-Release number of selected component (if applicable):
4.12.0-0.rc0.git7.1.fc27.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Boot that kernel version.

Actual results:
Freeze on RHGB screen. No error. Not responsive to any keys. Unable to drop to shell.

Expected results:
Should boot normally.

Additional info:
4.12.0-0.rc0.git2.1.fc27.x86_64 worked fine.

Removing rhgb from kernel parameters gets the system to boot, but it cuts off the right and bottom third of the screen.

Tried enforcing=0. No effect.

Comment 1 Joseph D. Wagner 2017-05-15 18:10:47 UTC
This problem persists on 4.12.0-0.rc0.git9.1.fc27.x86_64

Comment 2 Joseph D. Wagner 2017-05-21 22:47:11 UTC
This appears to be a problem with the QXL driver.  When I set the VM to use VGA, it boots normally.

This problem persists on 4.12.0-0.rc1.git4.1.fc27.x86_64.

Comment 3 Joseph D. Wagner 2017-06-02 17:57:00 UTC
It's improving, but it still isn't fixed. Now on kernel-4.12.0-0.rc3.git0.2.fc27.x86_64. Successfully boots without crashing. However, the screen doesn't refresh the windows or buttons until I move the mouse over the button/window/widget/etc. Also, I can't change/adjust the screen resolution.

Works ok on VGA, but not QXL. If I boot into the previous kernel version kernel-4.12.0-0.rc0.git2.1.fc27.x86_64, then QXL works fine; the only difference being the version of kernel select at boot time.

Comment 4 Joseph D. Wagner 2017-06-03 23:29:27 UTC
More information. I got one crash report that cited:
drivers/gpu/drm/ttm/ttm_bo_util.c:589 [qxl]

Comment 5 Joseph D. Wagner 2017-06-16 18:04:08 UTC
Problem still exists on 4.12.0-0.rc5.git0.1.fc27.x86_64.

Comment 6 Joseph D. Wagner 2017-06-18 18:26:50 UTC
It appears the bug is not in drivers/gpu/drm/ttm/ttm_bo_util.c:589, but rather this section of code is being called by the function with the bug in it. Here is the relevant context from the ttm_bo_util.c file:

int ttm_bo_kmap(struct ttm_buffer_object *bo,
		unsigned long start_page, unsigned long num_pages,
		struct ttm_bo_kmap_obj *map)
{
	struct ttm_mem_type_manager *man =
		&bo->bdev->man[bo->mem.mem_type];
	unsigned long offset, size;
	int ret;

	BUG_ON(!list_empty(&bo->swap));

Comment 7 Paul DeStefano 2017-06-19 08:05:13 UTC
Phew!  Thought it was just me for a while.  I'm getting this too.

This also occurs when shutting down with RHGB enabled.  Did you try disabling rhgb on boot kernel?

Comment 8 Joseph D. Wagner 2017-06-19 13:25:22 UTC
Disabling rhgb on the boot kernel might help boot/shutdown (mixed results), but it doesn't fix the screen resolution and refresh issues on QXL.

Comment 9 John Ellson 2017-07-06 15:47:59 UTC
I don't get the reported screen resolution issue, but this "hang with rhgb enabled" bug is possibly a dup of:  #1465148,  #1464780,  #1462381

Comment 10 Paul DeStefano 2017-07-17 22:25:55 UTC
bug 1465148
bug 1464780
bug 1462381

Comment 11 Joseph D. Wagner 2017-07-17 22:56:45 UTC
Let me give you some steps to try to reproduce the screen resolution issue.

I'm using the XFCE desktop.
- Install with VGA driver, so nothing goes wrong.
- Login and set the resolution to 1440x900. Ok so far.
- Poweroff & change from VGA to QXL.
- Startup. Get 1024x768 logon screen, as expected. (Resolution isn't supposed to change until after logon.)
- Logon.

Resolution stays at 1024x768, and rest of the screen appears cut off.
Also, I have to move the mouse over something to refresh it.  For example, after clicking Shutdown, the Shutdown window doesn't appear. I have to move the mouse to where I think it should be, and then individual buttons start to appear when I put my mouse. It's behaving like the window was created but the screen wasn't refreshed or redrawn.

The only difference between working and not is QXL driver.

I just did a fresh install of Rawhide a two or so weeks ago, to try to rule out any "junk" that builds up in rawhide installs.

Comment 12 Joseph D. Wagner 2017-08-01 07:21:04 UTC
Still a problem on kernel-4.13.0-0.rc2.git3.1.fc27.x86_64 with the QXL driver.