dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Try to smartly allocate memory on the two BARs
@ 2015-10-12 13:02 Frediano Ziglio
  2015-10-12 13:02 ` [PATCH 1/2] Change the way slot is detected Frediano Ziglio
  2015-10-12 13:02 ` [PATCH 2/2] Allocate objects in both video rams Frediano Ziglio
  0 siblings, 2 replies; 4+ messages in thread
From: Frediano Ziglio @ 2015-10-12 13:02 UTC (permalink / raw)
  To: David Airlie; +Cc: spice-devel, dri-devel, Frediano Ziglio

Currently a single type of surface is allocated in a specific BAR.
This also changes from userspace driver to the kernel one.
This way it could happen that allocation are failing even if there are
plenty of space in the other BAR.
For instance this can happen trying to change resolution as the old and
the new virtual screen is supposed to be contained in a single BAR.
The change allows allocation to occur in the BAR not being the default
for a surface type.

The patches prove to be really stable. I tested setting quite small BARs
(one or the oher) or changing default allocation BAR and continued working.
Setting large resolution is working fine while without these patches fails
for not so big BAR sizes.

Frediano Ziglio (2):
  Change the way slot is detected
  Allocate objects in both video rams

 qxl/qxl_cmd.c    |  2 +-
 qxl/qxl_drv.h    |  9 ++++++++-
 qxl/qxl_object.c | 11 +++++++----
 3 files changed, 16 insertions(+), 6 deletions(-)

-- 
2.4.3

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-16  1:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12 13:02 [RFC PATCH 0/2] Try to smartly allocate memory on the two BARs Frediano Ziglio
2015-10-12 13:02 ` [PATCH 1/2] Change the way slot is detected Frediano Ziglio
2015-10-16  1:32   ` Dave Airlie
2015-10-12 13:02 ` [PATCH 2/2] Allocate objects in both video rams Frediano Ziglio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox