Re: [PATCH v4] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state

2017-04-28 Thread Ritesh Raj Sarraf
Hello, On Fri, 2017-04-28 at 22:17 +0300, Andy Shevchenko wrote: > On Wed, Feb 22, 2017 at 12:24 PM, Ritesh Raj Sarraf wrote: > > > Any further comment on this patch ? Will this be accepted ? > > Please give a N/ACK. > > Sorry for a long delay, but I can't go with this without clear > understan

[PATCH] staging: fbtft: fbtft-io.c: Fix sparse warning

2017-04-28 Thread AbdAllah-MEZITI
This patch fixes the following sparse warning in fbtft/fbtft-io.c CHECK drivers/staging/fbtft/fbtft-io.c drivers/staging/fbtft/fbtft-io.c:74:29: warning: incorrect type in assignment (different base types) drivers/staging/fbtft/fbtft-io.c:74:29:expected unsigned long long [unsigned] [lon

[PATCH 5/5] drm: Add three ioctls for managing drm mode object leases [v2]

2017-04-28 Thread Keith Packard
drm_mode_create_lease Creates a lease for a list of drm mode objects, returning an fd for the new drm_master and a 64-bit identifier for the lessee drm_mode_list_lesees List the identifiers of the lessees for a master file drm_mode_get_lease List the leased obje

[PATCH 3/5] drm: Add drm_object lease infrastructure [v2]

2017-04-28 Thread Keith Packard
This provides new data structures to hold "lease" information about drm mode setting objects, and provides for creating new drm_masters which have access to a subset of the available drm resources. An 'owner' is a drm_master which is not leasing the objects from another drm_master, and hence 'owns

[PATCH 4/5] drm: Check mode object lease status in all master ioctl paths [v2]

2017-04-28 Thread Keith Packard
Attempts to modify un-leased objects are rejected with an error. Information returned about unleased objects is modified to make them appear unusable and/or disconnected. Changes for v2 as suggested by Daniel Vetter : With the change in the __drm_mode_object_find API to pass the file_priv along,

[PATCH 2/5] drm: Add new LEASE debug level

2017-04-28 Thread Keith Packard
Separate out lease debugging from the core. Signed-off-by: Keith Packard --- drivers/gpu/drm/drm_drv.c | 3 ++- include/drm/drmP.h| 4 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 6594b4088f11..d4a3612655e3

[PATCH 1/5] drm: Pass struct drm_file * to __drm_mode_object_find

2017-04-28 Thread Keith Packard
This will allow __drm_mode_object_file to be extended to perform access control checks based on the file in use. Suggested-by: Daniel Vetter Signed-off-by: Keith Packard --- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 16 drivers/gpu/drm/amd/amdgpu/dce_virtual.c

[PATCH 0/5] drm: Add mode resource leasing [v2]

2017-04-28 Thread Keith Packard
Here's a second try at mode resource leasing. The differences from v1 are mostly deleting functionality that isn't currently useful. There are no more sub-leases; there's the owner, the owner is the only lessor and so the only one who can create leases and hand those out. The lessor can now manip

Re: [PATCH 2/5] clk: qcom: ipq8074: Add Global Clock Controller support

2017-04-28 Thread kbuild test robot
Hi Abhishek, [auto build test WARNING on robh/for-next] [also build test WARNING on v4.11-rc8 next-20170428] [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/Varadarajan-Narayanan/Add-minimal

[PATCH] clk: qcom: ipq8074: fix platform_no_drv_owner.cocci warnings

2017-04-28 Thread kbuild test robot
drivers/clk/qcom/gcc-ipq8074.c:1014:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Abhishek Sahu Signed-off-by: Fengguang Wu --- gcc-ipq8074.c |1

Re: [PATCH] firmware: google: memconsole: Adapt to new coreboot ring buffer format

2017-04-28 Thread Greg Kroah-Hartman
On Fri, Apr 28, 2017 at 01:44:45PM -0700, Julius Werner wrote: > > -8< > > That needs to go below the --- line, not above it. > > > Really? git am --scissors seems to do the right thing for me this way... Ah, never used

Re: [PATCH v2 2/3] firmware: google: memconsole: Escape unprintable characters

2017-04-28 Thread Greg Kroah-Hartman
On Fri, Apr 28, 2017 at 01:42:24PM -0700, Julius Werner wrote: > Recent improvements in coreboot's memory console allow it to contain > logs from more than one boot as long as the information persists in > memory. Since trying to persist a memory buffer across reboots often > doesn't quite work per

Re: [PATCH] staging: fbtft: fbtft-core.c: EXPORT_SYMBOL should immediately follow its function

2017-04-28 Thread Greg KH
On Sat, Apr 29, 2017 at 01:07:34AM +0200, Shiva Kerdel wrote: > This patch fixes the following checkpatch.pl warning > - EXPORT_SYMBOL(foo); should immediately follow its function/variable > > Signed-off-by: Shiva Kerdel > --- > drivers/staging/fbtft/fbtft-core.c | 25 +++-- >

Re: [PATCH] staging: comedi: use memdup_user

2017-04-28 Thread Greg Kroah-Hartman
On Fri, Apr 28, 2017 at 06:53:32PM -0700, Joe Perches wrote: > On Sat, 2017-04-29 at 09:45 +0800, Geliang Tang wrote: > > Use memdup_user() helper instead of open-coding to simplify the code. > > While I doubt this is a problem, this loses > the multiplication overflow check for > sizeof(*insns) *

Re: [PATCH v6 2/5] firmware: add extensible driver data API

2017-04-28 Thread Luis R. Rodriguez
On Fri, Apr 28, 2017 at 12:19:05PM +0900, AKASHI Takahiro wrote: > > > > + ret = _request_firmware(&driver_data, name, ¶ms, device); > > > > + if (ret && driver_data_param_optional(req_params)) > > > > + ret = driver_data_sync_opt_call_cb(req_params); > > > > + else

[PATCH v2] Introduce v3 namespaced file capabilities

2017-04-28 Thread Serge E. Hallyn
Root in a non-initial user ns cannot be trusted to write a traditional security.capability xattr. If it were allowed to do so, then any unprivileged user on the host could map his own uid to root in a private namespace, write the xattr, and execute the file with privilege on the host. However sup

Re: [PATCH 1/2] dt-bindings: arm-ccn: Add bindings info for CCN-502 compatible string

2017-04-28 Thread Scott Branden
Hi Mark/Pawel, I think this patch series has been missed. On 17-02-14 09:48 AM, Mark Rutland wrote: On Fri, Feb 10, 2017 at 12:42:47PM -0800, Velibor Markovski wrote: Add CCN-502 to the list of supported devices by ARM CCN PMU driver. Signed-off-by: Velibor Markovski Acked-by: Mark Rutland

Re: [PATCH] x86/intel_idle: add GLK support

2017-04-28 Thread Len Brown
Acked-by: Len Brown On Sun, Apr 23, 2017 at 2:06 AM, David E. Box wrote: > From: "Box, David E" > > Gemini Lake uses the same C-states as Broxton and also uses the > IRTL MSR's to determine maximum C-state latency. > > Signed-off-by: David E. Box > --- > drivers/idle/intel_idle.c | 2 ++ > 1

Re: iov_iter_pipe warning.

2017-04-28 Thread Al Viro
On Fri, Apr 28, 2017 at 09:58:47PM -0400, Dave Jones wrote: > On Fri, Apr 28, 2017 at 07:25:12PM +0100, Al Viro wrote: > > On Fri, Apr 28, 2017 at 06:20:25PM +0100, Al Viro wrote: > > > On Fri, Apr 28, 2017 at 12:50:24PM -0400, Dave Jones wrote: > > > > currently running v4.11-rc8-75-gf83246089c

Re: [PATCH v2] iov_iter: don't revert iov buffer if csum error

2017-04-28 Thread Al Viro
On Sat, Apr 29, 2017 at 10:38:48AM +0800, Ding Tianhong wrote: > The patch 327868212381 (make skb_copy_datagram_msg() et.al. preserve > ->msg_iter on error) will revert the iov buffer if copy to iter > failed, but it didn't copy any datagram if the skb_checksum_complete > error, so no need to rever

[PATCH v2] iov_iter: don't revert iov buffer if csum error

2017-04-28 Thread Ding Tianhong
The patch 327868212381 (make skb_copy_datagram_msg() et.al. preserve ->msg_iter on error) will revert the iov buffer if copy to iter failed, but it didn't copy any datagram if the skb_checksum_complete error, so no need to revert any data at this place. v2: Sabrina notice that return -EFAULT when

[PATCH] kthread: Fix race condition between kthread_parkme() and kthread_unpark()

2017-04-28 Thread Junaid Shahid
In general, if kthread_unpark() and kthread_parkme() execute together, the kthread is supposed to be in an unparked state. This is because kthread_unpark() either wakes up the thread if it already got parked, or it cancels a prior kthread_park() call and hence renders the kthread_parkme() moot. Ho

Re: [PATCH] iov_iter: don't revert if csum error

2017-04-28 Thread Ding Tianhong
On 2017/4/28 21:16, Sabrina Dubroca wrote: > 2017-04-28, 20:48:45 +0800, Ding Tianhong wrote: >> The patch 3278682 (make skb_copy_datagram_msg() et.al. preserve >> ->msg_iter on error) will revert the iov buffer if copy to iter >> failed, but it looks no need to revert for csum error, so fix it.

Re: [PATCH] proc: Fix unbalanced hard link numbers

2017-04-28 Thread Eric W. Biederman
Takashi Iwai writes: > proc_create_mount_point() forgot to increase the parent's nlink, and > it resulted in unbalanced hard link numbers, e.g. /proc/fs shows one > less than expected. Applied. Thanks. > > Fixes: eb6d38d5427b ("proc: Allow creating permanently empty directories...") > Cc: sta.

Re: iov_iter_pipe warning.

2017-04-28 Thread Dave Jones
On Fri, Apr 28, 2017 at 07:25:12PM +0100, Al Viro wrote: > On Fri, Apr 28, 2017 at 06:20:25PM +0100, Al Viro wrote: > > On Fri, Apr 28, 2017 at 12:50:24PM -0400, Dave Jones wrote: > > > currently running v4.11-rc8-75-gf83246089ca0 > > > > > > sunrpc bit is for the other unrelated problem I'm

Re: [PATCH] staging: comedi: use memdup_user

2017-04-28 Thread Joe Perches
On Sat, 2017-04-29 at 09:45 +0800, Geliang Tang wrote: > Use memdup_user() helper instead of open-coding to simplify the code. While I doubt this is a problem, this loses the multiplication overflow check for sizeof(*insns) * insnlist.n_isns > diff --git a/drivers/staging/comedi/comedi_fops.c >

[PATCH] powerpc/pseries: use memdup_user_nul

2017-04-28 Thread Geliang Tang
Use memdup_user_nul() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- arch/powerpc/platforms/pseries/reconfig.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/platforms/pseries/reconfig.c b/arch/powerpc/platfor

[PATCH] skd_main: use memdup_user

2017-04-28 Thread Geliang Tang
Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- drivers/block/skd_main.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index 27833e4..6b3cdd2 100644 -

[PATCH] staging: comedi: use memdup_user

2017-04-28 Thread Geliang Tang
Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- drivers/staging/comedi/comedi_fops.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/co

[PATCH] pstore: use memdup_user

2017-04-28 Thread Geliang Tang
Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- fs/pstore/platform.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 43b3ca5..903e0fe 100644 --- a/fs/pstore/pla

[PATCH] powerpc/powernv: use memdup_user

2017-04-28 Thread Geliang Tang
Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- arch/powerpc/platforms/powernv/opal-prd.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal-prd.c b/arch/powerpc/platforms/p

[PATCH] floppy: use memdup_user

2017-04-28 Thread Geliang Tang
Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- drivers/block/floppy.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 60d4c76..167426c 100644 --- a/drivers/bl

[PATCH] powerpc/nvram: use memdup_user

2017-04-28 Thread Geliang Tang
Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- arch/powerpc/kernel/nvram_64.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c index eae61b0..4

[PATCH] cciss: use memdup_user

2017-04-28 Thread Geliang Tang
Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- drivers/block/cciss.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index cd37550..40ee715 100644 --- a/drivers/b

[PATCH 2/2] efi/efi_test: drop useless kfree

2017-04-28 Thread Geliang Tang
Drop useless kfree when memdup_user() failed, since we have already called kfree in memdup_user(). Signed-off-by: Geliang Tang --- drivers/firmware/efi/test/efi_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/firmware/efi/test/efi_test.c b/drivers/firmware/

[PATCH 1/2] efi/efi_test: use memdup_user

2017-04-28 Thread Geliang Tang
Use memdup_user() helper instead of open-coding to simplify the code. Signed-off-by: Geliang Tang --- drivers/firmware/efi/test/efi_test.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/firmware/efi/test/efi_test.c b/drivers/firmware/efi/test/efi_test.c

[PATCH v2] tty/serial: atmel: use offset_in_page() macro

2017-04-28 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- Changes in v2: - include mm.h --- drivers/tty/serial/atmel_serial.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c

[PATCH v2] IB/i40iw: use setup_timer

2017-04-28 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- Changes in v2: - use setup_timer() in i40iw_terminate_start_timer(). --- drivers/infiniband/hw/i40iw/i40iw_cm.c| 5 ++--- drivers/infiniband/hw/i40iw/i40iw_utils.c | 10 -- 2 files chang

Re: [PATCH v4] Input: psxpad-spi - Add PSX (Play Station 1/2) pad SPI driver

2017-04-28 Thread Tomohiro Yoshidomi
Mr.Gutman Thanks to the opinion. I thought that PC applications can flexibly set button and axis settings. However, there are many applications that can not be set. To briefly explain the operation of the PSX pad, 1. When analog button is off, PSX gamepad send "digital" responses. 2. When analog

Re: [PATCH v3] staging: speakup: fix wrong code indent

2017-04-28 Thread Michael Mera
Greg Kroah-Hartman writes: > This patch doesn't apply to my tree at all, what tree/branch did you > make it against? >From the 'T:' line in MAINTAINER at STAGING SUBSYSTEM, I thought that I should base changes on: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git Since there wa

Re: [PATCH 2/2] libnvdimm: clear region badblock in nvdimm_clear_poison()

2017-04-28 Thread Dan Williams
On Fri, Apr 28, 2017 at 5:12 PM, Dan Williams wrote: > On Fri, Apr 28, 2017 at 5:10 PM, Dan Williams > wrote: >> On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani wrote: >>> Badblocks are tracked at both region and device levels. >>> pmem_clear_poison() and nsio_rw_bytes() call nvdimm_clear_poison()

[PATCH] staging: fbtft: fbtft-core.c: EXPORT_SYMBOL should immediately follow its function

2017-04-28 Thread Shiva Kerdel
This patch fixes the following checkpatch.pl warning - EXPORT_SYMBOL(foo); should immediately follow its function/variable Signed-off-by: Shiva Kerdel --- drivers/staging/fbtft/fbtft-core.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/drivers/st

Re: [PATCH 2/2] libnvdimm: clear region badblock in nvdimm_clear_poison()

2017-04-28 Thread Dan Williams
On Fri, Apr 28, 2017 at 5:10 PM, Dan Williams wrote: > On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani wrote: >> Badblocks are tracked at both region and device levels. >> pmem_clear_poison() and nsio_rw_bytes() call nvdimm_clear_poison() >> and then badblocks_clear() to clear badblocks at the device

Re: [PATCH RFC tip/core/rcu] Make SRCU be once again optional

2017-04-28 Thread Paul E. McKenney
On Fri, Apr 28, 2017 at 05:51:15PM -0400, Nicolas Pitre wrote: > On Fri, 28 Apr 2017, Paul E. McKenney wrote: > > > Hello, Nicolas! > > > > Saw the TTY write up LWN and figured I should send this your way. > > It should be worth about 2K compared to current -next, which gave > > up the 2K compare

Re: [PATCH 2/2] libnvdimm: clear region badblock in nvdimm_clear_poison()

2017-04-28 Thread Dan Williams
On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani wrote: > Badblocks are tracked at both region and device levels. > pmem_clear_poison() and nsio_rw_bytes() call nvdimm_clear_poison() > and then badblocks_clear() to clear badblocks at the device level. > However, it does not update badblocks at the regi

[PATCH] regulator: Allow for asymmetric settling times

2017-04-28 Thread Matthias Kaehlcke
Some regulators have different settling times for voltage increases and decreases. To avoid a time penalty on the faster transition extend the settling time property to allow for different settings for upward and downward transitions. Signed-off-by: Matthias Kaehlcke --- Dependencies (from brooni

[PATCH v2] acpi, nfit: kill ACPI_NFIT_DEBUG

2017-04-28 Thread Dan Williams
Inevitably when one actually needs to debug a DSM issue it's on a distribution kernel that has CONFIG_ACPI_NFIT_DEBUG=n. The config symbol was only there to avoid the compile error due to the missing fallback for print_hex_dump_debug in the CONFIG_DYNAMIC_DEBUG=n case. That was fixed with commit cd

[GIT PULL] clk fixes for v4.11-rc8

2017-04-28 Thread Stephen Boyd
The following changes since commit e7590308d17e578e47f298cc3fec359108341cb6: Merge tag 'sunxi-clk-fixes-for-4.11-2-bis' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-fixes (2017-04-17 11:04:12 -0700) are available in the git repository at: git://git.kernel.org/pub

Re: [PATCH 1/2] wcn36xx: Pass used skb to ieee80211_tx_status()

2017-04-28 Thread Bjorn Andersson
On Thu 27 Apr 01:22 PDT 2017, Johannes Berg wrote: > > > @@ -371,7 +371,7 @@ static void reap_tx_dxes(struct wcn36xx *wcn, > > struct wcn36xx_dxe_ch *ch) > >   info = IEEE80211_SKB_CB(ctl->skb); > >   if (!(info->flags & > > IEEE80211_TX_CTL_REQ_TX_STATUS)) { >

Re: [PATCH 00/14] sched/topology fixes

2017-04-28 Thread Lauro Venancio
On 04/28/2017 10:53 AM, Peter Zijlstra wrote: > On Fri, Apr 28, 2017 at 03:19:58PM +0200, Peter Zijlstra wrote: >> Hi, >> >> These patches are based upon the hard work of Lauro. He put in the time and >> effort to understand and debug the code. >> >> So while I didn't take many of his actual patche

Re: [PATCH 0/3] dynamic_hex_dump cleanup

2017-04-28 Thread Dan Williams
On Fri, Apr 28, 2017 at 4:04 PM, Joe Perches wrote: > On Fri, 2017-04-28 at 15:59 -0700, Dan Williams wrote: >> ...but again, hex_dump_dbg() implies to me dev_dbg() behavior, i.e. >> that the hexdump happens in the KERN_DEBUG case > > I think you are confusing KERN_DEBUG, a logging level, with a >

Re: [PATCH 0/3] dynamic_hex_dump cleanup

2017-04-28 Thread Joe Perches
On Fri, 2017-04-28 at 15:59 -0700, Dan Williams wrote: > ...but again, hex_dump_dbg() implies to me dev_dbg() behavior, i.e. > that the hexdump happens in the KERN_DEBUG case I think you are confusing KERN_DEBUG, a logging level, with a preprocessor #define of DEBUG. > which I don't want. I > wa

Re: [PATCH v3 0/3] Handle memmap and mem kernel options in boot stage kaslr

2017-04-28 Thread Baoquan He
On 04/27/17 at 03:57pm, YASUAKI ISHIMATSU wrote: > Hi Baoquan, > > > On 04/26/2017 06:16 AM, Baoquan He wrote: > > People reported kernel panic occurs during system boots up with mem boot > > option. > > After checking code, several problems are found about memmap= and mem= in > > boot stage >

Re: [PATCH 2/2] iommu/s390: Add support for iommu_device handling

2017-04-28 Thread kbuild test robot
Hi Joerg, [auto build test ERROR on s390/features] [also build test ERROR on v4.11-rc8 next-20170428] [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/Joerg-Roedel/iommu-s390-Fix-iommu-groups-and

Re: [PATCH 0/3] dynamic_hex_dump cleanup

2017-04-28 Thread Dan Williams
On Fri, Apr 28, 2017 at 3:31 PM, Joe Perches wrote: > On Fri, 2017-04-28 at 15:19 -0700, Dan Williams wrote: >> On Fri, Apr 28, 2017 at 3:14 PM, Dan Williams >> wrote: >> > On Fri, Apr 28, 2017 at 3:07 PM, Joe Perches wrote: >> > > On Fri, 2017-04-28 at 14:52 -0700, Dan Williams wrote: >> > > >

Re: [PATCH v6 1/5] skbuff: return -EMSGSIZE in skb_to_sgvec to prevent overflow

2017-04-28 Thread Jason A. Donenfeld
Hi Sabrina, On Fri, Apr 28, 2017 at 6:18 PM, Sabrina Dubroca wrote: > One small thing here: since you're touching this comment, could you > move it next to skb_to_sgvec, since that's the function it's supposed > to document? Done. I'll wait until next week to resubmit, to give some more time for

[PATCH v4 1/3] drm/vc4: Turn the V3D clock on at runtime.

2017-04-28 Thread Eric Anholt
For the Raspberry Pi's bindings, the power domain also implicitly turns on the clock and deasserts reset, but for the new Cygnus port we start representing the clock in the devicetree. v2: Document the clock-names property, check for -ENOENT for no clock in DT. v3: Drop NULL checks around clk

[PATCH v4 2/3] drm/vc4: Don't try to initialize FBDEV if we're only bound to V3D.

2017-04-28 Thread Eric Anholt
The FBDEV initialization would throw an error in dmesg, when we just want to silently not initialize fbdev on a V3D-only VC4 instance. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_kms.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/v

[PATCH v4 3/3] drm/vc4: Add specific compatible strings for Cygnus.

2017-04-28 Thread Eric Anholt
Cygnus has V3D 2.6 instead of 2.1, and doesn't use the VC4 display modules. The V3D can be uniquely identified by the IDENT[01] registers, and there's nothing to key off of for the display change other than the lack of DT nodes for the display components, but it's convention to have new compatible

Re: [PATCH 1/2] libnvdimm: fix clear length of nvdimm_forget_poison()

2017-04-28 Thread Kani, Toshimitsu
On Fri, 2017-04-28 at 15:39 -0700, Dan Williams wrote: > On Fri, Apr 28, 2017 at 3:29 PM, Kani, Toshimitsu > wrote: > > On Fri, 2017-04-28 at 14:48 -0700, Dan Williams wrote: > > > On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani : > > > > > > > > -   nvdimm_forget_poison(nvdimm_bus, phys, len);

Re: [RFC PATCH 0/2] iommu/s390: Fix iommu-groups and add sysfs support

2017-04-28 Thread Joerg Roedel
Hi Gerald, On Fri, Apr 28, 2017 at 08:06:12PM +0200, Gerald Schaefer wrote: > On Fri, 28 Apr 2017 16:55:13 +0200 > Joerg Roedel wrote: > Also, IIRC, add_device will get called before attach_dev. Currently we > allow to attach more than one device (apparently from different buses) to > one domain

Re: [PATCH 1/2] libnvdimm: fix clear length of nvdimm_forget_poison()

2017-04-28 Thread Dan Williams
On Fri, Apr 28, 2017 at 3:29 PM, Kani, Toshimitsu wrote: > On Fri, 2017-04-28 at 14:48 -0700, Dan Williams wrote: >> On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani >> wrote: >> > ND_CMD_CLEAR_ERROR command returns 'clear_err.cleared', the length >> > of error actually cleared, which may be smaller t

Re: [PATCH 0/3] dynamic_hex_dump cleanup

2017-04-28 Thread Joe Perches
On Fri, 2017-04-28 at 15:19 -0700, Dan Williams wrote: > On Fri, Apr 28, 2017 at 3:14 PM, Dan Williams > wrote: > > On Fri, Apr 28, 2017 at 3:07 PM, Joe Perches wrote: > > > On Fri, 2017-04-28 at 14:52 -0700, Dan Williams wrote: > > > > On Fri, Apr 28, 2017 at 2:49 PM, Joe Perches wrote: > > >

Re: [RFC PATCH 0/2] iommu/s390: Fix iommu-groups and add sysfs support

2017-04-28 Thread Joerg Roedel
On Fri, Apr 28, 2017 at 05:25:20PM +0200, Sebastian Ott wrote: > On Fri, 28 Apr 2017, Joerg Roedel wrote: > > That sounds special :) So will every function of a single device end up > > as a seperate device on a seperate root-bus? > > Yes. That's true even for multi-function and SRIOV. Okay, so i

Re: [PATCH 1/2] libnvdimm: fix clear length of nvdimm_forget_poison()

2017-04-28 Thread Kani, Toshimitsu
On Fri, 2017-04-28 at 14:48 -0700, Dan Williams wrote: > On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani > wrote: > > ND_CMD_CLEAR_ERROR command returns 'clear_err.cleared', the length > > of error actually cleared, which may be smaller than its requested > > 'len'. > > > > Change nvdimm_clear_poison

[PATCH v3 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT.

2017-04-28 Thread Eric Anholt
Cygnus has a single amac controller connected to the B53 switch with 2 PHYs. On the BCM911360_EP platform, those two PHYs are connected to the external ethernet jacks. v2: Call the node "switch", just call the ports "port" (suggestions by Florian), drop max-speed on the phys (suggestion by An

[PATCH v3 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360.

2017-04-28 Thread Eric Anholt
Cygnus is a small family of SoCs, of which we currently have devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the same as 58xx, just requiring a tiny bit of setup that was previously missing. v2: Reorder the entry in the docs (suggestion by Scott Branden), add missing '"' Sign

Re: [PATCH 0/3] dynamic_hex_dump cleanup

2017-04-28 Thread Dan Williams
On Fri, Apr 28, 2017 at 3:14 PM, Dan Williams wrote: > On Fri, Apr 28, 2017 at 3:07 PM, Joe Perches wrote: >> On Fri, 2017-04-28 at 14:52 -0700, Dan Williams wrote: >>> On Fri, Apr 28, 2017 at 2:49 PM, Joe Perches wrote: >>> > On Fri, 2017-04-28 at 14:28 -0700, Dan Williams wrote: >>> > > More t

[PATCH RESEND] fs: compat: Remove warning from COMPATIBLE_IOCTL

2017-04-28 Thread Matthias Kaehlcke
From: Mark Charlebois cmd in COMPATIBLE_IOCTL is always a u32, so cast it so there isn't a warning about an overflow in XFORM. From: Mark Charlebois Signed-off-by: Mark Charlebois Signed-off-by: Behan Webster Signed-off-by: Matthias Kaehlcke Acked-by: Arnd Bergmann --- fs/compat_ioctl.c |

Re: [PATCH] platform/x86: Make SILEAD_DMI depend on TOUCHSCREEN_SILEAD

2017-04-28 Thread Darren Hart
On Fri, Apr 28, 2017 at 02:09:00PM -0700, Dmitry Torokhov wrote: > On Fri, Apr 28, 2017 at 02:00:19PM -0700, Darren Hart (VMware) wrote: > > SILEAD_DMI provides platform specific data for the TOUCHSCREEN_SILEAD > > driver. Make this explicitly clear in the Kconfig depends. > > > > Signed-off-by: D

Re: [PATCH 0/3] dynamic_hex_dump cleanup

2017-04-28 Thread Dan Williams
On Fri, Apr 28, 2017 at 3:07 PM, Joe Perches wrote: > On Fri, 2017-04-28 at 14:52 -0700, Dan Williams wrote: >> On Fri, Apr 28, 2017 at 2:49 PM, Joe Perches wrote: >> > On Fri, 2017-04-28 at 14:28 -0700, Dan Williams wrote: >> > > More than one driver has worked around the fact that >> > > print_

Re: [PATCH 0/3] dynamic_hex_dump cleanup

2017-04-28 Thread Joe Perches
On Fri, 2017-04-28 at 14:52 -0700, Dan Williams wrote: > On Fri, Apr 28, 2017 at 2:49 PM, Joe Perches wrote: > > On Fri, 2017-04-28 at 14:28 -0700, Dan Williams wrote: > > > More than one driver has worked around the fact that > > > print_hex_dump_debug() requires CONFIG_DYNAMIC_DEBUG=y to build.

Re: [PATCH] cgroup: avoid attaching a cgroup root to two different superblocks, take 2

2017-04-28 Thread Tejun Heo
On Wed, Apr 19, 2017 at 10:15:59AM +0800, Zefan Li wrote: > Commit bfb0b80db5f9 is broken. Now we try to fix the race by delaying > the initialization of cgroup root refcnt until a superblock has been > allocated. > > Cc: sta...@vger.kernel.org # 3.16+ > Reported-by: Dmitry Vyukov > Reported-by: A

Re: [PATCH V2] x86/tboot: add an option to disable iommu force on

2017-04-28 Thread Joerg Roedel
Hi Ingo, On Thu, Apr 27, 2017 at 08:52:53AM +0200, Ingo Molnar wrote: > > Applied, thanks. > > Please don't apply it yet, I posted a few review questions. Are your questions answered with the replies by me and Shaohua? Joerg

Re: [PATCH v2] sched/fair: update scale invariance of PELT

2017-04-28 Thread Peter Zijlstra
On Mon, Apr 10, 2017 at 11:18:29AM +0200, Vincent Guittot wrote: > +++ b/include/linux/sched.h > @@ -313,6 +313,7 @@ struct load_weight { > */ > struct sched_avg { > u64 last_update_time; > + u64 stolen_idle_time; > u64

Re: sun50i-a64-pinctrl WARN_ON drivers/base/dd.c:349

2017-04-28 Thread Tejun Heo
Hello, On Tue, Apr 18, 2017 at 10:12:16AM +0100, Andre Przywara wrote: > Yeah, so I stack-dumped on the zero allocations and indeed they are > called from cleanup functions: > drivers/pinctrl/pinmux.c:pinmux_generic_free_functions(): > devm_kzalloc(sizeof(*indices) * pctldev->num_functions,

Re: [PATCH v4] Input: psxpad-spi - Add PSX (Play Station 1/2) pad SPI driver

2017-04-28 Thread Cameron Gutman
On 04/27/2017 07:31 PM, Tomohiro Yoshidomi wrote: > PSX pads can be connected directly to the SPI bus. > > Signed-off-by: Tomohiro Yoshidomi > --- > drivers/input/joystick/Kconfig | 17 ++ > drivers/input/joystick/Makefile | 1 + > drivers/input/joystick/psxpad-spi.c | 564 > +++

Re: [PATCH v8 05/10] media: venus: adding core part and helper functions

2017-04-28 Thread Jordan Crouse
On Fri, Apr 28, 2017 at 12:13:52PM +0300, Stanimir Varbanov wrote: > +int venus_boot(struct device *parent, struct device *fw_dev) > +{ > + const struct firmware *mdt; > + phys_addr_t mem_phys; > + ssize_t fw_size; > + size_t mem_size; > + void *mem_va; > + int ret; > + > +

Re: [PATCH 0/3] SATA: Fine-tuning for two function implementations

2017-04-28 Thread Tejun Heo
Hello, On Tue, Apr 18, 2017 at 10:00:37PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 18 Apr 2017 21:54:32 +0200 > > A few update suggestions were taken into account > from static source code analysis. Hmmm, allocs -> callocs. Are these actually beneficial? If so, why?

Re: [PATCH 0/3] dynamic_hex_dump cleanup

2017-04-28 Thread Dan Williams
On Fri, Apr 28, 2017 at 2:49 PM, Joe Perches wrote: > On Fri, 2017-04-28 at 14:28 -0700, Dan Williams wrote: >> More than one driver has worked around the fact that >> print_hex_dump_debug() requires CONFIG_DYNAMIC_DEBUG=y to build. > > No it doesn't. builds work fine. Output is restricted. > >>

Re: [PATCH RFC tip/core/rcu] Make SRCU be once again optional

2017-04-28 Thread Nicolas Pitre
On Fri, 28 Apr 2017, Paul E. McKenney wrote: > Hello, Nicolas! > > Saw the TTY write up LWN and figured I should send this your way. > It should be worth about 2K compared to current -next, which gave > up the 2K compared to v4.10. So really getting things back to where > they were. > > My curr

Re: [PATCH 0/3] dynamic_hex_dump cleanup

2017-04-28 Thread Joe Perches
On Fri, 2017-04-28 at 14:28 -0700, Dan Williams wrote: > More than one driver has worked around the fact that > print_hex_dump_debug() requires CONFIG_DYNAMIC_DEBUG=y to build. No it doesn't. builds work fine. Output is restricted. > Provide a dynamic_hex_dump() so that drivers that want the ex

Re: [PATCH 1/2] libnvdimm: fix clear length of nvdimm_forget_poison()

2017-04-28 Thread Dan Williams
On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani wrote: > ND_CMD_CLEAR_ERROR command returns 'clear_err.cleared', the length > of error actually cleared, which may be smaller than its requested > 'len'. > > Change nvdimm_clear_poison() to call nvdimm_forget_poison() with > 'clear_err.cleared' when this

Re: [PATCH 1/3 v3] drm/vc4: Turn the V3D clock on at runtime.

2017-04-28 Thread Eric Anholt
Rob Herring writes: > On Mon, Apr 24, 2017 at 01:12:09PM -0700, Eric Anholt wrote: >> For the Raspberry Pi's bindings, the power domain also implicitly >> turns on the clock and deasserts reset, but for the new Cygnus port we >> start representing the clock in the devicetree. >> >> v2: Document

[PATCH 2/3] virtio, rpmsg: switch to dynamic_hex_dump()

2017-04-28 Thread Dan Williams
Now that dynamic_hex_dump() has a fallback in the CONFIG_DYNAMIC_DEBUG=n case we can kill the unnecessary ifdefs in the rpmsg driver. Cc: Ohad Ben-Cohen Cc: Bjorn Andersson Signed-off-by: Dan Williams --- drivers/rpmsg/virtio_rpmsg_bus.c |6 -- 1 file changed, 6 deletions(-) diff --gi

[PATCH 3/3] acpi, nfit: kill ACPI_NFIT_DEBUG, switch to dynamic_hex_dump()

2017-04-28 Thread Dan Williams
Inevitably when one actually needs to debug a DSM issue it's on a distribution kernel that has CONFIG_ACPI_NFIT_DEBUG=n. The config symbol is only there to avoid the compile error due to the missing fallback for print_hex_dump_debug in the CONFIG_DYNAMIC_DEBUG=n case. Now that the compile error is

[PATCH 1/3] printk: provide generic dynamic_hex_dump fallback

2017-04-28 Thread Dan Williams
The lack of a silent fallback for this routine has caused the nfit driver and the virtio_rpmsg_bus to develop local workarounds. Define a nop version of dynamic_hex_dump() in the CONFIG_DYNAMIC_DEBUG=n case so we can clean up those local workarounds. Cc: Jason Baron Cc: Ohad Ben-Cohen Cc: Bjorn

[PATCH 0/3] dynamic_hex_dump cleanup

2017-04-28 Thread Dan Williams
More than one driver has worked around the fact that print_hex_dump_debug() requires CONFIG_DYNAMIC_DEBUG=y to build. Provide a dynamic_hex_dump() so that drivers that want the extra debugging to be turned off in the CONFIG_DYNAMIC_DEBUG=n can use dynamic_hex_dump() directly. I'm fine to carry thi

Re: [PATCH v4 05/21] lib: fix Devres devm_ioremap_* offset parameter kerneldoc description

2017-04-28 Thread Tejun Heo
On Wed, Apr 19, 2017 at 05:48:54PM +0100, Lorenzo Pieralisi wrote: > The offset parameter in Devres devm_ioremap_* functions kerneldoc > entries is erroneously defined as BUS offset whereas it is actually > a resource address. > > Since it is actually misleading, fix the Devres devm_ioremap_* offs

Re: [PATCH 2/2] of: fix unittest build without CONFIG_OF_OVERLAY

2017-04-28 Thread Rob Herring
On Fri, Apr 28, 2017 at 08:40:50AM -0700, Frank Rowand wrote: > On 04/28/17 02:44, Arnd Bergmann wrote: > > We get a link error when the new tests are used by overlays > > are not: > > > > drivers/of/built-in.o: In function `unflatten_device_tree': > > (.init.text+0x967): undefined reference to `u

[PATCH RFC tip/core/rcu] Make SRCU be once again optional

2017-04-28 Thread Paul E. McKenney
Hello, Nicolas! Saw the TTY write up LWN and figured I should send this your way. It should be worth about 2K compared to current -next, which gave up the 2K compared to v4.10. So really getting things back to where they were. My current plan is to push this into v4.13.

Re: [PATCH v1 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-04-28 Thread Rob Herring
On Fri, Apr 28, 2017 at 05:10:34PM +0800, Ryder Lee wrote: > Add binding document for Mediatek PCIe Gen2 v1 host controller driver. > > Signed-off-by: Ryder Lee > --- > .../bindings/pci/mediatek,gen2v1-pcie.txt | 174 > + > 1 file changed, 174 insertions(+) > creat

Re: [PATCH] platform/x86: Make SILEAD_DMI depend on TOUCHSCREEN_SILEAD

2017-04-28 Thread Dmitry Torokhov
On Fri, Apr 28, 2017 at 02:00:19PM -0700, Darren Hart (VMware) wrote: > SILEAD_DMI provides platform specific data for the TOUCHSCREEN_SILEAD > driver. Make this explicitly clear in the Kconfig depends. > > Signed-off-by: Darren Hart (VMware) > Cc: Hans de Goede > Cc: Andy Shevchenko > Cc: Jean

Re: [PATCH] checkpatch: don't encourage new code to use "networking" style comments

2017-04-28 Thread Joe Perches
On Fri, 2017-04-28 at 12:51 -0700, Brian Norris wrote: > FWIW, I don't see this consistently applied at all. Unless my regexes > are completely wrong [*], it's roughly 50/50 in drivers/net/ and net/, > and roughly 40/60 (favoring "net" style) in net/core/. More like 5:1 in net/ $ git grep -E -n "

Re: [PATCH 2/5] x86_64: inline copy_page() at call site

2017-04-28 Thread Borislav Petkov
On Wed, Apr 26, 2017 at 09:28:06PM +0300, Alexey Dobriyan wrote: > Avoid unconditional branch at every copy_page() call by using > alternatives and calling optimal variant directly. > > Rename individual versions to immediately show which one is used in > profiles, etc. > > RBX and R12 aren't clo

Re: [PATCH v5 04/10] dt-bindings: pinctrl: Add RZ/A1 bindings doc

2017-04-28 Thread Rob Herring
On Thu, Apr 27, 2017 at 10:19:48AM +0200, Jacopo Mondi wrote: > Add device tree bindings documentation for Renesas RZ/A1 gpio and pin > controller. > > Signed-off-by: Jacopo Mondi > --- > .../bindings/pinctrl/renesas,rza1-pinctrl.txt | 219 > + > 1 file changed, 219 ins

Re: [PATCH v3 2/4] ACPICA: Tables: Add mechanism to allow to balance late stage acpi_get_table() independently

2017-04-28 Thread Rafael J. Wysocki
On Friday, April 28, 2017 01:30:20 PM Lv Zheng wrote: > For all frequent late stage acpi_get_table() clone invocations, we should > only fix them altogether, otherwise, excessive acpi_put_table() could > unexpectedly unmap the table used by the other users. Thus the current plan > is to fix all acp

[PATCH] platform/x86: Make SILEAD_DMI depend on TOUCHSCREEN_SILEAD

2017-04-28 Thread Darren Hart (VMware)
SILEAD_DMI provides platform specific data for the TOUCHSCREEN_SILEAD driver. Make this explicitly clear in the Kconfig depends. Signed-off-by: Darren Hart (VMware) Cc: Hans de Goede Cc: Andy Shevchenko Cc: Jean Delvare Cc: Dmitry Torokhov --- drivers/platform/x86/Kconfig | 2 +- 1 file chan

Re: [PATCH v3 1/2] ASoC: stm32: add bindings for SAI

2017-04-28 Thread Rob Herring
On Mon, Apr 10, 2017 at 05:19:55PM +0200, olivier moysan wrote: > This patch adds documentation of device tree bindings for the > STM32 SAI ASoC driver. > > Signed-off-by: olivier moysan > --- > .../devicetree/bindings/sound/st,stm32-sai.txt | 89 > ++ > 1 file changed,

Re: [PATCH v5 02/10] irqchip/sunxi-nmi: add A64 R_INTC to the binding doc

2017-04-28 Thread Rob Herring
On Wed, Apr 26, 2017 at 11:20:15PM +0800, Icenowy Zheng wrote: > The A31 NMI driver seems to be using wrong base address. > > As we're going to convert to use a correct NMI base address (and > correctly name it to R_INTC as the datasheet suggests), add a new > compatible string for the "correct" R

  1   2   3   4   5   6   7   8   >