]> git.baikalelectronics.ru Git - kernel.git/commit
m68k/atari - atafb: convert allocation of fb ram to new interface
authorMichael Schmitz <schmitzmic@gmail.com>
Mon, 31 Mar 2014 08:06:06 +0000 (21:06 +1300)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 26 May 2014 20:41:24 +0000 (22:41 +0200)
commit0cd947d5140a89dbe299010ec2e587600efba6ad
tree488f5a1c7f5958e7f06acb739f6b00d0ae40bd52
parent259308a5845731c52e688e2bf939627f57b9ad1e
m68k/atari - atafb: convert allocation of fb ram to new interface

The new atari_stram_alloc interface returns kernel virtual addresses
even if the kernel runs in FastRAM. These addresses are not
guaranteed to be identical with the physical addresses. Since ST-RAM
mappings have not been set up by mem_init, virt_to_phys() and its
cousin do not work and the atari_stram_to_phys() etc. helpers must
be used to determine physical addresses.

fb.fix->smem_start needs physical addresses, fb.par->screen_base
needs virtual addresses. Take care of the virt-to-phys conversion
both on fb init and par changes.

Signed-off-by: Michael Schmitz <schmitz@debian.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/video/fbdev/atafb.c