firefly-linux-kernel-4.4.55.git
12 years agoto support 4.2_r1
陈辉 [Thu, 15 Nov 2012 15:49:19 +0000 (23:49 +0800)]
to support 4.2_r1

12 years agowifi: add rk29sdk_wifi_bt_gpio_control_init for usb wifi
hwg [Thu, 15 Nov 2012 12:53:49 +0000 (20:53 +0800)]
wifi: add rk29sdk_wifi_bt_gpio_control_init for usb wifi

12 years agocamera: add focus zone ioctrl id.
zyc [Thu, 15 Nov 2012 08:37:32 +0000 (16:37 +0800)]
camera: add focus zone ioctrl id.

12 years agothe function get_msc_connect_flag change to get_gadget_connect_flag
许盛飞 [Wed, 14 Nov 2012 07:44:57 +0000 (15:44 +0800)]
the function get_msc_connect_flag change to get_gadget_connect_flag

12 years agophonepad: rt3261 add speaker and headphone max gain.
宋秀杰 [Thu, 15 Nov 2012 05:56:42 +0000 (13:56 +0800)]
phonepad: rt3261 add speaker and headphone max gain.

12 years agocamera: fix struct v4l2_mbus_framefmt have not initiation
ddl [Thu, 15 Nov 2012 03:51:45 +0000 (11:51 +0800)]
camera: fix struct v4l2_mbus_framefmt have not initiation

12 years agork fb:fix NO_DUAL_DISP mode hdmi scale problem
yzq [Thu, 15 Nov 2012 03:33:18 +0000 (11:33 +0800)]
rk fb:fix NO_DUAL_DISP mode hdmi scale problem

12 years agocamera : update manual exposure in capture for ov5640
ddl [Wed, 14 Nov 2012 08:22:52 +0000 (16:22 +0800)]
camera : update manual exposure in capture for ov5640

12 years agocamera: delete some invalidate message which notice io init failed
ddl [Wed, 14 Nov 2012 08:19:26 +0000 (16:19 +0800)]
camera: delete some invalidate message which notice io init failed

12 years agocamera: invalidate the limit which scale is invalidat when scale ratio > 2, version...
ddl [Wed, 14 Nov 2012 08:18:31 +0000 (16:18 +0800)]
camera: invalidate the limit which scale is invalidat when scale ratio > 2, version v0.x.19

12 years agoi2c: fix warning: 'warning: 'p' may be used uninitialized in this function [-Wmaybe...
kfx [Wed, 14 Nov 2012 06:23:59 +0000 (14:23 +0800)]
i2c: fix warning: 'warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]'

12 years agocheck usb status when disable controller
yangkai [Wed, 14 Nov 2012 03:30:50 +0000 (11:30 +0800)]
check usb status when disable controller

12 years agork30xx: remove safety log in check_volt_correct function
chenxing [Wed, 14 Nov 2012 02:31:22 +0000 (10:31 +0800)]
rk30xx: remove safety log in check_volt_correct function

12 years agork292x sitronix: while perform direction_otation ,determine whether pdata is NULL
wuhao [Wed, 14 Nov 2012 01:55:14 +0000 (09:55 +0800)]
rk292x sitronix: while perform direction_otation ,determine whether pdata is NULL

12 years agofix fiq infinite loop when otg id change
yangkai [Tue, 13 Nov 2012 09:56:07 +0000 (17:56 +0800)]
fix fiq infinite loop when otg id change

12 years agousbhcd only add useful channel to freelist
yangkai [Tue, 13 Nov 2012 09:45:23 +0000 (17:45 +0800)]
usbhcd only add useful channel to freelist

12 years agosupport host intr transfer maxpacket more than 16
yangkai [Tue, 13 Nov 2012 09:30:44 +0000 (17:30 +0800)]
support host intr transfer maxpacket more than 16

12 years agomodify usb otg FIFO config for host perio tx
yangkai [Tue, 13 Nov 2012 09:25:01 +0000 (17:25 +0800)]
modify usb otg FIFO config for host perio tx

12 years ago1. use gadget connect status instead of msc_connect_flag; 2. reset gadget delayed...
yangkai [Tue, 13 Nov 2012 09:07:23 +0000 (17:07 +0800)]
1. use gadget connect status instead of msc_connect_flag; 2. reset gadget delayed status for setconfig

12 years agork fb: close backlight when switch_screen at mode NO_DUAL_DISP
yzq [Tue, 13 Nov 2012 08:56:43 +0000 (16:56 +0800)]
rk fb: close backlight when switch_screen at mode NO_DUAL_DISP

12 years agork3066:slove flash screen from sleep to wakeup
张晴 [Tue, 13 Nov 2012 08:49:41 +0000 (16:49 +0800)]
rk3066:slove flash screen from sleep to wakeup

12 years agork fb : fix flash screen when switch hdmi
yzq [Tue, 13 Nov 2012 08:06:34 +0000 (16:06 +0800)]
rk fb : fix flash screen when switch hdmi

12 years agobacklight:change rk29_backlight_set api for hdmi switch
yzq [Tue, 13 Nov 2012 07:39:28 +0000 (15:39 +0800)]
backlight:change rk29_backlight_set api for hdmi switch

12 years agoi2c: warning if rk610 is exist
kfx [Tue, 13 Nov 2012 03:53:27 +0000 (11:53 +0800)]
i2c: warning if rk610 is exist

e.g.
*************** WARNING ****************
i2c i2c-0: rk610 is exist, clients:
client: rk610_ctl, addr: 0x40
client: rk610_tvout, addr: 0x42
client: rk610_hdmi, addr: 0x46
client: rk610_i2c_codec, addr: 0x60
client: wm8326, addr: 0x34
****************************************

12 years agork2928 hdmi: make hdmi start later
yzq [Tue, 13 Nov 2012 03:51:16 +0000 (11:51 +0800)]
rk2928 hdmi: make hdmi start later

12 years agork2928 codec: solve music volume become very small after wakeup in rk2926
hwg [Mon, 12 Nov 2012 13:33:12 +0000 (21:33 +0800)]
rk2928 codec: solve music volume become very small after wakeup in rk2926

12 years agoIPP V1.002:fix power off bug in rk29_ipp_release
chenli [Mon, 12 Nov 2012 09:37:39 +0000 (17:37 +0800)]
IPP V1.002:fix power off bug in rk29_ipp_release

12 years agorevert v86 reported chg_ok of commit cb6f8a8f312c9ee1420a1b1afeb4b550b958f1ac and...
wuhao [Mon, 12 Nov 2012 08:06:34 +0000 (16:06 +0800)]
revert v86 reported chg_ok of commit cb6f8a8f312c9ee1420a1b1afeb4b550b958f1ac and Re reported

12 years agosupports dual camera for v86
wuhao [Mon, 12 Nov 2012 06:30:22 +0000 (14:30 +0800)]
supports dual camera for v86

12 years agophonepad: rt3261 add write reg into memory.
宋秀杰 [Mon, 12 Nov 2012 08:07:12 +0000 (16:07 +0800)]
phonepad: rt3261 add write reg into memory.

12 years agofix display size err in hdmi mode
yxj [Mon, 12 Nov 2012 06:57:49 +0000 (14:57 +0800)]
fix display size err in hdmi mode

12 years agork29 backlight;do not call rk29_backlight_set in suspend mode
yxj [Mon, 12 Nov 2012 06:49:51 +0000 (14:49 +0800)]
rk29 backlight;do not call rk29_backlight_set in suspend mode

12 years agork2928 lcdc:switch all lcdc io to gpio mode when hdmi plug in
yxj [Mon, 12 Nov 2012 01:34:49 +0000 (09:34 +0800)]
rk2928 lcdc:switch all lcdc io to gpio mode when hdmi plug in

12 years agork2928/rk30xx: disable dvfs tree debug and avs debug, same Macro as /proc/clocks
chenxing [Mon, 12 Nov 2012 07:04:47 +0000 (15:04 +0800)]
rk2928/rk30xx: disable dvfs tree debug and avs debug, same Macro as /proc/clocks

12 years agoRevert "rk30/rk2928: disable dvfs tree debug and avs debug"
chenxing [Mon, 12 Nov 2012 06:45:50 +0000 (14:45 +0800)]
Revert "rk30/rk2928: disable dvfs tree debug and avs debug"

This reverts commit d3c5f9f2f4ac1bcbbf5e51a83648f458fb327691.

12 years agork30/rk2928: disable dvfs tree debug and avs debug
chenxing [Mon, 12 Nov 2012 06:41:25 +0000 (14:41 +0800)]
rk30/rk2928: disable dvfs tree debug and avs debug

12 years agoadd to support rt5370 usb wifi
gwl [Mon, 12 Nov 2012 04:44:22 +0000 (12:44 +0800)]
add to support rt5370 usb wifi

12 years agork30: cpufreq: better support thermal throttle when benchmark
黄涛 [Mon, 12 Nov 2012 03:36:26 +0000 (11:36 +0800)]
rk30: cpufreq: better support thermal throttle when benchmark

This patch was ported from develop-3.0.8-stable commit ad324989c9f314e0ad40ce71dedca6da9c6a59fd

12 years agork2928: change ddr freq from 330M to 300M for video
hwg [Sat, 10 Nov 2012 07:17:38 +0000 (15:17 +0800)]
rk2928: change ddr freq from 330M to 300M for video

12 years agorevert lcd display of commit cb6f8a8f312c9ee1420a1b1afeb4b550b958f1ac and add lcd_YQ...
wuhao [Wed, 7 Nov 2012 10:16:43 +0000 (18:16 +0800)]
revert lcd display of  commit cb6f8a8f312c9ee1420a1b1afeb4b550b958f1ac and add lcd_YQ70CPT9160_v86.c for v86

12 years agorevert v86 sitronix_ts of commit cb6f8a8f312c9ee1420a1b1afeb4b550b958f1ac and Re...
wuhao [Wed, 7 Nov 2012 09:05:33 +0000 (17:05 +0800)]
revert v86 sitronix_ts of commit cb6f8a8f312c9ee1420a1b1afeb4b550b958f1ac and Re touchscreen control for v86

12 years agork:modify tps65910 i2c write speed from 100k to 200k
张晴 [Fri, 9 Nov 2012 10:29:40 +0000 (18:29 +0800)]
rk:modify tps65910 i2c write speed from 100k to 200k

12 years agork30: irq_base use IRQ_BOARD_BASE
黄涛 [Thu, 8 Nov 2012 06:51:00 +0000 (14:51 +0800)]
rk30: irq_base use IRQ_BOARD_BASE

12 years agork30: irqs.h add IRQ_BOARD_BASE define
黄涛 [Thu, 8 Nov 2012 06:48:58 +0000 (14:48 +0800)]
rk30: irqs.h add IRQ_BOARD_BASE define

12 years agork2928: tps65910: irq_base use IRQ_BOARD_BASE
黄涛 [Thu, 8 Nov 2012 06:48:13 +0000 (14:48 +0800)]
rk2928: tps65910: irq_base use IRQ_BOARD_BASE

12 years agork2928: irqs.h add IRQ_BOARD_BASE define
黄涛 [Thu, 8 Nov 2012 06:33:34 +0000 (14:33 +0800)]
rk2928: irqs.h add IRQ_BOARD_BASE define

12 years agoRevert "rk2928: irqs.h add IRQ_BOARD_START define"
黄涛 [Thu, 8 Nov 2012 06:26:46 +0000 (14:26 +0800)]
Revert "rk2928: irqs.h add IRQ_BOARD_START define"

This reverts commit c4642fb5aef133e08fd4e8d77c5b624b814fcb79.

12 years agork2928: irqs.h add IRQ_BOARD_START define
黄涛 [Thu, 8 Nov 2012 03:21:45 +0000 (11:21 +0800)]
rk2928: irqs.h add IRQ_BOARD_START define

12 years agork30sdk : fix rk610 core pdata error
邱建斌 [Wed, 7 Nov 2012 09:38:51 +0000 (17:38 +0800)]
rk30sdk : fix rk610 core pdata error

12 years agork610_codec : In the state of the low volume noise problem
邱建斌 [Wed, 7 Nov 2012 09:09:36 +0000 (17:09 +0800)]
rk610_codec : In the state of the low volume noise problem

12 years agofb: add sys point for dual display mode
yzq [Wed, 7 Nov 2012 08:35:47 +0000 (16:35 +0800)]
fb: add sys point for dual display mode

12 years agoM701: add is_reboot_charging function, avoid to charging display error.
zhengxing [Wed, 7 Nov 2012 04:15:32 +0000 (12:15 +0800)]
M701: add is_reboot_charging function, avoid to charging display error.

12 years agocamera: add support interpolate to 8Mega, version v0.2.0x17
ddl [Wed, 7 Nov 2012 03:53:13 +0000 (11:53 +0800)]
camera: add support interpolate to 8Mega, version v0.2.0x17

12 years agoadc-battery: add battery-power decision method when reboot the system
许盛飞 [Wed, 7 Nov 2012 03:46:01 +0000 (11:46 +0800)]
adc-battery: add battery-power decision method when reboot the system

12 years agoMerge branch 'develop-3.0' of ssh://10.10.10.29/rk/kernel into v86-develop-1106
wuhao [Wed, 7 Nov 2012 02:25:06 +0000 (10:25 +0800)]
Merge branch 'develop-3.0' of ssh://10.10.10.29/rk/kernel into v86-develop-1106

12 years agophonepad: modify HDMI suspend and resume crash, mute pad sound when insert HDMI.
宋秀杰 [Wed, 7 Nov 2012 01:11:31 +0000 (09:11 +0800)]
phonepad: modify HDMI suspend and resume crash, mute pad sound when insert HDMI.

12 years agousb wifi: disable wifi power then enable in first open
hwg [Tue, 6 Nov 2012 12:56:54 +0000 (20:56 +0800)]
usb wifi: disable wifi power then enable in first open

12 years agoMerge branch 'develop-3.0' of ssh://10.10.10.29/rk/kernel into v86-develop-1106
wuhao [Tue, 6 Nov 2012 12:17:23 +0000 (20:17 +0800)]
Merge branch 'develop-3.0' of ssh://10.10.10.29/rk/kernel into v86-develop-1106

12 years agoMerge branch 'develop-3.0' of ssh://10.10.10.29/rk/kernel into develop-3.0
hwg [Tue, 6 Nov 2012 12:05:46 +0000 (20:05 +0800)]
Merge branch 'develop-3.0' of ssh://10.10.10.29/rk/kernel into develop-3.0

12 years agousb wifi: add rk29sdk_wifi_bt_gpio_control_init
hwg [Tue, 6 Nov 2012 12:05:25 +0000 (20:05 +0800)]
usb wifi: add rk29sdk_wifi_bt_gpio_control_init

12 years agoMerge branch 'develop-3.0' of ssh://10.10.10.29/rk/kernel into v86-develop-1106
wuhao [Tue, 6 Nov 2012 10:22:46 +0000 (18:22 +0800)]
Merge branch 'develop-3.0' of ssh://10.10.10.29/rk/kernel into v86-develop-1106

12 years agork2928: fixed 'WARNING: modpost: Found 1 section mismatch(es).'
kfx [Tue, 6 Nov 2012 08:58:07 +0000 (16:58 +0800)]
rk2928: fixed 'WARNING: modpost: Found 1 section mismatch(es).'

12 years agorevert the wifi power control of commit cb6f8a8f312c9ee1420a1b1afeb4b550b958f1ac
wuhao [Tue, 6 Nov 2012 08:28:31 +0000 (16:28 +0800)]
revert the wifi power control of commit cb6f8a8f312c9ee1420a1b1afeb4b550b958f1ac

12 years agoadd rk2926_v86_defconfig for v86
wuhao [Tue, 6 Nov 2012 07:35:13 +0000 (15:35 +0800)]
add rk2926_v86_defconfig for v86

12 years agofix : ddr and logic voltage control opposite for v86
wuhao [Tue, 6 Nov 2012 07:34:19 +0000 (15:34 +0800)]
fix : ddr and logic voltage control opposite for v86

12 years agousb wifi: support gpio power control
hwg [Tue, 6 Nov 2012 07:24:39 +0000 (15:24 +0800)]
usb wifi: support gpio power control

12 years agocamera: add svga fps info in rk_camera.c
zyc [Tue, 6 Nov 2012 03:29:24 +0000 (11:29 +0800)]
camera: add svga fps info in rk_camera.c

12 years agork2928 defconfig: v86(v1.1) support
kfx [Tue, 6 Nov 2012 02:40:53 +0000 (10:40 +0800)]
rk2928 defconfig: v86(v1.1) support

12 years agoadd gt811 board config for v86
wuhao [Mon, 5 Nov 2012 11:33:11 +0000 (19:33 +0800)]
add gt811 board config for v86

12 years agoadd ft5x0x for v86
wuhao [Mon, 5 Nov 2012 11:30:03 +0000 (19:30 +0800)]
add ft5x0x for v86

12 years agofor rk2928 v86
wuhao [Mon, 5 Nov 2012 10:44:40 +0000 (18:44 +0800)]
for rk2928 v86

12 years agork2928_defconfig: 'pmic: Initialized first && charge: set default parameter
kfx [Mon, 5 Nov 2012 10:05:55 +0000 (18:05 +0800)]
rk2928_defconfig: 'pmic: Initialized first && charge: set default parameter

12 years agorga: make armv7_va_to_pa static
黄涛 [Mon, 5 Nov 2012 09:56:19 +0000 (17:56 +0800)]
rga: make armv7_va_to_pa static

12 years agor2926_tb_defconfig: rk2928-l support
kfx [Mon, 5 Nov 2012 09:04:55 +0000 (17:04 +0800)]
r2926_tb_defconfig: rk2928-l support

12 years agocamera :invalidate useless series of sp0838 and sp2518
zyc [Mon, 5 Nov 2012 09:03:56 +0000 (17:03 +0800)]
camera :invalidate useless series of sp0838 and sp2518

12 years agork2928 hdmi: fix hdmi switch status
yzq [Mon, 5 Nov 2012 08:00:09 +0000 (16:00 +0800)]
rk2928 hdmi: fix hdmi switch status

12 years agork fb: modify drivers/video/rockchip/Kconfig
yxj [Mon, 5 Nov 2012 02:08:17 +0000 (10:08 +0800)]
rk fb: modify  drivers/video/rockchip/Kconfig

12 years agork2928 defconfig: fix lcd_aclk(15M-->150M)
kfx [Mon, 5 Nov 2012 02:57:03 +0000 (10:57 +0800)]
rk2928 defconfig: fix lcd_aclk(15M-->150M)

12 years agork2928 defconfig: set OTG_DRVVBUS mode, if usb_otg_drv=-1
kfx [Mon, 5 Nov 2012 01:48:31 +0000 (09:48 +0800)]
rk2928 defconfig: set OTG_DRVVBUS mode, if usb_otg_drv=-1

12 years agork3066b lcdc: fix some warning
yxj [Sat, 3 Nov 2012 08:51:32 +0000 (16:51 +0800)]
rk3066b lcdc: fix some warning

12 years agork3066b lcdc: turn on frame start interrupt after all lcdc register resumed
yxj [Sat, 3 Nov 2012 08:43:48 +0000 (16:43 +0800)]
rk3066b lcdc: turn on frame start interrupt after all lcdc register resumed

12 years agocamera ov5640: fix sensor_qsxga stream is off after sensor_720p
ddl [Sat, 3 Nov 2012 08:46:56 +0000 (16:46 +0800)]
camera ov5640: fix sensor_qsxga stream is off after sensor_720p

12 years agobacklight: add get_backlight_status api for fb backlight ctrl
yzq [Sat, 3 Nov 2012 08:18:28 +0000 (16:18 +0800)]
backlight: add get_backlight_status api for fb backlight ctrl

12 years agork2928 lcdc: freee gpio before swith to RGB IO
yxj [Sat, 3 Nov 2012 08:07:38 +0000 (16:07 +0800)]
rk2928 lcdc: freee gpio before swith to RGB IO

12 years agork2928: update rk2928_defconfig: camera: support: ov2659, gc0308, hi704
kfx [Sat, 3 Nov 2012 07:28:56 +0000 (15:28 +0800)]
rk2928: update rk2928_defconfig: camera: support: ov2659, gc0308, hi704

12 years agoadc_factory: return -EINVAL if fail to register and init
许盛飞 [Sat, 3 Nov 2012 03:44:19 +0000 (11:44 +0800)]
adc_factory: return -EINVAL if fail to register and init

12 years agocamera:add interpolation for gc0308 and hi253.
zyc [Sat, 3 Nov 2012 02:29:54 +0000 (10:29 +0800)]
camera:add interpolation for gc0308 and hi253.

12 years agork:pmu tps65910:set dcdc in pwm mode,and set dcdc in pfm mode when enter sleep
张晴 [Sat, 3 Nov 2012 02:20:12 +0000 (10:20 +0800)]
rk:pmu tps65910:set dcdc in pwm mode,and set dcdc in pfm mode  when enter sleep

12 years agophonepad: update rt3261 to V1.3, you must set some mode in your board.
宋秀杰 [Fri, 2 Nov 2012 05:31:11 +0000 (13:31 +0800)]
phonepad: update rt3261 to V1.3, you must set some mode in your board.

12 years agocamera : fix careless erro in rk_camera.c.
zyc [Fri, 2 Nov 2012 03:44:55 +0000 (11:44 +0800)]
camera : fix careless erro in rk_camera.c.

12 years agork: sram: fix gcc warning: extra tokens at end of #else directive and fix for rk3066b
黄涛 [Thu, 1 Nov 2012 09:33:13 +0000 (17:33 +0800)]
rk: sram: fix gcc warning: extra tokens at end of #else directive and fix for rk3066b

12 years agoMerge remote-tracking branch 'stable/linux-3.0.y' into develop-3.0
黄涛 [Thu, 1 Nov 2012 09:13:08 +0000 (17:13 +0800)]
Merge remote-tracking branch 'stable/linux-3.0.y' into develop-3.0

Conflicts:
Makefile

12 years agoRevert "gpio debug"
yzq [Thu, 1 Nov 2012 06:18:06 +0000 (14:18 +0800)]
Revert "gpio debug"

This reverts commit 861ef61d90ad822dd60f64beaf110e0a4e18603d.

12 years agork3066b m701: change stb timing to fix flash screen when resume
yzq [Thu, 1 Nov 2012 04:20:59 +0000 (12:20 +0800)]
rk3066b m701: change stb timing to  fix flash screen when resume

12 years agogpio debug
yzq [Wed, 10 Oct 2012 01:15:08 +0000 (09:15 +0800)]
gpio debug

12 years agoLinux 3.0.50
Greg Kroah-Hartman [Wed, 31 Oct 2012 16:51:59 +0000 (09:51 -0700)]
Linux 3.0.50

12 years agodrm/i915: no lvds quirk for Zotac ZDBOX SD ID12/ID13
Sjoerd Simons [Fri, 22 Jun 2012 07:43:07 +0000 (09:43 +0200)]
drm/i915: no lvds quirk for Zotac ZDBOX SD ID12/ID13

commit 9756fe38d10b2bf90c81dc4d2f17d5632e135364 upstream.

This box claims to have an LVDS interface but doesn't
actually have one.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 years agostaging: comedi: amplc_pc236: fix invalid register access during detach
Ian Abbott [Wed, 3 Oct 2012 15:25:17 +0000 (16:25 +0100)]
staging: comedi: amplc_pc236: fix invalid register access during detach

commit aaeb61a97b7159ebe30b18a422d04eeabfa8790b upstream.

`pc236_detach()` is called by the comedi core if it attempted to attach
a device and failed.  `pc236_detach()` calls `pc236_intr_disable()` if
the comedi device private data pointer (`devpriv`) is non-null.  This
test is insufficient as `pc236_intr_disable()` accesses hardware
registers and the attach routine may have failed before it has saved
their I/O base addresses.

Fix it by checking `dev->iobase` is non-zero before calling
`pc236_intr_disable()` as that means the I/O base addresses have been
saved and the hardware registers can be accessed.  It also implies the
comedi device private data pointer is valid, so there is no need to
check it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 years agox86, mm: Undo incorrect revert in arch/x86/mm/init.c
Yinghai Lu [Thu, 25 Oct 2012 22:45:26 +0000 (15:45 -0700)]
x86, mm: Undo incorrect revert in arch/x86/mm/init.c

commit f82f64dd9f485e13f29f369772d4a0e868e5633a upstream.

Commit

    844ab6f9 x86, mm: Find_early_table_space based on ranges that are actually being mapped

added back some lines back wrongly that has been removed in commit

    7b16bbf97 Revert "x86/mm: Fix the size calculation of mapping tables"

remove them again.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/CAE9FiQW_vuaYQbmagVnxT2DGsYc=9tNeAbdBq53sYkitPOwxSQ@mail.gmail.com
Acked-by: Jacob Shin <jacob.shin@amd.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 years agox86, mm: Find_early_table_space based on ranges that are actually being mapped
Jacob Shin [Wed, 24 Oct 2012 19:24:44 +0000 (14:24 -0500)]
x86, mm: Find_early_table_space based on ranges that are actually being mapped

commit 844ab6f993b1d32eb40512503d35ff6ad0c57030 upstream.

Current logic finds enough space for direct mapping page tables from 0
to end. Instead, we only need to find enough space to cover mr[0].start
to mr[nr_range].end -- the range that is actually being mapped by
init_memory_mapping()

This is needed after 1bbbbe779aabe1f0768c2bf8f8c0a5583679b54a, to address
the panic reported here:

  https://lkml.org/lkml/2012/10/20/160
  https://lkml.org/lkml/2012/10/21/157

Signed-off-by: Jacob Shin <jacob.shin@amd.com>
Link: http://lkml.kernel.org/r/20121024195311.GB11779@jshin-Toonie
Tested-by: Tom Rini <trini@ti.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>