Re: [PATCH net] tcp: avoid bogus gcc-7 array-bounds warning

2017-07-29 Thread David Miller
From: Arnd Bergmann Date: Fri, 28 Jul 2017 16:41:37 +0200 > When using CONFIG_UBSAN_SANITIZE_ALL, the TCP code produces a > false-positive warning: > > net/ipv4/tcp_output.c: In function 'tcp_connect': > net/ipv4/tcp_output.c:2207:40: error: array subscript is below array bounds > [-Werror=arra

Re: [PATCH net] Revert "vhost: cache used event for better performance"

2017-07-29 Thread K. Den
On Wed, 2017-07-26 at 19:08 +0300, Michael S. Tsirkin wrote: > On Wed, Jul 26, 2017 at 09:37:15PM +0800, Jason Wang wrote: > > > > > > On 2017年07月26日 21:18, Jason Wang wrote: > > > > > > > > > On 2017年07月26日 20:57, Michael S. Tsirkin wrote: > > > > On Wed, Jul 26, 2017 at 04:03:17PM +0800, Jaso

Re: [PATCH v2 1/3] media: V3s: Add support for Allwinner CSI.

2017-07-29 Thread Baruch Siach
Hi Maxime, Yong, On Fri, Jul 28, 2017 at 06:02:33PM +0200, Maxime Ripard wrote: > Hi, > > Thanks for the second iteration! > > On Thu, Jul 27, 2017 at 01:01:35PM +0800, Yong Deng wrote: > > Allwinner V3s SoC have two CSI module. CSI0 is used for MIPI interface > > and CSI1 is used for parallel

Re: Yes you have standing to sue GRSecurity

2017-07-29 Thread David Lang
On Sat, 29 Jul 2017, Paul G. Allen wrote: It's not even clear that there is infringement. The GPL merely requires that people who have been distributed copies of GPL'ed code must not be restricted from further redistribution of the code. It does not require that that someone who is distributin

RE: [PATCH v12 5/8] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-07-29 Thread Wang, Wei W
On Sunday, July 30, 2017 12:23 PM, Michael S. Tsirkin wrote: > On Sat, Jul 29, 2017 at 08:47:08PM +0800, Wei Wang wrote: > > On 07/29/2017 07:08 AM, Michael S. Tsirkin wrote: > > > On Thu, Jul 27, 2017 at 10:50:11AM +0800, Wei Wang wrote: > > > > > > > OK I thought this over. While we might need th

[PATCH] pinctrl: sunxi: rename R_PIO i2c pin function name

2017-07-29 Thread Icenowy Zheng
The I2C pin functions in R_PIO used to be named "s_twi". As we usually use the name "i2c" instead of "twi" in the mainline kernel, change these names to "s_i2c" for consistency. The "s_twi" functions are not yet referenced by any device trees in mainline kernel so I think it's safe to change the

Re: [PATCH v3 0/2] Last step to working Allwinner R40 pinctrl

2017-07-29 Thread icenowy
在 2017-07-22 10:50,Icenowy Zheng 写道: This patchset contains only two patches. The first one is a minor fix for the A10 pinctrl driver, add a function of a pin, which used to be missing in A10/A20 pinctrl driver. Thanks for Chen-Yu for discovering it when reviewing my R40 pinctrl patchset. The

[PATCH 1/4] misc: pch_phub: constify pci_device_id.

2017-07-29 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/misc/pch_phub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH 3/4] misc: tifm: constify pci_device_id.

2017-07-29 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. checkpatch ERROR: space prohibited before open square bracket '[' Signed-off-by: Arvind Yadav --- drivers/misc/tifm_7

[PATCH 2/4] misc: hpilo: constify pci_device_id.

2017-07-29 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/misc/hpilo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/4] constify misc pci_device_id.

2017-07-29 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Arvind Yadav (4): [PATCH 1/4] misc: pch_phub: constify pci_device_id. [PATCH 2/4] misc: hpilo: constify pci_device_i

[PATCH 4/4] misc: ioc4: constify pci_device_id.

2017-07-29 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/misc/ioc4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: blk-mq breaks suspend even with runtime PM patch

2017-07-29 Thread Mike Galbraith
On Sat, 2017-07-29 at 17:27 +0200, Oleksandr Natalenko wrote: > Hello Jens, Christoph. > > Unfortunately, even with "block: disable runtime-pm for blk-mq" patch applied > blk-mq breaks suspend to RAM for me. It is reproducible on my laptop as well > as in a VM. > > I use complex disk layout inv

Re: [PATCH v1 5/5] [media] stm32-dcmi: g_/s_selection crop support

2017-07-29 Thread kbuild test robot
Hi Hugues, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.13-rc2 next-20170728] [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/Hugues-Fruchet/STM32-DCMI-camera-

Re: [PATCH v12 5/8] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-07-29 Thread Michael S. Tsirkin
On Sat, Jul 29, 2017 at 08:47:08PM +0800, Wei Wang wrote: > On 07/29/2017 07:08 AM, Michael S. Tsirkin wrote: > > On Thu, Jul 27, 2017 at 10:50:11AM +0800, Wei Wang wrote: > > > > > > OK I thought this over. While we might need these new APIs in > > > > > > the future, I think that at the moment, t

Re: [PATCH v2] x86/amd: Derive L3 shared_cpu_map from cpu_llc_shared_mask

2017-07-29 Thread Borislav Petkov
On Thu, Jul 27, 2017 at 08:52:35PM -0500, Suravee Suthikulpanit wrote: > For system with X86_FEATURE_TOPOEXT, current logic use APIC ID to > calculate shared_cpu_map. However, since APIC IDs are not guaranteed > to be contiguous for cores across different L3 (e.g. family17h system > w/ downcore con

[PATCH] printk: Clean up do_syslog() error handling

2017-07-29 Thread Nikitas Angelinas
The error variable in do_syslog() is preemptively set to the error code before the error condition is checked, and then set to 0 if the error condition is not encountered. This is not necessary, as it is likely simpler to return immediately upon encountering the error condition. A redundant set of

Re: [PATCH 1/1] usb: xhci: Add debugfs interface for xHCI driver

2017-07-29 Thread Lu Baolu
Hi Greg, On 07/29/2017 09:34 PM, Greg KH wrote: > On Sat, Jul 29, 2017 at 04:18:03PM +0800, Lu Baolu wrote: >> +static void xhci_debugfs_create_files(struct xhci_hcd *xhci, >> + struct xhci_file_map *files, >> + size_t nentries, vo

Re: [PATCH -tip v7 1/2] irq: Make irqentry text section unconditional

2017-07-29 Thread Masami Hiramatsu
; > url: > https://github.com/0day-ci/linux/commits/Masami-Hiramatsu/irq-Make-irqentry-text-section-unconditional/20170729-170710 > config: h8300-h8300h-sim_defconfig (attached as .config) > compiler: h8300-linux-gcc (GCC) 6.2.0 > reproduce: > wget > https://raw.gi

fs/binfmt_flat.c:828:9: error: void value not ignored as it ought to be

2017-07-29 Thread kbuild test robot
Hi Al, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0a07b238e5f488b459b6113a62e06b6aab017f71 commit: 468138d78510688fb5476f98d23f11ac6a63229a binfmt_flat: flat_{get,put}_addr_from_rp() should be able to fail date

[PATCH] ipmi: fix unsigned long underflow

2017-07-29 Thread minyard
From: Corey Minyard When I set the timeout to a specific value such as 500ms, the timeout event will not happen in time due to the overflow in function check_msg_timeout: ... ent->timeout -= timeout_period; if (ent->timeout > 0) return; ... The type of timeout_per

GOOD DAY

2017-07-29 Thread Richard Water
Please Whoever this email meets i need your co-operation and to introduce myself i am Mr Richard Water and i work with an intermediary bank by name Exodus bank Group , i discovered from my bank data assessment as the bank auditor general that a deceased customer left in one of his accounts 580

[PATCH] of: Update Moxa vendor prefix description

2017-07-29 Thread SZ Lin
Update vendor description to be the full name of the corporate entity with this prefix reference: [1]: http://tmsearch.uspto.gov/bin/showfield?f=doc&state=4806:26uh56.2.5 Signed-off-by: SZ Lin --- Documentation/devicetree/bindings/vendor-prefixes.txt | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH v2] usb: gadget: add RNDIS configfs options for class/subclass/protocol

2017-07-29 Thread David Lechner
This adds 3 new options to the RNDIS gadget function configs. It allows overriding the default USB interface class/subclass/protocol. The motivation for this is that if you set the values to "ef" (Misc), "04" (RNDIS), "01" (Ethernet) respectively, then the device will be recognized by the rndiscmp

Re: [RFC v6 21/62] powerpc: introduce execute-only pkey

2017-07-29 Thread Ram Pai
On Fri, Jul 28, 2017 at 07:17:13PM -0300, Thiago Jung Bauermann wrote: > > Ram Pai writes: > > --- a/arch/powerpc/mm/pkeys.c > > +++ b/arch/powerpc/mm/pkeys.c > > @@ -97,3 +97,60 @@ int __arch_set_user_pkey_access(struct task_struct *tsk, > > int pkey, > > init_iamr(pkey, new_iamr_bits); > >

Re: [RFC v6 27/62] powerpc: helper to validate key-access permissions of a pte

2017-07-29 Thread Ram Pai
On Fri, Jul 28, 2017 at 06:00:02PM -0300, Thiago Jung Bauermann wrote: > > Ram Pai writes: > > --- a/arch/powerpc/mm/pkeys.c > > +++ b/arch/powerpc/mm/pkeys.c > > @@ -201,3 +201,36 @@ int __arch_override_mprotect_pkey(struct > > vm_area_struct *vma, int prot, > > */ > > return vma_pkey(

Re: [RFC v6 15/62] powerpc: helper functions to initialize AMR, IAMR and UMOR registers

2017-07-29 Thread Ram Pai
On Thu, Jul 27, 2017 at 05:40:44PM -0300, Thiago Jung Bauermann wrote: > > Ram Pai writes: > > > Introduce helper functions that can initialize the bits in the AMR, > > IAMR and UMOR register; the bits that correspond to the given pkey. > > > > Signed-off-by: Ram Pai > > s/UMOR/UAMOR/ here and

Re: [PATCH] memory: mtk-smi: Use of_device_get_match_data helper

2017-07-29 Thread kbuild test robot
Hi Honghui, [auto build test ERROR on linus/master] [also build test ERROR on v4.13-rc2 next-20170728] [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/honghui-zhang-mediatek-com/memory-mtk-smi-Us

Re: [PATCH] usb: dwc3: Fix the USB 3.0 hub detection bug after warm boot

2017-07-29 Thread gustavo panizzo
Hi On Mon, Jul 24, 2017 at 12:53:27PM +0300, Felipe Balbi wrote: Hi, gustavo panizzo writes: On Wed, Jul 12, 2017 at 02:08:04PM +0800, Baolin Wang wrote: Hi, On 12 July 2017 at 11:52, gustavo panizzo wrote: The dwc3 could not release resources when the module is built-in because this m

Re: [RFC v6 20/62] powerpc: store and restore the pkey state across context switches

2017-07-29 Thread Ram Pai
On Thu, Jul 27, 2017 at 02:32:59PM -0300, Thiago Jung Bauermann wrote: > > Ram Pai writes: > > > Store and restore the AMR, IAMR and UMOR register state of the task > > before scheduling out and after scheduling in, respectively. > > > > Signed-off-by: Ram Pai > > s/UMOR/UAMOR/ > > > diff --g

undefined reference to `_GLOBAL_OFFSET_TABLE_'

2017-07-29 Thread kbuild test robot
Hi Nicholas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0a07b238e5f488b459b6113a62e06b6aab017f71 commit: 799c43415442414b1032580c47684cb709dfed6d kbuild: thin archives make default for all archs date: 4 weeks

Re: [RFC v6 19/62] powerpc: ability to create execute-disabled pkeys

2017-07-29 Thread Ram Pai
On Thu, Jul 27, 2017 at 11:54:31AM -0300, Thiago Jung Bauermann wrote: > > Ram Pai writes: > > > --- a/arch/powerpc/include/asm/pkeys.h > > +++ b/arch/powerpc/include/asm/pkeys.h > > @@ -2,6 +2,18 @@ > > #define _ASM_PPC64_PKEYS_H > > > > extern bool pkey_inited; > > +/* override any generic P

Re: Yes you have standing to sue GRSecurity

2017-07-29 Thread Paul G. Allen
> It's not even clear that there is infringement. The GPL merely > requires that people who have been distributed copies of GPL'ed code > must not be restricted from further redistribution of the code. It > does not require that that someone who is distributing it must > available on a public FTP

Re: [PATCH v4 15/17] ASoC: cs47l35: Add codec driver for Cirrus Logic CS47L35

2017-07-29 Thread kbuild test robot
Hi Richard, [auto build test ERROR on linus/master] [also build test ERROR on v4.13-rc2 next-20170728] [cannot apply to ljones-mfd/for-mfd-next asoc/for-next] [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/li

Re: [RFC v6 17/62] powerpc: implementation for arch_set_user_pkey_access()

2017-07-29 Thread Ram Pai
On Thu, Jul 27, 2017 at 11:15:36AM -0300, Thiago Jung Bauermann wrote: > > Ram Pai writes: > > @@ -113,10 +117,14 @@ static inline int arch_override_mprotect_pkey(struct > > vm_area_struct *vma, > > return 0; > > } > > > > +extern int __arch_set_user_pkey_access(struct task_struct *tsk, int

Re: [RFC v6 13/62] powerpc: track allocation status of all pkeys

2017-07-29 Thread Ram Pai
On Thu, Jul 27, 2017 at 11:01:44AM -0300, Thiago Jung Bauermann wrote: > > Hello Ram, > > I'm still going through the patches and haven't formed a full picture of > the feature in my mind yet, so my comments today won't be particularly > insightful... > > But hopefully the comments that I curren

Re: wake_wide mechanism clarification

2017-07-29 Thread Joel Fernandes
On Sat, Jul 29, 2017 at 3:28 PM, Joel Fernandes wrote: Again I didn't follow why the second condition couldn't just be: waker->nr_wakee_switch > factor, or, (waker->nr_wakee_switch + wakee->nr_wakee_switch) > factor, based on the above explanation from Micheal Wang that I quot

Re: [PATCH] rtc: rtc-stmp3xxx: detect power failure on backup power domain

2017-07-29 Thread Alexandre Belloni
On 07/06/2017 at 15:05:03 +0200, Michael Thalmeier wrote: > On Thu, May 18, 2017 at 05:56:31PM +0200, Alexandre Belloni wrote: > > Hi, > > > > On 18/05/2017 at 16:45:21 +0200, Michael Thalmeier wrote: > > > To detect when the backup power domain has lost power a software defined > > > bit > > > i

bc6febb2166b65e7032c424620ec5e47.jpeg★★★ 10月,广交会 —— 2017广州国际进出口汽车配件展览会 ★★★ [地右P4/L100-Z]

2017-07-29 Thread 周蜞馂
【通过本邮件参展优惠500元一展位,需回信专用邮箱“12809...@qq.com”报名】    尊敬的 bc6febb2166b65e7032c424620ec5e47.jpeg 企业领导/公司负责人:      诚邀参加中国最大汽配外贸展 —— APF 2017   汽配行业品牌盛会,外贸企业最佳选择,全球采购首选平台!    ★ 与“广交会”同期同地举行, ★ 以“广交会”庞大的客流量为依托,买家互动,借势兴展, ★ 共享来自全球数十万采购商资源•••       【 基 本 信 息 】    中文名称: 2017广州国际进出口汽车配件展览会 英文名称: The Guangzh

Re: pull-request: wireless-drivers-next 2017-07-28

2017-07-29 Thread David Miller
From: Kalle Valo Date: Fri, 28 Jul 2017 14:05:59 + > Kalle Valo writes: > >> Hi Dave, >> >> here's a pull request for net, more info the signed tag below. Please >> let me know if there are any problems. >> >> Kalle >> >> The following changes since commit d755cbc26e8295ae8e5d30425364e093b4

Re: wake_wide mechanism clarification

2017-07-29 Thread Joel Fernandes
Hi Mike, On Sat, Jul 29, 2017 at 1:19 PM, Joel Fernandes wrote: > >>> To explain the second condition above, Michael Wang said the following in >>> [1] >>> >>> "Furthermore, if waker also has a high 'nr_wakee_switch', imply that >>> multiple >>> tasks rely on it, then waker's higher latency wi

Re: [PATCH 2/2] mfd: ds1374: Add Dallas/Maxim DS1374 Multi Function Device

2017-07-29 Thread Alexandre Belloni
On 13/07/2017 at 12:54:25 -0700, Moritz Fischer wrote: > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > index 52a70ee..1703611 100644 > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -120,6 +120,16 @@ config DA9062_WATCHDOG > > This driver can be

Re: [PATCH] net: tc35815: fix spelling mistake: "Intterrupt" -> "Interrupt"

2017-07-29 Thread David Miller
From: Colin King Date: Thu, 27 Jul 2017 23:15:09 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in printk message > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH 1/1] staging: pi433: fix problem with division in rf69_set_deviation

2017-07-29 Thread Greg KH
On Sat, Jul 29, 2017 at 10:51:15AM +0200, Marcus Wolf wrote: > Hi Greg, > > already had a discussion concerning that patch with Dan yesterday. > I really don't know what's going on there. I detached the patch once more from > my outbox and had a very close look in an editor and looked at it with

Re: module: Remove const attribute from alias for MODULE_DEVICE_TABLE

2017-07-29 Thread Jessica Yu
+++ Matthias Kaehlcke [24/07/17 18:27 -0700]: MODULE_DEVICE_TABLE(type, name) creates an alias of type 'extern const typeof(name)'. If 'name' is already constant the 'const' attribute is specified twice, which is not allowed in C89 (see discussion at https://lkml.org/lkml/2017/5/23/1440). Since t

Re: [PATCH RFC 3/4] arch/sparc: Optimized memcpy, memset, copy_to_user, copy_from_user for M7

2017-07-29 Thread David Miller
From: Babu Moger Date: Thu, 27 Jul 2017 15:57:29 -0600 > @@ -600,7 +600,7 @@ niagara_tlb_fixup: > be,pt %xcc, niagara4_patch >nop > cmp %g1, SUN4V_CHIP_SPARC_M7 > - be,pt %xcc, niagara4_patch > + be,pt %xcc, sparc_m7_patch >nop > cmp %g1, SU

Re: [PATCH BUGFIX] block, bfq: consider also in_service_entity to state whether an entity is active

2017-07-29 Thread Jens Axboe
On 07/29/2017 04:42 AM, Paolo Valente wrote: > Groups of BFQ queues are represented by generic entities in BFQ. When > a queue belonging to a parent entity is deactivated, the parent entity > may need to be deactivated too, in case the deactivated queue was the > only active queue for the parent en

Re: [PATCH BUGFIX] block, bfq: reset in_service_entity if it becomes idle

2017-07-29 Thread Jens Axboe
On 07/28/2017 01:41 PM, Paolo Valente wrote: > BFQ implements hierarchical scheduling by representing each group of > queues with a generic parent entity. For each parent entity, BFQ > maintains an in_service_entity pointer: if one of the child entities > happens to be in service, in_service_entity

Re: [resend PATCH v2 11/33] dm: add dax_device and dax_operations support

2017-07-29 Thread Bart Van Assche
On Sat, 2017-07-29 at 12:57 -0700, Dan Williams wrote: > On Fri, Jul 28, 2017 at 9:17 AM, Bart Van Assche > wrote: > > On Mon, 2017-04-17 at 12:09 -0700, Dan Williams wrote: > > > diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig > > > index b7767da50c26..1de8372d9459 100644 > > > --- a/driver

Re: [PATCH 1/1] netfilter: constify nf_conntrack_l3/4proto parameters

2017-07-29 Thread Florian Westphal
Julia Lawall wrote: > > I think we can indeed constify these completely after making > > 'nla_size' set at compile time. > > > > I'll send a simple attempt to make it so for l3proto soon. > > There is another issue with respect to nf_ct_l3proto_unregister. This > calls nf_ct_iterate_destroy with

Re: [PATCH] net: thunderx: Fix BGX transmit stall due to underflow

2017-07-29 Thread David Miller
From: sunil.kovv...@gmail.com Date: Thu, 27 Jul 2017 12:53:04 +0530 > From: Sunil Goutham > > For SGMII/RGMII/QSGMII interfaces when physical link goes down > while traffic is high is resulting in underflow condition being set > on that specific BGX's LMAC. Which assets a backpresure and VNIC st

[PATCH] staging: sm750fb: avoid conflicting vesafb

2017-07-29 Thread Sudip Mukherjee
From: Teddy Wang commit 740c433ec35187b45abe08bb6c45a321a791be8e upstream If vesafb is enabled in the config then /dev/fb0 is created by vesa and this sm750 driver gets fb1, fb2. But we need to be fb0 and fb1 to effectively work with xorg. So if it has been alloted fb1, then try to remove the ot

Re: blk-mq breaks suspend even with runtime PM patch

2017-07-29 Thread Oleksandr Natalenko
Recompiled kernel with lockdep enabled gives me this: === [ 368.655051] Showing all locks held in the system: [ 368.656387] 1 lock held by khungtaskd/37: [ 368.657171] #0: (tasklist_lock){.+.+..}, at: [] debug_show_all_locks+0x3d/0x1a0 [ 368.658725] 1 lock held by md0_raid10/458: [ 368.659

Re: [PATCH V2 net] Revert "vhost: cache used event for better performance"

2017-07-29 Thread David Miller
From: Jason Wang Date: Thu, 27 Jul 2017 11:22:05 +0800 > This reverts commit 809ecb9bca6a9424ccd392d67e368160f8b76c92. Since it > was reported to break vhost_net. We want to cache used event and use > it to check for notification. The assumption was that guest won't move > the event idx back, but

Re: [PATCH v1 2/2] arm64: dts: rockchip: add rk3328 spdif node

2017-07-29 Thread Heiko Stuebner
Am Donnerstag, 27. Juli 2017, 16:16:04 CEST schrieb Sugar Zhang: > This patch add the spdif dt node for rk3328. > > Signed-off-by: Sugar Zhang > > --- > > arch/arm64/boot/dts/rockchip/rk3328.dtsi | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockc

Re: [PATCH] ti-msgmgr: fix of_irq_get_byname() error check

2017-07-29 Thread Sergei Shtylyov
On 07/30/2017 12:04 AM, Sergei Shtylyov wrote: of_irq_get_byname() may return 0 as well as negative error number on failure, while the driver only checks for the negative values. The driver would then call request_irq(0, ...) in ti_msgmgr_queue_startup() and never get a valid channel interrupt

Re: [PATCH v1 1/2] arm64: dts: rockchip: add rk3328 i2s nodes

2017-07-29 Thread Heiko Stuebner
Am Donnerstag, 27. Juli 2017, 16:16:03 CEST schrieb Sugar Zhang: > This patch add the i2s dt nodes for rk3328. > > Signed-off-by: Sugar Zhang > --- > > arch/arm64/boot/dts/rockchip/rk3328.dtsi | 33 > > 1 file changed, 33 insertions(+) > > diff --git a/arch/ar

Re: [PATCH] ti-msgmgr: fix of_irq_get_byname() error check

2017-07-29 Thread Sergei Shtylyov
Forgot to mention that the patch is against the Linus' repo.

Re: [PATCH] arm64: dts: rockchip: add rk3368 spdif node

2017-07-29 Thread Heiko Stuebner
Am Donnerstag, 27. Juli 2017, 15:46:38 CEST schrieb Sugar Zhang: > This patch add the spdif dt node for rk3368 soc. > > Signed-off-by: Sugar Zhang applied for 4.14 after replacing the pin number (23) with its constand equivalent RK_PC7. Heiko

[PATCH] ti-msgmgr: fix of_irq_get_byname() error check

2017-07-29 Thread Sergei Shtylyov
of_irq_get_byname() may return 0 as well as negative error number on failure, while the driver only checks for the negative values. The driver would then call request_irq(0, ...) in ti_msgmgr_queue_startup() and never get a valid channel interrupt. Check for 'qinst->irq <= 0' instead and return

Re: [PATCH 0/6] net: moxa: Fix style issues

2017-07-29 Thread David Miller
From: SZ Lin Date: Sat, 29 Jul 2017 18:42:33 +0800 > This patch set fixs the WARNINGs found by the checkpatch.pl tool Series applied, thanks.

Re: [PATCH] dmaengine: rcar-dmac: avoid array overflow

2017-07-29 Thread Laurent Pinchart
Hi Arnd, Thank you for the patch. On Friday 28 Jul 2017 15:15:49 Arnd Bergmann wrote: > Building with CONFIG_UBSAN_SANITIZE_ALL shows this warning: > > drivers/dma/sh/rcar-dmac.c: In function 'rcar_dmac_chan_prep_sg': > drivers/dma/sh/rcar-dmac.c:839:29: error: array subscript is above array > b

Re: [PATCH 1/1] netfilter: constify nf_conntrack_l3/4proto parameters

2017-07-29 Thread Julia Lawall
On Sat, 29 Jul 2017, Florian Westphal wrote: > Julia Lawall wrote: > > When a nf_conntrack_l3/4proto parameter is not on the left hand side > > of an assignment, its address is not taken, and it is not passed to a > > function that may modify its fields, then it can be declared as const. > > >

Re: wake_wide mechanism clarification

2017-07-29 Thread Joel Fernandes
Hi Mike, On Sat, Jul 29, 2017 at 8:07 AM, Mike Galbraith wrote: > On Sat, 2017-07-29 at 01:01 -0700, Joel Fernandes wrote: >> Hi Mike, >> >> I have take spent some time understanding the email thread and >> previous discussions. Unfortunately the second condition we are >> checking for in the wak

[PATCH] Staging: rtl8723bs: Do not initialise static to 0.

2017-07-29 Thread Shreeya Patel
Do not initialise static to 0. Static variables by default initialise to 0. This patch fixes the errors found by checkpatch. Signed-off-by: Shreeya Patel --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 +- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 2 +- drivers/staging/rtl8723bs/c

Re: Yes you have standing to sue GRSecurity

2017-07-29 Thread Theodore Ts'o
On Sat, Jul 29, 2017 at 09:32:36AM -0600, Paul G. Allen wrote: > I have not contributed to the kernel for some time (I have been > working on some stuff, but nothing that's been contributed), so I > don't know if any of my code would be infringed (or if it's even in > the latest kernels). > > My w

Re: [PATCH 1/1] netfilter: constify nf_conntrack_l3/4proto parameters

2017-07-29 Thread Florian Westphal
Julia Lawall wrote: > When a nf_conntrack_l3/4proto parameter is not on the left hand side > of an assignment, its address is not taken, and it is not passed to a > function that may modify its fields, then it can be declared as const. > > This change is useful from a documentation point of view,

Re: [resend PATCH v2 11/33] dm: add dax_device and dax_operations support

2017-07-29 Thread Dan Williams
On Fri, Jul 28, 2017 at 9:17 AM, Bart Van Assche wrote: > On Mon, 2017-04-17 at 12:09 -0700, Dan Williams wrote: >> diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig >> index b7767da50c26..1de8372d9459 100644 >> --- a/drivers/md/Kconfig >> +++ b/drivers/md/Kconfig >> @@ -200,6 +200,7 @@ config

[PATCH 3/3] xfs: persist S_IOMAP_IMMUTABLE in di_flags2

2017-07-29 Thread Dan Williams
Record the immutable state in the on-disk inode so that on the next boot the protections against reflink and hole punch etc are automatically restored. This deliberately does not add a FS_XFLAG_IOMAP_IMMUTABLE since fallocate(2) is the path to toggle this flag. Cc: Jan Kara Cc: Jeff Moyer Cc: C

[PATCH 2/3] fs, xfs: introduce FALLOC_FL_SEAL_BLOCK_MAP

2017-07-29 Thread Dan Williams
>From falloc.h: FALLOC_FL_SEAL_BLOCK_MAP is used to seal (make immutable) all of the file logical-to-physical extent offset mappings in the file. The purpose is to allow an application to assume that there are no holes or shared extents in the file and that the metadata needed to f

[PATCH 1/3] fs, xfs: introduce S_IOMAP_IMMUTABLE

2017-07-29 Thread Dan Williams
An inode with this flag set indicates that the file's block map cannot be changed, no size change, deletion, hole-punch, range collapse, or reflink. The implementation of toggling the flag and sealing the state of the extent map is saved for a later patch. The functionality provided by S_IOMAP_IMM

[PATCH 0/3] fs, xfs: block map immutable files for dax, dma-to-storage, and swap

2017-07-29 Thread Dan Williams
tl;dr: The proposed S_IOMAP_IMMUTABLE mechanism The daxfile proposal a few weeks back [1] sought to piggy back on the swapfile implementation to approximate a block map immutable file. This is an idea Dave originated last year to solve the dax "flush from userspace" problem [2]. The discussion yi

[PATCH 1/1] netfilter: constify nf_conntrack_l3/4proto parameters

2017-07-29 Thread Julia Lawall
When a nf_conntrack_l3/4proto parameter is not on the left hand side of an assignment, its address is not taken, and it is not passed to a function that may modify its fields, then it can be declared as const. This change is useful from a documentation point of view, and can possibly facilitate ma

[PATCH 0/1] constify nf_conntrack_l3/4proto parameters

2017-07-29 Thread Julia Lawall
When a nf_conntrack_l3/4proto parameter is not on the left hand side of an assignment, its address is not taken, and it is not passed to a function that may modify its fields, then it can be declared as const. This change is useful from a documentation point of view, and can possibly facilitate ma

Re: [PATCH 0/6] Support for LEGO MINDSTORMS EV3 LCD display

2017-07-29 Thread David Lechner
On 07/29/2017 02:17 PM, David Lechner wrote: The goal of this series is to get the built-in LCD of the LEGO MINDSTORMS EV3 working. But, most of the content here is building up the infrastructure to do that. Some general comments/questions: I have noticed that DRM doesn't really have support

Re: [PATCH 3/6] drm/tinydrm: rename mi028qt module to mipi-panel

2017-07-29 Thread David Lechner
On 07/29/2017 02:17 PM, David Lechner wrote: This renames the mi028qt module to mipi-panel so that it can be used for other types of panels as well. There is no reason to copy a bunch of boiler-plate code for each panel or controller. Signed-off-by: David Lechner --- .../devicetree/bindings/d

Re: [PATCH] thermal: intel_pch_thermal: Read large temp values correctly

2017-07-29 Thread Srinivas Pandruvada
On Wed, 2017-07-19 at 17:47 -0700, Ed Swierk wrote: > On all supported platforms, the TS Reading (TSR) field in the > Temperature (TEMP) register is 9 bits wide. Values above 0x100 (78 > degrees C) are plausible, so don't mask out the topmost bit. And the > register itself is 16 bits wide, so use r

Re: [PATCH] thermal: fix INTEL_SOC_DTS_IOSF_CORE dependencies

2017-07-29 Thread Pandruvada, Srinivas
On Fri, 2017-07-21 at 18:16 +0200, Arnd Bergmann wrote: > We get a Kconfig warning when selecting this without also enabling > CONFIG_PCI: > > warning: (X86_INTEL_LPSS && INTEL_SOC_DTS_IOSF_CORE && > SND_SST_IPC_ACPI && MMC_SDHCI_ACPI && PUNIT_ATOM_DEBUG) selects > IOSF_MBI which has unmet direct

[PATCH 5/6] drm/tinydrm: add support for LEGO MINDSTORMS EV3 LCD

2017-07-29 Thread David Lechner
LEGO MINDSTORMS EV3 has an LCD with a ST7586 controller. This adds a new module for the ST7586 controller with parameters for the EV3 LCD dispay. Signed-off-by: David Lechner --- .../devicetree/bindings/display/mipi-panel.txt | 2 +- drivers/gpu/drm/tinydrm/Kconfig| 1 +

[PATCH 1/6] drm/tinydrm: Add parameter for MIPI DCS pixel format

2017-07-29 Thread David Lechner
This adds a parameter for MIPI DCS pixel format to mipi_dbi_init(). This is in preparation for supporting displays that don't use a 16bpp memory layout. Signed-off-by: David Lechner --- drivers/gpu/drm/tinydrm/mi0283qt.c | 3 ++- drivers/gpu/drm/tinydrm/mipi-dbi.c | 21 ++--- in

[PATCH 6/6] ARM: dts: da850-lego-ev3: Add node for LCD display

2017-07-29 Thread David Lechner
This adds a new node for the LEGO MINDSTORMS EV3 LCD display. Signed-off-by: David Lechner --- arch/arm/boot/dts/da850-lego-ev3.dts | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts b/arch/arm/boot/dts/da850-lego-ev3.dts index 459

[PATCH 4/6] drm/tinydrm: mipi-panel: refactor to use driver id

2017-07-29 Thread David Lechner
This refactors the mipi-panel module to use the driver id for panel-specific data. This is in preparation for adding additional panels. Signed-off-by: David Lechner --- drivers/gpu/drm/tinydrm/mipi-panel.c | 40 include/drm/tinydrm/mipi-dbi.h | 2 ++ 2

[PATCH 3/6] drm/tinydrm: rename mi028qt module to mipi-panel

2017-07-29 Thread David Lechner
This renames the mi028qt module to mipi-panel so that it can be used for other types of panels as well. There is no reason to copy a bunch of boiler-plate code for each panel or controller. Signed-off-by: David Lechner --- .../devicetree/bindings/display/mipi-panel.txt | 27 ++ .../bindings

[PATCH 2/6] drm/tinydrm: add helpers for ST7586 controllers

2017-07-29 Thread David Lechner
This adds helper functions and support for ST7586 controllers. These controllers have an unusual memory layout where 3 pixels are packed into 1 byte. +---+-+ | bit | 7 6 5 4 3 2 1 0 | +---+-+ | pixel | 0 0 0 1 1 1 2 2 | +---+-+ So, the

[PATCH 0/6] Support for LEGO MINDSTORMS EV3 LCD display

2017-07-29 Thread David Lechner
The goal of this series is to get the built-in LCD of the LEGO MINDSTORMS EV3 working. But, most of the content here is building up the infrastructure to do that. The controller used in the EV3 uses MIPI commands, but it uses a different memory layout. The current tinydrm stuff is hard-coded for R

Re: [PATCH 4/5] mtd: spi-nor: Add driver for Adaptrum Anarion QSPI controller

2017-07-29 Thread kbuild test robot
Hi Alexandru, [auto build test WARNING on arc/for-next] [also build test WARNING on v4.13-rc2 next-20170728] [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/Alexandru-Gagniuc/Initial-support-for-

[PATCH v5 1/3] sparc64: Support huge PUD case in get_user_pages

2017-07-29 Thread Nitin Gupta
get_user_pages() is used to do direct IO. It already handles the case where the address range is backed by PMD huge pages. This patch now adds the case where the range could be backed by PUD huge pages. Signed-off-by: Nitin Gupta --- arch/sparc/include/asm/pgtable_64.h | 15 +++-- arch/s

[PATCH v5 2/3] sparc64: Add 16GB hugepage support

2017-07-29 Thread Nitin Gupta
Adds support for 16GB hugepage size. To use this page size use kernel parameters as: default_hugepagesz=16G hugepagesz=16G hugepages=10 Testing: Tested with the stream benchmark which allocates 48G of arrays backed by 16G hugepages and does RW operation on them in parallel. Orabug: 25362942 Si

[PATCH v5 3/3] sparc64: Cleanup hugepage table walk functions

2017-07-29 Thread Nitin Gupta
Flatten out nested code structure in huge_pte_offset() and huge_pte_alloc(). Signed-off-by: Nitin Gupta --- arch/sparc/mm/hugetlbpage.c | 54 + 1 file changed, 20 insertions(+), 34 deletions(-) diff --git a/arch/sparc/mm/hugetlbpage.c b/arch/sparc/mm/

Re: [PATCH Y.A. RESEND] MAINTAINERS: fix alpha. ordering

2017-07-29 Thread Joe Perches
On Fri, 2017-07-28 at 15:30 -0700, Linus Torvalds wrote: > On Thu, Jul 27, 2017 at 8:12 PM, Joe Perches wrote: > > > > I think it's better to centralize the MAINTAINERS > > location in /MAINTAINERS/ than spread > > them all over the tree given how many subsystems and > > maintainerships are also

Re: [PATCH] soc: ti: knav: Add a NULL pointer check for kdev in knav_pool_create

2017-07-29 Thread kbuild test robot
-check-for-kdev-in-knav_pool_create/20170729-143239 base: https://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone.git next config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https

[PATCH] xen/events: Fix interrupt lost during irq_disable and irq_enable

2017-07-29 Thread Liu Shuo
Here is a device has xen-pirq-MSI interrupt. Dom0 might lost interrupt during driver irq_disable/irq_enable. Here is the scenario, 1. irq_disable -> disable_dynirq -> mask_evtchn(irq channel) 2. dev interrupt raised by HW and Xen mark its evtchn as pending 3. irq_enable -> startup_pirq -> eoi_pi

[PATCH] md: replace seq_release_private with seq_release

2017-07-29 Thread Cihangir Akturk
Since commit f15146380d28 ("fs: seq_file - add event counter to simplify poll() support"), md.c code has been no longer used the private field of the struct seq_file, but seq_release_private() has been continued to be used to release the allocated seq_file. This seems to have been forgotten. So con

Re: [PATCH v2 02/10] drivers/hwmon/occ: Add command transport method for P8 and P9

2017-07-29 Thread kbuild test robot
-Controller-OCC-hwmon-driver/20170729-233004 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree

MikeeUSA warning (Re: Yes you have standing to sue GRSecurity.)

2017-07-29 Thread Adam Borowski
Note that this is quite clearly yet another of MikeeUSA's sockpuppets. And you guys really don't want to be caught in another of his troll threads. Yeah, GRsecurity is a problem, but don't let our dear Mikee milk it. -- ⢀⣴⠾⠻⢶⣦⠀ What Would Jesus Do, MUD/MMORPG edition: ⣾⠁⢰⠒⠀⣿⡁ • multiplay with

[PATCH] net-next: stmmac: dwmac-sun8i: fix of_table.cocci warnings

2017-07-29 Thread Julia Lawall
b.com/0day-ci/linux/commits/Corentin-Labbe/dt-bindings-net-add-compatible-for-internal-sun8i-h3-sun8i-v3s-PHYs/20170729-174950 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next dwmac-sun8i.c |1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/stmi

blk-mq breaks suspend even with runtime PM patch

2017-07-29 Thread Oleksandr Natalenko
Hello Jens, Christoph. Unfortunately, even with "block: disable runtime-pm for blk-mq" patch applied blk-mq breaks suspend to RAM for me. It is reproducible on my laptop as well as in a VM. I use complex disk layout involving MD, LUKS and LVM, and managed to get these warnings from VM via seri

Re: Yes you have standing to sue GRSecurity

2017-07-29 Thread Paul G. Allen
I have not contributed to the kernel for some time (I have been working on some stuff, but nothing that's been contributed), so I don't know if any of my code would be infringed (or if it's even in the latest kernels). My work was on AGP and VIA drivers, so I am wondering if GRSecurity's patches a

Re: [RESEND PATCH 2/6] ipc: mqueue: Replace timespec with timespec64

2017-07-29 Thread Richard Guy Briggs
On 2017-07-28 11:52, Deepa Dinamani wrote: > struct timespec is not y2038 safe. Replace > all uses of timespec by y2038 safe struct timespec64. > > Even though timespec is used here to represent timeouts, > replace these with timespec64 so that it facilitates > in verification by creating a y2038

Re: wake_wide mechanism clarification

2017-07-29 Thread Mike Galbraith
On Sat, 2017-07-29 at 01:01 -0700, Joel Fernandes wrote: > Hi Mike, > > I have take spent some time understanding the email thread and > previous discussions. Unfortunately the second condition we are > checking for in the wake_wide still didn't make sense to me (mentioned > below) :-( > > On Fri

  1   2   >