<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/video/fbmem.c, branch linux-2.6.36.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.36.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.36.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-08-11T15:59:12Z</updated>
<entry>
<title>fbmem: VM_IO set, but not propagated</title>
<updated>2010-08-11T15:59:12Z</updated>
<author>
<name>Daniel De Graaf</name>
</author>
<published>2010-08-11T01:02:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c07fbfd17e614a76b194f371c5331e21e6cffb54'/>
<id>urn:sha1:c07fbfd17e614a76b194f371c5331e21e6cffb54</id>
<content type='text'>
When we setup up the VMA flags for the mmap flag and we end up using the
fallback mmap functionality we set the vma-&gt;vm_flags |= VM_IO.  However we
neglect to propagate the flag to the vma-&gt;vm_page_prot.

This bug was found when Linux kernel was running under Xen.  In that
scenario, any page that has VM_IO flag to it, means that it MUST be a
MMIO/VRAM backend memory , _not_ System RAM.  That is what the fbmem.c
does: sets VM_IO, ioremaps the region - everything is peachy.

Well, not exactly.  The vm_page_prot does not get the relevant PTE flags
set (_PAGE_IOMAP) which under Xen is a death-kneel to pages that are
referencing real physical devices but don't have that flag set.

This patch fixes this.

Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
Signed-off-by: Daniel De Graaf &lt;dgdegra@tycho.nsa.gov&gt;
Tested-by: Eamon Walsh &lt;ewalsh@tycho.nsa.gov&gt;
Cc: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
Cc: Dave Airlie &lt;airlied@linux.ie&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>drivers/video/fbmem.c: simplify strlen()==0 check in fb_get_options()</title>
<updated>2010-08-11T15:59:09Z</updated>
<author>
<name>Denys Vlasenko</name>
</author>
<published>2010-08-11T01:02:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a67ef278e24b1fe5ab8f5e8ef27f9654b91732de'/>
<id>urn:sha1:a67ef278e24b1fe5ab8f5e8ef27f9654b91732de</id>
<content type='text'>
Replaced !strlen(str) check with !str[0].  Removed the variable which was
used solely to store strlen result.

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>fbmem: avoid printk format warning with 32-bit resources</title>
<updated>2010-05-22T03:30:33Z</updated>
<author>
<name>Randy Dunlap</name>
</author>
<published>2010-05-21T19:44:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f4b87dee923342505e1ddba8d34ce9de33e75050'/>
<id>urn:sha1:f4b87dee923342505e1ddba8d34ce9de33e75050</id>
<content type='text'>
Fix printk formats:

  drivers/video/fbmem.c: In function 'fb_do_apertures_overlap':
  drivers/video/fbmem.c:1494: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'resource_size_t'
  drivers/video/fbmem.c:1494: warning: format '%llx' expects type 'long long unsigned int', but argument 3 has type 'resource_size_t'
  drivers/video/fbmem.c:1494: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'resource_size_t'
  drivers/video/fbmem.c:1494: warning: format '%llx' expects type 'long long unsigned int', but argument 5 has type 'resource_size_t'

Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>vga16fb, drm: vga16fb-&gt;drm handoff</title>
<updated>2010-05-18T06:19:30Z</updated>
<author>
<name>Marcin Slusarz</name>
</author>
<published>2010-05-16T15:33:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3b9676e7ac6eff4f50f1b48b6c36664f55b79507'/>
<id>urn:sha1:3b9676e7ac6eff4f50f1b48b6c36664f55b79507</id>
<content type='text'>
let vga16fb claim 0xA0000+0x10000 region as its aperture;
drm drivers don't use it, so we have to detect it and kick
vga16fb manually - but only if drm is driving the primary card

Signed-off-by: Marcin Slusarz &lt;marcin.slusarz@gmail.com&gt;
Cc: James Simmons &lt;jsimmons@infradead.org&gt;
Cc: Dave Airlie &lt;airlied@redhat.com&gt;
Cc: Ben Skeggs &lt;bskeggs@redhat.com&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>fbmem, drm/nouveau: kick firmware framebuffers as soon as possible</title>
<updated>2010-05-18T06:19:28Z</updated>
<author>
<name>Marcin Slusarz</name>
</author>
<published>2010-05-16T15:29:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=06415c564fb98562a4d6b6215615deb2d1cc0dae'/>
<id>urn:sha1:06415c564fb98562a4d6b6215615deb2d1cc0dae</id>
<content type='text'>
Currently vesafb/efifb/... is kicked when hardware driver is registering
framebuffer. To do it hardware must be fully functional, so there's a short
window between start of initialisation and framebuffer registration when
two drivers touch the hardware. Unfortunately sometimes it breaks nouveau
initialisation.

Fix it by kicking firmware driver(s) before we start touching the hardware.

Reported-by: Didier Spaier &lt;didier.spaier@epsm.fr&gt;
Tested-by: Didier Spaier &lt;didier.spaier@epsm.fr&gt;
Signed-off-by: Marcin Slusarz &lt;marcin.slusarz@gmail.com&gt;
Cc: Ben Skeggs &lt;bskeggs@redhat.com&gt;
Cc: Peter Jones &lt;pjones@redhat.com&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>fbdev: allow passing more than one aperture for handoff</title>
<updated>2010-05-18T06:19:27Z</updated>
<author>
<name>Marcin Slusarz</name>
</author>
<published>2010-05-16T15:27:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1471ca9aa71cd37b6a7476bb6f06a3a8622ea1bd'/>
<id>urn:sha1:1471ca9aa71cd37b6a7476bb6f06a3a8622ea1bd</id>
<content type='text'>
It removes a hack from nouveau code which had to detect which
region to pass to kick vesafb/efifb.

Signed-off-by: Marcin Slusarz &lt;marcin.slusarz@gmail.com&gt;
Cc: Eric Anholt &lt;eric@anholt.net&gt;
Cc: Ben Skeggs &lt;bskeggs@redhat.com&gt;
Cc: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Cc: Dave Airlie &lt;airlied@redhat.com&gt;
Cc: Peter Jones &lt;pjones@redhat.com&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>fb: for framebuffer handover don't exit the loop early.</title>
<updated>2010-02-25T04:15:12Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2010-02-25T04:05:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9fd1de52945e06ed88a440c99ca92dab74b9b33c'/>
<id>urn:sha1:9fd1de52945e06ed88a440c99ca92dab74b9b33c</id>
<content type='text'>
An offb machine has been seen in the fields which adds two
offb nodes, so continue scanning the list after removing one.

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6</title>
<updated>2009-09-30T15:03:00Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2009-09-30T15:03:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e15daf6cdf59fd76c0c5d396ccd1426567305750'/>
<id>urn:sha1:e15daf6cdf59fd76c0c5d396ccd1426567305750</id>
<content type='text'>
* 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (25 commits)
  drm/radeon/kms: Convert R520 to new init path and associated cleanup
  drm/radeon/kms: Convert RV515 to new init path and associated cleanup
  drm: fix radeon DRM warnings when !CONFIG_DEBUG_FS
  drm: fix drm_fb_helper warning when !CONFIG_MAGIC_SYSRQ
  drm/r600: fix memory leak introduced with 64k malloc avoidance fix.
  drm/kms: make fb helper work for all drivers.
  drm/radeon/r600: fix offset handling in CS parser
  drm/radeon/kms/r600: fix forcing pci mode on agp cards
  drm/radeon/kms: fix for the extra pages copying.
  drm/radeon/kms/r600: add support for vline relocs
  drm/radeon/kms: fix some bugs in vline reloc
  drm/radeon/kms/r600: clamp vram to aperture size
  drm/kms: protect against fb helper not being created.
  drm/r600: get values from the passed in IB not the copy.
  drm: create gitignore file for radeon
  drm/radeon/kms: remove unneeded master create/destroy functions.
  drm/kms: start adding command line interface using fb.
  fb: change rules for global rules match.
  drm/radeon/kms: don't require up to 64k allocations. (v2)
  drm/radeon/kms: enable dac load detection by default.
  ...

Trivial conflicts in drivers/gpu/drm/radeon/radeon_asic.h due to adding
'-&gt;vga_set_state' function pointers.
</content>
</entry>
<entry>
<title>fb: change rules for global rules match.</title>
<updated>2009-09-25T03:08:19Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2009-09-16T10:45:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f80330357284c908e1f67cc8b4d8e56a3e2f6fc6'/>
<id>urn:sha1:f80330357284c908e1f67cc8b4d8e56a3e2f6fc6</id>
<content type='text'>
Having a : should be enough 'fb:' isn't really useful
if the fb wants to a kms output ID.

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>fb: do not ignore fb_set_par errors</title>
<updated>2009-09-23T14:39:56Z</updated>
<author>
<name>Florian Tobias Schandinat</name>
</author>
<published>2009-09-22T23:47:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0fcf6ada2b8eb42d132c0846384f1299889609e3'/>
<id>urn:sha1:0fcf6ada2b8eb42d132c0846384f1299889609e3</id>
<content type='text'>
At the moment about half of the framebuffer drivers can return an error
code in fb_set_par. Until now it would be silently ignored by fbmem.c
and fbcon.c. This patch fixes fbmem.c to return the error code and
restore var on error.

But it is not clear in which video mode the device is when fb_set_par
fails.  It would be good and reasonable if it were in the old state but
there is no guarantee that this is true for all existing drivers.
Additionally print a message if a failing fb_set_par is detected in
fbmem.c or fbcon.c.

Although most errors should be caught by the previous fb_check_var some
errors can't as they are dynamic (memory allocations, ...) and can only be
detected while performing the operations which is forbidden in
fb_check_var.

This patch shouldn't have a negative impact on normal operation as all
drivers return 0 on success.  The impact in case of error depends heavily
on the driver and caller but it's expected to be better than before.

Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
Cc: Krzysztof Helt &lt;krzysztof.h1@poczta.fm&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
