Re: [RFC v3 09/10] iommu/arm-smmu: Implement reserved region get/put callbacks

2016-12-07 Thread Auger Eric
Hi Robin, On 07/12/2016 19:24, Robin Murphy wrote: > On 07/12/16 15:02, Auger Eric wrote: >> Hi Robin, >> On 06/12/2016 19:55, Robin Murphy wrote: >>> On 15/11/16 13:09, Eric Auger wrote: The get() populates the list with the PCI host bridge windows and the MSI IOVA range. At t

[PATCH 0/2] Determine kernel text mapping size at runtime for x86_64

2016-12-07 Thread Baoquan He
Dave Anderson ever told in Crash utility he makes judgement whether it's a kaslr kernel by size of KERNEL_IMAGE_SIZE. As long as it's 1G, it's recognized as kaslr. Then the current upstream kernel has a wrong behaviour, it sets KERNEL_IMAGE_SIZE as 1G as long as CONFIG_RANDOMIZE_BASE is enabled, th

[PATCH 2/2] x86/KASLR/64: Determine kernel text mapping size at runtime

2016-12-07 Thread Baoquan He
X86 64 kernel takes KERNEL_IMAGE_SIZE as the kernel text mapping size, and it's fixed as compiling time, changing from 512M to 1G as long as CONFIG_RANDOMIZE_BASE is enabled, though people specify kernel option "nokaslr" explicitly. This could be a wrong behaviour. CONFIG_RANDOMIZE_BASE should onl

[PATCH 1/2] x86/64: Make kernel text mapping always take one whole page table in early boot code

2016-12-07 Thread Baoquan He
In early boot code level2_kernel_pgt is used to map kernel text. And its size varies according to KERNEL_IMAGE_SIZE and fixed at compiling time. In fact we can make it always takes 512 entries of one whople page table, because later function cleanup_highmap will clean up the unused entries. With th

[PATCH] memremap: Remove unused align_* variables

2016-12-07 Thread Kirtika Ruchandani
Commit eb7d78c9e7f6 introduced align_start, align_size and align_end variables in pgmap_radix_release() but did not use them. Compiling with W=1 gives the following harmless warning, fix it to reduce the noise with W=1 in the kernel. kernel/memremap.c: In function ‘pgmap_radix_release’: kernel/mem

Re: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-12-07 Thread Auger Eric
Hi Shanker, On 07/12/2016 19:52, Shanker Donthineni wrote: > Hi Eric, > > Is there any reason why you are not supporting SMMUv3 driver? Qualcomm > hardware doesn't not support SMMUv2 hardware, please add support for > SMMUv3 in next patch set. I've ported ' RFC,v3,09/10] iommu/arm-smmu: > Impleme

Re: [PATCHv13,1/3] lib/string: add sysfs_match_string helper

2016-12-07 Thread Heikki Krogerus
On Wed, Dec 07, 2016 at 03:54:45PM -0800, Guenter Roeck wrote: > > +int __sysfs_match_string(const char * const *array, size_t n, const char > > *str) > > +{ > > + const char *item; > > + int index; > > + > > + for (index = 0; index < n; index++) { > > + item = array[index]; > > +

[PATCH v2 2/2] net: rfkill: Add rfkill-any LED trigger

2016-12-07 Thread Michał Kępień
Add a new "global" (i.e. not per-rfkill device) LED trigger, rfkill-any, which may be useful on laptops with a single "radio LED" and multiple radio transmitters. The trigger is meant to turn a LED on whenever there is at least one radio transmitter active and turn it off otherwise. Signed-off-by

[PATCH v2 1/2] net: rfkill: Cleanup error handling in rfkill_init()

2016-12-07 Thread Michał Kępień
Use a separate label per error condition in rfkill_init() to make it a bit cleaner and easier to extend. Signed-off-by: Michał Kępień --- No changes from v1. net/rfkill/core.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/net/rfkill/core.c b/net/r

Re: [PATCH v2] PCI: designware: add host_init error handling

2016-12-07 Thread Jisheng Zhang
Hi Srinivas, On Wed, 7 Dec 2016 10:32:49 + Srinivas Kandagatla wrote: > This patch add support to return value from host_init() callback from drivers, > so that the designware libary can handle or pass it to proper place. Issue > with > void return type is that errors or error handling with

RE: [RFC v3 00/10] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-12-07 Thread Bharat Bhushan
Hi Eric, I have tested this series on NXP platform. Thanks -Bharat > -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Eric Auger > Sent: Tuesday, November 15, 2016 6:39 PM > To: eric.au...@redhat.com; er

[PATCH v2 1/2] dt-bindings: display: Add BOE nv101wxmn51 panel binding

2016-12-07 Thread Caesar Wang
The BOE 10.1" NV101WXMN51 panel is an WXGA TFT LCD panel. Signed-off-by: Caesar Wang --- Changes in v2: None .../devicetree/bindings/display/panel/boe,nv101wxmn51.txt | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,

[PATCH v2 2/2] drm/panel: simple: Add support BOE nv101wxmn51

2016-12-07 Thread Caesar Wang
10.1WXGA is a color active matrix TFT LCD module using amorphous silicon TFT's as an active switching devices. It can be supported by the simple-panel driver. Read the panel edid information; EDID MODE DETAILS name = pixel_clock = 71900 lvds_dual_c

Re: [PATCH v4 2/2] usb: dwc3: core: Support the dwc3 host suspend/resume

2016-12-07 Thread Baolin Wang
Hi Felipe, On 28 November 2016 at 14:43, Baolin Wang wrote: > For some mobile devices with strict power management, we also want to suspend > the host when the slave is detached for power saving. Thus we add the host > suspend/resume functions to support this requirement. > > Signed-off-by: Baoli

Re: [PATCH] Bluetooth: btmrvl: drop duplicate header slab.h

2016-12-07 Thread Marcel Holtmann
Hi Geliang, > Drop duplicate header slab.h from btmrvl_drv.h. > > Signed-off-by: Geliang Tang > --- > drivers/bluetooth/btmrvl_drv.h | 1 - > 1 file changed, 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel

Re: [PATCH v4 1/2] usb: host: plat: Enable xhci plat runtime PM

2016-12-07 Thread Baolin Wang
Hi Mathias and Felipe, On 28 November 2016 at 14:43, Baolin Wang wrote: > Enable the xhci plat runtime PM for parent device to suspend/resume xhci. > Also call pm_runtime_get_noresume() in probe() function in case the parent > device doesn't call suspend/resume callback by runtime PM now. > > Sig

Re: [PATCH] xen/pci: Bubble up error and fix description.

2016-12-07 Thread Juergen Gross
On 06/12/16 15:28, Konrad Rzeszutek Wilk wrote: > The function is never called under PV guests, and only shows up > when MSI (or MSI-X) cannot be allocated. Convert the message > to include the error value. > > Signed-off-by: Konrad Rzeszutek Wilk Commited to xen/tip.git for-linus-4.10 Juergen

Re: [PATCH v2] inotify: Convert to using per-namespace limits

2016-12-07 Thread Nikolay Borisov
On 8.12.2016 03:40, Eric W. Biederman wrote: > Nikolay Borisov writes: > >> Gentle ping, now that rc1 has shipped and Jan's sysctl concern hopefully >> resolved. > > After getting slowed down by some fixes I am now taking a hard look at > your patch in the hopes of merging it. > > Did you ha

Re: [PATCH 1/1 v2] xen: xenbus: set error code on failure

2016-12-07 Thread Juergen Gross
On 05/12/16 09:22, Pan Bian wrote: > Variable err is initialized with 0. As a result, the return value may > be 0 even if get_zeroed_page() fails to allocate memory. This patch fixes > the bug, initializing err with "-ENOMEM". > > v1 is reviewed by: Juergen Gross > > Signed-off-by: Pan Bian C

Re: [PATCH 1/1 v2] xen: set error code on failures

2016-12-07 Thread Juergen Gross
On 05/12/16 09:23, Pan Bian wrote: > Variable rc is reset in the loop, and its value will be non-negative > during the second and after repeat of the loop. If it fails to allocate > memory then, it may return a non-negative integer, which indicates no > error. This patch fixes the bug, assigning "-

Re: [PATCH 5/8] efi: Get the secure boot status [ver #5]

2016-12-07 Thread Lukas Wunner
On Wed, Dec 07, 2016 at 01:18:39PM +, David Howells wrote: > @@ -226,7 +180,7 @@ unsigned long efi_entry(void *handle, efi_system_table_t > *sys_table, > efi_guid_t loaded_image_proto = LOADED_IMAGE_PROTOCOL_GUID; > unsigned long reserve_addr = 0; > unsigned long reserve_size

[PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-07 Thread kys
From: Haiyang Zhang We currently use MAC address to match VF and synthetic NICs. Hyper-V provides a serial number to both devices for this purpose. This patch implements the matching based on VF serial numbers. This is the way specified by the protocol and more reliable. Signed-off-by: Haiyang Z

[PATCH] fsl/usb: Add USB node in FSL's ls1012a DTS

2016-12-07 Thread Changming Huang
Add USB node in ls1012a device tree Signed-off-by: Changming Huang --- Dependence on patch "[v3] arm64: Add DTS support for FSL's LS1012A SoC". https://patchwork.kernel.org/patch/9462399/ arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17 + 1 file changed, 17 insertions(+)

Re: [PATCH] linux/types.h: enable endian checks for all sparse builds

2016-12-07 Thread Bart Van Assche
On 12/07/16 21:54, Michael S. Tsirkin wrote: > On Thu, Dec 08, 2016 at 05:21:47AM +, Bart Van Assche wrote: >> Additionally, there are notable exceptions to the rule that most drivers >> are endian-clean, e.g. drivers/scsi/qla2xxx. I would appreciate it if it >> would remain possible to check s

[PATCH 2/3] hyperv: Add a function to detect if the device is a vmbus dev

2016-12-07 Thread kys
From: Haiyang Zhang On Hyper-V, every VF interface has a corresponding synthetic interface managed by netvsc that share the same MAC address. netvsc registers for netdev events to manage this association. Currently we use the MAC address to manage this association but going forward, we want to us

[PATCH 1/3] hyperv: Move hv_pci_dev and related structs to hyperv.h

2016-12-07 Thread kys
From: Haiyang Zhang Move some vPCI data structures to hyperv.h, because we share them with other module. Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/pci/host/pci-hyperv.c | 91 -- include/linux/hyperv.h| 98 +

[PATCH 0/3] Drivers: hv: Implement VF association based on serial number

2016-12-07 Thread kys
From: K. Y. Srinivasan Implement VF association based on serial number published by the host. Greg, as promised here is the patchset that would use the API for detecting if the device is a vmbus device. If you can take the first two patches, we can submit the netvsc patch to the net-next tree.

答复: [PATCH] fuse: freezing abort when use wait_event_killable{,_exclusive}().

2016-12-07 Thread 崔立飞
Hi Rafael, The fuse we used is without the commit "fuse: don't mess with blocking signals" committed by Al Viro. So we find the issue SIGBUS. In the page fault, trying to read page in fuse is interrupted, which will lead to SIGBUS issue. All Android platforms, include Android N, have the SIGUBS

[PATCH] ASoC: Intel: Skylake: remove unused 'runtime' variable

2016-12-07 Thread Kirtika Ruchandani
skl_platform_open() defines and sets 'struct snd_pcm_runtime* runtime' but does not use it. Compiling with W=1 gives the following warning, fix it. sound/soc/intel/skylake/skl-pcm.c: In function ‘skl_platform_open’: sound/soc/intel/skylake/skl-pcm.c:941:26: warning: variable ‘runtime’ set but not

Re: [PATCH 1/7] vfs - merge path_is_mountpoint() and path_is_mountpoint_rcu()

2016-12-07 Thread Ian Kent
On Thu, 2016-12-08 at 17:28 +1300, Eric W. Biederman wrote: > Ian Kent writes: > > > On Thu, 2016-12-08 at 10:30 +1300, Eric W. Biederman wrote: > > > Ian Kent writes: > > > > > > > On Sat, 2016-12-03 at 05:13 +, Al Viro wrote: > > > > > FWIW, I've folded that pile into vfs.git#work.a

[RESEND PATCH 2/2] drm/panel: simple: Add support BOE nv101wxmn51

2016-12-07 Thread Caesar Wang
10.1WXGA is a color active matrix TFT LCD module using amorphous silicon TFT's as an active switching devices. It can be supported by the simple-panel driver. Signed-off-by: Caesar Wang --- drivers/gpu/drm/panel/panel-simple.c | 31 +++ 1 file changed, 31 insertions(

[PATCH] ASoC: Intel: Skylake: remove unused 'out_fmt' variable

2016-12-07 Thread Kirtika Ruchandani
Commit 4cd9899f0d16 introduced struct skl_module_fmt* out_fmt without using it. Compiling with W=1 gives the below warning, fix it. sound/soc/intel/skylake/skl-topology.c: In function ‘skl_tplg_update_buffer_size’: sound/soc/intel/skylake/skl-topology.c:301:34: warning: variable ‘out_fmt’ set bu

[RESEND PATCH 1/2] dt-bindings: display: Add BOE nv101wxmn51 panel binding

2016-12-07 Thread Caesar Wang
The BOE 10.1" NV101WXMN51 panel is an WXGA TFT LCD panel. Signed-off-by: Caesar Wang --- .../devicetree/bindings/display/panel/boe,nv101wxmn51.txt | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,nv101wxmn51.txt diff

Re: [PATCH] drm/panel: simple: Add support BOE nv101wxmn51

2016-12-07 Thread Caesar Wang
Resend the missing document. Sorry for the noise. 在 2016年12月08日 13:26, Caesar Wang 写道: 10.1WXGA is a color active matrix TFT LCD module using amorphous silicon TFT's as an active switching devices. It can be supported by the simple-panel driver. Signed-off-by: Caesar Wang --- drivers/gpu/d

Re: [PATCH] linux/types.h: enable endian checks for all sparse builds

2016-12-07 Thread Michael S. Tsirkin
On Thu, Dec 08, 2016 at 05:21:47AM +, Bart Van Assche wrote: > On 12/07/16 18:29, Michael S. Tsirkin wrote: > > By now, linux is mostly endian-clean. Enabling endian-ness > > checks for everyone produces about 200 new sparse warnings for me - > > less than 10% over the 2000 sparse warnings alre

Re: [RFC PATCH v3] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries

2016-12-07 Thread Juergen Gross
On 05/12/16 18:49, Alex Thorlton wrote: > This is the third pass at my patchset to fix up our problems with > XENMEM_machine_memory_map on large systems. The only changes on this > pass were to flesh out the comment above the E820_X_MAX definition, and > to add Juergen's Reviewed-by to the second

[PATCH] drm/panel: simple: Add support BOE nv101wxmn51

2016-12-07 Thread Caesar Wang
10.1WXGA is a color active matrix TFT LCD module using amorphous silicon TFT's as an active switching devices. It can be supported by the simple-panel driver. Signed-off-by: Caesar Wang --- drivers/gpu/drm/panel/panel-simple.c | 31 +++ 1 file changed, 31 insertions(

Re: [PATCH] timekeeping: Remove unused timekeeping_{get,set}_tai_offset()

2016-12-07 Thread John Stultz
On Wed, Dec 7, 2016 at 2:33 PM, Stephen Boyd wrote: > The last caller to timekeeping_set_tai_offset() was in commit > 0b5154fb9040 (timekeeping: Simplify tai updating from > do_adjtimex, 2013-03-22) and the last caller to > timekeeping_get_tai_offset() was in commit 76f4108892d9 (hrtimer: > Cleanu

Re: [PATCH] linux/types.h: enable endian checks for all sparse builds

2016-12-07 Thread Bart Van Assche
On 12/07/16 18:29, Michael S. Tsirkin wrote: > By now, linux is mostly endian-clean. Enabling endian-ness > checks for everyone produces about 200 new sparse warnings for me - > less than 10% over the 2000 sparse warnings already there. > > Not a big deal, OTOH enabling this helps people notice > t

Re: [PATCH RFC] user-namespaced file capabilities - now with even more magic

2016-12-07 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > On Thu, Dec 08, 2016 at 05:43:09PM +1300, Eric W. Biederman wrote: >> "Serge E. Hallyn" writes: >> >> > Root in a 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 hos

Re: linux-next: Tree for Dec 7 (kallsyms failure)

2016-12-07 Thread Nicholas Piggin
On Thu, 8 Dec 2016 15:29:35 +1100 Stephen Rothwell wrote: > Hi all, > > On Wed, 7 Dec 2016 18:30:57 -0800 Randy Dunlap wrote: > > > > On 12/07/16 15:56, Stephen Rothwell wrote: > > > > > > On Wed, 7 Dec 2016 15:42:32 -0800 Randy Dunlap > > > wrote: > > >> > > >> I started seeing this y

Re: Misalignment, MIPS, and ip_hdr(skb)->version

2016-12-07 Thread Daniel Kahn Gillmor
On Wed 2016-12-07 19:30:34 -0500, Hannes Frederic Sowa wrote: > Your custom protocol should be designed in a way you get an aligned ip > header. Most protocols of the IETF follow this mantra and it is always > possible to e.g. pad options so you end up on aligned boundaries for the > next header.

[PATCH v2 1/5] clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical

2016-12-07 Thread Chanwoo Choi
The ACLK_BUS0/1/2 are used for NoC (Network on Chip). If NoC's clocks are disabled, the system halt happen. Following clock must be always enabled. - CLK_ACLK_BUS0_400 : NoC's bus clock for PERIC/PERIS/FSYS/MSCL - CLK_ACLK_BUS1_400 : NoC's bus clock for MFC/HEVC/G3D - CLK_ACLK_BUS2_400 : NoC's bus

[PATCH v2 0/5] arm64: dts: Enable bus frequency scaling on Exynos5433-based TM2 board

2016-12-07 Thread Chanwoo Choi
This patches add the AMBA bus Device-tree node unsing VDD_INT to enable the bus frequency scaling on Exynos5433-based TM2 board. There are two kind of bus device with devfreq framework. - Parent bus device : Change the frequency/voltage according to bus's utilization. - Passive bus device : Chan

[PATCH v2 4/5] arm64: dts: exynos5433: Add bus dt node using VDD_INT for Exynos5433

2016-12-07 Thread Chanwoo Choi
This patch adds the bus nodes using VDD_INT for Exynos5433 SoC. Exynos5433 has the following AMBA AXI buses to translate data between DRAM and sub-blocks. Following list specify the detailed correlation between sub-block and clock: - CLK_ACLK_G2D_{400|266} : Bus clock for G2D (2D graphic engine)

[PATCH v2 3/5] arm64: dts: exynos5433: Add PPMU dt node

2016-12-07 Thread Chanwoo Choi
This patch adds PPMU (Platform Performance Monitoring Unit) Device-tree node to measure the utilization of each IP in Exynos SoC. - PPMU_D{0|1}_CPU are used to measure the utilization of MIF (Memory Interface) block with VDD_MIF power source. - PPMU_D{0|1}_GENERAL are used to measure the utiliza

[PATCH v2 5/5] arm64: dts: exynos5433: Add support of bus frequency using VDD_INT on TM2

2016-12-07 Thread Chanwoo Choi
This patch adds the bus Device-tree nodes for INT (Internal) block to enable the bus frequency scaling. Signed-off-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 70 +++ 1 file changed, 70 insertions(+) diff --git a

[PATCH v2 2/5] PM / devfreq: exynos-bus: Add the detailed correlation for Exynos5433

2016-12-07 Thread Chanwoo Choi
This patch adds the detailed corrleation between sub-blocks and VDD_INT power line for Exynos5433. VDD_INT provided the power source to INT (Internal) block. Cc: MyungJoo Ham Cc: Kyungmin Park Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Chanwoo Choi --- Documentation/devicet

Re: [PATCH RFC] user-namespaced file capabilities - now with even more magic

2016-12-07 Thread Serge E. Hallyn
On Thu, Dec 08, 2016 at 05:43:09PM +1300, Eric W. Biederman wrote: > "Serge E. Hallyn" writes: > > > Root in a 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

[PATCH 1/2] arm64:dt:ls1046a: Add TMU device tree support for LS1046A

2016-12-07 Thread Jia Hongtao
Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 79 ++ 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freesc

[PATCH v3] ACPI / sysfs: Provide quirk mechanism to prevent GPE flooding

2016-12-07 Thread Lv Zheng
Sometimes, the users may require a quirk to be provided from ACPI subsystem core to prevent a GPE from flooding. Normally, if a GPE cannot be dispatched, ACPICA core automatically prevents the GPE from firing. But there are cases the GPE is dispatched by _Lxx/_Exx provided via AML table, and OSPM i

Re: [PATCH RFC] user-namespaced file capabilities - now with even more magic

2016-12-07 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > Root in a 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 > namespace, write the xattr, and execute the file with privilege on the >

[PATCH] x86/vm86: fix compilation warning on a unused variable

2016-12-07 Thread Jérémy Lefaure
When CONFIG_TRANSPARENT_HUGEPAGE is disabled, split_huge_pmd is a no-op stub. In such case, vma is unused and a compiler raises a warning: arch/x86/kernel/vm86_32.c: In function ‘mark_screen_rdonly’: arch/x86/kernel/vm86_32.c:180:26: warning: unused variable ‘vma’ [-Wunused-variable] struct vm_

linux-next: Tree for Dec 8

2016-12-07 Thread Stephen Rothwell
Hi all, Changes since 20161207: The powerpc allyesconfig build seems to be fixed again. The sunxi tree gained a conflict against the arm-soc tree. The tip tree lost its perf build failure. The pinctrl tree lost its build failure. I dropped 2 patches from the akpm tree that no longer apply

[PATCH v6 2/2] crypto: add virtio-crypto driver

2016-12-07 Thread Gonglei
This patch introduces virtio-crypto driver for Linux Kernel. The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines. The encryption anddecryption requests are placed in the data queue and are ultimately handled by thebackend

[PATCH v6 1/2] sparc: fix a building error reported by kbuild

2016-12-07 Thread Gonglei
>> arch/sparc/include/asm/topology_64.h:44:44: error: implicit declaration of function 'cpu_data' [-Werror=implicit-function-declaration] #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) ^ Let's include cpudata.h in topology_64.h. C

Re: [PATCH v4 4/5] i2c: designware: Add slave mode as separated driver

2016-12-07 Thread kbuild test robot
Hi Luis, [auto build test WARNING on wsa/i2c/for-next] [also build test WARNING on next-20161207] [cannot apply to v4.9-rc8] [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/Luis-Oliveira/i2c

[PATCH v6 0/2] virtio-crypto: add Linux driver

2016-12-07 Thread Gonglei
v6: - add patch 1/2 to make sparc architecture happy. [Sam] - close created sessions previousely when rekeying. - convert the priority of virtio crypto algs from 4001 to 501 which is enough. v5: - add comments for algs_lock and table_lock. [Stefan] - use kzfree instead of kfree for key mat

Re: [PATCH 1/7] vfs - merge path_is_mountpoint() and path_is_mountpoint_rcu()

2016-12-07 Thread Eric W. Biederman
Ian Kent writes: > On Thu, 2016-12-08 at 10:30 +1300, Eric W. Biederman wrote: >> Ian Kent writes: >> >> > On Sat, 2016-12-03 at 05:13 +, Al Viro wrote: >> > > FWIW, I've folded that pile into vfs.git#work.autofs. >> > > >> > > Problems: >> > >> > snip ... >> > >> > > * the last one (p

Re: linux-next: Tree for Dec 7 (kallsyms failure)

2016-12-07 Thread Stephen Rothwell
Hi all, On Wed, 7 Dec 2016 18:30:57 -0800 Randy Dunlap wrote: > > On 12/07/16 15:56, Stephen Rothwell wrote: > > > > On Wed, 7 Dec 2016 15:42:32 -0800 Randy Dunlap > > wrote: > >> > >> I started seeing this yesterday (2016-1206). > >> This is on x86_64. > >> > >> Anybody know about it? > >>

[PATCH 1/2] kbuild: improve EXPORT_SYMBOL() parsing from asm code

2016-12-07 Thread Nicolas Pitre
First, make the asm-prototypes.h presence optional. The next patch will make it unneeded for modversion support. Use the -D__GENKSYMS__ like we do for .c files but to expand the EXPORT_SYMBOL macro using the preprocessor instead of a sed script. The preprocessor output parsing is then limited to

[PATCH 2/2] kbuild: make modversion for exported asm symbols more convivial

2016-12-07 Thread Nicolas Pitre
Rather than having an asm-prototypes.h file where C prototypes for exported asm symbols are centralized, let's have some macros that can be used directly in the code where those symbols are exported for genksyms consumption. Either the prototype is provided directly if no include files has it, or

[PATCH 0/2] improve modversions for symbols exported from assembly code

2016-12-07 Thread Nicolas Pitre
This is a partial repost of the patches I sent last week, without the ARM part this time, in the hope that this can be considered for the next merge window so that architecture specific changes can start using it afterwards. include/asm-generic/export.h | 24 scripts/Mak

[PATCH v3] mach-omap2: fixing wrong strcat for Non-NULL terminated string

2016-12-07 Thread Maninder Singh
Issue caught with static analysis tool: "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)" Use strlcpy _includes_ the NUL terminator, and strlcat() which ensures that it won't overflow the buffer. Reported-by: Maninder Singh Signed-off-by: Vaneet Narang CC: Russell King ---

Re: [PATCH 2/2] mtd: spi-nor: add a stateless method to support memory size above 128Mib

2016-12-07 Thread Marek Vasut
On 12/07/2016 05:59 PM, Cyrille Pitchen wrote: > Le 07/12/2016 à 17:32, Marek Vasut a écrit : >> On 12/07/2016 05:29 PM, Cyrille Pitchen wrote: >>> Le 07/12/2016 à 17:20, Marek Vasut a écrit : On 12/06/2016 05:52 PM, Cyrille Pitchen wrote: > This patch provides an alternative mean to suppo

RE: [PATCH] usbip: fix warning in vhci_hcd_probe/lockdep_init_map

2016-12-07 Thread fx IWATA NOBUO
Dear Shuah, > I noticed that in many places sysfs_attr_init() is called before populating > the fields such as name etc. However, I don't think the order matters. > > sysfs_attr_init() doesn't depend on name or any other fields being set: > > #define sysfs_attr_init(attr)

linux-next: patches dropped from the akpm tree

2016-12-07 Thread Stephen Rothwell
Hi Andrew, While rebasing the post -next part of your tree today, I dropped these patches: drivers/clk/uniphier/clk-uniphier.h: fix build with old gcc drivers/clk/uniphier/clk-uniphier-mio.c: fix build for older gcc Some commits in other trees that modified these files have been dropped and

Re: [PATCH 07/12] PM / OPP: Update OPP users to put reference

2016-12-07 Thread Viresh Kumar
On 07-12-16, 22:23, Chanwoo Choi wrote: > I think that the dev_pm_opp_put(opp) should be called after if statement > If dev_pm_opp_find_freq_ceil() return error, I think the calling of > dev_pm_opp_put(opp) is not necessary. During development I had following check in dev_pm_opp_put(): if

[PATCH 2/2] arm64:dt:ls1012a: Add TMU device tree support for LS1012A

2016-12-07 Thread Jia Hongtao
Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- Depend on patch "[v3] arm64: Add DTS support for FSL's LS1012A SoC". https://patchwork.kernel.org/patch/9462399/ arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 76 ++ 1 file ch

Re: [RFC 06/10] block: use tida as small id allocator

2016-12-07 Thread Jens Axboe
On 12/07/2016 06:23 PM, Rasmus Villemoes wrote: > A struct ida ends up costing > 16 KB of runtime memory, which is quite > a lot for something which on my laptop as of this writing has handed > out 27 ids in its lifetime. So use the simpler and lighter-weight > struct tida. I'm worried that your e

Re: [PATCH] powerpc: Fix LPCR_VRMASD definition

2016-12-07 Thread Aneesh Kumar K.V
Jia He writes: > Fixes: a4b349540a ("powerpc/mm: Cleanup LPCR defines") > Signed-off-by: Jia He I sent another one https://lkml.kernel.org/r/20161208034213.21700-1-aneesh.ku...@linux.vnet.ibm.com to fix the same issue. I didn't notice this on the list. > --- > arch/powerpc/include/asm/reg.

Re: [PATCH 1/7] vfs - merge path_is_mountpoint() and path_is_mountpoint_rcu()

2016-12-07 Thread Ian Kent
On Thu, 2016-12-08 at 10:30 +1300, Eric W. Biederman wrote: > Ian Kent writes: > > > On Sat, 2016-12-03 at 05:13 +, Al Viro wrote: > > > FWIW, I've folded that pile into vfs.git#work.autofs. > > > > > > Problems: > > > > snip ... > > > > > * the last one (propagation-related) is too ug

[PATCH] powerpc: Fix LPCR_VRMASD definition

2016-12-07 Thread Jia He
Fixes: a4b349540a ("powerpc/mm: Cleanup LPCR defines") Signed-off-by: Jia He --- arch/powerpc/include/asm/reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index 9e1499f..93ec25e 100644 --- a/arch/powerpc/incl

Re: [PATCH v2] kexec: add cond_resched into kimage_alloc_crash_control_pages

2016-12-07 Thread Eric W. Biederman
zhongjiang writes: > From: zhong jiang > > A soft lookup will occur when I run trinity in syscall kexec_load. > the corresponding stack information is as follows. Acked-by: "Eric W. Biederman" > > [ 237.235937] BUG: soft lockup - CPU#6 stuck for 22s! [trinity-c6:13859] > [ 237.242699] Kerne

Re: [Linaro-acpi] [PATCH v17 08/15] clocksource/drivers/arm_arch_timer: move arch_timer_needs_of_probing into DT init call

2016-12-07 Thread Fu Wei
Hi Timur, On 8 December 2016 at 01:25, Timur Tabi wrote: > On Fri, Nov 25, 2016 at 9:06 AM, Fu Wei wrote: >> >> a "+ int ret;" should be move from [12/15] to here, I have fix the >> problem in my repo, it would happen in next patchset >> >> https://git.linaro.org/people/fu.wei/linux.git/log/?h=t

Re: [PATCH 1/2] usb: dwc3: gadget: Fix full speed mode

2016-12-07 Thread John Youn
On 12/7/2016 4:44 AM, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: Roger Quadros writes: > DCFG.DEVSPD == 0x3 is not valid and we need to set > DCFG.DEVSPD to 0x1 for full speed mode. seems like it has been made invalid somewhere between 1.73a and 2.60a. Can

[PATCH] f2fs: fix to access nullified flush_cmd_control pointer

2016-12-07 Thread Jaegeuk Kim
f2fs_sync_file() remount_ro - f2fs_readonly - destroy_flush_cmd_control - f2fs_issue_flush - no fcc pointer! So, this patch doesn't free fcc in this case, but just stop its kernel thread which sends flush commands. Signed-off-by: Jaegeuk Kim --- f

Re: [PATCH] ARM: multi_v7_defconfig: set bcm47xx watchdog

2016-12-07 Thread Florian Fainelli
Le 12/02/16 à 01:42, Valentin Rothberg a écrit : > Correct the bcm47xx watchdog option. The convention of bcm watchdogs is > the _WDT suffix. > > Signed-off-by: Valentin Rothberg Also applied; thanks! -- Florian

Re: [PATCH] ARM: multi_v7_defconfig: fix config typo

2016-12-07 Thread Florian Fainelli
Le 12/02/16 à 01:24, Valentin Rothberg a écrit : > s/CONFIG_CONFIG_BCM47XX_NVRAM/CONFIG_BCM47XX_NVRAM/ > > Signed-off-by: Valentin Rothberg Applied thanks! -- Florian

Re: [PATCH] usbip: fix warning in vhci_hcd_probe/lockdep_init_map

2016-12-07 Thread Shuah Khan
Hi Nobuo.iwata, I noticed that in many places sysfs_attr_init() is called before populating the fields such as name etc. However, I don't think the order matters. sysfs_attr_init() doesn't depend on name or any other fields being set: #define sysfs_attr_init(attr) \ do

Re: [PATCH 01/11] mm, devm_memremap_pages: use multi-order radix for ZONE_DEVICE lookups

2016-12-07 Thread Dan Williams
On Thu, Dec 1, 2016 at 2:29 PM, Dan Williams wrote: > devm_memremap_pages() records mapped ranges in pgmap_radix with a entry > per section's worth of memory (128MB). The key for each of those entries is > a section number. > > This leads to false positives when devm_memremap_pages() is passed a

[PATCH v2] kexec: add cond_resched into kimage_alloc_crash_control_pages

2016-12-07 Thread zhongjiang
From: zhong jiang A soft lookup will occur when I run trinity in syscall kexec_load. the corresponding stack information is as follows. [ 237.235937] BUG: soft lockup - CPU#6 stuck for 22s! [trinity-c6:13859] [ 237.242699] Kernel panic - not syncing: softlockup: hung tasks [ 237.248573] CPU:

Re: [PATCH] drm/mxsfb: fix pixel clock polarity

2016-12-07 Thread Marek Vasut
On 12/08/2016 02:26 AM, Stefan Agner wrote: > On 2016-12-07 16:59, Stefan Agner wrote: >> On 2016-12-07 16:49, Marek Vasut wrote: >>> On 12/08/2016 01:27 AM, Stefan Agner wrote: The DRM subsystem specifies the pixel clock polarity from a controllers perspective: DRM_BUS_FLAG_PIXDATA_NEGED

Re: linux-next: Tree for Dec 7 (kallsyms failure)

2016-12-07 Thread Randy Dunlap
On 12/07/16 15:56, Stephen Rothwell wrote: > Hi Randy, > > On Wed, 7 Dec 2016 15:42:32 -0800 Randy Dunlap wrote: >> >> I started seeing this yesterday (2016-1206). >> This is on x86_64. >> >> Anybody know about it? >> >> kallsyms failure: relative symbol value 0x8100 out of range in

[PATCH] linux/types.h: enable endian checks for all sparse builds

2016-12-07 Thread Michael S. Tsirkin
By now, linux is mostly endian-clean. Enabling endian-ness checks for everyone produces about 200 new sparse warnings for me - less than 10% over the 2000 sparse warnings already there. Not a big deal, OTOH enabling this helps people notice they are introducing new bugs. So let's just drop __CHEC

RE: [PATCH] usbip: fix warning in vhci_hcd_probe/lockdep_init_map

2016-12-07 Thread fx IWATA NOBUO
Dear Shuah, I'm afraid there's one thing I have concerned. I think it's better to move sysfs_attr_init() before status->attr.attr.name = status->name; Best Regards, nobuo.iwata // > -Original Message- > From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On

Re: [PATCH] MAINTAINERS: Add Patchwork URL to Samsung Exynos entry

2016-12-07 Thread Kukjin Kim
2016. 12. 8. 02:18 Krzysztof Kozlowski wrote: > I use Patchwork for handling incoming patches. Put its address here so > submitters could know what is in the queue. > Signed-off-by: Krzysztof Kozlowski > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MA

Re: [PATCH] kexec: add cond_resched into kimage_alloc_crash_control_pages

2016-12-07 Thread zhong jiang
On 2016/12/8 9:50, Eric W. Biederman wrote: > zhongjiang writes: > >> From: zhong jiang >> >> A soft lookup will occur when I run trinity in syscall kexec_load. >> the corresponding stack information is as follows. > Overall that looks reasonable. Why only every 256 page and not call > cond_resc

Re: [PATCH v3 4/4] pinctrl: aspeed: Fix kerneldoc return descriptions

2016-12-07 Thread Joel Stanley
On Tue, Dec 6, 2016 at 1:41 PM, Andrew Jeffery wrote: > Signed-off-by: Andrew Jeffery Acked-by: Joel Stanley > --- > drivers/pinctrl/aspeed/pinctrl-aspeed.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-)

Re: [PATCH v3 1/4] pinctrl: aspeed: Read and write bits in LPC and GFX controllers

2016-12-07 Thread Joel Stanley
On Tue, Dec 6, 2016 at 1:41 PM, Andrew Jeffery wrote: > The System Control Unit IP block in the Aspeed SoCs is typically where > the pinmux configuration is found, but not always. A number of pins > depend on state in one of LPC Host Control (LHC) or SoC Display > Controller (GFX) IP blocks, so th

[PATCH] kcov: add more missing include

2016-12-07 Thread Kefeng Wang
It is fragile that some definitions acquired via transitive dependencies, as shown in below: atomic_*() ENOMEM/EN* () EXPORT_SYMBOL () device_initcall () preempt_* () Include them to prevent possible issues. Suggested-by: Mark Rutland Signed-off-by: Kefeng Wang --- kernel

Re: [PATCH v3 1/3] soc: zte: pm_domains: Prepare for supporting ARMv8 2967 family

2016-12-07 Thread Jun Nie
2016-12-07 14:13 GMT+08:00 Baoyou Xie : > The ARMv8 2967 family (296718, 296716 etc) uses different value > for controlling the power domain on/off registers, Choose the > value depending on the compatible. > > Multiple domains are prepared for the family, this patch prepares > the common functions

Re: [PATCH v8] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-12-07 Thread Dmitry Torokhov
Hi Nick, On Mon, Dec 05, 2016 at 01:02:49AM +, Nick Dyer wrote: > +static void rmi_f34v7_parse_img_header_10_bl_container(struct f34_data *f34, > +const u8 *image) > +{ > + int i; > + u8 num_of_containers; > + unsigned int addr; >

Re: [PATCH v3 4/6] mfd: dt: Add bindings for the Aspeed LPC Host Controller (LHC)

2016-12-07 Thread Joel Stanley
On Tue, Dec 6, 2016 at 1:23 PM, Andrew Jeffery wrote: > The LPC bus pinmux configuration on fifth generation Aspeed SoCs depends > on bits in both the System Control Unit and the LPC Host Controller. > > The Aspeed LPC Host Controller is described as a child node of the > LPC host-range syscon dev

RE: [PATCH v5 1/1] crypto: add virtio-crypto driver

2016-12-07 Thread Gonglei (Arei)
Hi Sam, > > Subject: Re: [PATCH v5 1/1] crypto: add virtio-crypto driver > > On Mon, Dec 05, 2016 at 03:12:52AM +, Gonglei (Arei) wrote: > > I don't think the root cause of those warnings are introduced by > > virtio-crypto > driver. > > > > What's your opinion? Sam and David? > > Root caus

Re: [PATCH v3 3/6] mfd: dt: Add Aspeed Low Pin Count Controller bindings

2016-12-07 Thread Joel Stanley
On Tue, Dec 6, 2016 at 1:23 PM, Andrew Jeffery wrote: > Signed-off-by: Andrew Jeffery Reviewed-by: Joel Stanley > --- > .../devicetree/bindings/mfd/aspeed-lpc.txt | 111 > + > 1 file changed, 111 insertions(+) > create mode 100644 Documentation/devicetree/binding

Re: [PATCH] mfd: axp20x: correct a typo in axp20x_device_remove documentation

2016-12-07 Thread Chen-Yu Tsai
On Mon, Dec 5, 2016 at 8:15 PM, Corentin Labbe wrote: > The documentation of axp20x_device_remove() have a typo and use > axp20x_device_probe() as name. > This patch fix this typo. > > Signed-off-by: Corentin Labbe Acked-by: Chen-Yu Tsai

RE: [PATCH v5 1/1] crypto: add virtio-crypto driver

2016-12-07 Thread Gonglei (Arei)
> > Subject: Re: [PATCH v5 1/1] crypto: add virtio-crypto driver > > On Tue, Dec 06, 2016 at 09:01:49AM +, Gonglei (Arei) wrote: > > > > Would you please review and/or ack the virtio_crypto_algs.c? > > It is the realization of specified algs based on Linux Crypto Framework. > > I have no issu

Re: [PATCH v5 01/14] Documentation: of: add type property

2016-12-07 Thread Kuninori Morimoto
Hi Rob > > From: Kuninori Morimoto > > > > OF graph indicates each devices connection. But it doesn't support type > > of each port. For example HDMI case, it has video port and sound port > > in one device node. > > In this case, current driver can't handle each port correctly. > > This patch

Re: [PATCH] kexec: add cond_resched into kimage_alloc_crash_control_pages

2016-12-07 Thread Eric W. Biederman
zhongjiang writes: > From: zhong jiang > > A soft lookup will occur when I run trinity in syscall kexec_load. > the corresponding stack information is as follows. Overall that looks reasonable. Why only every 256 page and not call cond_resched unconditionally? The function cond_resched won't

  1   2   3   4   5   6   7   8   >