[PATCH v2 0/2] HID: hiddev: move hiddev's minor number and refactoring

2017-03-03 Thread Jaejoong Kim
Hi all, I found hiddev's minor number is always zero in struct hid_device. So, store the minor number asked from usb core in struct hid_device. This is my first approach. But after reviewed from Bendjamin, he suggested that it would make sense to store a minor number in struct hid

[Patch v2 10/11] s5p-mfc: Add support for HEVC encoder

2017-03-03 Thread Smitha T Murthy
Add HEVC encoder support and necessary registers, V4L2 CIDs, and hevc encoder parameters Signed-off-by: Smitha T Murthy --- drivers/media/platform/s5p-mfc/regs-mfc-v10.h | 28 +- drivers/media/platform/s5p-mfc/s5p_mfc.c|1 + drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c |3

[Patch v2 01/11] s5p-mfc: Rename IS_MFCV8 macro

2017-03-03 Thread Smitha T Murthy
This patch renames macro IS_MFCV8 to IS_MFCV8_PLUS so that the MFCv8 code can be resued for MFCv10.10 support. Since the MFCv8 specific code holds good for MFC v10.10 also. Signed-off-by: Smitha T Murthy Acked-by: Andrzej Hajda --- drivers/media/platform/s5p-mfc/s5p_mfc_common.h |2 +- driv

Re: [PATCH] usb: dwc2: Make sure we disconnect the gadget state

2017-03-03 Thread Sergei Shtylyov
Hello! On 3/3/2017 2:36 AM, John Stultz wrote: I had seen some odd behavior with HiKey's usb-gadget interface that I finally seemed to have chased down. Basically every other time I pluged in the OTG port, the gadget interface would Plugged. Perhaps could be fixed while applying... prope

[PATCH 2/2] fs, ceph: convert ceph_cap_snap.nref from atomic_t to refcount_t

2017-03-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: [PATCH 1/3] firmware: dmi_scan: Add dmi_product_name kernel cmdline option

2017-03-03 Thread Jean Delvare
Hi Hans, On Sat, 25 Feb 2017 18:23:55 +0100, Hans de Goede wrote: > Unfortunately some firmware has all the DMI strings filled with: > "Default String" (or something equally useless). This makes it impossible > to apply DMI based quirks to certain machines. Sad but true :-( > This commit adds a

[PATCH v2 2/2] HID: hiddev: reallocate hiddev's minor number

2017-03-03 Thread Jaejoong Kim
We need to store the minor number each drivers. In case of hidraw, the minor number is stored stores in struct hidraw. But hiddev's minor is located in struct hid_device. The hid-core driver announces a kernel message which driver is loaded when HID device connected, but hiddev's minor number is a

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2017-03-03 Thread Arnd Bergmann
On Fri, Mar 3, 2017 at 12:05 AM, Josh Poimboeuf wrote: > I assume '-Wdiv-by-zero' is enabled and gcc isn't showing the "division > by zero" warning for either of these? The 'ud2' is guaranteed to > trigger since the function has no branches. Surely at least the missing > warning is a gcc bug. >

[PATCH v2 5/5] staging: rtl8712: Remove unnecessary cast on void pointer

2017-03-03 Thread simran singhal
The following Coccinelle script was used to detect this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Signed-off-by: simran singhal --- v2: -Moved pcontext to the previous line drivers/staging/rtl8712/rtl8712_recv.c | 11

[PATCH 08/17] fs, btrfs: convert btrfs_delayed_item.refs from atomic_t to refcount_t

2017-03-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: [PATCH] blk: improve order of bio handling in generic_make_request()

2017-03-03 Thread Jack Wang
On 03.03.2017 06:14, NeilBrown wrote: > > [ Hi Jens, > you might have seen assorted email threads recently about > deadlocks, particular in dm-snap or md/raid1/10. Also about > the excess of rescuer threads. > I think a big part of the problem is my ancient improvement > to generic_ma

Re: [PATCH v5 06/13] lockdep: Implement crossrelease feature

2017-03-03 Thread Peter Zijlstra
On Fri, Mar 03, 2017 at 10:13:38AM +0100, Peter Zijlstra wrote: > On Fri, Mar 03, 2017 at 09:14:16AM +0100, Peter Zijlstra wrote: > > > That said; I'd be fairly interested in numbers on how many links this > > avoids, I'll go make a check_redundant() version of the above and put a > > proper count

[v2] mmc: sdhci-cadence: add HS400 enhanced strobe support

2017-03-03 Thread Piotr Sroka
Add support for HS400ES mode to Cadence SDHCI driver. Signed-off-by: Piotr Sroka --- Changes in v2: - Modify enhanced strobe function to handle disabling enhanced strobe inside the function. Do no relay on that mmc_set_ios() is called immediately after host->ops->hs400_enhanced_strobe(ho

Re: [PATCH v5 06/13] lockdep: Implement crossrelease feature

2017-03-03 Thread Peter Zijlstra
On Fri, Mar 03, 2017 at 09:14:16AM +0100, Peter Zijlstra wrote: > That said; I'd be fairly interested in numbers on how many links this > avoids, I'll go make a check_redundant() version of the above and put a > proper counter in so I can see what it does for a regular boot etc.. Two boots + a ma

RE: [PATCH V2] PCI/ASPM: reconfigure ASPM following hotplug for POLICY_DEFAULT

2017-03-03 Thread Patel, Mayurkumar
Hi Kaya > >Hi Mayurkumar > >On 3/2/2017 11:05 AM, Patel, Mayurkumar wrote: >>> >>> Hi Bjorn, >>> >>> On 2/28/2017 1:57 PM, Patel, Mayurkumar wrote: > I was trying to figure out when to use saved values vs. the values in > registers by looking at the enable_cnt. > enable_cnt is 0 during

Re: [PATCH -v4 00/10] FUTEX_UNLOCK_PI wobbles

2017-03-03 Thread Peter Zijlstra
On Wed, Mar 01, 2017 at 10:05:22AM +0100, Thomas Gleixner wrote: > On Wed, 22 Feb 2017, Peter Zijlstra wrote: > > On Wed, Feb 22, 2017 at 12:02:44PM +0100, Peter Zijlstra wrote: > > > OK, so after having not thought about this, and then spend the last two > > > days trying to cram all this nonsense

[PATCH] arm64: dts: rockchip: add dmac nodes for rk3368 SoCs

2017-03-03 Thread Huibin Hong
Addd dmac bus and dmac peri dts nodes for peripherals, such as I2S, SPI, UART and so on. Signed-off-by: Huibin Hong --- arch/arm64/boot/dts/rockchip/rk3368.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/a

idr: use-after-free write in ida_get_new_above

2017-03-03 Thread Dmitry Vyukov
Hello, I am hitting the following use-after-free reports while running syzkaller fuzzer on commit c82be9d2244aacea9851c86f4fb74694c99cd874: == BUG: KASAN: use-after-free in ida_get_new_above+0x564/0x9b0 lib/idr.c:295 at addr 8801

Re: [RFC PATCH v4 11/28] x86: Add support to determine the E820 type of an address

2017-03-03 Thread Borislav Petkov
On Tue, Feb 28, 2017 at 04:34:39PM -0600, Tom Lendacky wrote: > Or if we want to guard against ACPI adding a type 0 in the future, I > could make the function return an int and then return -EINVAL if an e820 > entry isn't found. This might be the better option. Yap, think so too. I don't trust sp

[PATCH net] rxrpc: Fix potential NULL-pointer exception

2017-03-03 Thread David Howells
Fix a potential NULL-pointer exception in rxrpc_do_sendmsg(). The call state check that I added should have gone into the else-body of the if-statement where we actually have a call to check. Found by CoverityScan CID#1414316 ("Dereference after null check"). Fixes: 540b1c48c37a ("rxrpc: Fix dea

Re: [PATCH v3] lockdep: Teach lockdep about memalloc_noio_save

2017-03-03 Thread Michal Hocko
On Wed 01-03-17 17:18:54, Michal Hocko wrote: > On Wed 01-03-17 17:12:20, Peter Zijlstra wrote: > > On Wed, Mar 01, 2017 at 05:05:30PM +0100, Michal Hocko wrote: > > > Anyway, does the following help? > > > > > diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c > > > index 47e4f82380

[PATCH 14/17] fs, btrfs: convert scrub_block.refs from atomic_t to refcount_t

2017-03-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: [PATCH v3 1/6] dt-bindings: iio: introduce trigger providers, consumers

2017-03-03 Thread Fabrice Gasnier
On 03/03/2017 07:21 AM, Rob Herring wrote: On Tue, Feb 28, 2017 at 05:51:14PM +0100, Fabrice Gasnier wrote: Document iio provider and consumer bindings. Signed-off-by: Fabrice Gasnier --- .../devicetree/bindings/iio/iio-bindings.txt | 38 ++ 1 file changed, 38 insert

[PATCH 13/17] fs, btrfs: convert scrub_page.refs from atomic_t to refcount_t

2017-03-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: [PATCH 2/2] drivers: pwm: pwm-atmel: enable pwm on sama5d2

2017-03-03 Thread m18063
Hi, On 03.03.2017 08:21, Rob Herring wrote: > On Tue, Feb 28, 2017 at 12:40:15PM +0200, Claudiu Beznea wrote: >> sama5d2 can use the same atmel_pwm_data as sama5d3. >> >> Signed-off-by: Claudiu Beznea >> --- >> Documentation/devicetree/bindings/pwm/atmel-pwm.txt | 1 + >> drivers/pwm/pwm-atmel.

Re: [PATCH] [v2] scsi: qedi: fix build error without DEBUG_FS

2017-03-03 Thread Rangankar, Manish
On 02/03/17 8:28 PM, "Arnd Bergmann" wrote: >Without CONFIG_DEBUG_FS, we run into a link error: > >drivers/scsi/qedi/qedi_iscsi.o: In function `qedi_ep_poll': >qedi_iscsi.c:(.text.qedi_ep_poll+0x134): undefined reference to >`do_not_recover' >drivers/scsi/qedi/qedi_iscsi.o: In function `qedi_ep_

Re: [RFC PATCH 06/12] staging: android: ion: Remove crufty cache support

2017-03-03 Thread Daniel Vetter
On Thu, Mar 02, 2017 at 01:44:38PM -0800, Laura Abbott wrote: > > > Now that we call dma_map in the dma_buf API callbacks there is no need > to use the existing cache APIs. Remove the sync ioctl and the existing > bad dma_sync calls. Explicit caching can be handled with the dma_buf > sync API. >

Re: [PATCH v9 08/11] cryptouser.h: fix include from userland

2017-03-03 Thread Herbert Xu
On Thu, Mar 02, 2017 at 05:56:39PM +0100, Nicolas Dichtel wrote: > This patch prepares the uapi export by fixing the following error: > > .../linux/cryptouser.h:58:16: error: ‘CRYPTO_MAX_ALG_NAME’ undeclared here > (not in a function) > char cru_name[CRYPTO_MAX_ALG_NAME]; > > Signed-off-by: Ni

Re: XTS Crypto Not Found In /proc/crypto Even After Compiled for 4.10.1.

2017-03-03 Thread Herbert Xu
On Fri, Mar 03, 2017 at 03:00:26AM -0600, Nathan Royce wrote: > OK, I went ahead and enabled self tests > "CRYPTO_MANAGER_DISABLE_TESTS=n", and my system was able to boot, > albeit with failures: > * > Mar 02 23:14:38 server kernel: ---[ end trace 1c8a91f28cbcebf3 ]--- > Mar 02 23:14:38 server

[PATCH v2 3/3] ARM: dts: bcm5301x: Add I2C support to the DT

2017-03-03 Thread Jon Mason
From: Jon Mason Add I2C support to the bcm5301x Device Tree. Since no driver changes are needed to enable this hardware, only the device tree changes are required to make this functional. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm5301x.dtsi | 9 + 1 file changed, 9 insertions(

Re: [PATCH 1/2] nvmem: Add driver for the i.MX IIM

2017-03-03 Thread Srinivas Kandagatla
On 13/02/17 15:31, Sascha Hauer wrote: From: Michael Grzeschik This adds a readonly nvmem driver for the i.MX IC Identification Module (IIM). The IIM is found on the older i.MX SoCs like the i.MX25, i.MX27, i.MX31, i.MX35, i.MX51 and the i.MX53. The IIM can control up to 8 fuse banks with 25

[RFC PATCH 2/2] drm/meson: Add RST to bring together kerneldoc

2017-03-03 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- Documentation/gpu/index.rst | 1 + Documentation/gpu/meson.rst | 61 + 2 files changed, 62 insertions(+) create mode 100644 Documentation/gpu/meson.rst diff --git a/Documentation/gpu/index.rst b/Documentation/gpu/ind

[RFC PATCH 0/2] drm/meson: RST Documentation

2017-03-03 Thread Neil Armstrong
To be aligned with the other DRM drivers, this patchset converts the actual drivers documentation to RST format, adds a top RTS meson file and adds an entry in the gpu/index.rst file. This patchser depends on the HDMI patchset at [1] Sample output can be found at [2] [2] http://people.freedeskto

[RFC PATCH 1/2] drm/meson: Convert existing documentation to actual kerneldoc

2017-03-03 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_canvas.c | 4 +++- drivers/gpu/drm/meson/meson_drv.c | 5 +++-- drivers/gpu/drm/meson/meson_dw_hdmi.c | 25 + drivers/gpu/drm/meson/meson_vclk.c| 22 +++--- drivers/gpu/drm/meson/meson

Re: [Regression] Changes to i2c-piix4.c initialisation prevent loading of sp5100_tco watchdog driver on AMD SB800 chipset

2017-03-03 Thread Wolfram Sang
> Unfortunately, commit 2fee61d22e (i2c: piix4: Add support for > multiplexed main adapter in SB800) [1] caused a regression. Tim > reported that to the Linux Kernel Bugtracker as bug #170741 last > September [2], but it looks like the affected subsystems don’t use it. Jean Delvare pointed out th

Re: [PATCH/RFC] arm64: pmu: add Qualcomm Technologies extensions

2017-03-03 Thread Marc Zyngier
On Thu, Mar 02 2017 at 7:30:53 pm GMT, "Leeder, Neil" wrote: > Hi Mark Z., > > On 3/2/2017 4:05 AM, Marc Zyngier wrote: >> On 01/03/17 21:36, Leeder, Neil wrote: >>> On 3/1/2017 1:10 PM, Mark Rutland wrote: KVM already has (architected) PMU support, and without a corresponding KVM patc

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-03 Thread Enric Balletbo Serra
2017-03-03 8:29 GMT+01:00 Mats Karrman : > On 2017-03-03 04:13, Guenter Roeck wrote: > >> On 03/02/2017 07:22 AM, Mats Karrman wrote: >>> >>> >>> Looking forward, one thing I have run into is how to connect the typec >>> driver with a >>> driver for an alternate mode. E.g. the DisplayPort Alte

Re: [PATCH 3/3] nvmem: core: Allow allocating several anonymous nvmem devices

2017-03-03 Thread Srinivas Kandagatla
On 02/03/17 19:50, Alban wrote: Currently the nvmem core expect the config to provide a name and ID that are then used to create the device name. When no device name is given 'nvmem' is used. However if there is several such anonymous devices they all get named 'nvmem0', which doesn't work. To

net/kcm: use-after-free in kcm_wq

2017-03-03 Thread Dmitry Vyukov
Hello, I am getting the following use-after-free reports while running syzkaller fuzzer on 86292b33d4b79ee03e2f43ea0381ef85f077c760. Seems that work items are not properly cancelled. == BUG: KASAN: use-after-free in worker_thread+0x1

Re: [PATCH] USB: misc: ldusb: Fixed coding style issues

2017-03-03 Thread Milian Reichardt
Am Freitag, den 03.03.2017, 07:24 +0100 schrieb Greg KH: > Please be specific as to exactly what issues you are fixing up.  And > don't do multiple things in the same patch, each different thing > needs > to be broken up into an individual patch. Thanks for the feedback. I'll brake things up in di

[Patch v2 00/11] Add MFC v10.10 support

2017-03-03 Thread Smitha T Murthy
This patch series adds MFC v10.10 support. MFC v10.10 is used in some of Exynos7 variants. This adds support for following: * Add support for HEVC encoder and decoder * Add support for VP9 decoder * Update Documentation for control id definitions * Update computation of min scratch buffer size re

[Patch v2 04/11] s5p-mfc: Support MFCv10.10 buffer requirements

2017-03-03 Thread Smitha T Murthy
Aligning the luma_dpb_size, chroma_dpb_size, mv_size and me_buffer_size for MFCv10.10. Signed-off-by: Smitha T Murthy --- drivers/media/platform/s5p-mfc/regs-mfc-v10.h | 19 + drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c | 99 ++- drivers/media/platform/s5p-mfc/s

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-03 Thread Peter Chen
On Thu, Mar 02, 2017 at 08:29:07PM -0800, Guenter Roeck wrote: > On 03/02/2017 07:35 PM, Peter Chen wrote: > >On Tue, Feb 21, 2017 at 05:24:04PM +0300, Heikki Krogerus wrote: > >>+/* --- */ > >>+/* Driver callbacks to report role updates */ > >>+ > >>+/** > >>+ *

Re: [PATCH v3 1/6] dt-bindings: iio: introduce trigger providers, consumers

2017-03-03 Thread Rob Herring
On Tue, Feb 28, 2017 at 05:51:14PM +0100, Fabrice Gasnier wrote: > Document iio provider and consumer bindings. > > Signed-off-by: Fabrice Gasnier > --- > .../devicetree/bindings/iio/iio-bindings.txt | 38 > ++ > 1 file changed, 38 insertions(+) > > diff --git a/Docum

[xfrm] xfrm: Added the auth and enc update support in "state update"

2017-03-03 Thread trajaraman
From: Thiruvadi rajaraman Updated the xfrm state update process to update the Authendication and Encryption keys. Signed-off-by: Thiruvadi rajaraman --- net/xfrm/xfrm_state.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 419bf5d..

[PATCH] scsi: sr: fix oob access in get_capabilities

2017-03-03 Thread Kefeng Wang
'n = header_length + block_descriptor_length' could be greater than 512, and will lead to oob access, so enlarge transfer buffer to fix it. === BUG: KASAN: slab-out-of-bounds in sr_probe+0x570/0xcc0 at addr 8809020e Read of size 1 by task kworker/u48:2/188 Signed-off-by: Kefeng Wang ---

Re: [PATCH 3/4] thp: fix MADV_DONTNEED vs. MADV_FREE race

2017-03-03 Thread Kirill A. Shutemov
On Fri, Mar 03, 2017 at 01:35:11PM +0800, Hillf Danton wrote: > > On March 02, 2017 11:11 PM Kirill A. Shutemov wrote: > > > > Basically the same race as with numa balancing in change_huge_pmd(), but > > a bit simpler to mitigate: we don't need to preserve dirty/young flags > > here due to MADV_

[PATCH 1/2] fs, ceph: convert ceph_mds_session.s_ref from atomic_t to refcount_t

2017-03-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: [PATCH v5 2/3] nvmem: sunxi-sid: add support for H3's SID controller

2017-03-03 Thread Srinivas Kandagatla
On 27/02/17 19:27, Icenowy Zheng wrote: The H3 SoC have a bigger SID controller, which has its direct read address at 0x200 position in the SID block, not 0x0. Also, H3 SID controller has some silicon bug that makes the direct read value wrong at cold boot, add code to workaround the bug. (Thi

Re: [RFC PATCH 07/12] staging: android: ion: Remove old platform support

2017-03-03 Thread Daniel Vetter
On Thu, Mar 02, 2017 at 01:44:39PM -0800, Laura Abbott wrote: > > Device specific platform support has been haphazard for Ion. There have > been several independent attempts and there are still objections to > what bindings exist right now. Just remove everything for a fresh start. > > Signed-off

[PATCH v2 4/5] staging: rts5208: Remove unnecessary cast on void pointer

2017-03-03 Thread simran singhal
The following Coccinelle script was used to detect this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Signed-off-by: simran singhal --- v2: -Moved buf to the previous line. drivers/staging/rts5208/rtsx_transport.c | 3 +--

[PATCH 11/17] fs, btrfs: convert compressed_bio.pending_bios from atomic_t to refcount_t

2017-03-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-03 Thread Daniel Vetter
On Fri, Mar 03, 2017 at 11:04:33AM +0100, Daniel Vetter wrote: > On Thu, Mar 02, 2017 at 01:44:32PM -0800, Laura Abbott wrote: > > Hi, > > > > There's been some recent discussions[1] about Ion-like frameworks. There's > > apparently interest in just keeping Ion since it works reasonablly well. > >

Re: [PATCH V2] PCI/ASPM: reconfigure ASPM following hotplug for POLICY_DEFAULT

2017-03-03 Thread okaya
On 2017-03-03 04:43, Patel, Mayurkumar wrote: Hi Kaya Hi Mayurkumar On 3/2/2017 11:05 AM, Patel, Mayurkumar wrote: Hi Bjorn, On 2/28/2017 1:57 PM, Patel, Mayurkumar wrote: I was trying to figure out when to use saved values vs. the values in registers by looking at the enable_cnt. enable

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-03 Thread Daniel Vetter
On Thu, Mar 02, 2017 at 01:44:32PM -0800, Laura Abbott wrote: > Hi, > > There's been some recent discussions[1] about Ion-like frameworks. There's > apparently interest in just keeping Ion since it works reasonablly well. > This series does what should be the final clean ups for it to possibly be

Re: [PATCH v3 03/25] dt-bindings: timer: Document Owl timer

2017-03-03 Thread Rob Herring
On Tue, Feb 28, 2017 at 12:39:08PM +, Mark Rutland wrote: > On Tue, Feb 28, 2017 at 07:35:13AM +0100, Andreas Färber wrote: > > The Actions Semi S500 SoC contains a timer block with two 2 Hz and two > > 32-bit timers. The S900 SoC timer block has four 32-bit timers. > > > > Signed-off-by: Andr

Re: [PATCH v4 09/19] scsi: csiostor: Replace PCI pool old API

2017-03-03 Thread Sergei Shtylyov
Hello! On 3/1/2017 6:55 PM, Romain Perier wrote: The PCI pool API is deprecated. This commits replaces the PCI pool old Commit. API by the appropriated function with the DMA pool API. It also updates Appropriate perhaps? the name of some variables and the content of comments, acco

Re: [PATCH 01/10] perf, tools, stat: Factor out callback for collecting event values

2017-03-03 Thread Jiri Olsa
On Tue, Feb 28, 2017 at 10:49:15PM -0800, Andi Kleen wrote: SNIP > +static void collect_data(struct perf_evsel *counter, > + void (*cb)(struct perf_evsel *counter, void *data, > +bool first), > + void *data) > +{

Re: [Cocci] [PATCH v3] Coccinelle: Script to replace allocate and memset with zalloc functions

2017-03-03 Thread SF Markus Elfring
> This script finds instances of allocate and memset which can be > replaced with a direct call to zalloc equivalent of a function. What is the software development status for this SmPL script in comparison to an other directory for source code transformations? https://git.kernel.org/cgit/linux/ke

[PATCH 1/2] arm64: RAS: add ras extension runtime detection

2017-03-03 Thread Xie XiuQi
According to <> document, we add RAS extension feature runtime detection, which would be used for error recovery in the future. Signed-off-by: Xie XiuQi Reviewed-by: Kefeng Wang --- arch/arm64/include/asm/cpucaps.h | 3 ++- arch/arm64/include/asm/sysreg.h | 2 ++ arch/arm64/kernel/cpufeature

Re: [PATCH v2 2/2] drm: bridge: Move HPD handling to PHY operations

2017-03-03 Thread Jose Abreu
Hi Neil, On 03-03-2017 09:07, Neil Armstrong wrote: > > The problem is that the HPD/RxSense is tied to this phy_mask and glued into > the > dw-hdmi driver. > > The *real* solution would be to completely separate the HPD/RxSense irq > handling to > a separate driver as a shared irq... > > If Jos

Re: XTS Crypto Not Found In /proc/crypto Even After Compiled for 4.10.1.

2017-03-03 Thread Nathan Royce
I do have ECB selected as well: DM_CRYPT=y CRYPTO_ECB=y CRYPTO_XTS=y name : ecb(aes) driver : ecb-aes-s5p module : kernel priority : 100 refcnt : 1 selftest : passed internal : no type : ablkcipher async: yes blocksize: 16 min keysize : 16

[GIT PULL] overlayfs update for 4.11

2017-03-03 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-linus Because copy up can take a long time, serialized copy ups could be a big performance bottleneck. This update allows concurrent copy up of regular files eliminating this potential problem.

[GIT PULL] fuse update for 4.11

2017-03-03 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-linus This contains a bugfix and cleanups. Thanks, Miklos --- Miklos Szeredi (3): fuse: add missing FR_FORCE fuse: cleanup fuse_file refcounting fuse: release: private_data canno

Re: [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S

2017-03-03 Thread Srinivas Kandagatla
On 01/03/17 06:40, Peng Fan wrote: Add compatible string for i.MX7D/S Signed-off-by: Peng Fan Cc: Shawn Guo Cc: Srinivas Kandagatla Cc: Maxime Ripard Cc: Rob Herring Cc: Mark Rutland --- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 + 1 file changed, 1 insertion(+) Thanks

Re: PPro arch_cpu_idle: NMI watchdog: Watchdog detected hard LOCKUP on cpu 1

2017-03-03 Thread Meelis Roos
> On Thu, 2 Mar 2017, Thomas Gleixner wrote: > > On Wed, 1 Mar 2017, Thomas Gleixner wrote: > > > On Thu, 2 Mar 2017, Meelis Roos wrote: > > > > > > > > > This is on my trusty IBM PC365, dual Pentium Pro. 4.10 worked fine, > > > > > > 4.10.0-09686-g9e314890292c and 4.10.0-10770-g2d6be4abf514 exhi

[PATCH 2/4] net: thunderx: Fix LMAC mode debug prints for QSGMII mode

2017-03-03 Thread sunil . kovvuri
From: Sunil Goutham When BGX/LMACs are in QSGMII mode, for some LMACs, mode info is not being printed. This patch will fix that. With changes already done to not do any sort of serdes 2 lane mapping config calculation in kernel driver, we can get rid of this logic. Signed-off-by: Sunil Goutham

[PATCH 1/4] net: thunderx: Fix IOMMU translation faults

2017-03-03 Thread sunil . kovvuri
From: Sunil Goutham ACPI support has been added to ARM IOMMU driver in 4.10 kernel and that has resulted in VNIC interfaces throwing translation faults when kernel is booted with ACPI as driver was not using DMA API. On T88 HW takes care of data coherency when performing DMA operations hence in

IMA on NFS deadlocks since a5864c999de670

2017-03-03 Thread Sascha Hauer
Hi All, I discovered a deadlock when IMA is used in conjunction with NFS. I booted with "ima_tcb". The deadlock happens when IMA measures the first file on a NFS. It seems the IMA measurement triggers further NFS reads and the NFS code then tries to acquire a lock it's already holding. Reading/wri

Re: net/kcm: use-after-free in kcm_wq

2017-03-03 Thread Dmitry Vyukov
On Fri, Mar 3, 2017 at 11:11 AM, Dmitry Vyukov wrote: > On Fri, Mar 3, 2017 at 11:09 AM, Dmitry Vyukov wrote: >> Hello, >> >> I am getting the following use-after-free reports while running >> syzkaller fuzzer on 86292b33d4b79ee03e2f43ea0381ef85f077c760. Seems >> that work items are not properly

Re: [RFC PATCH 04/12] staging: android: ion: Call dma_map_sg for syncing and mapping

2017-03-03 Thread Dan Carpenter
On Thu, Mar 02, 2017 at 01:44:36PM -0800, Laura Abbott wrote: > static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment > *attachment, > enum dma_data_direction direction) > { > struct dma_buf *dmabuf = attachment->dmabuf; > struct ion_

Re: [PATCH 3/4] watchodg: sama5d4: simplify probe

2017-03-03 Thread Thomas Petazzoni
Hello, On Thu, 2 Mar 2017 18:31:13 +0100, Alexandre Belloni wrote: > + irq = irq_of_parse_and_map(pdev->dev.of_node, 0); Any reason to use irq_of_parse_and_map() over the more conventional platform_get_irq() ? Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux a

Re: [PATCH] ubifs: add CONFIG_UBIFS_FS_SECURITY to disable/enable security labels

2017-03-03 Thread Hyunchul Lee
Hi, Richard On 03/03/2017 04:56 PM, Richard Weinberger wrote: > Hyunchul Lee, > > Am 03.03.2017 um 08:44 schrieb Hyunchul Lee: >> From: Hyunchul Lee >> >> When write syscall is called, every time security label is searched to >> determine that file's privileges should be changed. >> If LSM(Linux

[PATCH 0/4] net: thunderx: Miscellaneous fixes

2017-03-03 Thread sunil . kovvuri
From: Sunil Goutham This patch set fixes multiples issues such as IOMMU translation faults when kernel is booted with IOMMU enabled on host, incorrect MAC ID reading from ACPI tables and IPv6 UDP packet drop due to failure of checksum validation. Sunil Goutham (3): net: thunderx: Fix IOMMU tra

[PATCH v2] nvmem: i.MX IIM driver

2017-03-03 Thread Sascha Hauer
This adds a readonly nvmem driver for the i.MX IC Identification Module (IIM) which is found on the older i.MX SoCs. The IIM is part of the i.MX dts files for long now, but so far there is no binding document for it, so add one now. Sascha Changes since v1: - Fix unterminated array as reported b

[PATCH 2/2] mm: use is_migrate_isolate_page() to simplify the code

2017-03-03 Thread Xishi Qiu
Use is_migrate_isolate_page() to simplify the code, no functional changes. Signed-off-by: Xishi Qiu --- mm/page_isolation.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/page_isolation.c b/mm/page_isolation.c index f4e17a5..7927bbb 100644 --- a/mm/page_isolation.c

Re: [PATCH 1/2] nvmem: Add driver for the i.MX IIM

2017-03-03 Thread Sascha Hauer
On Fri, Mar 03, 2017 at 09:54:07AM +, Srinivas Kandagatla wrote: > > > On 03/03/17 09:50, Srinivas Kandagatla wrote: > > > > > > On 13/02/17 15:31, Sascha Hauer wrote: > > > From: Michael Grzeschik > > > > > > This adds a readonly nvmem driver for the i.MX IC Identification Module > > > (

[PATCH 2/2] dt-bindings: nvmem: Add i.MX IIM binding doc

2017-03-03 Thread Sascha Hauer
The IIM is part of the i.MX device trees for long already, add a binding document for it. Signed-off-by: Sascha Hauer --- .../devicetree/bindings/nvmem/imx-iim.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/i

Re: [PATCH 3/4] watchodg: sama5d4: simplify probe

2017-03-03 Thread Alexandre Belloni
On 03/03/2017 at 09:03:25 +0100, Thomas Petazzoni wrote: > On Thu, 2 Mar 2017 18:31:13 +0100, Alexandre Belloni wrote: > > > + irq = irq_of_parse_and_map(pdev->dev.of_node, 0); > > Any reason to use irq_of_parse_and_map() over the more conventional > platform_get_irq() ? > No particular reas

[PATCH 1/2] mm: use is_migrate_highatomic() to simplify the code

2017-03-03 Thread Xishi Qiu
Introduce two helpers, is_migrate_highatomic() and is_migrate_highatomic_page(). Simplify the code, no functional changes. Signed-off-by: Xishi Qiu --- include/linux/mmzone.h | 5 + mm/page_alloc.c| 14 ++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/i

Re: [PATCH v7 8/8] perf tool: add cgroup identifier entry in perf report

2017-03-03 Thread Hari Bathini
On Thursday 02 March 2017 02:46 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Feb 21, 2017 at 07:33:13PM +0530, Hari Bathini escreveu: This patch introduces a cgroup identifier entry field in perf report to identify or distinguish data of different cgroups. It uses the device number and inode nu

Re: [PATCH 2/3] mtd: Add support for reading MTD devices via the nvmem API

2017-03-03 Thread Srinivas Kandagatla
On 02/03/17 19:50, Alban wrote: Allow drivers that use the nvmem API to read data stored on MTD devices. This add a simple mtd user that register itself as a read-only nvmem device. Good stuff!! and useful for MAC addresses. Am not going to repeat the same comments as Boris, but I totally ag

[PATCH 1/3] ARC: [dts] add input clocks for cpu nodes

2017-03-03 Thread Vlad Zakharov
ARC CPU cores are driven by core_clk so we add corresponding "clocks" property to ARC cpu nodes. Signed-off-by: Vlad Zakharov --- arch/arc/boot/dts/skeleton.dtsi| 1 + arch/arc/boot/dts/skeleton_hs.dtsi | 1 + arch/arc/boot/dts/skeleton_hs_idu.dtsi | 1 + 3 files changed, 3 insertion

[PATCH 2/3] ARC: [dts] add cpu nodes to ARCHS SMP device tree

2017-03-03 Thread Vlad Zakharov
Trying to get clock for CPU cores on SMP systems I found that I was only able to get clock for core[0]. That was because only one cpu@0 node was represented in ARC HS device tree and it was impossible to get clock for "non-existing" cores. So as ARC HS may have up to 4 cores we update device tree

[PATCH 0/3] ARC: get frequency via clock driver instead of reading device tree

2017-03-03 Thread Vlad Zakharov
This patch series replaces reading device tree with getting CPU clock frequency via clock driver in show_cpuinfo function. In order to achieve this we also add cpu nodes to device tree which describes SMP system and add "clocks" properties to all ARC cpu nodes. Vlad Zakharov (3): ARC: [dts] ad

[PATCH 3/3] arc: get rate from clk driver instead of reading device tree

2017-03-03 Thread Vlad Zakharov
We were reading clock rate directly from device tree "clock-frequency" property of corresponding clock node in show_cpuinfo function. Such approach is correct only in case cpu is always clocked by "fixed-clock". If we use clock driver that allows rate to be changed this won't work as rate may chan

Re: [PATCH v4 2/2] mmc: host: s3cmci: allow probing from device tree

2017-03-03 Thread Sergio Prado
On Fri, Mar 03, 2017 at 11:14:29AM +0900, Jaehoon Chung wrote: > On 03/02/2017 10:18 AM, Sergio Prado wrote: > > Allows configuring Samsung S3C24XX MMC/SD/SDIO controller using a device > > tree. > > > > Signed-off-by: Sergio Prado > > --- > > drivers/mmc/host/s3cmci.c | 298 > > +++

Re: [PATCH 1/2] nvmem: Add driver for the i.MX IIM

2017-03-03 Thread Srinivas Kandagatla
On 03/03/17 09:50, Srinivas Kandagatla wrote: On 13/02/17 15:31, Sascha Hauer wrote: From: Michael Grzeschik This adds a readonly nvmem driver for the i.MX IC Identification Module (IIM). The IIM is found on the older i.MX SoCs like the i.MX25, i.MX27, i.MX31, i.MX35, i.MX51 and the i.MX53

Re: [media] omap3isp: Correctly set IO_OUT_SEL and VP_CLK_POL for CCP2 mode

2017-03-03 Thread kbuild test robot
Hi Pavel, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.10 next-20170303] [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/Pavel-Machek/omap3isp-Correctly-set

[PATCH v3 5/5] acpi/processor: Check for duplicate processor ids at hotplug time

2017-03-03 Thread Dou Liyang
The check for duplicate processor ids happens at boot time based on the ACPI table contents, but the final sanity checks for a processor happen at hotplug time. At hotplug time, where the physical information is available, which might differ from the ACPI table information, a check for duplicate p

Re: [PATCH v2 1/2] drm: bridge: dw-hdmi: Take input format from plat_data

2017-03-03 Thread Neil Armstrong
On 03/02/2017 04:45 PM, Laurent Pinchart wrote: > Hi Neil, > > Thank you for the patch. > > On Thursday 02 Mar 2017 16:29:31 Neil Armstrong wrote: >> Some display pipelines can only provide non-RBG input pixels to the HDMI TX >> Controller, this patch takes the pixel format from the plat_data if

[PATCH 1/2] nvmem: Add driver for the i.MX IIM

2017-03-03 Thread Sascha Hauer
From: Michael Grzeschik This adds a readonly nvmem driver for the i.MX IC Identification Module (IIM). The IIM is found on the older i.MX SoCs like the i.MX25, i.MX27, i.MX31, i.MX35, i.MX51 and the i.MX53. The IIM can control up to 8 fuse banks with 256 bit each. Not all of the banks are equipp

Re: [PATCH 0/8] Droid4 DTS update

2017-03-03 Thread Sebastian Reichel
Hi, On Wed, Mar 01, 2017 at 05:37:08PM -0800, Tony Lindgren wrote: > * Sebastian Reichel [170301 17:10]: > > Hi, > > > > Tony, since your omap4-droid4 dts patches were not > > yet in a public repository and they would merge conflict > > with my patches I put them all together into a single > > p

[PATCH v7 kernel 2/5] virtio-balloon: VIRTIO_BALLOON_F_CHUNK_TRANSFER

2017-03-03 Thread Wei Wang
From: Liang Li Add a new feature bit, VIRTIO_BALLOON_F_CHUNK_TRANSFER. Please check the implementation patch commit for details about this feature. Signed-off-by: Liang Li Signed-off-by: Wei Wang Cc: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Cornelia Huck Cc: Amit Shah Cc: Dave Hansen Cc:

[PATCH] Documentation: arm: Replace use of virt_to_phys with __pa_symbol

2017-03-03 Thread Geert Uytterhoeven
All low-level PM/SMP code using virt_to_phys() should actually use __pa_symbol() against kernel symbols. Update the documentation to move away from virt_to_phys(). Cfr. commit 6996cbb2372189f7 ("ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol") Signed-off-by: Geert Uytterhoe

[PATCH v3 1/5] staging: nvec: Remove unnecessary cast on void pointer

2017-03-03 Thread simran singhal
The following Coccinelle script was used to detect this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Signed-off-by: simran singhal --- drivers/staging/nvec/nvec_kbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[PATCH] phy: core: fix the condition to enable pm_runtime in phy_create()

2017-03-03 Thread Yoshihiro Shimoda
This patch fixes an issue that phy_create() never enables the pm_runtime. And then, we can remove calling the pm_runtime_{en,dis}able from some phy drivers. Fixes: ff764963479a ("drivers: phy: add generic PHY framework") Cc: sta...@vger.kernel.org # v3.13+ Signed-off-by: Yoshihiro Shimoda --- dr

Re: [RFC 05/11] mm: make the try_to_munlock void function

2017-03-03 Thread Anshuman Khandual
On 03/02/2017 12:09 PM, Minchan Kim wrote: > try_to_munlock returns SWAP_MLOCK if the one of VMAs mapped > the page has VM_LOCKED flag. In that time, VM set PG_mlocked to > the page if the page is not pte-mapped THP which cannot be > mlocked, either. Right. > > With that, __munlock_isolated_page

Re: [RFC PATCH 12/12] staging; android: ion: Enumerate all available heaps

2017-03-03 Thread Daniel Vetter
On Thu, Mar 02, 2017 at 01:44:44PM -0800, Laura Abbott wrote: > > Practiaclly speaking, most Ion heaps are either going to be available > all the time (system heaps) or found based off of the reserved-memory > node. Parse the CMA and reserved-memory nodes to assign the heaps. > > Signed-off-by: L

Re: [PATCH 0/4] Fix multiple checkpatch issues

2017-03-03 Thread Dan Carpenter
Looks good. Thanks. regards, dan carpenter

  1   2   3   4   5   6   7   8   >