Re: [PATCH 3/3] iio: pc104: Mask PC/104 drivers via the PC104 Kconfig option

2017-01-19 Thread Greg KH
On Wed, Jan 11, 2017 at 04:45:26PM +0100, Linus Walleij wrote: > On Tue, Jan 10, 2017 at 10:45 PM, William Breathitt Gray > wrote: > > On Tue, Jan 10, 2017 at 09:13:02PM +, Jonathan Cameron wrote: > >>On 10/01/17 18:51, William Breathitt Gray wrote: > >>> PC/104 drivers should be hidden on mac

Re: [PATCH 2/2] security: Change name of CONFIG_DEBUG_SET_MODULE_RONX

2017-01-19 Thread Robin Murphy
Hi Laura, On 19/01/17 01:29, Laura Abbott wrote: > > Despite the word 'debug' in CONFIG_DEBUG_SET_MODULE_RONX, this kernel > option provides key security features that are to be expected on a > modern system. Change the name to CONFIG_HARDENED_MODULE_MAPPINGS which > more accurately describes wha

Re: [RFC PATCH 1/2] mm, vmscan: account the number of isolated pages per zone

2017-01-19 Thread Michal Hocko
On Thu 19-01-17 10:07:55, Mel Gorman wrote: [...] > mm, vmscan: Wait on a waitqueue when too many pages are isolated > > When too many pages are isolated, direct reclaim waits on congestion to clear > for up to a tenth of a second. There is no reason to believe that too many > pages are isolated d

Re: [RESEND PATCHv1 6/8] mmc: sdhci: Clear SDHCI_HS400_TUNING flag after platform_execute_tuning

2017-01-19 Thread Ritesh Harjani
Hi Adrian, Thanks for reviewing. On 1/19/2017 3:40 PM, Adrian Hunter wrote: On 10/01/17 09:00, Ritesh Harjani wrote: Clear SDHCI_HS400_TUNING flag after platform_execute_tuning so that platform_execute_tuning may use it if needed. Sorry for the slow reply. platform_execute_tuning() should n

Re: [PATCH v2 3/6] x86/cpu: Re-apply forced caps every time cpu caps are re-read

2017-01-19 Thread Borislav Petkov
On Wed, Jan 18, 2017 at 11:15:39AM -0800, Andy Lutomirski wrote: > Calling get_cpu_cap() will reset a bunch of CPU features. This will > cause the system to lose track of force-set and force-cleared > featueres in the words that are reset until the end of CPU features > initialization. This can

Re: [PATCH v5 0/4] usb: early: add support for early printk through USB3 debug port

2017-01-19 Thread Mathias Nyman
On 19.01.2017 11:09, Ingo Molnar wrote: * Greg Kroah-Hartman wrote: On Wed, Jan 18, 2017 at 02:20:30PM +0800, Lu Baolu wrote: Hi Greg, This patch series has been there for 2 months without further comments. Will you consider it for usb-next? I needed acks from the x86 maintainers before I

Re: [PATCH] mmc: wbsd: safer check if dma_addr is valid DMA address

2017-01-19 Thread Ulf Hansson
On 13 January 2017 at 23:52, Alexey Khoroshilov wrote: > host->dma_addr can store a value that is not returned by the DMA API, > so it is safer to check if is a valid DMA address indirectly. > > Signed-off-by: Alexey Khoroshilov Thanks, applied for next! Kind regards Uffe > --- > drivers/mmc/

[PATCH v2] iio: light: acpi-als: Properly enable on ASUS Zenbooks

2017-01-19 Thread Josef Gajdusek
ASUS Zenbooks need several special ACPI calls to enable the ALS peripheral. Otherwise, reads just return 0. Signed-off-by: Josef Gajdusek --- drivers/iio/light/acpi-als.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/iio/light/acpi-als.c b/drivers/iio/light/acpi-

Re: [PATCH v11 08/14] usb: otg: add OTG/dual-role core

2017-01-19 Thread Vivek Gautam
Hi, On Wed, Jun 22, 2016 at 2:00 PM, Roger Quadros wrote: Luckily hit this thread while checking about DRD role functionality for DWC3. > On 22/06/16 11:14, Felipe Balbi wrote: >> >> Hi, >> >> Roger Quadros writes: >>> For the real use case, some Carplay platforms need it. >>

Re: [tpmdd-devel] [PATCH 1/2] tpm2: add session handle isolation to tpm spaces

2017-01-19 Thread Jarkko Sakkinen
On Wed, Jan 18, 2017 at 10:09:46AM -0500, James Bottomley wrote: > sessions should be isolated during each instance of a tpm space. This > means that spaces shouldn't be able to see each other's sessions and > also when a space is closed, all the sessions belonging to it should > be flushed. > >

Re: [PATCH 4.9 033/120] perf/x86/intel/uncore: Fix hardcoded socket 0 assumption in the Haswell init code

2017-01-19 Thread Greg Kroah-Hartman
On Thu, Jan 19, 2017 at 05:32:46AM -0500, Prarit Bhargava wrote: > > > On 01/18/2017 05:25 PM, Ingo Molnar wrote: > > > > * Prarit Bhargava wrote: > > > >> 4.9 is broken and requires additional patches beyond this patch. Applying > >> this > >> patch to 4.9 stable without those additional f

Re: [RESEND RFC 3/3] mmc: sdhci: Add more debug info in case of data error

2017-01-19 Thread Adrian Hunter
On 10/01/17 08:41, Ritesh Harjani wrote: > print error log message and dump sdhc registers for debugging > purpose in case of data errors (except when tuning commands > generate CRC/timeout/end bit errors). It is a bit ugly and probably only useful during driver development, so I am not at all ent

[RFC PATCH v2] modversions: redefine kcrctab entries as relative CRC pointers

2017-01-19 Thread Ard Biesheuvel
The modversion symbol CRCs are emitted as ELF symbols, which allows us to easily populate the kcrctab sections by relying on the linker to associate each kcrctab slot with the correct value. This has a couple of downsides: - On architectures that support runtime relocation, a R__RELATIVE relocat

Re: [kernel-hardening] Re: [PATCH 2/3] Make static usermode helper binaries constant

2017-01-19 Thread Greg KH
On Tue, Jan 17, 2017 at 04:29:19PM +0100, Greg KH wrote: > On Tue, Jan 17, 2017 at 10:19:11AM -0500, J. Bruce Fields wrote: > > On Tue, Jan 17, 2017 at 08:13:47AM +0100, Greg KH wrote: > > > On Mon, Jan 16, 2017 at 04:25:55PM -0500, J. Bruce Fields wrote: > > > > On Mon, Jan 16, 2017 at 05:50:31PM

[PATCH] x86: make delay work in earlier stages

2017-01-19 Thread Jiri Slaby
When a panic happens during bootup, "Rebooting in X seconds.." is shown, but reboot happens immediatelly. It is because panic uses mdelay and mdelay calls internally __const_udelay which is broken while booting. The per_cpu cpu_info.loops_per_jiffy is not initialized yet, so __const_udelay actuall

[PATCH] panic: add missing \n

2017-01-19 Thread Jiri Slaby
When a system panics, the "Rebooting in X seconds.." message is never printed because it lacks a new line. Fix it. Signed-off-by: Jiri Slaby --- kernel/panic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/panic.c b/kernel/panic.c index af16ab54f88e..b95959733ce0 100

Re: [tpmdd-devel] [PATCH 2/2] tpm2: context save and restore space managed sessions

2017-01-19 Thread Jarkko Sakkinen
On Wed, Jan 18, 2017 at 10:10:42AM -0500, James Bottomley wrote: > Now that sessions are isolated, we can introduce a session_buf in the > tpm2 space to save and restore them. This allows us to have many more > sessions active simultaneously (up to TPM_PT_MAX_SESSIONS). As part > of this, we must

Re: [PATCH 1/3] pinctrl: Widen the generic pinconf argument from 16 to 24 bits

2017-01-19 Thread Andy Shevchenko
On Thu, 2017-01-19 at 12:48 +0300, Mika Westerberg wrote: > The current pinconf packed format allows only 16-bit argument limiting > the maximum value 65535. For most types this is enough. However, > debounce time can be in range of hundreths of milliseconds in case of > mechanical switches so we c

Re: [PATCH] ARM: smp: Remove CPU: shutdown notice

2017-01-19 Thread Sergey Senozhatsky
On (01/18/17 11:56), Florian Fainelli wrote: [..] > >>> CPU hotplug isn't a fast operation anyway - it's also fairly disruptive > >>> in that it uses stop_machine() to halt activity everywhere while taking > >>> the CPU offline. > >> > >> We have a test that consists in shutting down all CPUs as fr

Re: [PATCH v2] MIPS: KVM: Return directly after a failed copy_from_user() in kvm_arch_vcpu_ioctl()

2017-01-19 Thread James Hogan
On Thu, Jan 19, 2017 at 11:27:52AM +0100, Paolo Bonzini wrote: > > > On 19/01/2017 11:20, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Thu, 19 Jan 2017 11:10:26 +0100 > > > > * Return directly after a call of the function "copy_from_user" failed > > in a case block. > > > > *

Re: [PATCH 2/3] pinctrl: Allow configuration of pins from gpiolib based drivers

2017-01-19 Thread Andy Shevchenko
On Thu, 2017-01-19 at 12:48 +0300, Mika Westerberg wrote: > When a GPIO driver is backed by a pinctrl driver the GPIO driver > sometimes needs to call the pinctrl driver to configure certain > things, > like whether the pin is used as input or output. In addition to this > there are other configura

Re: [tpmdd-devel] [PATCH 1/2] tpm2: add session handle isolation to tpm spaces

2017-01-19 Thread James Bottomley
On Thu, 2017-01-19 at 13:58 +0200, Jarkko Sakkinen wrote: > On Wed, Jan 18, 2017 at 10:09:46AM -0500, James Bottomley wrote: > > sessions should be isolated during each instance of a tpm space. > > This means that spaces shouldn't be able to see each other's > > sessions and also when a space is

Re: [tpmdd-devel] [PATCH 2/2] tpm2: context save and restore space managed sessions

2017-01-19 Thread James Bottomley
On Thu, 2017-01-19 at 14:04 +0200, Jarkko Sakkinen wrote: > On Wed, Jan 18, 2017 at 10:10:42AM -0500, James Bottomley wrote: > > Now that sessions are isolated, we can introduce a session_buf in > > the tpm2 space to save and restore them. This allows us to have > > many more sessions active sim

Re: [PATCH V7 1/4] Documentation/devicetree/bindings: b850v3_lvds_dp

2017-01-19 Thread Laurent Pinchart
Hi Peter, On Thursday 19 Jan 2017 10:25:32 Peter Senna Tschudin wrote: > On Thu, Jan 19, 2017 at 10:17:45AM +0200, Laurent Pinchart wrote: > > On Thursday 19 Jan 2017 09:12:14 Peter Senna Tschudin wrote: > >> On Wed, Jan 18, 2017 at 11:10:58PM +0200, Laurent Pinchart wrote: > >>> On Monday 16 Jan

Re: linux-next: Tree for Jan 18

2017-01-19 Thread Ard Biesheuvel
On 18 January 2017 at 20:44, Paul Gortmaker wrote: > On Wed, Jan 18, 2017 at 12:32 AM, Stephen Rothwell > wrote: >> Hi all, >> >> Changes since 20170117: >> >> The arm-soc tree gained a conflict against the arm tree. >> >> The amlogic tree gained a conflict against the arm-soc tree. >> >> Non-me

Re: [PATCH 4.9 033/120] perf/x86/intel/uncore: Fix hardcoded socket 0 assumption in the Haswell init code

2017-01-19 Thread Prarit Bhargava
On 01/18/2017 12:20 PM, Greg Kroah-Hartman wrote: > On Wed, Jan 18, 2017 at 11:55:58AM -0500, Prarit Bhargava wrote: >> >> >> On 01/18/2017 11:33 AM, Greg Kroah-Hartman wrote: >>> On Wed, Jan 18, 2017 at 09:38:07AM -0500, Prarit Bhargava wrote: On 01/18/2017 05:45 AM, Greg Kroah-Ha

Re: [PATCH 3/3] pinctrl / gpio: Introduce .set_config() callback for GPIO chips

2017-01-19 Thread Andy Shevchenko
On Thu, 2017-01-19 at 12:48 +0300, Mika Westerberg wrote: > Currently we already have two pin configuration related callbacks > available for GPIO chips .set_single_ended() and .set_debounce(). In > future we expect to have even more, which does not scale well if we > need > to add yet another call

[PATCH v7] tpm: Check size of response before accessing data

2017-01-19 Thread Stefan Berger
Make sure that we have not received less bytes than what is indicated in the header of the TPM response. Also, check the number of bytes in the response before accessing its data. Signed-off-by: Stefan Berger -- v7: - Followed Jarkko's suggestions on v6 v6: - Fixed comparsion of size_t with

Re: [PATCH 0/3] pinctrl / gpio: Allow GPIO chips to use generic pinconfig

2017-01-19 Thread Andy Shevchenko
On Thu, 2017-01-19 at 12:48 +0300, Mika Westerberg wrote: > This series makes it possible to configure pins from GPIO chip drivers > by > implementing a new callback .set_config(). This callback replaces the > existing .set_single_ended() and .set_debounce() simply because adding > new > callbacks

Re: [PATCH v3] [media] coda: add Freescale firmware compatibility location

2017-01-19 Thread Baruch Siach
Hi Philipp, (Adding firmware loader maintainers to Cc). On Thu, Jan 19, 2017 at 10:44:54AM +0100, Philipp Zabel wrote: > On Wed, 2017-01-18 at 21:33 +0200, Baruch Siach wrote: > > > - if (dev->firmware == 1) { > > > + if (dev->firmware > 0) { > > > > Why would vpu/vpu_fw_*.bin and v4l-coda960-*.

Re: [tpmdd-devel] [PATCH RFC v3 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-19 Thread James Bottomley
On Thu, 2017-01-19 at 12:49 +0200, Jarkko Sakkinen wrote: > On Wed, Jan 18, 2017 at 10:01:03AM -0500, James Bottomley wrote: > > On Mon, 2017-01-16 at 15:12 +0200, Jarkko Sakkinen wrote: > > > From: James Bottomley > > > > > > Currently the Resource Manager (RM) is not exposed to userspace. > >

Re: [PATCH 2/6] usb: mtu3: add reference clock

2017-01-19 Thread Matthias Brugger
On 18/01/17 07:08, Chunfeng Yun wrote: usually, the reference clock comes from 26M oscillator directly, but some SoCs are not, add it for compatibility. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h |1 + drivers/usb/mtu3/mtu3_plat.c | 21 +++-- 2 files c

Re: [PATCH 2/2] rtc: tegra: Implement clock handling

2017-01-19 Thread Peter De Schrijver
On Thu, Jan 12, 2017 at 05:07:43PM +0100, Thierry Reding wrote: > From: Thierry Reding > > Accessing the registers of the RTC block on Tegra requires the module > clock to be enabled. This only works because the RTC module clock will > be enabled by default during early boot. However, because the

Re: [PATCH] power: reset: Add MAX77620 support

2017-01-19 Thread Thierry Reding
On Fri, Jan 13, 2017 at 04:44:25AM +0100, Sebastian Reichel wrote: > On Thu, Jan 12, 2017 at 05:15:07PM +0100, Thierry Reding wrote: [...] > > + if (!of_property_read_bool(np, "system-power-controller")) > > + return 0; > > + > > + power = devm_kzalloc(&pdev->dev, sizeof(*power), GFP_

Re: [PATCH 4/6] arm64: dts: mt8173: add reference clock for usb

2017-01-19 Thread Matthias Brugger
On 19/01/17 10:37, Greg Kroah-Hartman wrote: On Wed, Jan 18, 2017 at 02:08:25PM +0800, Chunfeng Yun wrote: add 26M reference clock for ssusb and xhci nodes Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173.dtsi |6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

Re: [PATCH] power: reset: Add MAX77620 support

2017-01-19 Thread Thierry Reding
On Thu, Jan 12, 2017 at 11:05:05PM +0530, Laxman Dewangan wrote: > > On Thursday 12 January 2017 11:05 PM, Thierry Reding wrote: > > * PGP Signed by an unknown key > > > > On Thu, Jan 12, 2017 at 10:06:24PM +0530, Laxman Dewangan wrote: > > > On Thursday 12 January 2017 09:45 PM, Thierry Reding w

Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion

2017-01-19 Thread Jarkko Sakkinen
On Wed, Jan 18, 2017 at 03:48:09PM -0500, James Bottomley wrote: > In a TPM2, sessions can be globally exhausted once there are > TPM_PT_ACTIVE_SESSION_MAX of them (even if they're all context saved). > The Strategy for handling this is to keep a global count of all the > sessions along with their

Re: [PATCH v20 13/17] acpi/arm64: Add GTDT table parse driver

2017-01-19 Thread Fu Wei
Hi Mark, On 19 January 2017 at 19:16, Mark Rutland wrote: > On Thu, Jan 19, 2017 at 06:32:55PM +0800, Fu Wei wrote: >> On 19 January 2017 at 17:11, Hanjun Guo wrote: >> > On 2017/1/18 21:25, fu@linaro.org wrote: >> >> From: Fu Wei > >> >> + else if (!gtdt->platform_timer_count) >> >>

Re: [PATCH 4.9 033/120] perf/x86/intel/uncore: Fix hardcoded socket 0 assumption in the Haswell init code

2017-01-19 Thread Prarit Bhargava
On 01/19/2017 06:49 AM, Greg Kroah-Hartman wrote: > On Thu, Jan 19, 2017 at 05:32:46AM -0500, Prarit Bhargava wrote: >> >> >> On 01/18/2017 05:25 PM, Ingo Molnar wrote: >>> >>> * Prarit Bhargava wrote: >>> 4.9 is broken and requires additional patches beyond this patch. Applying this

[PATCH v2 1/4] mfd: cros_ec: Add helper for event notifier.

2017-01-19 Thread Enric Balletbo i Serra
From: Gwendal Grignou Add cros_ec_get_event() entry point to retrieve event within functions called by the notifier. Signed-off-by: Gwendal Grignou Signed-off-by: Enric Balletbo i Serra Acked-by: Lee Jones --- Changelog: * Added the ack by Lee Jones drivers/platform/chrome/cros_ec_proto.

[PATCH v2 2/4] mfd: cros_ec: Introduce RTC commands and events definitions.

2017-01-19 Thread Enric Balletbo i Serra
From: Stephen Barber The EC can function as a simple RT, this patch adds the RTC related definitions needed by the rtc-cros-ec driver. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra Acked-by: Lee Jones --- Changelog: * Added the ack by Lee Jones include/linux/mfd/cro

[PATCH v2 4/4] mfd: cros_ec: add RTC as mfd subdevice

2017-01-19 Thread Enric Balletbo i Serra
From: Stephen Barber If the EC supports RTC host commands, expose an RTC device. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_dev.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/platform/chrome/cr

[PATCH v2 3/4] rtc: cros-ec: add cros-ec-rtc driver.

2017-01-19 Thread Enric Balletbo i Serra
From: Stephen Barber On platforms with a Chrome OS EC, the EC can function as a simple RTC. Add a basic driver with this functionality. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra --- Changelog * Moved RTC_DRV_CROS_EC after "Platform RTC drivers" (Alexandre Belloni)

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-19 Thread Lorenzo Pieralisi
On Wed, Jan 18, 2017 at 09:45:56PM +0200, Andy Shevchenko wrote: [...] > > +/** > > + * acpi_irq_get - Look for the ACPI IRQ resource with the given index and > > + *use it to initialize the given Linux IRQ resource. > > + * @handle ACPI device handle > > + * @index ACPI IRQ reso

Re: [PATCH 2/2] pwm: pca9685: fix prescaler initialization

2017-01-19 Thread Andy Shevchenko
On Wed, 2017-01-18 at 15:25 +0100, Clemens Gruber wrote: > On Wed, Jan 18, 2017 at 04:01:58PM +0200, Andy Shevchenko wrote: > > On Wed, 2017-01-18 at 14:53 +0100, Clemens Gruber wrote: > > > Yes, but the period could be different, maybe modified in the > > > bootloader > > > or at a previous boot w

Re: [PATCH v20 16/17] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2017-01-19 Thread Hanjun Guo
On 2017/1/19 18:02, Fu Wei wrote: Hi Hanjun, On 19 January 2017 at 17:16, Hanjun Guo wrote: On 2017/1/18 21:25, fu@linaro.org wrote: From: Fu Wei The patch add memory-mapped timer register support by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei

Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion

2017-01-19 Thread Jarkko Sakkinen
On Thu, Jan 19, 2017 at 02:25:33PM +0200, Jarkko Sakkinen wrote: > On Wed, Jan 18, 2017 at 03:48:09PM -0500, James Bottomley wrote: > > In a TPM2, sessions can be globally exhausted once there are > > TPM_PT_ACTIVE_SESSION_MAX of them (even if they're all context saved). > > The Strategy for handli

Re: libertas: fix improper return value

2017-01-19 Thread Kalle Valo
Pan Bian wrote: > Function lbs_cmd_802_11_sleep_params() always return 0, even if the call > to lbs_cmd_with_response() fails. In this case, the parameter @sp will > keep uninitialized. Because the return value is 0, its caller (say > lbs_sleepparams_read()) will not detect the error, and will cop

Re: [PATCH v20 08/17] clocksource/drivers/arm_arch_timer: Rework counter frequency detection.

2017-01-19 Thread Hanjun Guo
On 2017/1/19 17:44, Fu Wei wrote: Hi Hanjun, On 19 January 2017 at 16:02, Hanjun Guo wrote: Hi Fuwei, One comments below. On 2017/1/18 21:25, fu@linaro.org wrote: From: Fu Wei The counter frequency detection call(arch_timer_detect_rate) combines two ways to get counter frequency: sy

Re: [PATCH v3 2/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-19 Thread Ulf Hansson
On 18 January 2017 at 08:50, Matt Ranostay wrote: > On Sun, Jan 15, 2017 at 6:35 PM, Shawn Lin wrote: >> On 2017/1/16 5:41, Matt Ranostay wrote: >>> >>> On Thu, Jan 12, 2017 at 11:16 PM, Shawn Lin >>> wrote: On 2017/1/13 13:29, Matt Ranostay wrote: > > > Allow power sequenc

Re: [PATCH v3 09/13] sata: ahci: export ahci_do_hardreset() locally

2017-01-19 Thread Tejun Heo
On Thu, Jan 19, 2017 at 11:55:24AM +0100, Bartosz Golaszewski wrote: > 2017-01-18 19:28 GMT+01:00 Tejun Heo : > > Hello, Bartosz. > > > > On Wed, Jan 18, 2017 at 02:19:57PM +0100, Bartosz Golaszewski wrote: > >> We need a way to retrieve the information about the online state of > >> the link in th

Re: [PATCH V3 1/4] efi/x86: move efi bgrt init code to early init code

2017-01-19 Thread Ard Biesheuvel
On 18 January 2017 at 19:24, Bhupesh Sharma wrote: > On Wed, Jan 18, 2017 at 7:30 PM, Ard Biesheuvel > wrote: >> On 18 January 2017 at 13:48, Dave Young wrote: >>> Before invoking the arch specific handler, efi_mem_reserve() reserves >>> the given memory region through memblock. >>> >>> efi_bgrt

Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion

2017-01-19 Thread James Bottomley
On Thu, 2017-01-19 at 14:25 +0200, Jarkko Sakkinen wrote: > On Wed, Jan 18, 2017 at 03:48:09PM -0500, James Bottomley wrote: > > In a TPM2, sessions can be globally exhausted once there are > > TPM_PT_ACTIVE_SESSION_MAX of them (even if they're all context > > saved). > > The Strategy for handling

[PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM

2017-01-19 Thread Andrei Pistirica
This patch does the following: - MACB/GEM-PTP interface - registers and bitfields for TSU - capability flags to enable PTP per platform basis Signed-off-by: Andrei Pistirica --- Patch history: Version 1: This is just the common code for MACB/GEM-PTP support. Code is based on the comments related

Re: [PATCH] procfs: change the owner of non-dumpable and writeable files

2017-01-19 Thread Aleksa Sarai
In order to protect against ptrace(2) and similar attacks on container runtimes when they join namespaces, many runtimes set mm->dumpable to SUID_DUMP_DISABLE. However, doing this means that attempting to set up an unprivileged user namespace will fail because an unprivileged process can no longer

Re: [RFC PATCH 1/2] mm, vmscan: account the number of isolated pages per zone

2017-01-19 Thread Mel Gorman
On Thu, Jan 19, 2017 at 12:23:36PM +0100, Michal Hocko wrote: > On Thu 19-01-17 10:07:55, Mel Gorman wrote: > [...] > > mm, vmscan: Wait on a waitqueue when too many pages are isolated > > > > When too many pages are isolated, direct reclaim waits on congestion to > > clear > > for up to a tenth

RE: [PATCH 2/3] qed: avoid possible stack overflow in qed_ll2_acquire_connection

2017-01-19 Thread Mintz, Yuval
> 968,23 +968,19 @@ static int qed_ll2_start_ooo(struct qed_dev *cdev, { > struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev); > u8 *handle = &hwfn->pf_params.iscsi_pf_params.ll2_ooo_queue_id; > - struct qed_ll2_info *ll2_info; > + struct qed_ll2_conn ll2_info; A bit confusing to

Re: [PATCH v10 3/4] console: Add persistent scrollback buffers for all VGA consoles

2017-01-19 Thread Greg KH
On Fri, Jan 13, 2017 at 09:07:57PM +0100, Manuel Schölling wrote: > Add a scrollback buffers for each VGA console. The benefit is that > the scrollback history is not flushed when switching between consoles > but is persistent. > The buffers are allocated on demand when a new console is opened. >

Re: [PATCH 3/4] ARM: nommu: display vectors base

2017-01-19 Thread Afzal Mohammed
Hi, On Wed, Jan 18, 2017 at 10:13:15PM +, Russell King - ARM Linux wrote: > On Thu, Jan 19, 2017 at 02:08:37AM +0530, afzal mohammed wrote: > > + MLK_ROUNDUP(vectors_base, vectors_base + PAGE_SIZE), > > I think MLK() will do here - no need to use the rounding-up version > a

[PATCH v10 2/5] i2c: Add STM32F4 I2C driver

2017-01-19 Thread M'boumba Cedric Madianga
This patch adds support for the STM32F4 I2C controller. Signed-off-by: M'boumba Cedric Madianga --- drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-stm32f4.c | 897 +++ 3 files changed, 908 insertions(

[PATCH v10 4/5] ARM: dts: stm32: Add I2C1 support for STM32429 eval board

2017-01-19 Thread M'boumba Cedric Madianga
This patch adds I2C1 instance support for STM32x9I-Eval board. Signed-off-by: M'boumba Cedric Madianga --- arch/arm/boot/dts/stm32429i-eval.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 76f7206..c9

[PATCH v10 1/5] dt-bindings: Document the STM32 I2C bindings

2017-01-19 Thread M'boumba Cedric Madianga
This patch adds documentation of device tree bindings for the STM32 I2C controller. Signed-off-by: M'boumba Cedric Madianga Acked-by: Rob Herring --- .../devicetree/bindings/i2c/i2c-stm32.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentatio

[PATCH v10 3/5] ARM: dts: stm32: Add I2C1 support for STM32F429 SoC

2017-01-19 Thread M'boumba Cedric Madianga
This patch adds I2C1 support for STM32F429 SoC Signed-off-by: Patrice Chotard Signed-off-by: M'boumba Cedric Madianga --- arch/arm/boot/dts/stm32f429.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.

Re: [PATCH v9 1/3] gpio: exar: add gpio for exar cards

2017-01-19 Thread Greg Kroah-Hartman
On Sun, Jan 15, 2017 at 04:57:32PM +0200, Andy Shevchenko wrote: > On Sun, Jan 15, 2017 at 12:50 AM, Sudip Mukherjee > wrote: > > From: Sudip Mukherjee > > > > Exar XR17V352/354/358 chips have 16 multi-purpose inputs/outputs which > > can be controlled using gpio interface. > > > > Add the gpio s

[PATCH v10 5/5] ARM: configs: stm32: Add I2C support for STM32 defconfig

2017-01-19 Thread M'boumba Cedric Madianga
This patch adds I2C support for STM32 default configuration Signed-off-by: M'boumba Cedric Madianga --- arch/arm/configs/stm32_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index 5a72d69..323d2a3 100644 --- a/

[PATCH v4 14/14] ARM: davinci: remove BUG_ON() from da850_register_sata()

2017-01-19 Thread Bartosz Golaszewski
The ahci driver now supports other refclk clock rates. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/devices-da8xx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index cfceb32..7cf529f 100644 -

Re: [PATCH 1/4] ARM: mmu: decouple VECTORS_BASE from Kconfig

2017-01-19 Thread Afzal Mohammed
+ Marvell Berlin SoC maintainers - Sebastian, Jisheng On Thu, Jan 19, 2017 at 02:07:39AM +0530, afzal mohammed wrote: > For MMU configurations, VECTORS_BASE is always 0x, a macro > definition will suffice. > > Once exception address is handled dynamically for no-MMU also (this > would inv

[PATCH v4 13/14] ARM: dts: da850-lcdk: enable the SATA node

2017-01-19 Thread Bartosz Golaszewski
Enable the SATA node for da850-lcdk. We omit the pinctrl property on purpose - the muxed SATA pins are not hooked up to anything SATA-related on the lcdk. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850-lcdk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot

[GIT PULL] HID fixes

2017-01-19 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive: = - regression fix for generic Wacom devices, from Jason Gerecke - DMA-on-stack fixes for hid-corsair driver, from Johan Hovold = Thanks. ---

Re: [PATCH v3 06/13] ARM: davinci: da850: model the SATA refclk

2017-01-19 Thread Bartosz Golaszewski
2017-01-18 18:26 GMT+01:00 David Lechner : > On 01/18/2017 07:19 AM, Bartosz Golaszewski wrote: >> >> int __init da850_register_sata(unsigned long refclkpn) >> { >> + int ret; >> + >> /* please see comment in drivers/ata/ahci_da850.c */ >> BUG_ON(refclkpn != 100 * 1000 * 100

[PATCH v4 11/14] sata: ahci-da850: un-hardcode the MPY bits

2017-01-19 Thread Bartosz Golaszewski
All platforms using this driver now register the SATA refclk. Remove the hardcoded default value from the driver and instead read the rate of the external clock and calculate the required MPY value from it. Signed-off-by: Bartosz Golaszewski --- drivers/ata/ahci_da850.c | 91

[PATCH v4 12/14] ARM: dts: da850: add the SATA node

2017-01-19 Thread Bartosz Golaszewski
Add the SATA node to the da850 device tree. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 104155d..e9bf30e 100644 --- a/arch/arm/boot/dts/da850.dtsi +

Re: __mutex_lock_common() unlikely very likely

2017-01-19 Thread Steven Rostedt
On Thu, 19 Jan 2017 08:55:07 + Chris Wilson wrote: > On Wed, Jan 18, 2017 at 03:58:24PM -0500, Steven Rostedt wrote: > > Chris, > > > > My branch tracer flagged the unlikely in __mutex_lock_common() as > > always hit. That's the: > > > > if (use_ww_ctx) { > > [...] > >

[PATCH 6/7] ARM: dts: stm32: Enable dma by default on stm32f4 adc

2017-01-19 Thread Fabrice Gasnier
Configure STM32F4 ADC to use dma by default. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32f429.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index 11d2715..e85db07 100644 --- a/arch/arm/boot/dts/stm

[PATCH v10 0/5] Add support for the STM32F4 I2C

2017-01-19 Thread M'boumba Cedric Madianga
This patchset adds support for the I2C controller embedded in STM32F4xx SoC. It enables I2C transfer in interrupt mode with Standard-mode and Fast-mode bus speed. Changes since v9: - Fix minor typo in some comments - Add some comments to explain how the driver check TRISE and CCR value have no c

[PATCH 4/7] Documentation: dt: iio: stm32-adc: optional dma support

2017-01-19 Thread Fabrice Gasnier
STM32 ADC can use dma. Add dt documentation for optional dma support. Signed-off-by: Fabrice Gasnier --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentati

[PATCH 3/7] iio: adc: stm32: add trigger polarity extended attribute

2017-01-19 Thread Fabrice Gasnier
Define extended attribute so that user may choose rising, falling or both edges for external trigger sources. Default to rising edge in case it isn't set. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-adc.c | 51 - 1 file changed, 50 inserti

[PATCH v4 01/14] devicetree: bindings: add bindings for ahci-da850

2017-01-19 Thread Bartosz Golaszewski
Add DT bindings for the TI DA850 AHCI SATA controller. Signed-off-by: Bartosz Golaszewski --- Documentation/devicetree/bindings/ata/ahci-da850.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/ata/ahci-da850.txt diff --git a/Documen

[PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h

2017-01-19 Thread Gideon Israel Dsouza
There is which provides macros for various gcc specific constructs. Eg: __weak for __attribute__((weak)). I've cleaned all instances of gcc specific attributes with the right macros for all files under /arch/m68k This patch depends on the previous with changes in /include/linux/compiler-gcc.h Si

[PATCH v4 07/14] sata: ahci-da850: add device tree match table

2017-01-19 Thread Bartosz Golaszewski
We're using device tree for da850-lcdk. Add the match table to allow to probe the driver. Signed-off-by: Bartosz Golaszewski --- drivers/ata/ahci_da850.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index 8cfdc86..7f5328f 100644 -

[PATCH v4 04/14] sata: ahci-da850: get the sata clock using a connection id

2017-01-19 Thread Bartosz Golaszewski
In preparation for using two clocks in the driver (the sysclk2-based clock and the external REFCLK), check if we got a functional clock after calling ahci_platform_get_resources(). If not, retry calling clk_get() with con_id specified. Signed-off-by: Bartosz Golaszewski --- drivers/ata/ahci_da85

[PATCH v4 06/14] ARM: davinci: da850: model the SATA refclk

2017-01-19 Thread Bartosz Golaszewski
Register a dummy clock modelling the external SATA oscillator for da850 (both DT and board file mode). Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da8xx-dt.c | 8 arch/arm/mach-davinci/devices-da8xx.c | 29 + arch/arm/mach-dav

Re: tip.today - scheduler bam boom crash (cpu hotplug)

2017-01-19 Thread Peter Zijlstra
On Thu, Jan 19, 2017 at 11:19:24AM +0100, Peter Zijlstra wrote: > I'll go have a prod. Thanks! This seems to cure it for me. --- Subject: sched/clock: Fix hotplug issue Mike reported that he could trigger the WARN_ON_ONCE() in set_sched_clock_stable() using hotplug. This exposed a fundamental

[PATCH v4 10/14] sata: ahci-da850: add a workaround for controller instability

2017-01-19 Thread Bartosz Golaszewski
We have a use case with the da850 SATA controller where at PLL0 frequency of 456MHz (needed to properly service the LCD controller) the chip becomes unstable and the hardreset operation is ignored the first time 50% of times. The sata core driver already retries to resume the link because some con

[PATCH v4 05/14] ARM: davinci: da850: add con_id for the SATA clock

2017-01-19 Thread Bartosz Golaszewski
The ahci-da850 SATA driver is now capable of retrieving clocks by con_id. Add the connection id for the sysclk2-derived SATA clock. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da850.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/da850

[PATCH v4 09/14] sata: ahci: export ahci_do_hardreset() locally

2017-01-19 Thread Bartosz Golaszewski
We need a way to retrieve the information about the online state of the link in the ahci-da850 driver. Create a new function: ahci_do_hardreset() which is called from ahci_hardreset() for backwards compatibility, but has an additional argument: 'online' - which can be used to check if the link is

Re: [PATCH v2 2/9] tty_port: allow a port to be opened with a tty that has no file handle

2017-01-19 Thread Greg Kroah-Hartman
On Mon, Jan 16, 2017 at 04:54:29PM -0600, Rob Herring wrote: > From: Alan Cox > > Let us create tty objects entirely in kernel space. Untested proposal to > show why all the ideas around rewriting half the uart stack are not needed. > > With this a kernel created non file backed tty object could

[PATCH v4 00/14] ARM: da850-lcdk: add SATA support

2017-01-19 Thread Bartosz Golaszewski
This series contains all the changes necessary to make SATA work on the da850-lcdk board. The first patch adds DT bindings for the ahci-da850 driver. The second enables relevant modules in davinci_all_defconfig. Patches 03/14-06/14 modify the way the clocks are handled regarding SATA on the da85

[PATCH v4 02/14] ARM: davinci_all_defconfig: enable SATA modules

2017-01-19 Thread Bartosz Golaszewski
Add the da850-ahci driver to davinci defconfig. Signed-off-by: Bartosz Golaszewski --- arch/arm/configs/davinci_all_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig index 8806754..a1b9c58 100644 --- a

[PATCH v4 03/14] ARM: davinci: add a clock lookup entry for the SATA clock

2017-01-19 Thread Bartosz Golaszewski
This entry is needed for the ahci driver to get a functional clock. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da8xx-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index 9ee44da..b83e5d1 100644 --- a/

[PATCH 7/7] ARM: dts: stm32: Enable pwm1 and pwm3 for stm32f469-eval

2017-01-19 Thread Fabrice Gasnier
Define and enable pwm1 and pwm3, timers1 & 3 trigger outputs on stm32f469-eval board. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32429i-eval.dts | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dt

[PATCH 1/7] iio: adc: stm32: add support for triggered buffer mode

2017-01-19 Thread Fabrice Gasnier
STM32 ADC conversions can be launched using hardware triggers. It can be used to start conversion sequences (group of channels). Selected channels are select via sequence registers. Trigger source is selected via 'extsel' (external trigger mux). Trigger polarity is set to rising edge by default. S

[PATCH 2/7] iio: adc: stm32: Enable use of stm32 timer triggers

2017-01-19 Thread Fabrice Gasnier
STM32 ADC has external timer trigger sources. Use stm32 timer triggers API (e.g. is_stm32_timer_trigger()) with local ADC lookup table to validate a trigger can be used. This also provides correct trigger selection value (e.g. extsel). Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/Kconfig

[PATCH 5/7] iio: adc: stm32: add optional dma support

2017-01-19 Thread Fabrice Gasnier
Add optional DMA support to STM32 ADC. Use dma cyclic mode with at least two periods. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/Kconfig | 2 + drivers/iio/adc/stm32-adc-core.c | 1 + drivers/iio/adc/stm32-adc-core.h | 2 + drivers/iio/adc/stm32-adc.c | 209 ++

[PATCH 0/7] Add support for triggered buffer mode to STM32 ADC

2017-01-19 Thread Fabrice Gasnier
The following patches add support for triggered buffer mode. These are based on top of "Add PWM and IIO timer drivers for STM32" series. Reference: https://lkml.org/lkml/2017/1/18/588 STM32 ADC, can use either interrupts or DMA to collect data. Either timer trigger output (TRGO) or PWM can be used

Re: [PATCH v4 1/2] tpm: implement TPM 2.0 capability to get active PCR banks

2017-01-19 Thread Nayna
On 01/19/2017 04:17 PM, Jarkko Sakkinen wrote: On Wed, Jan 18, 2017 at 07:19:06PM +0530, Nayna wrote: On 01/18/2017 07:15 PM, Jarkko Sakkinen wrote: On Wed, Jan 18, 2017 at 03:44:49AM -0500, Nayna Jain wrote: This patch implements the TPM 2.0 capability TPM_CAP_PCRS to retrieve the active

Re: [PATCH] x86/MCE: Remove MCP_TIMESTAMP

2017-01-19 Thread Borislav Petkov
On Wed, Jan 18, 2017 at 09:34:13PM +0100, Borislav Petkov wrote: > I'll run it tomorrow. Ok, here it is, it looks ok while testing in a guest and injecting MCEs. --- From: Borislav Petkov Date: Wed, 18 Jan 2017 21:34:41 +0100 Subject: [PATCH] x86/MCE: Flip the TSC-adding logic Add the TSC value

[PATCH 1/2] compiler-gcc.h: Added new macro for gcc attribute

2017-01-19 Thread Gideon Israel Dsouza
Added __mode(x) into compiler-gcc.h as part of a cleanup task I've taken up, to replace gcc specific attributes with macros. Last accepted patch I sent into linux-next for crypto: d8c34b949d8c: crypto: Replaced gcc specific attributes with macros from compiler.h The last commit of this task that

RE: [PATCH V2 00/18] *** SUBJECT HERE ***

2017-01-19 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Thursday, January 19, 2017 1:34 AM > To: KY Srinivasan > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; > jasow...@redhat.com; lean

Re: [PATCH 4.9 033/120] perf/x86/intel/uncore: Fix hardcoded socket 0 assumption in the Haswell init code

2017-01-19 Thread Ingo Molnar
* Greg Kroah-Hartman wrote: > On Thu, Jan 19, 2017 at 05:32:46AM -0500, Prarit Bhargava wrote: > > > > > > On 01/18/2017 05:25 PM, Ingo Molnar wrote: > > > > > > * Prarit Bhargava wrote: > > > > > >> 4.9 is broken and requires additional patches beyond this patch. > > >> Applying this >

<    1   2   3   4   5   6   7   8   9   10   >