[PATCH 12/14] twl4030_charger: add ac/mode to match usb/mode

2015-03-22 Thread NeilBrown
From: NeilBrown This allows AC charging to be turned off, much like usb charging. "continuous" mode is not available though. Acked-by: Pavel Machek Signed-off-by: NeilBrown --- .../ABI/testing/sysfs-class-power-twl4030 | 10 ++ drivers/power/twl4030_charger.c

[PATCH 05/14] twl4030_charger: split uA calculation into a function.

2015-03-22 Thread NeilBrown
From: NeilBrown We will need this calculation in other places, so create functions to map between register value and uA value. Acked-by: Pavel Machek Signed-off-by: NeilBrown --- drivers/power/twl4030_charger.c | 48 --- 1 file changed, 35 insertions(+),

[PATCH 09/14] twl4030_charger: only draw USB current as negotiated with host.

2015-03-22 Thread NeilBrown
From: NeilBrown If the phy has been told what current it can draw, it tells us and now we use that number. Note that 'vbus_draw' is in mA, while usb_cur is in uA. Acked-by: Pavel Machek Signed-off-by: NeilBrown --- drivers/power/twl4030_charger.c |5 + 1 file changed, 5 insertions(+)

[PATCH v12] sched/deadline: support dl task migration during cpu hotplug

2015-03-22 Thread Wanpeng Li
I observe that dl task can't be migrated to other cpus during cpu hotplug, in addition, task may/may not be running again if cpu is added back. The root cause which I found is that dl task will be throtted and removed from dl rq after comsuming all budget, which leads to stop task can't pick it up

[PATCH 11/14] twl4030_charger: add software controlled linear charging mode.

2015-03-22 Thread NeilBrown
From: NeilBrown Add a 'continuous' option for usb charging which enables the "linear" charging mode of the twl4030. Linear charging does a good job with not-so-reliable power sources. Auto mode does not work well as it switches off when voltage drops momentarily. Care must be taken not to over-

[PATCH 03/14] twl4030_charger: use runtime_pm to keep usb phy active while charging.

2015-03-22 Thread NeilBrown
From: NeilBrown The twl4030 usb phy needs to be active while we are using the USB VBUS as a current source for charging. In particular, the usb3v1 regulator must be enabled and the PHY_PWR_PHYPWD bit must be set to keep the phy powered. commit ab37813f4093a5f59cb8e083cde277289dc72ed3 twl4030

[PATCH 02/14] twl4030_charger: use devres for power_supply_register and kzalloc.

2015-03-22 Thread NeilBrown
From: NeilBrown Final allocations/registrations are now managed by devres. Signed-off-by: NeilBrown --- drivers/power/twl4030_charger.c | 32 +--- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/drivers/power/twl4030_charger.c b/drivers/power/twl403

[PATCH 04/14] twl4030_charger: trust phy to determine when USB power is available.

2015-03-22 Thread NeilBrown
From: NeilBrown The usb phy driver already determines when VBUS is available, so repeating the test in the charger driver is pointless duplication. On probe, process the last event from the phy, and from then on, do whatever the phy tells us without double-checking. Signed-off-by: NeilBrown --

[PATCH 01/14] twl4030_charger: use devm_request_threaded_irq

2015-03-22 Thread NeilBrown
From: NeilBrown This simplifies the error paths. Signed-off-by: NeilBrown --- drivers/power/twl4030_charger.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/power/twl4030_charger.c b/drivers/power/twl4030_charger.c index b07f4e2f2dde..58996d25

[PATCH 00/14] Enhance twl4030_charger functionality. - V2

2015-03-22 Thread NeilBrown
Hi Sebastian, here is V2 of my patches to improve the twl4030 charger. They include improved documentation and removal of changes to the CVENAC bit which I didn't properly understand. One patch needs to make a change in drivers/mfd, and that has been acked by Lee Jones. Summary from before:

[PATCH] udf: return correct errno for udf_update_inode()

2015-03-22 Thread Changwoo Min
Instead of -ENOMEM, properly return -EIO udf_update_inode() error, similar/consistent to the rest of filesystems. Signed-off-by: Changwoo Min --- fs/udf/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/udf/inode.c b/fs/udf/inode.c index a445d59..c758023 100644 ---

Re: [PATCH 13/15] twl4030_charger: add ac/mode to match usb/mode

2015-03-22 Thread NeilBrown
On Fri, 6 Mar 2015 23:59:04 +0200 Grazvydas Ignotas wrote: > On Tue, Feb 24, 2015 at 6:33 AM, NeilBrown wrote: > > This allows AC charging to be turned off, much like usb charging. > > > > "continuous" (aka "linear") mode maps to the CVENAC (constant voltage) > > feature of the twl4030. > > Are

[PATCH 3/3] clk: ti: Implement FAPLL set_rate for the PLL

2015-03-22 Thread Tony Lindgren
Since we have a fractional divider for the synthesizer, just implement a simple multiply logic for the PLL. It seems the PLL divider needs to have also the multiplier set for the PLL to lock. At least I have not yet figured out if divided rates are doable. So let's just ignore the PLL divider for

[PATCH 1/3] clk: ti: Fix FAPLL recalc_rate for rounding errors

2015-03-22 Thread Tony Lindgren
We need to round the calculated value to have it match the requested rate. While at it, let's fix a typo and use a define for SYNTH_MAX_DIV_M as we will need it in later patches for set_rate. And let's remove two unused includes. Cc: Brian Hutchinson Cc: Matthijs van Duin Cc: Tero Kristo Sign

[PATCH 2/2] twl4030_charger: find associated phy by more reliable means.

2015-03-22 Thread NeilBrown
From: NeilBrown twl4030_charger currently finds the associated phy using usb_get_phy() which will return the first USB2 phy. If your platform has multiple such phys (as mine does), this is not reliable (and reliably fails on the GTA04). Change to use devm_usb_get_phy_by_node(), having found the

[PATCH 1/2] usb: phy: Add interface to get phy give of device_node.

2015-03-22 Thread NeilBrown
From: NeilBrown Split the "get phy from device_node" functionality out of "get phy by phandle" so it can be used directly. This is useful when a battery-charger is intimately associated with a particular phy but handled by a separate driver. The charger can find the device_node based on sibling

[PATCH 0/2] Allow twl4030_charger to find phy reliably.

2015-03-22 Thread NeilBrown
The twl4030_charger is physically paired with the twl4030 USB phy, so the drivers need to be able to reliably find each other. twl4030_charger currently uses usb_get_phy(), which works if there is only one phy to choose from, but is not reliable in more complex configurations. These patches add a

Re: [PATCH v2] [media] mantis: fix error handling

2015-03-22 Thread Dan Carpenter
Good, but still a couple nits. On Sun, Mar 22, 2015 at 06:16:18PM +0100, Silvan Jegen wrote: > --- a/drivers/media/pci/mantis/mantis_cards.c > +++ b/drivers/media/pci/mantis/mantis_cards.c > @@ -170,7 +170,7 @@ static int mantis_pci_probe(struct pci_dev *pdev, > if (mantis == NULL) { >

[PATCH] driver core: Implement device property accessors through fwnode ones

2015-03-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Now that the ACPI companions of devices are pointed to by the fwnode field in struct device, the device_property_*() accessor functions can be modified to use their fwnode_property_*() counterparts internally with minimum extra overhead in the IS_ENABLED(CONFIG_OF) case, s

Re: [PATCH 08/18] net: dsa: mv88e6xxx: Add Hardware bridging support

2015-03-22 Thread Guenter Roeck
On 03/22/2015 03:24 PM, David Miller wrote: From: Andrew Lunn Date: Sun, 22 Mar 2015 21:06:00 +0100 Hi Guenter +static int _mv88e6xxx_atu_cmd(struct dsa_switch *ds, int fid, u16 cmd) +{ + int ret; + + ret = _mv88e6xxx_reg_write(ds, REG_GLOBAL, 0x01, fid); + if (ret < 0) +

[PATCH 2/3] clk: ti: Implement FAPLL set_rate for the synthesizer

2015-03-22 Thread Tony Lindgren
We can pretty much get any rate out of the FAPLL because of the fractional divider. Let's first try just adjusting the post divider, and if that is not enough, then reprogram both the fractional divider and the post divider. Let's also add a define for the fixed SYNTH_PHASE_K instead of using 8.

[PATCH 0/3] Implement set_rate for FAPLL on dm816x

2015-03-22 Thread Tony Lindgren
Hi all, Here are few patches to implement set_rate for the FAPLL found on dm816x. Regards, Tony Tony Lindgren (3): clk: ti: Fix FAPLL recalc_rate for rounding errors clk: ti: Implement FAPLL set_rate for the synthesizer clk: ti: Implement FAPLL set_rate for the PLL drivers/clk/ti/fapll

Re: [PATCH 08/18] net: dsa: mv88e6xxx: Add Hardware bridging support

2015-03-22 Thread Guenter Roeck
On 03/22/2015 01:59 PM, Andrew Lunn wrote: On Sun, Mar 22, 2015 at 01:45:49PM -0700, Guenter Roeck wrote: On 03/22/2015 01:06 PM, Andrew Lunn wrote: Hi Guenter +static int _mv88e6xxx_atu_cmd(struct dsa_switch *ds, int fid, u16 cmd) +{ + int ret; + + ret = _mv88e6xxx_reg_write(ds,

[PATCH 2/5] usb: phy: twl4030: allow charger to see usb current draw limits.

2015-03-22 Thread NeilBrown
From: NeilBrown The charger needs to know when a USB gadget has been enumerated and what the agreed maximum current was so that it can adjust charging accordingly. So define a "set_power()" function to record the permitted draw, and pass a pointer to that when sending USB_EVENT_ENUMERATED notifi

[PATCH 1/5] usb: phy: twl4030: make runtime pm more reliable.

2015-03-22 Thread NeilBrown
From: NeilBrown A construct like: if (pm_runtime_suspended(twl->dev)) pm_runtime_get_sync(twl->dev); is against the spirit of the runtime_pm interface as it makes the internal refcounting useless. In this case it is also racy, particularly as 'put_autosuspend' is use to

[PATCH 4/5] usb: phy: twl4030: add support for reading restore on ID pin.

2015-03-22 Thread NeilBrown
From: NeilBrown The twl4030 phy can measure, with low precision, the resistance-to-ground of the ID pin. Add a function to read the value, and export the result via sysfs. If the read fails, which it does sometimes, try again in 50msec. Acked-by: Pavel Machek Signed-off-by: NeilBrown --- ..

[PATCH 5/5] usb: phy: twl4030: test ID resistance to see if charger is present.

2015-03-22 Thread NeilBrown
From: NeilBrown If an 'A' plug is inserted, ID should be pulled to ground. If a 'B' plug, then ID should be floating. If an Accessory Charger Adapter is inserted, then ID will be neither grounded nor floating. In this case tell the USB subsystem that it is an A plug, and the battery charging su

[PATCH 3/5] usb: phy: twl4030: add ABI documentation

2015-03-22 Thread NeilBrown
From: NeilBrown This driver device one local attribute: vbus. Describe that in Documentation/ABI/testing/sysfs-platform/twl4030-usb. Signed-off-by: NeilBrown --- .../ABI/testing/sysfs-platform-twl4030-usb |8 1 file changed, 8 insertions(+) create mode 100644 Documentatio

[PATCH 0/5] Enhancements to twl4030 phy to support better charging - V2

2015-03-22 Thread NeilBrown
Hi Kishon, I wonder if you could queue the following for the next merge window. They allow the twl4030 phy to provide more information to the twl4030 battery charger. There are only minimal changes since the first version, particularly documentation has been improved. Thanks, NeilBrown ---

Re: [PATCH 08/18] net: dsa: mv88e6xxx: Add Hardware bridging support

2015-03-22 Thread David Miller
From: Andrew Lunn Date: Sun, 22 Mar 2015 21:06:00 +0100 > Hi Guenter > >> +static int _mv88e6xxx_atu_cmd(struct dsa_switch *ds, int fid, u16 cmd) >> +{ >> +int ret; >> + >> +ret = _mv88e6xxx_reg_write(ds, REG_GLOBAL, 0x01, fid); >> +if (ret < 0) >> +return ret; > > Pleas

Re: questions to planned lock-functionality for vts

2015-03-22 Thread Greg KH
On Sun, Mar 22, 2015 at 11:03:03PM +0100, helene.gsaen...@studium.fau.de wrote: > Hello, > > > We want to add a functionality to the kernel that allows to lock and unlock > virtual terminals to maybe one day replace X11 screensavers and console > lockers by a more secure kernel mechanism. Wait,

Re: 4.0.0-rc4: panic in free_block

2015-03-22 Thread David Miller
From: Linus Torvalds Date: Sun, 22 Mar 2015 12:47:08 -0700 > Which was why I was asking how sure you are that memcpy *always* > copies from low to high. Yeah I'm pretty sure. > I don't even know which version of memcpy ends up being used on M7. > Some of them do things like use VIS. I can follo

questions to planned lock-functionality for vts

2015-03-22 Thread helene . gsaenger
Hello, We want to add a functionality to the kernel that allows to lock and unlock virtual terminals to maybe one day replace X11 screensavers and console lockers by a more secure kernel mechanism. It should behave like: If user A owns e.g. vt2, A is able to lock vt2 and unlock it again. This is

Re: [PATCH] mmc: dw_mmc: Don't send clock off command if power is off

2015-03-22 Thread Doug Anderson
Alim, On Sun, Mar 22, 2015 at 5:16 AM, Alim Akhtar wrote: >> case MMC_POWER_OFF: >> - /* Turn clock off before power goes down */ >> - dw_mci_setup_bus(slot, false); >> + /* Turn clock off before power goes down; only if powered */ >> +

Re: [PATCH v10 00/21] Introduce ACPI for ARM64 based on ACPI 5.1

2015-03-22 Thread Rafael J. Wysocki
On Sunday, March 22, 2015 09:32:48 PM Julien Grall wrote: > > On 22/03/2015 21:49, Rafael J. Wysocki wrote: > > On Sunday, March 22, 2015 09:05:21 PM Julien Grall wrote: > >> Hello, > >> > >> On 21/03/2015 12:09, Naresh Bhat wrote: > >>> From 268dcdafa34a690e2f99c0784ca33a6d2352ecf5 Mon Sep

Re: [PATCH v10 00/21] Introduce ACPI for ARM64 based on ACPI 5.1

2015-03-22 Thread Julien Grall
On 22/03/2015 21:49, Rafael J. Wysocki wrote: On Sunday, March 22, 2015 09:05:21 PM Julien Grall wrote: Hello, On 21/03/2015 12:09, Naresh Bhat wrote: From 268dcdafa34a690e2f99c0784ca33a6d2352ecf5 Mon Sep 17 00:00:00 2001 From: Hanjun Guo mailto:hanjun@linaro.org>> Date:

RE: [PATCH] ASoC:pcm512x: Make PLL lock output selectable via device tree.

2015-03-22 Thread Peter Rosin
Howard Mitchell wrote: > Currently the PLL Lock output signal is hardcoded to GPIO4. This > makes it seletable in the same way as pll-in and pll-out. Oops, I never intended the plllock code the hit upstream. I thought I had removed that testing code and was very surprised to see it, that was an od

Re: [PATCH v10 00/21] Introduce ACPI for ARM64 based on ACPI 5.1

2015-03-22 Thread Rafael J. Wysocki
On Sunday, March 22, 2015 09:05:21 PM Julien Grall wrote: > Hello, > > On 21/03/2015 12:09, Naresh Bhat wrote: > > From 268dcdafa34a690e2f99c0784ca33a6d2352ecf5 Mon Sep 17 00:00:00 2001 > > From: Hanjun Guo mailto:hanjun@linaro.org>> > > Date: Sat, 21 Mar 2015 14:43:54 +0800 > >

[GIT PULL REQUEST] one bugfix for md in 4.0-rc

2015-03-22 Thread NeilBrown
The following changes since commit 06e5801b8cb3fc057d88cb4dc03c0b64b2744cda: Linux 4.0-rc4 (2015-03-15 17:38:20 -0700) are available in the git repository at: git://neil.brown.name/md/ tags/md/4.0-rc4-fix for you to fetch changes up to 0c35bd4723e4a39ba2da4c13a22cb97986ee10c8: md: fix pr

RE: [PATCH] ASoC:pcm512x: Fix divide by zero issue.

2015-03-22 Thread Peter Rosin
Howard Mitchell wrote; > If den=1 and pllin_rate>20MHz then den and num are adjusted to 0 > causing a divide by zero error a few lines further on. Therefore > this patch correctly scales num and den such that > pllin_rate/den < 20MHz as required in the device data sheet. Yep, the old code is plain

Re: [PATCH v10 00/21] Introduce ACPI for ARM64 based on ACPI 5.1

2015-03-22 Thread Julien Grall
Hello, On 21/03/2015 12:09, Naresh Bhat wrote: From 268dcdafa34a690e2f99c0784ca33a6d2352ecf5 Mon Sep 17 00:00:00 2001 From: Hanjun Guo mailto:hanjun@linaro.org>> Date: Sat, 21 Mar 2015 14:43:54 +0800 Subject: [PATCH] XEN / ACPI: Make XEN ACPI depend on X86 When ACPI is

Re: [PATCH 08/18] net: dsa: mv88e6xxx: Add Hardware bridging support

2015-03-22 Thread Andrew Lunn
On Sun, Mar 22, 2015 at 01:45:49PM -0700, Guenter Roeck wrote: > On 03/22/2015 01:06 PM, Andrew Lunn wrote: > >Hi Guenter > > > >>+static int _mv88e6xxx_atu_cmd(struct dsa_switch *ds, int fid, u16 cmd) > >>+{ > >>+ int ret; > >>+ > >>+ ret = _mv88e6xxx_reg_write(ds, REG_GLOBAL, 0x01, fid); > >>

Re: [PATCH] of: Empty node & property flag accessors when !OF

2015-03-22 Thread Wolfram Sang
On Fri, Mar 20, 2015 at 12:12:23PM +, Grant Likely wrote: > On Thu, 22 Jan 2015 17:13:51 -0600 > , Rob Herring > wrote: > > +Wolfram > > > > On Wed, Jan 21, 2015 at 11:05 AM, Pantelis Antoniou > > wrote: > > > Introduce empty node and property flag accessors when CONFIG_OF is not > > > defi

Re: [PATCH 08/18] net: dsa: mv88e6xxx: Add Hardware bridging support

2015-03-22 Thread Guenter Roeck
On 03/22/2015 01:06 PM, Andrew Lunn wrote: Hi Guenter +static int _mv88e6xxx_atu_cmd(struct dsa_switch *ds, int fid, u16 cmd) +{ + int ret; + + ret = _mv88e6xxx_reg_write(ds, REG_GLOBAL, 0x01, fid); + if (ret < 0) + return ret; Please could you check this. I th

[PATCH v2 02/11] MAINTAINERS: add an entry for System Trace Module device class

2015-03-22 Thread Alexander Shishkin
Add myself as a maintainer for the stm class framework. Signed-off-by: Alexander Shishkin --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0e1abe8cc6..028d83a0b6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8534,6 +8534,14 @@ S:

[PATCH v2 04/11] stm class: stm_console: Add kernel-console-over-stm driver

2015-03-22 Thread Alexander Shishkin
This is a simple stm_source class device driver (kernelspace stm trace source) that registers a console and sends kernel messages over STM devices. Cc: Pratik Patel Cc: Mathieu Poirier Signed-off-by: Alexander Shishkin --- drivers/hwtracing/stm/Kconfig | 9 + drivers/hwtracing/stm/Makef

[PATCH v2 05/11] intel_th: Add driver infrastructure for Intel Trace Hub devices

2015-03-22 Thread Alexander Shishkin
Intel Trace Hub (TH) is a set of hardware blocks (subdevices) that produce, switch and output trace data from multiple hardware and software sources over several types of trace output ports encoded in System Trace Protocol (MIPI STPv2) and is intended to perform full system debugging. For these su

[PATCH v2 11/11] MAINTAINERS: add an entry for Intel(R) Trace Hub

2015-03-22 Thread Alexander Shishkin
Add myself as a maintainer for the Intel(R) Trace Hub framework and drivers. Signed-off-by: Alexander Shishkin --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 028d83a0b6..3ca473fdf6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5172,6 +5

[PATCH v2 09/11] intel_th: Add Memory Storage Unit driver

2015-03-22 Thread Alexander Shishkin
Memory Storage Unit (MSU) is a trace output device that collects trace data to system memory. It consists of 2 independent Memory Storage Controllers (MSCs). This driver provides userspace interfaces to configure in-memory tracing parameters, such as contiguous (high-order allocation) buffer or mu

[PATCH v2 08/11] intel_th: Add Software Trace Hub driver

2015-03-22 Thread Alexander Shishkin
Software Trace Hub (STH) is a trace source device in the Intel TH architecture, it generates data that then goes through the switch into one or several output ports. STH collects data from software sources using the stm device class abstraction. Signed-off-by: Alexander Shishkin --- drivers/hwt

[PATCH v2 10/11] intel_th: Add PTI output driver

2015-03-22 Thread Alexander Shishkin
Parallel Trace Interface (PTI) unit is a trace output device that sends data over a PTI port. The driver provides interfaces to configure bus width, bus clock divider and mode. Tracing is enabled via output device's "active" attribute. Signed-off-by: Alexander Shishkin --- .../ABI/testing/sysfs

[PATCH v2 06/11] intel_th: Add pci glue layer for Intel Trace Hub

2015-03-22 Thread Alexander Shishkin
This patch adds basic support for PCI-based Intel TH devices. It requests 2 bars (configuration registers for the subdevices and STH channel MMIO region) and calls into Intel TH core code to create the bus with subdevices etc. Signed-off-by: Alexander Shishkin --- drivers/hwtracing/intel_th/Kcon

[PATCH v2 07/11] intel_th: Add Global Trace Hub driver

2015-03-22 Thread Alexander Shishkin
Global Trace Hub (GTH) is the central component of Intel TH architecture; it carries out switching between the trace sources and trace outputs, can enable/disable tracing, perform STP encoding, internal buffering, control backpressure from outputs to sources and so on. This property is also reflec

[PATCH v2 03/11] stm class: dummy_stm: Add dummy driver for testing stm class

2015-03-22 Thread Alexander Shishkin
This is a simple module that pretends to be an stm device and discards all the data that comes in. Useful for testing stm class and its users. Cc: Pratik Patel Cc: Mathieu Poirier Signed-off-by: Alexander Shishkin --- drivers/hwtracing/stm/Kconfig | 8 ++ drivers/hwtracing/stm/Makefil

[PATCH v2 00/11] Introduce Intel Trace Hub support

2015-03-22 Thread Alexander Shishkin
Hi Greg and everybody, Here's a patchset adding support for Intel Trace Hub (TH) [1] to the kernel. Full description follows the changelog. Changes since v1: * fixed Kconfig whitespaces and removed defaults per comments from Paul Bolle, * addressed comments from Joe Perches. Changes since

[PATCH v2 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-03-22 Thread Alexander Shishkin
A System Trace Module (STM) is a device exporting data in System Trace Protocol (STP) format as defined by MIPI STP standards. Examples of such devices are Intel Trace Hub and Coresight STM. This abstraction provides a unified interface for software trace sources to send their data over an STM dev

Re: [PATCH v1 03/11] stm class: dummy_stm: Add dummy driver for testing stm class

2015-03-22 Thread Alexander Shishkin
On 21 March 2015 at 14:02, Paul Bolle wrote: > All I spotted is the same two nits as in 04/11. Thanks, fixed both cases (and the remaining few occurrences in the rest of the patchset). Regards, -- Alex -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a me

Re: [PATCH v1 07/11] intel_th: Add Global Trace Hub driver

2015-03-22 Thread Alexander Shishkin
On 20 March 2015 at 19:59, Joe Perches wrote: > On Fri, 2015-03-20 at 19:29 +0200, Alexander Shishkin wrote: >> Global Trace Hub (GTH) is the central component of Intel TH architecture; >> it carries out switching between the trace sources and trace outputs, can >> enable/disable tracing, perform

Re: [PATCH v1 06/11] intel_th: Add pci glue layer for Intel Trace Hub

2015-03-22 Thread Alexander Shishkin
On 20 March 2015 at 19:43, Joe Perches wrote: > On Fri, 2015-03-20 at 19:29 +0200, Alexander Shishkin wrote: >> This patch adds basic support for PCI-based Intel TH devices. > > trivia: > >> diff --git a/drivers/hwtracing/intel_th/pci.c >> b/drivers/hwtracing/intel_th/pci.c > [] >> +static struct

Good Day

2015-03-22 Thread Tom West
Good day Friend, I wish to solicit your assistance to received an investment profit funds worth Ten million seven hundred fifty thousand POUNDS (£10,750.000.00) from my Bank. I wish to seek your consent before sending more details, this a genuine and I hope it this will be appeal to you. contact m

Re: [PATCH 08/18] net: dsa: mv88e6xxx: Add Hardware bridging support

2015-03-22 Thread Andrew Lunn
Hi Guenter > +static int _mv88e6xxx_atu_cmd(struct dsa_switch *ds, int fid, u16 cmd) > +{ > + int ret; > + > + ret = _mv88e6xxx_reg_write(ds, REG_GLOBAL, 0x01, fid); > + if (ret < 0) > + return ret; Please could you check this. I think register 0x01 here is wrong. I think

Re: [PATCH] of/irq: Fix of_irq_parse_one() returned error codes

2015-03-22 Thread Rob Herring
On Tue, Mar 17, 2015 at 5:21 PM, Laurent Pinchart wrote: > The error code paths that require cleanup use a goto to jump to the > cleanup code and return an error code. However, the error code variable > res, which is initialized to -EINVAL when declared, is then overwritten > with the return value

Re: [PATCH 1/2] of: handle both '/' and ':' in path strings

2015-03-22 Thread Rob Herring
On Tue, Mar 17, 2015 at 2:30 PM, Brian Norris wrote: > Commit 106937e8ccdc ("of: fix handling of '/' in options for > of_find_node_by_path()") caused a regression in OF handling of > stdout-path. While it fixes some cases which have '/' after the ':', it > breaks cases where there is more than one

[PATCH 3/5] [resend 2] gxt4500: fix color order

2015-03-22 Thread Ondrej Zary
The color order in truecolor modes is wrong. This does not affect console but is visible e.g. in X11 which has wrong colors. Swap blue and red colors to fix the problem. Fixes https://forums.gentoo.org/viewtopic-t-692740-start-0.html Signed-off-by: Ondrej Zary --- drivers/video/fbdev/gxt4500.c

[PATCH 4/5] [resend 2] gxt4500: Use write-combining for framebuffer (PAT and MTRR)

2015-03-22 Thread Ondrej Zary
Use write-combining for framebuffer to greatly improve performance on x86. Add both ioremap_wc (for systems with PAT) and MTRR setup for non-PAT systems. Signed-off-by: Ondrej Zary --- drivers/video/fbdev/gxt4500.c | 32 ++-- 1 file changed, 30 insertions(+), 2 dele

[PATCH 1/5] [resend 2] gxt4500: enable on non-PPC architectures

2015-03-22 Thread Ondrej Zary
These chips can be present at least on x86 too - Fire GL2 AGP has GXT6000P but this driver is currently limited to PPC. Enable it for all architectures and add chip configuration for little-endian. Tested on x86 with Fire GL2 AGP. Signed-off-by: Ondrej Zary --- drivers/video/fbdev/Kconfig |

[PATCH 5/5] [resend 2] gxt4500: enable panning

2015-03-22 Thread Ondrej Zary
The driver implements pan_display but the corresponding flags are not set. Add FBINFO_HWACCEL_XPAN and FBINFO_HWACCEL_YPAN to flags to allow HW accelerated panning (for fast scrolling). Signed-off-by: Ondrej Zary --- drivers/video/fbdev/gxt4500.c |3 ++- 1 file changed, 2 insertions(+), 1 d

[PATCH 2/5] [resend 2] gxt4500: fix 16bpp 565 mode

2015-03-22 Thread Ondrej Zary
Fix wrong colors in 16bpp 565 mode. Signed-off-by: Ondrej Zary --- drivers/video/fbdev/gxt4500.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/gxt4500.c b/drivers/video/fbdev/gxt4500.c index 1bf9894..1f2fd5b 100644 --- a/drivers/video/fbdev/gxt4500.c

[PATCH 2/4] [resend] tridentfb: Fix set_lwidth on TGUI9440 and CYBER9320

2015-03-22 Thread Ondrej Zary
According to X.Org driver, chips older than TGUI9660 have only 1 width bit in AddColReg. Touching the 2nd one causes I2C/DDC to fail on TGUI9440. Set only 1 bit of width in AddColReg on TGUI9440 and CYBER9320. Signed-off-by: Ondrej Zary --- drivers/video/fbdev/tridentfb.c | 10 -- 1 f

[PATCH 1/4] [resend] tridentfb: fix hang on Blade3D with CONFIG_CC_OPTIMIZE_FOR_SIZE

2015-03-22 Thread Ondrej Zary
When the kernel is compiled with -Os (CONFIG_CC_OPTIMIZE_FOR_SIZE), tridentfb hangs the machine upon load with Blade3D cards unless acceleration is disabled. This is caused by memcpy() which copies data byte-by-byte (rep movsb) when compiled with -Os. The card does not like that - it requires 32-b

[PATCH 4/4] [resend] tridentfb: Add DDC support

2015-03-22 Thread Ondrej Zary
Add DDC support for Trident cards. Tested on TGUI9440, TGUI9680, 3DImage 9750, Blade3D 9880 and Blade XP. Signed-off-by: Ondrej Zary --- drivers/video/fbdev/Kconfig |9 ++ drivers/video/fbdev/tridentfb.c | 192 ++- 2 files changed, 196 insertions(+),

[PATCH 3/4] [resend] fb_ddc: Allow I2C adapters without SCL read capability

2015-03-22 Thread Ondrej Zary
i2c-algo-bit allows I2C adapters without SCL read capability to work but fb_ddc_read fails to work on them. Fix fb_ddc_read to work with I2C adapters not capable of reading SCL. Signed-off-by: Ondrej Zary Acked-by: Krzysztof Helt --- drivers/video/fbdev/core/fb_ddc.c |8 +--- 1 file ch

Re: 4.0.0-rc4: panic in free_block

2015-03-22 Thread Linus Torvalds
On Sun, Mar 22, 2015 at 10:36 AM, David Miller wrote: > > And they end up using that byte-at-a-time code, since SLAB and SLUB > do mmemove() calls of the form: > > memmove(X + N, X, LEN); Actually, the common case in slab is overlapping but of the form memmove(p, p+x, len); which g

[PATCH v10 tip 1/9] bpf: make internal bpf API independent of CONFIG_BPF_SYSCALL ifdefs

2015-03-22 Thread Alexei Starovoitov
From: Daniel Borkmann Socket filter code and other subsystems with upcoming eBPF support should not need to deal with the fact that we have CONFIG_BPF_SYSCALL defined or not. Having the bpf syscall as a config option is a nice thing and I'd expect it to stay that way for expert users (I presume

[PATCH v10 tip 5/9] tracing: allow BPF programs to call bpf_trace_printk()

2015-03-22 Thread Alexei Starovoitov
Debugging of BPF programs needs some form of printk from the program, so let programs call limited trace_printk() with %d %u %x %p modifiers only. Similar to kernel modules, during program load verifier checks whether program is calling bpf_trace_printk() and if so, kernel allocates trace_printk b

[PATCH v10 tip 4/9] tracing: allow BPF programs to call bpf_ktime_get_ns()

2015-03-22 Thread Alexei Starovoitov
bpf_ktime_get_ns() is used by programs to compute time delta between events or as a timestamp Signed-off-by: Alexei Starovoitov Reviewed-by: Steven Rostedt --- include/uapi/linux/bpf.h |1 + kernel/trace/bpf_trace.c | 14 ++ 2 files changed, 15 insertions(+) diff --git a/incl

[PATCH v10 tip 6/9] samples: bpf: simple non-portable kprobe filter example

2015-03-22 Thread Alexei Starovoitov
tracex1_kern.c - C program compiled into BPF. It attaches to kprobe:netif_receive_skb When skb->dev->name == "lo", it prints sample debug message into trace_pipe via bpf_trace_printk() helper function. tracex1_user.c - corresponding user space component that: - loads bpf program via bpf() syscall

[PATCH v10 tip 2/9] tracing: add kprobe flag

2015-03-22 Thread Alexei Starovoitov
add TRACE_EVENT_FL_KPROBE flag to differentiate kprobe type of tracepoints, since bpf programs can only be attached to kprobe type of PERF_TYPE_TRACEPOINT perf events. Signed-off-by: Alexei Starovoitov Reviewed-by: Steven Rostedt Reviewed-by: Masami Hiramatsu --- include/linux/ftrace_event.h |

[PATCH v10 tip 7/9] samples: bpf: counting example for kfree_skb and write syscall

2015-03-22 Thread Alexei Starovoitov
this example has two probes in one C file that attach to different kprove events and use two different maps. 1st probe is x64 specific equivalent of dropmon. It attaches to kfree_skb, retrevies 'ip' address of kfree_skb() caller and counts number of packet drops at that 'ip' address. User space pr

[PATCH v10 tip 9/9] samples: bpf: kmem_alloc/free tracker

2015-03-22 Thread Alexei Starovoitov
One bpf program attaches to kmem_cache_alloc_node() and remembers all allocated objects in the map. Another program attaches to kmem_cache_free() and deletes corresponding object from the map. User space walks the map every second and prints any objects which are older than 1 second. Usage: $ sud

[PATCH v10 tip 8/9] samples: bpf: IO latency analysis (iosnoop/heatmap)

2015-03-22 Thread Alexei Starovoitov
BPF C program attaches to blk_mq_start_request/blk_update_request kprobe events to calculate IO latency. For every completed block IO event it computes the time delta in nsec and records in a histogram map: map[log10(delta)*10]++ User space reads this histogram map every 2 seconds and prints it as

[PATCH v10 tip 0/9] tracing: attach eBPF programs to kprobes

2015-03-22 Thread Alexei Starovoitov
Hi Ingo, Patch 1 is already in net-next. Patch 3 depends on it. I'm assuming it's not going to be a problem during merge window. Patch 3 will have a minor conflict in uapi/linux/bpf.h in linux-next, since net-next has added new lines to the bpf_prog_type and bpf_func_id enums. I'm assuming it's no

[PATCH v10 tip 3/9] tracing: attach BPF programs to kprobes

2015-03-22 Thread Alexei Starovoitov
User interface: struct perf_event_attr attr = {.type = PERF_TYPE_TRACEPOINT, .config = event_id, ...}; event_fd = perf_event_open(&attr,...); ioctl(event_fd, PERF_EVENT_IOC_SET_BPF, prog_fd); prog_fd is a file descriptor associated with BPF program previously loaded. event_id is an ID of created

[PATCH 2/2] [resend] ns558: Add Rockwell WaveArtist gameport ID

2015-03-22 Thread Ondrej Zary
Add support for gameport on Rockwell WaveArtist based sound cards. Signed-off-by: Ondrej Zary --- drivers/input/gameport/ns558.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/gameport/ns558.c b/drivers/input/gameport/ns558.c index 7c21784..b86c4c8 100644 --- a/drivers/inpu

[PATCH 1/2] [resend] snd-waveartist: Introduce Rockwell WaveArtist RWA010 driver

2015-03-22 Thread Ondrej Zary
This is a new ALSA driver driver for Rockwell WaveArtist RWA010 chips found on some (rare) ISA sound cards, such as DCS Multimedia S717. I wasn't able to get the old OSS WaveArtist driver to work with my card but it was a great source of information about the chip (as the full datasheet is not ava

Re: 4.0.0-rc4: panic in free_block

2015-03-22 Thread Bob Picco
David Miller wrote: [Sun Mar 22 2015, 01:36:03PM EDT] > From: Linus Torvalds > Date: Sat, 21 Mar 2015 11:49:12 -0700 > > > Davem? I don't read sparc assembly, so I'm *really* not going to try > > to verify that (a) all the memcpy implementations always copy > > low-to-high and (b) that I even

Re: [PATCH] seccomp.2: Add note about alarm(2) not being sufficient to limit runtime

2015-03-22 Thread Michael Kerrisk (man-pages)
Hello Jann, On 03/12/2015 02:07 PM, Jann Horn wrote: > On Wed, Mar 11, 2015 at 10:43:50PM +0100, Mikael Pettersson wrote: >> Jann Horn writes: >> > Or should I throw this patch away and write a patch >> > for the prctl() manpage instead that documents that >> > being able to call sigreturn() im

[PATCH] xfs: Fix incorrect positive ENOMEM return

2015-03-22 Thread Joe Perches
commit 5681ca40064f ("xfs: Remove icsb infrastructure") incorrectly added a positive error return value. This value filters up through the return layers and should be negative as the other return values are in the same function. Signed-off-by: Joe Perches --- fs/xfs/xfs_super.c | 2 +- 1 file c

[PATCH 1/1] [media] DocBook media: fix broken EIA hyperlink

2015-03-22 Thread Michael Opdenacker
This fixes the bibliography hyperlink to "http://www.eia.org"; which now redirects to a page with a "404 Not found" error. The latest update to the document referred to is now available on the Consumer Electronics Association website. Signed-off-by: Michael Opdenacker --- Documentation/DocBook/

[PATCH 0/1] DocBook media: fix broken EIA hyperlink

2015-03-22 Thread Michael Opdenacker
Hi, This is a fix for the only broken link in kernel documentation, at least according to the "linkchecker" tool that we are running on the Free Electrons website once a day. As kernel documentation is part of our website (on http://free-electrons.com/kerneldoc/), I get reminded of this broken li

Re: [PATCH v9 tip 5/9] tracing: allow BPF programs to call bpf_trace_printk()

2015-03-22 Thread Alexei Starovoitov
On 3/22/15 4:10 AM, Ingo Molnar wrote: * Alexei Starovoitov wrote: +static const struct bpf_func_proto bpf_trace_printk_proto = { + .func = bpf_trace_printk, + .gpl_only = true, + .ret_type = RET_INTEGER, + .arg1_type = ARG_PTR_TO_STACK, + .arg2_type = ARG_CONST_

Re: [PATCH v9 tip 3/9] tracing: attach BPF programs to kprobes

2015-03-22 Thread Alexei Starovoitov
On 3/22/15 3:06 AM, Masami Hiramatsu wrote: > (2015/03/22 1:02), Alexei Starovoitov wrote: >> On 3/21/15 5:14 AM, Masami Hiramatsu wrote: >>> (2015/03/21 8:30), Alexei Starovoitov wrote: Note, kprobes are _not_ a stable kernel ABI, so bpf programs attached to kprobes must be recompil

Re: [PATCH] net: dsa: make NET_DSA manually selectable from the config

2015-03-22 Thread Sergei Shtylyov
Hello. On 3/21/2015 4:31 AM, Mathieu Olivari wrote: Change bd76a116707bd2381da36cf7c3183df11293f1d6 made all DSA drivers s/Change/Commit/, perhaps? And please also specify that commit's summary line in parens. depend on NET_DSA rather than selecting them. However, as the only way to s

Re: [PATCH net-next V2 20/23] ptp: dp83640: convert to the 64 bit get/set time methods.

2015-03-22 Thread Arnd Bergmann
On Sunday 22 March 2015, Richard Cochran wrote: > On Sun, Mar 22, 2015 at 03:36:31AM +0100, Arnd Bergmann wrote: > > On Saturday 21 March 2015, Richard Cochran wrote: > > > mutex_lock(&clock->extreg_lock); > > > > > > - err = tdr_write(1, phydev, ts, PTP_LOAD_CLK); > > > + err

[PATCH] lguest: rename i386_head.S in the comments

2015-03-22 Thread Alexander Kuleshov
i386_head.S renamed to the head_32.S, let's update it in the comments too. Signed-off-by: Alexander Kuleshov --- arch/x86/lguest/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c index ac4453d..543510a 100644 --- a/arch

Re: [RFC PATCH 0/7] evacuate struct page from the block layer

2015-03-22 Thread Boaz Harrosh
On 03/22/2015 07:22 PM, Dan Williams wrote: > On Sun, Mar 22, 2015 at 10:06 AM, Boaz Harrosh wrote: <> >> >> Moving to pfn's only means that all this unnamed code above that >> "relies on struct page being PAGE_SIZE" is now not allowed to >> interfaced with bio and sg list. Which in current code a

Re: 4.0.0-rc4: panic in free_block

2015-03-22 Thread David Miller
From: Linus Torvalds Date: Sat, 21 Mar 2015 11:49:12 -0700 > Davem? I don't read sparc assembly, so I'm *really* not going to try > to verify that (a) all the memcpy implementations always copy > low-to-high and (b) that I even read the address comparisons in > memmove.S right. All of the sparc

Re: [PATCH 0/8] gpio: omap: cleanup: get rid of system GPIO <-> GPIO offset converseations

2015-03-22 Thread Aaro Koskinen
Hi, On Fri, Mar 20, 2015 at 05:11:23PM +0200, grygorii.stras...@linaro.org wrote: > On 03/20/2015 01:00 AM, Tony Lindgren wrote: > > * grygorii.stras...@linaro.org [150319 > > 10:26]: > >> From: Grygorii Strashko > >> Now in TI OMAP GPIO driver there are a lot of places where > >> System GPIO n

Re: + lib-vsprintfc-even-faster-decimal-conversion.patch added to -mm tree

2015-03-22 Thread Denys Vlasenko
On Thu, Mar 19, 2015 at 1:17 PM, Alexey Dobriyan wrote: > The ideal situation is still being > a) one system call to push PIDs into userspace in bulk > (memcpy directly from pid_ns->pidmap[i]), > b) one system call to fetch data in binary to userspace given PID or > set of PIDs, This is a good

Re: Kprobes: pre-handler with interrupts enabled - is it possible?

2015-03-22 Thread Eugene Shatokhin
Hello, It took a while to properly implement the technique I wrote about earlier but I have prepared a working example. Initially, I did not reset the Kprobe properly and that caused difficult-to-debug problems. Anyway, it works now. In this example, Kprobes are used to execute my functions

<    1   2   3   4   5   >