[PATCH 4/5] iommu/arm-smmu-v3: move arm_smmu_get_step_for_sid() a little ahead

2019-02-18 Thread Zhen Lei
No functional change, just prepare for the next patch. Signed-off-by: Zhen Lei --- drivers/iommu/arm-smmu-v3.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index

[PATCH 1/5] iommu/arm-smmu-v3: make sure the stale caching of L1STD are invalid

2019-02-18 Thread Zhen Lei
Invalidate the caching of the intermediate L1ST descriptor after it has been updated. Signed-off-by: Zhen Lei --- drivers/iommu/arm-smmu-v3.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index

[PATCH 0/5] iommu/arm-smmu-v3: make smmu can be enabled in kdump kernel

2019-02-18 Thread Zhen Lei
This patch series include two parts: 1. Patch1-2 use dummy STE tables with "ste abort" hardware feature to abort unexpected devices accessing. For more details, see the description in patch 2. 2. If the "ste abort" feature is not support, force the unexpected devices in the secondary

[PATCH 2/5] iommu/arm-smmu-v3: make smmu can be enabled in kdump kernel

2019-02-18 Thread Zhen Lei
To reduce the risk of further crash, the device_shutdown() was not called by the first kernel. That means some devices may still working in the secondary kernel. For example, a netcard may still using ring buffer to receive the broadcast messages in the kdump kernel. No events are reported utill

[PATCH 3/5] iommu/arm-smmu-v3: add macro xxx_SIZE to replace xxx_DWORDS shift

2019-02-18 Thread Zhen Lei
The (STRTAB_L1_DESC_DWORDS << 3) appears more than 1 times, replace it with STRTAB_L1_DESC_SIZE to eliminate the duplication. And the latter seems more clear when it's used to calculate memory size. And the same is true for STRTAB_STE_DWORDS and CTXDESC_CD_DWORDS. Signed-off-by: Zhen Lei ---

[PATCH 5/5] iommu/arm-smmu-v3: workaround for STE abort in kdump kernel

2019-02-18 Thread Zhen Lei
Some boards may not implement the STE.config=0b000 correctly, it also reports event C_BAD_STE when a transaction incoming. To make kdump kernel can be worked well in this situation, backup the strtab_base which is used in the first kernel, to make the unexpected devices can reuse the old mapping

Re: [PATCH] powerpc: fix 32-bit KVM-PR lockup and panic with MacOS guest

2019-02-18 Thread Mark Cave-Ayland
On 19/02/2019 04:20, Michael Ellerman wrote: Hi Michael, > Mark Cave-Ayland writes: >> On 08/02/2019 14:45, Christophe Leroy wrote: >> >>> Le 08/02/2019 à 15:33, Mark Cave-Ayland a écrit : Commit 8792468da5e1 "powerpc: Add the ability to save FPU without giving it up" >>> >>>

[PULL] topic/mei-hdcp

2019-02-18 Thread Daniel Vetter
Hi all, topic/mei-hdcp-2019-02-19: Prep patches + headers for the mei-hdcp/i915 component interfaces Also contains the prep work in the component helpers plus adjustements for the snd-hda/i915 component interface. Plus one small static inline in the drm_hdcp.h header that both i915 and mei_hdcp

Re: [RFC][Patch v8 0/7] KVM: Guest Free Page Hinting

2019-02-18 Thread David Hildenbrand
On 19.02.19 01:01, Alexander Duyck wrote: > On Mon, Feb 18, 2019 at 1:04 PM David Hildenbrand wrote: >> >> On 18.02.19 21:40, Nitesh Narayan Lal wrote: >>> On 2/18/19 3:31 PM, Michael S. Tsirkin wrote: On Mon, Feb 18, 2019 at 09:04:57PM +0100, David Hildenbrand wrote: >> So I'm fine

Allwinner SID THS calibration data cell representation?

2019-02-18 Thread Chen-Yu Tsai
Sorry for resurrecting an old discussion, but since someone posted patches for H5 and H6, I thought we should resolve this. I'm working on patches to fix / replace the big-endian issue. On Thu, Sep 6, 2018 at 7:51 PM Maxime Ripard wrote: > > On Thu, Sep 06, 2018 at 01:47:47PM +0200, Philipp

[PATCH] x86/boot/compressed/64: Do not read legacy ROM on EFI system

2019-02-18 Thread Kirill A. Shutemov
EFI systems may not provide legacy ROM. The memory may not be mapped at all. Trying to dereference values in legacy ROM leads to crash on Macbook Pro. Only look for values in the legacy ROM for non-EFI system. Signed-off-by: Kirill A. Shutemov Bugzilla:

[PATCH 8/8] drm/i915/gvt: VFIO device states interfaces

2019-02-18 Thread Yan Zhao
This patch registers 3 VFIO device state regiones of type VFIO_REGION_TYPE_DEVICE_STATE, and subtype VFIO_REGION_SUBTYPE_DEVICE_STATE_CTL, VFIO_REGION_SUBTYPE_DEVICE_STATE_DATA_CONFIG, VFIO_REGION_SUBTYPE_DEVICE_STATE_DATA_DIRTYBITMAP. userspace VFIO will check the existence of those regions to

Re: [RFC PATCH 0/5] MTD: Add Initial Hyperbus support

2019-02-18 Thread Boris Brezillon
+Sergei and Mason who recently worked on an HyperFlash controller. On Tue, 19 Feb 2019 12:06:02 +0530 Vignesh R wrote: > Cypress HyperBus is Low Signal Count, High Performance Double Data Rate Bus > interface between a host system master and one or more slave interfaces. > HyperBus is used to

[PATCH 7/8] drm/i915/gvt: vGPU device config data save/restore interface

2019-02-18 Thread Yan Zhao
The patch implments the gvt interface intel_gvt_save_restore to save/restore vGPU's device config data for live migration. vGPU device config data includes vreg, vggtt, vcfg space, workloads, ppgtt, execlist. It does not include dirty pages in system memory produced by vGPU. Signed-off-by: Yulei

[PATCH 6/8] drm/i915/gvt: Apply g2h adjustment to buffer start gma for dmabuf

2019-02-18 Thread Yan Zhao
From: Yulei Zhang Adjust the buffer start gma in dmabuf for display in host domain. Signed-off-by: Yulei Zhang --- drivers/gpu/drm/i915/gvt/dmabuf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/gvt/dmabuf.c b/drivers/gpu/drm/i915/gvt/dmabuf.c index

[PATCH 5/8] drm/i915/gvt: Align the guest gm aperture start offset for live migration

2019-02-18 Thread Yan Zhao
From: Yulei Zhang As guest gm aperture region start offset is initialized when vGPU created, in order to make sure that start offset is remain the same after migration, align the aperture start offset to 0 for guest. Signed-off-by: Yulei Zhang Signed-off-by: Zhenyu Wang ---

[PATCH 4/8] drm/i915/gvt: Retrieve the guest gm base address from PVINFO

2019-02-18 Thread Yan Zhao
From: Yulei Zhang As after migration the host gm base address will be changed due to resource re-allocation, in order to make sure the guest gm address doesn't change with that to retrieve the guest gm base address from PVINFO. Signed-off-by: Yulei Zhang Signed-off-by: Zhenyu Wang ---

[PATCH 2/8] drm/i915/gvt: Apply g2h adjustment during fence mmio access

2019-02-18 Thread Yan Zhao
From: Yulei Zhang Apply the guest to host gma conversion while guest config the fence mmio registers due to the host gma change after the migration. Signed-off-by: Yulei Zhang --- drivers/gpu/drm/i915/gvt/aperture_gm.c | 6 -- drivers/gpu/drm/i915/gvt/gvt.h | 14 ++ 2

[PATCH 3/8] drm/i915/gvt: Patch the gma in gpu commands during command parser

2019-02-18 Thread Yan Zhao
From: Yulei Zhang Adjust the graphics memory address in gpu commands according to the shift offset in guests' aperture and hidden gm address, and patch the commands before submit to execute. Signed-off-by: Yulei Zhang --- drivers/gpu/drm/i915/gvt/cmd_parser.c | 31 ---

[PATCH 1/8] drm/i915/gvt: Apply g2h adjust for GTT mmio access

2019-02-18 Thread Yan Zhao
From: Yulei Zhang Apply guest to host gma conversion while guest try to access the GTT mmio registers, as after enable live migration the host gma will be changed due to the resourece re-allocation, but guest gma should be remaining unchanged, thus g2h conversion is request for it.

[PATCH 0/8] VFIO Device states interface in GVT

2019-02-18 Thread Yan Zhao
This patchset provides GVT vGPU with device states control and interfaces to get/set device data. Desgin of device state control and interfaces to get/set device data CODE STRUCTURES --- /* Device State region type

Re: [PATCH -next] usb: typec: mux: Fix unsigned comparison with less than zero

2019-02-18 Thread Heikki Krogerus
On Tue, Feb 19, 2019 at 02:57:50PM +0800, YueHaibing wrote: > The return from the call to fwnode_property_read_u16_array is int, > it can be a negative error code however this is being assigned to > an size_t variable 'nval', hence the check is always false. > Fix this by making 'nval' an int. >

[PATCH 1/1] of: reserved_mem: fix reserve memory leak

2019-02-18 Thread pierre Kuo
The __reserved_mem_init_node will call region specific reserved memory init codes, but once all compatibled init codes failed, the memory region will left in memory.reserved and cause leakage. Take cma reserve memory DTS for example, if user declare 1MB size, which is not align to (PAGE_SIZE <<

Re: [PATCH v7 5/6] arm64: dts: mt8183: add pintcrl file

2019-02-18 Thread Nicolas Boichat
On Fri, Feb 15, 2019 at 2:07 PM Erin Lo wrote: > Subject: [PATCH v7 5/6] arm64: dts: mt8183: add pintcrl file minor spelling mistake in the commit title: pinctrl > > This patch adds pinctrl file for mt8183. > > Signed-off-by: Zhiyong Tao > Signed-off-by: Erin Lo > ---

Re: linux-next: build failure after merge of the asm-generic tree

2019-02-18 Thread Hugo Lefeuvre
Hi Stephen, Arnd, > After merging the asm-generic tree, today's linux-next build (powerpc > allnoconfig) failed like this: > ... > Caused by commit > > 8e074c243ed3 ("iomap: add missing const to ioread*/iowrite addr arg") I have prepared a patch addressing this issue, and am currently

Re: [PATCH v2 5/8] arm64: dts: allwinner: Enable AXP803 CHGLED for Olimex boards

2019-02-18 Thread Stefan Mavrodiev
On 2/15/19 8:49 PM, Pavel Machek wrote: On Fri 2019-02-15 13:50:10, Stefan Mavrodiev wrote: Teres-I and A64-OLinuXino commes with populated LED connected to AXP803. So to be used as battery indication, pass the LED control to the charger itself in mode 0 ( FULL while charging, OFF no battery

Re: [PATCH v2 1/8] leds: Add support for AXP20X CHGLED

2019-02-18 Thread Stefan Mavrodiev
On 2/15/19 8:32 PM, Pavel Machek wrote: Hi! On Fri, Feb 15, 2019 at 01:50:06PM +0200, Stefan Mavrodiev wrote: +static ssize_t control_store(struct device *dev, struct device_attribute *attr, +const char *buf, size_t size) +{ + struct led_classdev *cdev =

Re: [PATCH 2/4] pwm: atmel: add support for controllers with 32 bit counters

2019-02-18 Thread Uwe Kleine-König
Hello Claudiu, On Mon, Jan 21, 2019 at 12:30:53PM +, claudiu.bez...@microchip.com wrote: > From: Claudiu Beznea > > New SAM9X60's PWM controller use 32 bits counters thus it could generate > signals with higher period and duty cycles. Update the current driver > to work with old controller

Re: [PATCH v2 05/15] dt-bindings: timer: Add Milbeaut M10V timer description

2019-02-18 Thread Sugaya, Taichi
Hi, On 2019/02/19 4:53, Rob Herring wrote: On Fri, 8 Feb 2019 21:26:30 +0900, Sugaya Taichi wrote: Add DT bindings document for Milbeaut M10V timer. Signed-off-by: Sugaya Taichi --- .../bindings/timer/socionext,milbeaut-timer.txt | 17 + 1 file changed, 17

Re: [RFC PATCH 01/31] mm: migrate: Add exchange_pages to exchange two lists of pages.

2019-02-18 Thread Anshuman Khandual
On 02/18/2019 11:29 PM, Zi Yan wrote: > On 18 Feb 2019, at 9:52, Matthew Wilcox wrote: > >> On Mon, Feb 18, 2019 at 09:51:33AM -0800, Zi Yan wrote: >>> On 18 Feb 2019, at 9:42, Vlastimil Babka wrote: On 2/18/19 6:31 PM, Zi Yan wrote: > The purpose of proposing exchange_pages() is to

Re: [PATCH v2 03/15] dt-bindings: Add documentation for Milbeaut SoCs

2019-02-18 Thread Sugaya, Taichi
Hi, On 2019/02/19 4:52, Rob Herring wrote: On Fri, Feb 08, 2019 at 09:26:04PM +0900, Sugaya Taichi wrote: This adds a DT binding documentation for the M10V and its evaluation board. Most boards/soc bindings are using DT schema (yaml) now. We're not requiring that just yet, but I'd like to

Re: [PATCH v2 01/15] dt-bindings: sram: milbeaut: Add binding for Milbeaut smp-sram

2019-02-18 Thread Sugaya, Taichi
Hi, On 2019/02/19 4:49, Rob Herring wrote: On Fri, 8 Feb 2019 21:25:33 +0900, Sugaya Taichi wrote: The Milbeaut M10V SoC needs a part of sram for smp, so this adds the M10V sram compatible and binding. Signed-off-by: Sugaya Taichi --- .../devicetree/bindings/sram/milbeaut-smp-sram.txt |

Re: [PATCH v2 00/15] Add basic support for Socionext Milbeaut M10V SoC

2019-02-18 Thread Sugaya, Taichi
Hi, Thank you for your comments. On 2019/02/18 21:20, Arnd Bergmann wrote: On Fri, Feb 8, 2019 at 1:24 PM Sugaya Taichi wrote: Hi, Here is the series of patches the initial support for SC2000(M10V) of Milbeaut SoCs. "M10V" is the internal name of SC2000, so commonly used in source code.

Re: [PATCH v2 3/3] pwm: hibvt: Add hi3559v100 support

2019-02-18 Thread Uwe Kleine-König
On Wed, Feb 13, 2019 at 04:05:08PM +0100, Mathieu Othacehe wrote: > Add support for hi3559v100-shub-pwm and hisilicon,hi3559v100-pwm > platforms. They require a special quirk: pwm has to be enabled again > to force duty_cycle refresh. > > Signed-off-by: Mathieu Othacehe > --- >

[PATCH v5 2/6] arm: dts: mt2701: Add usb2 device nodes

2019-02-18 Thread min.guo
From: Min Guo Add musb nodes and usb2 phy nodes for MT2701 Signed-off-by: Min Guo --- changes in v5: 1. Add usb connector child node changes in v4: 1. no changes changes in v3: 1. no changes changes in v2: 1. Remove phy-names --- arch/arm/boot/dts/mt2701-evb.dts | 26

[PATCH v5 3/6] usb: musb: Add get/set toggle hooks

2019-02-18 Thread min.guo
From: Min Guo Add get/set toggle hooks in struct musb_io and struct musb_platform_ops for special platform; remove function musb_save_toggle, use the set/get callback to handle toggle. Signed-off-by: Min Guo --- changes in v5: 1. no changes new patch based on v4: ---

[PATCH v5 5/6] usb: musb: Add musb_clearb/w() interface

2019-02-18 Thread min.guo
From: Min Guo Delete the const attribute of addr parameter in readb/w/l hooks, these changes are for implementing clearing W1C registers. Replace musb_readb/w with musb_clearb/w to clear the interrupt status. Signed-off-by: Min Guo --- changes in v5: 1. Replace musb_readb() with musb_clearb()

[PATCH v5 4/6] usb: musb: Add noirq type of dma create interface

2019-02-18 Thread min.guo
From: Min Guo Add noirq type of dma create interface for platform which do not have dedicated DMA interrupt line, move musbhsdma macro definition to musb_dma.h Signed-off-by: Min Guo --- changes in v5: 1. no changes new patch based on v4: --- drivers/usb/musb/musb_dma.h | 9

[PATCH v5 6/6] usb: musb: Add support for MediaTek musb controller

2019-02-18 Thread min.guo
From: Min Guo This adds support for MediaTek musb controller in host, peripheral and otg mode. There are some quirk of MediaTek musb controller, such as: -W1C interrupt status registers -Private data toggle registers -No dedicated DMA interrupt line Signed-off-by: Min Guo Signed-off-by:

[PATCH v5 0/6] Add MediaTek MUSB Controller Driver

2019-02-18 Thread min.guo
From: Min Guo These patches introduce the MediaTek MUSB controller driver. The driver can be configured as Dual-Role Device (DRD), Peripheral Only and Host Only modes. This has beed tested on MT2701 with a variety of devices in host mode and with the f_mass gadget driver in peripheral mode,

[PATCH v5 1/6] dt-bindings: usb: musb: Add support for MediaTek musb controller

2019-02-18 Thread min.guo
From: Min Guo This adds support for MediaTek musb controller in host, peripheral and otg mode. Signed-off-by: Min Guo --- changes in v5: suggested by Rob: 1. Modify compatible as - compatible : should be one of: "mediatek,mt-2701" ... followed by

[PATCH 4/5] dt-bindings: serial: sprd: Add dma properties to support DMA mode

2019-02-18 Thread Baolin Wang
From: Lanqing Liu This patch adds dmas and dma-names properties for the UART DMA mode. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- .../devicetree/bindings/serial/sprd-uart.txt |6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 3/5] serial: sprd: Add power management for the Spreadtrum serial controller

2019-02-18 Thread Baolin Wang
From: Lanqing Liu This patch adds power management for the Spreadtrum serial controller. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- drivers/tty/serial/sprd_serial.c | 61 +++--- 1 file changed, 57 insertions(+), 4 deletions(-) diff --git

[PATCH 5/5] serial: sprd: Add DMA mode support

2019-02-18 Thread Baolin Wang
From: Lanqing Liu Add DMA mode support for the Spreadtrum serial controller. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- drivers/tty/serial/sprd_serial.c | 440 -- 1 file changed, 426 insertions(+), 14 deletions(-) diff --git

[PATCH 2/5] dt-bindings: serial: sprd: Add clocks and clocks-names properties

2019-02-18 Thread Baolin Wang
From: Lanqing Liu This patch adds clocks and clocks-names properties, which are used to do power management for our UART driver. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- .../devicetree/bindings/serial/sprd-uart.txt | 11 +-- 1 file changed, 9 insertions(+), 2

[PATCH 0/5] Add new features for the Spreadtrum serial controller

2019-02-18 Thread Baolin Wang
This patch set fixes the baud rate calculation formula issue, as well as adding power management support and DMA mode support for the Spreadtrum serial controller. Lanqing Liu (5): serial: sprd: Modify the baud rate calculation formula dt-bindings: serial: sprd: Add clocks and clocks-names

[PATCH 1/5] serial: sprd: Modify the baud rate calculation formula

2019-02-18 Thread Baolin Wang
From: Lanqing Liu When the source clock is not divisible by the expected baud rate and the remainder is not less than half of the expected baud rate, the old formular will round up the frequency division coefficient. This will make the actual baud rate less than the expected value and can not

Re: [PATCH v1 2/5] dt-bindings: pwm: add a property "mediatek,num-pwms"

2019-02-18 Thread Uwe Kleine-König
On Mon, Feb 18, 2019 at 02:36:58PM -0600, Rob Herring wrote: > On Fri, Jan 18, 2019 at 09:44:49AM +0100, Matthias Brugger wrote: > > > > > > On 18/01/2019 04:24, Ryder Lee wrote: > > > This adds a property "mediatek,num-pwms" in example so that we could > > > set the number of PWM channels via

[RFC PATCH] scsi: fix oops in scsi_uninit_cmd()

2019-02-18 Thread Jason Yan
If we remove the scsi disk when running io with fio, oops occured with the following condition. [scsi_eh_0] [fio] scsi_end_request ->blk_update_request ->end_bio(io returned to userspace) close

[PATCH -next] tpm: change the return type of calc_tpm2_event_size to size_t

2019-02-18 Thread YueHaibing
calc_tpm2_event_size return size of the event which type is size_t, If it is an invalid event, returns 0. And all the caller use a size_t variable to check the return value, so no need to convert to the return value type to int. Signed-off-by: YueHaibing --- drivers/char/tpm/eventlog/tpm2.c | 4

[v2] PCI: mediatek: Remove MSI inner domain

2019-02-18 Thread Jianjun Wang
There is no need to create the inner domain as a parent for MSI domian, some feature has been implemented by MSI framework. Remove the inner domain and its irq chip, it will be more closer to the hardware implementation. Signed-off-by: Jianjun Wang --- drivers/pci/controller/pcie-mediatek.c |

Re: [RFC PATCH 0/5] MTD: Add Initial Hyperbus support

2019-02-18 Thread Vignesh R
On 19/02/19 12:06 PM, Vignesh R wrote: [...] > > Tested on modified TI AM654 EVM with Cypress Hyperflash S26KS512 by > creating a UBIFS partition and writing and reading files to it. > Stress tested by writing/reading 16MB flash repeatedly at different > offsets using dd commmand. > Here is

[PATCH v2 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-02-18 Thread Ran Wang
When DWC3 is set to host mode by programming register DWC3_GCTL, VBUS (or its control signal) will turn on immediately on related Root Hub ports. Then the VBUS will be de-asserted for a little while during xhci reset (conducted by xhci driver) for a little while and back to normal. This VBUS

Re: [PATCH] tmpfs: fix link accounting when a tmpfile is linked in

2019-02-18 Thread Hugh Dickins
On Tue, 19 Feb 2019, Al Viro wrote: > On Mon, Feb 18, 2019 at 09:37:52PM -0800, Hugh Dickins wrote: > > From: "Darrick J. Wong" > > > > tmpfs has a peculiarity of accounting hard links as if they were separate > > inodes: so that when the number of inodes is limited, as it is by default, > > a

[PATCH v2 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-02-18 Thread Ran Wang
When DWC3 is set to host mode by programming register DWC3_GCTL, VBUS (or its control signal) will be turned on immediately on related Root Hub ports. Then, the VBUS is turned off for a little while(15us) when do xhci reset (conducted by xhci driver) and back to normal finally, we can observe a

RE: [PATCH V6 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-18 Thread Anson Huang
Ping... Best Regards! Anson Huang > -Original Message- > From: Anson Huang > Sent: 2019年2月13日 13:36 > To: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > catalin.mari...@arm.com; will.dea...@arm.com;

Re: [PATCHv4] random: Make /dev/random wait for input_pool initialized

2019-02-18 Thread Bernd Edlinger
> @@ -1826,7 +1830,9 @@ _random_read(int nonblock, char __user *buf, size_t > nbytes) > > nbytes = min_t(size_t, nbytes, SEC_XFER_SIZE); > while (1) { > - n = extract_entropy_user(_pool, buf, nbytes); > + n = input_pool.initialized > +

Re: [PATCH v2 04/15] ARM: milbeaut: Add basic support for Milbeaut m10v SoC

2019-02-18 Thread Sugaya, Taichi
Hi, Thank you for your comments. On 2019/02/18 21:15, Arnd Bergmann wrote: On Fri, Feb 8, 2019 at 1:26 PM Sugaya Taichi wrote: +static int m10v_pm_enter(suspend_state_t state) +{ + switch (state) { + case PM_SUSPEND_STANDBY: + pr_err("STANDBY\n"); +

Re: [v6] coccinelle: semantic code search for missing put_device()

2019-02-18 Thread Julia Lawall
On Tue, 19 Feb 2019, wen.yan...@zte.com.cn wrote: > > > I would have a hard time saying which one is more reasonable to test, > > I suggest to reconsider the interpretation of this software situation once > > more. > > > since both are extremely unlikely. > > I disagree to this view because

[PATCH -next] tee: optee: Fix unsigned comparison with less than zero

2019-02-18 Thread YueHaibing
The return from the call to tee_client_invoke_func can be a negative error code however this is being assigned to an unsigned variable 'ret' hence the check is always false. Fix this by making 'ret' an int. Detected by Coccinelle ("Unsigned expression compared with zero: ret < 0") Fixes:

Re: [RFC PATCH net-next v3 07/21] ethtool: implement EVENT notifications

2019-02-18 Thread Michal Kubecek
On Tue, Feb 19, 2019 at 12:46:08AM +0100, Andrew Lunn wrote: > On Mon, Feb 18, 2019 at 07:21:59PM +0100, Michal Kubecek wrote: > > Three types of netlink notifications are introduced: > > > > - ETHA_EVENT_NEWDEV to notify about newly registered network devices > > - ETHA_EVENT_DELDEV to

Re: [PATCH 2/2] PCI: mediatek: Add controller support for MT7629

2019-02-18 Thread Jianjun Wang
On Wed, 2019-01-23 at 15:40 +, Lorenzo Pieralisi wrote: > On Mon, Dec 24, 2018 at 07:40:28PM +0800, Jianjun Wang wrote: > > On Thu, 2018-12-20 at 12:20 -0600, Bjorn Helgaas wrote: > > > On Tue, Dec 18, 2018 at 05:19:24PM +0800, Jianjun Wang wrote: > > > > On Mon, 2018-12-17 at 15:46 +,

[PATCH -next] usb: typec: mux: Fix unsigned comparison with less than zero

2019-02-18 Thread YueHaibing
The return from the call to fwnode_property_read_u16_array is int, it can be a negative error code however this is being assigned to an size_t variable 'nval', hence the check is always false. Fix this by making 'nval' an int. Detected by Coccinelle ("Unsigned expression compared with zero: nval

RE: [PATCHv6 1/4] dt-bindings: add DT binding for the layerscape PCIe controller with EP mode

2019-02-18 Thread Xiaowei Bao
-Original Message- From: Lorenzo Pieralisi Sent: 2019年2月6日 2:03 To: Xiaowei Bao Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo Li ; kis...@ti.com; a...@arndb.de; gre...@linuxfoundation.org; M.h. Lian ; Mingkai Hu ; Roy Zang ;

Re: [PATCH] crypto: caam: set hwrng quality level

2019-02-18 Thread Horia Geanta
On 2/13/2019 4:49 PM, Philipp Puschmann wrote: > When quality is set to 0 this driver is not used as randomness source by > HWRNG framework at all. So set the quality and finally make this driver > work. The value of the quality was discussed before > ( see see

Re: [PATCH -next] hwrng: Fix unsigned comparison with less than zero

2019-02-18 Thread Sumit Garg
On Tue, 19 Feb 2019 at 12:04, YueHaibing wrote: > > The return from the call to tee_client_invoke_func can be a > negative error code however this is being assigned to an > unsigned variable 'ret' hence the check is always false. > Fix this by making 'ret' an int. > > Detected by Coccinelle

[PATCH net V2] vhost: correctly check the return value of translate_desc() in log_used()

2019-02-18 Thread Jason Wang
When fail, translate_desc() returns negative value, otherwise the number of iovs. So we should fail when the return value is negative instead of a blindly check against zero. Detected by CoverityScan, CID# 1442593: Control flow issues (DEADCODE) Fixes: cc5e71075947 ("vhost: log dirty page

Re: [PATCH net] vhost: correctly check the return value of translate_desc() in log_used()

2019-02-18 Thread Jason Wang
On 2019/2/16 上午12:45, Stephen Hemminger wrote: On Fri, 15 Feb 2019 15:53:24 +0800 Jason Wang wrote: When fail, translate_desc() returns negative value, otherwise the number of iovs. So we should fail when the return value is negative instead of a blindly check against zero. Reported-by:

Re: [PATCH net] vhost: correctly check the return value of translate_desc() in log_used()

2019-02-18 Thread Jason Wang
On 2019/2/16 上午2:03, David Miller wrote: From: Jason Wang Date: Fri, 15 Feb 2019 15:53:24 +0800 When fail, translate_desc() returns negative value, otherwise the number of iovs. So we should fail when the return value is negative instead of a blindly check against zero. Reported-by: Stephen

Re: [RESEND PATCH] amba: Allow pclk to be controlled by power domain

2019-02-18 Thread Bjorn Andersson
On Tue 05 Feb 06:58 PST 2019, Ulf Hansson wrote: > On Thu, 31 Jan 2019 at 03:01, Bjorn Andersson > wrote: > > > > On the Qualcomm SDM845 platform the apb_pclk is controlled as part of > > the QDSS power/clock domain. Handle this by allowing amba to operate > > without direct apb_pclk control,

Re:[PATCH] x86: livepatch: Treat R_X86_64_PLT32 as R_X86_64_PC32

2019-02-18 Thread chenzefeng (A)
On Mon 2019-02-18 17:22, Petr wrote: > On Mon 2019-02-18 13:29:11, chengjian (D) wrote: > > Hi,Jiri > > > > > > This patch should be merged into 4.4 stable, > > > > which still use klp_write_module_reloc. > > > > > > https://elixir.bootlin.com/linux/v4.4.174/source/arch/x86/kernel/livep > >

Re: [PATCH] KVM: Ignore LBR MSRs with no effect

2019-02-18 Thread Like Xu
On 2019/1/29 1:43, Anton Kuchin wrote: Win10 attempts to save these registers during KiSaveDebugRegisterState if LBR or BTF bits are set in MSR_IA32_DEBUGCTLMSR. It uses DR7 GE and LE flags for per-thread switching of these these features so zero value that is returned for MSR_IA32_DEBUGCTLMSR

linux-next: build failure after merge of the asm-generic tree

2019-02-18 Thread Stephen Rothwell
Hi Arnd, After merging the asm-generic tree, today's linux-next build (powerpc allnoconfig) failed like this: arch/powerpc/kernel/iomap.c:18:14: error: conflicting types for 'ioread8' unsigned int ioread8(void __iomem *addr) ^~~ In file included from

[RFC PATCH 1/5] mtd: cfi_cmdset_0002: Add support for polling status register

2019-02-18 Thread Vignesh R
HyperFlash devices are compliant with CFI AMD/Fujitsu Extended Command Set(0x0002) for flash operations, therefore drivers/mtd/chips/cfi_cmdset_0002.c can be use as is. But these devices do not support DQ polling method of determining chip ready/good status. These flashes provide Status Register

[RFC PATCH 0/5] MTD: Add Initial Hyperbus support

2019-02-18 Thread Vignesh R
Cypress HyperBus is Low Signal Count, High Performance Double Data Rate Bus interface between a host system master and one or more slave interfaces. HyperBus is used to connect microprocessor, microcontroller, or ASIC devices with random access NOR flash memory(called HyperFlash) or self refresh

[PATCH] checkpatch: warn on bad commit description in 'Fixes' tag

2019-02-18 Thread Changbin Du
There are some complaints about bad commit description in 'Fixes' tag. Most cases are SHA1 should be at least 12 digits long. Let's extend the existing check in checkpatch.pl to include commit description of 'Fixes' tag. Reference: https://lkml.org/lkml/2019/2/18/1477 Signed-off-by: Changbin Du

[RFC PATCH 3/5] mtd: Add support for Hyperbus memory devices

2019-02-18 Thread Vignesh R
Cypress HyperBus is Low Signal Count, High Performance Double Data Rate Bus interface between a host system master and one or more slave interfaces. HyperBus is used to connect microprocessor, microcontroller, or ASIC devices with random access NOR flash memory(called HyperFlash) or self refresh

[RFC PATCH 5/5] mtd: hyperbus: Add driver for TI's Hyperbus memory controller

2019-02-18 Thread Vignesh R
Add driver for Hyperbus memory controller on TI's AM654 SoC. Programming IP is pretty simple and provides direct memory mapped access to connected Flash devices. Add basic support for the IP without DMA. Second ChipSelect is not supported for now. Signed-off-by: Vignesh R ---

[RFC PATCH 4/5] dt-bindings: mtd: Add bindings for TI's AM654 Hyperbus memory controller

2019-02-18 Thread Vignesh R
Add binding documentation for TI's Hyperbus memory controller present on AM654 SoC. Signed-off-by: Vignesh R --- .../devicetree/bindings/mtd/ti,am654-hbmc.txt | 27 +++ MAINTAINERS | 1 + 2 files changed, 28 insertions(+) create mode 100644

[RFC PATCH 2/5] dt-bindings: mtd: Add binding documentation for Hyperbus memory devices

2019-02-18 Thread Vignesh R
Add DT binding documentation for Hyperbus memory devices. For now only Hyperflash is supported. Signed-off-by: Vignesh R --- Documentation/devicetree/bindings/mtd/cypress,hyperbus.txt | 6 ++ 1 file changed, 6 insertions(+) create mode 100644

[PATCH -next] hwrng: Fix unsigned comparison with less than zero

2019-02-18 Thread YueHaibing
The return from the call to tee_client_invoke_func can be a negative error code however this is being assigned to an unsigned variable 'ret' hence the check is always false. Fix this by making 'ret' an int. Detected by Coccinelle ("Unsigned expression compared with zero: ret < 0") Fixes:

Re: [PATCH v1 04/12] of: Add bindings of gpu hw throttle for Tegra soctherm

2019-02-18 Thread Wei Ni
On 19/2/2019 4:33 AM, Rob Herring wrote: > On Tue, Dec 18, 2018 at 03:34:36PM +0800, Wei Ni wrote: >> Add "nvidia,gpu-throt-level" property to set gpu hw >> throttle level. >> >> Signed-off-by: Wei Ni >> --- >> .../bindings/thermal/nvidia,tegra124-soctherm.txt | 17 +++-- >>

[PATCH v2] arm64: dts: qcs404: evb: Fix voltage for l3

2019-02-18 Thread Bjorn Andersson
PMS405 L3 is outside the acceptable range, causing PCIe to fail. Fix this. Fixes: 0b363f5b871c ("arm64: dts: qcom: qcs404: Add PMS405 RPM regulators") Signed-off-by: Bjorn Andersson --- Changes since v1: - Rebased upon

Re: [PATCH v1 11/12] of: Add bindings of OC hw throttle for Tegra soctherm

2019-02-18 Thread Wei Ni
On 19/2/2019 4:32 AM, Rob Herring wrote: > On Tue, Dec 18, 2018 at 03:34:43PM +0800, Wei Ni wrote: >> Add OC HW throttle configuration for soctherm in DT. >> It is used to describe the OCx throttle events. >> >> Signed-off-by: Wei Ni >> --- >> .../bindings/thermal/nvidia,tegra124-soctherm.txt

Re: [PATCH 4.20 11/50] signal: Always notice exiting tasks

2019-02-18 Thread Jiri Slaby
On 13. 02. 19, 19:38, Greg Kroah-Hartman wrote: > 4.20-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Eric W. Biederman > > commit 35634ffa1751b6efd8cf75010b509dcb0263e29b upstream. > > Recently syzkaller was able to create unkillablle

[PATCH] csky: Fixup vdsp issues in kernel

2019-02-18 Thread guoren
From: Guo Ren This fixup is continue to commit 35ff802af1c4 (csky: fixup remove vdsp implement for kernel.) and in that patch I didn't finish the job. We must forbid gcc to generate any vdsp & fpu instructions and remove vdsp asm in memmove.S. eg: For GCC it's -mcpu=ck860 and For AS it's

[PATCH] doc: trace: Fix documentation for uprobe_profile

2019-02-18 Thread Srikar Dronamraju
uprobe_profile has filename and number of probe hits information for each uprobe event. The documentation erroneously talks about probe mis-hits. Update the documentation to the correct information. Cc: Masami Hiramatsu Cc: Steven Rostedt Reported-by: KAUSTUBH RAJENDRA WELANKAR Signed-off-by:

Re: [PATCH V3 1/5] genirq/affinity: don't mark 'affd' as const

2019-02-18 Thread Thomas Gleixner
On Tue, 19 Feb 2019, 陈华才 wrote: > > I've tested, this patch can fix the nvme problem, but it can't be applied > to 4.19 because of different context. And, I still think my original solution > (genirq/affinity: Assign default affinity to pre/post vectors) is correct. > There may be similar

Re: [PATCH v2 1/3] arm64: mm: use appropriate ctors for page tables

2019-02-18 Thread Anshuman Khandual
+ Matthew Wilcox On 02/19/2019 11:02 AM, Yu Zhao wrote: > On Tue, Feb 19, 2019 at 09:51:01AM +0530, Anshuman Khandual wrote: >> >> >> On 02/19/2019 04:43 AM, Yu Zhao wrote: >>> For pte page, use pgtable_page_ctor(); for pmd page, use >>> pgtable_pmd_page_ctor() if not folded; and for the rest

Re: [PATCH v1 04/12] of: Add bindings of gpu hw throttle for Tegra soctherm

2019-02-18 Thread Wei Ni
On 19/2/2019 4:29 AM, Rob Herring wrote: > On Tue, Dec 18, 2018 at 03:34:36PM +0800, Wei Ni wrote: >> Add "nvidia,gpu-throt-level" property to set gpu hw >> throttle level. >> >> Signed-off-by: Wei Ni >> --- >> .../bindings/thermal/nvidia,tegra124-soctherm.txt | 17 +++-- >>

Re: [PATCH v2 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-02-18 Thread Alexey Dobriyan
> /proc/kheaders.txz This is gross. > The feature is also buildable as a module just in case the user desires > it not being part of the kernel image. This makes it possible to load > and unload the headers on demand. A tracing program, or a kernel module > builder can load the module, do its

[PATCH v2 1/7] clk: gcc-qcs404: Add PCIe resets

2019-02-18 Thread Bjorn Andersson
Enabling PCIe requires several of the PCIe related resets from GCC, so add them all. Reviewed-by: Niklas Cassel Acked-by: Stephen Boyd Signed-off-by: Bjorn Andersson --- drivers/clk/qcom/gcc-qcs404.c | 7 +++ include/dt-bindings/clock/qcom,gcc-qcs404.h | 7 +++ 2 files

[PATCH v2 3/7] phy: qcom: Add Qualcomm PCIe2 PHY driver

2019-02-18 Thread Bjorn Andersson
The Qualcomm PCIe2 PHY is based on design from Synopsys and found in several different platforms where the QMP PHY isn't used. Reviewed-by: Niklas Cassel Signed-off-by: Bjorn Andersson --- drivers/phy/qualcomm/Kconfig | 8 + drivers/phy/qualcomm/Makefile | 1 +

[PATCH v2 2/7] dt-bindings: phy: Add binding for Qualcomm PCIe2 PHY

2019-02-18 Thread Bjorn Andersson
The Qualcomm PCIe2 PHY is a Synopsys based PCIe PHY found in a number of Qualcomm platforms, add a binding to describe this. Signed-off-by: Bjorn Andersson --- .../bindings/phy/qcom-pcie2-phy.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644

[PATCH v2 4/7] PCI: qcom: Use clk_bulk API for 2.4.0 controllers

2019-02-18 Thread Bjorn Andersson
Before introducing the QCS404 platform, which uses the same PCIe controller as IPQ4019, migrate this to use the bulk clock API, in order to make the error paths slighly cleaner. Reviewed-by: Niklas Cassel Signed-off-by: Bjorn Andersson --- drivers/pci/controller/dwc/pcie-qcom.c | 48

[PATCH v2 7/7] arm64: dts: qcom: qcs404: Add PCIe related nodes

2019-02-18 Thread Bjorn Andersson
The QCS404 has a PCIe2 PHY and a Qualcomm PCIe controller, add these to the platform dtsi and enable them for the EVB with the perst gpio and analog supplies defined. Reviewed-by: Niklas Cassel Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/qcs404-evb.dtsi | 25 +

[PATCH v2 0/7] QCS404 PCIe PHY and controller

2019-02-18 Thread Bjorn Andersson
This series adds support for the PCIe controller and PHY found in the Qualcomm platform QCS404. Bjorn Andersson (7): clk: gcc-qcs404: Add PCIe resets dt-bindings: phy: Add binding for Qualcomm PCIe2 PHY phy: qcom: Add Qualcomm PCIe2 PHY driver PCI: qcom: Use clk_bulk API for 2.4.0

[PATCH v2 5/7] dt-bindings: PCI: qcom: Add QCS404 to the binding

2019-02-18 Thread Bjorn Andersson
The Qualcomm QCS404 platform contains a PCIe controller, add this to the Qualcomm PCI binding document. The controller is the same version as the one used in IPQ4019, but the PHY part is described separately, hence the difference in clocks and resets. Signed-off-by: Bjorn Andersson ---

[PATCH v2 6/7] PCI: qcom: Add QCS404 PCIe controller support

2019-02-18 Thread Bjorn Andersson
The QCS404 platform contains a PCIe controller of version 2.4.0 and a Qualcomm PCIe2 PHY. The driver already supports version 2.4.0, for the IPQ4019, but this support touches clocks and resets related to the PHY as well, and there's no upstream driver for the PHY. On QCS404 we must initialize the

Re: [PATCH v3 perf,bpf 05/11] perf, bpf: save bpf_prog_info in a rbtree in perf_env

2019-02-18 Thread Song Liu
> On Feb 17, 2019, at 3:05 PM, Jiri Olsa wrote: > > On Fri, Feb 15, 2019 at 01:53:48PM -0800, Song Liu wrote: > > SNIP > >> info_linear = bpf_program__get_prog_info_linear(fd, arrays); >> if (IS_ERR_OR_NULL(info_linear)) { >> @@ -151,8 +165,8 @@ static int

  1   2   3   4   5   6   7   8   9   10   >