Re: [PATCH 0/8] livepatch: klp-convert tool

2017-10-19 Thread Miroslav Benes
On Thu, 19 Oct 2017, Josh Poimboeuf wrote: > On Thu, Oct 19, 2017 at 04:27:31PM +0200, Miroslav Benes wrote: > > On Thu, 19 Oct 2017, Josh Poimboeuf wrote: > > > > I think that klp-convert can work with both. Even with non-source-based > > > > solution you need something to generate those relocat

Re: [linux-sunxi] [PATCH v2 6/8] ARM: dts: sun8i: a83t: Move mmc1 pinctrl setting to dtsi file

2017-10-19 Thread Joonas Kylmälä
Chen-Yu Tsai: >> Chen-Yu Tsai: >>> mmc1 only has 1 possible pinmux setting. >> >> What if someone is using the MMC with bus width 1 and then using the >> remaining 3 pins for something else? > > I would very much like to see such a design. Currently the devices > we see all follow Allwinner's refe

Re: [PATCH] tracing: always define trace_{irq,preempt}_{enable_disable}

2017-10-19 Thread Arnd Bergmann
On Thu, Oct 19, 2017 at 5:42 PM, Joel Fernandes wrote: > Hi Arnd, > > On Thu, Oct 19, 2017 at 1:32 AM, Arnd Bergmann wrote: >> We get a build error in the irqsoff tracer in some configurations: >> >> kernel/trace/trace_irqsoff.c: In function 'trace_preempt_on': >> kernel/trace/trace_irqsoff.c:855

Re: Circumstances for using the tag “Fixes” (or not)

2017-10-19 Thread SF Markus Elfring
>>> The "Fixes" tag is an indication that the patch should be backported. >> >> No it's not that strong. It's an indication that the patch fixes another >> commit, which may or may not mean it should be backported depending on >> the preferences of the backporter. If it *does* need backporting then

Re: [PATCH v3 6/7] arm64: topology: Enable ACPI/PPTT based CPU topology.

2017-10-19 Thread Jeremy Linton
On 10/19/2017 10:56 AM, Lorenzo Pieralisi wrote: On Thu, Oct 12, 2017 at 02:48:55PM -0500, Jeremy Linton wrote: Propagate the topology information from the PPTT tree to the cpu_topology array. We can get the thread id, core_id and cluster_id by assuming certain levels of the PPTT tree correspond

Re: [PATCH 1/2 v3] user namespace: use union in {g,u}idmap struct

2017-10-19 Thread Christian Brauner
ian, > >> > >> [auto build test ERROR on linus/master] > >> [also build test ERROR on v4.14-rc5 next-20171017] > >> [if your patch is applied to the wrong git tree, please drop us a note to > >> help improve the system] > >> > >> u

Re: [kernel-hardening] [PATCH 0/2] capability controlled user-namespaces

2017-10-19 Thread महेश बंडेवार
On Mon, Oct 2, 2017 at 11:12 AM, Mahesh Bandewar (महेश बंडेवार) wrote: > On Mon, Oct 2, 2017 at 10:14 AM, Serge E. Hallyn wrote: >> Quoting Mahesh Bandewar (mah...@bandewar.net): >>> From: Mahesh Bandewar >>> >>> [Same as the previous RFC series sent on 9/21] >>> >>> TL;DR version >>> --

Re: [v6,1/2] pid: Replace pid bitmap implementation with IDR API

2017-10-19 Thread Oleg Nesterov
On 10/19, Andrei Vagin wrote: > > Hi Gargi, > > This patch breaks CRIU, because it changes a meaning of ns_last_pid. ... > > @@ -311,7 +297,7 @@ static int pid_ns_ctl_handler(struct ctl_table *table, > > int write, > > * it should synchronize its usage with external means. > > */ > >

Re: [PATCH 0/8] livepatch: klp-convert tool

2017-10-19 Thread Josh Poimboeuf
On Thu, Oct 19, 2017 at 06:00:54PM +0200, Miroslav Benes wrote: > On Thu, 19 Oct 2017, Josh Poimboeuf wrote: > > My main objection to merging klp-convert in its current state is that > > it's not useful by itself. In fact, it's actively dangerous if people > > assume that because it's in-tree, it'

Re: libbattery was Re: [RFC PATCH 5/5] power: generic-adc-battery: Add capacity handling

2017-10-19 Thread Tony Lindgren
* H. Nikolaus Schaller [171018 08:49]: > > > Am 18.10.2017 um 15:22 schrieb Tony Lindgren : > > > > * H. Nikolaus Schaller [171018 05:49]: > >>> Am 18.10.2017 um 14:28 schrieb Pavel Machek : > >>> > >>> So I started something, it is at. > >>> > >>> https://github.com/pavelmachek/libbattery >

Re: RFC(v2): Audit Kernel Container IDs

2017-10-19 Thread Eric W. Biederman
Paul Moore writes: > On Wed, Oct 18, 2017 at 8:43 PM, Eric W. Biederman > wrote: >> Aleksa Sarai writes: > The security implications are that anything that can change the label > could also hide itself and its doings from the audit system and thus > would be used as a means to evade

[PATCH] objtool: Fix memory leak in decode_instructions()

2017-10-19 Thread Josh Poimboeuf
From: Kamalesh Babulal When an error occurs before adding an allocated insn to the list, free it before returning. Signed-off-by: Kamalesh Babulal Signed-off-by: Josh Poimboeuf --- tools/objtool/check.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/objtool

Re: [PATCH v3 05/10] arm: dts: mt7623: update pio, usb and crypto nodes

2017-10-19 Thread Matthias Brugger
On 10/02/2017 03:54 AM, Ryder Lee wrote: > This patch updates pio, usb and crypto nodes to make them be consistent > with the binding documents. > > Signed-off-by: Ryder Lee > --- > arch/arm/boot/dts/mt7623.dtsi | 26 ++ > 1 file changed, 14 insertions(+), 12 deletions(

Re: [PATCH v3 06/10] arm: dts: mt7623: add subsystem clock controller nodes

2017-10-19 Thread Matthias Brugger
On 10/02/2017 03:54 AM, Ryder Lee wrote: > This patch adds missing susbsystem clock controllers nodes for MT7623. > (e.g., mmsys, imgsys, vdecsys and bdpsys) > > Signed-off-by: Ryder Lee > --- > arch/arm/boot/dts/mt7623.dtsi | 32 > 1 file changed, 32 insertion

[PATCH] iio : Add cm3218 smbus ara and acpi support

2017-10-19 Thread Marc CAPDEVILLE
On asus T100, Capella cm3218 chip is implemented as ambiant light sensor. This chip expose an smbus ARA protocol device on standard address 0x0c. The chip is not functional before all alerts are acknowledged. On asus T100, this device is enumerated on ACPI bus and the description give tow I2C conne

Re: [alsa-devel] [PATCH] ASoC: Intel: sst: remove redundant variable dma_dev_name

2017-10-19 Thread Pierre-Louis Bossart
On 10/19/2017 07:33 AM, Colin King wrote: From: Colin Ian King The pointer dma_dev_name is assigned but never read, it is redundant and can therefore be removed. Cleans up clang warning: sound/soc/intel/common/sst-firmware.c:288:3: warning: Value stored to 'dma_dev_name' is never read Signe

Re: [linux-sunxi] [PATCH v2 6/8] ARM: dts: sun8i: a83t: Move mmc1 pinctrl setting to dtsi file

2017-10-19 Thread Chen-Yu Tsai
On Fri, Oct 20, 2017 at 12:02 AM, Joonas Kylmälä wrote: > Chen-Yu Tsai: >>> Chen-Yu Tsai: mmc1 only has 1 possible pinmux setting. >>> >>> What if someone is using the MMC with bus width 1 and then using the >>> remaining 3 pins for something else? >> >> I would very much like to see such a d

1 Unread Message

2017-10-19 Thread Mr James Amin
Good day, I am Mr James Amin, I am Requesting for your partnership in re-profiling funds, Contact me for more details. Thanks, Mr James Amin

Re: [PATCH 1/2 v3] user namespace: use union in {g,u}idmap struct

2017-10-19 Thread Eric W. Biederman
Christian Brauner writes: > On Wed, Oct 18, 2017 at 07:48:14PM -0500, Eric W. Biederman wrote: >> Christian Brauner writes: >> >> > I'm not sure why the build is complaining about how the union is >> > initialized >> > here. This looks legitimate to me and I can't reproduce this locally with

[PATCH v5 0/3] Clock patches for SAMA5D2 backup mode

2017-10-19 Thread Romain Izard
While the core of the backup mode for SAMA5D2 has been integrated in v4.13, it is far from complete. Individual controllers in the chip have drivers that do not support the reset of the registers during suspend, and they need to be adapted to handle it. The first patch uses the clock wakeup code f

[PATCH v5 1/3] clk: at91: pmc: Wait for clocks when resuming

2017-10-19 Thread Romain Izard
Wait for the syncronization of all clocks when resuming, not only the UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() when interrupts are masked, which is the case in here. Signed-off-by: Romain Izard Acked-by: Ludovic Desroches Acked-by: Nicolas Ferre --- drivers/clk/at

[PATCH v5 3/3] clk: at91: pmc: Support backup for programmable clocks

2017-10-19 Thread Romain Izard
From: Romain Izard When an AT91 programmable clock is declared in the device tree, register it into the Power Management Controller driver. On entering suspend mode, the driver saves and restores the Programmable Clock registers to support the backup mode for these clocks. Signed-off-by: Romain

[PATCH v5 2/3] clk: at91: pmc: Save SCSR during suspend

2017-10-19 Thread Romain Izard
The contents of the System Clock Status Register (SCSR) needs to be restored into the System Clock Enable Register (SCER). As the bootloader will restore some clocks by itself, the issue can be missed as only the USB controller, the LCD controller, the Image Sensor controller and the programmable

[PATCH v5] pwm: atmel-tcb: Support backup mode

2017-10-19 Thread Romain Izard
Save and restore registers for the PWM on suspend and resume, which makes hibernation and backup modes possible. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre --- Changes in v5: * extract from the patch series, and send as a standalone patch drivers/pwm/pwm-atmel-tcb.c | 63 +

[PATCH v5] atmel_flexcom: Support backup mode

2017-10-19 Thread Romain Izard
The controller used by a flexcom module is configured at boot, and left alone after this. As the configuration will be lost after backup mode, restore the state of the flexcom driver on resume. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre Tested-by: Nicolas Ferre --- Changes in v5: * ext

Re: [PATCH v3 01/10] arm: dts: mt2701: add pwm backlight device node

2017-10-19 Thread Matthias Brugger
On 10/02/2017 03:54 AM, Ryder Lee wrote: > From: Weiqing Kong > > This patch adds the device node for MT2701 pwm backlight. > > Signed-off-by: Weiqing Kong > Signed-off-by: Erin Lo > Signed-off-by: Ryder Lee > --- > arch/arm/boot/dts/mt2701.dtsi | 9 + > 1 file changed, 9 insertion

Re: [PATCH v3 02/10] arm: dts: mt2701: enable display pwm backlight

2017-10-19 Thread Matthias Brugger
On 10/02/2017 03:54 AM, Ryder Lee wrote: > From: Weiqing Kong > > This patch adds board related config for MT2701 pwm backlight. > > Signed-off-by: Weiqing Kong > Signed-off-by: Erin Lo > Signed-off-by: Ryder Lee > --- > arch/arm/boot/dts/mt2701-evb.dts | 23 +++ > 1 fi

Re: [PATCH v3 04/10] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-10-19 Thread Matthias Brugger
On 10/02/2017 03:54 AM, Ryder Lee wrote: > This patch adds interrupt-names property in audio node so that > binding can be agnostic of the IRQ order. > > Signed-off-by: Ryder Lee > --- > arch/arm/boot/dts/mt2701.dtsi | 4 +++- > arch/arm/boot/dts/mt7623.dtsi | 4 +++- > 2 files changed, 6 inse

Re: [PATCH v3 10/10] arm: dts: mt7623: add PCIe related nodes

2017-10-19 Thread Matthias Brugger
On 10/02/2017 03:55 AM, Ryder Lee wrote: > This patch adds devices nodes and updates pinmux setting for the PICe > function block. Just note that PCIe port2 PHY is shared with U3 port. > > Signed-off-by: Ryder Lee > --- > arch/arm/boot/dts/mt7623.dtsi | 108 > +

Re: [2/2] x86/unwind: Make CONFIG_UNWINDER_ORC=y the default in kconfig for 64-bit

2017-10-19 Thread Andrei Vagin
Hi, We run CRIU tests for tip/auto-latest regularly, and a few days ago our test job started to detect this warning in a kernel log: [ 44.235786] WARNING: can't dereference iret registers at 8801c5f17fe0 for ip 95f0d94b What does it mean? How critical is it? Our test job fails if

Re: [PATCH v2 net-next 1/2] net: dsa: lan9303: Add port_fast_age and port_fdb_dump methods

2017-10-19 Thread Egil Hjelmeland
Den 19. okt. 2017 17:42, skrev Egil Hjelmeland: On 19. okt. 2017 17:15, David Laight wrote: From: Andrew Lunn Sent: 19 October 2017 15:15 +/* Clear learned (non-static) entry on given port */ +static void alr_loop_cb_del_port_learned(struct lan9303 *chip, u32 dat0, + u3

Re: [PATCH v3 0/5] Switch arm64 over to qrwlock

2017-10-19 Thread Will Deacon
Hi all, On Thu, Oct 12, 2017 at 01:20:46PM +0100, Will Deacon wrote: > This is version three of the patches previously posted here: > > v1: > http://lists.infradead.org/pipermail/linux-arm-kernel/2017-October/534666.html > v2: > http://lists.infradead.org/pipermail/linux-arm-kernel/2017-October

Re: [PATCH v3 6/7] arm64: topology: Enable ACPI/PPTT based CPU topology.

2017-10-19 Thread Jeremy Linton
Hi, I missed the rest of the comment below.. On 10/19/2017 10:56 AM, Lorenzo Pieralisi wrote: On Thu, Oct 12, 2017 at 02:48:55PM -0500, Jeremy Linton wrote: Propagate the topology information from the PPTT tree to the cpu_topology array. We can get the thread id, core_id and cluster_id by ass

Re: libbattery was Re: [RFC PATCH 5/5] power: generic-adc-battery: Add capacity handling

2017-10-19 Thread H. Nikolaus Schaller
Hi Tony, > Am 19.10.2017 um 18:24 schrieb Tony Lindgren : > > * H. Nikolaus Schaller [171018 08:49]: >> >>> Am 18.10.2017 um 15:22 schrieb Tony Lindgren : >>> >>> * H. Nikolaus Schaller [171018 05:49]: > Am 18.10.2017 um 14:28 schrieb Pavel Machek : > > So I started something, it

[PATCH 1/2] f2fs: retry ENOMEM for quota_read|write

2017-10-19 Thread Jaegeuk Kim
This gives another chance to read or write quota data. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index fc3b74e53670..2c6e9adce464 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/s

[PATCH 2/2] f2fs: relax EIO injection for quota file

2017-10-19 Thread Jaegeuk Kim
This case is not happening easily. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index e0ef31cb2cc6..6301ccca 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1544,7 +1544,7 @@ static inli

RE: [PATCH 3/4] char/tpm: Improve a size determination in nine functions

2017-10-19 Thread Alexander.Steffen
> On Tue, Oct 17, 2017 at 11:50:05AM +, alexander.stef...@infineon.com > wrote: > > > > Replace the specification of data structures by pointer dereferences > > > > as the parameter for the operator "sizeof" to make the corresponding > > > > size > > > > determination a bit safer according to t

Re: [PATCH 1/2] mm/mmu_notifier: avoid double notification when it is useless v2

2017-10-19 Thread Jerome Glisse
On Thu, Oct 19, 2017 at 09:53:11PM +1100, Balbir Singh wrote: > On Thu, Oct 19, 2017 at 2:28 PM, Jerome Glisse wrote: > > On Thu, Oct 19, 2017 at 02:04:26PM +1100, Balbir Singh wrote: > >> On Mon, 16 Oct 2017 23:10:02 -0400 > >> jgli...@redhat.com wrote: > >> > >> > From: Jérôme Glisse > >> > > >

[PATCH V2 2/4] perf/x86/intel/uncore: inline function to check the fixed counter event

2017-10-19 Thread kan . liang
From: Kan Liang Remove the special codes in generic uncore_perf_event_update. Introduce inline function to check the fixed counter event. Signed-off-by: Kan Liang --- Changes since V1: - New file to address check event->hw.idx >= UNCORE_PMC_IDX_FIXED arch/x86/events/intel/uncore.c | 4 ++--

[PATCH V2 4/4] perf/x86/intel/uncore: SKX support for IIO freerunning counter

2017-10-19 Thread kan . liang
From: Kan Liang As of Skylake Server, there are a number of free-running counters in each IIO Box that collect counts for per box IO clocks and per Port Input/Output x BW/Utilization. Freerunning counters cannot be written by SW. Counting will be suspended only when the IIO Box is powered down.

[PATCH V2 1/4] perf/x86/intel/uncore: use same idx for clinet IMC uncore events

2017-10-19 Thread kan . liang
From: Kan Liang The clinet IMC uncore is the only one who claims two 'fixed counters'. To specially handle it, event->hw.idx >= UNCORE_PMC_IDX_FIXED is used to check fixed counters in the generic uncore_perf_event_update. It does not have problem in current code. Because there are no counters who

[PATCH V2 3/4] perf/x86/intel/uncore: add infrastructure for freerunning counters

2017-10-19 Thread kan . liang
From: Kan Liang There are a number of freerunning counters introduced for uncore. For example, Skylake Server has IIO freerunning counters to collect Input/Output x BW/Utilization. The freerunning counter is similar as fixed counter, except it cannot be written by SW. It needs to be specially ha

RE: [PATCH v4 1/4] tpm: move wait_for_tpm_stat() to respective driver files

2017-10-19 Thread Alexander.Steffen
> On Tue, Oct 17, 2017 at 04:32:29PM -0400, Nayna Jain wrote: > > The function wait_for_tpm_stat() is currently defined in > > tpm-interface file. It is a hardware specific function used > > only by tpm_tis and xen-tpmfront, so it is removed from > > tpm-interface.c and defined in respective driver

[GIT PULL] thermal: new material for hikey for 4.15 #2

2017-10-19 Thread Daniel Lezcano
Hi Eduardo, ** I'm not if I took the right branch ** The changes are based on top of the thermal-soc branch. Note from the previous pull I removed the hikey960 support series in order to sort out the multiple threshold before submitting again. The pull request contains the following changes:

Re: [PATCH v5 0/9] Mediatek MT2712 clock and scpsys support

2017-10-19 Thread Matthias Brugger
On 10/19/2017 04:48 AM, Weiyi Lu wrote: > This series is based on v4.14-rc1 and composed of > clock control (PATCH 1-4) and scpsys control (PATCH 5-9) > > changes since v4: > - Refine scpsys and infracfg for bus protection by passing > a boolean flag to determine the register update method. >

Re: libbattery was Re: [RFC PATCH 5/5] power: generic-adc-battery: Add capacity handling

2017-10-19 Thread Tony Lindgren
* H. Nikolaus Schaller [171019 09:57]: > Hi Tony, > > > Am 19.10.2017 um 18:24 schrieb Tony Lindgren : > > > > * H. Nikolaus Schaller [171018 08:49]: > >> > >>> Am 18.10.2017 um 15:22 schrieb Tony Lindgren : > >>> > >>> * H. Nikolaus Schaller [171018 05:49]: > > Am 18.10.2017 um 14:28 sc

[PATCH 02/18] thermal/drivers/hisi: Remove the multiple sensors support

2017-10-19 Thread Daniel Lezcano
By essence, the tsensor does not really support multiple sensor at the same time. It allows to set a sensor and use it to get the temperature, another sensor could be switched but with a delay of 3-5ms. It is difficult to read simultaneously several sensors without a big delay. Today, just one sen

[PATCH 01/18] thermal/drivers/hisi: Fix missing interrupt enablement

2017-10-19 Thread Daniel Lezcano
The interrupt for the temperature threshold is not enabled at the end of the probe function, enable it after the setup is complete. On the other side, the irq_enabled is not correctly set as we are checking if the interrupt is masked where 'yes' means irq_enabled=false. irq_get_irqchip_st

[PATCH 09/18] thermal/drivers/hisi: Remove costly sensor inspection

2017-10-19 Thread Daniel Lezcano
The sensor is all setup, bind, resetted, acked, etc... every single second. That was the way to workaround a problem with the interrupt bouncing again and again. With the following changes, we fix all in one: - Do the setup, one time, at probe time - Add the IRQF_ONESHOT, ack the interrupt in

[PATCH 13/18] thermal/drivers/hisi: Remove mutex_lock in the code

2017-10-19 Thread Daniel Lezcano
The mutex is used to protect against writes in the configuration register. That happens at probe time, with no possible race yet. Then when the module is unloaded and at suspend/resume. When the module is unloaded, it is an userspace operation, thus via a process. Suspending the system goes thro

[PATCH 17/18] thermal/drivers/generic-iio-adc: Switch tz request to devm version

2017-10-19 Thread Daniel Lezcano
Everything mentionned here: https://lkml.org/lkml/2016/4/20/850 This driver was added before the devm_iio_channel_get() function version was merged. The sensor should be released before the iio channel, thus we had to use the non-devm version of thermal_zone_of_sensor_register(). Now the devm_ii

[PATCH 18/18] thermal/drivers/qcom-spmi: Use devm_iio_channel_get

2017-10-19 Thread Daniel Lezcano
The iio_channel_get() function has now its devm_ version. Use it and remove all the rollback code for iio_channel_release() as well as the .remove ops. [Compiled tested only] Signed-off-by: Daniel Lezcano --- drivers/thermal/qcom-spmi-temp-alarm.c | 43 +++--- 1 fil

[PATCH 15/18] thermal/drivers/hisi: Use round up step value

2017-10-19 Thread Daniel Lezcano
From: Kevin Wangtao Use round up division to ensure the programmed value of threshold and the lag are not less than what we set, and in order to keep the accuracy while using round up division, the step value should be a rounded up value. There is no need to use hisi_thermal_round_temp. Signed-

[PATCH 16/18] thermal/drivers/step_wise: Fix temperature regulation misbehavior

2017-10-19 Thread Daniel Lezcano
There is a particular situation when the cooling device is cpufreq and the heat dissipation is not efficient enough where the temperature increases little by little until reaching the critical threshold and leading to a SoC reset. The behavior is reproducible on a hikey6220 with bad heat dissipati

Re: [PATCH 4.4 11/41] KEYS: fix writing past end of user-supplied buffer in keyring_read()

2017-10-19 Thread Eric Biggers
On Thu, Oct 19, 2017 at 04:27:23PM +0100, David Howells wrote: > Eric Biggers wrote: > > > Hi Ben, thanks for pointing this out. I had assumed the "obvious" > > semantics, > > but it turns out that's not what's documented. > > The manpage is correct. keyctl_read_alloc() in libkeyutils relies

[PATCH 14/18] thermal/drivers/hisi: Move the clk setup in the corresponding functions

2017-10-19 Thread Daniel Lezcano
From: Kevin Wangtao The sensor's clock is enabled and disabled outside of the probe and disable function. Moving the corresponding action in the hisi_thermal_setup() and hisi_thermal_disable_sensor(), factors out some lines of code and makes the code more symmetric. Signed-off-by: Kevin Wangtao

[PATCH 12/18] thermal/drivers/hisi: Remove thermal data back pointer

2017-10-19 Thread Daniel Lezcano
The presence of the thermal data pointer in the sensor structure has the unique purpose of accessing the thermal data in the interrupt handler. The sensor pointer is passed when registering the interrupt handler, replace the cookie by the thermal data pointer, so the back pointer is no longer need

[PATCH 11/18] thermal/drivers/hisi: Convert long to int

2017-10-19 Thread Daniel Lezcano
There is no point to specify the temperature as long variable, the int is enough. Replace all long variables to int, so making the code consistent. Signed-off-by: Daniel Lezcano Reviewed-by: Leo Yan --- drivers/thermal/hisi_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[PATCH 07/18] thermal/drivers/hisi: Encapsulate register writes into helpers

2017-10-19 Thread Daniel Lezcano
Hopefully, the function name can help to clarify the semantic of the operations when writing in the register. Signed-off-by: Daniel Lezcano --- drivers/thermal/hisi_thermal.c | 92 -- 1 file changed, 70 insertions(+), 22 deletions(-) diff --git a/drivers/

[PATCH 08/18] thermal/drivers/hisi: Fix configuration register setting

2017-10-19 Thread Daniel Lezcano
The TEMP0_CFG configuration register contains different field to set up the temperature controller. However in the code, nothing prevents a setup to overwrite the previous one: eg. writing the hdak value overwrites the sensor selection, the sensor selection overwrites the hdak value. In order to p

[PATCH 06/18] thermal/drivers/hisi: Remove pointless lock

2017-10-19 Thread Daniel Lezcano
The threaded interrupt inspect the sensors structure to look in the temp threshold field, but this field is read-only in all the code, except in the probe function before the threaded interrupt is set. In other words there is not race window in the threaded interrupt when reading the field value.

Re: ath10k: fix core PCI suspend when WoWLAN is supported but disabled

2017-10-19 Thread Brian Norris
+ Arnd On Thu, Oct 19, 2017 at 02:32:45PM +, Kalle Valo wrote: > Kalle Valo writes: > > > Brian Norris wrote: > > > >> For devices where the FW supports WoWLAN but user-space has not > >> configured it, we don't do any PCI-specific suspend/resume operations, > >> because mac80211 doesn't ca

[PATCH 10/18] thermal/drivers/hisi: Rename and remove unused field

2017-10-19 Thread Daniel Lezcano
Rename the 'sensors' field to 'sensor' as we describe only one sensor. Remove the 'sensor_temp' as it is no longer used. Signed-off-by: Daniel Lezcano Reviewed-by: Leo Yan Tested-by: Leo Yan --- drivers/thermal/hisi_thermal.c | 18 -- 1 file changed, 8 insertions(+), 10 deletio

Re: [RFC PATCH v9 for 4.15 01/14] Restartable sequences system call

2017-10-19 Thread Florian Weimer
* Mathieu Desnoyers: > Speaking of optimization, I think the rseq.c helper library > (and eventually glibc) should define the __rseq_abi TLS > variable with __attribute__((tls_model("initial-exec"))). > It provides faster, and signal-safe, accesses to the TLS > variable from libraries. > > The ide

[PATCH] Input: elan_i2c - add ELAN0611 to the ACPI table

2017-10-19 Thread Kai-Heng Feng
ELAN0611 touchpad uses elan_i2c as its driver. It can be found on Lenovo ideapad 320-15IKB. So add it to ACPI table to enable the touchpad. BugLink: https://bugs.launchpad.net/bugs/1723736 Signed-off-by: Kai-Heng Feng --- drivers/input/mouse/elan_i2c_core.c | 1 + 1 file changed, 1 insertion(+)

[PATCH 04/18] thermal/drivers/hisi: Simplify the temperature/step computation

2017-10-19 Thread Daniel Lezcano
The step and the base temperature are fixed values, we can simplify the computation by converting the base temperature to milli celsius and use a pre-computed step value. That saves us a lot of mult + div for nothing at runtime. Take also the opportunity to change the function names to be consiste

[PATCH 03/18] thermal/drivers/hisi: Fix kernel panic on alarm interrupt

2017-10-19 Thread Daniel Lezcano
The threaded interrupt for the alarm interrupt is requested before the temperature controller is setup. This one can fire an interrupt immediately leading to a kernel panic as the sensor data is not initialized. In order to prevent that, move the threaded irq after the Tsensor is setup. Signed-of

[PATCH 05/18] thermal/drivers/hisi: Fix multiple alarm interrupts firing

2017-10-19 Thread Daniel Lezcano
The DT specifies a threshold of 65000, we setup the register with a value in the temperature resolution for the controller, 64656. When we reach 64656, the interrupt fires, the interrupt is disabled. Then the irq thread runs and calls thermal_zone_device_update() which will call in turn hisi_therm

[PATCH 00/17] coresight: perf: TMC ETR backend support

2017-10-19 Thread Suzuki K Poulose
The TMC-ETR supports routing the Coresight trace data to the System memory. It supports two different modes in which the memory could be used. 1) Contiguous memory - The memory is assumed to be physically contiguous. 2) Scatter Gather list - The memory can be chunks of 4K pages, which are specifi

[PATCH 16/17] coresight: perf: Remove reset_buffer call back for sinks

2017-10-19 Thread Suzuki K Poulose
Right now we issue an update_buffer() and reset_buffer() call backs in succession when we stop tracing an event. The update_buffer is supposed to check the status of the buffer and make sure the ring buffer is updated with the trace data. And we store information about the size of the data collecte

[PATCH 15/17] coresight: etr_buf: Add helper for padding an area of trace data

2017-10-19 Thread Suzuki K Poulose
This patch adds a helper to insert barrier packets for a given size (aligned to packet size) at given offset in an etr_buf. This will be used later for perf mode when we try to start in the middle of an SG buffer. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresig

[PATCH 13/17] coresight etr: Do not clean ETR trace buffer

2017-10-19 Thread Suzuki K Poulose
We zero out the entire trace buffer used for ETR before it is enabled, for helping with debugging. Since we could be restoring a session in perf mode, this could destroy the data. Get rid of this step, if someone wants to debug, they can always add it as and when needed. Cc: Mathieu Poirier Signe

[PATCH 12/17] coresight etr: Relax collection of trace from sysfs mode

2017-10-19 Thread Suzuki K Poulose
Since the ETR now uses mode specific buffers, we can reliably provide the trace data captured in sysfs mode, even when the ETR is operating in PERF mode. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 14 ++ 1 file changed,

[PATCH 17/17] coresight perf: Add ETR backend support for etm-perf

2017-10-19 Thread Suzuki K Poulose
Add necessary support for using ETR as a sink in ETM perf tracing. We try make the best use of the available modes of buffers to try and avoid software double buffering. We can use the perf ring buffer for ETR directly if all of the conditions below are met : 1) ETR is DMA coherent 2) perf is us

[PATCH 07/17] coresight: tmc etr: Add transparent buffer management

2017-10-19 Thread Suzuki K Poulose
At the moment we always use contiguous memory for TMC ETR tracing when used from sysfs. The size of the buffer is fixed at boot time and can only be changed by modifiying the DT. With the introduction of SG support we could support really large buffers in that mode. This patch abstracts the buffer

Re: [PATCH v5] printk: hash addresses printed with %p

2017-10-19 Thread Kees Cook
On Wed, Oct 18, 2017 at 10:49 PM, Jason A. Donenfeld wrote: > static void fill_random_ptr_key(struct random_ready_callback *rdy) > { > get_random_bytes(&ptr_secret, sizeof(ptr_secret)); > static_branch_disable(&no_ptr_secret); > } > > static struct random_ready_callback random_ready = { >

[PATCH 09/17] coresight: Convert driver messages to dev_dbg

2017-10-19 Thread Suzuki K Poulose
Convert component enable/disable messages from dev_info to dev_dbg. This is required to prevent LOCKDEP splats when operating in perf mode where we could be called with locks held to enable a coresight path. If someone wants to really see the messages, they can always enable it at runtime via dynam

[PATCH 14/17] coresight: etr: Add support for save restore buffers

2017-10-19 Thread Suzuki K Poulose
Add support for creating buffers which can be used in save-restore mode (e.g, for use by perf). If the TMC-ETR supports save-restore feature, we could support the mode in all buffer backends. However, if it doesn't, we should fall back to using in built SG mechanism, where we can rotate the SG tabl

[PATCH 11/17] coresight etr: Handle driver mode specific ETR buffers

2017-10-19 Thread Suzuki K Poulose
Since the ETR could be driven either by SYSFS or by perf, it becomes complicated how we deal with the buffers used for each of these modes. The ETR driver cannot simply free the current attached buffer without knowing the provider (i.e, sysfs vs perf). To solve this issue, we provide: 1) the drive

[PATCH 10/17] coresight: etr: Track if the device is coherent

2017-10-19 Thread Suzuki K Poulose
Track if the ETR is dma-coherent or not. This will be useful in deciding if we should use software buffering for perf. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc.c | 5 - drivers/hwtracing/coresight/coresight-tmc.h | 1 + 2 files change

[PATCH 08/17] coresight: tmc: Add configuration support for trace buffer size

2017-10-19 Thread Suzuki K Poulose
Now that we can dynamically switch between contiguous memory and SG table depending on the trace buffer size, provide the support for selecting an appropriate buffer size. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../ABI/testing/sysfs-bus-coresight-devices-tmc| 8 ++ dri

[PATCH 06/17] coresight: tmc: Make ETR SG table circular

2017-10-19 Thread Suzuki K Poulose
Make the ETR SG table Circular buffer so that we could start at any of the SG pages and use the entire buffer for tracing. This can be achieved by : 1) Keeping an additional LINK pointer at the very end of the SG table, i.e, after the LAST buffer entry, to point back to the beginning of the first

[PATCH 04/17] coresight: Add generic TMC sg table framework

2017-10-19 Thread Suzuki K Poulose
This patch introduces a generic sg table data structure and associated operations. An SG table can be used to map a set of Data pages where the trace data could be stored by the TMC ETR. The information about the data pages could be stored in different formats, depending on the type of the underlyi

Re: [PATCH 2/2] fs, elf: drop MAP_FIXED from initial ET_DYN segment

2017-10-19 Thread Kees Cook
On Thu, Oct 19, 2017 at 4:20 AM, Michal Hocko wrote: > On Tue 17-10-17 13:01:04, Kees Cook wrote: >> On Tue, Oct 17, 2017 at 2:04 AM, Michal Hocko wrote: > [...] >> > I am not insisting on this patch but it seems to me is just makes a >> > recoverable state a failure. >> >> Right, I understand yo

[PATCH 01/17] coresight etr: Disallow perf mode temporarily

2017-10-19 Thread Suzuki K Poulose
We don't support ETR in perf mode yet. Temporarily fail the operation until we add proper support. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 28 ++--- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git

[PATCH 05/17] coresight: Add support for TMC ETR SG unit

2017-10-19 Thread Suzuki K Poulose
This patch adds support for setting up an SG table used by the TMC ETR inbuilt SG unit. The TMC ETR uses 4K page sized tables to hold pointers to the 4K data pages with the last entry in a table pointing to the next table with the entries, by kind of chaining. The 2 LSBs determine the type of the t

Re: [PATCH v5 6/9] soc: mediatek: extend bus protection API

2017-10-19 Thread Matthias Brugger
On 10/19/2017 04:48 AM, Weiyi Lu wrote: > MT2712 add "set/clear" bus control register to each control register set > instead of providing only one "enable" control register, we could avoid > the read-modify-write racing by using extend API with such new design. > By improving the mtk-infracfg bus

Re: [PATCH 02/27] Add a SysRq option to lift kernel lockdown

2017-10-19 Thread Randy Dunlap
On 10/19/17 07:50, David Howells wrote: > From: Kyle McMartin > > Make an option to provide a sysrq key that will lift the kernel lockdown, > thereby allowing the running kernel image to be accessed and modified. > > On x86_64 this is triggered with SysRq+x, but this key may not be available > o

[PATCH 02/17] coresight tmc: Hide trace buffer handling for file read

2017-10-19 Thread Suzuki K Poulose
At the moment we adjust the buffer pointers for reading the trace data via misc device in the common code for ETF/ETB and ETR. Since we are going to change how we manage the buffer for ETR, let us move the buffer manipulation to the respective driver files, hiding it from the common code. We do so

[PATCH 03/17] coresight: Add helper for inserting synchronization packets

2017-10-19 Thread Suzuki K Poulose
Right now we open code filling the trace buffer with synchronization packets when the circular buffer wraps around in different drivers. Move this to a common place. Cc: Mathieu Poirier Cc: Mike Leach Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etb10.c | 10 +++-

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-19 Thread Grygorii Strashko
On 10/19/2017 03:33 AM, Ulf Hansson wrote: > On 18 October 2017 at 23:48, Rafael J. Wysocki wrote: >> On Wednesday, October 18, 2017 9:45:11 PM CEST Grygorii Strashko wrote: >>> >>> On 10/18/2017 09:11 AM, Ulf Hansson wrote: >> >> [...] >> >> That's the point. We know pm_runtime_force_* work

Re: libbattery was Re: [RFC PATCH 5/5] power: generic-adc-battery: Add capacity handling

2017-10-19 Thread H. Nikolaus Schaller
> Am 19.10.2017 um 19:06 schrieb Tony Lindgren : > > * H. Nikolaus Schaller [171019 09:57]: >> Hi Tony, >> >>> Am 19.10.2017 um 18:24 schrieb Tony Lindgren : >>> >>> * H. Nikolaus Schaller [171018 08:49]: > Am 18.10.2017 um 15:22 schrieb Tony Lindgren : > > * H. Nikolaus Sc

[PATCH 2/2] net: netrom: refactor code in nr_add_node

2017-10-19 Thread Gustavo A. R. Silva
Code refactoring in order to make the code easier to read and maintain. Signed-off-by: Gustavo A. R. Silva --- This code was tested by compilation only (GCC 7.2.0 was used). net/netrom/nr_route.c | 63 --- 1 file changed, 20 insertions(+), 43 dele

Re: [GIT PULL urgent-membarrier] membarrier commits for 4.14

2017-10-19 Thread Mathieu Desnoyers
- On Oct 18, 2017, at 3:59 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: > Hello, Linus, Hi Linus, Time did fly since I submitted this series near the beginning of the 4.14 rc cycle. Now that we are closer to the end of the cycle, a more surgical approach would be more appropriate.

Re: [PATCH 4/4][PoC][RFC] Allow to trace fd usage with rlimit-events

2017-10-19 Thread Krzysztof Opasiak
Hi, On 10/19/2017 01:05 AM, Al Viro wrote: On Wed, Oct 18, 2017 at 10:32:30PM +0200, Krzysztof Opasiak wrote: @@ -417,7 +417,7 @@ static int task_get_unused_fd_flags(struct binder_proc *proc, int flags) rlim_cur = task_rlimit(proc->tsk, RLIMIT_NOFILE); unlock_task_sighand(proc

[PATCH for 4.14] membarrier: Provide register expedited private command

2017-10-19 Thread Mathieu Desnoyers
[ This patch is sent directly to Linus, because it needs to be merged before the end of 4.14 rc cycle. It introduces a "register private expedited" membarrier command which allows eventual removal of important memory barrier constraints on the scheduler fast-paths. It changes how the "priva

Re: [PATCH 1/4][PoC][RFC] sched: Allow to get() and put() signal struct

2017-10-19 Thread Krzysztof Opasiak
On 10/19/2017 09:34 AM, Greg KH wrote: On Wed, Oct 18, 2017 at 10:32:27PM +0200, Krzysztof Opasiak wrote: Allow to get() and put() signal struct from different parts of kernel core, not only from signal.c. That says what this does, but not _why_. Who would ever want to have access to these

Re: libbattery was Re: [RFC PATCH 5/5] power: generic-adc-battery: Add capacity handling

2017-10-19 Thread Ladislav Michl
On Thu, Oct 19, 2017 at 09:24:16AM -0700, Tony Lindgren wrote: > * H. Nikolaus Schaller [171018 08:49]: > > > > > Am 18.10.2017 um 15:22 schrieb Tony Lindgren : > > > > > > * H. Nikolaus Schaller [171018 05:49]: > > >>> Am 18.10.2017 um 14:28 schrieb Pavel Machek : > > >>> > > >>> So I started

Re: [PATCH v5] printk: hash addresses printed with %p

2017-10-19 Thread Jason A. Donenfeld
> Tangent: why is the random_ready API designed with -EALREADY? Couldn't > add_random_ready_callback() just perform the call itself and avoid > needing all the callers to check for -EALREADY? Absolutely. I can submit a patch for this soon, though to avoid merge dependencies, and given the usual de

[PATCH 1/2] net: netrom: mark expected switch fall-throughs

2017-10-19 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- This code was tested by compilation only (GCC 7.2.0 was used). Please, verify if the actual intention of the code is to fall through. net/netrom/nr

<    3   4   5   6   7   8   9   10   11   12   >