Re: [PATCH] clocksource/drivers/sp804: make CONFIG_ARM_TIMER_SP804 selectable again

2019-08-16 Thread Thomas Gleixner
Helmut, On Fri, 16 Aug 2019, Helmut Grohne wrote: > I also note that there are likely more instances for this pattern. > Should they be fixed in a similar way? You can find a lot using the > following incantation: > > $ git describe --tags > v5.3-rc4 > $ git ls-files -- "*/Kconfig" |

Re: [PATCH] MAINTAINERS, x86/CPU: Tony Luck will maintain asm/intel-family.h

2019-08-16 Thread Thomas Gleixner
On Thu, 15 Aug 2019, Luck, Tony wrote: > >From 093bf8cd02f4c7a3fa256c2cf7302014190e2840 Mon Sep 17 00:00:00 2001 > From: Tony Luck > Date: Thu, 15 Aug 2019 11:16:24 -0700 > Subject: [PATCH] x86/cpu: Explain Intel model naming convention > > Dave Hansen spelled out the rules in an e-mail: > > ht

Re: [RFC PATCH 00/15] acrn: add the ACRN driver module

2019-08-16 Thread Greg KH
On Fri, Aug 16, 2019 at 08:39:25AM +0200, Borislav Petkov wrote: > On Fri, Aug 16, 2019 at 10:25:41AM +0800, Zhao Yakui wrote: > > The first three patches are the changes under x86/acrn, which adds the > > required APIs for the driver and reports the X2APIC caps. > > The remaining patches add the

Re: [PATCH] csky: Fixup ioremap function losing

2019-08-16 Thread Christoph Hellwig
On Thu, Aug 15, 2019 at 07:28:57PM +0800, guo...@kernel.org wrote: > From: Guo Ren > > Implement the following apis to meet usage in different scenarios. > > - ioremap (NonCache + StrongOrder) > - ioremap_nocache (NonCache + StrongOrder) > - ioremap_wc (NonCache + WeakOrder )

Re: [RFC PATCH 04/15] drivers/acrn: add the basic framework of acrn char device driver

2019-08-16 Thread Greg KH
On Fri, Aug 16, 2019 at 10:25:45AM +0800, Zhao Yakui wrote: > ACRN hypervisor service module is the important middle layer that allows > the Linux kernel to communicate with the ACRN hypervisor. It includes > the management of virtualized CPU/memory/device/interrupt for other ACRN > guest. The user

Re: possible deadlock in static_key_slow_dec

2019-08-16 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:17da61ae Add linux-next specific files for 20190814 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=158810ac60 kernel config: https://syzkaller.appspot.com/x/.config?x=4733704ca85aa

Re: [PATCH v4 14/21] ARM: dts: imx6ull-colibri: Add sleep mode to fec

2019-08-16 Thread Oleksandr Suvorov
On Mon, Aug 12, 2019 at 5:22 PM Philippe Schenker wrote: > > Do not change the clock as the power for this phy is switched > with that clock. > > Signed-off-by: Philippe Schenker > Acked-by: Marcel Ziswiler Reviewed-by: Oleksandr Suvorov > > --- > > Changes in v4: > - Add Marcel Ziswiler's Ac

Re: [PATCH] powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB

2019-08-16 Thread Greg Kroah-Hartman
On Fri, Aug 16, 2019 at 11:42:22AM +1000, Michael Ellerman wrote: > Greg Kroah-Hartman writes: > > On Thu, Aug 15, 2019 at 02:55:42PM +1000, Alastair D'Silva wrote: > >> From: Alastair D'Silva > >> > >> Heads Up: This patch cannot be submitted to Linus's tree, as the affected > >> assembler func

Re: [PATCH 4.14 00/69] 4.14.139-stable review

2019-08-16 Thread Greg Kroah-Hartman
On Thu, Aug 15, 2019 at 08:37:33PM -0600, shuah wrote: > On 8/14/19 11:00 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.139 release. > > There are 69 patches in this series, all will be posted as a response > > to this one. If anyone has any issues wit

Re: [PATCH 5.2 000/144] 5.2.9-stable review

2019-08-16 Thread Greg Kroah-Hartman
On Fri, Aug 16, 2019 at 12:39:21AM -0600, Kelsey Skunberg wrote: > On Wed, Aug 14, 2019 at 06:59:16PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.2.9 release. > > There are 144 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH] KVM: x86/MMU: Zap all when removing memslot if VM has assigned device

2019-08-16 Thread Paolo Bonzini
On 15/08/19 17:12, Sean Christopherson wrote: > Alex Williamson reported regressions with device assignment when KVM > changed its memslot removal logic to zap only the SPTEs for the memslot > being removed. The source of the bug is unknown at this time, and root > causing the issue will likely be

[PATCH v3 0/10] Add mt7629 and fix mt7628 pwm

2019-08-16 Thread Sam Shih
From: sam shih Changes since v2: - use num-pwms instead of mediatek,num-pwms. - rename the member from num_pwms to fallback_num_pwms to make it more obvious that it doesn't represent the actually used value. - add a dev_warn and a expressive comment to help other developers to not start add

[PATCH v3 4/10] dt-bindings: pwm: add a property "num-pwms"

2019-08-16 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" in example so that we could specify the number of PWM channels via device tree. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Matthias Brugger --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 7 --- 1 file change

[PATCH v3 5/10] arm64: dts: mt7622: add a property "num-pwms" for PWM node

2019-08-16 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" for PWM controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622

[PATCH v3 3/10] pwm: mediatek: use pwm_mediatek as common prefix

2019-08-16 Thread Sam Shih
From: Ryder Lee Use pwm_mediatek as common prefix to match the filename. No functional change intended. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/pwm/pwm-mediatek.c | 119 +++-- 1 file changed, 60 insertions(+), 59 deletions(-) diff --git a/

[PATCH v3 8/10] pwm: mediatek: add new property and fix mt7628 pwm

2019-08-16 Thread Sam Shih
From: sam shih This fix mt7628 pwm during configure from userspace. The SoC is legacy MIPS and has no complex clock tree. This patch add property clock-frequency to the SoC specific data and legacy MIPS SoC need to configure it in DT. This property is use for period calculation. Signed-off-by: S

[PATCH v3 7/10] dt-bindings: pwm: update bindings for MT7629 SoC

2019-08-16 Thread Sam Shih
From: Ryder Lee This updates bindings for MT7629 pwm controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Matthias Brugger --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm

[PATCH v3 1/10] pwm: mediatek: add a property "num-pwms"

2019-08-16 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" to avoid having an endless list of compatibles with no differences for the same driver. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/pwm/pwm-mediatek.c | 35 ++- 1 file changed, 22 insertions(+), 1

[PATCH v3 2/10] pwm: mediatek: allocate the clks array dynamically

2019-08-16 Thread Sam Shih
From: Ryder Lee Instead of using fixed size of arrays, allocate the memory for them based on the information we get from the chips. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/pwm/pwm-mediatek.c | 76 +++--- 1 file changed, 39 insertions(+), 37

Re: [PATCH v9 08/21] iommu/io-pgtable-arm-v7s: Extend MediaTek 4GB Mode

2019-08-16 Thread Yong Wu
On Thu, 2019-08-15 at 12:50 +0100, Will Deacon wrote: > Ok, I think speaking to Robin helped me a bit with this... > > On Thu, Aug 15, 2019 at 06:18:38PM +0800, Yong Wu wrote: > > On Thu, 2019-08-15 at 10:51 +0100, Will Deacon wrote: > > > On Thu, Aug 15, 2019 at 04:47:49PM +0800, Yong Wu wrote: >

[PATCH 10/10] arm: dts: mediatek: add mt7629 pwm support

2019-08-16 Thread Sam Shih
From: sam shih This adds pwm support for MT7629. Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7629.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 9608bc2ccb3f..10f788a93346 100644 --- a/arch/arm/bo

[PATCH v3 9/10] dt-bindings: pwm: update bindings for MT7628 SoC

2019-08-16 Thread Sam Shih
From: sam shih This updates bindings for MT7628 pwm controller. Signed-off-by: Sam Shih --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/

Re: [PATCH] dmaengine: ti: omap-dma: Add cleanup in omap_dma_probe()

2019-08-16 Thread Peter Ujfalusi
On 16/08/2019 9.56, Wenwen Wang wrote: > If devm_request_irq() fails to disable all interrupts, no cleanup is > performed before retuning the error. To fix this issue, invoke > omap_dma_free() to do the cleanup. Thank you, Acked-by: Peter Ujfalusi > Signed-off-by: Wenwen Wang > --- > driver

[PATCH v3 6/10] arm: dts: mt7623: add a property "num-pwms" for PWM node

2019-08-16 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" for PWM controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7623.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index a79f0b6c3429..208e0d19

Re: [PATCH 2/3] x86: cpu: Add new Intel Atom CPU type

2019-08-16 Thread Tanwar, Rahul
On 16/8/2019 2:43 PM, Borislav Petkov wrote: Now to another question: you see how I put my reply to the previous mail *below* the quoted text. Why is yours ontop? Why not put it after mine since you're replying to it, like it is usually done on the mailing lists and thus not confuse the reading

Re: [PATCH v6 03/11] media: uapi: h264: Add the concept of decoding mode

2019-08-16 Thread Hans Verkuil
On 8/14/19 9:59 PM, Ezequiel Garcia wrote: > From: Boris Brezillon > > Some stateless decoders don't support per-slice decoding granularity > (or at least not in a way that would make them efficient or easy to use). > > Expose a menu to control the supported decoding modes. Drivers are > allowed

Re: [PATCH v3 1/10] pwm: mediatek: add a property "num-pwms"

2019-08-16 Thread Uwe Kleine-König
On Fri, Aug 16, 2019 at 03:21:19PM +0800, Sam Shih wrote: > From: Ryder Lee > > This adds a property "num-pwms" to avoid having an endless > list of compatibles with no differences for the same driver. > > Signed-off-by: Ryder Lee > Signed-off-by: Sam Shih > --- > drivers/pwm/pwm-mediatek.c |

Re: [PATCH] libnvdimm: change disk name of virtio pmem disk

2019-08-16 Thread Pankaj Gupta
> > > > This patch adds prefix 'v' in disk name for virtio pmem. > > This differentiates virtio-pmem disks from the pmem disks. > > I don't think the small matter that this device does not support > MAP_SYNC warrants a separate naming scheme. That said I do think we > need to export this attrib

Re: [PATCH 2/3] x86: cpu: Add new Intel Atom CPU type

2019-08-16 Thread Borislav Petkov
On Fri, Aug 16, 2019 at 03:25:51PM +0800, Tanwar, Rahul wrote: > > On 16/8/2019 2:43 PM, Borislav Petkov wrote: > > Now to another question: you see how I put my reply to the previous mail > > *below* the quoted text. Why is yours ontop? Why not put it after mine > > since you're replying to it, l

Re: [PATCH v6 07/11] media: cedrus: Specify H264 startcode and decoding mode

2019-08-16 Thread Hans Verkuil
On 8/14/19 9:59 PM, Ezequiel Garcia wrote: > The cedrus VPU is slice-based and expects V4L2_PIX_FMT_H264_SLICE > buffers to contain H264 slices with no start code. > > Expose this to userspace with the newly added menu control. > > These two controls are specified as mandatory for applications, >

Re: [PATCH v6 09/11] media: hantro: Add core bits to support H264 decoding

2019-08-16 Thread Hans Verkuil
On 8/14/19 9:59 PM, Ezequiel Garcia wrote: > From: Hertz Wong > > Add helpers and patch hantro_{drv,v4l2}.c to prepare addition of H264 > decoding support. > > Signed-off-by: Hertz Wong > Signed-off-by: Boris Brezillon > Tested-by: Philipp Zabel > --- > Changes in v6: > * Fixed duplicated CAB

Re: [PATCH v4 1/3] kasan: support backing vmalloc space with real shadow memory

2019-08-16 Thread Christophe Leroy
Le 15/08/2019 à 02:16, Daniel Axtens a écrit : Hook into vmalloc and vmap, and dynamically allocate real shadow memory to back the mappings. Most mappings in vmalloc space are small, requiring less than a full page of shadow space. Allocating a full shadow page per mapping would therefore be

Re: [PATCH v2 2/3] arm64: allwinner: h6: add I2C nodes

2019-08-16 Thread Maxime Ripard
On Fri, Aug 16, 2019 at 12:17:09PM +0530, Bhushan Shah wrote: > Add device-tree nodes for i2c0 to i2c2, and also add relevant pinctrl > nodes. > > Suggested-by: Icenowy Zheng > Signed-off-by: Bhushan Shah > --- > Changes in v2: > - Add the SoC specific compatible string instead of re-using a31

Re: [PATCH v2 3/3] arm64: allwinner: h6: add i2c0 node in PineH64

2019-08-16 Thread Maxime Ripard
65;5603;1c On Fri, Aug 16, 2019 at 12:17:10PM +0530, Bhushan Shah wrote: > i2c0 bus is exposed by PI-2 BUS in the PineH64, model B. > > Signed-off-by: Bhushan Shah > --- > Changes in v2: > - Don't enable the i2c0 node in PineH64 by default > > arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dt

[PATCH] powerpc/32: Add warning on misaligned copy_page() or clear_page()

2019-08-16 Thread Christophe Leroy
copy_page() and clear_page() expect page aligned destination, and use dcbz instruction to clear entire cache lines based on the assumption that the destination is cache aligned. As shown during analysis of a bug in BTRFS filesystem, a misaligned copy_page() can create bugs that are difficult to lo

RE: [PATCH] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-16 Thread Tony Chuang
> From: Jian-Hong Pan [mailto:jian-h...@endlessm.com] > > There is a mass of jobs between spin lock and unlock in the hardware > IRQ which will occupy much time originally. To make system work more > efficiently, this patch moves the jobs to the soft IRQ (bottom half) to > reduce the time in hardw

答复: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-08-16 Thread chengzhihao
> ubifs_assert(c, p < c->gap_lebs + c->lst.idx_lebs); I've done 50 problem reproduces on different flash devices and made sure that the assertion was not triggered. See record.txt for details. -邮件原件- 发件人: chengzhihao 发送时间: 2019年8月14日 9:20 收件人: 'Richard Weinberger' 抄送: Richard Weinberg

Re: [PATCH v4 3/3] x86/kasan: support KASAN_VMALLOC

2019-08-16 Thread Christophe Leroy
Le 15/08/2019 à 02:16, Daniel Axtens a écrit : In the case where KASAN directly allocates memory to back vmalloc space, don't map the early shadow page over it. If early shadow page is not mapped, any bad memory access will Oops on the shadow access instead of Oopsing on the real bad access

Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-16 Thread Alexandre Belloni
On 16/08/2019 10:46:36+0800, Biwen Li wrote: > Issue: > - # hwclock -w > hwclock: RTC_SET_TIME: Invalid argument > > Why: > - Relative patch: https://lkml.org/lkml/2019/4/3/55 , this patch > will always check for unwritable registers, it will compare reg > with max_regist

Re: [PATCH v3 01/14] PCI/P2PDMA: Introduce private pagemap structure

2019-08-16 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v3 02/14] PCI/P2PDMA: Add provider's pci_dev to pci_p2pdma_pagemap struct

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:36AM -0600, Logan Gunthorpe wrote: > The provider will be needed to figure out how to map a device. > > Link: https://lore.kernel.org/r/20190730163545.4915-3-log...@deltatee.com > Signed-off-by: Logan Gunthorpe > Signed-off-by: Bjorn Helgaas Looks good, Reviewed-b

RE: [PATCH] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-16 Thread Tony Chuang
Hi, A few more questions below > > From: Jian-Hong Pan [mailto:jian-h...@endlessm.com] > > > > There is a mass of jobs between spin lock and unlock in the hardware > > IRQ which will occupy much time originally. To make system work more > > efficiently, this patch moves the jobs to the soft IRQ (

Re: [PATCH v3 03/14] PCI/P2PDMA: Add constants for map type results to upstream_bridge_distance()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:37AM -0600, Logan Gunthorpe wrote: > Add constant flags to indicate how two devices will be mapped or if they > are unsupported. upstream_bridge_distance() will now return the > mapping type and the distance in a passed-by-reference argument. > > This helps annotate t

Re: [PATCH v3 04/14] PCI/P2PDMA: Factor out __upstream_bridge_distance()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:38AM -0600, Logan Gunthorpe wrote: > This is a prep patch to create a second level helper. There are no > functional changes. > > The root complex whitelist code will be moved into this function in a > subsequent patch. > > Link: https://lore.kernel.org/r/20190730163

[ANN] kdevops - Linux kernel development devops framework

2019-08-16 Thread Luis Chamberlain
I'd like to announce my first release of kdevops [0] which I am happy to share with the community. The goal behind this project is to provide a modern devops framework for Linux kernel development. It is not a tests suite, it is designed to *use* *any* test suites, and more importantly, it allows u

Re: [PATCH v3 05/14] PCI/P2PDMA: Apply host bridge whitelist for ACS

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:39AM -0600, Logan Gunthorpe wrote: > When a P2PDMA transfer is rejected due to ACS being set, we can also check > the whitelist and allow the transactions. > > Do this by pushing the whitelist check into the upstream_bridge_distance() > function. > > Link: https://lo

Re: [PATCH v3 06/14] PCI/P2PDMA: Factor out host_bridge_whitelist()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:40AM -0600, Logan Gunthorpe wrote: > Push both PCI devices into the whitelist checking function seeing some > hardware will require us ensuring they are on the same host bridge. > > At the same time we rename root_complex_whitelist() to > host_bridge_whitelist() to ma

Re: Bisected: Kernel 4.14 + has 3 times higher write IO latency than Kernel 4.4 with raid1

2019-08-16 Thread Jinpu Wang
On Wed, Aug 7, 2019 at 2:35 PM Jinpu Wang wrote: > > On Wed, Aug 7, 2019 at 8:36 AM Jinpu Wang wrote: > > > > On Wed, Aug 7, 2019 at 1:40 AM NeilBrown wrote: > > > > > > On Tue, Aug 06 2019, Jinpu Wang wrote: > > > > > > > On Tue, Aug 6, 2019 at 9:54 AM Jinpu Wang > > > > wrote: > > > >> > > >

RE: [PATCH v2 3/9] drm: Rename drm_bridge_timings to drm_timings

2019-08-16 Thread Fabrizio Castro
Hi Greg, hi Laurent, > From: Greg Kroah-Hartman > Sent: 15 August 2019 20:05 > Subject: Re: [PATCH v2 3/9] drm: Rename drm_bridge_timings to drm_timings > > On Thu, Aug 15, 2019 at 09:06:41PM +0300, Laurent Pinchart wrote: > > Hi Greg, > > > > On Thu, Aug 15, 2019 at 04:53:00PM +0200, Greg Kroah

RE: [PATCH net-next] r8152: divide the tx and rx bottom functions

2019-08-16 Thread Hayes Wang
Eric Dumazet [mailto:eric.duma...@gmail.com] > Sent: Friday, August 16, 2019 2:40 PM [...] > tasklet and NAPI are scheduled on the same core (the current > cpu calling napi_schedule() or tasklet_schedule()) > > I would rather not add this dubious tasklet, and instead try to understand > what is wr

Re: [PATCH v3 07/14] PCI/P2PDMA: Whitelist some Intel host bridges

2019-08-16 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH net-next 1/6] net: hns3: add or modify comments

2019-08-16 Thread Huazhong Tan
From: Guojia Liao To explain some code, this patch adds some comments, and modifies or merges some comments to make them more neat. Signed-off-by: Guojia Liao Signed-off-by: Zhongzhu Liu Signed-off-by: Weihang Li Signed-off-by: Guangbin Huang Signed-off-by: Huazhong Tan --- drivers/net/eth

[PATCH net-next 4/6] net: hns3: change print level of RAS error log from warning to error

2019-08-16 Thread Huazhong Tan
From: Xiaofei Tan This patch changes print level of RAS error log from warning to error. Because RAS error and its recovery process could cause application failure. Also uses %u instead of %d when the parameter is unsigned. Signed-off-by: Xiaofei Tan Signed-off-by: Weihang Li Signed-off-by: Hu

[PATCH net-next 6/6] net: hns3: add phy_attached_info() to the hns3 driver

2019-08-16 Thread Huazhong Tan
From: Yonglong Liu This patch adds the call to phy_attached_info() to the hns3 driver to identify which exact PHY drivers and models is in use. Signed-off-by: Yonglong Liu Reviewed-by: Yunsheng Lin Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 2 ++

[PATCH net-next 5/6] net: hns3: prevent unnecessary MAC TNL interrupt

2019-08-16 Thread Huazhong Tan
MAC TNL interrupt is used to collect statistic info about link status changing suddenly when netdev is running. But when stopping netdev, the enabled MAC TNL interrupt is unnecessary, and may add some noises to the statistic info. So this patch disables it before stopping MAC. Fixes: a63457878b12

[PATCH net-next 3/6] net: hns3: fix error and incorrect format

2019-08-16 Thread Huazhong Tan
From: Guojia Liao The pointer type parameter should be declare as const for preventing from its pointed value being unexpected modified. The uninitialized variable can not be return directly. The default return value is 0 if no abnormal result. This patch fixes the preceding two errors, deletes

[PATCH net-next 2/6] net: hns3: modify redundant initialization of variable

2019-08-16 Thread Huazhong Tan
From: Guojia Liao Some temporary variables do not need to be initialized that they will be set before used, so this patch deletes the initialization value of these temporary variables. Signed-off-by: Guojia Liao Signed-off-by: Guangbin Huang Signed-off-by: Huzhong Tan --- drivers/net/etherne

[PATCH net-next 0/6] net: hns3: add some cleanups & bugfix

2019-08-16 Thread Huazhong Tan
This patch-set includes cleanups and bugfix for the HNS3 ethernet controller driver. [patch 01/06 - 03/06] adds some cleanups. [patch 04/06] changes the print level of RAS. [patch 05/06] fixes a bug related to MAC TNL. [patch 06/06] adds phy_attached_info(). Guojia Liao (3): net: hns3: add o

Re: [PATCH v3 08/14] PCI/P2PDMA: Add attrs argument to pci_p2pdma_map_sg()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:42AM -0600, Logan Gunthorpe wrote: > This is to match the dma_map_sg() API which this function will have to call > in an future patch. > > Add a pci_p2pdma_map_sg_attrs() function and helper to call it with no > attributes just like the dma_map_sg() function. > > Lin

Re: [PATCH v3 09/14] PCI/P2PDMA: Introduce pci_p2pdma_unmap_sg()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:43AM -0600, Logan Gunthorpe wrote: > Add pci_p2pdma_unmap_sg() to the two places that call pci_p2pdma_map_sg(). > > This is a prep patch to introduce correct mappings for p2pdma transactions > that go through the root complex. I personally wouldn't split it from actu

Re: [PATCH v3 10/14] PCI/P2PDMA: Factor out __pci_p2pdma_map_sg()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:44AM -0600, Logan Gunthorpe wrote: > Factor out the bus-only mapping into its own static function. No > functional changes. The original pci_p2pdma_map_sg_attrs() will be used to > decide whether this is an appropriate way to map. > > Link: https://lore.kernel.org/r/

Re: [PATCH v3 11/14] PCI/P2PDMA: Store mapping method in an xarray

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:45AM -0600, Logan Gunthorpe wrote: > When upstream_bridge_distance() is called, store the method required to map > the DMA transfers in an xarray so it can be looked up efficiently on the > hot path in pci_p2pdma_map_sg(). > > Link: https://lore.kernel.org/r/201907301

Re: [PATCH v3 12/14] PCI/P2PDMA: dma_map() requests that traverse the host bridge

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:46AM -0600, Logan Gunthorpe wrote: > Any requests that traverse the host bridge will need to be mapped into the > IOMMU, so call dma_map_sg() inside pci_p2pdma_map_sg() when appropriate. > > Similarly, call dma_unmap_sg() inside pci_p2pdma_unmap_sg(). > > Link: https

Re: [PATCH v3 13/14] PCI/P2PDMA: Allow IOMMU for host bridge whitelist

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:47AM -0600, Logan Gunthorpe wrote: > Now that we map the requests correctly we can remove the iommu_present() > restriction. Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v6 2/4] media: stm32-dcmi: trace the supported fourcc/mbus_code

2019-08-16 Thread Sakari Ailus
Hi Hugues, On Wed, Aug 14, 2019 at 03:48:51PM +0200, Hugues Fruchet wrote: > Add a trace of the set of supported fourcc/mbus_code which > intersect between DCMI and source sub-device. > > Signed-off-by: Hugues Fruchet > --- > drivers/media/platform/stm32/stm32-dcmi.c | 12 ++-- > 1 file

Re: [PATCH v3 14/14] PCI/P2PDMA: Update pci_p2pdma_distance_many() documentation

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:48AM -0600, Logan Gunthorpe wrote: > The comment describing pci_p2pdma_distance_many() still referred to > the devices being behind the same root port. This no longer applies > so reword the documentation. Looks good, Reviewed-by: Christoph Hellwig

[PATCH v2 0/3] x86/cpu: Add new Airmont CPU model

2019-08-16 Thread Rahul Tanwar
A forthcoming product uses a new variant of Atom Airmont CPU model. This series adds support for this new CPU model. Patches are baselined upon Linux 5.3-rc4 at below Git tree: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/core v2: * Address review concerns about incorrect patch p

[PATCH v2 1/3] x86/cpu: Use constant definitions for CPU type

2019-08-16 Thread Rahul Tanwar
Replace direct values usage with constant definitions when access CPU models. Signed-off-by: Rahul Tanwar Suggested-by: Andy Shevchenko --- arch/x86/kernel/cpu/intel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/int

Re: [PATCH 1/2] vsprintf: Prevent crash when dereferencing invalid pointers for %pD

2019-08-16 Thread Petr Mladek
On Fri 2019-08-09 10:56:04, Justin He (Arm Technology China) wrote: > > > > -Original Message- > > From: Andy Shevchenko > > Sent: 2019年8月9日 18:52 > > To: Justin He (Arm Technology China) > > Cc: Petr Mladek ; Andy Shevchenko > > ; Sergey Senozhatsky > > ; Geert Uytterhoeven > > ; Lin

[PATCH v2 3/3] x86/cpu: Update init data for new Atom CPU model

2019-08-16 Thread Rahul Tanwar
Update vulnerability init data for the newly added CPU model. Enable setting CPU feature applicable for newly added CPU model. Add TSC MSR freq_desc entry for newly added CPU model. Signed-off-by: Rahul Tanwar --- arch/x86/kernel/cpu/common.c | 1 + arch/x86/kernel/cpu/intel.c | 1 + arch/x86/k

Re: [PATCH net-next] r8152: divide the tx and rx bottom functions

2019-08-16 Thread Eric Dumazet
On 8/16/19 10:10 AM, Hayes Wang wrote: > Eric Dumazet [mailto:eric.duma...@gmail.com] >> Sent: Friday, August 16, 2019 2:40 PM > [...] >> tasklet and NAPI are scheduled on the same core (the current >> cpu calling napi_schedule() or tasklet_schedule()) >> >> I would rather not add this dubious t

Re: [PATCH v4 06/10] modpost: Add modinfo flag to livepatch modules

2019-08-16 Thread Miroslav Benes
Hi, > I cleaned up the build system, and pushed it based on my > kbuild tree. > > Please see: > > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > klp-cleanup This indeed looks much simpler and cleaner (as far as I can judge with my limited kbuild knowledge). We just

Re: [PATCH v2 3/3] arm64: allwinner: h6: add i2c0 node in PineH64

2019-08-16 Thread Bhushan Shah
On Fri, Aug 16, 2019 at 09:52:11AM +0200, Maxime Ripard wrote: > > +/* This i2c interface is exposed on PI-2 BUS, Pin 3 (I2C_SDA) and 5 > > (I2C_SCL) */ > > +&i2c0 { > > + status = "disabled"; > > +}; > > This property is set to disabled in the DTSI already I added this node here with disabled

Re: WARNING in is_bpf_text_address

2019-08-16 Thread Will Deacon
On Thu, Aug 15, 2019 at 06:39:56PM -0700, Bart Van Assche wrote: > On 8/15/19 12:51 AM, Will Deacon wrote: > > On Sat, Aug 10, 2019 at 05:24:06PM -0700, syzbot wrote: > > > The bug was bisected to: > > > > > > commit a0b0fd53e1e67639b303b15939b9c653dbe7a8c4 > > > Author: Bart Van Assche > > > Dat

Re: [PATCH v2 2/3] arm64: allwinner: h6: add I2C nodes

2019-08-16 Thread Bhushan Shah
On Fri, Aug 16, 2019 at 09:50:31AM +0200, Maxime Ripard wrote: > On Fri, Aug 16, 2019 at 12:17:09PM +0530, Bhushan Shah wrote: > > Add device-tree nodes for i2c0 to i2c2, and also add relevant pinctrl > > nodes. > > > > Suggested-by: Icenowy Zheng > > Signed-off-by: Bhushan Shah > > --- > > Chang

[PATCH v2 2/3] x86/cpu: Add new Intel Atom CPU model name

2019-08-16 Thread Rahul Tanwar
Add a new variant of Intel Atom Airmont CPU model. Signed-off-by: Rahul Tanwar --- arch/x86/include/asm/intel-family.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/intel-family.h b/arch/x86/include/asm/intel-family.h index 0278aa66ef62..cbbb8250370f 100644 --- a/arch

Re: [PATCH 2/2] lib/test_printf: add test of null/invalid pointer dereference for dentry

2019-08-16 Thread Petr Mladek
On Fri 2019-08-09 09:24:57, Jia He wrote: > This add some additional test cases of null/invalid pointer dereference > for dentry and file (%pd and %pD) > > Signed-off-by: Jia He > --- > lib/test_printf.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/lib/test_printf.c b/lib/tes

Re: [PATCH v4 4/8] printk: Replace strncmp with str_has_prefix

2019-08-16 Thread Petr Mladek
On Thu 2019-08-15 23:33:01, Chuhong Yuan wrote: > On Thu, Aug 15, 2019 at 9:52 PM Petr Mladek wrote: > > > > On Thu 2019-08-15 16:50:33, Sergey Senozhatsky wrote: > > > On (08/14/19 12:49), Petr Mladek wrote: > > > > On Fri 2019-08-09 15:10:34, Chuhong Yuan wrote: > > > > > strncmp(str, const, len

[PATCH v1 04/63] Input: atmel_mxt_ts - split large i2c transfers into blocks

2019-08-16 Thread Jiada Wang
From: Nick Dyer On some firmware variants, the size of the info block exceeds what can be read in a single transfer. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 74c4f5277cfa403d43fafc404119dc57a08677db) [gdavis: Forward port and fix conflicts due to v4.14.51 co

[PATCH v1 01/63] Input: introduce input_mt_report_slot_inactive

2019-08-16 Thread Jiada Wang
input_mt_report_slot_state() ignores the tool when the slot is closed. which has caused a bit of confusion. This patch introduces input_mt_report_slot_inactive() to report slot inactive state. replaces all input_mt_report_slot_state() with input_mt_report_slot_inactive() in case of close of slot, a

[PATCH v1 03/63] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2019-08-16 Thread Jiada Wang
From: Nick Dyer The workaround of reading all messages until an invalid is received is a way of forcing the CHG line high, which means that when using edge-triggered interrupts the interrupt can be acquired. With level-triggered interrupts the workaround is unnecessary. Also, most recent maXTou

[PATCH v1 00/63] atmel_mxt_ts misc

2019-08-16 Thread Jiada Wang
This patch-set forward ports Nick Dyer's work in ndyer/linux github repository as long as some other features and fixes Balasubramani Vivekanandan (4): Input: atmel_mxt_ts: Limit the max bytes transferred in an i2c transaction Input: atmel_mxt_ts: update stale use_retrigen_workaround flag

[PATCH v1 02/63] Input: atmel_mxt_ts - rework sysfs init/remove

2019-08-16 Thread Jiada Wang
From: Nick Dyer An error in the sysfs init may otherwise interfere with the async return from the firmware loader Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 3114584ae77c2b03b6dad87174f010d002e9c05d) [gdavis: Forward port and fixup conflicts. Also fixed sysfs l

RE: [PATCH 2/2] lib/test_printf: add test of null/invalid pointer dereference for dentry

2019-08-16 Thread Justin He (Arm Technology China)
Hi Petr > -Original Message- > From: Petr Mladek > Sent: 2019年8月16日 16:27 > To: Justin He (Arm Technology China) > Cc: Geert Uytterhoeven ; Sergey Senozhatsky > ; Thomas Gleixner ; > Andy Shevchenko ; linux- > ker...@vger.kernel.org; Kees Cook ; Steven > Rostedt (VMware) ; Shuah Khan > ;

[PATCH v1 22/63] Input: atmel_mxt_ts - combine bootloader version query with probe

2019-08-16 Thread Jiada Wang
From: Nick Dyer This removes some complexity from the bootloader state machine, and means that we always output some debug about the version as soon as we start talking to the bootloader. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit a2d141f170c80fea6663af98aab0b

[PATCH v1 21/63] Input: atmel_mxt_ts - refactor code to enter bootloader into separate func

2019-08-16 Thread Jiada Wang
From: Nick Dyer Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit bedd706a32522b946467e15f4f4f24de86a1b4d7) [gdavis: Resolve forward port conflicts due to applying upstream commit 96a938aa214e ("Input: atmel_mxt_ts - remove platform data support").]

[PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function. 'hrtimer_forward_now()' returns zero due to bigger backward time drift. This causes timerfd_read to return 0. As per man pa

2019-08-16 Thread arul . jeniston
From: ARUL JENISTON MC --- fs/timerfd.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fs/timerfd.c b/fs/timerfd.c index 6a6fc8aa1de7..f5094e070e9a 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c @@ -284,8 +284,16 @@ static ssize_t timerfd_read(struct file *file,

[PATCH v1 28/63] Input: atmel_mxt_ts - implement I2C retries

2019-08-16 Thread Jiada Wang
From: Nick Dyer Some maXTouch chips (eg mXT1386) will not respond on the first I2C request when they are in a sleep state. It must be retried after a delay for the chip to wake up. Signed-off-by: Nick Dyer Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit 63fd7a2cd03c3

[PATCH v1 23/63] Input: atmel_mxt_ts - improve bootloader state machine handling

2019-08-16 Thread Jiada Wang
From: Nick Dyer The code is much clearer if we switch on the actual state the bootloader is in, rather than the state we want it to be in, and allows the removal of a goto retry tangle. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 463e15ee95ee6e6274017ff645839db

[PATCH v1 20/63] Input: atmel_mxt_ts - refactor firmware flash to extract context into struct

2019-08-16 Thread Jiada Wang
From: Nick Dyer Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 1bbe20ff3dcd6612e7942c495929eae5c138ece2) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 59 +++- 1 file changed, 36 inser

[PATCH v1 24/63] Input: atmel_mxt_ts - check firmware format before entering bootloader

2019-08-16 Thread Jiada Wang
From: Nick Dyer Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit d691d3ee6c6de84b38464a423207b3e23cb9dc3a) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletion

[PATCH v1 26/63] Input: atmel_mxt_ts - make bootloader interrupt driven

2019-08-16 Thread Jiada Wang
From: Nick Dyer Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 67a3eea0cfc724c3c2a7410ac064f74227c7c6ef) [gdavis: Resolve forward port conflicts due to applying upstream commit 96a938aa214e ("Input: atmel_mxt_ts - remove platform data support").]

[PATCH v1 27/63] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2019-08-16 Thread Jiada Wang
From: Nick Dyer The path of enabling the IRQ in the probe function is not safe in level triggered operation, if it was already powered up and there is a message waiting on the device (eg finger down) because the object table has not yet been read. This forces the ISR into a hard loop. Delay enab

[PATCH v1 25/63] Input: atmel_mxt_ts - rename bl_completion to chg_completion

2019-08-16 Thread Jiada Wang
From: Nick Dyer Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit dda8453bfb44216645ede798918a314d4fca2481) [gdavis: Resolve forward port conflicts due to applying upstream commit 96a938aa214e ("Input: atmel_mxt_ts - remove platform data support").]

[PATCH v1 29/63] Input: atmel_mxt_ts - orientation is not present in hover

2019-08-16 Thread Jiada Wang
From: Nick Dyer When in hover, the orientation information is not sent Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 0c885d5bd276bd9240c43aa046fc407cbe2ae864) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c

Re: [PATCH 14/22] ARM: omap1: use pci_ioremap_io() for omap_cf

2019-08-16 Thread Aaro Koskinen
Hi, On Wed, Aug 14, 2019 at 12:36:40PM +0200, Arnd Bergmann wrote: > On Wed, Aug 14, 2019 at 9:49 AM Tony Lindgren wrote: > > * Arnd Bergmann [190813 19:34]: > > > -#define OMAP1_IO_OFFSET0x0100 /* Virtual IO > > > = 0xfefb */ > > > +#define OMAP1_IO_OFFSET

[PATCH v1 49/63] Input: Atmel: Improve error handling in mxt_initialize_input_device()

2019-08-16 Thread Jiada Wang
From: Deepak Das Currently Driver probe continues with a warning message when it fails to get the proper multitouch object configurations like TouchScreen resolution. But Driver probe should fail in case of above scneario because it will not behave as expected without the proper touchscreen conf

[PATCH v1 46/63] Input: Atmel: improve error handling in mxt_initialize()

2019-08-16 Thread Jiada Wang
From: Deepak Das Currently mxt_initialize() tries to probe bootloader mode even if valid bootloader address is not specified. This commit modifies mxt_initialize() to return error if Device is not in appmode and bootloader address is not specified. This commit also returns error code from mxt_s

[PATCH v1 45/63] Input: Atmel: improve error handling in mxt_start()

2019-08-16 Thread Jiada Wang
From: Deepak Das mxt_start() does not return error in any of the failure cases which will allow input_dev->open() to return success even in case of any failure. This commit modifies mxt_start() to return error in failure cases. Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-o

[PATCH v1 47/63] Input: Atmel: improve error handling in mxt_update_cfg()

2019-08-16 Thread Jiada Wang
From: Deepak Das mxt_update_cfg() failed to propagate the error code from mxt_init_t7_power_cfg() so return the error code. Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 +++- 1 file changed, 3 insertions(+

  1   2   3   4   5   6   7   8   9   >