Re: [PATCH] ARM: amba: Fix leak of driver_override attribute value

2018-09-19 Thread Geert Uytterhoeven
On Thu, Sep 20, 2018 at 1:48 AM Trent Piepho wrote: > If driver_override was set when a device was released the string would > not be kfree'ed in amba_device_release and thus leaked when the amba > device was freed. > > Cc: Russell King > Cc: Todd Kjos > Cc: Geert Uytterhoeven > Cc: Greg Kroah-

[PATCH 1/4] dt-bindings: dma: uart: add uart dma bindings

2018-09-19 Thread Long Cheng
add uart dma bindings Signed-off-by: Long Cheng --- .../devicetree/bindings/dma/8250_mtk_dma.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/8250_mtk_dma.txt diff --git a/Documentation/devicetree/bindings/dma/8250

[PATCH 0/4] add uart DMA function

2018-09-19 Thread Long Cheng
In Mediatek SOCs, the uart can support DMA function. Base on DMA engine formwork, we add the DMA code to support uart. And put the code under drivers/dma. This series contains document bindings, Kconfig to control the function enable or not, device tree including interrupt and dma device node, t

[PATCH 2/4] dmaengine: mtk_uart_dma: add Mediatek uart DMA support

2018-09-19 Thread Long Cheng
In DMA engine framework, add 8250 mtk dma to support it. Signed-off-by: Long Cheng --- drivers/dma/8250_mtk_dma.c | 1049 drivers/dma/Kconfig| 11 + drivers/dma/Makefile |1 + 3 files changed, 1061 insertions(+) create mode 100644

[PATCH 3/4] serial: 8250-mtk: add uart DMA support

2018-09-19 Thread Long Cheng
Modify uart register to support DMA function. Signed-off-by: Long Cheng --- drivers/tty/serial/8250/8250_mtk.c | 211 +++- 1 file changed, 210 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c inde

[PATCH 4/4] arm: dts: mt2701: add uart APDMA to device tree

2018-09-19 Thread Long Cheng
1. add uart APDMA controller device node 2. add uart 0/1/2/3 DMA function 3. uart0 is console, So disable DMA 4. enable uart2 port to test DMA function. Signed-off-by: Long Cheng --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 + 1 file changed, 50 insertions(+)

[PATCH] Don't hardcode path as it is architecture dependent

2018-09-19 Thread Ritesh Raj Sarraf
The current code fails to run on amd64 because of hardcoded reference to i386 Signed-off-by: Ritesh Raj Sarraf --- arch/um/drivers/port_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/drivers/port_user.c b/arch/um/drivers/port_user.c index 9a8e1b64c22e..5f56d11

Re: [PATCH] arm64: dts: rockchip: add initial dts support for Rockpro64 board

2018-09-19 Thread Deepak Das
Hi Akash, On Wednesday 19 September 2018 08:13 PM, Akash Gajjar wrote: > This patch basic node support for Rockpro64 board and make it able to bring > up. > Please modify the commit message to make it more clear. > Peripheral Works > - SDIO, Sdcard > - USB 2.0, 3.0 > - Leds > > Not working: >

[PATCH V2 3/3] mmc: sdhci-msm: Use internal voltage control

2018-09-19 Thread Veerabhadrarao Badiganti
From: Vijay Viswanath Some sdhci-msm controllers require that voltage switching be done after the HW is ready for it. The HW informs its readiness through power irq. The voltage switching should happen only then. Use the quirk for internal voltage switching and then control the voltage switching

[PATCH V2 1/3] mmc: sdhci: Allow platform controlled voltage switching

2018-09-19 Thread Veerabhadrarao Badiganti
From: Vijay Viswanath Some controllers can have internal mechanism to inform the SW that it is ready for voltage switching. For such controllers, changing voltage before the HW is ready can result in various issues. During setup/cleanup of host, check whether regulator enable/disable was already

[PATCH V2 2/3] dt-bindings: mmc: sdhci-msm: Add entries for passing load values

2018-09-19 Thread Veerabhadrarao Badiganti
From: Vijay Viswanath The load a particular sdhc controller should request from a regulator is device specific and hence each device should individually vote for the required load. Signed-off-by: Vijay Viswanath Signed-off-by: Veerabhadrarao Badiganti --- Documentation/devicetree/bindings/mmc

[PATCH -next] platform: goldfish: pipe: Make symbol 'goldfish_pipe_dev' static

2018-09-19 Thread Wei Yongjun
Fixes the following sparse warning: drivers/platform/goldfish/goldfish_pipe.c:214:26: warning: symbol 'goldfish_pipe_dev' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/platform/goldfish/goldfish_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v2 2/2] Compiler Attributes: naked can be shared

2018-09-19 Thread Stefan Agner
On 19.09.2018 16:00, Miguel Ojeda wrote: > On Wed, Sep 19, 2018 at 11:14 PM, Greg Kroah-Hartman > wrote: >> On Tue, Sep 18, 2018 at 08:56:04PM +0200, Miguel Ojeda wrote: >>> Hi Greg, >>> >> >>> Since Linus/Andrew/you >>> didn't comment on whether you wanted or not this for 4.19, we are >>> assumin

Re: [PATCH V8 5/6] clocksource: add C-SKY SMP timer

2018-09-19 Thread Guo Ren
On Thu, Sep 20, 2018 at 01:39:31PM +0800, Guo Ren wrote: > +struct clocksource csky_clocksource = { > + .name = "csky", > + .rating = 400, > + .mask = CLOCKSOURCE_MASK(32), > + .flags = CLOCK_SOURCE_IS_CONTINUOUS, > + .read = clksrc_read, > +}; > + > +#define CPUHP_AP_CSK

Re: [PATCH V5 1/3] irqchip: add C-SKY irqchip drivers

2018-09-19 Thread Guo Ren
Hi Marc, On Tue, Sep 18, 2018 at 04:41:22PM +0100, Marc Zyngier wrote: > > +#define IPI_IRQ15 > > + > > It feels really bizarre that the function that maps the interrupt is > specific to the interrupt controller, and yet the interrupt number is > defined at the architecture level. I'd expect

[PATCH] Driver core: add bus_find_device_by_of_node

2018-09-19 Thread Silesh C V
Similar to bus_find_device_by_name, but finds the device having a specific of_node. Signed-off-by: Silesh C V --- drivers/base/bus.c | 21 + include/linux/device.h | 3 +++ 2 files changed, 24 insertions(+) diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 8bfd

[PATCH V8 4/6] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-09-19 Thread Guo Ren
- Dt-bindings doc about C-SKY Multi-processors interrupt controller. Signed-off-by: Guo Ren --- .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,mpint

[PATCH V8 6/6] dt-bindings: timer: C-SKY Multi-processor timer

2018-09-19 Thread Guo Ren
- Dt-bingdings doc for C-SKY SMP system setting. Signed-off-by: Guo Ren --- .../devicetree/bindings/timer/csky,mptimer.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,mptimer.txt diff --git a/Documentation/d

[PATCH V8 2/6] csky: remove irq_mapping from smp.c

2018-09-19 Thread Guo Ren
- Add irq_mapping return check - Move IPI_IRQ into irq-driver - remove irq_mapping from smp.c to irq-driver - Add set_ipi_irq_mapping api to irq-driver - update asm/smp.h Signed-off-by: Guo Ren --- arch/csky/include/asm/smp.h | 4 +++- arch/csky/kernel/smp.c | 27 +++--

[PATCH V8 3/6] irqchip: add C-SKY SMP interrupt controller

2018-09-19 Thread Guo Ren
- Irq-csky-mpintc is C-SKY smp system interrupt controller and it could support 16 soft irqs, 16 private irqs, and 992 max common irqs. Changelog: - Move IPI_IRQ into the driver - Remove irq_set_default_host() and use set_ipi_irq_mapping() - Change name with upstream feed-back - Change

[PATCH V8 0/6] C-SKY(csky) Linux Kernel Port

2018-09-19 Thread Guo Ren
Because I've sent to Stephen Roth with the linux-4.19-rc3 git-tree for linux-next, I shouldn't rebase any more. https://github.com/c-sky/csky-linux.git#linux-next This patchset include mptimer and mpintc drivers and fixup: - Fixup smp IPI's problems found by Marc Zyngier - Add irq-csky-mpintc.c

[PATCH V8 5/6] clocksource: add C-SKY SMP timer

2018-09-19 Thread Guo Ren
This timer is used by SMP system and use mfcr/mtcr instruction to access the regs. Changelog: - Add CPUHP_AP_CSKY_TIMER_STARTING in cpuhotplug.h - Support csky mp timer alpha version. - Just use low-counter with 32bit width as clocksource. - Coding convention with upstream feed-back. Signed-o

[PATCH V8 1/6] csky/dma: bugfix dma_sync_for_cpu/device

2018-09-19 Thread Guo Ren
ref: https://lkml.org/lkml/2018/5/18/1068 map for_cpu for_device unmap TO_DEV writeback nonewriteback none TO_CPU invalidate invalidate* invalidate invalidate* BIDIR writeback invalidate writeback invalidat

Re: [PATCH] gpiolib: Show correct direction from the beginning

2018-09-19 Thread Linus Walleij
On Wed, Sep 19, 2018 at 4:50 AM Timur Tabi wrote: > On 9/18/18 11:04 PM, Ricardo Ribalda Delgado wrote: > > And should't that be tacked in qcom hardware with something like: > > > > if (!priv->initialized) > > return INPUT; > > > > if you or Timur point me to the harware that was crashing I wo

Re: [PATCH] firmware: Always initialize the fw_priv list object

2018-09-19 Thread Greg Kroah-Hartman
On Wed, Sep 19, 2018 at 06:09:38PM -0700, Bjorn Andersson wrote: > When freeing the fw_priv the item is taken off the list. This causes an > oops in the FW_OPT_NOCACHE case as the list object is not initialized. > > Make sure to initialize the list object regardless of this flag. > > Fixes: 422b3

[PATCH] misc: genwqe: remove duplicated include file

2018-09-19 Thread zhong jiang
module.h has duplicated include. hence just remove redundant include file. Signed-off-by: zhong jiang --- drivers/misc/genwqe/card_base.c | 1 - drivers/misc/genwqe/card_ddcb.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/misc/genwqe/card_base.c b/drivers/misc/genwqe/card_base.c

[PATCH] media: card_utils: remove duplicated include file

2018-09-19 Thread zhong jiang
delay.h and dma-mapping.h have duplicated include. hence just remove redundant file. Signed-off-by: zhong jiang --- drivers/misc/genwqe/card_utils.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/genwqe/card_utils.c b/drivers/misc/genwqe/card_utils.c index f0961ec..3fcb9a2 100

Re: [PATCH] i2c: i2c-qcom-geni: Properly handle DMA safe buffers

2018-09-19 Thread Stephen Boyd
Quoting Wolfram Sang (2018-09-19 13:45:28) > > > But now when I try to use it I'm not exicted when the buffer is bounced > > but we fail to map the buffer with the DMA APIs. For an I2C_M_RD > > Yes, this was reported before and the function to unmap looks different > now as of v4.19-rc2... > > >

linux-next: Tree for Sep 20

2018-09-19 Thread Stephen Rothwell
Hi all, Changes since 20180919: Dropped trees: xarray, ida (temporarily) The input-current tree lost its build failure. I still disabled building some samples in the vfs tree. Non-merge commits (relative to Linus' tree): 4279 4792 files changed, 166265 insertions(+), 93138 dele

Re: [PATCH] IB/mlx4: Remove unnecessary parentheses

2018-09-19 Thread Leon Romanovsky
On Wed, Sep 19, 2018 at 08:32:29PM -0700, Nathan Chancellor wrote: > Clang warns when more than one set of parentheses are used in single > conditional statements. > > drivers/infiniband/hw/mlx4/mcg.c:676:16: warning: equality comparison > with extraneous parentheses [-Wparentheses-equality] >

RE: [RESEND PATCH 1/2] mtd: spi-nor: add macros related to MICRON flash

2018-09-19 Thread Yogesh Narayan Gaur
Hi Tudor, > -Original Message- > From: Tudor Ambarus [mailto:tudor.amba...@microchip.com] > Sent: Wednesday, September 19, 2018 10:00 PM > To: Yogesh Narayan Gaur ; linux- > m...@lists.infradead.org; linux-...@vger.kernel.org > Cc: boris.brezil...@bootlin.com; linux-kernel@vger.kernel.org;

Re: Code of Conduct: Let's revamp it.

2018-09-19 Thread Willy Tarreau
Hi Olof, I expected not to participate to this boring discussion, but I think I need to make a point below : On Thu, Sep 20, 2018 at 02:16:40AM +0100, Olof Johansson wrote: > Another common counter argument is that the code of conduct is > imposing what's appropriate thoughts and opinions on ever

Code of Conduct: Those Ejected should rescind their license grant. (Yes, bare license grants can be rescinded at the will of the grantor)

2018-09-19 Thread unconditionedwitness
The grant is not supported by consideration. It dispenses only largess, and asks for no recompense. It is a bare license. Thus it can be revoked by the grantor at any time. His act of grace bestowed, and his act of propriety can rescind. The free software world is held up muchly by a gentleman's

Code of Conduct: Those Ejected should rescind their license grant.

2018-09-19 Thread unconditionedwitness
The grant is not supported by consideration. It dispenses only largess, and asks for no recompense. It is a bare license. Thus it can be revoked by the grantor at any time. His act of grace bestowed, and his act of propriety can rescind. The free software world is held up muchly by a gentleman's

[PATCH] IB/mlx4: Remove unnecessary parentheses

2018-09-19 Thread Nathan Chancellor
Clang warns when more than one set of parentheses are used in single conditional statements. drivers/infiniband/hw/mlx4/mcg.c:676:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((method == IB_MGMT_METHOD_GET_RESP)) {

[PATCH] IB/nes: Remove unnecessary parentheses

2018-09-19 Thread Nathan Chancellor
Clang warns when more than one set of parentheses are used in single conditional statements. drivers/infiniband/hw/nes/nes_hw.c:1446:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] } while ((temp_phy_data2 == temp_phy_data));

Re: [PATCH 2/2] pinctrl: tegra: move probe to __init section

2018-09-19 Thread kbuild test robot
Hi Stefan, I love your patch! Perhaps something to improve: [auto build test WARNING on tegra/for-next] [also build test WARNING on v4.19-rc4 next-20180919] [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

Re: Code of Conduct: Let's revamp it.

2018-09-19 Thread Theodore Y. Ts'o
On Thu, Sep 20, 2018 at 02:16:40AM +0100, Olof Johansson wrote: > > But there are too many ways this can go wrong, maybe not now or next > > week but in five or ten years, when maybe a different kind of person > > is on the TAB, or maybe external pressure is brought to bear on TAB > > members. >

[PATCH AUTOSEL 4.18 06/56] qed: Prevent a possible deadlock during driver load and unload

2018-09-19 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit eaa50fc59e5841910987e90b0438b2643041f508 ] The MFW manages an internal lock to prevent concurrent hardware (de)initialization of different PFs. This, together with the busy-waiting for the MFW's responses for commands, might lead to a deadlock during concurren

[PATCH AUTOSEL 4.18 04/56] qed: Wait for ready indication before rereading the shmem

2018-09-19 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit f00d25f3154b676fcea4502a25b94bd7f142ca74 ] The MFW might be reset and re-update its shared memory. Upon the detection of such a reset the driver rereads this memory, but it has to wait till the data is valid. This patch adds the missing wait for a data ready i

[PATCH -next] bus: fsl-mc: remove duplicated include

2018-09-19 Thread YueHaibing
Remove duplicated include linux/fsl/mc.h Signed-off-by: YueHaibing --- drivers/bus/fsl-mc/dpbp.c | 1 - drivers/bus/fsl-mc/dpcon.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/bus/fsl-mc/dpbp.c b/drivers/bus/fsl-mc/dpbp.c index 17e3c5d..9003cd3 100644 --- a/drivers/bus/fsl-mc/dp

[PATCH AUTOSEL 4.18 03/56] bus: ti-sysc: Fix module register ioremap for larger offsets

2018-09-19 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 0ef8e3bb974af56346b34393e643d491d9141c66 ] We can have the interconnect target module control registers pretty much anywhere within the module range. The current code attempts an incomplete optimization of the ioremap size but does it wrong and it only works

[PATCH AUTOSEL 4.18 08/56] thermal: of-thermal: disable passive polling when thermal zone is disabled

2018-09-19 Thread Sasha Levin
From: Anson Huang [ Upstream commit 152395fd03d4ce1e535a75cdbf58105e50587611 ] When thermal zone is in passive mode, disabling its mode from sysfs is NOT taking effect at all, it is still polling the temperature of the disabled thermal zone and handling all thermal trips, it makes user confused.

[PATCH AUTOSEL 4.18 17/56] bpf: sockmap: write_space events need to be passed to TCP handler

2018-09-19 Thread Sasha Levin
From: John Fastabend [ Upstream commit 9b2e0388bec8ec5427403e23faff3b58dd1c3200 ] When sockmap code is using the stream parser it also handles the write space events in order to handle the case where (a) verdict redirects skb to another socket and (b) the sockmap then sends the skb but due to me

[PATCH AUTOSEL 4.18 18/56] drm/amdgpu: fix VM clearing for the root PD

2018-09-19 Thread Sasha Levin
From: Christian König [ Upstream commit 8604ffcbf04f8f4f3f55a9e46e5ff948b2ed4290 ] We need to figure out the address after validating the BO, not before. Signed-off-by: Christian König Reviewed-by: Felix Kuehling Reviewed-by: Junwei Zhang Reviewed-by: Huang Rui Signed-off-by: Alex Deucher

[PATCH AUTOSEL 4.18 16/56] tls: possible hang when do_tcp_sendpages hits sndbuf is full case

2018-09-19 Thread Sasha Levin
From: John Fastabend [ Upstream commit 67db7cd249e71f64346f481b629724376d063e08 ] Currently, the lower protocols sk_write_space handler is not called if TLS is sending a scatterlist via tls_push_sg. However, normally tls_push_sg calls do_tcp_sendpage, which may be under memory pressure, that in

[PATCH AUTOSEL 4.18 20/56] amdgpu: fix multi-process hang issue

2018-09-19 Thread Sasha Levin
From: Emily Deng [ Upstream commit 2f40c6eac74a2a60921cdec9e9a8a57e88e31434 ] SWDEV-146499: hang during multi vulkan process testing cause: the second frame's PREAMBLE_IB have clear-state and LOAD actions, those actions ruin the pipeline that is still doing process in the previous frame's work-

[PATCH AUTOSEL 4.18 22/56] tcp_bbr: add bbr_check_probe_rtt_done() helper

2018-09-19 Thread Sasha Levin
From: Kevin Yang [ Upstream commit fb99886224294b2291d267da41395022fa4200e2 ] This patch add a helper function bbr_check_probe_rtt_done() to 1. check the condition to see if bbr should exit probe_rtt mode; 2. process the logic of exiting probe_rtt mode. Fixes: 0f8782ea1497 ("tcp_bbr: add BB

[PATCH AUTOSEL 4.18 21/56] net/ncsi: Fixup .dumpit message flags and ID check in Netlink handler

2018-09-19 Thread Sasha Levin
From: Samuel Mendoza-Jonas [ Upstream commit 3d0371b313b84ba7c16ebf2526a7a34f1c57b19e ] The ncsi_pkg_info_all_nl() .dumpit handler is missing the NLM_F_MULTI flag, causing additional package information after the first to be lost. Also fixup a sanity check in ncsi_write_package_info() to reject

[PATCH AUTOSEL 4.18 24/56] net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES

2018-09-19 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit 3ed614dce3ca9912d22be215ff0f11104b69fe62 ] When enable the config item "CONFIG_ARM64_64K_PAGES", the size of PAGE_SIZE is 65536(64K). But the type of length and page_offset are u16, they will overflow. So change them to u32. Fixes: 6fe6611ff275 ("net: add H

[PATCH AUTOSEL 4.18 38/56] ixgbe: fix driver behaviour after issuing VFLR

2018-09-19 Thread Sasha Levin
From: Sebastian Basierski [ Upstream commit 939b701ad63314f5aa90dcd3d866f73954945209 ] Since VFLR doesn't clear VFMBMEM (VF Mailbox Memory) and is not re-enabling queues correctly we should fix this behavior. Signed-off-by: Sebastian Basierski Tested-by: Andrew Bowers Signed-off-by: Jeff Kirs

[PATCH AUTOSEL 4.18 34/56] ice: Fix a few null pointer dereference issues

2018-09-19 Thread Sasha Levin
From: Anirudh Venkataramanan [ Upstream commit c7f2c42b80ed6009f44e355aefc1e40db9485a9d ] 1) When ice_ena_msix_range() fails to reserve vectors, a devm_kfree() warning was seen in the error flow path. So check pf->irq_tracker before use in ice_clear_interrupt_scheme(). 2) In ice_vsi_cfg()

[PATCH AUTOSEL 4.18 37/56] e1000: ensure to free old tx/rx rings in set_ringparam()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ Upstream commit ee400a3f1bfe7004a3e14b81c38ccc5583c26295 ] In 'e1000_set_ringparam()', the tx_ring and rx_ring are updated with new value and the old tx/rx rings are freed only when the device is up. There are resource leaks on old tx/rx rings when the device is not up. This bug

[PATCH AUTOSEL 4.18 47/56] drm/amdgpu: Update power state at the end of smu hw_init.

2018-09-19 Thread Sasha Levin
From: Rex Zhu [ Upstream commit 2ab4d0e74256fc49b7b270f63c1d1e47c2455abc ] For SI/Kv, the power state is managed by function amdgpu_pm_compute_clocks. when dpm enabled, we should call amdgpu_pm_compute_clocks to update current power state instand of set boot state. this change can fix the oops

[PATCH AUTOSEL 4.18 35/56] ice: Fix potential return of uninitialized value

2018-09-19 Thread Sasha Levin
From: Jesse Brandeburg [ Upstream commit dab0588fb616c1774bbf108eab1749dda4ac6942 ] In ice_vsi_setup_[tx|rx]_rings, err is uninitialized which can result in a garbage value return to the caller. Fix that. Signed-off-by: Jesse Brandeburg Signed-off-by: Anirudh Venkataramanan Tested-by: Tony Br

[PATCH AUTOSEL 4.18 33/56] tools: bpftool: return from do_event_pipe() on bad arguments

2018-09-19 Thread Sasha Levin
From: Quentin Monnet [ Upstream commit 785e76d7a2051a9e28b9134d5388a45b16f5eb72 ] When command line parsing fails in the while loop in do_event_pipe() because the number of arguments is incorrect or because the keyword is unknown, an error message is displayed, but bpftool remains stuck in the l

[PATCH AUTOSEL 4.14 13/25] crypto: cavium/nitrox - fix for command corruption in queue full case with backlog submissions.

2018-09-19 Thread Sasha Levin
From: Srikanth Jampala [ Upstream commit 3d7c82060d1fe65bde4023aac41a0b1bd7718e07 ] Earlier used to post the current command without checking queue full after backlog submissions. So, post the current command only after confirming the space in queue after backlog submissions. Mai

[PATCH AUTOSEL 4.18 51/56] drm/amdgpu: Need to set moved to true when evict bo

2018-09-19 Thread Sasha Levin
From: Emily Deng [ Upstream commit 6ddd9769db4fc11a98bd7e58be1764e47fdb8384 ] Fix the VMC page fault when the running sequence is as below: 1.amdgpu_gem_create_ioctl 2.ttm_bo_swapout->amdgpu_vm_bo_invalidate, as not called amdgpu_vm_bo_base_init, so won't called list_add_tail(&base->bo_list, &bo

[PATCH AUTOSEL 4.14 11/25] e1000: check on netif_running() before calling e1000_up()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ Upstream commit cf1acec008f8d7761aa3fd7c4bca7e17b2d2512d ] When the device is not up, the call to 'e1000_up()' from the error handling path of 'e1000_set_ringparam()' causes a kernel oops with a null-pointer dereference. The null-pointer dereference is triggered in function 'e100

[PATCH AUTOSEL 4.18 39/56] i40e: Fix for Tx timeouts when interface is brought up if DCB is enabled

2018-09-19 Thread Sasha Levin
From: Martyna Szapar [ Upstream commit fa38e30ac73fbb01d7e5d0fd1b12d412fa3ac3ee ] If interface is connected to switch port configured for DCB there are TX timeouts when bringing up interface. Problem started appearing after adding in i40e driver code mqprio hardware offload mode. In function i40

[PATCH AUTOSEL 4.18 42/56] crypto: cavium/nitrox - fix for command corruption in queue full case with backlog submissions.

2018-09-19 Thread Sasha Levin
From: Srikanth Jampala [ Upstream commit 3d7c82060d1fe65bde4023aac41a0b1bd7718e07 ] Earlier used to post the current command without checking queue full after backlog submissions. So, post the current command only after confirming the space in queue after backlog submissions. Mai

[PATCH AUTOSEL 4.18 50/56] ARM: dts: omap4-droid4: Fix emmc errors seen on some devices

2018-09-19 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 2d59bb602314a4b2593fde267734266b5e872dd0 ] Otherwise we can get the following errors occasionally on some devices: mmc1: tried to HW reset card, got error -110 mmcblk1: error -110 requesting status mmcblk1: recovery failed! print_req_error: I/O error, dev m

[PATCH AUTOSEL 4.18 40/56] i40e: fix condition of WARN_ONCE for stat strings

2018-09-19 Thread Sasha Levin
From: Jacob Keller [ Upstream commit 07f3701387dcab3a4fb0166098fb2754a1b927e1 ] Commit 9b10df596bd4 ("i40e: use WARN_ONCE to replace the commented BUG_ON size check") introduced a warning check to make sure that the size of the stat strings was always the expected value. This code accidentally i

[PATCH AUTOSEL 4.14 14/25] hwmon: (ina2xx) fix sysfs shunt resistor read access

2018-09-19 Thread Sasha Levin
From: Lothar Felten [ Upstream commit 3ad867001c91657c46dcf6656d52eb6080286fd5 ] fix the sysfs shunt resistor read access: return the shunt resistor value, not the calibration register contents. update email address Signed-off-by: Lothar Felten Signed-off-by: Guenter Roeck Signed-off-by: Sas

[PATCH AUTOSEL 4.14 18/25] drm/amdgpu: Update power state at the end of smu hw_init.

2018-09-19 Thread Sasha Levin
From: Rex Zhu [ Upstream commit 2ab4d0e74256fc49b7b270f63c1d1e47c2455abc ] For SI/Kv, the power state is managed by function amdgpu_pm_compute_clocks. when dpm enabled, we should call amdgpu_pm_compute_clocks to update current power state instand of set boot state. this change can fix the oops

[PATCH AUTOSEL 4.18 54/56] i2c: i801: Allow ACPI AML access I/O ports not reserved for SMBus

2018-09-19 Thread Sasha Levin
From: Mika Westerberg [ Upstream commit 7fd6d98b89f382d414e1db528e29a67bbd749457 ] Commit 7ae81952cda ("i2c: i801: Allow ACPI SystemIO OpRegion to conflict with PCI BAR") made it possible for AML code to access SMBus I/O ports by installing custom SystemIO OpRegion handler and blocking i80i driv

[PATCH AUTOSEL 4.14 17/25] drm/amdgpu: Enable/disable gfx PG feature in rlc safe mode

2018-09-19 Thread Sasha Levin
From: Rex Zhu [ Upstream commit 8ef23364b654d44244400d79988e677e504b21ba ] This is required by gfx hw and can fix the rlc hang when do s3 stree test on Cz/St. Reviewed-by: Alex Deucher Signed-off-by: Hang Zhou Signed-off-by: Rex Zhu Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --

[PATCH AUTOSEL 4.9 07/14] e1000: ensure to free old tx/rx rings in set_ringparam()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ Upstream commit ee400a3f1bfe7004a3e14b81c38ccc5583c26295 ] In 'e1000_set_ringparam()', the tx_ring and rx_ring are updated with new value and the old tx/rx rings are freed only when the device is up. There are resource leaks on old tx/rx rings when the device is not up. This bug

[PATCH AUTOSEL 4.14 16/25] Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping"

2018-09-19 Thread Sasha Levin
From: Leonard Crestez [ Upstream commit 538d6e9d597584e80514698e24321645debde78f ] This reverts commit 1c86c9dd82f859b474474a7fee0d5195da2c9c1d. That commit followed the reference manual but unfortunately the imx7d manual is incorrect. Tested with ath9k pcie card and confirmed internally. Sig

[PATCH AUTOSEL 4.9 05/14] net: hns: fix skb->truesize underestimation

2018-09-19 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit b1ccd4c0ab6ef499f47dd84ed4920502a7147bba ] skb->truesize is not meant to be tracking amount of used bytes in a skb, but amount of reserved/consumed bytes in memory. For instance, if we use a single byte in last page fragment, we have to account the full size

[PATCH AUTOSEL 4.14 01/25] qed: Wait for ready indication before rereading the shmem

2018-09-19 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit f00d25f3154b676fcea4502a25b94bd7f142ca74 ] The MFW might be reset and re-update its shared memory. Upon the detection of such a reset the driver rereads this memory, but it has to wait till the data is valid. This patch adds the missing wait for a data ready i

[PATCH AUTOSEL 4.18 56/56] x86/pti: Fix section mismatch warning/error

2018-09-19 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit ff924c5a1ec7548825cc2d07980b03be4224ffac ] Fix the section mismatch warning in arch/x86/mm/pti.c: WARNING: vmlinux.o(.text+0x6972a): Section mismatch in reference from the function pti_clone_pgtable() to the function .init.text:pti_user_pagetable_walk_pte(

[PATCH AUTOSEL 4.14 19/25] ata: ftide010: Add a quirk for SQ201

2018-09-19 Thread Sasha Levin
From: Linus Walleij [ Upstream commit 46cb52ad414ac829680d0bb8cc7090ac2b577ca7 ] The DMA is broken on this specific device for some unknown reason (probably badly designed or plain broken interface electronics) and will only work with PIO. Other users of the same hardware does not have this prob

[PATCH AUTOSEL 4.14 20/25] nvme-fcloop: Fix dropped LS's to removed target port

2018-09-19 Thread Sasha Levin
From: James Smart [ Upstream commit afd299ca996929f4f98ac20da0044c0cdc124879 ] When a targetport is removed from the config, fcloop will avoid calling the LS done() routine thinking the targetport is gone. This leaves the initiator reset/reconnect hanging as it waits for a status on the Create_A

[PATCH v4] x86/mm: Expand static page table for fixmap space

2018-09-19 Thread Feng Tang
We met a kernel panic when enabling earlycon, which is due to the fixmap address of earlycon is not statically setup. Currently the static fixmap setup in head_64.S only covers 2M virtual address space, while it actually could be in 4M space with different kernel configurations. So increase the s

[PATCH AUTOSEL 4.14 15/25] hwmon: (adt7475) Make adt7475_read_word() return errors

2018-09-19 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit f196dec6d50abb2e65fb54a0621b2f1b4d922995 ] The adt7475_read_word() function was meant to return negative error codes on failure. Signed-off-by: Dan Carpenter Reviewed-by: Tokunori Ikegami Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- driv

[PATCH AUTOSEL 4.14 04/25] qed: Avoid sending mailbox commands when MFW is not responsive

2018-09-19 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit b310974e041913231b6e3d5d475d4df55c312301 ] Keep sending mailbox commands to the MFW when it is not responsive ends up with a redundant amount of timeout expiries. This patch prints the MCP status on the first command which is not responded, and blocks the foll

[PATCH AUTOSEL 4.14 21/25] ARM: dts: omap4-droid4: Fix emmc errors seen on some devices

2018-09-19 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 2d59bb602314a4b2593fde267734266b5e872dd0 ] Otherwise we can get the following errors occasionally on some devices: mmc1: tried to HW reset card, got error -110 mmcblk1: error -110 requesting status mmcblk1: recovery failed! print_req_error: I/O error, dev m

[PATCH AUTOSEL 4.9 01/14] qed: Wait for ready indication before rereading the shmem

2018-09-19 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit f00d25f3154b676fcea4502a25b94bd7f142ca74 ] The MFW might be reset and re-update its shared memory. Upon the detection of such a reset the driver rereads this memory, but it has to wait till the data is valid. This patch adds the missing wait for a data ready i

[PATCH AUTOSEL 4.14 02/25] qed: Wait for MCP halt and resume commands to take place

2018-09-19 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit 76271809f49056f079e202bf6513d17b0d6dd34d ] Successive iterations of halting and resuming the management chip (MCP) might fail, since currently the driver doesn't wait for these operations to actually take place. This patch prevents the driver from moving forwa

[PATCH AUTOSEL 4.18 55/56] clk: x86: Set default parent to 48Mhz

2018-09-19 Thread Sasha Levin
From: Akshu Agrawal [ Upstream commit bded6c03e398dc6e862dc8301fb9a60175740653 ] System clk provided in ST soc can be set to: 48Mhz, non-spread 25Mhz, spread To get accurate rate, we need it to set it at non-spread option which is 48Mhz. Signed-off-by: Akshu Agrawal Reviewed-by: Daniel Kurtz

[PATCH AUTOSEL 4.14 05/25] thermal: of-thermal: disable passive polling when thermal zone is disabled

2018-09-19 Thread Sasha Levin
From: Anson Huang [ Upstream commit 152395fd03d4ce1e535a75cdbf58105e50587611 ] When thermal zone is in passive mode, disabling its mode from sysfs is NOT taking effect at all, it is still polling the temperature of the disabled thermal zone and handling all thermal trips, it makes user confused.

[PATCH AUTOSEL 4.14 25/25] x86/pti: Fix section mismatch warning/error

2018-09-19 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit ff924c5a1ec7548825cc2d07980b03be4224ffac ] Fix the section mismatch warning in arch/x86/mm/pti.c: WARNING: vmlinux.o(.text+0x6972a): Section mismatch in reference from the function pti_clone_pgtable() to the function .init.text:pti_user_pagetable_walk_pte(

[PATCH AUTOSEL 4.14 24/25] i2c: i801: Allow ACPI AML access I/O ports not reserved for SMBus

2018-09-19 Thread Sasha Levin
From: Mika Westerberg [ Upstream commit 7fd6d98b89f382d414e1db528e29a67bbd749457 ] Commit 7ae81952cda ("i2c: i801: Allow ACPI SystemIO OpRegion to conflict with PCI BAR") made it possible for AML code to access SMBus I/O ports by installing custom SystemIO OpRegion handler and blocking i80i driv

[PATCH AUTOSEL 4.9 06/14] e1000: check on netif_running() before calling e1000_up()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ Upstream commit cf1acec008f8d7761aa3fd7c4bca7e17b2d2512d ] When the device is not up, the call to 'e1000_up()' from the error handling path of 'e1000_set_ringparam()' causes a kernel oops with a null-pointer dereference. The null-pointer dereference is triggered in function 'e100

[PATCH AUTOSEL 4.14 03/25] qed: Prevent a possible deadlock during driver load and unload

2018-09-19 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit eaa50fc59e5841910987e90b0438b2643041f508 ] The MFW manages an internal lock to prevent concurrent hardware (de)initialization of different PFs. This, together with the busy-waiting for the MFW's responses for commands, might lead to a deadlock during concurren

[PATCH AUTOSEL 4.14 22/25] arm/arm64: smccc-1.1: Make return values unsigned long

2018-09-19 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 1d8f574708a3fb6f18c85486d0c5217df893c0cf ] An unfortunate consequence of having a strong typing for the input values to the SMC call is that it also affects the type of the return values, limiting r0 to 32 bits and r{1,2,3} to whatever was passed as an input.

[PATCH AUTOSEL 4.9 09/14] hwmon: (adt7475) Make adt7475_read_word() return errors

2018-09-19 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit f196dec6d50abb2e65fb54a0621b2f1b4d922995 ] The adt7475_read_word() function was meant to return negative error codes on failure. Signed-off-by: Dan Carpenter Reviewed-by: Tokunori Ikegami Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- driv

[PATCH AUTOSEL 4.14 07/25] tls: possible hang when do_tcp_sendpages hits sndbuf is full case

2018-09-19 Thread Sasha Levin
From: John Fastabend [ Upstream commit 67db7cd249e71f64346f481b629724376d063e08 ] Currently, the lower protocols sk_write_space handler is not called if TLS is sending a scatterlist via tls_push_sg. However, normally tls_push_sg calls do_tcp_sendpage, which may be under memory pressure, that in

[PATCH AUTOSEL 4.9 04/14] net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES

2018-09-19 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit 3ed614dce3ca9912d22be215ff0f11104b69fe62 ] When enable the config item "CONFIG_ARM64_64K_PAGES", the size of PAGE_SIZE is 65536(64K). But the type of length and page_offset are u16, they will overflow. So change them to u32. Fixes: 6fe6611ff275 ("net: add H

[PATCH AUTOSEL 4.9 03/14] thermal: of-thermal: disable passive polling when thermal zone is disabled

2018-09-19 Thread Sasha Levin
From: Anson Huang [ Upstream commit 152395fd03d4ce1e535a75cdbf58105e50587611 ] When thermal zone is in passive mode, disabling its mode from sysfs is NOT taking effect at all, it is still polling the temperature of the disabled thermal zone and handling all thermal trips, it makes user confused.

[PATCH AUTOSEL 4.14 06/25] isofs: reject hardware sector size > 2048 bytes

2018-09-19 Thread Sasha Levin
From: Eric Sandeen [ Upstream commit 09a4e0be5826aa66c4ce9954841f110ffe63ef4f ] The largest block size supported by isofs is ISOFS_BLOCK_SIZE (2048), but isofs_fill_super calls sb_min_blocksize and sets the blocksize to the device's logical block size if it's larger than what we ended up with af

[PATCH AUTOSEL 4.18 27/56] ice: Fix multiple static analyser warnings

2018-09-19 Thread Sasha Levin
From: Anirudh Venkataramanan [ Upstream commit 4381147df9098706caa5cf9fda37e53b2fe4871f ] This patch fixes the following smatch errors: 1) Fix "odd binop '0x0 & 0xc'" when performing the bitwise-and with a constant value of zero (ICE_AQC_GSET_RSS_LUT_TABLE_SIZE_128_FLAG). Remove a similar

[PATCH AUTOSEL 4.9 13/14] arm/arm64: smccc-1.1: Handle function result as parameters

2018-09-19 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 755a8bf5579d22eb5636685c516d8dede799e27b ] If someone has the silly idea to write something along those lines: extern u64 foo(void); void bar(struct arm_smccc_res *res) { arm_smccc_1_1_smc(0xbad, foo(), res);

[PATCH AUTOSEL 4.9 10/14] drm/amdgpu: Enable/disable gfx PG feature in rlc safe mode

2018-09-19 Thread Sasha Levin
From: Rex Zhu [ Upstream commit 8ef23364b654d44244400d79988e677e504b21ba ] This is required by gfx hw and can fix the rlc hang when do s3 stree test on Cz/St. Reviewed-by: Alex Deucher Signed-off-by: Hang Zhou Signed-off-by: Rex Zhu Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --

[PATCH AUTOSEL 4.4 5/7] hwmon: (ina2xx) fix sysfs shunt resistor read access

2018-09-19 Thread Sasha Levin
From: Lothar Felten [ Upstream commit 3ad867001c91657c46dcf6656d52eb6080286fd5 ] fix the sysfs shunt resistor read access: return the shunt resistor value, not the calibration register contents. update email address Signed-off-by: Lothar Felten Signed-off-by: Guenter Roeck Signed-off-by: Sas

[PATCH AUTOSEL 4.4 3/7] e1000: check on netif_running() before calling e1000_up()

2018-09-19 Thread Sasha Levin
From: Bo Chen [ Upstream commit cf1acec008f8d7761aa3fd7c4bca7e17b2d2512d ] When the device is not up, the call to 'e1000_up()' from the error handling path of 'e1000_set_ringparam()' causes a kernel oops with a null-pointer dereference. The null-pointer dereference is triggered in function 'e100

[PATCH AUTOSEL 4.4 6/7] hwmon: (adt7475) Make adt7475_read_word() return errors

2018-09-19 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit f196dec6d50abb2e65fb54a0621b2f1b4d922995 ] The adt7475_read_word() function was meant to return negative error codes on failure. Signed-off-by: Dan Carpenter Reviewed-by: Tokunori Ikegami Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- driv

[PATCH AUTOSEL 4.4 7/7] i2c: i801: Allow ACPI AML access I/O ports not reserved for SMBus

2018-09-19 Thread Sasha Levin
From: Mika Westerberg [ Upstream commit 7fd6d98b89f382d414e1db528e29a67bbd749457 ] Commit 7ae81952cda ("i2c: i801: Allow ACPI SystemIO OpRegion to conflict with PCI BAR") made it possible for AML code to access SMBus I/O ports by installing custom SystemIO OpRegion handler and blocking i80i driv

[PATCH AUTOSEL 4.9 12/14] arm/arm64: smccc-1.1: Make return values unsigned long

2018-09-19 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 1d8f574708a3fb6f18c85486d0c5217df893c0cf ] An unfortunate consequence of having a strong typing for the input values to the SMC call is that it also affects the type of the return values, limiting r0 to 32 bits and r{1,2,3} to whatever was passed as an input.

  1   2   3   4   5   6   7   8   >