aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2010-09-02Add hardware memory driver to kerneljoakim
This driver provides a way to allocate contiguous system memory which can be used by hardware. Mcde has been modified in order to take advantage of hwmem. ST-Ericsson ID: WP270489 Signed-off-by: Joakim Landberg <joakim.landberg@stericsson.com> Change-Id: I5bf22754a343f8ba3dceb6305ce780f6e1a8b379 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4205 Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
2010-09-02Took the all the patches for pmem from the android branch:Robert Marklund
pmem: Add pmem driver Signed-off-by: Rebecca Schultz <rschultz@google.com> pmem: Use the thread group leader insted of the current thread. Instead of keeping track of the current thread, use the thread group leader Signed-off-by: Rebecca Schultz <rschultz@google.com> pmem: Add some apis to reference and flush pmem files by file struct The api to refer to pmem files by fd should be depricated, it can cause problems if a processes fd table changes while the kernel is processing data in a pmem file. This change adds the safer api. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> pmem: Remove unused depricated fd api to pmem. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> pmem: Remove error message when calling get_pmem_addr This call is used from the mdp driver to determine if the memory is in pmem or in the fb. We will encounter this case during normal operation so this error message should be removed. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> pmem: Add include sched.h to fix compile errors Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> pmem: remove HW3D_* ioctls Signed-off-by: Dima Zavin <dima@android.com> pmem: Expose is_pmem_file to the in-kernel users. Signed-off-by: Dima Zavin <dima@android.com> pmem: Make the exposed functions be noops if CONFIG_ANDROID_PMEM is not set. Signed-off-by: Dima Zavin <dima@android.com> misc: pmem: don't flush if file was opened with O_SYNC Change-Id: I067218658a0d7f7ecc1fe73e9ff6b0c3b3054653 Signed-off-by: Dima Zavin <dima@android.com> pmem: Add cache flush ioctl for pmem buffers Change-Id: I9156bad829e8c65087f122b48cc57638902fab12 Signed-off-by: Dima Zavin <dima@android.com> WP254615 [3/3] android pmem updates Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> pmem: updated after dmac api changes pmem: disable PMEM_DEBUG Modified pmem_mmap() to enable mapping the same memory area from two different processes. The data coherency in the memory area needs to be handled by the processes. Change-Id: If6b39302493025b4b4f6762a7dc6ea469af42200 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2949 Reviewed-by: Paramanand SINGH <paramanand.singh@stericsson.com> Reviewed-by: Mian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com> Tested-by: Paramanand SINGH <paramanand.singh@stericsson.com> Reviewed-by: Pankaj SEN <pankaj.sen@stericsson.com> Tested-by: Pankaj SEN <pankaj.sen@stericsson.com> Reviewed-by: Prashanth B P <prashanth.bp@stericsson.com> Tested-by: Prashanth B P <prashanth.bp@stericsson.com> Reviewed-by: Thierry STRUDEL <thierry.strudel@stericsson.com> PMEM: fixed cache clean issue Initial backport of STE specific implementation of PMEM_CACHE_CLEAN from 2.6.29 to 2.6.34 was not cleaning L1 cache while requested. Change-Id: Ieebda59fd7064e59567f48efcc893554b5c1d0f4 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2987 Reviewed-by: Pankaj SEN <pankaj.sen@stericsson.com> Tested-by: Pankaj SEN <pankaj.sen@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Fixed the PMEM_CACHE_CLEAN code. There was a minor mistake in previous change http://gerrit.lud.stericsson.com/gerrit/2987 Change-Id: I97d36fc9ba9187822081df926c916507602451e9 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3037 Reviewed-by: Paramanand SINGH <paramanand.singh@stericsson.com> Tested-by: Paramanand SINGH <paramanand.singh@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Fixed devices file to new pmem imp. More fixes for pmem init, and removed spaces. Change-Id: I8f2cb02ba3263f46945491580d7681c712c067a1 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4104 Tested-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
2010-09-02MCDE Fixes: Added http://gerrit.lud.stericsson.com/gerrit/#change,3792 ↵Robert Marklund
patchset Added patch set: http://gerrit.lud.stericsson.com/gerrit/#change,3751 Enabled single buffered fb in config. Change-Id: I59ed2dcd1d45f896177f0f3be425b158f03fd0ee Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4097 Tested-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
2010-09-02Removed executable from few headers, solving rpmlint warningsRobert Rosengren
Change-Id: Id16f17c433b884364bfe930a1c06fca8de08e2d4 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3513 Reviewed-by: Johann DISCHLER <johann.xx.dischler@stericsson.com> Tested-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
2010-09-02Removed pmem from headers, solving build error in kernel-headers packageRobert Rosengren
Change-Id: Ied16dfe0b0054cbcaae29ec4043b250234053e24 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3511 Reviewed-by: Johann DISCHLER <johann.xx.dischler@stericsson.com> Tested-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
2010-09-02HDMI and AV8100: new featuresPer Persson
* HDMI api, including EDID, CEC, INFOFRAME, audio coniguration, aes key handling, event support. * Automatic detection and handling of av8100 chip version 1 and 2. * Support for av8100/mcde hw trig method using I2SDAT3 (menuconfig). ST Ericsson Change-Id: WP264235 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2120 Reviewed-by: Dan JOHANSSON <dan.johansson@stericsson.com> Tested-by: Per PERSSON <per.xb.persson@stericsson.com> Reviewed-by: Marcel TUNNISSEN <marcel.tuennissen@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: Ic205e046988fff7a5d49ae3091559d1fd76768d2 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2841
2010-09-02MCDE: V-sync on main and sub display using DSI BTADan Johansson
* V-sync support for both primary and secondary display. * V-sync is disabled by default. It is enabled in menuconfig (System Type -> Display selection -> Enable v-sync for primary / secondary display). * DSI HS clock is set to 840 MHz, DSI esq clock 19.2 MHz. * Enables VAUX1 if startup graphics is enabled. ST Ericsson Change-Id: WP264234 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2154 Tested-by: Dan JOHANSSON <dan.johansson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I47f72cb9449e08f089f6bdb25988bd9958644899 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2809
2010-09-02MCDE: This patch fixes the issue with display shift on the main display.Dan Johansson
ST-Ericsson ID: 264841 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/1896 Tested-by: Dan JOHANSSON <dan.johansson@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I183b1e8e84732bd2052c6af8029c5dfcf252e9ad Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2805 Reviewed-by: Dan JOHANSSON <dan.johansson@stericsson.com>
2010-09-02abx500 kmalloc and doc bugfixMattias Wallin
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/1835 Tested-by: Mattias WALLIN <mattias.wallin@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I9de57eec90220bfbfc6f278dc7899ebc01a08d1f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2636 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-09-02MFD: AB5500 core driverMattias Wallin
This adds a core driver for the AB5500 mixed-signal circuit found in the ST-Ericsson U5500 platform. This driver is a singleton proxy for all access to AB5500 sub functionality drivers which can be added on top of this one: RTC, regulators, battery, vibrator, LEDs and ALSA codec. Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/499 Reviewed-by: Mattias NILSSON <mattias.i.nilsson@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: Iff82184cb00824230708bc4388983805531523b7 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2634 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-09-02Adding tee driver to kernel.Shujuan Chen
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I17069b327d6a07963a3a483b70b5439655dccf24 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2540 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-09-02MCDE: Supports new HDMI featuresJimmy Rubin
This patch does the following: * Dynamic resolution change (HDMI and TV-out) * Dynamic change of rotation (Main display) * Dynamic change to 24 and 32 bpp (RGB888, RGBA8888, RGBX8888) * HDMI stability improvements * Removes Framebuffer_console for V.20 and HREF+. * Support for disabling display initialization if u-boot supports startup graphics * Removes backlight code, depends on led api * Moves PRCMU settings to prcmu_fw.c ST Ericsson Change-Id: WP259361 Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I68fc0857442dee2bedb849996c060a179350b712 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2537 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-09-02MCDE: Supports new HDMI featuresJimmy Rubin
This patch does the following: * Dynamic resolution change (HDMI and TV-out) * Dynamic change of rotation (Main display) * Dynamic change to 24 and 32 bpp (RGB888, RGBA8888, RGBX8888) * HDMI stability improvements * Removes Framebuffer_console for V.20 and HREF+. * Support for disabling display initialization if u-boot supports startup graphics * Adds prcmu handling from the mcde driver ST Ericsson Change-Id: WP259361 Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I37e91d49f1550a3ecd041d4ddf67ce57e086772c Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2536 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-09-02MFD: AB3550 core updated against mainlineMattias Wallin
This patch aligns the internal 2.6.29 tree with what has been submitted to mainline for driver ab3550-core. It also adds the abx500 interface needed by ab3550 and later ab5500. Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I76373580a36462dd08cf11daa6b0813ab35a1c52 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2423 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-09-02bu21013:Coverity fix for Dual touch controllers supportNaveen Kumar Gaddipati
Fixed the coverity issues in bu21013 driver. ST-Ericsson ID: WP 257134 Signed-off-by: Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/801 Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: Ia1064ddfcc678c6945f6895993f7d5dcb816e129 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2396 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-09-02bu21013: Driver for new dual touch controllers supportNaveen Kumar Gaddipati
Adding bu21013 dual touch controllers driver and support for it in mach-ux500. ST-Ericsson ID: WP 257134 Signed-off-by: Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/413 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: If084c45539cd18982ddf210cf2b80be2e8da4dd3 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2390
2010-09-02ARM: pl011 baudrate precision fixJerzy Kasenberg
Settings of baudrate divisor registers (IBRD, FBRD) were always rounded down. Now they can be rounded up if it could make better precision. This patch also fixes white spaces. ST-Ericsson ID: ER260310 Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com> Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/725 Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Tested-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I1d3107ea3e033712b3d9be77f9f716d106241aaa Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2389 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-09-02MCDE: enable configurable voltages through platformJimmy Rubin
Enable the MCDE driver to request voltages to the AB8500 for the generic display and analog supplies. Acked-By: Sundar R Iyer <sundar.iyer@stericsson.com> Signed-off-by: Jimmy Rubin <ejimrub@steludxu031.lud.stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/544 Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: Sundar R IYER <sundar.iyer@stericsson.com> Reviewed-by: Dan JOHANSSON <dan.johansson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I2f66f07c73736dfe36248cfc87c20bc1de3b8c89 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2385
2010-09-02MCDE: Adding new MCDE display, AB8500 Denc and AV8100 driverJimmy Rubin
This patch does the following: * Removes display support on ED! * Removes the old MCDE display driver and adds the new MCDE drivers to drivers/video/mcde. * Removes the old AV8100 driver and adds the new AV8100 drivers to drivers/video/av8100. * Moves the mcde and av8100 specific header files from machine to include/video. * Adds AB8500 Denc driver to drivers/misc/ab8500_denc. * Power management support added to the MCDE display driver. * Removes old MCDE specific configurations. * Adds new menuconfig selection SystemType/Display Selection where it is possbile to choose display types. * Updated standard configurations (mop500_defconfig, mop500_power_defconfig and mop500_USB_HOST_defconfig). * Landscape mode removed from menuconfig for main display. ST Ericsson Change-ID: WP259355 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/369 Reviewed-by: Dan JOHANSSON <dan.johansson@stericsson.com> Tested-by: Dan JOHANSSON <dan.johansson@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I0c5e5c0f80fde304d8b96e3faee0e8b1819d1ae7 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2378 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-09-02Connectivity: Fix errors in CG29XX Audio driverPar-Gunnar Hjalmdahl
This commit corrects wrong types in the CG29XX Audio driver API. This commit also adds new commands that will be sent when setting up FM RX and FM TX streams. The new commands were earlier missing from the system design, but have now been added. ST-Ericsson ID: ER 261924 Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: Ia2eec4adc7c1b3fc8457b6da46adb8f57e93854a Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2364 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-09-02videodev2.h: Add defines to enable Alternative Frequency switching.Stuart MacDonald
These changes allow the CG2900 FM radio driver to switch to alternate frequencies in the event that the signal on the current channel is too low. ST-Ericsson WP:259611 Change-Id: I76c5c4736ce76c22291f363caa64de686883e2ce
2010-09-02CAIF: Changes to public include filesKim Lilliestierna XX
Change-Id: I9aa2f67b0427f7c5a56040b08c1d4cc0e345e0f4
2010-09-02CAIF: Changes to core include filesKim Lilliestierna XX
Change-Id: I9cf8c6948ebecf1e2f6cfb498581bfef2536cefd
2010-09-02CAIF: changes to former "generic" filesKim Lilliestierna XX
Change-Id: I9d8ec46b2066cb7bd1bab0827638a87110942f29
2010-09-02CAIF: moved generic files out of their own dirKim Lilliestierna XX
Change-Id: Id4d9cbb735c24875e3a59ba42c2beab852715542
2010-09-02Connectivity: ste_conn driver redesign, cg29xx audio driver.Josef Kindberg EJOSKIN
ste_conn driver redesign splitting core functionality and chip dependent. CG29xx audoi driver for chipsets. ST-Ericsson Change-Id: WP256388 Change-Id: I72a52f609feeb0e092ace41cb93afb74a4b6d8cd
2010-09-02amba-pl011: Added ST specific changesJonas Aaberg
2010-09-02MMD delivery to U8500 pack 5Jonas Bengtsson
2010-09-02Updated Phonet Stack with adaptations from v29 to v33 for MBLB Sampath Kumar
Signed-off-by: B Sampath Kumar <sampath.kumar@stericsson.com>
2010-09-02hsi: Changes required for 2.6.33Jonas Aaberg
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
2010-09-02Adding the IrRC IOCTL interface to the kernel.Marcus Cooper
Signed-off-by: Marcus Cooper <qmarcoo@seldx1001.ld.sw.ericsson.se>
2010-09-02lsm303dlh driver updated. Signed-off-by: Mian Yousaf Kaukab ↵Mian Yousaf Kaukab
<mian.yousaf.kaukab@stericsson.com>
2010-09-02Add lsm303dlh magetometer driverMian Yousaf Kaukab
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
2010-09-02ALS framework backported from linux-nextMartin Persson
Reviewed-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Martin Persson <martin.persson@stericsson.com>
2010-09-02Added driver for LED lp5521Martin Persson
Reviewed-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Martin Persson <martin.persson@stericsson.com>
2010-09-02Adding macros for AB8500 USB PhyNaveen Kumar Gaddipati
Signed-off-by: Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com>
2010-09-02Fix for moving USB platform specific codeNaveen Kumar Gaddipati
Signed-off-by: Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com>
2010-09-02WP238657, delivery of FM Driver to pack 4.5Andreas
Signed-off-by: Andreas <andreas.a.gustafsson@stericsson.com>
2010-09-02Merged ste_conn driver with Linux_SW_v0.6Andreas Areskoug
2010-09-02AP251239: Delivery of WLAN subsystem. Kernel adaptation.Dmitry Tarnyagin
2010-09-02Added caif as part of kernelKim Lilliestierna XX
2010-09-02New ASoC driver for Fairbanks.Ola Lilja
2010-09-02u8500: kernel: ssi: add ssi header filesMian Yousaf Kaukab
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
2010-09-02u8500: kernel: misc: hsi: add hsi header filesMian Yousaf Kaukab
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
2010-09-02u8500: kernel: misc: i2s: add i2s header filesMian Yousaf Kaukab
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
2010-09-02u8500: spi: add spi driversMian Yousaf Kaukab
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
2010-05-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6Linus Torvalds
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: rtnetlink: make SR-IOV VF interface symmetric sctp: delete active ICMP proto unreachable timer when free transport tcp: fix MD5 (RFC2385) support
2010-05-16rtnetlink: make SR-IOV VF interface symmetricChris Wright
Now we have a set of nested attributes: IFLA_VFINFO_LIST (NESTED) IFLA_VF_INFO (NESTED) IFLA_VF_MAC IFLA_VF_VLAN IFLA_VF_TX_RATE This allows a single set to operate on multiple attributes if desired. Among other things, it means a dump can be replayed to set state. The current interface has yet to be released, so this seems like something to consider for 2.6.34. Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: David S. Miller <davem@davemloft.net>
2010-05-16tcp: fix MD5 (RFC2385) supportEric Dumazet
TCP MD5 support uses percpu data for temporary storage. It currently disables preemption so that same storage cannot be reclaimed by another thread on same cpu. We also have to make sure a softirq handler wont try to use also same context. Various bug reports demonstrated corruptions. Fix is to disable preemption and BH. Reported-by: Bhaskar Dutta <bhaskie@gmail.com> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2010-05-15Fix the regression created by "set S_DEAD on unlink()..." commitAl Viro
1) i_flags simply doesn't work for mount/unlink race prevention; we may have many links to file and rm on one of those obviously shouldn't prevent bind on top of another later on. To fix it right way we need to mark _dentry_ as unsuitable for mounting upon; new flag (DCACHE_CANT_MOUNT) is protected by d_flags and i_mutex on the inode in question. Set it (with dont_mount(dentry)) in unlink/rmdir/etc., check (with cant_mount(dentry)) in places in namespace.c that used to check for S_DEAD. Setting S_DEAD is still needed in places where we used to set it (for directories getting killed), since we rely on it for readdir/rmdir race prevention. 2) rename()/mount() protection has another bogosity - we unhash the target before we'd checked that it's not a mountpoint. Fixed. 3) ancient bogosity in pivot_root() - we locked i_mutex on the right directory, but checked S_DEAD on the different (and wrong) one. Noticed and fixed. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>