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
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(+),
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(+)
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
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-
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
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
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
--
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
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:
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
---
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
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
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
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
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
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
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) {
>
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
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)
+
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.
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
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,
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
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
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
---
..
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
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
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
---
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
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,
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
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
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 */
>> +
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
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:
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
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
> >
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
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
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
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);
> >>
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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 |
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
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
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
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
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(+),
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
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
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
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
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
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
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 |
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
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
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
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
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
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
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
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
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
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
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/
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
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_
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
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
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
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
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
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
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
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
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
201 - 300 of 415 matches
Mail list logo