Re: [kernel-hardening] Re: [PATCH v7 2/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-06-02 Thread Alan Cox
> Can't we also have a sysctl that toggles if CAP_SYS_ADMIN is involved in > this whitelist check? Otherwise someone might leave things out of the > whitelist just because they want to use those ioctls as a privileged > process. Also restricting a privileged user from ioctls with this > whitelist a

Re: [PATCH v3 0/2] ARM: dts: imx7: add NAND support

2017-06-02 Thread Han Xu
On 06/01/2017 08:48 PM, Stefan Agner wrote: > Hi Han, > > On 2017-06-01 14:14, Han Xu wrote: >> On 06/01/2017 02:20 PM, Stefan Agner wrote: >>> This are the missing device tree parts to add NAND support for i.MX 7. >>> See previous patchset: >>> https://emea01.safelinks.protection.outlook.com/?ur

Re: [PATCH v5 10/10] drm: vc4: Use crtc->mode_valid() and encoder->mode_valid() callbacks

2017-06-02 Thread Eric Anholt
Jose Abreu writes: > Now that we have a callback to check if crtc and encoder supports a > given mode we can use it in vc4 so that we restrict the number of > probbed modes to the ones we can actually display. "probed" > > Also, remove the mode_fixup() calls as these are no longer needed > beca

Re: [kernel-hardening] Re: [PATCH v7 2/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-06-02 Thread Nick Kralevich
On Fri, Jun 2, 2017 at 1:05 PM, Alan Cox wrote: > So I'd say it's all the generic tty ioctls except TIOCSTI and TIOCSETD > but it would be good to see what Android is going with and why. Android limits tty ioctls to the following whitelist: TIOCOUTQ FIOCLEX TCGETS TCSETS TIOCGWINSZ TI

[PATCH 5/6] perf, tools: Support persistent memory encoding

2017-06-02 Thread Andi Kleen
From: Andi Kleen Teach the perf user tools to report the recently added persistent memory encoding for sample data sources. Signed-off-by: Andi Kleen --- tools/include/uapi/linux/perf_event.h | 3 ++- tools/perf/util/mem-events.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)

[PATCH 3/6] perf, tools: Add support for printing new mem_info encodings

2017-06-02 Thread Andi Kleen
From: Andi Kleen Add decoding for the new lvlx and snoopx field meminfo field added earlier to the kernel so that "perf mem report" and other tools can print it properly. Signed-off-by: Andi Kleen --- tools/include/uapi/linux/perf_event.h | 19 ++-- tools/perf/util/mem-events.c

[PATCH 1/6] perf/x86: Move Nehalem PEBS code to flag

2017-06-02 Thread Andi Kleen
From: Andi Kleen Minor cleanup: use an explicit x86_pmu flag to handle the missing Lock / TLB information on Nehalem, instead of always checking the model number for each PEBS sample. Signed-off-by: Andi Kleen --- arch/x86/events/intel/core.c | 1 + arch/x86/events/intel/ds.c | 5 + arch

[PATCH 2/6] perf/x86: Fix data source decoding for Skylake

2017-06-02 Thread Andi Kleen
From: Andi Kleen Skylake changed the encoding of the PEBS data source field. Some combinations are not available anymore, but some new cases e.g. for L4 cache hit are added. Fix up the conversion table for Skylake, similar as had been done for Nehalem. To properly describe it in the abstracted

[PATCH 6/6] perf, tools: Add test cases for new data source encoding

2017-06-02 Thread Andi Kleen
From: Andi Kleen Add some simple tests to perf test to test data source printing. Signed-off-by: Andi Kleen --- tools/perf/tests/Build | 1 + tools/perf/tests/builtin-test.c | 4 tools/perf/tests/mem.c | 42 + tools/perf/tests/te

[PATCH 4/6] perf/x86: Add support for PEBS sampling persistent RAM on Skylake

2017-06-02 Thread Andi Kleen
From: Andi Kleen On Skylake server the L4 encoding in the PEBS data source actually means persistent memory. Add a new perf encoding for this case, and report it on Skylake Server. Signed-off-by: Andi Kleen --- arch/x86/events/intel/core.c| 3 ++- arch/x86/events/intel/ds.c | 8 +-

Re: [PATCH 3/4] watchdog: Split up config options

2017-06-02 Thread Don Zickus
On Tue, May 30, 2017 at 11:26:58AM +1000, Nicholas Piggin wrote: > Split SOFTLOCKUP_DETECTOR from LOCKUP_DETECTOR, and split > HARDLOCKUP_DETECTOR_PERF from HARDLOCKUP_DETECTOR. > > LOCKUP_DETECTOR provides the boot, sysctl, and programming interfaces > for lockup detectors. An architecture that d

Re: [PATCH] virtio_net: lower limit on buffer size

2017-06-02 Thread J. Bruce Fields
On Fri, Jun 02, 2017 at 12:34:57PM +0300, Sergei Shtylyov wrote: > Hello! > > On 6/2/2017 2:56 AM, Michael S. Tsirkin wrote: > > >commit d85b758f72b0 "virtio_net: fix support for small rings" > >Commit d85b758f72b0 ("virtio_net: fix support for small rings") > > >was supposed to increase th

[PATCH v3] drm/bridge: Refactor out the panel wrapper from the lvds-encoder bridge.

2017-06-02 Thread Eric Anholt
Many DRM drivers have common code to make a stub connector implementation that wraps a drm_panel. By wrapping the panel in a DRM bridge, all of the connector code (including calls during encoder enable/disable) goes away. v2: Fix build with CONFIG_DRM=m, drop "dev" argument that should just b

Re: [RFC 0/3] WhiteEgret LSM module

2017-06-02 Thread Steve Kemp
On Fri, Jun 2, 2017 at 10:00 PM, Casey Schaufler wrote: > A 'user' attribute can be set by the file owner. A 'security' > attribute requires privilege. SELinux and Smack use 'security' > attributes to prevent users from mucking with them. You need > to create module hooks for manipulating them,

Re: [PATCH v2 1/2] i2c: xgene-slimpro: Use a single function to send command message

2017-06-02 Thread Wolfram Sang
On Mon, Apr 24, 2017 at 11:00:25AM -0700, Hoan Tran wrote: > This patch refactors the code to use a single message function to > send command message. > > Signed-off-by: Hoan Tran Applied to for-next, thanks! signature.asc Description: PGP signature

[PATCH v12 2/6] doc: dt: document altera-passive-serial binding

2017-06-02 Thread Joshua Clayton
Describe an altera-passive-serial devicetree entry, required features Signed-off-by: Joshua Clayton Acked-by: Rob Herring --- .../bindings/fpga/altera-passive-serial.txt| 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/f

[PATCH v12 1/6] fpga: Add flag to indicate SPI bitstream is bit-reversed

2017-06-02 Thread Joshua Clayton
From: Anatolij Gustschin Add a flag that is passed to the write_init() callback, indicating that the SPI bitstream starts with LSB first. SPI controllers usually send data with MSB first. If an FPGA expects bitstream data as LSB first, the data must be reversed either by the SPI controller or by

[PATCH v12 5/6] lib: add bitrev8x4()

2017-06-02 Thread Joshua Clayton
Add a function to reverse bytes within a 32 bit word. Operate on a u32 rather than individual bytes. Signed-off-by: Joshua Clayton --- include/linux/bitrev.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/linux/bitrev.h b/include/linux/bitrev.h index fb790b8449c

[PATCH v12 4/6] ARM: dts: imx6q-evi: support altera-ps-spi

2017-06-02 Thread Joshua Clayton
Add support for Altera FPGA connected to an spi port to the evi devicetree file Signed-off-by: Joshua Clayton --- arch/arm/boot/dts/imx6q-evi.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-evi.dts b/arch/arm/boot/dts/imx6q-evi.dts index 24fe093a

[PATCH v12 6/6] fpga-manager: altera-ps-spi: use bitrev8x4

2017-06-02 Thread Joshua Clayton
Speed up bit reversal by using hardware bit reversal Add extra code to handle less than 4byte remnants, if any Signed-off-by: Joshua Clayton --- drivers/fpga/altera-ps-spi.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/drivers/fpga/altera-ps-spi.c b/dr

Re: [PATCH v2 2/2] i2c: xgene-slimpro: Add ACPI support by using PCC mailbox

2017-06-02 Thread Wolfram Sang
On Mon, Apr 24, 2017 at 11:00:26AM -0700, Hoan Tran wrote: > This patch adds ACPI support by using PCC mailbox communication > interface. > > Signed-off-by: Hoan Tran Please make use checkpatch: WARNING: braces {} are not necessary for single statement blocks #149: FILE: drivers/i2c/busses/i2c-

[PATCH v12 3/6] fpga manager: Add altera-ps-spi driver for Altera FPGAs

2017-06-02 Thread Joshua Clayton
altera-ps-spi loads FPGA firmware over SPI, using the "passive serial" interface on Altera Arria 10, Cyclone V or Stratix V FPGAs. This is one of the simpler ways to set up an FPGA at runtime. The signal interface is close to unidirectional SPI with lsb first. Signed-off-by: Joshua Clayton Signe

Re: [PATCH] mm: make PR_SET_THP_DISABLE immediately active

2017-06-02 Thread Vlastimil Babka
On 06/02/2017 09:50 PM, Andrew Morton wrote: > On Fri, 2 Jun 2017 18:03:22 +0300 "Mike Rapoport" > wrote: > >> PR_SET_THP_DISABLE has a rather subtle semantic. It doesn't affect any >> existing mapping because it only updated mm->def_flags which is a template >> for new mappings. The mappings c

Re: [RFC PATCH v2 11/17] cgroup: Implement new thread mode semantics

2017-06-02 Thread Waiman Long
On 06/01/2017 05:18 PM, Tejun Heo wrote: > Hello, > > On Thu, Jun 01, 2017 at 05:12:42PM -0400, Waiman Long wrote: >> Are you referring to keeping the no internal process restriction and >> document how to work around that instead? I would like to hear what >> workarounds are currently being used.

Re: [patch v2] mm, vmscan: avoid thrashing anon lru when free + file is low

2017-06-02 Thread Andrew Morton
On Mon, 1 May 2017 14:34:21 -0700 (PDT) David Rientjes wrote: > The purpose of the code that commit 623762517e23 ("revert 'mm: vmscan: do > not swap anon pages just because free+file is low'") reintroduces is to > prefer swapping anonymous memory rather than trashing the file lru. > > If the an

Re: [PATCH v2 2/2] i2c: xgene-slimpro: Add ACPI support by using PCC mailbox

2017-06-02 Thread Loc Ho
Hi Wolfram, >> This patch adds ACPI support by using PCC mailbox communication >> interface. >> >> Signed-off-by: Hoan Tran > > Please make use checkpatch: > > WARNING: braces {} are not necessary for single statement blocks > #149: FILE: drivers/i2c/busses/i2c-xgene-slimpro.c:242: > + if (

Re: [PATCH] mm: make PR_SET_THP_DISABLE immediately active

2017-06-02 Thread Andrew Morton
On Fri, 2 Jun 2017 22:31:47 +0200 Vlastimil Babka wrote: > On 06/02/2017 09:50 PM, Andrew Morton wrote: > > On Fri, 2 Jun 2017 18:03:22 +0300 "Mike Rapoport" > > wrote: > > > >> PR_SET_THP_DISABLE has a rather subtle semantic. It doesn't affect any > >> existing mapping because it only update

Re: [PATCH v2 1/3] perf: xgene: Parse PMU subnode from the match table

2017-06-02 Thread Hoan Tran
Hi Mark, On Fri, Jun 2, 2017 at 10:23 AM, Mark Rutland wrote: > On Fri, Jun 02, 2017 at 09:54:32AM -0700, Hoan Tran wrote: >> On Fri, Jun 2, 2017 at 7:59 AM, Mark Rutland wrote: >> > On Mon, Apr 03, 2017 at 09:47:55AM -0700, Hoan Tran wrote: >> >> +static const struct acpi_device_id *xgene_pmu_a

Re: [kernel-hardening] Re: [PATCH v7 2/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-06-02 Thread Matt Brown
On 6/2/17 4:05 PM, Alan Cox wrote: >> Can't we also have a sysctl that toggles if CAP_SYS_ADMIN is involved in >> this whitelist check? Otherwise someone might leave things out of the >> whitelist just because they want to use those ioctls as a privileged >> process. Also restricting a privileged u

Re: [PATCH] amd-xgbe: use PAGE_ALLOC_COSTLY_ORDER in xgbe_map_rx_buffer

2017-06-02 Thread Tom Lendacky
On 6/2/2017 10:54 AM, Michal Hocko wrote: From: Michal Hocko xgbe_map_rx_buffer is rather confused about what PAGE_ALLOC_COSTLY_ORDER means. It uses PAGE_ALLOC_COSTLY_ORDER-1 assuming that PAGE_ALLOC_COSTLY_ORDER is the first costly order which is not the case actually because orders larger tha

Re: [PATCH] mm: make PR_SET_THP_DISABLE immediately active

2017-06-02 Thread Vlastimil Babka
On 06/02/2017 10:40 PM, Andrew Morton wrote: > On Fri, 2 Jun 2017 22:31:47 +0200 Vlastimil Babka wrote: >>> Perhaps we should be adding new prctl modes to select this new >>> behaviour and leave the existing PR_SET_THP_DISABLE behaviour as-is? >> >> I think we can reasonably assume that most users

Re: [PATCH] kbuild: switch to thin archives

2017-06-02 Thread kbuild test robot
Hi Nicholas, [auto build test ERROR on linus/master] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/kbuild-switch-to-thin

Re: [PATCH v2 2/2] i2c: xgene-slimpro: Add ACPI support by using PCC mailbox

2017-06-02 Thread Hoan Tran
On Fri, Jun 2, 2017 at 1:31 PM, Wolfram Sang wrote: > On Mon, Apr 24, 2017 at 11:00:26AM -0700, Hoan Tran wrote: >> This patch adds ACPI support by using PCC mailbox communication >> interface. >> >> Signed-off-by: Hoan Tran > > Please make use checkpatch: > > WARNING: braces {} are not necessary

Re: [PATCH] i2c: mxs: change error printing to debug for mxs_i2c_pio_wait_xfer_end

2017-06-02 Thread Wolfram Sang
On Wed, May 31, 2017 at 11:40:03AM +0200, Michael Thalmeier wrote: > Instead of printing errors after mxs_i2c_pio_wait_xfer_end returns with > an error code just print a debug message. > > NAKs and timeouts can occur in this situation normally, so do not treat > them as errors. > > Signed-off-by:

Re: [PATCH] kbuild: switch to thin archives

2017-06-02 Thread kbuild test robot
Hi Nicholas, [auto build test ERROR on linus/master] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/kbuild-switch-to-thin

[RFC 4/6] hmem: add heterogeneous memory sysfs support

2017-06-02 Thread Ross Zwisler
Add a new sysfs subsystem, /sys/devices/system/hmem, which surfaces information about memory initiators and memory targets to the user. These initiators and targets are described by the ACPI SRAT and HMAT tables. A "memory initiator" in this case is any device such as a CPU or a separate memory I

[RFC 5/6] sysfs: add sysfs_add_group_link()

2017-06-02 Thread Ross Zwisler
The current __compat_only_sysfs_link_entry_to_kobj() code allows us to create symbolic links in sysfs to groups or attributes. Something like: /sys/.../entry1/groupA -> /sys/.../entry2/groupA This patch extends this functionality with a new sysfs_add_group_link() call that allows the link to hav

[RFC 2/6] acpi: add missing include in acpi_numa.h

2017-06-02 Thread Ross Zwisler
Right now if a file includes acpi_numa.h and they don't happen to include linux/numa.h before it, they get the following warning: ./include/acpi/acpi_numa.h:9:5: warning: "MAX_NUMNODES" is not defined [-Wundef] #if MAX_NUMNODES > 256 ^~~~ Signed-off-by: Ross Zwisler --- include/ac

[RFC 6/6] hmem: add performance attributes

2017-06-02 Thread Ross Zwisler
Add performance information found in the HMAT to the sysfs representation. This information lives as an attribute group named "via_mem_initX" in the memory target: # tree mem_tgt2 mem_tgt2 ├── firmware_id ├── is_cached ├── is_enabled ├── is_isolated ├── node2 -> ../../node/node2 ├─

[RFC 3/6] acpi: HMAT support in acpi_parse_entries_array()

2017-06-02 Thread Ross Zwisler
The current implementation of acpi_parse_entries_array() assumes that each subtable has a standard ACPI subtable entry of type struct acpi_sutbable_header. This standard subtable header has a one byte length followed by a one byte type. The HMAT subtables have to allow for a longer length so they

[RFC 0/6] Add support for Heterogeneous Memory Attribute Table

2017-06-02 Thread Ross Zwisler
Quick summary This series adds kernel support for the Heterogeneous Memory Attribute Table (HMAT) table, newly defined in ACPI 6.2: http://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf The HMAT table, in concert with the existing System Resource Affinity Table (SRAT), provide

[RFC 1/6] ACPICA: add HMAT table definitions

2017-06-02 Thread Ross Zwisler
Import HMAT table definitions from the ACPICA codebase. This kernel patch was generated using an ACPICA patch from "Zheng, Lv" . The actual upstream patch that adds these table definitions will come from the Intel ACPICA team as part of their greater ACPI 6.2 update. Signed-off-by: Ross Zwisler

Re: [PATCH v2 3/3] perf: xgene: Add support for SoC PMU version 3

2017-06-02 Thread Hoan Tran
Hi Mark, On Fri, Jun 2, 2017 at 9:04 AM, Mark Rutland wrote: > Hi Hoan, > > Apologies for the delay in getting to this. > > On Mon, Apr 03, 2017 at 09:47:57AM -0700, Hoan Tran wrote: >> This patch adds support for SoC-wide (AKA uncore) Performance Monitoring >> Unit version 3. >> >> It can suppor

Re: linux-next: build warnings after merge of the drm tree

2017-06-02 Thread Eric Anholt
Stephen Rothwell writes: > Hi all, > > On Thu, 25 May 2017 11:49:42 +1000 Stephen Rothwell > wrote: >> >> On Fri, 19 May 2017 10:49:06 -0700 Eric Anholt wrote: >> > >> > Stephen Rothwell writes: >> > >> > > After merging the drm tree, today's linux-next build (x86_64 >> > > allmodconfig)

Re: [PATCH v4] add the option of fortified string.h functions

2017-06-02 Thread Andrew Morton
On Fri, 26 May 2017 05:54:04 -0400 Daniel Micay wrote: > This adds support for compiling with a rough equivalent to the glibc > _FORTIFY_SOURCE=1 feature, providing compile-time and runtime buffer > overflow checks for string.h functions when the compiler determines the > size of the source or de

[PATCH net-next 1/5] net: dsa: mv88e6xxx: rename chip header

2017-06-02 Thread Vivien Didelot
The mv88e6xxx.h is meant to contains the chip structures and data. Rename it to chip.h, as for other source/header pairs of the driver. At the same time, ensure that relative header inclusions are separated by a newline and sorted alphabetically. Signed-off-by: Vivien Didelot --- drivers/net/ds

[PATCH net-next 2/5] net: dsa: mv88e6xxx: move PHY macros

2017-06-02 Thread Vivien Didelot
Move the PHY_* macros where they belong, in the related phy.h header. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.h | 4 drivers/net/dsa/mv88e6xxx/phy.h | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.h b/drivers/n

[PATCH net-next 4/5] net: dsa: mv88e6xxx: move the Global 1 macros

2017-06-02 Thread Vivien Didelot
Move the GLOBAL_* macros where they belong, in the related global1.h header. Include it in global2.c which uses GLOBAL_STATUS_IRQ_DEVICE. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.h| 141 drivers/net/dsa/mv88e6xxx/global1.h | 141 ++

[PATCH net-next 3/5] net: dsa: mv88e6xxx: move the Port macros

2017-06-02 Thread Vivien Didelot
Move the PORT_* macros where they belong, in the related port.h header. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.h | 160 --- drivers/net/dsa/mv88e6xxx/port.h | 160 +++ 2 files changed, 160 insertion

[PATCH net-next 0/5] net: dsa: mv88e6xxx: move registers macros

2017-06-02 Thread Vivien Didelot
This patchset brings no functional changes. It is the first step of a cleanup renaming the chip header file and moving the Register definitions _as is_ in their proper header files. A following patchset will prefix them with the appropriate model (MV88E6XXX_ or e.g. MV88E6390_) to respect an impl

[PATCH net-next 5/5] net: dsa: mv88e6xxx: move the Global 2 macros

2017-06-02 Thread Vivien Didelot
Move the GLOBAL2_* macros where they belong, in the related global2.h header. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.h| 101 --- drivers/net/dsa/mv88e6xxx/global2.c | 2 - drivers/net/dsa/mv88e6xxx/global2.h | 103 ++

Re: [PATCH v11 4/6] ARM: dts: imx6q-evi: support altera-ps-spi

2017-06-02 Thread stillcompiling
On Friday, June 2, 2017 9:54:22 PM PDT Andreas Färber wrote: > Am 02.06.2017 um 21:39 schrieb stillcompil...@gmail.com: > > On Friday, June 2, 2017 6:30:12 PM PDT Andreas Färber wrote: > >> Am 25.05.2017 um 19:29 schrieb Joshua Clayton: > >>> diff --git a/arch/arm/boot/dts/imx6q-evi.dts > >>> b/arc

Re: [PATCH] mm: make PR_SET_THP_DISABLE immediately active

2017-06-02 Thread Andrew Morton
On Fri, 2 Jun 2017 22:55:12 +0200 Vlastimil Babka wrote: > On 06/02/2017 10:40 PM, Andrew Morton wrote: > > On Fri, 2 Jun 2017 22:31:47 +0200 Vlastimil Babka wrote: > >>> Perhaps we should be adding new prctl modes to select this new > >>> behaviour and leave the existing PR_SET_THP_DISABLE beha

Re: [PATCH v4 2/3] usb: gadget: f_uac2: split out audio core

2017-06-02 Thread Ruslan Bilovol
Hi Felipe, On Fri, Jun 2, 2017 at 12:34 PM, Felipe Balbi wrote: > > Hi, > > Ruslan Bilovol writes: >> Abstract the peripheral side ALSA sound card code from >> the f_uac2 function into a component that can be called >> by various functions, so the various flavors can be split >> apart and select

mmotm 2017-06-02-14-13 uploaded

2017-06-02 Thread akpm
The mm-of-the-moment snapshot 2017-06-02-14-13 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH net-next 0/5] net: dsa: mv88e6xxx: move registers macros

2017-06-02 Thread Andrew Lunn
On Fri, Jun 02, 2017 at 05:06:14PM -0400, Vivien Didelot wrote: > This patchset brings no functional changes. > > It is the first step of a cleanup renaming the chip header file and > moving the Register definitions _as is_ in their proper header files. > > A following patchset will prefix them w

Re: [PATCH] i40iw: Add a value assignment to avoid sleep-in-atomic bug caused by uninitialized value

2017-06-02 Thread Shiraz Saleem
On Thu, Jun 01, 2017 at 10:11:16AM +0800, Jia-Ju Bai wrote: > The value "cqp_request->waiting" indicates whether the sleeping operation > should be performed, and it is not assigned in i40iw_get_cqp_request, so > the driver may sleep in interrupt handling. The function call path is: > > i40iw_dp

Re: [PATCH] streamline TLV320AIC23 drivers

2017-06-02 Thread Jens Rottmann
Hi Rob, repeatedly got no response. Assuming all my mails got blocked, so moved to yet another account. Hope I'll get through this time. Regards, Jens Original Message Subject: Re: [PATCH] streamline TLV320AIC23 drivers Date: Sat, 6 May 2017 00:39:20 +0200 From: Jens Rottmann

RE: [RFC 1/6] ACPICA: add HMAT table definitions

2017-06-02 Thread Moore, Robert
Full support for HMAT was just released in ACPICA version 20170531. > -Original Message- > From: Ross Zwisler [mailto:ross.zwis...@linux.intel.com] > Sent: Friday, June 2, 2017 2:00 PM > To: linux-kernel@vger.kernel.org > Cc: Ross Zwisler ; Anaczkowski, Lukasz > ; Box, David E ; > Kogut,

Re: [PATCH 2/9] [media] s5p-jpeg: Call jpeg_bound_align_image after qbuf

2017-06-02 Thread Jacek Anaszewski
Hi Thierry, Thanks for the patch. On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: Tony K Nadackal > > When queuing an OUTPUT buffer for decoder, s5p_jpeg_parse_hdr() > function parses the input jpeg file and takes the width and height > parameters from its header. These new width/height

[GIT PULL] /dev/random bug fixes for 4.12

2017-06-02 Thread Theodore Ts'o
The following changes since commit 08332893e37af6ae779367e78e444f8f9571511d: Linux 4.12-rc2 (2017-05-21 19:30:23 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random.git tags/random_for_linus_stable for you to fetch changes up to 9dfa7bb

Re: [PATCH v4] add the option of fortified string.h functions

2017-06-02 Thread Daniel Micay
On Fri, 2017-06-02 at 14:07 -0700, Andrew Morton wrote: > On Fri, 26 May 2017 05:54:04 -0400 Daniel Micay > wrote: > > > This adds support for compiling with a rough equivalent to the glibc > > _FORTIFY_SOURCE=1 feature, providing compile-time and runtime buffer > > overflow checks for string.h f

Re: hexagon: Use raw_copy_to_user

2017-06-02 Thread Richard Kuo
On Fri, Jun 02, 2017 at 06:03:53AM -0700, Guenter Roeck wrote: > ping > > On Tue, May 02, 2017 at 08:52:48PM -0700, Guenter Roeck wrote: > > Commit ac4691fac8ad ("hexagon: switch to RAW_COPY_USER") replaced > > __copy_to_user_hexagon() with raw_copy_to_user(), but did not catch > > all caller

Re: [PATCH 4/9] [media] s5p-jpeg: Decode 4:1:1 chroma subsampling format

2017-06-02 Thread Jacek Anaszewski
Hi Thierry, On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: Tony K Nadackal > > This patch adds support for decoding 4:1:1 chroma subsampling in the > jpeg header parsing function. > > Signed-off-by: Tony K Nadackal > Signed-off-by: Thierry Escande > --- > drivers/media/platform/s5p-j

Re: [PATCH v4 0/3] USB Audio Gadget refactoring

2017-06-02 Thread Ruslan Bilovol
Hi, On Fri, Jun 2, 2017 at 12:42 PM, Felipe Balbi wrote: > > Hi, > > Ruslan Bilovol writes: >> I came to this patch series when wanted to do two things: >> - use UAC1 as virtual ALSA sound card on gadget side, >>just like UAC2 is used so it's possible to do rate >>resampling >> - have

Re: [PATCH] selftests/ftrace: Add a testcase for many kprobe events

2017-06-02 Thread Shuah Khan
On 05/25/2017 10:44 PM, Masami Hiramatsu wrote: > Add a testcase to test kprobes via ftrace interface > with many concurrent kprobe events. > > This tries to add many kprobe events (up to 256) on > kernel functions. To avoid making ftrace-based > kprobes (kprobes on fentry), it skips first N bytes

Re: [PATCH][net-next] rxrpc: remove redundant proc_remove call

2017-06-02 Thread David Howells
Colin King wrote: > From: Colin Ian King > > The proc_remove call is dead code as it occurs after a return and > hence can never be called. Remove it. > > Detected by CoverityScan, CID#1437743 ("Logically dead code") > > Signed-off-by: Colin Ian King Acked-by: David Howells

Re: [PATCH v2] selftests/vm: Fix test for virtual address range mapping for arm64

2017-06-02 Thread Shuah Khan
On 05/18/2017 06:52 AM, Michal Suchanek wrote: > Arm64 has 256TB address space so fix the test to pass on Arm as well. > > Also remove unneeded numaif header. > > Signed-off-by: Michal Suchanek Thanks. Applied to linux-kselftest next for 4.13-rc1 -- Shuah > --- > v2: > - do not test high sli

Re: [PATCH] rpmsg: virtio_rpmsg_bus: cleanup multiple assignment to ops

2017-06-02 Thread Suman Anna
On 06/02/2017 06:36 AM, Henri Roosen wrote: > Trivial cleanup: the .ops pointer is assigned twice. This patch removes the > first assignment. > > Signed-off-by: Henri Roosen Acked-by: Suman Anna > --- > drivers/rpmsg/virtio_rpmsg_bus.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git

Re: [PATCH 5/9] [media] s5p-jpeg: Add IOMMU support

2017-06-02 Thread Jacek Anaszewski
Cc Marek Szyprowski. Marek, could you share your opinion about this patch? On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: Tony K Nadackal > > This patch adds support for IOMMU s5p-jpeg driver if the Exynos IOMMU > and ARM DMA IOMMU configurations are supported. The address space is > cr

Re: [PATCH] selftests: sync: Skip the test if kernel support is not found

2017-06-02 Thread Shuah Khan
On 05/31/2017 04:40 AM, Michael Ellerman wrote: > The "Sync framework" test doesn't work if the kernel has no support, > obviously. Rather than reporting a failure, check for the kernel support > by looking for /sys/kernel/debug/sync/sw_sync, and if not found skip the > test. > > Signed-off-by: Mi

Re: [PATCH] rpmsg: rpmsg_core: fix null-ptr dereference for devices without ops

2017-06-02 Thread Suman Anna
Hi Henri, On 06/02/2017 06:35 AM, Henri Roosen wrote: > A device might not have an ops structure registered. This The rpmsg devices are registered from the respective backends, which are supposed to plug in their ops. What is the scenario where you think these ops might not be populated? We ought

[PATCH] sparc64: mm: fix copy_tsb to correctly copy huge page TSBs

2017-06-02 Thread Mike Kravetz
When a TSB grows beyond its current capacity, a new TSB is allocated and copy_tsb is called to copy entries from the old TSB to the new. A hash shift based on page size is used to calculate the index of an entry in the TSB. copy_tsb has hard coded PAGE_SHIFT in these calculations. However, for hu

Re: [PATCH 6/9] [media] s5p-jpeg: Add support for resolution change event

2017-06-02 Thread Jacek Anaszewski
Hi Thierry, On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: henryhsu > > This patch adds support for resolution change event to notify clients so > they can prepare correct output buffer. When resolution change happened, > G_FMT for CAPTURE should return old resolution and format before C

[PATCH 04/11] kernfs: don't set dentry->d_fsdata

2017-06-02 Thread Shaohua Li
From: Shaohua Li When working on adding exportfs operations in kernfs, I found it's hard to initialize dentry->d_fsdata in the exportfs operations. Looks there is no way to do it without race condition. Look at the kernfs code closely, there is no point to set dentry->d_fsdata. inode->i_private a

[PATCH 02/11] kernfs: use idr instead of ida to manage inode number

2017-06-02 Thread Shaohua Li
From: Shaohua Li kernfs uses ida to manage inode number. The problem is we can't get kernfs_node from inode number with ida. Switching to use idr, next patch will add an API to get kernfs_node from inode number. Signed-off-by: Shaohua Li --- fs/kernfs/dir.c| 17 - inclu

[PATCH 00/11]blktrace: output cgroup info

2017-06-02 Thread Shaohua Li
From: Shaohua Li Hi, Currently blktrace isn't cgroup aware. blktrace prints out task name of current context, but the task of current context isn't always in the cgroup where the BIO comes from. We can't use task name to find out IO cgroup. For example, Writeback BIOs always comes from flusher t

[PATCH 06/11] cgroup: export fhandle info for a cgroup

2017-06-02 Thread Shaohua Li
From: Shaohua Li Add an API to export cgroup fhandle info. We don't export a full 'struct file_handle', there are unrequired info. Sepcifically, cgroup is always a directory, so we don't need a 'FILEID_INO32_GEN_PARENT' type fhandle, we only need export the inode number and generation number just

[PATCH 05/11] kernfs: add exportfs operations

2017-06-02 Thread Shaohua Li
From: Shaohua Li Now we have the facilities to implement exportfs operations. The idea is cgroup can export the fhandle info to userspace, then userspace uses fhandle to find the cgroup name. Another example is userspace can get fhandle for a cgroup and BPF uses the fhandle to filter info for the

[PATCH 07/11] blktrace: export cgroup info in trace

2017-06-02 Thread Shaohua Li
From: Shaohua Li Currently blktrace isn't cgroup aware. blktrace prints out task name of current context, but the task of current context isn't always in the cgroup where the BIO comes from. We can't use task name to find out IO cgroup. For example, Writeback BIOs always comes from flusher thread

[PATCH 03/11] kernfs: add an API to get kernfs node from inode number

2017-06-02 Thread Shaohua Li
From: Shaohua Li Add an API to get kernfs node from inode number. We will need this to implement exportfs operations. To make the API lock free, kernfs node is freed in RCU context. And we depend on kernfs_node count/ino number to filter stale kernfs nodes. Signed-off-by: Shaohua Li --- fs/ke

[PATCH 08/11] block: always attach cgroup info into bio

2017-06-02 Thread Shaohua Li
From: Shaohua Li blkcg_bio_issue_check() already gets blkcg for a BIO. bio_associate_blkcg() uses a percpu refcounter, so it's a very cheap operation. There is no point we don't attach the cgroup info into bio at blkcg_bio_issue_check. This also makes blktrace outputs correct cgroup info. Signed

[PATCH 11/11] block: use standard blktrace API to output cgroup info for debug notes

2017-06-02 Thread Shaohua Li
From: Shaohua Li Currently cfq/bfq/blk-throttle output cgroup info in trace in their own way. Now we have standard blktrace API for this, so convert them to use it. Note, this changes the behavior a little bit. cgroup info isn't output by default, we only do this with 'blk_cgroup' option enabled

[PATCH 09/11] block: call __bio_free in bio_endio

2017-06-02 Thread Shaohua Li
From: Shaohua Li bio_free isn't a good place to free cgroup/integrity info. There are a lot of cases bio is allocated in special way (for example, in stack) and never gets called by bio_put hence bio_free, we are leaking memory. This patch moves the free to bio endio, which should be called anywa

[PATCH 10/11] blktrace: add an option to allow displying cgroup path

2017-06-02 Thread Shaohua Li
From: Shaohua Li By default we output cgroup id in blktrace. This adds an option to display cgroup path. Since get cgroup path is a relativly heavy operation, we don't enable it by default. with the option enabled, blktrace will output something like this: dd-1353 [007] d..2 293.015252: 8,0

[PATCH 01/11] kernfs: implement i_generation

2017-06-02 Thread Shaohua Li
From: Shaohua Li Set i_generation for kernfs inode. This is required to implement exportfs operations. Note, the generation is 32-bit, so it's possible the generation wraps up and we find stale files. The possiblity is low, since fhandle matches both inode number and generation. In most fs, the

Re: [PATCH 7/9] [media] s5p-jpeg: Change sclk_jpeg to 166MHz for Exynos5250

2017-06-02 Thread Jacek Anaszewski
Cc Marek and Sylwester. On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: henryhsu > > The default clock parent of jpeg on Exynos5250 is fin_pll, which is > 24MHz. We have to change the clock parent to CPLL, which is 333MHz, > and set sclk_jpeg to 166MHz. > > Signed-off-by: Heng-Ruey Hsu

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-06-02 Thread Stephen Boyd
On 05/26, Fabien Lahoudere wrote: > Hello > > I modify ci_hrdc_imx_probe to bypass "data->phy = > devm_usb_get_phy_by_phandle(&pdev->dev, > "fsl,usbphy", 0);". Everything works as expected and call ci_ulpi_init. > > The problem is that in ci_ulpi_init, before calling "ci->ulpi = > ulpi_register

ath9k - Division by zero in kernel (as well as firmware panic)

2017-06-02 Thread Nathan Royce
ODroid XU4 $ uname -a Linux computer 4.12.0-rc3-dirty #1 SMP Wed May 31 15:02:05 CDT 2017 armv7l GNU/Linux $ lsusb ... Bus 001 Device 002: ID 2109:2813 VIA Labs, Inc. Bus 001 Device 010: ID 0cf3:7015 Qualcomm Atheros Communications TP-Link TL-WN821N v3 / TL-WN822N v2 802.11n [Atheros AR7010+AR928

Re: [PATCH 03/11] kernfs: add an API to get kernfs node from inode number

2017-06-02 Thread Eduardo Valentin
On Fri, Jun 02, 2017 at 02:53:56PM -0700, Shaohua Li wrote: > From: Shaohua Li > > Add an API to get kernfs node from inode number. We will need this to > implement exportfs operations. > > To make the API lock free, kernfs node is freed in RCU context. And we > depend on kernfs_node count/ino n

Re: [PATCH 9/9] [media] s5p-jpeg: Add support for multi-planar APIs

2017-06-02 Thread Jacek Anaszewski
Hi Thierry, What is the gain of introducing multiplanar API for this hardware? AFAIR all the HW implementations store the data in a single contiguous memory region and use suitable padding between planes. On 06/02/2017 06:02 PM, Thierry Escande wrote: > From: Ricky Liang > > This patch adds mul

Re: [PATCH v6 03/11] clk: bcm: Add clocks for Stingray SOC

2017-06-02 Thread Stephen Boyd
On 06/02, Anup Patel wrote: > diff --git a/drivers/clk/bcm/clk-sr.c b/drivers/clk/bcm/clk-sr.c > new file mode 100644 > index 000..342f702 > --- /dev/null > +++ b/drivers/clk/bcm/clk-sr.c > @@ -0,0 +1,320 @@ > + > +static const struct iproc_clk_ctrl lcpll_pcie_clk[] = { > + [BCM_SR_LCPLL_PC

Re: [linux-sunxi] [PATCH 1/2] ARM: sun8i: v3s: add device nodes for DE2 display pipeline

2017-06-02 Thread Maxime Ripard
On Mon, May 29, 2017 at 09:01:59PM +0800, icen...@aosc.io wrote: > 在 2017-05-29 16:59,Maxime Ripard 写道: > > On Thu, May 25, 2017 at 10:28:24PM +0800, Icenowy Zheng wrote: > > > + compatible = "allwinner,sun8i-v3s-de2-mixer"; > > > + reg = <0x011

Re: [linux-sunxi] Re: [RFC PATCH 07/11] drm: sun4i: add support for the TV encoder in H3 SoC

2017-06-02 Thread Maxime Ripard
On Thu, Jun 01, 2017 at 10:11:14PM +0800, icen...@aosc.io wrote: > 在 2017-06-01 02:43,Maxime Ripard 写道: > > On Wed, May 24, 2017 at 04:25:46PM +0800, Icenowy Zheng wrote: > > > > > > > > > 于 2017年5月24日 GMT+08:00 下午3:30:19, Maxime Ripard > > > 写到: > > > >On Tue, May 23, 2017 at 09:00:59PM +0800,

Re: [PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet driver

2017-06-02 Thread Maxime Ripard
Hi, On Fri, Jun 02, 2017 at 10:22:05AM -0400, David Miller wrote: > From: Maxime Ripard > Date: Fri, 2 Jun 2017 11:13:20 +0200 > > > On Fri, Jun 02, 2017 at 08:37:52AM +0200, Maxime Ripard wrote: > >> On Thu, Jun 01, 2017 at 02:58:19PM -0400, David Miller wrote: > >> > From: Corentin Labbe > >>

[PATCH V4 0/2] load_balance() fixes for affinity

2017-06-02 Thread Jeffrey Hugo
We noticed in testing that affined workloads do not provide consistent performance under certain circumstances. To isolate the issue, we began testing with a representative CPU workload. In some cases the CPU workload results would vary by a large percentage from run to run. We used JTAG and schedu

[PATCH V4 1/2] sched/fair: Fix load_balance() affinity redo path

2017-06-02 Thread Jeffrey Hugo
If load_balance() fails to migrate any tasks because all tasks were affined, load_balance() removes the source cpu from consideration and attempts to redo and balance among the new subset of cpus. There is a bug in this code path where the algorithm considers all active cpus in the system (minus t

[PATCH V4 2/2] sched/fair: Remove group imbalance from calculate_imbalance()

2017-06-02 Thread Jeffrey Hugo
The group_imbalance path in calculate_imbalance() made sense when it was added back in 2007 with commit 908a7c1b9b80 ("sched: fix improper load balance across sched domain") because busiest->load_per_task factored into the amount of imbalance that was calculated. That is not the case today. The gr

[PATCH] clk: sunxi-ng: Move all clock types to a library

2017-06-02 Thread Stephen Boyd
off-by: Stephen Boyd --- Based on linux-next-20170602. drivers/clk/sunxi-ng/Kconfig | 117 -- drivers/clk/sunxi-ng/Makefile | 26 +- 2 files changed, 13 insertions(+), 130 deletions(-) diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/su

[PATCH v2] brcmfmac: Fix glom_skb leak in brcmf_sdiod_recv_chain

2017-06-02 Thread Peter S. Housel
An earlier change to this function (3bdae810721b) fixed a leak in the case of an unsuccessful call to brcmf_sdiod_buffrw(). However, the glom_skb buffer, used for emulating a scattering read, is never used or referenced after its contents are copied into the destination buffers, and therefore alway

<    2   3   4   5   6   7   8   9   >