[RFC v2 8/9] kmsg: add ioctl for kmsg* devices operating on buffers

2015-10-12 Thread Paul Osmialowski
From: Marcin Niesluchowski There is no possibility to clear additional kmsg buffers, get size of them or know what size should be passed to read file operation (too small size causes it to retrun -EINVAL). Add following ioctls which solve those issues: * KMSG_CMD_GET_BUF_SIZE * KMSG_CMD_GET_READ

[RFC v2 9/9] kmsg: selftests

2015-10-12 Thread Paul Osmialowski
This patch adds selftests framework and four test scenarios for kmsg. The framework shape and code was inspired by similar selftests framework for kdbus. Signed-off-by: Paul Osmialowski --- samples/kmsg/kmsg-api.h| 44 +++ tools/testing/selftests/Makefile

[RFC v2 2/9] printk: add one function for storing log in proper format

2015-10-12 Thread Paul Osmialowski
From: Marcin Niesluchowski Preparation commit for future changes purpose. Separate code responsible for storing log message in proper format from operations on consoles by putting it in another function. Signed-off-by: Marcin Niesluchowski --- kernel/printk/printk.c | 183

[RFC v2 6/9] kmsg: add predefined _PID, _TID, _COMM keywords to kmsg* log dict

2015-10-12 Thread Paul Osmialowski
From: Marcin Niesluchowski kmsg* devices write operation wrote no dict along with message Due to usage of kmsg devices in userspace dict has been added identifying pid, tid and comm of writing process. Signed-off-by: Marcin Niesluchowski --- kernel/printk/printk.c | 40

[RFC v2 1/9] printk: move code regarding log message storing format

2015-10-12 Thread Paul Osmialowski
From: Marcin Niesluchowski Preparation commit for future changes purpose. Moves some code responsible for storing log messages in proper format. Signed-off-by: Marcin Niesluchowski --- kernel/printk/printk.c | 254 - 1 file changed, 127 insertio

[RFC v2 0/9] Additional kmsg devices

2015-10-12 Thread Paul Osmialowski
ers kmsg: add predefined _PID, _TID, _COMM keywords to kmsg* log dict kmsg: add ioctl for adding and deleting kmsg* devices kmsg: add ioctl for kmsg* devices operating on buffers Paul Osmialowski (1): kmsg: selftests Documentation/ioctl/ioctl-number.txt |1 + dri

[RFC v2 7/9] kmsg: add ioctl for adding and deleting kmsg* devices

2015-10-12 Thread Paul Osmialowski
From: Marcin Niesluchowski There is no possibility to add/delete kmsg* buffers from userspace. Adds following ioctl for main kmsg device adding and deleting additional kmsg devices: * KMSG_CMD_BUFFER_ADD * KMSG_CMD_BUFFER_DEL Signed-off-by: Marcin Niesluchowski --- Documentation/ioctl/ioctl-n

[RFC v2 4/9] kmsg: add additional buffers support to memory class

2015-10-12 Thread Paul Osmialowski
From: Marcin Niesluchowski Memory class does not support additional kmsg buffers. Add additional kmsg buffers support to: * devnode() callback of "mem" class * file operations of major "mem" character device Signed-off-by: Marcin Niesluchowski --- drivers/char/mem.c | 27 +

[RFC v2 3/9] kmsg: introduce additional kmsg devices support

2015-10-12 Thread Paul Osmialowski
From: Marcin Niesluchowski kmsg device provides operations on cyclic logging buffer used mainly by kernel but also in userspace by privileged processes. Additional kmsg devices keep the same log format but may be added dynamically with custom size. Signed-off-by: Marcin Niesluchowski --- fs/p

[RFC v2 5/9] kmsg: add function for adding and deleting additional buffers

2015-10-12 Thread Paul Osmialowski
From: Marcin Niesluchowski Additional kmsg buffers should be created and deleted dynamically. Adding two functions * kmsg_sys_buffer_add() creates additional kmsg buffer returning minor * kmsg_sys_buffer_del() deletes one based on provided minor Signed-off-by: Marcin Niesluchowski --- include

Re: [RFC v2 1/9] printk: move code regarding log message storing format

2015-10-13 Thread Paul Osmialowski
Hi Joe, Thanks for your comment. I'll consider that. Thanks, Paul On Mon, 12 Oct 2015, Joe Perches wrote: On Mon, 2015-10-12 at 11:29 +0200, Paul Osmialowski wrote: From: Marcin Niesluchowski Preparation commit for future changes purpose. Moves some code responsible for storin

Re: [PATCH 7/9] arm: twr-k70f120m: IOMUX driver for Kinetis SoC

2015-09-08 Thread Paul Osmialowski
Hi Linus, On Tue, 14 Jul 2015, Linus Walleij wrote: > OK... > > I want Shawn and Sascha to look at this as they worked with > other Freescale pin controllers. Especially I want to know if this > is a sibling to the other Freescale controllers or a separate hardware. > > If it is *not* a sibling

[PATCH 01/01] kdbus: Eliminate warning caused by lack of uapi/linux/kdbus.h inclusion

2015-09-08 Thread Paul Osmialowski
, it causes warning. Also when kdbus/connection.h is included alone, the same warning is shown since kdbus/connection.h includes kdbus/metadata.h. This patch adds missing inclusion. Signed-off-by: Paul Osmialowski --- ipc/kdbus/metadata.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ipc

[PATCH 00/01] kdbus: Eliminate warning caused by lack of uapi/linux/kdbus.h inclusion

2015-09-08 Thread Paul Osmialowski
during compilation. Paul Osmialowski (1): kdbus: Eliminate warning caused by lack of uapi/linux/kdbus.h inclusion ipc/kdbus/metadata.h | 1 + 1 file changed, 1 insertion(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[RFC v3 1/9] printk: extract kmsg-related routines from printk.c to kmsg.c

2015-10-19 Thread Paul Osmialowski
Following suggestions regarding printk.c code bloat, I prepared this patch which moves kmsg-related routines to new file, kmsg.c This is premilinary step needed for an attempt to extent kmsg interface with ability to dynamically create (and destroy) kmsg-like devices. Signed-off-by: Paul

[RFC v3 4/9] kmsg: add additional buffers support to memory class

2015-10-19 Thread Paul Osmialowski
From: Marcin Niesluchowski Memory class does not support additional kmsg buffers. Add additional kmsg buffers support to: * devnode() callback of "mem" class * file operations of major "mem" character device Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmia

[RFC v3 8/9] kmsg: add predefined _PID, _TID, _COMM keywords to kmsg* log dict

2015-10-19 Thread Paul Osmialowski
From: Marcin Niesluchowski kmsg* devices write operation wrote no dict along with message Due to usage of kmsg devices in userspace dict has been added identifying pid, tid and comm of writing process. Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski --- kernel/printk

[RFC v3 9/9] kmsg: selftests

2015-10-19 Thread Paul Osmialowski
This patch adds selftests framework and four test scenarios for kmsg. The framework shape and code was inspired by similar selftests framework for kdbus. Signed-off-by: Paul Osmialowski --- samples/kmsg/kmsg-api.h| 44 +++ tools/testing/selftests/Makefile

[RFC v3 6/9] kmsg: add ioctl for adding and deleting kmsg* devices

2015-10-19 Thread Paul Osmialowski
From: Marcin Niesluchowski There is no possibility to add/delete kmsg* buffers from userspace. Adds following ioctl for main kmsg device adding and deleting additional kmsg devices: * KMSG_CMD_BUFFER_ADD * KMSG_CMD_BUFFER_DEL Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski

[RFC v3 0/9] Additional kmsg devices

2015-10-19 Thread Paul Osmialowski
for adding and deleting additional buffers kmsg: add ioctl for adding and deleting kmsg* devices kmsg: add ioctl for kmsg* devices operating on buffers kmsg: add predefined _PID, _TID, _COMM keywords to kmsg* log dict Paul Osmialowski (2): printk: extract kmsg-related routines from pri

[RFC v3 7/9] kmsg: add ioctl for kmsg* devices operating on buffers

2015-10-19 Thread Paul Osmialowski
* KMSG_CMD_GET_READ_SIZE_MAX * KMSG_CMD_CLEAR Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski --- Documentation/ioctl/ioctl-number.txt | 2 +- include/uapi/linux/kmsg_ioctl.h | 15 ++ kernel/printk/kmsg.c | 57 ++-- 3 files changed

[RFC v3 2/9] printk: add one function for storing log in proper format

2015-10-19 Thread Paul Osmialowski
From: Marcin Niesluchowski Preparation commit for future changes purpose. Separate code responsible for storing log message in proper format from operations on consoles by putting it in another function. Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski --- kernel/printk

[RFC v3 3/9] kmsg: introduce additional kmsg devices support

2015-10-19 Thread Paul Osmialowski
-off-by: Paul Osmialowski --- fs/proc/kmsg.c | 4 +- kernel/printk/kmsg.c | 301 -- kernel/printk/printk.c | 317 ++--- kernel/printk/printk.h | 69 +++ 4 files changed, 431 insertions

[RFC v3 5/9] kmsg: add function for adding and deleting additional buffers

2015-10-19 Thread Paul Osmialowski
-by: Paul Osmialowski --- include/linux/printk.h | 9 + kernel/printk/kmsg.c | 107 +++-- kernel/printk/printk.c | 12 ++ kernel/printk/printk.h | 4 ++ 4 files changed, 129 insertions(+), 3 deletions(-) diff --git a/include/linux/printk.h

[RFC v4 0/9] Additional kmsg devices

2015-10-19 Thread Paul Osmialowski
kmsg: add predefined _PID, _TID, _COMM keywords to kmsg* log dict Paul Osmialowski (2): printk: extract kmsg-related routines from printk.c to kmsg.c kmsg: selftests Documentation/ioctl/ioctl-number.txt |1 + drivers/char/mem.c | 27 +- fs

[RFC v4 7/9] kmsg: add ioctl for kmsg* devices operating on buffers

2015-10-19 Thread Paul Osmialowski
* KMSG_CMD_GET_READ_SIZE_MAX * KMSG_CMD_CLEAR Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski --- Documentation/ioctl/ioctl-number.txt | 2 +- include/uapi/linux/kmsg_ioctl.h | 15 ++ kernel/printk/kmsg.c | 57 ++-- 3 files changed

[RFC v4 3/9] kmsg: introduce additional kmsg devices support

2015-10-19 Thread Paul Osmialowski
-off-by: Paul Osmialowski --- fs/proc/kmsg.c | 4 +- kernel/printk/kmsg.c | 301 -- kernel/printk/printk.c | 317 ++--- kernel/printk/printk.h | 69 +++ 4 files changed, 431 insertions

[RFC v4 6/9] kmsg: add ioctl for adding and deleting kmsg* devices

2015-10-19 Thread Paul Osmialowski
From: Marcin Niesluchowski There is no possibility to add/delete kmsg* buffers from userspace. Adds following ioctl for main kmsg device adding and deleting additional kmsg devices: * KMSG_CMD_BUFFER_ADD * KMSG_CMD_BUFFER_DEL Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski

[RFC v4 5/9] kmsg: add function for adding and deleting additional buffers

2015-10-19 Thread Paul Osmialowski
-by: Paul Osmialowski --- include/linux/printk.h | 9 + kernel/printk/kmsg.c | 107 +++-- kernel/printk/printk.c | 12 ++ kernel/printk/printk.h | 4 ++ 4 files changed, 129 insertions(+), 3 deletions(-) diff --git a/include/linux/printk.h

[RFC v4 8/9] kmsg: add predefined _PID, _TID, _COMM keywords to kmsg* log dict

2015-10-19 Thread Paul Osmialowski
From: Marcin Niesluchowski kmsg* devices write operation wrote no dict along with message Due to usage of kmsg devices in userspace dict has been added identifying pid, tid and comm of writing process. Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski --- kernel/printk

[RFC v4 9/9] kmsg: selftests

2015-10-19 Thread Paul Osmialowski
This patch adds selftests framework and four test scenarios for kmsg. The framework shape and code was inspired by similar selftests framework for kdbus. Signed-off-by: Paul Osmialowski --- samples/kmsg/kmsg-api.h| 44 +++ tools/testing/selftests/Makefile

[RFC v4 4/9] kmsg: add additional buffers support to memory class

2015-10-19 Thread Paul Osmialowski
From: Marcin Niesluchowski Memory class does not support additional kmsg buffers. Add additional kmsg buffers support to: * devnode() callback of "mem" class * file operations of major "mem" character device Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmia

[RFC v4 1/9] printk: extract kmsg-related routines from printk.c to kmsg.c

2015-10-19 Thread Paul Osmialowski
Following suggestions regarding printk.c code bloat, I prepared this patch which moves kmsg-related routines to new file, kmsg.c This is premilinary step needed for an attempt to extent kmsg interface with ability to dynamically create (and destroy) kmsg-like devices. Signed-off-by: Paul

[RFC v4 2/9] printk: add one function for storing log in proper format

2015-10-19 Thread Paul Osmialowski
From: Marcin Niesluchowski Preparation commit for future changes purpose. Separate code responsible for storing log message in proper format from operations on consoles by putting it in another function. Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski --- kernel/printk

Re: [RFC v4 9/9] kmsg: selftests

2015-10-20 Thread Paul Osmialowski
Hi Shuah, Thanks for your comments, On Mon, 19 Oct 2015, Shuah Khan wrote: --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -7,6 +7,7 @@ TARGETS += ftrace TARGETS += futex TARGETS += kcmp TARGETS += kdbus Doesn't look like this patch is based on linux-kself

Re: [RFC v3 8/9] kmsg: add predefined _PID, _TID, _COMM keywords to kmsg* log dict

2015-10-20 Thread Paul Osmialowski
Hi Andy, On Mon, 19 Oct 2015, Andy Lutomirski wrote: On Mon, Oct 19, 2015 at 5:58 AM, Paul Osmialowski wrote: From: Marcin Niesluchowski kmsg* devices write operation wrote no dict along with message Due to usage of kmsg devices in userspace dict has been added identifying pid, tid and

Re: [RFC v4 9/9] kmsg: selftests

2015-10-20 Thread Paul Osmialowski
Hi Shuah, I'm attaching proposal version which makes use of inline functions from kselftest.h. I hope you'll like it. Thanks, Paul On Tue, 20 Oct 2015, Paul Osmialowski wrote: Hi Shuah, Thanks for your comments, On Mon, 19 Oct 2015, Shuah Khan wrote: --- a/tools/testing

[RFC v5 6/8] kmsg: add ioctl for adding and deleting kmsg* devices

2015-10-27 Thread Paul Osmialowski
From: Marcin Niesluchowski There is no possibility to add/delete kmsg* buffers from userspace. Adds following ioctl for main kmsg device adding and deleting additional kmsg devices: * KMSG_CMD_BUFFER_ADD * KMSG_CMD_BUFFER_DEL Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski

[RFC v5 2/8] printk: add one function for storing log in proper format

2015-10-27 Thread Paul Osmialowski
From: Marcin Niesluchowski Preparation commit for future changes purpose. Separate code responsible for storing log message in proper format from operations on consoles by putting it in another function. Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski --- kernel/printk

[RFC v5 8/8] kmsg: selftests

2015-10-27 Thread Paul Osmialowski
This patch adds selftests framework and four test scenarios for kmsg. The framework shape and code was inspired by similar selftests framework for kdbus. Signed-off-by: Paul Osmialowski --- samples/kmsg/kmsg-api.h| 44 +++ tools/testing/selftests/Makefile

[RFC v5 5/8] kmsg: add function for adding and deleting additional buffers

2015-10-27 Thread Paul Osmialowski
-by: Paul Osmialowski --- include/linux/printk.h | 9 + kernel/printk/kmsg.c | 107 +++-- kernel/printk/printk.c | 12 ++ kernel/printk/printk.h | 4 ++ 4 files changed, 129 insertions(+), 3 deletions(-) diff --git a/include/linux/printk.h

[RFC v5 4/8] kmsg: add additional buffers support to memory class

2015-10-27 Thread Paul Osmialowski
From: Marcin Niesluchowski Memory class does not support additional kmsg buffers. Add additional kmsg buffers support to: * devnode() callback of "mem" class * file operations of major "mem" character device Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmia

[RFC v5 7/8] kmsg: add ioctl for kmsg* devices operating on buffers

2015-10-27 Thread Paul Osmialowski
* KMSG_CMD_GET_READ_SIZE_MAX * KMSG_CMD_CLEAR Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski --- Documentation/ioctl/ioctl-number.txt | 2 +- include/uapi/linux/kmsg_ioctl.h | 15 ++ kernel/printk/kmsg.c | 57 ++-- 3 files changed

[RFC v5 0/8] Additional kmsg devices

2015-10-27 Thread Paul Osmialowski
g log in proper format kmsg: introduce additional kmsg devices support kmsg: add additional buffers support to memory class kmsg: add function for adding and deleting additional buffers kmsg: add ioctl for adding and deleting kmsg* devices kmsg: add ioctl for kmsg* devices operating o

[RFC v5 3/8] kmsg: introduce additional kmsg devices support

2015-10-27 Thread Paul Osmialowski
-off-by: Paul Osmialowski --- fs/proc/kmsg.c | 4 +- kernel/printk/kmsg.c | 301 -- kernel/printk/printk.c | 317 ++--- kernel/printk/printk.h | 69 +++ 4 files changed, 431 insertions

[RFC v5 1/8] printk: extract kmsg-related routines from printk.c to kmsg.c

2015-10-27 Thread Paul Osmialowski
Following suggestions regarding printk.c code bloat, I prepared this patch which moves kmsg-related routines to new file, kmsg.c This is premilinary step needed for an attempt to extent kmsg interface with ability to dynamically create (and destroy) kmsg-like devices. Signed-off-by: Paul

Re: [PATCH 0/1] add devm_of_clk_get() and devm_of_clk_get_by_name() functions

2015-10-01 Thread Paul Osmialowski
Hi Stephen, On Wed, 30 Sep 2015, Stephen Boyd wrote: > In the pinctrl node we would have > > pinctrl { > compatible = "fsl,kenetis70-pinctrl"; > reg = <0x40049000 0x2000>; > clocks = <&sim SIM_CLK_SCGC5_PORTA>, <&sim SIM_CLK_SCGC5_PORTB>; > >

[PATCH v3] clk: add devm_of_clk_get() and devm_of_clk_get_by_name() functions

2015-10-01 Thread Paul Osmialowski
From: Paul Osmialowski These two functions are added to ease management of clocks obtained from OF device nodes. They are particulary useful while iterating over DT subnodes using e.g. for_each_child_of_node(dev->of_node, child) in order do get resources (i.e. clocks) for subdevices defined

[PATCH] mmc: sdhci-s3c: solve problem with sleeping in atomic context

2015-01-16 Thread Paul Osmialowski
ecomes stable. Signed-off-by: Paul Osmialowski --- drivers/mmc/host/sdhci-s3c.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index c45b893..115f556 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhc

[RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-16 Thread Paul Osmialowski
and regmap-i2c make use of exposed i2c transfer preparation and unpreparation stages. Note that this change does not require modifications in other places. Signed-off-by: Paul Osmialowski --- drivers/base/regmap/internal.h | 2 + drivers/base/regmap/regmap-i2c.c | 18 +++ drivers/bas

[RFC 3/3] i2c: s3c2410: Adopt i2c-s3c2410 driver for new enhancement of i2c API

2015-01-16 Thread Paul Osmialowski
This adopts i2c-s3c2410 driver for new enhancement of i2c API that exposes preparation and unpreparation stages of i2c transfer. Signed-off-by: Paul Osmialowski --- drivers/i2c/busses/i2c-s3c2410.c | 69 1 file changed, 63 insertions(+), 6 deletions

[RFC 1/3] i2c: Enhancement of i2c API to address circular lock dependency problem

2015-01-16 Thread Paul Osmialowski
uire modifications in other places: old behaviour is kept preserved. Anyone who requires this new way of using i2c transfer can adapt their drivers voluntarily. Separate commit adapts regmap to use this new feature. Signed-off-by: Paul Osmialowski --- Documentation/i2c/writing-clients | 15 +++

Re: [RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-16 Thread Paul Osmialowski
On Fri, 16 Jan 2015, Mark Brown wrote: On Fri, Jan 16, 2015 at 03:39:53PM +0100, Paul Osmialowski wrote: This uses the enhancement of i2c API in order to address following problem caused by circular lock dependency: Please don't just dump enormous backtraces into commit messag

Re: [RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-19 Thread Paul Osmialowski
On Fri, 16 Jan 2015, Mark Brown wrote: On Fri, Jan 16, 2015 at 06:36:14PM +0100, Paul Osmialowski wrote: On Fri, 16 Jan 2015, Mark Brown wrote: I don't know what this means, sorry. I'm also very worried about the fact that this is being discussed purely in terms of I2C - why

[PATCH] i2c: s3c2410: fix ABBA deadlock by keeping clock prepared

2015-01-19 Thread Paul Osmialowski
;ve replaced this call with clk_disable() and I've added clk_unprepare() call in s3c24xx_i2c_remove(). The s3c24xx_i2c_xfer() function now uses clk_enable() instead of clk_prepare_enable() (and clk_disable() instead of clk_unprepare_disable()). Signed-off-by: Paul Osmialowski --- drive

[PATCH 4/9] arm: allow copying of vector table to internal SRAM memory

2015-06-23 Thread Paul Osmialowski
RAM memory, controlled by Bit 29 in the Vector Table Base register. This implies that the OS vector table needs to be copied to the internal RAM. New option CONFIG_COPY_VECTOR_TABLE_TO_SRAM_ADDR allows specification of the desired destination for the OS vector table. Signed-off-by: Paul Osmialowski

[PATCH 2/9] arm: do not place huge encoder tables on stack when it is too small

2015-06-23 Thread Paul Osmialowski
Since stack on Cortex-M3 is too small, we need configuration option to avoid using it for huge encoder tables of zlib. Signed-off-by: Paul Osmialowski --- arch/arm/Kconfig-nommu | 4 lib/zlib_inflate/inflate.c | 5 + 2 files changed, 9 insertions(+) diff --git a/arch/arm/Kconfig

[PATCH 5/9] arm: twr-k70f120m: basic support for Kinetis TWR-K70F120M

2015-06-23 Thread Paul Osmialowski
This one is inspired a serie by commits published on Emcraft git repo: https://github.com/EmcraftSystems/linux-emcraft.git Entry commit: f014da1df860ad702d923c95cb97e068bd302cb0 RT75957. twr-k70f120m: basic support by: Alexander Potashev Signed-off-by: Paul Osmialowski --- Documentation

[PATCH 1/9] arm: select different compiler flags for ARM CortexM3

2015-06-23 Thread Paul Osmialowski
ving only "-mcpu=cortex-m3" to make sure only the correct instructions will be generated. by: Sergei Poselenov I reworked these patches to make them less intrusive. Signed-off-by: Paul Osmialowski --- arch/arm/Kconfig| 2 +- arch/arm/Makefile | 1 + arch/arm/mm/Kconfig | 11 +++

[PATCH 9/9] arm: twr-k70f120m: extend Freescale lpuart driver with ability to support Kinetis SoC

2015-06-23 Thread Paul Osmialowski
enabling tx DMA resulted in messy output, so I didn't configure it in the .dts file - however nothing in the code prevents one from doing so. Also note that original reference UART driver did not implement tx DMA at all. Signed-off-by: Paul Osmialowski --- .../devicetree/bindings/serial/fsl-lpuar

[PATCH 8/9] arm: twr-k70f120m: extend Freescale eDMA driver with ability to support Kinetis SoC

2015-06-23 Thread Paul Osmialowski
. Signed-off-by: Paul Osmialowski --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 38 +- arch/arm/Kconfig | 4 ++ arch/arm/boot/dts/kinetis.dtsi | 34 + arch/arm/mach-kinetis/include/mach/memory.h| 61

[PATCH 0/9] [New BSP] Add initial support for Freescale Kinetis TWR-K70F120M development kit

2015-06-23 Thread Paul Osmialowski
velopment board - I can't imagine myself doing all this stuff without it. Paul Osmialowski (9): arm: select different compiler flags for ARM CortexM3 arm: do not place huge encoder tables on stack when it is too small arm: add call to CPU idle quirks handler arm: allow copying of vect

[PATCH 3/9] arm: add call to CPU idle quirks handler

2015-06-23 Thread Paul Osmialowski
Some SoCs need additional actions to be performed after arch idle, e.g. Kinetis requires invalidation of the I/D bus cache. Such handler could be held in provided header file. Signed-off-by: Paul Osmialowski --- arch/arm/Kconfig | 7 +++ arch/arm/kernel/process.c | 7 +++ 2

[PATCH 7/9] arm: twr-k70f120m: IOMUX driver for Kinetis SoC

2015-06-23 Thread Paul Osmialowski
This is very cheap and simple implementation of pinctrl driver for Kinetis SoC - its primary role is to provide means for enabling UART fuctionality on I/O PORT_E which will be utilized by the commits yet to come. Signed-off-by: Paul Osmialowski --- .../bindings/pinctrl/fsl,kinetis-pinctrl.txt

[PATCH 6/9] arm: twr-k70f120m: clock source drivers for Kinetis SoC

2015-06-23 Thread Paul Osmialowski
Based on K70P256M150SF3RM.pdf Signed-off-by: Paul Osmialowski --- .../devicetree/bindings/clock/kinetis-clock.txt| 25 ++ .../bindings/timer/fsl,kinetis-pit-timer.txt | 18 ++ arch/arm/Kconfig | 1 + arch/arm/boot/dts/kinetis-twr-k70f120m.dts

Re: [PATCH 5/9] arm: twr-k70f120m: basic support for Kinetis TWR-K70F120M

2015-06-23 Thread Paul Osmialowski
Hi Arnd, Thanks for all of your input. Your comments will all be considered during my works on the second iteration of this patchset. On Wed, 24 Jun 2015, Arnd Bergmann wrote: On Tuesday 23 June 2015 23:19:43 Paul Osmialowski wrote: @@ -1740,7 +1752,7 @@ source "mm/Kconfig&quo

Re: [PATCH 1/9] arm: select different compiler flags for ARM CortexM3

2015-06-23 Thread Paul Osmialowski
+0200, Paul Osmialowski wrote: This one is inspired by two commits published on Emcraft git repo: https://github.com/EmcraftSystems/linux-emcraft.git 1) 6302b692f570ff9d5645a6e72c11f87b0c1aa409 RT #62654. Fixed kernel crashes while running httpd by enabling "-mfix-cortex-m3-ldrd"

Re: [PATCH 6/9] arm: twr-k70f120m: clock source drivers for Kinetis SoC

2015-06-23 Thread Paul Osmialowski
Hi Stephen, Thanks for the valuable input - all of those points are now on my checklist for the work on the second iteration of this patchset. On Tue, 23 Jun 2015, Stephen Boyd wrote: On 06/23/2015 02:19 PM, Paul Osmialowski wrote: diff --git a/drivers/clk/clk-kinetis.c b/drivers/clk/clk

Re: [PATCH 8/9] arm: twr-k70f120m: extend Freescale eDMA driver with ability to support Kinetis SoC

2015-06-24 Thread Paul Osmialowski
Hi Vinod, Tanks for your comments. Actually, fsl-lpuart driver is done the way you propose to rework this one. I'll consider this during my work on the second iteration. On Wed, 24 Jun 2015, Vinod Koul wrote: On Tue, Jun 23, 2015 at 11:19:46PM +0200, Paul Osmialowski wrote: Surpris

Re: [PATCH 7/9] arm: twr-k70f120m: IOMUX driver for Kinetis SoC

2015-06-24 Thread Paul Osmialowski
Hi Paul, Thanks for your comments. I'll make it tristate. On Wed, 24 Jun 2015, Paul Bolle wrote: On Tue, 2015-06-23 at 23:19 +0200, Paul Osmialowski wrote: --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig +config PINCTRL_KINETIS + bool "Kinet

[RFC 8/8] kdbus: Ability to run kdbus test by executable binary name

2015-07-08 Thread Paul Osmialowski
With this applied, you can do following: $ cp kdbus-test daemon $ cp kdbus-test send Then run 'daemon' in one shell session: $ ./daemon --bus test ...and 'send' in another: $ ./send --bus test Useful for testing features introduced by previous patches. Signed-off-

[RFC 4/8] lsm: smack: smack callbacks for kdbus security hooks

2015-07-08 Thread Paul Osmialowski
(branch: kdbus-lsm-v4.for-systemd-v212) commit: 103c26fd27d1ec8c32d85dd3d85681f936ac66fb Signed-off-by: Karol Lewandowski Signed-off-by: Paul Osmialowski --- security/smack/smack_lsm.c | 68 ++ 1 file changed, 68 insertions(+) diff --git a/security/smack

[RFC 3/8] lsm: kdbus security hooks

2015-07-08 Thread Paul Osmialowski
-systemd-v212) commit: a9fe4c33b6e5ab25a243e0590df406aabb6add12 Signed-off-by: Karol Lewandowski Signed-off-by: Paul Moore Signed-off-by: Paul Osmialowski --- include/linux/lsm_hooks.h | 67 ++ include/linux/security.h | 99 +++ security

[RFC 6/8] kdbus: TEST_CREATE_CONN now does no depend on TEST_CREATE_BUS

2015-07-08 Thread Paul Osmialowski
s connection to it. This patch adds the missing ability to specify TEST_CREATE_CONN alone. It will be used by a new test case (will be added by separate commit) which is supposed to connect to already started test-daemon case. Signed-off-by: Paul Osmialowski --- tools/testing/selftests/kdbus/kd

[RFC 5/8] kdbus: use LSM hooks in kdbus code

2015-07-08 Thread Paul Osmialowski
Originates from: https://github.com/lmctl/kdbus.git (branch: kdbus-lsm-v4.for-systemd-v212) commit: aa0885489d19be92fa41c6f0a71df28763228a40 Signed-off-by: Karol Lewandowski Signed-off-by: Paul Osmialowski --- ipc/kdbus/bus.c| 12 ++- ipc/kdbus/bus.h| 3 +++ ipc/kdbus

[RFC 1/8] lsm: make security_file_receive available for external modules

2015-07-08 Thread Paul Osmialowski
From: Karol Lewandowski This is required for using filedesc related LSM hooks in kdbus code if it is built as a module. Signed-off-by: Karol Lewandowski --- security/security.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/security.c b/security/security.c index 595fffa..b1e935b

[RFC 7/8] kdbus: selftests extended

2015-07-08 Thread Paul Osmialowski
ges in almost all of the test case files. Signed-off-by: Karol Lewandowski Signed-off-by: Paul Osmialowski --- tools/testing/selftests/kdbus/Makefile | 1 + tools/testing/selftests/kdbus/kdbus-test.c | 11 +++- tools/testing/selftests/kdbus/kdbus-test.h | 1 + tools/tes

[RFC 0/8] Introduce LSM to KDBUS

2015-07-08 Thread Paul Osmialowski
ocess. Karol Lewandowski (1): lsm: make security_file_receive available for external modules Paul Osmialowski (7): lsm: smack: Make ipc/kdbus includes visible so smack callbacks could see them lsm: kdbus security hooks lsm: smack: smack callbacks for kdbus security hooks kdbus: us

[RFC 2/8] lsm: smack: Make ipc/kdbus includes visible so smack callbacks could see them

2015-07-08 Thread Paul Osmialowski
Signed-off-by: Paul Osmialowski --- security/smack/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/smack/Makefile b/security/smack/Makefile index ee2ebd5..bd6927c 100644 --- a/security/smack/Makefile +++ b/security/smack/Makefile @@ -6,3 +6,5 @@ obj

Re: [RFC 5/8] kdbus: use LSM hooks in kdbus code

2015-07-08 Thread Paul Osmialowski
Returning EPERM can be misleading. From 9c37667302f104e0f412ba2727c4d3df81fb59da Mon Sep 17 00:00:00 2001 From: Paul Osmialowski Date: Tue, 26 May 2015 12:00:33 +0200 Subject: [RFC 5/8] kdbus: use LSM hooks in kdbus code Originates from: https://github.com/lmctl/kdbus.git (branch: kdbus-lsm-v4.for-sy

Re: [RFC 8/8] kdbus: Ability to run kdbus test by executable binary name

2015-07-08 Thread Paul Osmialowski
Hi Greg, Thanks for your comments, On Wed, 8 Jul 2015, Greg Kroah-Hartman wrote: Why not create symlinks automatically so this works without having to manually run 'cp'? It can be anything on which one can apply security label. Symlinks can do. But really, is spelling out the command line

Re: [RFC 5/8] kdbus: use LSM hooks in kdbus code

2015-07-09 Thread Paul Osmialowski
On Thu, 9 Jul 2015, Sergei Zviagintsev wrote: Hi, On Wed, Jul 08, 2015 at 02:12:03PM +0200, Paul Osmialowski wrote: [...] + ret = security_kdbus_bus_alloc(b); + if (ret) { + goto exit_unref; + } checkpatch.pl will complain about this It should but it

Re: [PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC

2015-07-28 Thread Paul Osmialowski
(cover as much subsystems as possible) and then at some stage switch to intensive approach. This board is a somewhat huge monster (for a Cortex-M4 SoC) and there will be a lot of coding opportunity in this field in the future. Thanks, Paul On Tue, 28 Jul 2015, Michael Turquette wrote: > Quo

Re: [PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC

2015-07-30 Thread Paul Osmialowski
ote that fec (ethernet device) driver is connected directly to osc0 (though clock gate, you can see this CG attached to osc0 on the diagram too) - to control this gate I need to access SIM device registers, so it should be covered by the same fsl,kinetis-sim driver. On Wed, 29 Jul 2015, Michael Tu

Re: [PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC

2015-07-26 Thread Paul Osmialowski
ma-names = "rx"; status = "disabled"; }; }; }; As you can see, mcg part is not required anymore. I guess that the approach above would require split into soc-specific and board-specific part (as I said, dividers arrangement is s

[no subject]

2015-03-25 Thread Paul Osmialowski
This humble patch for linux-next is a first small step towards further attempts to add LSM hooks for kdbus. In order to implement useful callbacks within given LSM (SMACK, SELinux) knowledge about kdbus structures defined in these headers must be easily accessible. Therefore these headers must be

[RFC PATCH] kdbus: move all kdbus headers to include/linux/kdbus

2015-03-25 Thread Paul Osmialowski
These headers are required to implement LSM hooks for kdbus and possibly other things that might deal with kdbus. Signed-off-by: Paul Osmialowski --- include/linux/kdbus/bus.h| 101 +++ include/linux/kdbus/connection.h | 257 +++ include

Re: [RFC PATCH] kdbus: move all kdbus headers to include/linux/kdbus

2015-03-25 Thread Paul Osmialowski
Hi, First of all, I'm sorry for this no-subject covering letter. Accidents never happen only in a perfect world. On Wed, 25 Mar 2015, David Herrmann wrote: I'd prefer if we only move the required structure definitions into a separate header. There is no reason to export all internal entry p

[PATCH RESEND] mmc: sdhci-s3c: solve problem with sleeping in atomic context

2015-02-04 Thread Paul Osmialowski
ecomes stable. Signed-off-by: Paul Osmialowski --- drivers/mmc/host/sdhci-s3c.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index c45b893..115f556 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhc

Re: [RFC 2/3] regmap: Use the enhancement of i2c API to address circular dependency problem

2015-01-20 Thread Paul Osmialowski
On Mon, 19 Jan 2015, Mark Brown wrote: On Mon, Jan 19, 2015 at 10:31:22AM +0100, Paul Osmialowski wrote: On Fri, 16 Jan 2015, Mark Brown wrote: What I'm saying is that I want to understand this change from a point of view that isn't tied to I2C - at the regmap level what is

[PATCH v2 1/9] arm: allow copying of vector table to internal SRAM memory

2015-06-30 Thread Paul Osmialowski
RAM memory, controlled by Bit 29 in the Vector Table Base register. This implies that the OS vector table needs to be copied to the internal RAM. New option CONFIG_COPY_VECTOR_TABLE_TO_SRAM_ADDR allows specification of the desired destination for the OS vector table. Signed-off-by: Paul Osmialowski

[PATCH v2 2/9] arm: twr-k70f120m: basic support for Kinetis TWR-K70F120M

2015-06-30 Thread Paul Osmialowski
This one was inspired by a serie of commits published on Emcraft git repo: https://github.com/EmcraftSystems/linux-emcraft.git Entry commit: f014da1df860ad702d923c95cb97e068bd302cb0 RT75957. twr-k70f120m: basic support by: Alexander Potashev Signed-off-by: Paul Osmialowski

[PATCH v2 8/9] arm: twr-k70f120m: extend Freescale lpuart driver with ability to support Kinetis SoC

2015-06-30 Thread Paul Osmialowski
: Paul Osmialowski --- .../devicetree/bindings/serial/fsl-lpuart.txt | 6 +- drivers/tty/serial/fsl_lpuart.c| 90 ++ 2 files changed, 80 insertions(+), 16 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/fsl-lpuart.txt b/Documentation

[PATCH v2 9/9] arm: twr-k70f120m: use Freescale lpuart driver with Kinetis SoC

2015-06-30 Thread Paul Osmialowski
Note that enabling tx DMA resulted in messy output, so I didn't configure it in the .dts file - however nothing in the code prevents one from doing so. Also note that original reference UART driver from Emcraft did not implement tx DMA at all. Signed-off-by: Paul Osmialowski --- arch/arm

[PATCH v2 4/9] arm: twr-k70f120m: timer driver for Kinetis SoC

2015-06-30 Thread Paul Osmialowski
Based on legacy pre-OF code by Alexander Potashev Signed-off-by: Paul Osmialowski --- .../bindings/timer/fsl,kinetis-pit-timer.txt | 50 arch/arm/Kconfig | 1 + arch/arm/boot/dts/kinetis-twr-k70f120m.dts | 4 + arch/arm/boot/dts

[PATCH v2 5/9] arm: twr-k70f120m: IOMUX driver for Kinetis SoC

2015-06-30 Thread Paul Osmialowski
This is a very cheap and simple implementation of pinctrl driver for Kinetis SoC - its primary role is to provide means for enabling UART fuctionality on I/O PORT_E which will be utilized by the commits yet to come. Signed-off-by: Paul Osmialowski --- .../bindings/pinctrl/fsl,kinetis

[PATCH v2 6/9] arm: twr-k70f120m: extend Freescale eDMA driver with the ability to support Kinetis SoC

2015-06-30 Thread Paul Osmialowski
Surprisingly small amount of work was required in order to extend already existing eDMA driver with the support for Kinetis SoC architecture. Signed-off-by: Paul Osmialowski --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 38 ++- drivers/dma/fsl-edma.c

[PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC

2015-06-30 Thread Paul Osmialowski
Based on K70P256M150SF3RM.pdf K70 Sub-Family Reference Manual, Rev. 3. Signed-off-by: Paul Osmialowski --- .../devicetree/bindings/clock/kinetis-clock.txt| 63 +++ arch/arm/boot/dts/kinetis.dtsi | 36 ++ drivers/clk/Makefile | 1

[PATCH v2 7/9] arm: twr-k70f120m: use Freescale eDMA driver with Kinetis SoC

2015-06-30 Thread Paul Osmialowski
Note that is needed (which is denoted by CONFIG_NEED_MACH_MEMORY_H) as it provides macros required for proper operation of DMA allocation functions. Signed-off-by: Paul Osmialowski --- arch/arm/Kconfig| 4 ++ arch/arm/boot/dts/kinetis.dtsi | 34

[PATCH v2 0/9] [New BSP] Add initial support for Freescale Kinetis TWR-K70F120M development kit

2015-06-30 Thread Paul Osmialowski
all occurences of CONFIG_ARCH_KINETIS from fsl-edma.c - now it looks more like fsl-lpuart driver (boolean 'kinetis' field in the main driver structure). Paul Osmialowski (9): arm: allow copying of vector table to internal SRAM memory arm: twr-k70f120m: basic support for Kinetis

  1   2   >