Re: [PATCH 0/2] Two cleanups for Sphinx conf.py

2017-09-08 Thread Mauro Carvalho Chehab
Em Fri, 8 Sep 2017 10:10:26 -0600 Jonathan Corbet escreveu: > On Sun, 3 Sep 2017 16:12:44 -0300 > Mauro Carvalho Chehab wrote: > > > Those patches are just cleanups for Documentation/conf.py. > > > > The first one removes a package usage directive for a LateX package > > that it is not used.

Re: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added

2017-09-08 Thread Florian Fainelli
On 09/08/2017 12:01 PM, Andrew Lunn wrote: >>> So i would suggest one driver supporting all the different devices. >> >> There will be 5 drivers to support these devices: >> >> ksz9477.c - KSZ9893/KSZ9897/KSZ9567/KSZ9566/KSZ9477 >> ksz8795.c - KSZ8795/KSZ8795/KSZ8765 >> ksz8895.c - KSZ8895/KSZ8864

Re: [PATCH] media: default for RC_CORE should be n

2017-09-08 Thread Stephen Hemminger
On Fri, 8 Sep 2017 19:52:47 +0100 Sean Young wrote: > On Fri, Sep 08, 2017 at 09:39:29AM -0700, Stephen Hemminger wrote: > > The Linus policy on Kconfig is that the default should be no > > for all new devices. I.e the user rebuild a new kernel from an > > old config should not by default get a l

Re: [PATCH v2 32/40] tracing: Add cpu field for hist triggers

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:44 -0500 Tom Zanussi wrote: > A common key to use in a histogram is the cpuid - add a new cpu > 'synthetic' field for that purpose. This field is named cpu rather > than $cpu or $common_cpu because 'cpu' already exists as a special > filter field and it makes more sense

Re: [PATCH v2 31/40] tracing: Allow whitespace to surround hist trigger filter

2017-09-08 Thread Tom Zanussi
On Fri, 2017-09-08 at 14:50 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:43 -0500 > Tom Zanussi wrote: > > > The existing code only allows for one space before and after the 'if' > > specifying the filter for a hist trigger. Add code to make that more > > permissive as far as whitesp

Re: [PATCH v3 06/11] perf, tools, stat: Support JSON metrics in perf stat

2017-09-08 Thread Andi Kleen
> > PERF_CPUID=GenuineIntel-... > > > > See the mapfile.csv for valid codes > > > > But it's quite a few. > > yeah, I'm testing on the ones I have access and on a Skylake machine I'm > having > trouble, see below. > [root@seventh ~]# perf stat -vv --metric-only -M Summary -a sleep 1 The proble

Re: [PATCH v2 33/40] tracing: Add hist trigger support for variable reference aliases

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:45 -0500 Tom Zanussi wrote: > Add support for alias=$somevar where alias can be used as > onmatch($alias). This change log is very lacking. What exactly is the purpose of alias? Sounds like the variable is going undercover. -- Steve > > Signed-off-by: Tom Zanussi

Re: [PATCH] ALSA: msnd: Optimize / harden DSP and MIDI loops

2017-09-08 Thread Greg KH
On Fri, Sep 08, 2017 at 06:57:57PM +0200, Takashi Iwai wrote: > On Fri, 08 Sep 2017 18:06:25 +0200, > grygorii tertychnyi wrote: > > > > Hi Greg, > > > > Could you please apply it for 4.4-stable. > > This fixes https://nvd.nist.gov/vuln/detail/CVE-2017-9985 > > This vulnerability is just non-iss

Re: [PATCH v2 0/2] enable hires timer to timeout datagram socket

2017-09-08 Thread Eric Dumazet
On Fri, 2017-09-08 at 11:55 -0700, Eduardo Valentin wrote: > Hello, > > On Fri, Sep 08, 2017 at 10:26:45AM -0700, David Miller wrote: > > From: David Woodhouse > > Date: Fri, 08 Sep 2017 18:23:22 +0100 > > > > > I don't know that anyone's ever tried saying "show me the chapter > and > > > verse

Re: [PATCH v7] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Greg Kroah-Hartman
On Fri, Sep 08, 2017 at 10:03:37AM -0400, Jeffrey Chu wrote: > > > This message and any attachments may contain confidential information from > Cypress or its subsidiaries. If it has been received in error, please advise > the sender and immediately delete this message. I'm advising you that I

Re: [PATCH 1/2] staging: typec: tcpm: Validate source and sink caps

2017-09-08 Thread Greg Kroah-Hartman
On Fri, Sep 08, 2017 at 10:29:52AM -0700, Badhri Jagan Sridharan wrote: > On Fri, Sep 8, 2017 at 2:45 AM, Greg Kroah-Hartman > wrote: > > On Thu, Sep 07, 2017 at 06:22:13PM -0700, Badhri Jagan Sridharan wrote: > >> The source and sink caps should follow the following rules. > >> This patch validat

[PATCH] omap2: hsmmc: fix logic to call either omap_hsmmc_init or omap_hsmmc_late_init but not both

2017-09-08 Thread H. Nikolaus Schaller
With 4.13 kernel I get this boot message: [    1.051727] [ cut here ] [    1.051818] WARNING: CPU: 0 PID: 1 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x54/0x74 [    1.051849] sysfs: cannot create duplicate filename '/devices/platform/omap_hsmmc.2' [    1.051879] Modules linked

[PULL REQUEST] i2c for 4.14

2017-09-08 Thread Wolfram Sang
Linus, For v4.14, I2C has the following changes: * new drivers for Spreadtrum I2C, Intel Cherry Trail Whiskey Cove SMBUS * quite some driver updates * cleanups for the i2c-mux subsystem * some subsystem-wide constification * further cleanup of include/linux/i2c For the latter topic, I applied a

Re: [PATCH v2 34/40] tracing: Add 'last error' error facility for hist triggers

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:46 -0500 Tom Zanussi wrote: > +static char *hist_err_str; > +static char *last_hist_cmd; > + > +static int hist_err_alloc(void) > +{ > + int ret = 0; > + > + last_hist_cmd = kzalloc(MAX_FILTER_STR_VAL, GFP_KERNEL); > + if (!last_hist_cmd) > + retu

[GIT PULL] VFIO updates for v4.14-rc1

2017-09-08 Thread Alex Williamson
Hi Linus, The following changes since commit aae4e7a8bc44722fe70d58920a36916b1043195e: Linux 4.13-rc4 (2017-08-06 18:44:49 -0700) are available in the git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v4.14-rc1 for you to fetch changes up to 417fb50d5516e8526769c16ff5b9

Re: [PATCH net-next 2/3] net: ethernet: socionext: add AVE ethernet driver

2017-09-08 Thread Florian Fainelli
On 09/08/2017 06:02 AM, Kunihiko Hayashi wrote: > The UniPhier platform from Socionext provides the AVE ethernet > controller that includes MAC and MDIO bus supporting RGMII/RMII > modes. The controller is named AVE. > > Signed-off-by: Kunihiko Hayashi > Signed-off-by: Jassi Brar > --- > driver

Re: [PATCH v2 35/40] tracing: Reverse the order event_mutex/trace_types_lock are taken

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:47 -0500 Tom Zanussi wrote: > Change the order event_mutex and trace_types_lock are taken, to avoid > circular dependencies and lockdep spew. > > Changing the order shouldn't matter to any current code, but does to > anything that takes the event_mutex first and then tr

[GIT PULL] zstd support (lib, btrfs, squashfs)

2017-09-08 Thread Chris Mason
Hi Linus, Nick Terrell's patch series to add zstd support to the kernel has been floating around for a while. After talking with Dave Sterba, Herbert and Phillip, we decided to send the whole thing in as one pull request. I have it in my zstd branch: git://git.kernel.org/pub/scm/linux/kernel/gi

Re: [PATCH v2 32/40] tracing: Add cpu field for hist triggers

2017-09-08 Thread Tom Zanussi
On Fri, 2017-09-08 at 15:08 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:44 -0500 > Tom Zanussi wrote: > > > A common key to use in a histogram is the cpuid - add a new cpu > > 'synthetic' field for that purpose. This field is named cpu rather > > than $cpu or $common_cpu because 'cp

[PATCH 0/3] [media] Freescale VIU: Adjustments for five function implementations

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 21:28:12 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in viu_of_probe() Improve two size determinations in viu_of_probe() Adjust

[RFC PATCH v8 0/2] mmap: safely enable support for new flags

2017-09-08 Thread Dan Williams
Changes since v7 [1]: * rebase on the mid-merge-window state of the tree to pick up new mmap implementations. * expand the mmap operation handler conversion beyond 'struct file_operations' to include, 'struct etnaviv_gem_ops', 'struct dma_buf_ops', 'struct drm_driver', 'struct fb_ops', and '

Re: [PATCH v2 33/40] tracing: Add hist trigger support for variable reference aliases

2017-09-08 Thread Tom Zanussi
On Fri, 2017-09-08 at 15:09 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:45 -0500 > Tom Zanussi wrote: > > > Add support for alias=$somevar where alias can be used as > > onmatch($alias). > > This change log is very lacking. What exactly is the purpose of alias? > > Sounds like the

Re: [PATCH v2 35/40] tracing: Reverse the order event_mutex/trace_types_lock are taken

2017-09-08 Thread Steven Rostedt
On Fri, 8 Sep 2017 15:31:35 -0400 Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:47 -0500 > Tom Zanussi wrote: > > > Change the order event_mutex and trace_types_lock are taken, to avoid > > circular dependencies and lockdep spew. > > > > Changing the order shouldn't matter to any current c

[PATCH 1/3] [media] fsl-viu: Delete an error message for a failed memory allocation in viu_of_probe()

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 21:03:22 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/platform/fsl-viu.c | 1 - 1 file changed, 1 deletion(-)

[RFC PATCH v8 2/2] mm: introduce MAP_SHARED_VALIDATE, a mechanism to safely define new mmap flags

2017-09-08 Thread Dan Williams
The mmap(2) syscall suffers from the ABI anti-pattern of not validating unknown flags. However, proposals like MAP_SYNC and MAP_DIRECT need a mechanism to define new behavior that is known to fail on older kernels without the support. Define a new MAP_SHARED_VALIDATE flag pattern that is guaranteed

[PATCH 2/3] [media] fsl-viu: Improve two size determinations in viu_of_probe()

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 21:12:52 +0200 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 the Linux coding style convention. This issue was detect

Re: [PATCH v2 34/40] tracing: Add 'last error' error facility for hist triggers

2017-09-08 Thread Tom Zanussi
On Fri, 2017-09-08 at 15:25 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:46 -0500 > Tom Zanussi wrote: > > > +static char *hist_err_str; > > +static char *last_hist_cmd; > > + > > +static int hist_err_alloc(void) > > +{ > > + int ret = 0; > > + > > + last_hist_cmd = kzalloc(MAX_FI

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3

2017-09-08 Thread Ross Zwisler
On Tue, Sep 05, 2017 at 03:20:50PM -0400, Jerome Glisse wrote: <> > Does HMAT support device hotplug ? I am unfamiliar with the whole inner > working > of ACPI versus PCIE. Anyway i don't see any issue with device memory also > showing > through HMAT but like i said device driver for the device w

[PATCH] media: rc: Use bsearch library function

2017-09-08 Thread Thomas Meyer
Replace self coded binary search, by existing library version. Signed-off-by: Thomas Meyer --- drivers/media/rc/rc-main.c | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 981cccd

[PATCH 3/3] [media] fsl-viu: Adjust six checks for null pointers

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 21:16:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pla

RE: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added

2017-09-08 Thread Tristram.Ha
> -Original Message- > From: Maxim Uvarov [mailto:muva...@gmail.com] > Sent: Friday, September 08, 2017 12:00 PM > To: Florian Fainelli > Cc: Tristram Ha - C24268; Andrew Lunn; Pavel Machek; Nathan Conrad; Vivien > Didelot; netdev; linux-kernel@vger.kernel.org; Woojung Huh - C21699 > Subjec

[PATCH] pps-gpio: use IRQ edge config when not capturing both edges

2017-09-08 Thread Tim Harvey
PPS signals with very short pulse-widths can be missed if their state changes by the time the interrupt handler reads the GPIO pin state. To avoid this in the case where we are only looking for one edge we can use the edge configuration for the pin state but fall back to reading the pin if both ed

[PATCH] mmc: tegra: Mark 64 bit dma broken on Tegra186

2017-09-08 Thread Krishna Reddy
SDHCI controllers on Tegra186 support 40 bit addressing. IOVA addresses are 48-bit wide on Tegra186. SDHCI host common code sets dma mask as either 32-bit or 64-bit. To avoid access issues when SMMU is enabled, disable 64-bit dma. Signed-off-by: Krishna Reddy --- drivers/mmc/host/sdhci-tegra.c |

Re: [patch v8 1/4] drivers: jtag: Add JTAG core driver

2017-09-08 Thread Arnd Bergmann
On Fri, Sep 8, 2017 at 6:13 PM, Oleksandr Shamray wrote: > Initial patch for JTAG driver > JTAG class driver provide infrastructure to support hardware/software > JTAG platform drivers. It provide user layer API interface for flashing > and debugging external devices which equipped with JTAG inter

RE: [PATCH v7] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Jeffrey Chu
You did not receive this email message in error. You are the intended recipient of this email message. Everything included in this email message do not contain confidential information from Cypress or its subsidiaries. Regards, -Jeffrey -Original Message- From: linux-usb-ow...@vger.k

Re: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added

2017-09-08 Thread Florian Fainelli
On 09/08/2017 12:48 PM, tristram...@microchip.com wrote: >> -Original Message- >> From: Maxim Uvarov [mailto:muva...@gmail.com] >> Sent: Friday, September 08, 2017 12:00 PM >> To: Florian Fainelli >> Cc: Tristram Ha - C24268; Andrew Lunn; Pavel Machek; Nathan Conrad; Vivien >> Didelot; netd

[PATCH] MAINTAINERS: update linuxpps mailing list

2017-09-08 Thread Tim Harvey
Signed-off-by: Tim Harvey --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1c3feff..2f797bf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10576,7 +10576,7 @@ F: drivers/net/ppp/ppp_* PPS SUPPORT M: Rodolfo Giometti W

[PATCH 1/3] perf/x86/intel/uncore: Cache logical pkg id in uncore driver

2017-09-08 Thread Prarit Bhargava
From: Andi Kleen The SNB-EP uncore driver is the only user of topology_phys_to_logical_pkg in a performance critical path. Change it query the logical pkg ID only once at initialization time and then cache it in box structure. Signed-off-by: Andi Kleen --- arch/x86/events/intel/uncore.c

[PATCH 3/3] x86/smpboot: Fix __max_logical_packages estimate

2017-09-08 Thread Prarit Bhargava
A system booted with a small number of cores enabled per package panics because the estimate of __max_logical_packages is too low. This occurs when the total number of active cores across all packages is less than the maximum core count for a single package. eg) On a 4 package system with 20 cores

Re: [GIT PULL] Security subsystem updates for 4.14

2017-09-08 Thread James Morris
On Fri, 8 Sep 2017, Linus Torvalds wrote: > Now the whole security pull will be ignored because of this thing. I > refuse to pull garbage where I notice major fundamental problems in > code that has obviously never ever been tested. If I revert the change from my my tree, will you pull it then?

[PATCH 0/3] x86/smpboot: Cleanup logical package ID

2017-09-08 Thread Prarit Bhargava
Andi posted two patches to clean up the logical package ID, and I posted a bug fix for systems which boot with less than than the maximum core count. If I take his changes into account the code base ends up with a significant cleanup. I am reposting his patches here. I boot tested this using max_

[PATCH 2/3] x86/topology: Avoid wasting 128k for package id array

2017-09-08 Thread Prarit Bhargava
From: Andi Kleen I was looking at large early boot allocations and noticed that since (1f12e32f x86/topology: Create logical package id) every 64bit system allocates a 128k array to convert logical package ids. This happens because the array is sized for MAX_LOCAL_APIC and that is always 32k on

[PATCH] Staging: ccree: Merge assignment with return

2017-09-08 Thread Srishti Sharma
Return the return value of a function directly, instead of first saving it in a variable and then returning it. This change was made using the following semantic patch by coccinelle. @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Srishti Sharma -

Re: [PATCH v2 35/40] tracing: Reverse the order event_mutex/trace_types_lock are taken

2017-09-08 Thread Steven Rostedt
On Fri, 8 Sep 2017 15:41:36 -0400 Steven Rostedt wrote: > On Fri, 8 Sep 2017 15:31:35 -0400 > Steven Rostedt wrote: > > > On Tue, 5 Sep 2017 16:57:47 -0500 > > Tom Zanussi wrote: > > > > > Change the order event_mutex and trace_types_lock are taken, to avoid > > > circular dependencies and

Re: [PATCH 2/9] Implement containers as kernel objects

2017-09-08 Thread Paul Moore
On Fri, Aug 18, 2017 at 4:03 AM, Richard Guy Briggs wrote: > On 2017-08-16 18:21, Paul Moore wrote: >> On Mon, Aug 14, 2017 at 1:47 AM, Richard Guy Briggs wrote: >> > Hi David, >> > >> > I wanted to respond to this thread to attempt some constructive feedback, >> > better late than never. I had

Re: HAVE_EFFICIENT_UNALIGNED_ACCESS on ARM32 (was: Alignment issues in zImage with Linux 4.12, LZ4 and GCC5.3)

2017-09-08 Thread Arnd Bergmann
On Thu, Sep 7, 2017 at 1:31 AM, Ard Biesheuvel wrote: > On 7 September 2017 at 00:18, Arnd Bergmann wrote: >> On Thu, Sep 7, 2017 at 12:48 AM, Ard Biesheuvel >> I see lots of unaligned helpers in the lz4 code, is this not what >> we hit? >> >> $ git grep unaligned lib/ >> lib/lz4/lz4_compress.c:

RE: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added

2017-09-08 Thread Tristram.Ha
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Friday, September 08, 2017 12:54 PM > To: Tristram Ha - C24268; muva...@gmail.com > Cc: and...@lunn.ch; pa...@ucw.cz; nathan.leigh.con...@gmail.com; > vivien.dide...@savoirfairelinux.com; net...@vger.kernel.

Re: [PATCH v2] leds: pca955x: Don't invert requested value in pca955x_gpio_set_value()

2017-09-08 Thread Jacek Anaszewski
Hi Andrew, Thanks for the patch. On 09/01/2017 07:38 AM, Andrew Jeffery wrote: > The PCA9552 lines can be used either for driving LEDs or as GPIOs. The > manual states that for LEDs, the operation is open-drain: > > The LSn LED select registers determine the source of the LED data. > >

Re: [Outreachy kernel] [PATCH] Staging: ccree: Merge assignment with return

2017-09-08 Thread Julia Lawall
On Sat, 9 Sep 2017, Srishti Sharma wrote: > Return the return value of a function directly, instead of first saving it in > a variable and then returning it. This change was made using the following Your commit message should respect the 80 character limit. The above is one very long line. >

[PATCH] ARC: Reenable soft lock-up detector

2017-09-08 Thread Alexey Brodkin
Commit 92e5aae45778 "kernel/watchdog: split up config options" introduced SOFTLOCKUP_DETECTOR which selects LOCKUP_DETECTOR instead of the latter to be selected itself. We need to adjust our defconfigs accordingly. Signed-off-by: Alexey Brodkin --- arch/arc/configs/axs101_defconfig | 2 +-

[PATCH] [media] pxa_camera: Delete an error message for a failed memory allocation in pxa_camera_probe()

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 22:05:14 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/platform/pxa_camera.c | 4 +--- 1 file changed, 1 inserti

Re: [RFC v3 2/3] interconnect: Add basic event tracing

2017-09-08 Thread Georgi Djakov
On 8.09.17 г. 21:13, Steven Rostedt wrote: > On Fri, 8 Sep 2017 20:18:29 +0300 > Georgi Djakov wrote: > >> diff --git a/include/trace/events/interconnect.h >> b/include/trace/events/interconnect.h >> new file mode 100644 >> index ..c4a72163873c >> --- /dev/null >> +++ b/include/trac

Re: [PATCH resend v2] power: supply: bq27xxx: enable writing capacity values for bq27421

2017-09-08 Thread Liam Breck
Hi Nikolaus, On Fri, Sep 8, 2017 at 10:38 AM, H. Nikolaus Schaller wrote: > Hi Liam, > I finally continues testing on OpenPandora. > >> Am 31.08.2017 um 22:19 schrieb Liam Breck : >> >> Hi, >> >> This may be a fix that allows >0 input from DT, but won't try to >> program the register since the f

[GIT PULL] platform-drivers-x86 for 4.14-1

2017-09-08 Thread Darren Hart
Hi Linus, The previously merged dell-wmi fix noted in the tag message causes a merge conflict which resolves easily by accepting the hunks from this tag. The following changes since commit 972777171f33f9932f51feebe42dbcc1b475d01a: platform/x86: wmi: Fix error handling in acpi_wmi_init() (2017-

Re: [Outreachy kernel] [PATCH] Staging: ccree: Merge assignment with return

2017-09-08 Thread Srishti Sharma
On Sat, Sep 9, 2017 at 1:42 AM, Julia Lawall wrote: > > > On Sat, 9 Sep 2017, Srishti Sharma wrote: > >> Return the return value of a function directly, instead of first saving it >> in a variable and then returning it. This change was made using the following > > Your commit message should respe

Re: [PATCH v2 40/40] tracing: Add trace_event_buffer_reserve() variant that allows recursion

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:52 -0500 Tom Zanussi wrote: > Synthetic event generation requires the reservation of a second event > while the reservation of a previous event is still in progress. The > trace_recursive_lock() check in ring_buffer_lock_reserve() prevents > this however. > > This sets

Re: [PATCH resend v2] power: supply: bq27xxx: enable writing capacity values for bq27421

2017-09-08 Thread H. Nikolaus Schaller
Hi Liam, > Am 08.09.2017 um 22:19 schrieb Liam Breck : > > Hi Nikolaus, > > On Fri, Sep 8, 2017 at 10:38 AM, H. Nikolaus Schaller > wrote: >> Hi Liam, >> I finally continues testing on OpenPandora. >> >>> Am 31.08.2017 um 22:19 schrieb Liam Breck : >>> >>> Hi, >>> >>> This may be a fix that

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3

2017-09-08 Thread Jerome Glisse
On Fri, Sep 08, 2017 at 01:43:44PM -0600, Ross Zwisler wrote: > On Tue, Sep 05, 2017 at 03:20:50PM -0400, Jerome Glisse wrote: > <> > > Does HMAT support device hotplug ? I am unfamiliar with the whole inner > > working > > of ACPI versus PCIE. Anyway i don't see any issue with device memory also

Re: [Outreachy kernel] [PATCH] Staging: ccree: Merge assignment with return

2017-09-08 Thread Julia Lawall
On Sat, 9 Sep 2017, Srishti Sharma wrote: > On Sat, Sep 9, 2017 at 1:42 AM, Julia Lawall wrote: > > > > > > On Sat, 9 Sep 2017, Srishti Sharma wrote: > > > >> Return the return value of a function directly, instead of first saving it > >> in a variable and then returning it. This change was ma

Re: [PATCH 00/14] Fix wrong %pF and %pS printk format specifier usages

2017-09-08 Thread Helge Deller
On 08.09.2017 08:23, Sergey Senozhatsky wrote: > On (09/06/17 22:27), Helge Deller wrote: >> This patch series fixes the wrong usages of the %pF and %pS printk format >> specifiers throughout the kernel code. >> >> Both specifiers have the same result on most architectures. But on ia64, >> ppc64 >

Re: [PATCH v2 40/40] tracing: Add trace_event_buffer_reserve() variant that allows recursion

2017-09-08 Thread Tom Zanussi
On Fri, 2017-09-08 at 16:27 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:52 -0500 > Tom Zanussi wrote: > > > Synthetic event generation requires the reservation of a second event > > while the reservation of a previous event is still in progress. The > > trace_recursive_lock() check

[PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-08 Thread YASUAKI ISHIMATSU
__remove_section() calls __remove_zone() to shrink zone and pgdat. But due to wrong castings, __remvoe_zone() cannot shrink zone and pgdat correctly if pfn is over 0x. So the patch fixes the following 3 wrong castings. 1. find_smallest_section_pfn() returns 0 or start_pfn which defined

Tracing Summit 2017 Schedule

2017-09-08 Thread Julien Desfossez
The schedule for the Tracing Summit 2017 that will be held in Prague, Czech Republic on October 27th, 2017 is now available online: http://tracingsummit.org/wiki/TracingSummit2017#Schedule If you want to attend and are not yet registered, please do it quickly as the room is already almost full. Se

Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3

2017-09-08 Thread Dan Williams
On Thu, Sep 7, 2017 at 6:59 PM, Bob Liu wrote: > On 2017/9/8 1:27, Jerome Glisse wrote: [..] >> No this are 2 orthogonal thing, they do not conflict with each others quite >> the contrary. HMM (the CDM part is no different) is a set of helpers, see >> it as a toolbox, for device driver. >> >> HMAT

[PATCH V14 0/4] powerpc/vphn: Update CPU topology when VPHN enabled

2017-09-08 Thread Michael Bringmann
powerpc/numa: On Power systems with shared configurations of CPUs and memory, there are some issues with the association of additional CPUs and memory to nodes when hot-adding resources. This patch addresses some of those problems. First, it corrects the currently broken capability to set the top

[PATCH V14 2/4] powerpc/vphn: Improve recognition of PRRN/VPHN

2017-09-08 Thread Michael Bringmann
powerpc/vphn: On Power systems with shared configurations of CPUs and memory, there are some issues with the association of additional CPUs and memory to nodes when hot-adding resources. This patch updates the initialization checks to independently recognize PRRN or VPHN support. Signed-off-by: M

[PATCH 2/3] ARM: dts: keystone-k2g: Add SPI nodes

2017-09-08 Thread Franklin S Cooper Jr
From: Vitaly Andrianov Add nodes for the various SPI instances. Signed-off-by: Vitaly Andrianov Signed-off-by: Franklin S Cooper Jr --- arch/arm/boot/dts/keystone-k2g.dtsi | 48 + 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g

[PATCH V14 1/4] powerpc/vphn: Update CPU topology when VPHN enabled

2017-09-08 Thread Michael Bringmann
powerpc/vphn: On Power systems with shared configurations of CPUs and memory, there are some issues with the association of additional CPUs and memory to nodes when hot-adding resources. This patch corrects the currently broken capability to set the topology for shared CPUs in LPARs. At boot time

[PATCH V14 4/4] powerpc/vphn: Fix numa update end-loop bug

2017-09-08 Thread Michael Bringmann
powerpc/vphn: On Power systems with shared configurations of CPUs and memory, there are some issues with the association of additional CPUs and memory to nodes when hot-adding resources. This patch fixes an end-of-updates processing problem observed occasionally in numa_update_cpu_topology(). Sig

[PATCH V14 3/4] powerpc/hotplug: Improve responsiveness of hotplug change

2017-09-08 Thread Michael Bringmann
powerpc/hotplug: On Power systems with shared configurations of CPUs and memory, there are some issues with the association of additional CPUs and memory to nodes when hot-adding resources. During hotplug CPU operations, this patch resets the timer on topology update work function to a small value

[PATCH 0/3] ARM: dts: keystone-k2g-evm: Add SPI nodes and enable SPI1 on K2G EVM

2017-09-08 Thread Franklin S Cooper Jr
Update the binding document to indicate the required requirements for 66AK2G. In addition add the proper SPI nodes for 66AK2G. For K2G EVM enable SPI1 which is used for the on board SPI NOR. Franklin S Cooper Jr (1): dt-bindings: spi: spi-davinci: Update binding for 66AK2Gx pwr dm property

[PATCH 3/3] ARM: dts: keystone-k2g-evm: add bindings for SPI NOR flash

2017-09-08 Thread Franklin S Cooper Jr
From: Murali Karicheri K2G EVM has n25q128a13 SPI NOR flash on SPI1. Enable SPI1 in the DT node as well as add a subnode for the SPI NOR. Signed-off-by: Murali Karicheri Signed-off-by: Franklin S Cooper Jr --- arch/arm/boot/dts/keystone-k2g-evm.dts | 37 ++ 1 f

[PATCH 1/3] dt-bindings: spi: spi-davinci: Update binding for 66AK2Gx pwr dm property

2017-09-08 Thread Franklin S Cooper Jr
Add pm-domains property which is required for 66AK2Gx. Also document 66AK2G unique clocks property usage. Signed-off-by: Franklin S Cooper Jr --- Documentation/devicetree/bindings/spi/spi-davinci.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/binding

Re: [PATCH 00/14] Fix wrong %pF and %pS printk format specifier usages

2017-09-08 Thread Helge Deller
On 08.09.2017 08:18, Sergey Senozhatsky wrote: > On (09/07/17 16:05), Luck, Tony wrote: > [..] if (not_a_function_descriptor(ptr)) return ptr; >>> >>> I'm not sure if it's possible on ia64/ppc64/parisc64 >>> to reliably detect if it's a function descriptor or not. >> >> Agre

[PATCH 0/3] S5P MFC: Adjustments for five function implementations

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 22:44:55 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in s5p_mfc_probe() Improve a size determination ins5p_mfc_alloc_memdev() A

[PATCH 1/3] [media] s5p-mfc: Delete an error message for a failed memory allocation in s5p_mfc_probe()

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 22:25:17 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 4 +--- 1 file changed, 1 in

[PATCH 2/3] [media] s5p-mfc: Improve a size determination in s5p_mfc_alloc_memdev()

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 22:30:09 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was dete

[PATCH 3/3] [media] s5p-mfc: Adjust a null pointer check in four functions

2017-09-08 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 8 Sep 2017 22:37:00 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code plac

[PATCH v2] Staging: ccree: Merge assignment with return

2017-09-08 Thread Srishti Sharma
Merge the assignment and return statements to return the value directly. Done using coccinelle. @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Srishti Sharma --- Changes in v2: - Edit commit message so that it respects the 80 character limit. d

[PATCH v3] platform/chrome: Use proper protocol transfer function

2017-09-08 Thread Brian Norris
From: Shawn Nematbakhsh pkt_xfer should be used for protocol v3, and cmd_xfer otherwise. We had one instance of these functions correct, but not the second, fall-back case. We use the fall-back only when the first command returns an IN_PROGRESS status, which is only used on some EC firmwares wher

Re: [PATCH resend v2] power: supply: bq27xxx: enable writing capacity values for bq27421

2017-09-08 Thread Liam Breck
Howdy, On Fri, Sep 8, 2017 at 1:28 PM, H. Nikolaus Schaller wrote: > Hi Liam, > >> Am 08.09.2017 um 22:19 schrieb Liam Breck : >> >> Hi Nikolaus, >> >> On Fri, Sep 8, 2017 at 10:38 AM, H. Nikolaus Schaller >> wrote: >>> Hi Liam, >>> I finally continues testing on OpenPandora. >>> Am 31.08.

Re: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added

2017-09-08 Thread Florian Fainelli
On 09/08/2017 01:07 PM, tristram...@microchip.com wrote: >> -Original Message- >> From: Florian Fainelli [mailto:f.faine...@gmail.com] >> Sent: Friday, September 08, 2017 12:54 PM >> To: Tristram Ha - C24268; muva...@gmail.com >> Cc: and...@lunn.ch; pa...@ucw.cz; nathan.leigh.con...@gmail.c

Re: [Outreachy kernel] [PATCH v2] Staging: ccree: Merge assignment with return

2017-09-08 Thread Julia Lawall
On Sat, 9 Sep 2017, Srishti Sharma wrote: > Merge the assignment and return statements to return the value > directly. Done using coccinelle. > > @@ > local idexpression ret; > expression e; > @@ > > -ret = > +return > e; > -return ret; > > Signed-off-by: Srishti Sharma > --- > Changes in

Re: [PATCH] tpm: constify transmit data pointers

2017-09-08 Thread Arnd Bergmann
On Thu, Sep 7, 2017 at 6:24 PM, Jarkko Sakkinen wrote: > On Thu, Sep 07, 2017 at 03:30:45PM +0200, Arnd Bergmann wrote: >> > > Thank you Arnd. Do you mind if squash this to Colin's commit and your > signed-off-by to that one? Either way works, but if you merge the two commits into one, please cla

Re: [RFC v2 PATCH] x86/boot: Add the secdata section to the setup header

2017-09-08 Thread hpa
On September 8, 2017 2:45:10 AM PDT, Gary Lin wrote: >On Thu, Sep 07, 2017 at 02:16:21PM -0700, h...@zytor.com wrote: >> On September 7, 2017 2:44:51 AM PDT, Gary Lin wrote: >> >On Thu, Jun 01, 2017 at 08:46:26AM +, Ard Biesheuvel wrote: >> >> On 1 June 2017 at 08:11, Gary Lin wrote: >> >> >

[PATCH] [media] tuners: mxl5005s: make arrays static const, reduces object code size

2017-09-08 Thread Colin King
From: Colin Ian King Don't populate the arrays RegAddr on the stack, instead make them static const. Makes the object code smaller by over 980 bytes: Before: textdata bss dec hex filename 64923 304 0 65227fecb drivers/media/tuners/mxl5005s.o After: text

[PATCH] libnvdimm, btt: use %z format string modifier for size_t

2017-09-08 Thread Arnd Bergmann
We get a warning about an two incorrect format strings: drivers/nvdimm/btt.c: In function 'btt_map_init': include/linux/device.h:1472:23: error: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t {aka unsigned int}' [-Werror=format=] This changes the %lx

Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware OOM killer

2017-09-08 Thread Christopher Lameter
On Thu, 7 Sep 2017, David Rientjes wrote: > > It has *nothing* to do with zillions of tasks. Its amusing that the SGI > > ghost is still haunting the discussion here. The company died a couple of > > years ago finally (ok somehow HP has an "SGI" brand now I believe). But > > there are multiple com

Re: [Outreachy kernel] [PATCH v2] Staging: ccree: Merge assignment with return

2017-09-08 Thread Srishti Sharma
On Sat, Sep 9, 2017 at 2:28 AM, Julia Lawall wrote: > > > On Sat, 9 Sep 2017, Srishti Sharma wrote: > >> Merge the assignment and return statements to return the value >> directly. Done using coccinelle. >> >> @@ >> local idexpression ret; >> expression e; >> @@ >> >> -ret = >> +return >> e;

Re: execve(NULL, argv, envp) for nommu?

2017-09-08 Thread Rob Landley
On 09/05/2017 08:12 PM, Rob Landley wrote: > On 09/05/2017 08:24 AM, Alan Cox wrote: honoring the suid bit if people feel that way. I just wanna unblock vfork() while still running this code. >> >> Would it make more sense to have a way to promote your vfork into a >> fork when you hit t

Re: [RFC PATCH] exec: Avoid recursive modprobe for binary format handlers

2017-09-08 Thread Lucas De Marchi
Hi, On Tue, Aug 8, 2017 at 5:09 PM, Luis R. Rodriguez wrote: > On Wed, Aug 02, 2017 at 02:12:00AM +0200, Luis R. Rodriguez wrote: >> On Fri, Jul 21, 2017 at 03:05:20PM +0100, Matt Redfearn wrote: >> > diff --git a/fs/exec.c b/fs/exec.c >> > index 62175cbcc801..004bb50a01fe 100644 >> > --- a/fs/ex

Re: [PATCH v3 05/13] xen/pvcalls: implement connect command

2017-09-08 Thread Stefano Stabellini
On Sat, 12 Aug 2017, Boris Ostrovsky wrote: > On 07/31/2017 06:57 PM, Stefano Stabellini wrote: > > Send PVCALLS_CONNECT to the backend. Allocate a new ring and evtchn for > > the active socket. > > > > Introduce fields in struct sock_mapping to keep track of active sockets. > > Introduce a waitqu

Re: [PATCH] tpm: constify transmit data pointers

2017-09-08 Thread Jarkko Sakkinen
On Thu, Sep 07, 2017 at 02:01:53PM -0600, Jason Gunthorpe wrote: > On Thu, Sep 07, 2017 at 03:30:45PM +0200, Arnd Bergmann wrote: > > Making cmd_getticks 'const' introduced a couple of harmless warnings: > > > > drivers/char/tpm/tpm_tis_core.c: In function 'probe_itpm': > > drivers/char/tpm/tpm_ti

Re: [PATCH v2] tpm-dev-common: Reject too short writes

2017-09-08 Thread Jarkko Sakkinen
On Fri, Sep 08, 2017 at 02:26:42PM +, alexander.stef...@infineon.com wrote: > > On Wed, Sep 06, 2017 at 02:19:28PM +, > > alexander.stef...@infineon.com wrote: > > > > On Wed, Sep 06, 2017 at 03:42:33PM +0300, Jarkko Sakkinen wrote: > > > > > On Mon, Sep 04, 2017 at 07:36:42PM +0200, Alexan

[PATCH 2/3] perf/x86/msr: add missing CPU IDs

2017-09-08 Thread kan . liang
From: Kan Liang Goldmont, Glodmont plus and Xeon Phi have MSR_SMI_COUNT as well. Signed-off-by: Kan Liang --- arch/x86/events/msr.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c index 4bb3ec6..0672367 100644 --- a/arch/x86/events/msr.

[PATCH 1/3] perf/x86/intel/cstate: add missing CPU IDs

2017-09-08 Thread kan . liang
From: Kan Liang Skylake server uses the same C-state residency events as Sandy Bridge. Denverton and Gemini lake use the same C-state residency events as Apollo Lake. Signed-off-by: Kan Liang --- arch/x86/events/intel/cstate.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/e

[PATCH 3/3] perf/x86/intel/rapl: add missing CPU IDs

2017-09-08 Thread kan . liang
From: Kan Liang DENVERTON and GEMINI_LAKE support same RAPL counters as Apollo Lake. Signed-off-by: Kan Liang --- arch/x86/events/intel/rapl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index 8e2457c..005908e 100644 --- a/

Re: [PATCH v3] tpm-dev-common: Reject too short writes

2017-09-08 Thread Jarkko Sakkinen
On Fri, Sep 08, 2017 at 05:21:32PM +0200, Alexander Steffen wrote: > tpm_transmit() does not offer an explicit interface to indicate the number > of valid bytes in the communication buffer. Instead, it relies on the > commandSize field in the TPM header that is encoded within the buffer. > Therefor

Re: [RFC PATCH 0/3] kbuild: generate intermediate C files instead of copying _shipped files

2017-09-08 Thread Linus Torvalds
On Fri, Sep 8, 2017 at 11:39 AM, Linus Torvalds wrote: > > Strange. Does anybody see what the pattern to the failure is? Found it. Stupid special case for 'typeof()' that used is_reserved_word() in ways I hadn't realized. Fix committed. Linus

[GIT PULL] remoteproc updates for v4.14

2017-09-08 Thread Bjorn Andersson
Hi Linus, This pull request touches drivers/soc/qcom/Kconfig and the pull request from arm-soc includes a change that wraps all entries in this same file in a "menu". The arising conflict is very trivial; both changes should be included in full and the "menu" should encapsulate QCOM_GLINK_SSR. Ca

<    2   3   4   5   6   7   8   >