Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1803811

Summary: Mesa driver exits the application when trying to launch 2nd screen with 'i965: Failed to submit batchbuffer: Invalid argument' [rhel-7.9.z]
Product: Red Hat Enterprise Linux 7 Reporter: Vikramsingh Patil <vikpatil>
Component: mesaAssignee: Michel Dänzer <mdaenzer>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 7.7CC: airlied, cbazin, csoriano, jreznik, jsolomon, kwalker, mdaenzer, pvlasin, rbdiri, sbarcomb, tpelka
Target Milestone: rcKeywords: ZStream
Target Release: 7.9   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: mesa-18.3.4-12.el7_9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1835682 (view as bug list) Environment:
Last Closed: 2020-11-10 13:16:19 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:
Bug Depends On:    
Bug Blocks: 1835682, 1843381    
Attachments:
Description Flags
Working scenario
none
Actual Result
none
strace from both client and server
none
Issue without applying the patch
none
Issue after applying the patch none

Description Vikramsingh Patil 2020-02-17 13:53:40 UTC
Description of problem:

When trying to launch application having 2 screen, The application exits with error 'i965: Failed to submit batchbuffer: Invalid argument'

Version-Release number of selected component (if applicable):

xorg-x11-drv-intel-2.99.917-28.el7.x86_64
mesa-dri-drivers-18.0.5-3.el7.x86_64

How reproducible:

Hardwre 
- hardware: i965 GPU chipset
- software: RHEL 7.7 + mesa-dri-drivers + mesa-demo

1) Install the mesa-demos.x86_64 (comes from RHEL optional repository)

2) Run '/usr/lib64/mesa/manywin 2'

Steps to Reproduce:
1. Install the mesa-demos.x86_64 (comes from RHEL optional repository)
2. Run '/usr/lib64/mesa/manywin 2'
3.

Actual results:

It should launch 2 screen

Expected results:

Gives error 'i965: Failed to submit batchbuffer: Invalid argument'

Additional info:

Comment 2 Vikramsingh Patil 2020-02-17 13:56:38 UTC
Created attachment 1663521 [details]
Working scenario

Above image shows the working scenario for the bug

Comment 3 Vikramsingh Patil 2020-02-17 13:58:15 UTC
Created attachment 1663522 [details]
Actual Result

It is the Actual Result customer is getting

Comment 4 Vikramsingh Patil 2020-02-17 14:01:11 UTC
Created attachment 1663525 [details]
strace from both client and server

Comment 5 Adam Jackson 2020-02-19 18:57:22 UTC
This appears to have been already reported (though neglected) upstream:

https://gitlab.freedesktop.org/mesa/mesa/issues/1373

I can reproduce this locally on Fedora 31 but do not yet have an estimate
for time to fix.

Comment 7 Michel Dänzer 2020-03-03 10:49:56 UTC
Reassigning to mesa per the linked upstream issue.

Comment 11 Adam Jackson 2020-03-09 15:13:49 UTC
I've backported a few stable / pending fixes from upstream that should
address this issue here:

https://people.redhat.com/ajackson/1803811/

Please test and report any issues you encounter.

Comment 13 Vikramsingh Patil 2020-03-11 10:19:08 UTC
Created attachment 1669221 [details]
Issue without applying the patch

Comment 14 Vikramsingh Patil 2020-03-11 10:20:28 UTC
Created attachment 1669222 [details]
Issue after applying the patch

Comment 15 Adam Jackson 2020-03-12 15:50:37 UTC
Well that's unexpected. I can reproduce this failure locally, will post another test
build when I have a fix.

Comment 17 Adam Jackson 2020-03-13 19:39:39 UTC
I've posted a new test build to:

https://people.redhat.com/ajackson/1803811

The issue (which the upstream merge request looks like it fixes) has to do with
sharing resources between different connections to the same display. There are
some subtle resource lifetime issues that can arise from that and I haven't been
able to exhaustively test them, so while the packages above fix the manywin demo
for me, that demo is quite simplistic in its shared resource usage. If you find
additional issues with the real application with this build, please let me know.

Comment 42 errata-xmlrpc 2020-11-10 13:16:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (mesa bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:5046

Comment 43 Red Hat Bugzilla 2023-09-14 05:52:45 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days