[PATCH] binder: fix use-after-free in binder_transaction()

2017-09-29 Thread Todd Kjos
User-space normally keeps the node alive when creating a transaction since it has a reference to the target. The local strong ref keeps it alive if the sending process dies before the target process processes the transaction. If the source process is malicious or has a reference counting bug, this

Re: [Part2 PATCH v4 02/29] x86/CPU/AMD: Add the Secure Encrypted Virtualization CPU feature

2017-09-29 Thread Brijesh Singh
On 09/29/2017 07:19 AM, Borislav Petkov wrote: ... This one was in the Part1 set, right? It landed here for whatever reason... Part1 is based on tip/master and Part2 is based on kvm/master. With the current division, we should be able to compile and run part1 and part2 independently. This

[PATCH] HID: i2c-hid: Use device properties (instead of device tree)

2017-09-29 Thread Rajat Jain
Use the device properties (that can be provided by ACPI systems as well as non ACPI systems) instead of device tree properties (that are not provided ACPI systems). This required some minor code restructuring. Signed-off-by: Rajat Jain --- I don't think its a big deal, but just FYI, this changes

Re: [PATCH V4 1/1] clk: bulk: add of_clk_bulk_get()

2017-09-29 Thread Stephen Boyd
On 09/26, Dong Aisheng wrote: > 'clock-names' property is optinal in DT, so of_clk_bulk_get() is introduced s/optinal/optional/ > here to handle this for DT users without 'clock-names' specified. > > Cc: Stephen Boyd > Cc: Michael Turquette > Cc: Russell King > Reported-by: Shawn Guo > Signe

Re: [Patch v2 1/2] libiscsi: Fix use-after-free race during iscsi_session_teardown

2017-09-29 Thread Khazhismel Kumykov
Noticed these don't seem to be in 4.14/scsi-queue On Tue, Aug 29, 2017 at 6:45 PM, Martin K. Petersen wrote: > > Chris, > >> Looks good to me, fixes up the code given that the comment there about >> calling iscsi_remove_session wasn't being followed. > > Applied these two to 4.14/scsi-queue. > >

Re: [PATCH 2/2] nvme: use device_add_disk_with_groups()

2017-09-29 Thread Keith Busch
On Thu, Sep 28, 2017 at 09:36:37PM +0200, Martin Wilck wrote: > By using device_add_disk_with_groups(), we can avoid the race > condition with udev rule processing, because no udev event will > be triggered before all attributes are available. > > Signed-off-by: Martin Wilck Looks good. Reviewe

Re: [PATCH 1/2] block: genhd: add device_add_disk_with_groups

2017-09-29 Thread Keith Busch
On Thu, Sep 28, 2017 at 09:36:36PM +0200, Martin Wilck wrote: > In the NVME subsystem, we're seeing a race condition with udev where > device_add_disk() is called (which triggers an "add" uevent), and a > sysfs attribute group is added to the disk device afterwards. > If udev rules access these att

Re: Read-only `slaves` with shared subtrees?

2017-09-29 Thread Dawid Ciezarkiewicz
On Fri, Sep 22, 2017 at 11:43 AM, Dawid Ciezarkiewicz wrote: > On Thu, Sep 21, 2017 at 12:14 PM, Ram Pai wrote: >> Here is a patch that accomplishes the job. tested to work with >> some simple use cases. check if this works for you. If it does >> than we will have to think through all the edge c

[Part1 PATCH v5 18/18] x86/mm: add 'sme' argument in mem_encrypt=

2017-09-29 Thread Brijesh Singh
The mem_encrypt=on activates both SME and SEV. Add a new argument to disable the SEV and allow SME. The argument can be useful when SEV has issues and we want to disable it. early_detect_mem_encrypt() [cpu/amd.com] will need to know the state of the mem_encrypt= argument. Since early_detect_mem_en

Re: Problems compiling with KCFLAGS="-frecord-gcc-switches"

2017-09-29 Thread Guenter Roeck
On 09/29/2017 01:58 PM, Josh Poimboeuf wrote: On Fri, Sep 29, 2017 at 01:38:43PM -0700, Guenter Roeck wrote: On Fri, Sep 29, 2017 at 01:00:56PM -0700, Guenter Roeck wrote: Hi Josh, when trying to compile an image with KCFLAGS="-frecord-gcc-switches", I get the folllowing build warning/error.

[PATCH 1/2] capability: introduce sysctl for controlled user-ns capability whitelist

2017-09-29 Thread Mahesh Bandewar
From: Mahesh Bandewar Add a sysctl variable kernel.controlled_userns_caps_whitelist. This takes input as capability mask expressed as two comma separated hex u32 words. The mask, however, is stored in kernel as kernel_cap_t type. Any capabilities that are not part of this mask will be controlled

[PATCH 0/2] capability controlled user-namespaces

2017-09-29 Thread Mahesh Bandewar
From: Mahesh Bandewar [Same as the previous RFC series sent on 9/21] TL;DR version - Creating a sandbox environment with namespaces is challenging considering what these sandboxed processes can engage into. e.g. CVE-2017-6074, CVE-2017-7184, CVE-2017-7308 etc. just to name few. Curre

[PATCH 2/2] userns: control capabilities of some user namespaces

2017-09-29 Thread Mahesh Bandewar
From: Mahesh Bandewar With this new notion of "controlled" user-namespaces, the controlled user-namespaces are marked at the time of their creation while the capabilities of processes that belong to them are controlled using the global mask. Init-user-ns is always uncontrolled and a process that

Re: [PATCH 7/7] fs-writeback: only allow one inflight and pending full flush

2017-09-29 Thread Jens Axboe
On 09/28/2017 08:09 PM, Jens Axboe wrote: > On 09/25/2017 11:35 AM, Jan Kara wrote: >> On Thu 21-09-17 10:00:25, Jens Axboe wrote: >>> On 09/21/2017 09:36 AM, Jens Axboe wrote: > But more importantly once we are not guaranteed that we only have > a single global wb_writeback_work per bdi_wr

[PATCH] m32r: fix build failure

2017-09-29 Thread Sudip Mukherjee
nst undefined symbol 'abort' The function 'abort' was never defined for the m32r architecture. Create 'abort' as is done in other arch like 'arm' and 'unicore32'. Signed-off-by: Sudip Mukherjee --- The build log of next-20170929 is at: https://tr

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-09-29 Thread Rafael J. Wysocki
On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin wrote: > intel idle driver does not DTRT when running within a VM: > when going into a deep power state, the right thing to > do is to exit to hypervisor rather than to keep polling > within guest using mwait. > > Currently the solution is just

Re: [PATCH v2 1/7] driver core: emit uevents when device is bound to a driver

2017-09-29 Thread Dmitry Torokhov
On Fri, Sep 29, 2017 at 07:40:15PM +, Ruhl, Michael J wrote: > > -Original Message- > > From: dan.j.willi...@gmail.com [mailto:dan.j.willi...@gmail.com] On > > Behalf Of Dan Williams > > Sent: Friday, September 29, 2017 3:37 PM > > To: Dmitry Torokhov > > Cc: Greg Kroah-Hartman ; Tejun

Re: [PATCH 01/12] Input: ad7897 - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
Hi Andi, On Sat, Sep 30, 2017 at 05:38:28AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the re

Re: [PATCH 06/12] Input: elants_i2c - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:33AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the action that

Re: [PATCH 08/12] Input: melfas_mip4 - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:35AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the action that

Re: [PATCH 09/12] Input: raydium_i2c_ts - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:36AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the action that

Re: [PATCH 10/12] Input: rohm_bu21023 - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:37AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the action that

[PATCH] PCI / PM: Add dev_dbg() to print device suspend power states

2017-09-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki It sometimes is useful to know what power states the kernel thinks it puts PCI devices into during system suspend, so add a dev_dbg() statement for that. Signed-off-by: Rafael J. Wysocki --- drivers/pci/pci-driver.c |3 +++ 1 file changed, 3 insertions(+) Index: li

Re: [PATCH 12/12] Input: wdt87xx_i2c - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:39AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the relative sys

Re: [PATCH 05/12] Input: edt-ft5x06 - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:32AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the relative sys

Re: [PATCH] kvm/x86: Handle async PF in RCU read-side critical sections

2017-09-29 Thread Boqun Feng
On Fri, Sep 29, 2017 at 04:43:39PM +, Paul E. McKenney wrote: > On Fri, Sep 29, 2017 at 04:53:57PM +0200, Paolo Bonzini wrote: > > On 29/09/2017 13:01, Boqun Feng wrote: > > > Sasha Levin reported a WARNING: > > > > > > | WARNING: CPU: 0 PID: 6974 at kernel/rcu/tree_plugin.h:329 > > > | rcu_pr

Re: [PATCH 11/12] Input: tsc200x-core - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:38AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the relative sys

Re: [PATCH 07/12] Input: ili210x - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:34AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the relative sys

Re: [PATCH 03/12] Input: ads7846 - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:30AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the relative sys

Re: [PATCH 04/12] Input: atmel_mxt_ts - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:31AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group. > > CC: Nick Dyer > Signed

Re: [PATCH 02/12] Input: ad7879 - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:29AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the action that

Fail to build Linux with O= in master

2017-09-29 Thread Julien Grall
Hello, I have tried to build the latest master and got the following error: 42sh> make O=~/works/linux-build/aarch64-4k -C ~/works/linux make: Entering directory '/home/julgra01/works/linux' Mak

[PATCH] phy: rockchip-typec: Check for errors from tcphy_phy_init()

2017-09-29 Thread Douglas Anderson
The function tcphy_phy_init() could return an error but the callers weren't checking the return value. They should. In at least one case while testing I saw the message "wait pma ready timeout" which indicates that tcphy_phy_init() really could return an error and we should account for it. Signe

Re: KVM PV (was: Re: [PATCH v2 2/2] x86/lguest: remove lguest support)

2017-09-29 Thread Lai Jiangshan
On Sat, Sep 30, 2017 at 12:39 AM, Paolo Bonzini wrote: > On 29/09/2017 17:47, Lai Jiangshan wrote: >> Hello, all >> >> An interesting (at least to me) thinking came up to me when I found >> that the lguest was removed. But I don't have enough knowledge >> to find out the answer nor energy to imple

Re: [PATCH] HID: i2c-hid: Use device properties (instead of device tree)

2017-09-29 Thread Brian Norris
Hi Rajat, On Fri, Sep 29, 2017 at 03:44:41PM -0700, Rajat Jain wrote: > Use the device properties (that can be provided by ACPI systems > as well as non ACPI systems) instead of device tree properties > (that are not provided ACPI systems). This required some minor > code restructuring. > > Signe

Re: Fail to build Linux with O= in master

2017-09-29 Thread Masahiro Yamada
2017-09-30 8:59 GMT+09:00 Julien Grall : > Hello, > > I have tried to build the latest master and got the following error: > > 42sh> make O=~/works/linux-build/aarch64-4k -C ~/works/linux > make: Entering directory '/home/julgra01/works/linux' > Makefile:135: *** failed to create output directory

Re: [PATCH] net: hns3: fix null pointer dereference before null check

2017-09-29 Thread Yunsheng Lin
Hi, Colin On 2017/9/30 3:51, Colin King wrote: > From: Colin Ian King > > pointer ndev is being dereferenced with the call to netif_running > before it is being null checked. Re-order the code to only dereference > ndev after it has been null checked. Thanks for fixing it. > > Detected by Co

Re: [PATCH] tpm: fix duplicate inline declaration specifier

2017-09-29 Thread Nick Desaulniers
Thanks! This fixes a warning I was seeing with Clang: drivers/char/tpm/tpm.h:560:15: warning: duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier] On Fri, Sep 29, 2017 at 10:17 AM, Jarkko Sakkinen wrote: > On Tue, Sep 26, 2017 at 01:58:57PM +, Ruben Roy wrote: >> This commit

Re: [PATCH v3 2/8] platform/x86: dell-smbios: Introduce a WMI-ACPI interface

2017-09-29 Thread Darren Hart
On Wed, Sep 27, 2017 at 11:02:14PM -0500, Mario Limonciello wrote: > The driver currently uses an SMI interface which grants direct access > to physical memory to the firmware SMM methods via a pointer. > > Now add a WMI-ACPI interface that is detected by WMI probe and preferred > over the SMI int

[PATCH] Staging: rtl8188eu: core: Use list_entry instead of container_of

2017-09-29 Thread Srishti Sharma
For variables that have type struct list_head* use list_entry to access current list element instead of using container_of. Done using the following semantic patch by coccinelle. @r@ identifier e; struct list_head* l; @@ <... when != l == NULL l; ...> ( e= -container_of +list_entry ( ..

Re: Problems compiling with KCFLAGS="-frecord-gcc-switches"

2017-09-29 Thread Guenter Roeck
On 09/29/2017 01:46 PM, Josh Poimboeuf wrote: On Fri, Sep 29, 2017 at 01:00:56PM -0700, Guenter Roeck wrote: Hi Josh, when trying to compile an image with KCFLAGS="-frecord-gcc-switches", I get the folllowing build warning/error. make allmodconfig KCFLAGS="-frecord-gcc-switches" make arch/x86/

[PATCH 7/9] kbuild: rpm-pkg: fix jobserver unavailable warning

2017-09-29 Thread Masahiro Yamada
If "make rpm-pkg" or "make binrpm-pkg" is run with -j[jobs] option, the following warning message is displayed. warning: jobserver unavailable: using -j1. Add '+' to parent make rule. Follow the suggestion. Signed-off-by: Masahiro Yamada --- scripts/package/Makefile | 4 ++-- 1 file change

[PATCH 3/3] staging: iio: tsl2x7x: migrate *_thresh_period sysfs attributes to iio_event_spec

2017-09-29 Thread Brian Masney
The sysfs attributes in_intensity0_thresh_period and in_proximity0_thresh_period are currently directly created by the driver. This patch migrates the creation of these sysfs attributes from the driver to using the IIO core via iio_event_spec. Signed-off-by: Brian Masney --- drivers/staging/iio/

[PATCH 0/3] staging: iio: tsl2x7x: staging cleanups

2017-09-29 Thread Brian Masney
This patch set converts several sysfs attributes from directly being created by the driver to be created by iio_chan_spec and iio_event_spec. There is also a patch to shorten the length of a variable to fix an issue that I encountered with some lines that were over 80 characters with this refactori

[PATCH 1/3] staging: iio: tsl2x7x: rename tsl2x7x_settings variable to settings

2017-09-29 Thread Brian Masney
The length of the 'tsl2x7x_settings' variable within the tsl2X7X_chip structure makes some of the line lengths greater than 80 characters for upcoming patches. This patch shortens the name of the 'tsl2x7x_settings' variable in this structure to just 'settings' to improve code readability. Signed-o

[PATCH 4/9] kbuild: rpm-pkg: refactor mkspec with here doc

2017-09-29 Thread Masahiro Yamada
The repeat of echo is unreadable. The here-document is a well-known device for such scripts. One difficulty is we have a bunch of PREBUILT conditionals that would split the here-document. My idea is to add "$S" annotatation to lines only for the source package spec file, then post-process it by

[PATCH 2/3] staging: iio: tsl2x7x: migrate in_illuminance0_integration_time sysfs attribute to iio_chan_spec

2017-09-29 Thread Brian Masney
The driver explicitly creates the in_illuminance0_integration_time sysfs attribute outside the IIO core. This attribute is available in the IIO core so this patches migrates the attribute to be created by the iio_chan_spec. Signed-off-by: Brian Masney --- Changes since v1 (Jul 9 2017): - Use MIN_

[PATCH 1/9] kbuild: rpm-pkg: remove ppc64 specific image handling

2017-09-29 Thread Masahiro Yamada
This conditional was added by commit 1a0f3d422bb9 ("kbuild: fix make rpm for powerpc"). Its git-log explains the default kernel image is zImage, but obviously the current arch/powerpc/Makefile does not set KBUILD_IMAGE, so the image file is actually vmlinux. Moreover, since commit 09549aa1baa9 ("

[PATCH 9/9] kbuild: rpm-pkg: do not force -jN in submake

2017-09-29 Thread Masahiro Yamada
The spec file always passes %{?_smp_mflags}, but we have two problems here. [1] "make -jN rpm-pkg" emits the following warning message: make[2]: warning: -jN forced in submake: disabling jobserver mode. [2] We can not specify the number of jobs that run in parallel. Whether we give -jN o

[PATCH 6/9] kbuild: rpm-pkg: replace $RPM_BUILD_ROOT with %{buildroot}

2017-09-29 Thread Masahiro Yamada
$RPM_BUILD_ROOT must be escaped to prevent shell from expanding it when generating the spec file. %{build_root} is more readable than \$RPM_BUILD_ROOT. Signed-off-by: Masahiro Yamada --- scripts/package/mkspec | 32 1 file changed, 16 insertions(+), 16 deletion

[PATCH 5/9] kbuild: rpm-pkg: fix build error when CONFIG_MODULES is disabled

2017-09-29 Thread Masahiro Yamada
When CONFIG_MODULES is disabled, make rpm-pkg / binrpm-pkg fails with the following message: The present kernel configuration has modules disabled. Type 'make config' and enable loadable module support. Then build a kernel with module support enabled. Do not install modules in the case. Al

[PATCH 8/9] kbuild: rpm-pkg: keep spec file until make mrproper

2017-09-29 Thread Masahiro Yamada
If build fails during (bin)rpm-pkg, the spec file is not cleaned by anyone until the next successful build of the package. We do not have to immediately delete the spec file in case somebody may want to take a look at it. Instead, make them ignored by git, and cleaned up by make mrproper. Signed

[PATCH 3/9] kbuild: rpm-pkg: clean up mkspec

2017-09-29 Thread Masahiro Yamada
Clean up the mkspec without changing the behavior. - grep CONFIG_DRM=y more simply - move "EXCLUDE" out of the "%install" section because it can be computed when the spec file is generated - remove "BuildRoot:" field, which is now redundant - do not mkdir $RPM_BUILD_ROOT/lib/modules expl

[PATCH 2/9] kbuild: rpm-pkg: install vmlinux.bz2 unconditionally

2017-09-29 Thread Masahiro Yamada
This conditional was added by commit fc370ecfdb37 ("kbuild: add vmlinux to kernel rpm"). Its git-log mentioned vmlinux.bz2 was necessary for debugging, but did not explain why ppc64 was an exception. I see no problem to copy vmlinux.bz2 all the time. Signed-off-by: Masahiro Yamada --- scripts

Re: [PATCH net-next v2 1/7] net: dsa: add master helper to look up slaves

2017-09-29 Thread Florian Fainelli
On 09/29/2017 02:19 PM, Vivien Didelot wrote: > The DSA tagging code does not need to know about the DSA architecture, > it only needs to return the slave device corresponding to the source > port index (and eventually the source device index for cascade-capable > switches) parsed from the frame

[PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-09-29 Thread Avinash Repaka
This patch fixes the scope of has_fr and has_fmr variables as they are needed only in rds_ib_add_one(). Signed-off-by: Avinash Repaka --- net/rds/ib.c | 11 ++- net/rds/ib.h | 2 -- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/net/rds/ib.c b/net/rds/ib.c index a0954ac.

[PATCH] Staging: rtl8188eu: core: Use list_entry instead of container_of

2017-09-29 Thread Srishti Sharma
For variables of the type struct list_head* use list_entry to access the current list element instead of using container_of. Done using the following semantic patch by coccinelle. @r@ identifier e; struct list_head* l; @@ <... when != l == NULL l; ...> ( e = -container_of +list_entry (

Re: [PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-29 Thread Guenter Roeck
On 09/28/2017 04:37 AM, Lorenzo Pieralisi wrote: Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now possible to define IRQ mapping functions on a per PCI host bridge basis. Actual IRQ allocation is carried out by the pci_assign_irq() function in pci_device_probe() - to make sure a

Re: [PATCH v3 3/8] platform/x86: dell-wmi-smbios: Use Dell WMI descriptor check

2017-09-29 Thread Darren Hart
On Wed, Sep 27, 2017 at 11:02:15PM -0500, Mario Limonciello wrote: > The Dell WMI descriptor check is used as an indication that WMI > calls are safe to run both when used with the notification > ASL/GUID pair as well as the SMBIOS calling ASL/GUID pair. > > As some code in dell-wmi-smbios is alre

Re: [PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-09-29 Thread Santosh Shilimkar
On 9/29/2017 6:13 PM, Avinash Repaka wrote: This patch fixes the scope of has_fr and has_fmr variables as they are needed only in rds_ib_add_one(). Signed-off-by: Avinash Repaka --- Indeed the final merge version actually didn't need those across files. Change looks good to me. Thanks !! Acke

[PATCH v2 0/7] Add support RK3328 drm hdmi

2017-09-29 Thread Algea Cao
These patches add support drm hdmi in RK3328 and has been tested in RK development board. We add dev_type to distinguish different rockchip chips. Hdmi phy or some regs configuration can't be switched according to dev_type, that hdmi driver's compatibility will be better. Algea Cao (7): drm/r

[PATCH v2 1/7] drm/rockchip: dw_hdmi: update dw_hdmi_rockchip_dt_ids

2017-09-29 Thread Algea Cao
Add rk3328-dw-hdmi to support rk3328. Signed-off-by: Algea Cao --- .../devicetree/bindings/display/rockchip/dw_hdmi-rockchip.txt | 1 + drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/Documentation/devicetree/b

[PATCH v2 2/7] drm/rockchip: dw_hdmi: add device type

2017-09-29 Thread Algea Cao
To determine type of SOC, we add a parameter dev_type. Signed-off-by: Algea Cao --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 5 + include/drm/bridge/dw_hdmi.h| 10 ++ 2 files changed, 15 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/

[PATCH v2 4/7] drm/rockchip: dw_hdmi: add inno hdmi phy ops

2017-09-29 Thread Algea Cao
Because some RK chips use inno hdmi phy, such as RK3328, we add inno hdmi phy ops. Signed-off-by: Algea Cao --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 110 +++- 1 file changed, 107 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchi

[PATCH v2 6/7] drm/rockchip: dw_hdmi: update dw-hdmi encoder enable

2017-09-29 Thread Algea Cao
Writing grf register according to device type. Signed-off-by: Algea Cao --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip

[PATCH v2 3/7] drm: bridge: dw-hdmi: change hdmi phy hpd read function to export

2017-09-29 Thread Algea Cao
Change dw_hdmi_phy_read_hpd from static to export. inno hdmi phy ops will call this interface to get hpd status. Signed-off-by: Algea Cao --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 5 +++-- include/drm/bridge/dw_hdmi.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-)

[PATCH v2 5/7] drm/rockchip: dw_hdmi: add hclk_vio

2017-09-29 Thread Algea Cao
Add clk hclk_vio and enable it when hdmi bind. Signed-off-by: Algea Cao --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c index 7658

[PATCH v2 7/7] drm: bridge: dw-hdmi: get phy ops by device type

2017-09-29 Thread Algea Cao
Add device type to distinguish different chips.Different chips use different phy ops, get them by device type. Signed-off-by: Algea Cao --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c

Re: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-09-29 Thread Darren Hart
On Wed, Sep 27, 2017 at 11:02:16PM -0500, Mario Limonciello wrote: > For WMI operations that are only Set or Query read or write sysfs > attributes created by WMI vendor drivers make sense. > > For other WMI operations that are run on Method, there needs to be a > way to guarantee to userspace th

random insta-reboots on AMD Phenom II

2017-09-29 Thread Adam Borowski
Hi! I'm afraid I see random instant reboots on current -rc, approximately once per day, only under CPU load. There's nothing on serial/etc -- just an immediate reboot. 4.13 works perfectly; last kernel I've tried is v4.14-rc2-165-g770b782f555d. gcc 7.2.0-7 (Debian). CPU is AMD Phenom II X6 1055

Re: [PATCH v3 5/8] platform/x86: dell-wmi-smbios: introduce character device for userspace

2017-09-29 Thread Darren Hart
On Wed, Sep 27, 2017 at 11:02:17PM -0500, Mario Limonciello wrote: > This userspace character device will be used to perform SMBIOS calls > from any applications. > > It provides an ioctl that will allow passing the 32k WMI calling > interface buffer between userspace and kernel space. > > This c

Re: [PATCH v3 6/8] platform/x86: dell-wmi-smbios: Add a sysfs interface for SMBIOS tokens

2017-09-29 Thread Darren Hart
On Wed, Sep 27, 2017 at 11:02:18PM -0500, Mario Limonciello wrote: > Currently userspace tools can access system tokens via the dcdbas > kernel module and a SMI call that will cause the platform to execute > SMM code. > > With a goal in mind of deprecating the dcdbas kernel module a different > me

f34c8585ed ("rcutorture: Invoke call_rcu() from timer handler"): WARNING: kernel stack regs at bdf19a20 in trinity-c0:12909 has bad 'bp' value bdf17850

2017-09-29 Thread kernel test robot
x-next specific files for 20170929 +---++++---+ | | 96036c4306 | f34c8585ed | 99637e4268

Re: [PATCH v3 0/8] Introduce support for Dell SMBIOS over WMI

2017-09-29 Thread Darren Hart
On Wed, Sep 27, 2017 at 11:02:12PM -0500, Mario Limonciello wrote: > The existing way that the dell-smbios helper module and associated > other drivers (dell-laptop, dell-wmi) communicate with the platform > really isn't secure. It requires creating a buffer in physical > DMA32 memory space and pa

re

2017-09-29 Thread Ella Golan
I am Ms.Ella Golan, I am the Executive Vice President Banking Division with FIRST INTERNATIONAL BANK OF ISRAEL LTD (FIBI). I am getting in touch with you regarding an extremely important and urgent matter. If you would oblige me the opportunity, I shall provide you with details upon your response.

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

2017-09-29 Thread Darren Hart
Hi Linus, My apologies for the typo in the patch subject... at this point it was rebase a published branch, or send you a spelling error... tough call! The following changes since commit 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e: Linux 4.14-rc1 (2017-09-16 15:47:51 -0700) are available in the

Re: [PATCH v3 1/6] gpu: host1x: Enable Tegra186 syncpoint protection

2017-09-29 Thread Dmitry Osipenko
On 28.09.2017 15:50, Mikko Perttunen wrote: > Since Tegra186 the Host1x hardware allows syncpoints to be assigned to > specific channels, preventing any other channels from incrementing > them. > > Enable this feature where available and assign syncpoints to channels > when submitting a job. Syncp

Re: [PATCH v3 4/6] gpu: host1x: Disassemble more instructions

2017-09-29 Thread Dmitry Osipenko
On 28.09.2017 15:50, Mikko Perttunen wrote: > The disassembler for debug dumps was missing some newer host1x opcodes. > Add disassembly support for these. > > Signed-off-by: Mikko Perttunen > --- Reviewed-by: Dmitry Osipenko And for older Tegra's: Tested-by: Dmitry Osipenko > drivers/gpu/

Re: [PATCH v3 6/6] drm/tegra: Use u64_to_user_ptr helper

2017-09-29 Thread Dmitry Osipenko
On 28.09.2017 15:50, Mikko Perttunen wrote: > Use the u64_to_user_ptr helper macro to cast IOCTL argument u64 values > to user pointers instead of writing out the cast manually. Also do > some other cleanup with user pointers to make them stand out more > and look cleaner. > > Signed-off-by: Mikko

[PATCHv3 0/7] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-09-29 Thread Sergey Senozhatsky
Hello Petr, could you please pick up the series? == On some arches C function pointers are indirect and point to a function descriptor, which contains the actual pointer to the code. This mostly does

[PATCHv3 4/7] powerpc64: Add .opd based function descriptor dereference

2017-09-29 Thread Sergey Senozhatsky
We are moving towards separate kernel and module function descriptor dereference callbacks. This patch enables it for powerpc64. For pointers that belong to the kernel - Added __start_opd and __end_opd pointers, to track the kernel .opd section address range; - Added dereference_kernel_funct

[PATCHv3 2/7] sections: split dereference_function_descriptor()

2017-09-29 Thread Sergey Senozhatsky
There are two format specifiers to print out a pointer in symbolic format: '%pS/%ps' and '%pF/%pf'. On most architectures, the two mean exactly the same thing, but some architectures (ia64, ppc64, parisc64) use an indirect pointer for C function pointers, where the function pointer points to a func

[PATCHv3 3/7] ia64: Add .opd based function descriptor dereference

2017-09-29 Thread Sergey Senozhatsky
We are moving towards separate kernel and module function descriptor dereference callbacks. This patch enables it for IA64. For pointers that belong to the kernel - Added __start_opd and __end_opd pointers, to track the kernel .opd section address range; - Added dereference_kernel_function_d

[PATCHv3 1/7] switch dereference_function_descriptor() to `unsigned long'

2017-09-29 Thread Sergey Senozhatsky
Convert dereference_function_descriptor() to accept and return `unsigned long'. There will be two new ARCH function for kernel and module function pointer dereference, which will work with `unsigned long', so the patch unifies interfaces. Besides, dereference_function_descriptor() mostly work with

[PATCHv3 6/7] symbol lookup: use new kernel and module dereference functions

2017-09-29 Thread Sergey Senozhatsky
Call appropriate function descriptor dereference ARCH callbacks: - dereference_kernel_function_descriptor() if the pointer is a kernel symbol; - dereference_module_function_descriptor() if the pointer is a module symbol. This patch also removes dereference_function_descriptor() from '%pF/%pf'

[PATCHv3 5/7] parisc64: Add .opd based function descriptor dereference

2017-09-29 Thread Sergey Senozhatsky
We are moving towards separate kernel and module function descriptor dereference callbacks. This patch enables it for parisc64. For pointers that belong to the kernel - Added __start_opd and __end_opd pointers, to track the kernel .opd section address range; - Added dereference_kernel_functi

[PATCHv3 7/7] checkpatch: add pF/pf deprecation warning

2017-09-29 Thread Sergey Senozhatsky
We deprecated '%pF/%pf' printk specifiers, since '%pS/%ps' is now smart enough to handle function pointer dereference on platforms where such dereference is required. checkpatch warning example: WARNING: Deprecated vsprintf pointer extension '%pF' - use %pS instead Signed-off-by: Sergey Senozhat

Re: [PATCH 0/6] Cache coherent device memory (CDM) with HMM v5

2017-09-29 Thread Bob Liu
On 2017/9/27 0:16, Jerome Glisse wrote: > On Tue, Sep 26, 2017 at 05:56:26PM +0800, Bob Liu wrote: >> On Tue, Sep 12, 2017 at 7:36 AM, Jerome Glisse wrote: >>> On Sun, Sep 10, 2017 at 07:22:58AM +0800, Bob Liu wrote: On Wed, Sep 6, 2017 at 3:36 AM, Jerome Glisse wrote: > On Thu, Jul 20,

Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB DMA controller

2017-09-29 Thread Dmitry Osipenko
On 29.09.2017 22:30, Stephen Warren wrote: > On 09/27/2017 02:34 AM, Jon Hunter wrote: >> >> On 27/09/17 02:57, Dmitry Osipenko wrote: >>> On 26.09.2017 17:50, Jon Hunter wrote: On 26/09/17 00:22, Dmitry Osipenko wrote: > Document DT bindings for NVIDIA Tegra AHB DMA controller that p

Re: [RFC V2] printk: add warning while drop partial text in msg

2017-09-29 Thread Sergey Senozhatsky
On (09/27/17 21:59), pierre kuo wrote: [..] > We use the example in this mail since we try to collect the message at > different places in our driver. > And batch to printk for saving individual output time and group > message together. I see. well, printk batching (buffered mode) is a bit tricky

[PATCH v1 0/9] early pt: intel processor trace early support

2017-09-29 Thread Luming Yu
we can use intel processor trace facility since cpu power on so we can try this patch to do early code analysis at basic block level. The basic usage is as below: #./sptdump #./sptdecode --pt ptout.0 -e ../linux-test/vmlinux | less [+ 10] ext4_getblk+159 -> __getblk_g

[PATCH v1 1/9] early pt: Basic support for early intel processor trace

2017-09-29 Thread Luming Yu
with zero dependencies on other technologies in linux kernel, 1.Per cpu dump for basic block level code analysis 2.I can trace any code including myself right after it's enabled Signed-off-by: Luming Yu --- arch/x86/events/Kconfig | 6 + arch/x86/events/intel/Makefile | 1 + arch/

[PATCH v1 2/9] early pt: kconfig disable ftrace by default

2017-09-29 Thread Luming Yu
Recommend to disable ftrace for pt by default though pt works perfectly for tracing ftrace code Signed-off-by: Luming Yu 0002-Recommend-to-disable-ftrace-for-pt-by-default.patch Description: Binary data

[PATCH v1 3/9] early pt: boot option to enable early pt

2017-09-29 Thread Luming Yu
boot option "early_pt" to enable early pt Signed-off-by: Luming Yu 0003-boot-option-early_pt-to-enable-early-pt.patch Description: Binary data

[PATCH v1 4/9] early pt: boot option early_pt_buf_len

2017-09-29 Thread Luming Yu
for early pt buffer size setup Signed-off-by: Luming Yu 0004-boot-option-early_pt_buf_len-for-early-pt-buffer-siz.patch Description: Binary data

[PATCH v1 5/9] early pt: basic addr pair filter support

2017-09-29 Thread Luming Yu
(addr0 && addr1) Signed-off-by: Luming Yu 0005-early-pt-basic-addr-pair-filter-support-addr0-addr1.patch Description: Binary data

[PATCH v1 6/9] early pt: enable mtc freq packet

2017-09-29 Thread Luming Yu
enable mtc freq packet Signed-off-by: Luming Yu 0006-early-pt-enable-mtc-freq-packet.patch Description: Binary data

[PATCH v1 7/9] early pt: enable early pt psb packet

2017-09-29 Thread Luming Yu
enable PSB packet Signed-off-by: Luming Yu 0007-enable-early-pt-psb-packet.patch Description: Binary data

[PATCH v1 8/9] early pt: enable cyc packet

2017-09-29 Thread Luming Yu
enable CYC packet Signed-off-by: Luming Yu 0008-early-pt-enable-cyc-packet.patch Description: Binary data

[PATCH v1 9/9] early pt: early start intel processor trace in early boot

2017-09-29 Thread Luming Yu
enable intel PT to trace kernel boot && runtime Signed-off-by: Luming Yu 0009-start-early-intel-processor-trace-in-early-boot.patch Description: Binary data

  1   2   3   4   5   6   7   >