Commit Graph

270623 Commits

Author SHA1 Message Date
xbw
72d076d4e3 MT6620 wifi: mt6620 use 2.8v power. 2013-02-22 09:20:58 +08:00
xbw
46d8e4e587 SDMMC IO voltage:
Modify a numerical definition of small flaws.Not suitable for the use of the original property is double.
  Please modify your own board-xxx-sdmmc-config.c youself, Reference to this example.
2013-02-22 09:11:07 +08:00
xbw
3a52ad0c5f SDMMC-RK31XX:
Eliminate the problem of card as unidentified during the open-device or insert-removal in suspend-resume.
2013-02-21 19:09:29 +08:00
xbw
cca4647d97 SDMMC:
For example, how to modify the voltage of sdmmc0-gpio group in RK CPU.
Please modify your board-xxx-sdmmc-config.c youself , if you want to use 1.8V for SDMMC0-PIN.
2013-02-21 19:01:55 +08:00
xbw
877a539472 SDMMC:
add the control for the voltage of sdmmc0-pin in RK-host gpio group.
2013-02-21 18:58:19 +08:00
黄涛
974cc09a3e rk: rm video_state.c which replace by ddr_freq.c 2013-02-21 18:30:03 +08:00
yzq
5902ccc576 hdmi: set hdmi probe later than codec,
fix codec not close when system start with hdmi plug
2013-02-21 17:28:53 +08:00
xxx
77ab6aeb99 remove printk in last updateing 2013-02-21 17:25:46 +08:00
xxx
e01c79a6b5 dvfs support list regulator volt 2013-02-21 17:17:49 +08:00
hjc
9e59fa4f79 rk3168_86v: deconfig add SDCARD_DET_FROM_GPIO and watchdog 2013-02-21 17:00:55 +08:00
hhb
bb7e7b9fe4 add rgb2mipi display drivers for tc358768 and ssd2828 2013-02-21 15:45:14 +08:00
yangkai
4b955ffded EHCI&HSIC support 2013-02-21 15:01:21 +08:00
yxj
b841c569c6 rk3066b lcdc:support 1.8V io 2013-02-21 14:46:04 +08:00
yxj
7543702e19 rk3066b lcdc:enable color key for win1,this will be used in pcba for camera test 2013-02-21 14:08:29 +08:00
yxj
20b183557b rk fb:fix bug for one lcdc dual display 2013-02-21 11:53:48 +08:00
yxj
0ef233d715 rk3188 lcdc:modify DBG 2013-02-21 11:53:48 +08:00
kfx
ebc5e698fd iomux: default mode: uart2&uart3: add ctsn&rtsn 2013-02-21 09:12:01 +08:00
hhb
d883f0096e rk_gps: fix bug when disable gps aclk 2013-02-20 15:13:14 +08:00
yzq
465d9da7df it66121 hdmi: remove debug message 2013-02-20 09:16:09 +08:00
yxj
e76fe0f87b LR097 defconfig:add camera GC2035 SP2518 support 2013-02-19 14:34:47 +08:00
yxj
941f5446a1 board LR097:update camera,charger,ddr freq 2013-02-19 14:31:26 +08:00
yxj
bfbe073cf7 board LR097:ddr 533MHZ 2013-02-19 10:30:05 +08:00
yxj
bef5ab1ef8 rk3188 lcdc:add alpah config 2013-02-19 10:30:05 +08:00
yxj
9acd972b65 rk3188 lcdc:support set fps by sys 2013-02-19 10:30:05 +08:00
hjc
7ff013247a rk3168_86v: front camera gc0308 turn upside down 2013-02-19 10:06:13 +08:00
hjc
1616511599 rk3168_86v: deconfig delete HDMI 2013-02-19 09:56:51 +08:00
邱建斌
16478d8a39 rk610 codec : The headphone playback the probability of loss of a channel 2013-02-18 20:00:54 +08:00
邱建斌
af88ef1a9d rt5631 : fix RT5631 high frequency indicators 2013-02-18 19:45:18 +08:00
luowei
7782f5cb2b add light sensor cm3232 support 2013-02-18 16:24:05 +08:00
hwg
5f6021f216 wifi: update mt5931 driver to 2.09 2013-02-18 14:29:18 +08:00
黄涛
14d96d73a2 Merge remote-tracking branch 'stable/linux-3.0.y' into develop-3.0
Merge v3.0.65
Conflicts:
	Makefile
	drivers/net/wireless/ath/ath9k/beacon.c
	drivers/net/wireless/ath/ath9k/htc_hst.c
2013-02-18 12:31:44 +08:00
luowei
fe1ae7cd74 add sensor version info 2013-02-18 11:53:27 +08:00
黄涛
ce1addf6e4 Merge remote-tracking branch 'aosp/android-3.0' into develop-3.0
Conflicts:
	drivers/net/wireless/bcmdhd/Makefile
	drivers/net/wireless/bcmdhd/dhd.h
	drivers/net/wireless/bcmdhd/dhd_common.c
	drivers/net/wireless/bcmdhd/dhd_linux.c
	drivers/net/wireless/bcmdhd/include/epivers.h
	drivers/net/wireless/bcmdhd/wl_cfg80211.c
	drivers/net/wireless/bcmdhd/wl_cfgp2p.c
2013-02-18 11:08:41 +08:00
黄涛
2bc313b36c rk3188: Kconfig: enable RK_SRAM_DMA 2013-02-18 10:46:05 +08:00
黄涛
143fd7744c rk3188: Kconfig: depends on ARCH_RK3188 2013-02-18 10:32:41 +08:00
Greg Kroah-Hartman
fe34c843d9 Linux 3.0.65 v3.0.65 2013-02-17 10:46:34 -08:00
Alexander Duyck
f4dc0e6ec9 igb: Remove artificial restriction on RQDPC stat reading
commit ae1c07a6b7 upstream.

For some reason the reading of the RQDPC register was being artificially
limited to 4K.  Instead of limiting the value we should read the value and
add the full amount.  Otherwise this can lead to a misleading number of
dropped packets when the actual value is in fact much higher.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Jeff Pieper   <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Vinson Lee <vlee@twitter.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-17 10:46:20 -08:00
Rafael J. Wysocki
e862f5583a PCI/PM: Clean up PME state when removing a device
commit 249bfb83cf upstream.

Devices are added to pci_pme_list when drivers use pci_enable_wake()
or pci_wake_from_d3(), but they aren't removed from the list unless
the driver explicitly disables wakeup.  Many drivers never disable
wakeup, so their devices remain on the list even after they are
removed, e.g., via hotplug.  A subsequent PME poll will oops when
it tries to touch the device.

This patch disables PME# on a device before removing it, which removes
the device from pci_pme_list.  This is safe even if the device never
had PME# enabled.

This oops can be triggered by unplugging a Thunderbolt ethernet adapter
on a Macbook Pro, as reported by Daniel below.

[bhelgaas: changelog]
Reference: http://lkml.kernel.org/r/CAMVG2svG21yiM1wkH4_2pen2n+cr2-Zv7TbH3Gj+8MwevZjDbw@mail.gmail.com
Reported-and-tested-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-17 10:46:20 -08:00
Jan Beulich
3339af37f3 x86/xen: don't assume %ds is usable in xen_iret for 32-bit PVOPS.
commit 13d2b4d11d upstream.

This fixes CVE-2013-0228 / XSA-42

Drew Jones while working on CVE-2013-0190 found that that unprivileged guest user
in 32bit PV guest can use to crash the > guest with the panic like this:

-------------
general protection fault: 0000 [#1] SMP
last sysfs file: /sys/devices/vbd-51712/block/xvda/dev
Modules linked in: sunrpc ipt_REJECT nf_conntrack_ipv4 nf_defrag_ipv4
iptable_filter ip_tables ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6
xt_state nf_conntrack ip6table_filter ip6_tables ipv6 xen_netfront ext4
mbcache jbd2 xen_blkfront dm_mirror dm_region_hash dm_log dm_mod [last
unloaded: scsi_wait_scan]

Pid: 1250, comm: r Not tainted 2.6.32-356.el6.i686 #1
EIP: 0061:[<c0407462>] EFLAGS: 00010086 CPU: 0
EIP is at xen_iret+0x12/0x2b
EAX: eb8d0000 EBX: 00000001 ECX: 08049860 EDX: 00000010
ESI: 00000000 EDI: 003d0f00 EBP: b77f8388 ESP: eb8d1fe0
 DS: 0000 ES: 007b FS: 0000 GS: 00e0 SS: 0069
Process r (pid: 1250, ti=eb8d0000 task=c2953550 task.ti=eb8d0000)
Stack:
 00000000 0027f416 00000073 00000206 b77f8364 0000007b 00000000 00000000
Call Trace:
Code: c3 8b 44 24 18 81 4c 24 38 00 02 00 00 8d 64 24 30 e9 03 00 00 00
8d 76 00 f7 44 24 08 00 00 02 80 75 33 50 b8 00 e0 ff ff 21 e0 <8b> 40
10 8b 04 85 a0 f6 ab c0 8b 80 0c b0 b3 c0 f6 44 24 0d 02
EIP: [<c0407462>] xen_iret+0x12/0x2b SS:ESP 0069:eb8d1fe0
general protection fault: 0000 [#2]
---[ end trace ab0d29a492dcd330 ]---
Kernel panic - not syncing: Fatal exception
Pid: 1250, comm: r Tainted: G      D    ---------------
2.6.32-356.el6.i686 #1
Call Trace:
 [<c08476df>] ? panic+0x6e/0x122
 [<c084b63c>] ? oops_end+0xbc/0xd0
 [<c084b260>] ? do_general_protection+0x0/0x210
 [<c084a9b7>] ? error_code+0x73/
-------------

Petr says: "
 I've analysed the bug and I think that xen_iret() cannot cope with
 mangled DS, in this case zeroed out (null selector/descriptor) by either
 xen_failsafe_callback() or RESTORE_REGS because the corresponding LDT
 entry was invalidated by the reproducer. "

Jan took a look at the preliminary patch and came up a fix that solves
this problem:

"This code gets called after all registers other than those handled by
IRET got already restored, hence a null selector in %ds or a non-null
one that got loaded from a code or read-only data descriptor would
cause a kernel mode fault (with the potential of crashing the kernel
as a whole, if panic_on_oops is set)."

The way to fix this is to realize that the we can only relay on the
registers that IRET restores. The two that are guaranteed are the
%cs and %ss as they are always fixed GDT selectors. Also they are
inaccessible from user mode - so they cannot be altered. This is
the approach taken in this patch.

Another alternative option suggested by Jan would be to relay on
the subtle realization that using the %ebp or %esp relative references uses
the %ss segment.  In which case we could switch from using %eax to %ebp and
would not need the %ss over-rides. That would also require one extra
instruction to compensate for the one place where the register is used
as scaled index. However Andrew pointed out that is too subtle and if
further work was to be done in this code-path it could escape folks attention
and lead to accidents.

Reviewed-by: Petr Matousek <pmatouse@redhat.com>
Reported-by: Petr Matousek <pmatouse@redhat.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-17 10:46:20 -08:00
Mel Gorman
ec3918604c x86/mm: Check if PUD is large when validating a kernel address
commit 0ee364eb31 upstream.

A user reported the following oops when a backup process reads
/proc/kcore:

 BUG: unable to handle kernel paging request at ffffbb00ff33b000
 IP: [<ffffffff8103157e>] kern_addr_valid+0xbe/0x110
 [...]

 Call Trace:
  [<ffffffff811b8aaa>] read_kcore+0x17a/0x370
  [<ffffffff811ad847>] proc_reg_read+0x77/0xc0
  [<ffffffff81151687>] vfs_read+0xc7/0x130
  [<ffffffff811517f3>] sys_read+0x53/0xa0
  [<ffffffff81449692>] system_call_fastpath+0x16/0x1b

Investigation determined that the bug triggered when reading
system RAM at the 4G mark. On this system, that was the first
address using 1G pages for the virt->phys direct mapping so the
PUD is pointing to a physical address, not a PMD page.

The problem is that the page table walker in kern_addr_valid() is
not checking pud_large() and treats the physical address as if
it was a PMD.  If it happens to look like pmd_none then it'll
silently fail, probably returning zeros instead of real data. If
the data happens to look like a present PMD though, it will be
walked resulting in the oops above.

This patch adds the necessary pud_large() check.

Unfortunately the problem was not readily reproducible and now
they are running the backup program without accessing
/proc/kcore so the patch has not been validated but I think it
makes sense.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.coM>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/20130211145236.GX21389@suse.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-17 10:46:20 -08:00
Cody Xie
7ef606d362 rk3188 ds1006h : boot logo use linux default 2013-02-16 11:28:07 +08:00
Cody Xie
7850abfc46 rk3188 lr097: defconfig add support charger display 2013-02-15 16:31:33 +08:00
Cody Xie
a2d53de557 rk3188 ds1006h : do no invoke act8846_device_shutdown when shutdown without charger pluged in.
this would cause tablet cannot boot while plug in charger
                 and it can boot normally by press power button
2013-02-15 16:22:45 +08:00
Cody Xie
7747ba5770 rk3188 ds1006h: defconfig add support usb uart and charger display 2013-02-15 15:53:00 +08:00
Greg Kroah-Hartman
54ea5b40f0 Linux 3.0.64 v3.0.64 2013-02-14 10:50:09 -08:00
Ian Campbell
7406f4230c netback: correct netbk_tx_err to handle wrap around.
[ Upstream commit b9149729eb ]

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-14 10:47:45 -08:00
Ian Campbell
1d08d86d53 xen/netback: free already allocated memory on failure in xen_netbk_get_requests
[ Upstream commit 4cc7c1cb7b ]

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-14 10:47:40 -08:00
Matthew Daley
f0457844e6 xen/netback: don't leak pages on failure in xen_netbk_tx_check_gop.
[ Upstream commit 7d5145d8eb ]

Signed-off-by: Matthew Daley <mattjd@gmail.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-14 10:47:37 -08:00
Ian Campbell
2af567a11d xen/netback: shutdown the ring if it contains garbage.
[ Upstream commit 48856286b6 ]

A buggy or malicious frontend should not be able to confuse netback.
If we spot anything which is not as it should be then shutdown the
device and don't try to continue with the ring in a potentially
hostile state. Well behaved and non-hostile frontends will not be
penalised.

As well as making the existing checks for such errors fatal also add a
new check that ensures that there isn't an insane number of requests
on the ring (i.e. more than would fit in the ring). If the ring
contains garbage then previously is was possible to loop over this
insane number, getting an error each time and therefore not generating
any more pending requests and therefore not exiting the loop in
xen_netbk_tx_build_gops for an externded period.

Also turn various netdev_dbg calls which no precipitate a fatal error
into netdev_err, they are rate limited because the device is shutdown
afterwards.

This fixes at least one known DoS/softlockup of the backend domain.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-14 10:47:37 -08:00
Nithin Nayak Sujir
01cc083b97 tg3: Fix crc errors on jumbo frame receive
[ Upstream commit daf3ec688e ]

TG3_PHY_AUXCTL_SMDSP_ENABLE/DISABLE macros do a blind write to the phy
auxiliary control register and overwrite the EXT_PKT_LEN (bit 14) resulting
in intermittent crc errors on jumbo frames with some link partners. Change
the code to do a read/modify/write.

Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-14 10:47:37 -08:00