Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:27:23 +0000 (14:27 +0100)]
Revert "usb/gadget: f_mass_storage: use usb_gstrings_attach"
This reverts commit
2089c2070341b55b6476907100bfe2fd04467edd.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:27:20 +0000 (14:27 +0100)]
Revert "usb/gadget: f_mass_storage: split fsg_common initialization into a number of functions"
This reverts commit
4198374d675f23cc00a4ebd61f99ef2c8bb4ad82.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:27:18 +0000 (14:27 +0100)]
Revert "usb/gadget: f_mass_storage: use fsg_common_setup in fsg_common_init"
This reverts commit
6da409d4af402599d135f22d4f0273c42aee5d9c.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:27:15 +0000 (14:27 +0100)]
Revert "usb/gadget: f_mass_storage: use fsg_common_set_num_buffers in fsg_common_init"
This reverts commit
378d601a3457e66ee10ba1770bfbe9d42d8361da.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:27:13 +0000 (14:27 +0100)]
Revert "usb/gadget: f_mass_storage: use fsg_common_set_nluns in fsg_common_init"
This reverts commit
988ececeab73edfa2e4f27ad7167034d8908aa74.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:27:10 +0000 (14:27 +0100)]
Revert "usb/gadget: f_mass_storage: use fsg_common_set_ops/_private_data in fsg_common_init"
This reverts commit
51c5313aa631785326cf16c39e941edd50b2832f.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:27:07 +0000 (14:27 +0100)]
Revert "usb/gadget: f_mass_storage: use fsg_common_set_cdev in fsg_common_init"
This reverts commit
03aec556a53d26977be1c16b3307eae731960cd8.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:27:04 +0000 (14:27 +0100)]
Revert "usb/gadget: f_mass_storage: use fsg_common_create_luns in fsg_common_init"
This reverts commit
681ab95e2320cb629954939a867c61de7d7b8372.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:27:01 +0000 (14:27 +0100)]
Revert "usb/gadget: f_mass_storage: use fsg_common_set_inquiry_string in fsg_common_init"
This reverts commit
2e9cc80a04c3f5c46640f7a4d347ce37c6f26953.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:58 +0000 (14:26 +0100)]
Revert "usb/gadget: f_mass_storage: use fsg_common_run_thread in fsg_common_init"
This reverts commit
9fc1ddf14878e584464ab110ee5150d6ac3151ef.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:50 +0000 (14:26 +0100)]
Revert "usb/gadget: f_mass_storage: convert to new function interface with backward compatibility"
This reverts commit
2cac3870c00b16a061c42fc4bbd2fd67e957d147.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:46 +0000 (14:26 +0100)]
Revert "usb/gadget: mass_storage: convert to new interface of f_mass_storage"
This reverts commit
d42b40a01037255c0609cfae1607bdf7524c8c75.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:43 +0000 (14:26 +0100)]
Revert "usb/gadget: storage_common: make attribute operations more generic"
This reverts commit
724a908e741cbd713c95f2a2cedb6a4c7d97ed38.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:40 +0000 (14:26 +0100)]
Revert "usb/gadget: storage_common: add methods to show/store 'cdrom' and 'removable'"
This reverts commit
80b546ca2f7a1d6714022e3c791635d7b6ba9766.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:37 +0000 (14:26 +0100)]
Revert "usb/gadget: f_mass_storage: add configfs support"
This reverts commit
d1e1911c9b87f7c8aa7cf22ce76dd4cb5a669cdf.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:29 +0000 (14:26 +0100)]
Revert "usb/gadget: acm_ms: convert to new interface of f_mass_storage"
This reverts commit
7ab27e2ab83e3d760dd4ebb8175eac0f04f776f2.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:26 +0000 (14:26 +0100)]
Revert "usb/gadget: multi: convert to new interface of f_ecm"
This reverts commit
0f51ef4507d61692afe5de4598b8f5df82f1ada1.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:23 +0000 (14:26 +0100)]
Revert "usb/gadget: multi: convert to new interface of f_rndis"
This reverts commit
341030a348bb6faa52e0b69a3ba17f827aae2af2.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:19 +0000 (14:26 +0100)]
Revert "usb/gadget: multi: convert to new interface of f_mass_storage"
This reverts commit
dd7e1f875183653d9a6c94148e19a06bfc81f4ad.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:14 +0000 (14:26 +0100)]
Revert "usb/gadget: f_mass_storage: remove compatibility layer"
This reverts commit
59aad79c1789c338321789307105f676b8c8b427.
Andrzej Pietrasiewicz [Tue, 14 Jan 2014 13:26:04 +0000 (14:26 +0100)]
Revert "usb/gadget: mass_storage: merge usb_f_mass_storage module with u_ms module"
This reverts commit
2e3f33eddfca46f0d4909d496f6309454b8da298.
Jacek Pielaszkiewicz [Wed, 15 Jan 2014 14:07:54 +0000 (15:07 +0100)]
Split uImage on "clean" uImage and Device Tree blob.
1. The change is due to upgrade u-boot to latest upstream version
which support separate uImage and DTB.
Addtionally current defult u-boot configuration for trats2 assumes
that kernel image and DTB are delivered as separat files.
2. DTB files are located in /boot directory.
3. Together with uImage are delivered all DTBs which are compatible with
tizen_defconfig kernel configuration.
Change-Id: I60a581edb4edccbf2ef704de525409da6572c4f8
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Jacek Pielaszkiewicz [Mon, 13 Jan 2014 11:58:43 +0000 (12:58 +0100)]
Bring kernel packaging in line with ivi's kernel.
The following changes have been implemented:
1. Add provides to for linux-kernel, linux-kernel-devel packages.
The following "Provides" have been added:
- kernel - package linux-kernel
- kernel-uname-r - package linux-kernel
- kernel-devel - package linux-kernel-devel
- kernel-devel-uname-r - package linux-kernel-devel
2. Remove linux-kernel-uImage package.
3. linux-kernel package has been extended to deliver uImage and
kernel modules (in /boot directory)
4. Rename linux-kenrel-build package to linux-kernel-devel.
4. Extend linux-kernel-devel by the content of /lib/modules/kernel
directory.
Change-Id: I824a307327d56c63c7cfc7eb6124d4fa10e1f49a
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Jacek Pielaszkiewicz [Fri, 10 Jan 2014 16:25:10 +0000 (17:25 +0100)]
*spec file cleanup and linux-kernel-sources package removal.
The following changes have been implemented:
1. linux-kernel-sources package has been removed. devel package
is enough to correctly linux-kernel-build external kernel modules.
2. Symbolic link that points pre-build kernel sources has been added.
The link is located in /lib/modules/__kernel_version__.
3. Rename linux-kernel-headers package on linux-kernel-user-headers.
Change-Id: I6e1a4283d832a5fced7fafbb8fefc9c369364f59
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Jaehoon Chung [Mon, 20 Jan 2014 03:46:10 +0000 (12:46 +0900)]
mmc: dw_mmc: change the blk-setting value for eMMC
Change the blk-setting value.
(benchmark : iozone, tiotest)
Before applied this patch,
Read : 17MB/s, Write : 71MB/s
After applied this patch,
Read : 30MB/s, Write : 72MB/s
Increased the Read performance.
Change-Id: I64142e97aea3aa7ac3d1ca78726f8dd3c133692d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Dmitry Kasatkin [Fri, 10 Jan 2014 11:13:40 +0000 (20:13 +0900)]
extcon: max77693: Force using UART path for jig
When USB cable is connected to jig, device disables console.
This patch forces using UART when jig cable is connected.
It allows to charge the device, which also prevents it from sleeping.
Change-Id: Ie0c8c29f40cdbed5cdad608950a6c5c428cd0fab
Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
[Author information corrected and style fixed.]
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Dmitry Kasatkin [Fri, 10 Jan 2014 11:04:42 +0000 (20:04 +0900)]
extcon: max77693: Differentiate info message for easier debugging
Change-Id: Ie02b0c71100815601e40391c67cb176dca67e683
Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
[Author information corrected]
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Marek Szyprowski [Mon, 13 Jan 2014 07:40:05 +0000 (08:40 +0100)]
drivers: mmc: s3c-sdhci: select required sdhci platform driver
s3c-sdhci requires sdhci platform driver, so add this dependency to
Kcofig entry.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I62c834664a154f38f19b0597673748bad98f7640
Marek Szyprowski [Mon, 13 Jan 2014 07:39:19 +0000 (08:39 +0100)]
drivers: clk: samsung: fix build dependency for exynos4 audss clocks
Fix build break for non-exynos Samsung builds.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ib954cffbfd249e4122598171566123b8d5f24deb
Robert Baldyga [Thu, 5 Dec 2013 14:04:19 +0000 (15:04 +0100)]
USB: gadget: s3c-hsotg: add flush TX FIFO when kill all requests
This patch adds flushing TX FIFO in kill_all_requests() function in
dedicated-fifo mode. It's because when requests are killed (when endpoint is
disabled or in case of device reset/disconnection) in FIFO can stay some
unsent data. In the worst case FIFO can stay full, and then if endpoint will
be back enabled, sending new data will be impossible.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Change-Id: Ibdb3d3f14f665d096ad944fb3ad79d25ff11625a
Robert Baldyga [Thu, 5 Dec 2013 10:32:22 +0000 (11:32 +0100)]
USB: gadget: s3c-hsotg: fix maxpacket size in s3c_hsotg_irq_enumdone
This patch set maximum possible maxpacket value for each speed. Previous
values didn't allow to use maxpacket sizes greater than 64 in full speed
and 512 in high speed, although hardware is able to handle up to 1023 in fs
and 1024 in hs.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Change-Id: I5a1b687958afb08000d3a86e68c5df7b343cc08d
Seung-Woo Kim [Fri, 8 Nov 2013 11:48:18 +0000 (20:48 +0900)]
usb: gadget: slp: fix wrong destory function
The device_destroy() unregisters and destroys the struct dev
created by device_create(). But in destroy function, it calls for
each file created by device_create_file(). So this causes wrong
memory access like following.
[ 2.804348] usb_mode: can't probe composite
[ 2.808239] Unable to handle kernel NULL pointer dereference at virtual address
00000034
[ 2.816064] pgd =
c0004000
[ 2.818713] [
00000034] *pgd=
00000000
[ 2.822289] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 2.827570] Modules linked in:
[ 2.830612] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.10.14-g86225b5 #89
[ 2.837465] task:
df9f8000 ti:
df9f4000 task.ti:
df9f4000
[ 2.842859] PC is at sysfs_find_dirent+0x8/0xf0
[ 2.847358] LR is at sysfs_get_dirent+0x28/0x78
[ 2.851873] pc : [<
c0158ee4>] lr : [<
c01590ac>] psr:
40000113
[ 2.851873] sp :
df9f5ea0 ip :
00000000 fp :
00000000
[ 2.863329] r10:
00000077 r9 :
c0735d90 r8 :
c071bc84
[ 2.868537] r7 :
df209000 r6 :
00000000 r5 :
c04f52d0 r4 :
00000000
[ 2.875046] r3 :
00000000 r2 :
c04f52d0 r1 :
00000000 r0 :
00000000
[ 2.881558] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 2.888848] Control:
10c53c7d Table:
4000404a DAC:
00000015
[ 2.894577] Process swapper/0 (pid: 1, stack limit = 0xdf9f4238)
[ 2.900568] Stack: (0xdf9f5ea0 to 0xdf9f6000)
[ 2.904912] 5ea0:
00000000 c04f52d0 00000000 df209000 c071bc84 c01590ac c0783420 df209008
[ 2.913069] 5ec0:
c0857f34 c015a6b0 df9f8000 df209000 df209008 c02b596c df209000 df209008
[ 2.921228] 5ee0:
c0857f34 c078531c c071bc84 c02b491c 00000000 df209000 df209200 c02ac504
[ 2.929387] 5f00:
df209000 ffffffed c0857f34 c02ac668 df208e00 c071be80 c0668e70 c02af718
[ 2.937546] 5f20:
df9f4000 c07a4e00 c0726f18 00000000 c071bc84 c00086d4 00000000 00000000
[ 2.945706] 5f40:
c062bed8 c06ca4ec 00000007 00000007 c06f74d0 c0726f38 00000007 c0726f18
[ 2.953864] 5f60:
c07a4e00 c06f74d0 c0735d90 00000077 00000000 c06f7b98 00000007 00000007
[ 2.962023] 5f80:
c06f74d0 c004ed8c 00000000 c04b0f20 00000000 00000000 00000000 00000000
[ 2.970183] 5fa0:
00000000 c04b0f28 00000000 c000eb28 00000000 00000000 00000000 00000000
[ 2.974920] ymu831 irq_handler
[ 2.974944] ymu831 irq_func
[ 2.984158] 5fc0:
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2.992317] 5fe0:
00000000 00000000 00000000 00000000 00000013 00000000 08800040 05008140
[ 3.000500] [<
c0158ee4>] (sysfs_find_dirent+0x8/0xf0) from [<
df209008>] (0xdf209008)
[ 3.008205] Code:
e5838000 eafffff6 e92d41f0 e2913000 (
e1d0e3b4)
[ 3.014323] ---[ end trace
a753dab553aa7e18 ]---
Change-Id: I58924574a3673dc8eaaea8556cd64f453344cdf3
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Byungsoo Kim [Fri, 25 Oct 2013 12:37:19 +0000 (21:37 +0900)]
USB: gadget: s3c-hsotg: skip suspend and resume when usb cable wasn't inserted
Although we didn't insert usb cable, s3c_hsotg_suspend and s3c_hsotg_resume were always called and failed.
[ 519.686485] s3c-hsotg
12480000.hsotg: Failed to get CSftRst asserted
[ 519.686539] s3c-hsotg
12480000.hsotg: ep0: failed to become enabled (DxEPCTL=0x00000000)
Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
Change-Id: I084c0436992e5be76b0dd692da44d5a45761c934
Beomho Seo [Fri, 10 Jan 2014 08:56:22 +0000 (17:56 +0900)]
iio: cm36651: Rebased light/proximity sensor driver
This patch is rebased on mainline.
The driver exposes five channels: Red, Green, Blue, Clear and Proximity.
It also support detection proximity event.
Change-Id: Ifb152f4c3dafad2524d58396866781297346d8da
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Beomho Seo [Fri, 10 Jan 2014 08:32:05 +0000 (17:32 +0900)]
iio:st_gyro: Prevent register threshold events
Currently, st_gyro sensor driver doesn't support threshold events.
If event_mask is not zero, driver is register threshold events.
As a result, Null pointer dereference at iio_ev_* functions.
This patch set zero event_mask of st_gyro sensor.
Change-Id: Ie39b43624ef764d3c8626f41dc4611ad09d72302
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Donghwa Lee [Fri, 10 Jan 2014 04:19:49 +0000 (13:19 +0900)]
video: display: s6e8aa0: change power off sequence to remove noise
It is need to turn off the panel more earlier than mipi dsi
to remove noise and switch the sequence of display_off and sleep_in
command following manufacturer's instruction.
Change-Id: Id2e7bf63fb84a12673fa56d572ad63ae5cf80539
Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Donghwa Lee [Fri, 10 Jan 2014 02:24:33 +0000 (11:24 +0900)]
video: display: s6e8aa0: remove duplicated mtp read function
There is no need to call mtp check function whenever lcd power on.
It is sufficient just called once at booting time because mtp data
is fixed values.
Change-Id: I3f37633821c83089cb516eeb9810c4ae435d5cc1
Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Jacek Pielaszkiewicz [Fri, 3 Jan 2014 11:56:59 +0000 (12:56 +0100)]
*spec file update to build output uImage and Device Tree
The following changes have been implemented:
1. A new linux-kernel-uImage package was added. The package provide kernel uImage.
2. Additional cleanup linux-kernel-sources and linux-kernel-build packages
was added.
3. Symbolic links linux-kernel-build-current and linux-kernel-sources-current were
added. Links points current kernel sources and build directories.
Change-Id: Ifa889d42fca69cce4d458d9ac7e0514cfdf1caef
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Donghwa Lee [Fri, 3 Jan 2014 01:03:34 +0000 (10:03 +0900)]
video: display: s6e8aa0: adjust brightness value to driver level
Nevertheless there is only support 24 brightness steps in driver,
platform brightness status bar is suitable maximum size for 100.
Operation about brightness bar on the tizen looks that there is
something wrong. So I would adjust brightness value to driver's
brightness level.
Change-Id: Ia653a127b470208b0da9bc448f58422005e05d72
Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Jacek Pielaszkiewicz [Fri, 3 Jan 2014 06:22:57 +0000 (22:22 -0800)]
Revert "linux-kernel and linux kernel modules ABI tools."
This reverts commit
23b22df7b6b7d91e7c1866dc760c2586ba161c43.
Change-Id: I3ea15671a029e781a153d43201bf79118f66b148
Jacek Pielaszkiewicz [Fri, 3 Jan 2014 06:22:38 +0000 (22:22 -0800)]
Revert "linux-kernel and linux kernel modules ABI - next changes"
This reverts commit
45fe7044915b03bc6444102e55e45cccf4a4455d.
Change-Id: Ie479df1039134b1fcd89bc942c61d6669c51faf0
Jacek Pielaszkiewicz [Fri, 3 Jan 2014 06:21:59 +0000 (22:21 -0800)]
Revert "abi-checker - tool directory location update."
This reverts commit
952c6d9596e18f9df43174f513ce84ebe7cd6ca2.
Change-Id: Id6f4bd3d4e76c3a07fb8cdf121745c17e59b7a2a
Casey Schaufler [Thu, 19 Dec 2013 21:23:26 +0000 (13:23 -0800)]
Smack: change rule cap check
smk_write_change_rule() is calling capable rather than
the more correct smack_privileged(). This allows for setting
rules in violation of the onlycap facility. This is the
simple repair.
Change-Id: Icb5321b5b5355d64b0b029d9131cf60b5e97d356
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Casey Schaufler [Mon, 23 Dec 2013 19:07:10 +0000 (11:07 -0800)]
Smack: Make the syslog control configurable
The syslog control requires that the calling proccess
have the floor ("_") Smack label. Tizen does not run any
processes except for kernel helpers with the floor label.
This changes allows the admin to configure a specific
label for syslog. The default value is the star ("*")
label, effectively removing the restriction. The value
can be set using smackfs/syslog for anyone who wants
a more restrictive behavior.
Change-Id: Ia4270bf8864bd8342e585bbdd4791fb8359e8916
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Jacek Pielaszkiewicz [Tue, 17 Dec 2013 13:27:39 +0000 (14:27 +0100)]
abi-checker - tool directory location update.
- abi-checker tool has been moved into tools/directory
- abi-checker short documentation has been added.
Change-Id: I88d4c6081b1df276243c9edfb44d1de2e009cc10
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Jacek Pielaszkiewicz [Thu, 12 Dec 2013 14:06:24 +0000 (15:06 +0100)]
linux-kernel and linux kernel modules ABI - next changes
The following changes have implemented:
1. New API/ABI check tools were added:
- "abi-module-checker" - single module ABI/API checker. The tool
compare module fingerprint with kernel fingerprint.
- "abi-module-dumper" - create for current kernel version
ABI/API fingerprint file.
- "abi-module-kernels-list" - list compatible kernel versions with given kernel module
2. sample kernel module was added to show how to use ABI/API tools
3. a new rpm package "linux-kernel-abi-devel" is build. The package
deliver kernel fingerprints repository for development .
4. New links "linux-kernel-build-current" and "linux-kernel-sources-current"
are make easer access to sources and build kernel
directories.
Change-Id: I06f7dc1b8cc118f48e64595d257dbd29fd53e11e
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Jacek Pielaszkiewicz [Mon, 9 Dec 2013 12:37:39 +0000 (13:37 +0100)]
linux-kernel and linux kernel modules ABI tools.
The following changes have been implemented:
1. A new tool "abi-checker" has been created. The tool allows:
- compare two Module.symvers files.
- reports which symbols are new, changed or have been removed.
- create dump all kernel symbols that are present in external kernel
module.
2. linux-3.10.spec has been updated to check changes in kernel ABI/API.
In case if any change kernel installation process aborts. In such case
user is requested to update kernel version and update ABI dump file.
ABI dump file should be located in "abi-checker/data" directory.
3. Output rpm with uImage has been extended by ABI dump. Default location for
the file is /boot/abi/_kernel_version_.
4. New output rpm package is build - "abi-tools". The package delivers ABI-checker.
By default the rpm install ABI-checker tool into /usr/local/bin directory.
Change-Id: I37a2a52f64fde915cff24aa85349aa1dbee3a5b8
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Casey Schaufler [Thu, 21 Nov 2013 08:55:10 +0000 (10:55 +0200)]
Smack: Cgroup filesystem access
The cgroup filesystems are not mounted using conventional
mechanisms. This prevents the use of mount options to
set Smack attributes. This patch makes the behavior
of cgroup filesystems compatable with the way systemd
uses them.
Change-Id: I1e0429f133db9e14117dc754d682dec08221354c
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Casey Schaufler [Tue, 22 Oct 2013 18:47:45 +0000 (11:47 -0700)]
Smack: Ptrace access check mode
When the ptrace security hooks were split the addition of
a mode parameter was not taken advantage of in the Smack
ptrace access check. This changes the access check from
always looking for read and write access to using the
passed mode. This will make use of /proc much happier.
Targeted for git://git.gitorious.org/smack-next/kernel.git
Change-Id: I979f36da1b26d0fba5d73744f340422aaae5cc74
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Casey Schaufler [Sat, 12 Oct 2013 01:06:39 +0000 (18:06 -0700)]
Smack: Implement lock security mode
Linux file locking does not follow the same rules
as other mechanisms. Even though it is a write operation
a process can set a read lock on files which it has open
only for read access. Two programs with read access to
a file can use read locks to communicate.
This is not acceptable in a Mandatory Access Control
environment. Smack treats setting a read lock as the
write operation that it is. Unfortunately, many programs
assume that setting a read lock is a read operation.
These programs are unhappy in the Smack environment.
This patch introduces a new access mode (lock) to address
this problem. A process with lock access to a file can
set a read lock. A process with write access to a file can
set a read lock or a write lock. This prevents a situation
where processes are granted write access just so they can
set read locks.
Targeted for git://git.gitorious.org/smack-next/kernel.git
Change-Id: I9bf4df25088d2dd49aadfa0ced844b147ad1c81d
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Rafal Krypa [Fri, 9 Aug 2013 09:47:07 +0000 (11:47 +0200)]
Smack: parse multiple rules per write to load2, up to PAGE_SIZE-1 bytes
Smack interface for loading rules has always parsed only single rule from
data written to it. This requires user program to call one write() per
each rule it wants to load.
This change makes it possible to write multiple rules, separated by new
line character. Smack will load at most PAGE_SIZE-1 characters and properly
return number of processed bytes. In case when user buffer is larger, it
will be additionally truncated. All characters after last \n will not get
parsed to avoid partial rule near input buffer boundary.
Change-Id: I81766925a9522fcb811fe3046850cdc45067838a
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Casey Schaufler [Mon, 5 Aug 2013 20:21:22 +0000 (13:21 -0700)]
Smack: IPv6 casting error fix for 3.11
The original implementation of the Smack IPv6 port based
local controls works most of the time using a sockaddr as
a temporary variable, but not always as it overflows in
some circumstances. The correct data is a sockaddr_in6.
A struct sockaddr isn't as large as a struct sockaddr_in6.
There would need to be casting one way or the other. This
patch gets it the right way.
Change-Id: Iac627fa0ddb77e3ff4b8c9c81bd838141a5638e9
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Casey Schaufler [Fri, 28 Jun 2013 20:47:07 +0000 (13:47 -0700)]
Smack: network label match fix
The Smack code that matches incoming CIPSO tags with Smack labels
reaches through the NetLabel interfaces and compares the network
data with the CIPSO header associated with a Smack label. This was
done in a ill advised attempt to optimize performance. It works
so long as the categories fit in a single capset, but this isn't
always the case.
This patch changes the Smack code to use the appropriate NetLabel
interfaces to compare the incoming CIPSO header with the CIPSO
header associated with a label. It will always match the CIPSO
headers correctly.
Targeted for git://git.gitorious.org/smack-next/kernel.git
Change-Id: I22a2fd758b5a7764cbeb3ebf9f4dadd12d5b170b
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Tomasz Stanislawski [Tue, 11 Jun 2013 12:55:13 +0000 (14:55 +0200)]
security: smack: add a hash table to quicken smk_find_entry()
Accepted for the smack-next tree after changing the number of
slots from 128 to 16.
This patch adds a hash table to quicken searching of a smack label by its name.
Basically, the patch improves performance of SMACK initialization. Parsing of
rules involves translation from a string to a smack_known (aka label) entity
which is done in smk_find_entry().
The current implementation of the function iterates over a global list of
smack_known resulting in O(N) complexity for smk_find_entry(). The total
complexity of SMACK initialization becomes O(rules * labels). Therefore it
scales quadratically with a complexity of a system.
Applying the patch reduced the complexity of smk_find_entry() to O(1) as long
as number of label is in hundreds. If the number of labels is increased please
update SMACK_HASH_SLOTS constant defined in security/smack/smack.h. Introducing
the configuration of this constant with Kconfig or cmdline might be a good
idea.
The size of the hash table was adjusted experimentally. The rule set used by
TIZEN contains circa 17K rules for 500 labels. The table above contains
results of SMACK initialization using 'time smackctl apply' bash command.
The 'Ref' is a kernel without this patch applied. The consecutive values
refers to value of SMACK_HASH_SLOTS. Every measurement was repeated three
times to reduce noise.
| Ref | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512
--------------------------------------------------------------------------------------------
Run1 | 1.156 | 1.096 | 0.883 | 0.764 | 0.692 | 0.667 | 0.649 | 0.633 | 0.634 | 0.629 | 0.620
Run2 | 1.156 | 1.111 | 0.885 | 0.764 | 0.694 | 0.661 | 0.649 | 0.651 | 0.634 | 0.638 | 0.623
Run3 | 1.160 | 1.107 | 0.886 | 0.764 | 0.694 | 0.671 | 0.661 | 0.638 | 0.631 | 0.624 | 0.638
AVG | 1.157 | 1.105 | 0.885 | 0.764 | 0.693 | 0.666 | 0.653 | 0.641 | 0.633 | 0.630 | 0.627
Surprisingly, a single hlist is slightly faster than a double-linked list.
The speed-up saturates near 64 slots. Therefore I chose value 128 to provide
some margin if more labels were used.
It looks that IO becomes a new bottleneck.
Change-Id: Ib1f7bf9f52337b07ccfab10e8fdf52014bd3b466
Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Tomasz Stanislawski [Thu, 6 Jun 2013 07:30:50 +0000 (09:30 +0200)]
security: smack: fix memleak in smk_write_rules_list()
The smack_parsed_rule structure is allocated. If a rule is successfully
installed then the last reference to the object is lost. This patch fixes this
leak. Moreover smack_parsed_rule is allocated on stack because it no longer
needed ofter smk_write_rules_list() is finished.
Change-Id: I5b4dcadc6a9d675ab630b23c00edeaf595b5b857
Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Tetsuo Handa [Wed, 24 Jul 2013 20:44:02 +0000 (05:44 +0900)]
xattr: Constify ->name member of "struct xattr".
Since everybody sets kstrdup()ed constant string to "struct xattr"->name but
nobody modifies "struct xattr"->name , we can omit kstrdup() and its failure
checking by constifying ->name member of "struct xattr".
Change-Id: I6cb5cd7f29c01956dd0d1579af81a518a5936071
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Joel Becker <jlbec@evilplan.org> [ocfs2]
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Acked-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Reviewed-by: Paul Moore <paul@paul-moore.com>
Tested-by: Paul Moore <paul@paul-moore.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
David Quigley [Wed, 22 May 2013 16:50:35 +0000 (12:50 -0400)]
Security: Add Hook to test if the particular xattr is part of a MAC model.
The interface to request security labels from user space is the xattr
interface. When requesting the security label from an NFS server it is
important to make sure the requested xattr actually is a MAC label. This allows
us to make sure that we get the desired semantics from the attribute instead of
something else such as capabilities or a time based LSM.
Change-Id: I283f116953f958877826ba772661b5755986ac99
Acked-by: Eric Paris <eparis@redhat.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Matthew N. Dodd <Matthew.Dodd@sparta.com>
Signed-off-by: Miguel Rodel Felipe <Rodel_FM@dsi.a-star.edu.sg>
Signed-off-by: Phua Eu Gene <PHUA_Eu_Gene@dsi.a-star.edu.sg>
Signed-off-by: Khin Mi Mi Aung <Mi_Mi_AUNG@dsi.a-star.edu.sg>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Passion,Zhao [Mon, 3 Jun 2013 03:42:24 +0000 (11:42 +0800)]
Smack: Fix the bug smackcipso can't set CIPSO correctly
Bug report: https://tizendev.org/bugs/browse/TDIS-3891
The reason is userspace libsmack only use "smackfs/cipso2" long-label interface,
but the code's logical is still for orginal fixed length label. Now update
smack_cipso_apply() to support flexible label (<=256 including tailing '\0')
There is also a bug in kernel/security/smack/smackfs.c:
When smk_set_cipso() parsing the CIPSO setting from userspace, the offset of
CIPSO level should be "strlen(label)+1" instead of "strlen(label)"
Change-Id: I7be85b4ade557e25569970e61c9e09ca01b5f2d9
Signed-off-by: Passion,Zhao <passion.zhao@intel.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Tetsuo Handa [Mon, 27 May 2013 11:11:27 +0000 (20:11 +0900)]
Smack: Fix possible NULL pointer dereference at smk_netlbl_mls()
netlbl_secattr_catmap_alloc(GFP_ATOMIC) can return NULL.
Change-Id: Id67f7f66a61a05e7e45b66a50b5d0869ef7e5117
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Casey Schaufler [Thu, 23 May 2013 01:43:07 +0000 (18:43 -0700)]
Smack: Add smkfstransmute mount option
Suppliment the smkfsroot mount option with another, smkfstransmute,
that does the same thing but also marks the root inode as
transmutting. This allows a freshly created filesystem to
be mounted with a transmutting heirarchy.
Targeted for git://git.gitorious.org/smack-next/kernel.git
Change-Id: I3d7238ca1c5251fcfc96a6a61bec47bdf9466152
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Casey Schaufler [Thu, 23 May 2013 01:43:03 +0000 (18:43 -0700)]
Smack: Improve access check performance
Each Smack label that the kernel has seen is added to a
list of labels. The list of access rules for a given subject
label hangs off of the label list entry for the label.
This patch changes the structures that contain subject
labels to point at the label list entry rather that the
label itself. Doing so removes a label list lookup in
smk_access() that was accounting for the largest single
chunk of Smack overhead.
Targeted for git://git.gitorious.org/smack-next/kernel.git
Change-Id: I15f3cde6f0c3db9af056d35fc224d6295dff130c
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Casey Schaufler [Thu, 23 May 2013 01:42:56 +0000 (18:42 -0700)]
Smack: Local IPv6 port based controls
Smack does not provide access controls on IPv6 communications.
This patch introduces a mechanism for maintaining Smack lables
for local IPv6 communications. It is based on labeling local ports.
The behavior should be compatible with any future "real" IPv6
support as it provides no interfaces for users to manipulate
the labeling. Remote IPv6 connections use the ambient label
the same way that unlabeled IPv4 packets are treated.
Targeted for git://git.gitorious.org/smack-next/kernel.git
Change-Id: I6c00966cc88b36611214cc438c47ecdab63077c7
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Tomasz Figa [Wed, 4 Dec 2013 13:09:46 +0000 (14:09 +0100)]
clk: samsung: exynos4: Propagate rate change of SPI dividers
This patch adds missing CLK_SET_RATE_PARENT flag to div_spi{0,1,2} clocks
to allow rate change propagation to div_spi{0,1,2}_pre. This fixes the
problem with SPI bus clock rate setting.
Change-Id: I26ef7028297914d5c99e55f0e9fa6dc6a9292e94
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Doug Anderson [Mon, 17 Jun 2013 16:50:43 +0000 (09:50 -0700)]
pinctrl: exynos: ack level-triggered interrupts before unmasking
A level-triggered interrupt should be acked after the interrupt line
becomes inactive and before it is unmasked, or else another interrupt
will be immediately triggered. Acking before or after calling the
handler is not enough.
Change-Id: I553444ce552df5722e606d71bea8bf7b862cce25
Signed-off-by: Luigi Semenzato <semenzato@chromium.org>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Doug Anderson [Wed, 12 Jun 2013 17:33:18 +0000 (10:33 -0700)]
pinctrl: exynos: reorder xyz_irq_unmask() so future patch can ack
This patch does nothing but reorder the functions to improve the
readability of a future patch.
Change-Id: Ia70d2969d88f6b4579617209be1cedbbf6bbc26c
Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Doug Anderson [Wed, 12 Jun 2013 17:33:17 +0000 (10:33 -0700)]
pinctrl: exynos: Add spinlocks to irq_mask and irq_unmask
The patch:
1984695 pinctrl: samsung: Protect bank registers with a spinlock
...added spinlocks to protect many accesses. However, the irq_mask
and irq_unmask functions still do an unprotected read/modify/write.
Add the spinlock there.
Change-Id: I892cfcd82368466184b99eab75d2bc7882674211
Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Beomho Seo [Mon, 9 Dec 2013 10:43:06 +0000 (19:43 +0900)]
dts: exynos4x12: fix clock properties.
This patch fix incorrect clock properties.
And then, move fixed clock properties to
exynos4x12.dtsi to avoid further duplication of broken properties.
Change-Id: Ib980422ad67af8dc2493f1886f6e26f23b451d12
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Beomho Seo [Wed, 4 Dec 2013 10:46:44 +0000 (19:46 +0900)]
mmc: sdhci-s3c: sdhci-s3c driver use sdhci-pltfm
This patch revised to use sdhci-pltfm.
Change-Id: Ib11e5a4005aa7c78261c12e7c8df027acd71575e
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Krzysztof Kozlowski [Tue, 3 Dec 2013 14:49:13 +0000 (15:49 +0100)]
mfd: max77693: Fix mapping IRQ during mask/unmask
Use hwirq in max77693_irq_mask() and max77693_irq_unmask() for accessing
irq array. Previously the virtual irq was used which resulted in
out-of-bounds access.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Change-Id: I6e2e6751d07427072e90d9f4dfef921108485f29
Beomho Seo [Tue, 3 Dec 2013 08:25:13 +0000 (17:25 +0900)]
mmc: sdhci-pltfm: Use devm_ioremap_resource()
This patch devm_ioremap_resource for replace request region and ioremap.
Change-Id: I6b63e1db0d0c9d6d8cf89a93d57db0b253418e3a
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Tomasz Figa [Mon, 4 Nov 2013 15:38:47 +0000 (16:38 +0100)]
video: display: panel-s6e8aa0: Use devm_kzalloc to allocate driver data
This fixes memory leak on probe error path.
Change-Id: Ibea51282dee8139a85764f39e7c894a94036f0cf
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Tomasz Figa [Mon, 4 Nov 2013 15:38:47 +0000 (16:38 +0100)]
video: display: panel-s6d6aa1: Use devm_kzalloc to allocate driver data
This fixes memory leak on probe error path.
Change-Id: Iafc7a9920869e59d792c480770dcb07507a998da
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Łukasz Stelmach [Wed, 27 Nov 2013 15:25:27 +0000 (16:25 +0100)]
Enable RTC chips on M0 devices
Change-Id: Ide6d17af6d026230c48bededf32e8f15ca41b8e4
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Wed, 27 Nov 2013 14:59:56 +0000 (15:59 +0100)]
Include kernel configuration in kernel image
Enable IKCONFIG and IKCONFIG_PROC to include the configuration of the
kernel in the image and export it via /proc/config.gz.
Change-Id: I868ba4cabd4a1517b625e81037d7758651dfa4b4
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Robert Baldyga [Thu, 14 Nov 2013 11:10:20 +0000 (12:10 +0100)]
USB: gadget: s3c-hsotg: fix disconnect handling
This patch moves s3c_hsotg_disconnect function call from USBSusp interrupt
handler to SET_ADDRESS request handler.
It's because disconnected state can't be detected directly, because this
hardware doesn't support Disconnected interrupt for device mode. For both
Suspend and Disconnect events there is one interrupt USBSusp, but calling
s3c_hsotg_disconnect from this interrupt handler causes config reset in
composite layer, which is not undesirable for Suspended state.
For this reason s3c_hsotg_disconnect is called from SET_ADDRESS request
handler, which occurs always after disconnection, so we do disconnect
immediately before we are connected again. It's probably only way we
can do handle disconnection correctly.
Change-Id: I8e69b532077c6ad76489e70fcc3f8d525fe75cf3
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Robert Baldyga [Thu, 14 Nov 2013 11:07:29 +0000 (12:07 +0100)]
USB: gadget: s3c-hsotg: fix spinlock locking
This patch adds missing spinlock locking in s3c_hsotg_complete_setup function,
and unlocking for gadget setup call.
Change-Id: I73dc683a9df16872d9d6ba2b6b7c98a48418c500
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Andrzej Hajda [Tue, 15 Oct 2013 08:45:34 +0000 (10:45 +0200)]
arch: ARM: dts: add support for exynos4210-usbphy driver to trats
Change-Id: I9758e15225e86050b62068b1156709a71799e4f1
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Chanho Park [Mon, 25 Nov 2013 02:52:04 +0000 (11:52 +0900)]
gpu: arm: mali400: support gpu frequency profiling
This patch supports gpu frequency profiling by using ARM streamline.
You must turn on below configuration if you want to get a profiling data.
CONFIG_MALI400_PROFILING
CONFIG_MALI400_INTERNAL_PROFILING
Change-Id: Id8cc59b80dcf4483cc5944283fc95daaca6f0839
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Fri, 22 Nov 2013 10:11:44 +0000 (19:11 +0900)]
tizen: update default config to use slp gadget
The Tizen uses slp composite gadget which is based on android gadget.
Until we migrate to configfs based gadget configuration, we should use the slp
gadget. It only support sdb and rndis gadget.
Change-Id: I9e7afd3ef9865d43d43d2221b30b7b10ef039399
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Karol Lewandowski [Tue, 29 Oct 2013 13:00:53 +0000 (14:00 +0100)]
update linux-kernel.spec file to fix build problems.
The following changes have been implemented:
1. kernel-source package
2. kernel-build package
3. linux-kernel package
4. add kernel configuration name and abi version to output names.
Change-Id: I95479b660dda8a18f3e8f32c20fcbfbab8ab6000
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Karol Lewandowski [Thu, 31 Oct 2013 18:56:58 +0000 (19:56 +0100)]
mali: Support build to different objdir (O=...).
Change-Id: I3b76381af1ec083c41e321e55c10eb1e75e42155
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
Karol Lewandowski [Tue, 29 Oct 2013 13:00:53 +0000 (14:00 +0100)]
packaging: Bump version
Modified version number, again.
Change-Id: Idf67ccbf9c36030644be6c6f76f5fe0e2b857246
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Nikita Kalyazin [Thu, 14 Nov 2013 05:05:32 +0000 (09:05 +0400)]
gpu: arm: mali400: ump: Fix svn revision check
Change-Id: Ic5a3d69518be56a800d4233a48ba8bb719e67c52
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
Beomho Seo [Tue, 12 Nov 2013 07:36:22 +0000 (16:36 +0900)]
mmc: sdhci-s3c: Add irq_set_wake function
- Add irq_set_irq_wake function for control irq
- Remove unused variables
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Jonghwa Lee [Mon, 11 Nov 2013 08:29:24 +0000 (17:29 +0900)]
cpufreq: lab: Fix codes for correct working of lab governor.
- Modify typo in lab govnernor.
- Remove deadlock in lab governor which is occured when it enables
overclocking
- Add initialization of LAB's data to cpufreq_governor driver
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Conflicts:
drivers/cpufreq/cpufreq_governor.c
Resolved-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Jonghwa Lee [Fri, 8 Nov 2013 08:53:46 +0000 (17:53 +0900)]
cpufreq: exysnos: Fix the way of enabling boost in exynos cpufreq driver.
Follow the codes from ML.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Fri, 8 Nov 2013 08:40:25 +0000 (17:40 +0900)]
cpufreq: lab: Enable overclocking in LAB
Overclocking is always on for LAB governor's working.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Fri, 8 Nov 2013 07:20:45 +0000 (16:20 +0900)]
cpufreq:LAB: Introduce new cpufreq LAB(Legaccy Application Boost) governor
This patch introduces new cpufreq governor named 'LAB'.
LAB governor will use scheduler, per-CPU information to determine how many
CPUs are in busy now. As a result the number of idle CPUs is calculated
for current load (digital low pass filtering is used to provide more stable
results). It will determine next frequency.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Conflicts:
drivers/cpufreq/cpufreq_governor.c
Resolved-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Jonghwa Lee [Fri, 8 Nov 2013 01:51:00 +0000 (10:51 +0900)]
cpufreq : M0: Allow sailable frequency up to 1.4Ghz @ M0
Signed-off-by : Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Thu, 7 Nov 2013 07:51:07 +0000 (16:51 +0900)]
config: tizen: Enable CONFIG_BRCMFMAC for supporting WIFI on M0
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Beomho Seo [Tue, 5 Nov 2013 11:51:00 +0000 (20:51 +0900)]
mmc: sdhci-s3c: Revised sdhci_s3c_remove function.
Remove "return ret;" from "err_req_cd:".
Revised sdhci_s3c_remove function.
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
T.J. Purtell [Tue, 5 Nov 2013 07:52:10 +0000 (16:52 +0900)]
arm: Thumb=>ARM signal handling setup skips the a few instructions on Snapdragon S4/Krait
The Thumb instruction set include an If-Then instruction. If an ARM
function is registered as a signal handler, and that signal is
delivered inside the block of instructions follow the IT instruction,
some of the instructions at the beginning of the signal handler are
skipped. This occurs because the IT state bits of the Program Status
Register are not cleared by the kernel.
The ARM architecture reference specifies that the IT state bits in the
PSR must be all zeros in ARM mode or behavior is unspecified. On the
Qualcomm Snapdragon S4/Krait architecture CPUs the processor continues
to consider the IT state bits while in ARM mode. This makes it so
that some instructions are skipped by the CPU.
The relevant clipping of the ARM architecture document is available
here: https://www.dropbox.com/s/6hpwey3kklw20c1/ITState-ARM-Architecture.pdf
This manifests itself in code that uses a lot of signal handling
concurrently with complicated logic code compiled for thumb when the
signal handler compiled as ARM code. One example is the mono runtime.
It uses a signal based mechanism to perform stop the world operation
needed by its garbage collector. It is compiled for ARM and generates
ARM code, however, bionic (libc for android) is compiled for thumb.
During a test case involving native allocation in parallel with
garbage collection (signal handling), we found that the test case
would crash only when running on a Krait architecture CPU. We found
the preceding instructions before the signal to always point to
something inside an IT sequence, in this case the logic in the dlfree
merging of free heap blocks. After adding a sequence of NOPs to the
beginning of the signal handlers, the problem disappeared. We applied
the attached patch to the kernel on one of the Krait devices and found
that it also alleviated the crashes.
The patch simply clears the IT State bits regardless of if the signal
handler is an ARM/Thumb function. It also includes the same fix
applied to the arm64 compat handler.
Signed-off-by: T.J. Purtell <tj@mobisocial.us>
Sangjung Woo [Tue, 5 Nov 2013 02:08:34 +0000 (11:08 +0900)]
pwm: samsung: memory leak bugfix in pwm_samsung_free
There is certainly a kind of memory leak since allocated data (i.e.
chip_data) is set NULL before freeing it by calling devm_kfree().This
patch fixes the memory leak bug by modifying its call order.
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Reviewed-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Sangjung Woo [Tue, 5 Nov 2013 01:48:07 +0000 (10:48 +0900)]
ARM: dts: add clocks and enable pwm for exynos4
This patch adds clocks for PWM(Pulse width modulation) timer and enable
it.
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Laurent Pinchart [Wed, 17 Jul 2013 22:54:21 +0000 (00:54 +0200)]
pwm: Add PWM polarity flag macro for DT
Define a PWM_POLARITY_INVERTED macro in include/dt-bindings/pwm/pwm.h to
be used by device tree sources.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Tomasz Figa [Sat, 6 Apr 2013 00:54:30 +0000 (02:54 +0200)]
pwm: Remove superseded pwm-samsung-legacy driver
This patch removes the now unused pwm-samsung-legacy driver, which was
replaced by new pwm-samsung driver.
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Mark Brown <broonie@linaro.org>
Tested-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Tomasz Figa [Sat, 6 Apr 2013 00:40:36 +0000 (02:40 +0200)]
pwm: Add new pwm-samsung driver
This patch introduces new Samsung PWM driver, which is completely
rewritten to be multiplatform- and DeviceTree-aware.
In addition, remaining problems of old driver are fixed, such as:
- proper handling of hardware variants,
- synchronization on SMP systems,
- handling of boundary parameter values,
- hardware sharing with PWM clocksource driver,
- undefined state of PWM output after stopping PWM channel.
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Mark Brown <broonie@linaro.org>
Tested-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Tomasz Figa [Fri, 5 Apr 2013 23:08:03 +0000 (01:08 +0200)]
pwm: samsung: Rename to pwm-samsung-legacy
This patch renames the old pwm-samsung driver to pwm-samsung-legacy to
create place for the new, rewritten, DT-aware pwm-samsung driver.
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Mark Brown <broonie@linaro.org>
Tested-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Laurent Pinchart [Wed, 17 Jul 2013 22:54:22 +0000 (00:54 +0200)]
pwm: Use the DT macro directly when parsing PWM DT flags
Don't redefine a PWM_SPEC_POLARITY macro with a value identical to
PWM_POLARITY_INVERTED, use the PWM DT macro directly.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
H Hartley Sweeten [Tue, 11 Jun 2013 17:38:59 +0000 (10:38 -0700)]
pwm: Add sysfs interface
Add a simple sysfs interface to the generic PWM framework.
/sys/class/pwm/
`-- pwmchipN/ for each PWM chip
|-- export (w/o) ask the kernel to export a PWM channel
|-- npwm (r/o) number of PWM channels in this PWM chip
|-- pwmX/ for each exported PWM channel
| |-- duty_cycle (r/w) duty cycle (in nanoseconds)
| |-- enable (r/w) enable/disable PWM
| |-- period (r/w) period (in nanoseconds)
| `-- polarity (r/w) polarity of PWM (normal/inversed)
`-- unexport (w/o) return a PWM channel to the kernel
Based on work by Lars Poeschel.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Lars Poeschel <poeschel@lemonage.de>
Cc: Ryan Mallon <rmallon@gmail.com>
Cc: Rob Landley <rob@landley.net>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>