surfman/xenfb2: default framebuffer values are invalid.

Description

Xenfb2, by extension the Xenfb2 backend in Surfman, will expose default resolution values to the frontend for creating an initial framebuffer:

The default-pitch here is incorrect and should at the minimum be 5120 (1280 * 32 / 8).
Surfman DRM-plugin will try to setup a framebuffer using these values and fail (with drm.debug=0x1e the drm module will also report the error):

Moreover, the default values presumed by the xenfb2 module in the guest do not match either (1024x768 32bpp, so 4096 stride, which is the value used here).

Environment

None

Validation Steps

  1. The display does not seem to display any artefact when this fails. The issue is observed in the logs, without debug by the following message:

Activity

Show:
Rich Persaud
July 19, 2019, 3:16 PM

Discussed in 2019-07-18 monthly call: explore future options for improving and/or using upstream xenfb

Eric Chanudet
July 19, 2019, 7:33 PM

As mentioned during the call, here is a starting point on differences between the current xenfb2 and the upstream xenfb.

Fixed

Assignee

Eric Chanudet

Reporter

Eric Chanudet

Labels

None

QA Assignee

None

QA Image URL

None

Components

Fix versions

Affects versions

Priority

Minor
Configure