[PATCH v11 06/19] media: venus: venc: add video encoder files

2017-06-15 Thread Stanimir Varbanov
This adds encoder part of the driver plus encoder controls. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/venc.c | 1283 drivers/media/platform/qcom/venus/venc.h | 23 + drivers/media/platform/qcom/venus/venc_ctrls.c | 270 + 3

Some Libre Songs, Including one on GRSecurity's copyright Violation. Step up and listen, unless you can't handle it. BRUV (Bin that knoif)

2017-06-15 Thread aconcernedfossdev
Some Free/Libre/Opensource Songs for all of you here working on the LINUX KERNEL!, Including one on GRSecurity's copyright Violation This song is about GRSecurity's violation of Linus et al's copyright**: www.youtube.com/watch?v=CYnhI3wUej8 (A Boat Sails Away 2016 17) Here's a synthwave song w

Re: [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-06-15 Thread Stephane Eranian
On Thu, Jun 15, 2017 at 8:40 AM, Liang, Kan wrote: > > >> This patch adds support for SKID_IP to Intel x86 processors in PEBS mode. In >> that case, the off-by-1 IP from PEBS is returned in the SKID_IP field. > > It looks we can only get different skid_ip and ip with :pp event > (attr.precise = 2

[PATCH v11 02/19] doc: DT: venus: binding document for Qualcomm video driver

2017-06-15 Thread Stanimir Varbanov
Add binding document for Venus video encoder/decoder driver Cc: Rob Herring Cc: devicet...@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Stanimir Varbanov --- .../devicetree/bindings/media/qcom,venus.txt | 107 + 1 file changed, 107 insertions(+) create mode 1

Re: [PATCH 2/2] power: supply: sbs-battery: Don't needlessly set CAPACITY_MODE

2017-06-15 Thread Sebastian Reichel
Hi, On Tue, Jun 13, 2017 at 10:53:26AM -0700, Shawn Nematbakhsh wrote: > According to the smart battery spec (1), the CAPACITY_MODE bit does not > influence the value read from RelativeStateOfCharge(), so don't bother > changing CAPACITY_MODE when doing such a read. > > (1) - Smart Battery Data S

Re: [PATCH 1/2] power: supply: sbs-battery: Prevent CAPACITY_MODE races

2017-06-15 Thread Sebastian Reichel
Hi, On Tue, Jun 13, 2017 at 10:53:25AM -0700, Shawn Nematbakhsh wrote: > A subset of smart battery commands return charge or energy depending on > the CAPACITY_MODE bit setting of BatteryMode(). In order to > unambiguously read a charge or energy value, it is necessary to ensure > that CAPACITY_MO

[RFC v2 1/9] S.A.R.A. Documentation

2017-06-15 Thread Salvatore Mesoraca
Adding documentation for S.A.R.A. LSM. Signed-off-by: Salvatore Mesoraca --- Documentation/admin-guide/kernel-parameters.txt | 23 Documentation/security/00-INDEX | 2 + Documentation/security/SARA.rst | 170 3 files changed, 195 i

[RFC v2 0/9] S.A.R.A. a new stacked LSM

2017-06-15 Thread Salvatore Mesoraca
S.A.R.A. (S.A.R.A. is Another Recursive Acronym) is a stacked Linux Security Module that aims to collect heterogeneous security measures, providing a common interface to manage them. It can be useful to allow minor security features to use advanced management options, like user-space configuration

Re: [PATCH 0/5] perf: add support for capturing skid IP

2017-06-15 Thread Stephane Eranian
On Thu, Jun 15, 2017 at 8:10 AM, Andi Kleen wrote: > On Thu, Jun 15, 2017 at 06:56:24AM -0700, Stephane Eranian wrote: >> This patchs adds a new sample record type called >> PERF_SAMPLE_SKID_IP. The goal is to record >> the unmodified interrupted instruction pointer (IP) as seen by >> the kernel a

[RFC v2 4/9] S.A.R.A. cred blob management

2017-06-15 Thread Salvatore Mesoraca
Creation of the S.A.R.A. cred blob management "API". In order to allow S.A.R.A. to be stackable with other LSMs, it doesn't use the "security" field of struct cred, instead it uses an ad hoc field named security_sara. This solution is probably not acceptable for upstream, so this part will be modif

[RFC v2 8/9] Allowing for stacking procattr support in S.A.R.A.

2017-06-15 Thread Salvatore Mesoraca
This allow S.A.R.A. to use the procattr interface without interfering with other LSMs. This part should be reimplemented as soon as upstream procattr stacking support is available. Signed-off-by: Salvatore Mesoraca --- fs/proc/base.c | 38 ++ security/sec

[RFC v2 9/9] S.A.R.A. WX Protection procattr interface

2017-06-15 Thread Salvatore Mesoraca
This allow threads to get current WX Protection flags for themselves or for other threads (if they have CAP_MAC_ADMIN). It also allow a thread to set itself flags to a stricter set of rules than the current one. Via a new wxprot flag (SARA_WXP_FORCE_WXORX) is it possible to ask the kernel to rescan

[RFC v2 7/9] Trampoline emulation

2017-06-15 Thread Salvatore Mesoraca
Some programs need to generate part of their code at runtime. Luckily enough, in some cases they only generate well-known code sequences (the "trampolines") that can be easily recognized and emulated by the kernel. This way WX Protection can still be active, so a potential attacker won't be able to

[RFC v2 6/9] Creation of "pagefault_handler_x86" LSM hook

2017-06-15 Thread Salvatore Mesoraca
Creation of a new hook to let LSM modules handle user-space pagefaults on x86. It can be used to avoid segfaulting the originating process. If it's the case it can modify process registers before returning. This is not a security feature by itself, it's a way to soften some unwanted side-effects of

[RFC v2 3/9] Creation of "check_vmflags" LSM hook

2017-06-15 Thread Salvatore Mesoraca
Creation of a new LSM hook to check if a given configuration of vmflags, for a new memory allocation request, should be allowed or not. It's placed in "do_mmap", "do_brk_flags" and "__install_special_mapping". Signed-off-by: Salvatore Mesoraca --- include/linux/lsm_hooks.h | 7 +++ include/

Re: Some Libre Songs, Including one on GRSecurity's copyright Violation. Step up and listen, unless you can't handle it. BRUV (Bin that knoif)

2017-06-15 Thread aconcernedfossdev
Anyone enjoying? Give me feedback. The audacity zips are on the project page. I like to make OPENSOURCE MUSICK BROOO On 2017-06-15 16:39, aconcernedfoss...@airmail.cc wrote: Some Free/Libre/Opensource Songs for all of you here working on the LINUX KERNEL!, Including one on GRSec

[RFC v2 5/9] S.A.R.A. WX Protection

2017-06-15 Thread Salvatore Mesoraca
Introduction of S.A.R.A. WX Protection. It aims to improve user-space programs security by applying: - W^X enforcement - W!->X (once writable never executable) mprotect restriction - Executable MMAP prevention All of the above features can be enabled or disabled both system wide or on a per execut

Re: [PATCH 15/16] platform/x86: wmi-mof: New driver to expose embedded WMI MOF metadata

2017-06-15 Thread Pali Rohár
On Friday 09 June 2017 23:51:32 Pali Rohár wrote: > On Friday 09 June 2017 17:46:12 mario.limoncie...@dell.com wrote: > > > -Original Message- > > > From: Pali Rohár [mailto:pali.ro...@gmail.com] > > > Sent: Wednesday, June 7, 2017 3:50 PM > > > To: Limonciello, Mario > > > Cc: l...@amacap

[RFC v2 2/9] S.A.R.A. framework creation

2017-06-15 Thread Salvatore Mesoraca
Initial S.A.R.A. framework setup. Creation of a simplified interface to securityfs API to store and retrieve configurations and flags from user-space. Creation of some generic functions and macros to handle concurrent access to configurations, memory allocation and path resolution. Signed-off-by:

Re: [kernel-hardening] [RFC v2 7/9] Trampoline emulation

2017-06-15 Thread aconcernedfossdev
Thanks for doing this porting work. Look forward to using GRSecurity/PAX features on ARM eventually. ARM's taking over as we know. x86 is almost done. On 2017-06-15 16:42, Salvatore Mesoraca wrote: Some programs need to generate part of their code at runtime. Luckily enough, in some cases they

[PATCH] i2c: tc358743: remove useless variable assignment in tc358743_isr

2017-06-15 Thread Gustavo A. R. Silva
Remove useless variable assignment in function tc358743_isr(). The value stored in variable _intstatus_ at line 1299 is overwritten at line 1302, just before it can be used. Addresses-Coverity-ID: 1397678 Signed-off-by: Gustavo A. R. Silva --- drivers/media/i2c/tc358743.c | 1 - 1 file changed,

Re: [PATCH 3/4] of: Custom printk format specifier for device node

2017-06-15 Thread Joe Perches
On Thu, 2017-06-15 at 07:30 -0500, Rob Herring wrote: > On Wed, Jun 14, 2017 at 3:56 PM, Joe Perches wrote: > > On Wed, 2017-06-14 at 15:30 -0500, Rob Herring wrote: > > > From: Pantelis Antoniou > > > > I think the commit subject is wrong. > > It adds an "of" specific bit to vsprintf.c. > > The

Re: [PATCH 1/2] platform/x86: silead_dmi: Add touchscreen info for PoV mobii wintab p800w

2017-06-15 Thread Darren Hart
On Thu, Jun 15, 2017 at 08:48:31AM +0200, Hans de Goede wrote: > Add touchscreen info for the Point of View mobii wintab p800w tablet. > > Signed-off-by: Hans de Goede > --- > drivers/platform/x86/silead_dmi.c | 25 + > 1 file changed, 25 insertions(+) ... > +

Re: [lustre-devel] [PATCH] staging: lustre: headers: potential UAPI headers

2017-06-15 Thread Greg Kroah-Hartman
On Thu, Jun 15, 2017 at 04:48:20PM +0100, James Simmons wrote: > So this is coming from trying to understand the "merge them together" > part. Some people reading this it implies all the headers would be > eventually merged into one big header and placed into include/uapi/linux. Sounds like a g

Re: [PATCH] drm: Reduce scope of 'state' variable

2017-06-15 Thread Dawid Kurek
On 15/06/17, Jani Nikula wrote: > On Thu, 15 Jun 2017, Dawid Kurek wrote: > > On 15/06/17, Jani Nikula wrote: > >> Separate declaration and initialization would lead to a cleaner patch > >> and result. > > > > I saw combining declaration and initialization is quite common, i.e. in > > drm_atomic f

Re: [PATCH 1/6] staging: lustre: lustre: resolve "use spaces between elements" checkpatch errors

2017-06-15 Thread James Simmons
> On Thu, 2017-06-15 at 17:03 +0100, James Simmons wrote: > > > On Wed, 2017-06-14 at 11:01 -0400, James Simmons wrote: > > > > Due to the way the DFID was embedded in our debug strings checkpatch > > > > would report the following error: > > > > > > unrelated trivia > > > > > > > diff --git a/d

Re: [PATCH 6/6] staging: lustre: lustre: fix all braces issues reported by checkpatch

2017-06-15 Thread Joe Perches
On Thu, 2017-06-15 at 17:38 +0100, James Simmons wrote: > > On Wed, 2017-06-14 at 11:01 -0400, James Simmons wrote: > > > Cleanup all braces that was reported by checkpatch. The only > > > issue not fixed up is in mdc_lock.c. Removing the braces in > > > the case of mdc_lock.c will break the build.

Re: [PATCH v2] PCI: Add ATS-disable quirk for AMD Stoney GPUs

2017-06-15 Thread Samuel Sieb
On 06/15/2017 07:04 AM, Joerg Roedel wrote: Hi Bjorn, On Fri, Apr 07, 2017 at 04:32:18PM +0200, Joerg Roedel wrote: From: Joerg Roedel ATS is broken on this hardware and causes IOMMU stalls and system failure. Disable ATS on these devices to make them usable again with IOMMU enabled. Note th

Re: [RFC] rcu: use killable versions of swait

2017-06-15 Thread Eric W. Biederman
"Luis R. Rodriguez" writes: > On Thu, Jun 15, 2017 at 9:22 AM, Paul E. McKenney > wrote: >> On Thu, Jun 15, 2017 at 05:50:39PM +0200, Luis R. Rodriguez wrote: >>> On Wed, Jun 14, 2017 at 04:43:45PM -0700, Paul E. McKenney wrote: >>> > On Wed, Jun 14, 2017 at 04:06:39PM -0700, Luis R. Rodriguez w

Re: [PATCH net-next 0/8] net: dsa: prefix Global macros

2017-06-15 Thread Andrew Lunn
On Thu, Jun 15, 2017 at 12:13:58PM -0400, Vivien Didelot wrote: > This patch series is the 2/3 step of the register definitions cleanup. > It brings no functional changes. > > It prefixes and documents all Global (1) registers with MV88E6XXX_G1_ > (or a specific model like MV88E6352_G1_STS_PPU_STA

[PATCH] Doc: net: dsa: b53: update location of referenced dsa.txt

2017-06-15 Thread Heinrich Schuchardt
The referenced file dsa.txt is located at Documentation/devicetree/bindings/net/dsa/dsa.txt Signed-off-by: Heinrich Schuchardt --- Documentation/devicetree/bindings/net/dsa/b53.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/b53.t

Re: [PATCH] Doc: net: dsa: b53: update location of referenced dsa.txt

2017-06-15 Thread Florian Fainelli
On 06/15/2017 10:03 AM, Heinrich Schuchardt wrote: > The referenced file dsa.txt is located at > Documentation/devicetree/bindings/net/dsa/dsa.txt > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Florian Fainelli Thanks! > --- > Documentation/devicetree/bindings/net/dsa/b53.txt | 2 +- >

Re: [PATCH 1/6] staging: lustre: lustre: resolve "use spaces between elements" checkpatch errors

2017-06-15 Thread Joe Perches
On Thu, 2017-06-15 at 17:57 +0100, James Simmons wrote: > > On Thu, 2017-06-15 at 17:03 +0100, James Simmons wrote: > > > > On Wed, 2017-06-14 at 11:01 -0400, James Simmons wrote: > > > > > Due to the way the DFID was embedded in our debug strings checkpatch > > > > > would report the following err

Re: [PATCH 2/2] platform/x86: silead_dmi: Add touchscreen info for Pipo W2S tablet

2017-06-15 Thread Darren Hart
On Thu, Jun 15, 2017 at 08:48:32AM +0200, Hans de Goede wrote: > Add touchscreen info for Pipo W2S tablet. > > Signed-off-by: Hans de Goede Queued to testing, thanks Hans! -- Darren Hart VMware Open Source Technology Center

RE: [Oops][next-20170614][] powerpc boot fails with WARNING: CPU: 12 PID: 0 at mm/memblock.c

2017-06-15 Thread Rowand, Frank
On Thursday, June 15, 2017 2:25 AM, Abdul Haleem [mailto:abdha...@linux.vnet.ibm.com] wrote: > > On Thu, 2017-06-15 at 11:30 +0530, Abdul Haleem wrote: >> Hi, >> >> linux-next fails to boot on powerpc Bare-metal with these warnings. >> >> machine booted fine on next-20170613 > > Thanks Michael, Y

Re: [PATCH v2] PCI: Add ATS-disable quirk for AMD Stoney GPUs

2017-06-15 Thread Bjorn Helgaas
On Thu, Apr 20, 2017 at 02:11:42PM +0200, Joerg Roedel wrote: > On Sat, Apr 08, 2017 at 09:41:07AM +0200, Lukas Wunner wrote: > > On Fri, Apr 07, 2017 at 04:32:18PM +0200, Joerg Roedel wrote: > > > From: Joerg Roedel > > > > > > ATS is broken on this hardware and causes IOMMU stalls and > > > sys

Re: [PATCH 1/6] staging: lustre: lustre: resolve "use spaces between elements" checkpatch errors

2017-06-15 Thread James Simmons
> On Thu, 2017-06-15 at 17:57 +0100, James Simmons wrote: > > > On Thu, 2017-06-15 at 17:03 +0100, James Simmons wrote: > > > > > On Wed, 2017-06-14 at 11:01 -0400, James Simmons wrote: > > > > > > Due to the way the DFID was embedded in our debug strings checkpatch > > > > > > would report the fo

Re: [PATCH v2 1/1] MAINTAINERS: Update SPI NOR subsystem git repositories

2017-06-15 Thread Marek Vasut
On 06/13/2017 09:46 PM, Cyrille Pitchen wrote: > SPI NOR branches are now hosted on MTD repos, spi-nor/next is on l2-mtd > and spi-nor/fixes is on linux-mtd. > > Signed-off-by: Cyrille Pitchen Excellent. Acked-by: Marek Vasut > --- > > ChangeLog > > v1 -> v2 > - add branch names 'spi-nor/fi

RE: [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-06-15 Thread Liang, Kan
> On Thu, Jun 15, 2017 at 8:40 AM, Liang, Kan wrote: > > > > > >> This patch adds support for SKID_IP to Intel x86 processors in PEBS > >> mode. In that case, the off-by-1 IP from PEBS is returned in the SKID_IP > field. > > > > It looks we can only get different skid_ip and ip with :pp event >

Re: [kernel-hardening] [RFC v2 7/9] Trampoline emulation

2017-06-15 Thread Salvatore Mesoraca
2017-06-15 18:47 GMT+02:00 : > Thanks for doing this porting work. Look forward to using GRSecurity/PAX > features on ARM eventually. ARM's taking over as we know. x86 is almost > done. Do you have any suggestion about potential use of trampoline emulation on ARM? Thank you for your comment.

Applied "ASoC: rockchip: Fix an error handling in 'rockchip_i2s_probe'" to the asoc tree

2017-06-15 Thread Mark Brown
The patch ASoC: rockchip: Fix an error handling in 'rockchip_i2s_probe' has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hour

Re: [PATCH 0/5] perf: add support for capturing skid IP

2017-06-15 Thread Andi Kleen
On Thu, Jun 15, 2017 at 09:44:07AM -0700, Stephane Eranian wrote: > On Thu, Jun 15, 2017 at 8:10 AM, Andi Kleen wrote: > > On Thu, Jun 15, 2017 at 06:56:24AM -0700, Stephane Eranian wrote: > >> This patchs adds a new sample record type called > >> PERF_SAMPLE_SKID_IP. The goal is to record > >> th

Re: [PATCH] watchdog: bcm47xx_wdt: constify bcm47xx_wdt_hard_ops and bcm47xx_wdt_soft_ops

2017-06-15 Thread Guenter Roeck
On Mon, Jun 12, 2017 at 11:50:26AM +0530, Arvind Yadav wrote: > File size before: >text data bss dec hex filename >1282 388 11671 687 drivers/watchdog/bcm47xx_wdt.o > > File size After adding 'const': >text data bss dec

Re: [PATCH] watchdog: zx2967: constify zx2967_wdt_ops.

2017-06-15 Thread Guenter Roeck
On Mon, Jun 12, 2017 at 12:02:39PM +0530, Arvind Yadav wrote: > File size before: >text data bss dec hex filename > 988 288 01276 4fc drivers/watchdog/zx2967_wdt.o > > File size After adding 'const': >text data bss dec h

Re: [PATCH] nfc: nci: remove unnecessary null check

2017-06-15 Thread Guenter Roeck
On Tue, Jun 13, 2017 at 11:37:18AM -0500, Gustavo A. R. Silva wrote: > Remove unnecessary NULL check for pointer conn_info. > conn_info is set in list_for_each_entry() using container_of(), > which is never NULL. > > Addresses-Coverity-ID: 1362349 > Cc: Guenter Roeck > Signed-off-by: Gustavo A. R

[GIT PULL] platform-drivers-x86 for 4.12-2

2017-06-15 Thread Darren Hart
Hi Linus, Just a single patch to fix an oops in the intel_telemetry_debugfs module load/unload. The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.infradead.org/linux-plat

Re: [PATCH v2] drm: Reduce scope of 'state' variable

2017-06-15 Thread Sean Paul
On Thu, Jun 15, 2017 at 04:04:36PM +0200, Dawid Kurek wrote: > Smaller scope reduces visibility of variable and makes usage of > uninitialized variable less possible. > > Changes in v2: > - separate declaration and initialization Your patch is missing Signed-off-by tag Sean > --- > drive

Re: Applied "ASoC: rockchip: Fix an error handling in 'rockchip_i2s_probe'" to the asoc tree

2017-06-15 Thread Christophe JAILLET
Le 15/06/2017 à 19:20, Mark Brown a écrit : The patch ASoC: rockchip: Fix an error handling in 'rockchip_i2s_probe' has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-

Re: [RFC] rcu: use killable versions of swait

2017-06-15 Thread Paul E. McKenney
On Thu, Jun 15, 2017 at 09:35:45AM -0700, Luis R. Rodriguez wrote: > On Thu, Jun 15, 2017 at 9:22 AM, Paul E. McKenney > wrote: > > On Thu, Jun 15, 2017 at 05:50:39PM +0200, Luis R. Rodriguez wrote: > >> On Wed, Jun 14, 2017 at 04:43:45PM -0700, Paul E. McKenney wrote: > >> > On Wed, Jun 14, 2017

Re: [PATCH v4 1/2] arm64: dts: mt7622: add basic nodes to the mt7622.dtsi file

2017-06-15 Thread Sean Wang
On Thu, 2017-06-15 at 18:04 +0200, Matthias Brugger wrote: > > On 14/06/17 18:11, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > add basic nodes into the mt7622.dtsi for the system > > bring-up which includes ARM CPU, GIC, timer, MediaTek > > UART, SYSIRQ and one reserved memory regio

[PATCH v3 1/n] perf/core: addressing 4x slowdown during per-process profiling of STREAM benchmark on Intel Xeon Phi

2017-06-15 Thread Alexey Budankov
This series of patches continues v2 and addresses captured comments. Specifically this patch replaces pinned_groups and flexible_groups lists of perf_event_context by red-black cpu indexed trees avoiding data structures duplication and introducing possibility to iterate event groups for a speci

[PATCH v3 0/3] x86: stack alignment for boot code and clang

2017-06-15 Thread Matthias Kaehlcke
This series fixes an issue with the stack of the x86 boot code not being aligned as intended. Further it adapts the Makefile to account for the fact that clang uses a different option to configure the stack alignment than gcc (-mstack-alignment=N vs -mpreferred-stack-boundary=N) Collaterally the s

[PATCH v3 2/3] x86/build: Use __cc-option for boot code compiler options

2017-06-15 Thread Matthias Kaehlcke
cc-option is used to enable compiler options for the boot code if they are available. The macro uses KBUILD_CFLAGS and KBUILD_CPPFLAGS for the check, however these flags aren't used to build the boot code, in consequence cc-option can yield wrong results. For example -mpreferred-stack-boundary=2 is

Re: [PATCH v2]: perf/core: addressing 4x slowdown during per-process, profiling of STREAM benchmark on Intel Xeon Phi

2017-06-15 Thread Alexey Budankov
On 29.05.2017 14:45, Alexey Budankov wrote: On 29.05.2017 14:23, Peter Zijlstra wrote: On Mon, May 29, 2017 at 01:56:05PM +0300, Alexey Budankov wrote: On 29.05.2017 13:43, Peter Zijlstra wrote: Why can't the tree do both? Well, indeed, the tree provides such capability too. However swit

[PATCH v3 3/3] x86/build: Specify stack alignment for clang

2017-06-15 Thread Matthias Kaehlcke
For gcc stack alignment is configured with -mpreferred-stack-boundary=N, clang has the option -mstack-alignment=N for that purpose. Use the same alignment as with gcc. If the alignment is not specified clang assumes an alignment of 16 bytes, as required by the standard ABI. However as mentioned in

[PATCH v3 1/3] kbuild: Add __cc-option macro

2017-06-15 Thread Matthias Kaehlcke
cc-option uses KBUILD_CFLAGS and KBUILD_CPPFLAGS when it determines whether an option is supported or not. This is fine for options used to build the kernel itself, however some components like the x86 boot code use a different set of flags. Add the new macro __cc-option which is a more generic ve

Re: [PATCH v2] drm: Reduce scope of 'state' variable

2017-06-15 Thread Dawid Kurek
On 15/06/17, Sean Paul wrote: > On Thu, Jun 15, 2017 at 04:04:36PM +0200, Dawid Kurek wrote: > > Smaller scope reduces visibility of variable and makes usage of > > uninitialized variable less possible. > > > > Changes in v2: > > - separate declaration and initialization > > Your patch is mis

Re: [HMM 07/15] mm/ZONE_DEVICE: new type of ZONE_DEVICE for unaddressable memory v3

2017-06-15 Thread Jerome Glisse
> On 2017/5/25 1:20, Jérôme Glisse wrote: [...] > > diff --git a/mm/Kconfig b/mm/Kconfig > > index d744cff..f5357ff 100644 > > --- a/mm/Kconfig > > +++ b/mm/Kconfig > > @@ -736,6 +736,19 @@ config ZONE_DEVICE > > > > If FS_DAX is enabled, then say Y. > > > > +config DEVICE_PRIVATE > > +

Re: [PATCH v6 30/34] x86/mm, kexec: Allow kexec to be used with SME

2017-06-15 Thread Tom Lendacky
On 6/15/2017 5:03 AM, Borislav Petkov wrote: On Wed, Jun 07, 2017 at 02:18:27PM -0500, Tom Lendacky wrote: Provide support so that kexec can be used to boot a kernel when SME is enabled. Support is needed to allocate pages for kexec without encryption. This is needed in order to be able to reb

Re: [PATCH]: perf/core: addressing 4x slowdown during per-process profiling of STREAM benchmark on Intel Xeon Phi

2017-06-15 Thread Alexey Budankov
On 14.06.2017 13:07, Alexey Budankov wrote: On 30.05.2017 11:29, Alexander Shishkin wrote: Alexey Budankov writes: On 29.05.2017 15:03, Alexander Shishkin wrote: Alexey Budankov writes: Here (above the function) you could include a comment describing what happens when this is called, locki

[PATCH v3] drm: Reduce scope of 'state' variable

2017-06-15 Thread Dawid Kurek
Smaller scope reduces visibility of variable and makes usage of uninitialized variable less possible. Changes in v2: - separate declaration and initialization Changes in v3: - add missing signed-off-by tag Signed-off-by: Dawid Kurek --- drivers/gpu/drm/drm_atomic.c | 3 ++- 1 fi

[PATCH] bridge: Fix panel-bridge error return on !panel.

2017-06-15 Thread Eric Anholt
ERR_PTR() needs a negative errno argument. Signed-off-by: Eric Anholt --- drivers/gpu/drm/bridge/panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index 99f9a4beb859..67fe19e5a9c6 100644 --- a/drivers/gpu/d

Re: [PATCH v3 11/18] xen/pvcalls: implement accept command

2017-06-15 Thread Stefano Stabellini
On Thu, 15 Jun 2017, Juergen Gross wrote: > On 14/06/17 21:27, Stefano Stabellini wrote: > > On Wed, 14 Jun 2017, Juergen Gross wrote: > >> On 14/06/17 02:47, Stefano Stabellini wrote: > >>> On Tue, 13 Jun 2017, Juergen Gross wrote: > On 02/06/17 21:31, Stefano Stabellini wrote: > > Implem

[PATCH 4.4 02/46] partitions/msdos: FreeBSD UFS2 file systems are not recognized

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Richard commit 223220356d5ebc05ead9a8d697abb0c0a906fc81 upstream. The code in block/partitions/msdos.c recognizes FreeBSD, OpenBSD and NetBSD partitions and does a reasonable job picking out Op

[PATCH 1/2] perf intel-pt/bts: remove unused SAMPLE_SIZE defines and bts priv array

2017-06-15 Thread Kim Phillips
Signed-off-by: Kim Phillips --- tools/perf/arch/x86/util/intel-bts.c | 4 tools/perf/arch/x86/util/intel-pt.c | 4 tools/perf/util/intel-bts.c | 2 -- 3 files changed, 10 deletions(-) diff --git a/tools/perf/arch/x86/util/intel-bts.c b/tools/perf/arch/x86/util/intel-bts.c i

[PATCH 4.4 17/46] PM / runtime: Avoid false-positive warnings from might_sleep_if()

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "Rafael J. Wysocki" [ Upstream commit a9306a63631493afc75893a4ac405d4e1cbae6aa ] The might_sleep_if() assertions in __pm_runtime_idle(), __pm_runtime_suspend() and __pm_runtime_resume() may ge

[PATCH 4.4 06/46] net: xilinx_emaclite: fix freezes due to unordered I/O

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Anssi Hannula [ Upstream commit acf138f1b00bdd1b7cd9894562ed0c2a1670888e ] The xilinx_emaclite uses __raw_writel and __raw_readl for register accesses. Those functions do not imply any kind of

[PATCH 4.4 19/46] kasan: respect /proc/sys/kernel/traceoff_on_warning

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra [ Upstream commit 4f40c6e5627ea73b4e7c615c59631f38cc880885 ] After much waiting I finally reproduced a KASAN issue, only to find my trace-buffer empty of useful information beca

[PATCH 4.4 21/46] ethtool: do not vzalloc(0) on registers dump

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Stanislaw Gruszka [ Upstream commit 3808d34838184fd29088d6b3a364ba2f1c018fb6 ] If ->get_regs_len() callback return 0, we allocate 0 bytes of memory, what print ugly warning in dmesg, which can

[PATCH 4.4 09/46] ipv6: Inhibit IPv4-mapped src address on the wire.

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "Jonathan T. Leighton" [ Upstream commit ec5e3b0a1d41fbda0cc33a45bc9e54e91d9d12c7 ] This patch adds a check for the problematic case of an IPv4-mapped IPv6 source address and a destination add

[PATCH 4.4 22/46] fscache: Fix dead object requeue

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: David Howells [ Upstream commit e26bfebdfc0d212d366de9990a096665d5c0209a ] Under some circumstances, an fscache object can become queued such that it fscache_object_work_func() can be called o

[PATCH 4.4 37/46] r8152: re-schedule napi for tx

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: hayeswang [ Upstream commit 248b213ad908b88db15941202ef7cb7eb137c1a0 ] Re-schedule napi after napi_complete() for tx, if it is necessay. In r8152_poll(), if the tx is completed after tx_botto

[PATCH 4.4 28/46] net/mlx4_core: Avoid command timeouts during VF driver device shutdown

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein [ Upstream commit d585df1c5ccf995fcee910705ad7a9cdd11d4152 ] Some Hypervisors detach VFs from VMs by instantly causing an FLR event to be generated for a VF. In the mlx4 case

Re: [PATCH tip/sched/core] Add comments to aid in safer usage of swake_up.

2017-06-15 Thread Paul E. McKenney
On Thu, Jun 15, 2017 at 12:18:28PM +0800, Boqun Feng wrote: > On Wed, Jun 14, 2017 at 09:25:58AM -0700, Krister Johansen wrote: > > On Wed, Jun 14, 2017 at 11:02:40AM -0400, Steven Rostedt wrote: > > > On Wed, 14 Jun 2017 09:10:15 -0400 > > > Steven Rostedt wrote: > > > > > > > Now let's make it

[PATCH 4.9 001/108] PCI/PM: Add needs_resume flag to avoid suspend complete optimization

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Imre Deak commit 4d071c3238987325b9e50e33051a40d1cce311cc upstream. Some drivers - like i915 - may not support the system suspend direct complete optimization due to differences in their runtim

[PATCH 4.4 45/46] s390/kvm: do not rely on the ILC on kvm host protection fauls

2017-06-15 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Christian Borntraeger commit c0e7bb38c07cbd8269549ee0a0566021a3c729de upstream. For most cases a protection exception in the host (e.g. copy on write or dirty tracking) on the sie instruction w

[PATCH 4.9 005/108] ibmvnic: Fix endian errors in error reporting output

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Falcon [ Upstream commit 75224c93fa985f4a6fb983f53208f5c5aa555fbf ] Error reports received from firmware were not being converted from big endian values, leading to bogus error codes re

[PATCH 4.9 012/108] tipc: Fix tipc_sk_reinit race conditions

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu [ Upstream commit 9dbbfb0ab6680c6a85609041011484e6658e7d3c ] There are two problems with the function tipc_sk_reinit. Firstly it's doing a manual walk over an rhashtable. This is

[PATCH 4.9 014/108] NET: Fix /proc/net/arp for AX.25

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ralf Baechle [ Upstream commit 4872e57c812dd312bf8193b5933fa60585cda42f ] When sending ARP requests over AX.25 links the hwaddress in the neighbour cache are not getting initialized. For such

[PATCH 4.9 003/108] partitions/msdos: FreeBSD UFS2 file systems are not recognized

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Richard commit 223220356d5ebc05ead9a8d697abb0c0a906fc81 upstream. The code in block/partitions/msdos.c recognizes FreeBSD, OpenBSD and NetBSD partitions and does a reasonable job picking out Op

[PATCH 4.9 009/108] tcp: tcp_probe: use spin_lock_bh()

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit e70ac171658679ecf6bea4bbd9e9325cd6079d2b ] tcp_rcv_established() can now run in process context. We need to disable BH while acquiring tcp probe spinlock, or ri

[PATCH 4.9 038/108] net: fix ndo_features_check/ndo_fix_features comment ordering

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dimitris Michailidis [ Upstream commit 1a2a1d32b89b28116daea86f63ced1716668 ] Commit cdba756f5803a2 ("net: move ndo_features_check() close to ndo_start_xmit()") inadvertently moved the doc

[PATCH 4.9 035/108] ethtool: do not vzalloc(0) on registers dump

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Stanislaw Gruszka [ Upstream commit 3808d34838184fd29088d6b3a364ba2f1c018fb6 ] If ->get_regs_len() callback return 0, we allocate 0 bytes of memory, what print ugly warning in dmesg, which can

[PATCH 4.9 033/108] kasan: respect /proc/sys/kernel/traceoff_on_warning

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra [ Upstream commit 4f40c6e5627ea73b4e7c615c59631f38cc880885 ] After much waiting I finally reproduced a KASAN issue, only to find my trace-buffer empty of useful information beca

[PATCH 4.9 047/108] pinctrl: baytrail: Rectify debounce support (part 2)

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Andy Shevchenko [ Upstream commit 827e1579e1d5cb66e340e7be1944b825b542bbdf ] The commit 04ff5a095d66 ("pinctrl: baytrail: Rectify debounce support") almost fixes the logic of debuonce but miss

[PATCH 4.9 041/108] FS-Cache: Initialise stores_lock in netfs cookie

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: David Howells [ Upstream commit 62deb8187d116581c88c69a2dd9b5c16588545d4 ] Initialise the stores_lock in fscache netfs cookies. Technically, it shouldn't be necessary, since the netfs cookie

[PATCH 4.9 046/108] gianfar: synchronize DMA API usage by free_skb_rx_queue w/ gfar_new_page

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arseny Solokha [ Upstream commit 4af0e5bb95ee3ba5ea4bd7dbb94e1648a5279cc9 ] In spite of switching to paged allocation of Rx buffers, the driver still called dma_unmap_single() in the Rx queues

[PATCH 4.9 023/108] powerpc/powernv: Properly set "host-ipi" on IPIs

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt [ Upstream commit f83e6862047e1e371bdc5d512dd6cabe8a3965b8 ] Otherwise KVM will fail to pass them through to the host Signed-off-by: Benjamin Herrenschmidt Signed-off-

[PATCH 4.9 056/108] parisc, parport_gsc: Fixes for printk continuation lines

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Helge Deller [ Upstream commit 83b5d1e3d3013dbf90645a5d07179d018c8243fa ] Signed-off-by: Helge Deller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/parport/parpo

[PATCH 4.9 049/108] drm: prevent double-(un)registration for connectors

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Vetter [ Upstream commit e73ab00e9a0f1731f34d0620a9c55f5c30c4ad4e ] If we're unlucky then the registration from a hotplugged connector might race with the final registration step on dri

[PATCH 4.9 026/108] ipv6: addrconf: fix generation of new temporary addresses

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Marcus Huewe [ Upstream commit a11a7f71cac209c7c9cca66eb506e1ebb033a3b3 ] Under some circumstances it is possible that no new temporary addresses will be generated. For instance, addrconf_pre

[PATCH 4.9 029/108] ARM: defconfigs: make NF_CT_PROTO_SCTP and NF_CT_PROTO_UDPLITE built-in

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann [ Upstream commit 5aff1d245e8cc1ab5c4517d916edaed9e3f7f973 ] The symbols can no longer be used as loadable modules, leading to a harmless Kconfig warning: arch/arm/configs/imot

[PATCH 4.9 065/108] ravb: unmap descriptors when freeing rings

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kazuya Mizuguchi [ Upstream commit a47b70ea86bdeb3091341f5ae3ef580f1a1ad822 ] "swiotlb buffer is full" errors occur after repeated initialisation of a device - f.e. suspend/resume or ip link s

[PATCH 4.9 025/108] net: thunderx: Fix PHY autoneg for SGMII QLM mode

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thanneeru Srinivasulu [ Upstream commit 075ad765ef7541b2860de8408c165a92b78aefa3 ] This patch fixes the case where there is no phydev attached to a LMAC in DT due to non-existance of a PHY dri

[PATCH 4.9 073/108] net-next: ethernet: mediatek: change the compatible string

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: John Crispin [ Upstream commit 8b901f6bbcf12a20e43105d161bedde093431e61 ] When the binding was defined, I was not aware that mt2701 was an earlier version of the SoC. For sake of consistency,

[PATCH 4.9 077/108] bnxt_en: Fix RTNL lock usage on bnxt_get_port_module_status().

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael Chan [ Upstream commit 90c694bb71819fb5bd3501ac397307d7e41ddeca ] bnxt_get_port_module_status() calls bnxt_update_link() which expects RTNL to be held. In bnxt_sp_task() that does not

[PATCH 4.9 075/108] bnxt_en: Enhance autoneg support.

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael Chan [ Upstream commit 286ef9d64ea7435a1e323d12b44a309e15cbff0e ] On some dual port NICs, the speed setting on one port can affect the available speed on the other port. Add logic to

[PATCH 4.9 078/108] sctp: sctp gso should set feature with NETIF_F_SG when calling skb_segment

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit 5207f3996338e1db71363fe381c81aaf1e54e4e3 ] Now sctp gso puts segments into skb's frag_list, then processes these segments in skb_segment. But skb_segment handles the

[PATCH 4.9 055/108] net/mlx5: Return EOPNOTSUPP when failing to get steering name-space

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Or Gerlitz [ Upstream commit eff596da48784316ccb83bef82bc1213b512d5e0 ] When we fail to retrieve a hardware steering name-space, the returned error code should say that this operation is not s

[PATCH 4.9 104/108] xtensa: dont use linux IRQ #0

2017-06-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit e5c86679d5e864947a52fb31e45a425dea3e7fa9 upstream. Linux IRQ #0 is reserved for error reporting and may not be used. Increase NR_IRQS for one additional slot and increase ir

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