RE: [EXT] Re: [v3 2/2] clk: ls1028a: Add clock driver for Display output interface

2019-08-28 Thread Wen He
> -Original Message- > From: Stephen Boyd > Sent: 2019年8月23日 9:27 > To: Mark Rutland ; Michael Turquette > ; Rob Herring ; Wen He > ; devicet...@vger.kernel.org; linux-...@vger.kernel.org; > linux-de...@linux.nxdi.nxp.com; linux-kernel@vger.kernel.org > Cc: Leo Li ; liviu.du...@arm.com;

RE: [PATCH 2/2] clk: imx: disable i.mx7ulp composite clock during initialization

2019-08-28 Thread Anson Huang
Hi, Stephen > Subject: RE: [PATCH 2/2] clk: imx: disable i.mx7ulp composite clock during > initialization > > Hi, Stephen > I think we should resume this thread, without this patch, mainline > kernel boot up will cause mmc timeout all the time. If it is NOT good to > disabling those

[PATCH] Revert "iio: imu: st_lsm6dsx: remove invalid gain value for LSM9DS1"

2019-08-28 Thread Martin Kepplinger
The st_lsm6dsx_sensor_settings struct's fs_avl[] array is expected to be of size 4. We can't define it to be of size 3 and try to access the 4th element below. Commit c8d4066c7246 ("iio: imu: st_lsm6dsx: remove invalid gain value for LSM9DS1") which is a "cleanup" change, results in an Ooops here

[PATCH] binder: Use kmem_cache for binder_thread

2019-08-28 Thread Peikan Tsai
Hi, The allocated size for each binder_thread is 512 bytes by kzalloc. Because the size of binder_thread is fixed and it's only 304 bytes. It will save 208 bytes per binder_thread when use create a kmem_cache for the binder_thread. Signed-off-by: Peikan Tsai --- drivers/android/binder.c | 16

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

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

[PATCH v6 10/11] dt-bindings: pwm: update bindings for MT7629 SoC

2019-08-28 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 --- Changes since v1: - add a Reviewed-by tag --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + 1 file changed, 1 insertion(+)

[PATCH v6 09/11] arm: dts: mt7623: add a property "num-pwms" for PWM

2019-08-28 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

[PATCH v6 08/11] arm64: dts: mt7622: add a property "num-pwms" for PWM

2019-08-28 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

[PATCH v6 07/11] dt-bindings: pwm: pwm-mediatek: add a property "num-pwms"

2019-08-28 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 Acked-by: Uwe Kleine-König --- Changes since v6: Follow reviewers's comments: - The

[PATCH v6 06/11] pwm: mediatek: update license and switch to SPDX tag

2019-08-28 Thread Sam Shih
Add SPDX identifiers to pwm-mediatek.c Update license to GNU General Public License v2.0 Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Uwe Kleine-König --- Changes since v6: Add a Reviewed-by tag Changes since v5: - Follow reviewers's comments The license stuff is a separate

[PATCH v6 05/11] pwm: mediatek: use pwm_mediatek as common prefix

2019-08-28 Thread Sam Shih
Use pwm_mediatek as common prefix to match the filename. No functional change intended. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Acked-by: Uwe Kleine-König --- Changes since v6: Add an Acked-by tag Changes since v5: - Follow reviewers's comments The license stuff is a separate change

[PATCH v6 04/11] pwm: mediatek: allocate the clks array dynamically

2019-08-28 Thread Sam Shih
Instead of using fixed size of arrays, allocate the memory for them based on the information we get from the DT. Also remove the check for num_pwms, due to dynamically allocate pwm should not cause array index out of bound. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Uwe

[PATCH v6 03/11] pwm: mediatek: remove a property "has-clks"

2019-08-28 Thread Sam Shih
We can use fixed-clock to repair mt7628 pwm during configure from userspace. The SoC is legacy MIPS and has no complex clock tree. Due to we can get clock frequency for period calculation from DT fixed-clock, so we can remove has-clock property, and directly use devm_clk_get and clk_get_rate.

Re: [PATCH v4 3/3] vfio/pci: make use of irq_update_devid and optimize irq ops

2019-08-28 Thread Ben Luo
在 2019/8/29 上午1:23, Alex Williamson 写道: On Wed, 28 Aug 2019 18:08:02 +0800 Ben Luo wrote: 在 2019/8/28 上午4:33, Alex Williamson 写道: On Thu, 22 Aug 2019 23:34:43 +0800 Ben Luo wrote: When userspace (e.g. qemu) triggers a switch between KVM irqfd and userspace eventfd, only dev_id of irq

[PATCH v6 02/11] pwm: mediatek: droping the check for of_device_get_match_data

2019-08-28 Thread Sam Shih
This patch drop the check for of_device_get_match_data. Due to the only way call driver probe is compatible match. The .data pointer which point to the SoC specify data is directly set by driver, and it should not be NULL in our case. We can safety remove the check for of_device_get_match_data.

[PATCH v6 01/11] pwm: mediatek: add a property "num-pwms"

2019-08-28 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 Reviewed-by: Uwe Kleine-König --- Changes since v6: Add a Reviewed-by tag Changes since v5: Check num-pwms

[PATCH v6 0/11] Add mt7629 and fix mt7628 pwm

2019-08-28 Thread Sam Shih
Changes since v6: 1. Due to we can use fixed-clock in DT We removed has_clks and fixed-clock properties Changes since v5: - Follow reviewer's comments: 1. the license stuff is a separate change 2. split fix mt7628 pwm into a single patch 3. to ensure to not use mtk_pwm_clk_name[10]

[RFC v1 3/9] KVM: x86: Implement MSR_IA32_PEBS_ENABLE read/write emulation

2019-08-28 Thread Luwei Kang
This patch implements the MSR_IA32_PEBS_ENABLE register read/write emulation for KVM guest. MSR_IA32_PEBS_ENABLE register can be accessed only when PEBS is supported in KVM. VMM need to reprogram the counter when the value of this MSR changed because some of the counters will be created or

[RFC v1 4/9] KVM: x86: Implement counter reload MSRs read/write emulation

2019-08-28 Thread Luwei Kang
This patch implements the counter reload register MSR_RELOAD_PMCx/FIXED_CTRx read/write emulation. These registers can be accessed only when PEBS is supported in KVM. VMM need to reprogram the counters to make the host PMU framework load the value to real hardware after configuration has been

[RFC v1 9/9] KVM: x86: Expose PEBS feature to guest

2019-08-28 Thread Luwei Kang
Expose PEBS feature to guest by IA32_MISC_ENABLE[bit12]. IA32_MISC_ENABLE[bit12] is Processor Event Based Sampling (PEBS) Unavailable (RO) flag: 1 = PEBS is not supported; 0 = PEBS is supported. Signed-off-by: Luwei Kang --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/svm.c

[RFC v1 5/9] KVM: x86: Allocate performance counter for PEBS event

2019-08-28 Thread Luwei Kang
This patch add a new parameter "pebs" that to make the host PMU framework allocate performance counter for guest PEBS event. Signed-off-by: Luwei Kang --- arch/x86/kvm/pmu.c | 23 +++ arch/x86/kvm/pmu.h | 5 +++-- arch/x86/kvm/pmu_amd.c | 2 +-

[RFC v1 8/9] KVM: X86: MSR_IA32_PERF_CAPABILITIES MSR emulation

2019-08-28 Thread Luwei Kang
Expose some bits of definition which relate with enable PEBS to KVM guest especially PEBS via PT feature. Signed-off-by: Luwei Kang --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/include/asm/msr-index.h | 3 +++ arch/x86/kvm/vmx/vmx.c | 14 ++ 3 files changed, 18

[RFC v1 6/9] KVM: x86: Add shadow value of PEBS status

2019-08-28 Thread Luwei Kang
The performance counter used by guest perspective may different with the counter allocated from real hardware (e.g. Guest driver get counter 0 for PEBS but the host PMU driver may alloc other counters for this event). Introduce a new parameter for the mapping of PEBS enable status from guest to

[RFC v1 2/9] KVM: x86: PEBS via Intel PT HW feature detection

2019-08-28 Thread Luwei Kang
PEBS can be enabled in KVM guest by direct PEBS record into the Intel Processor Trace output buffer. This patch adds a new flag to detect if PEBS can be supported in KVM guest. It not only need HW support PEBS output Intel PT (IA32_PERF_CAPABILITIES.PEBS_OUTPUT_PT_AVAIL[16]=1) but also depends on:

[RFC v1 7/9] KVM: X86: Expose PDCM cpuid to guest

2019-08-28 Thread Luwei Kang
PDCM (Perfmon and Debug Capability) indicates the processor supports the performance and debug feature indication MSR IA32_PERF_CAPABILITIES. PEBS enabling in KVM guest depend on PEBS via PT, and PEBS via PT is detected by IA32_PERF_CAPABILITIES[Bit16]. Signed-off-by: Luwei Kang ---

Re: [PATCH] x86/microcode: Add an option to reload microcode even if revision is unchanged

2019-08-28 Thread Raj, Ashok
Hi Boris, sorry i added the wrong message id in the commit log. https://lore.kernel.org/r/20190824085300.gb16...@zn.tnic/ On Wed, Aug 28, 2019 at 10:33:22PM -0700, Ashok Raj wrote: > During microcode development, its often required to test different versions > of microcode. Intel microcode

[RFC v1 1/9] KVM: x86: Add base address parameter for get_fixed_pmc function

2019-08-28 Thread Luwei Kang
PEBS output Inte PT introduces some new MSRs (MSR_RELOAD_FIXED_CTRx) for fixed function counters that use for autoload the preset value after writing out a PEBS event. Introduce base MSRs address parameter to make this function can get performance monitor counter structure by

[RFC v1 0/9] PEBS enabling in KVM guest

2019-08-28 Thread Luwei Kang
Intel new hardware introduces some Precise Event-Based Sampling (PEBS) extensions that output the PEBS record to Intel PT stream instead of DS area. The PEBS record will be packaged in a specific format when outputing to Intel PT. This patch set will enable PEBS functionality in KVM Guest by PEBS

[PATCH] adfs: obj.file_id is uninitialized if __adfs_dir_get() returns error code

2019-08-28 Thread Yizhuo
Inside function adfs_dir_find_entry(), obj.file_id could be uninitialized if __adfs_dir_get() returns error code. However, the return check cannot promise the initialization of obj.file_id, which is used in the if statement. This is potentially unsafe. Signed-off-by: Yizhuo --- fs/adfs/dir_f.c

Re: [PATCH v5 09/10] rtc: mt6397: fix alarm register overwrite

2019-08-28 Thread Hsin-hsiung Wang
Hi Matthias, On Fri, 2019-08-23 at 17:35 +0200, Matthias Brugger wrote: > > On 23/08/2019 05:45, Hsin-Hsiung Wang wrote: > > From: Ran Bi > > > > Alarm registers high byte was reserved for other functions. > > This add mask in alarm registers operation functions. > > This also fix error

[PATCH] x86/microcode: Add an option to reload microcode even if revision is unchanged

2019-08-28 Thread Ashok Raj
During microcode development, its often required to test different versions of microcode. Intel microcode loader enforces loading only if the revision is greater than what is currently loaded on the cpu. Overriding this behavior allows us to reuse the same revision during development cycles. This

linux-next: build failure after merge of the keys tree

2019-08-28 Thread Stephen Rothwell
Hi all, After merging the keys tree, today's linux-next build (arm multi_v7_defconfig) failed like this: Caused by commit ef9cc255c953 ("usb: Add USB subsystem notifications") # CONFIG_USB_NOTIFICATIONS is not set I have used the keys tree from next-20190828 for today. -- Cheer

[PATCH v2 1/2 RESEND] usb: core: phy: add support for PHY calibration

2019-08-28 Thread Marek Szyprowski
Some PHYs (for example Exynos5 USB3.0 DRD PHY) require calibration to be done after every USB HCD reset. Generic PHY framework has been already extended with phy_calibrate() function in commit 36914111e682 ("drivers: phy: add calibrate method"). This patch adds support for it to generic PHY

[PATCH v2 0/2 2nd RESEND] Fix USB3.0 DRD PHY calibration issues (DWC3/XHCI) on Exynos542x SoCs

2019-08-28 Thread Marek Szyprowski
Dear All, Commit d8c80bb3b55b ("phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800") added support for Exynos5 USB3.0 DRD PHY calibration, what enabled proper Super-Speed enumeration of USB3.0 devices connected to various Exynos5 SoCs. After some time it turned out that the mentioned

[PATCH v2 2/2 RESEND] usb: dwc3: remove generic PHY calibrate() calls

2019-08-28 Thread Marek Szyprowski
Calls to USB2 generic PHY calibrate() method has been moved to HCD core, which now successfully handles generic PHYs and their calibration after every HCD reset. This fixes all the timing issues related to PHY calibration done directly from DWC3 driver: incorrect operation after system

Re: [PATCH v2] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-08-28 Thread Hari Bathini
On 28/08/19 10:57 PM, Michal Suchanek wrote: > Currently it is not possible to distinguish the case when fadump is > supported by firmware and disabled in kernel and completely unsupported > using the kernel sysfs interface. User can investigate the devicetree > but it is more reasonable to

Re: [PATCH v2 1/2 RESEND] usb: core: phy: add support for PHY calibration

2019-08-28 Thread Marek Szyprowski
Hi Greg, On 2019-08-28 22:41, Greg Kroah-Hartman wrote: > On Mon, Aug 26, 2019 at 10:55:33AM +0200, Marek Szyprowski wrote: >> Hi Greg >> >> On 2019-08-08 11:41, Marek Szyprowski wrote: >>> Some PHYs (for example Exynos5 USB3.0 DRD PHY) require calibration to be >>> done after every USB HCD

Re: [PATCH rebased] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-08-28 Thread Hari Bathini
On 28/08/19 10:37 PM, Michal Suchánek wrote: > On Tue, 27 Aug 2019 17:57:31 +0530 > Hari Bathini wrote: > [...] >> Also, get rid of the error message when fadump is >> not supported as it is already taken care of in fadump_reserve_mem() >> function. > > That should not be called in that

Re: [PATCH] sky2: Disable MSI on yet another ASUS boards (P6Xxxx)

2019-08-28 Thread Takashi Iwai
On Thu, 29 Aug 2019 01:09:37 +0200, David Miller wrote: > > From: Takashi Iwai > Date: Wed, 28 Aug 2019 08:31:19 +0200 > > > A similar workaround for the suspend/resume problem is needed for yet > > another ASUS machines, P6X models. Like the previous fix, the BIOS > > doesn't provide the

Re: [PATCH v7 13/13] arm64: dts: Add power controller device node of MT8183

2019-08-28 Thread CK Hu
Hi, Weiyi: On Wed, 2019-08-28 at 17:11 +0800, Weiyi Lu wrote: > Add power controller node and smi-common node for MT8183 > In scpsys node, it contains clocks and regmapping of > infracfg and smi-common for bus protection. > > Signed-off-by: Weiyi Lu > --- >

Re: [PATCH v2 07/10] PCI: layerscape: Modify the MSIX to the doorbell way

2019-08-28 Thread Kishon Vijay Abraham I
Gustavo, On 27/08/19 6:55 PM, Andrew Murray wrote: > On Sat, Aug 24, 2019 at 12:08:40AM +, Xiaowei Bao wrote: >> >> >>> -Original Message- >>> From: Andrew Murray >>> Sent: 2019年8月23日 21:58 >>> To: Xiaowei Bao >>> Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com;

Re: [PATCH v2 3/3] dwc: PCI: intel: Intel PCIe RC controller driver

2019-08-28 Thread Kishon Vijay Abraham I
Hi Martin, On 28/08/19 2:08 AM, Martin Blumenstingl wrote: > Hello, > > On Tue, Aug 27, 2019 at 5:09 AM Chuan Hua, Lei > wrote: >> >> Hi Martin, >> >> Thanks for your feedback. Please check the comments below. >> >> On 8/27/2019 5:15 AM, Martin Blumenstingl wrote: >>> Hello, >>> >>> On Mon, Aug

linux-next: manual merge of the keys tree with the security tree

2019-08-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the keys tree got a conflict in: include/linux/security.h between commit: 9e47d31d6a57 ("security: Add a "locked down" LSM hook") from the security tree and commit: 25d2a1e61245 ("security: Add hooks to rule on setting a watch") from the keys tree.

Re: [PATCH v4] watchdog: orion_wdt: use timer1 as a pretimeout

2019-08-28 Thread Chris Packham
On Wed, 2019-08-28 at 21:45 -0700, Guenter Roeck wrote: > On 8/28/19 6:53 PM, Chris Packham wrote: > > The orion watchdog can either reset the CPU or generate an interrupt. > > The interrupt would be useful for debugging as it provides panic() > > output about the watchdog expiry, however if the

build_path_from_dentry_optional_prefix() may schedule from invalid context

2019-08-28 Thread Sergey Senozhatsky
Hello, Looking at commit "cifs: create a helper to find a writeable handle by path name": ->open_file_lock scope is atomic context, while build_path_from_dentry() can schedule - kmalloc(GFP_KERNEL) spin_lock(>open_file_lock); list_for_each(tmp, >openFileList) {

Re: [PATCH v2 7/7] bug: Move WARN_ON() "cut here" into exception handler

2019-08-28 Thread Christophe Leroy
Le 24/08/2019 à 21:08, Kees Cook a écrit : Euh ... only received this mail yesterday. Same for the other answer. On Fri, Aug 23, 2019 at 04:26:59PM +0200, Christophe Leroy wrote: Le 23/08/2019 à 00:56, Andrew Morton a écrit : On Tue, 20 Aug 2019 09:47:55 -0700 Kees Cook wrote:

[PATCH 2/2] gpio: iproc-gpio: Handle interrupts for multiple instances

2019-08-28 Thread Srinath Mannam
From: Rayagonda Kokatanur When multiple instance of iproc-gpio chips are present, a fix up message[1] is printed during the probe of second and later instances. This issue is because driver sharing same irq_chip data structure among multiple instances of driver. Fix this by allocating irq_chip

[PATCH 1/2] gpio: iproc-gpio: Fix incorrect pinconf configurations

2019-08-28 Thread Srinath Mannam
From: Li Jin Fix drive strength for AON/CRMU controller; fix pull-up/down setting for CCM/CDRU controller. Fixes: 616043d58a89 ("pinctrl: Rename gpio driver from cygnus to iproc") Signed-off-by: Li Jin --- drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 96 +--- 1 file

[PATCH 0/2] Add fixes to iProc GPIO driver

2019-08-28 Thread Srinath Mannam
This patch series adds the following fixes to the iProc GPIO driver - Fix Warning message given for shared irqchip data structure - Fix pinconfig of pull-up/down and drive strength for AON/CRMU GPIOs This patch set is based on Linux-5.2-rc4. Changes from v1: - Add Fixes tags in both patches

[PATCH] selftests: watchdog: Add optional file argument

2019-08-28 Thread George G. Davis
Some systems have multiple watchdog devices where the first device registered is assigned to the /dev/watchdog device file. In order to test other watchdog devices, add an optional file argument for selecting non-default watchdog devices for testing. Signed-off-by: George G. Davis ---

Re: [PATCH v4] watchdog: orion_wdt: use timer1 as a pretimeout

2019-08-28 Thread Guenter Roeck
On 8/28/19 6:53 PM, Chris Packham wrote: The orion watchdog can either reset the CPU or generate an interrupt. The interrupt would be useful for debugging as it provides panic() output about the watchdog expiry, however if the interrupt is used the watchdog can't reset the CPU in the event of

[PATCH v4 1/2] drivers: hv: vmbus: Introduce latency testing

2019-08-28 Thread Branden Bonaby
Introduce user specified latency in the packet reception path By exposing the test parameters as part of the debugfs channel attributes. We will control the testing state via these attributes. Signed-off-by: Branden Bonaby --- changes in v4: - Combined v3 patch 2 into this patch, and changed

[PATCH v4 0/2] hv: vmbus: add fuzz testing to hv device

2019-08-28 Thread Branden Bonaby
This patchset introduces a testing framework for Hyper-V drivers. This framework allows us to introduce delays in the packet receive path on a per-device basis. While the current code only supports introducing arbitrary delays in the host/guest communication path, we intend to expand this to

[PATCH v4 2/2] tools: hv: add vmbus testing tool

2019-08-28 Thread Branden Bonaby
This is a userspace tool to drive the testing. Currently it supports introducing user specified delay in the host to guest communication path on a per-channel basis. Signed-off-by: Branden Bonaby --- Changes in v4: - Based on Harrys comments, made the tool more user friendly and added more

[ANN] Squashfs tools 4.4 released

2019-08-28 Thread Phillip Lougher
Hi, I'm pleased to announce the release of Squashfs tools 4.4. This is the first release in over 5 years, and there are substantial improvements: reproducible builds, new compressors, CVE fixes, security hardening and new options for Mksquashfs/Unsquashfs. The new release can be downloaded here:

[PATCH V2 1/1] spi: bcm-qspi: Make BSPI default mode

2019-08-28 Thread Rayagonda Kokatanur
The spi-nor controller defaults to BSPI mode, hence switch back to its default mode after MSPI operations (write or erase) are completed. Changes from V1: - Address code review comment from Mark Brown. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Mark Brown Reviewed-by: Kamal Dasu ---

[GIT PULL] vfs: Add support for timestamp limits

2019-08-28 Thread Deepa Dinamani
-next specific files for 20190828 (2019-08-28 19:59:14 +1000) are available in the Git repository at: https://github.com/deepa-hub/vfs limits for you to fetch changes up to f0f216afa4c7e4dee9121fde52ccf57f76119188: isofs: Initialize filesystem timestamp ranges (2019-08-28 19:19:36 -0700

Re: [PATCH][cifs-next] cifs: ensure variable rc is initialized at the after_open label

2019-08-28 Thread ronnie sahlberg
On Thu, Aug 29, 2019 at 2:00 PM Steve French wrote: > > Merged into cifs-2.6.git for-next > > Ronnie, > You ok with merging this as a distinct patch? Sure thing. Thanks for the fix Colin. > > On Wed, Aug 28, 2019 at 7:02 PM Colin King wrote: > > > > From: Colin Ian King > > > > A previous

Re: linux-next: build warning after merge of the block tree

2019-08-28 Thread Stephen Rothwell
Hi all, On Thu, 29 Aug 2019 13:51:50 +1000 Stephen Rothwell wrote: > > After merging the block tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > In file included from include/trace/events/iocost.h:8, > from : >

Re: [PATCH][cifs-next] cifs: ensure variable rc is initialized at the after_open label

2019-08-28 Thread Steve French
Merged into cifs-2.6.git for-next Ronnie, You ok with merging this as a distinct patch? On Wed, Aug 28, 2019 at 7:02 PM Colin King wrote: > > From: Colin Ian King > > A previous fix added a jump to after_open which now leaves variable > rc in a uninitialized state. A couple of the cases in the

BUG: corrupted list in p9_fd_cancelled (2)

2019-08-28 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:36146921 Merge tag 'hyperv-fixes-signed' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=169f691e60 kernel config: https://syzkaller.appspot.com/x/.config?x=6919752cc1b760b4

linux-next: build failure after merge of the regulator tree

2019-08-28 Thread Stephen Rothwell
Hi all, After merging the regulator tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/regulator/mt6358-regulator.c:5:10: fatal error: linux/mfd/mt6358/registers.h: No such file or directory #include ^~ Caused by commit

Re: [PATCH v2 15/15] drivers: thermal: tsens: Add interrupt support

2019-08-28 Thread Thara Gopinath
Hi Amit, On 08/27/2019 08:14 AM, Amit Kucheria wrote: > Depending on the IP version, TSENS supports upper, lower, max, min and > critical threshold interrupts. We only add support for upper and lower > threshold interrupts for now. > > TSENSv2 has an irq [status|clear|mask] bit tuple for each

[PATCH] mm: Remove NULL check in clear_hwpoisoned_pages()

2019-08-28 Thread Alastair D'Silva
There is no possibility for memmap to be NULL in the current codebase. This check was added in commit 95a4774d055c ("memory-hotplug: update mce_bad_pages when removing the memory") where memmap was originally inited to NULL, and only conditionally given a value. The code that could have passed a

linux-next: build warning after merge of the block tree

2019-08-28 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from include/trace/events/iocost.h:8, from : include/trace/events/iocost.h:12:57: warning: 'struct ioc_now' declared inside parameter list will not be

Re: [PATCH] ima: use struct_size() in kzalloc()

2019-08-28 Thread Mimi Zohar
Hi Gustavo, On Wed, 2019-08-28 at 13:29 -0500, Gustavo A. R. Silva wrote: > On 5/29/19 11:53 AM, Gustavo A. R. Silva wrote: > > One of the more common cases of allocation size calculations is finding > > the size of a structure that has a zero-sized array at the end, along > > with memory for

Re: [PATCH] usb: chipidea: msm: Use device-managed registration API

2019-08-28 Thread Peter Chen
On 19-08-28 19:42:32, Chuhong Yuan wrote: > On Wed, Aug 28, 2019 at 11:24 AM Peter Chen wrote: > > > > On 19-07-23 11:02:07, Chuhong Yuan wrote: > > > Use devm_reset_controller_register to get rid > > > of manual unregistration. > > > > > > Signed-off-by: Chuhong Yuan > > > --- > > >

Re: [PATCH 00/10] OOM Debug print selection and additional information

2019-08-28 Thread Edward Chron
On Wed, Aug 28, 2019 at 1:04 PM Edward Chron wrote: > > On Wed, Aug 28, 2019 at 3:12 AM Tetsuo Handa > wrote: > > > > On 2019/08/28 16:08, Michal Hocko wrote: > > > On Tue 27-08-19 19:47:22, Edward Chron wrote: > > >> For production systems installing and updating EBPF scripts may someday > > >>

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-28 Thread John Hubbard
On 8/28/19 7:02 PM, Ira Weiny wrote: On Mon, Aug 26, 2019 at 03:55:10PM +1000, Dave Chinner wrote: On Fri, Aug 23, 2019 at 10:08:36PM -0700, Ira Weiny wrote: On Sat, Aug 24, 2019 at 10:11:24AM +1000, Dave Chinner wrote: On Fri, Aug 23, 2019 at 09:04:29AM -0300, Jason Gunthorpe wrote: ...

Re: [PATCH] usb: storage: Add ums-cros-aoa driver

2019-08-28 Thread Julius Werner
(Thanks for the reviews... I'll get back to the kernel code details after double-checking if this can be done from userspace.) > > Besides, what's wrong with binding to devices that weren't switched > > into AOA mode? Would that just provoke a bunch of unnecessary error > > messages? It's not

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-28 Thread Toshiki Fukasawa
On 2019/08/28 23:18, Waiman Long wrote: > On 8/28/19 10:09 AM, Michal Hocko wrote: >> On Wed 28-08-19 09:46:21, Waiman Long wrote: >>> On 8/28/19 4:00 AM, Michal Hocko wrote: On Tue 27-08-19 16:22:38, Michal Hocko wrote: > Dan, isn't this something we have discussed recently? This

[PATCH netdev] net: stmmac: dwmac-rk: Don't fail if phy regulator is absent

2019-08-28 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The devicetree binding lists the phy phy as optional. As such, the driver should not bail out if it can't find a regulator. Instead it should just skip the remaining regulator related code and continue on normally. Skip the remainder of phy_power_on() if a regulator supply

[PATCH 1/1] sched/rt: avoid contend with CFS task

2019-08-28 Thread Jing-Ting Wu
At original linux design, RT & CFS scheduler are independent. Current RT task placement policy will select the first cpu in lowest_mask, even if the first CPU is running a CFS task. This may put RT task to a running cpu and let CFS task runnable. So we select idle cpu in lowest_mask first to

Re: [RESEND PATCH V3 3/8] perf/x86/intel: Support hardware TopDown metrics

2019-08-28 Thread Andi Kleen
On Wed, Aug 28, 2019 at 06:28:57PM +0200, Peter Zijlstra wrote: > On Wed, Aug 28, 2019 at 09:17:54AM -0700, Andi Kleen wrote: > > > This really doesn't make sense to me; if you set FIXED_CTR3 := 0, you'll > > > never trigger the overflow there; this then seems to suggest the actual > > > > The

Re: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Zhang Rui
On Thu, 2019-08-29 at 02:49 +, Anson Huang wrote: > Hi, Rui > > > > On Wed, 2019-08-28 at 08:51 +, Anson Huang wrote: > > > > Hi, Rui > > > > > > > > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > > > > On 27.08.2019 04:51, Anson Huang wrote: > > > > > > > > In an

Re: [PATCH v2 3/3] dwc: PCI: intel: Intel PCIe RC controller driver

2019-08-28 Thread Chuan Hua, Lei
On 8/29/2019 3:36 AM, Martin Blumenstingl wrote: On Wed, Aug 28, 2019 at 5:35 AM Chuan Hua, Lei wrote: [...] +static int intel_pcie_ep_rst_init(struct intel_pcie_port *lpp) +{ +struct device *dev = lpp->pci->dev; +int ret = 0; + +lpp->reset_gpio = devm_gpiod_get(dev, "reset",

Re: [PATCH v2 2/2] reset: Reset controller driver for Intel LGM SoC

2019-08-28 Thread Chuan Hua, Lei
On 8/29/2019 4:01 AM, Martin Blumenstingl wrote: Hi, On Wed, Aug 28, 2019 at 3:53 AM Chuan Hua, Lei wrote: [...] 1. reset-lantiq.c use index instead of register offset + bit position. index reset is good for a small system (< 64). However, it will become very difficult to use if you have >

RE: [PATCH V3 1/5] thermal: qoriq: Add clock operations

2019-08-28 Thread Anson Huang
Hi, Rui > > On Wed, 2019-08-28 at 08:51 +, Anson Huang wrote: > > > Hi, Rui > > > > > > > On Tue, 2019-08-27 at 12:41 +, Leonard Crestez wrote: > > > > > On 27.08.2019 04:51, Anson Huang wrote: > > > > > > > In an earlier series the CLK_IS_CRITICAL flags was removed > > > > > > > from the

[PATCH] amd-xgbe: Fix error path in xgbe_mod_init()

2019-08-28 Thread YueHaibing
In xgbe_mod_init(), we should do cleanup if some error occurs Reported-by: Hulk Robot Fixes: efbaa828330a ("amd-xgbe: Add support to handle device renaming") Fixes: 47f164deab22 ("amd-xgbe: Add PCI device support") Signed-off-by: YueHaibing --- drivers/net/ethernet/amd/xgbe/xgbe-main.c | 10

RE: [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64

2019-08-28 Thread Peng Fan
Hi Stefano, > Subject: RE: [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64 > > On Wed, 28 Aug 2019, Peng Fan wrote: > > Hi Robin, > > > > > Subject: Re: [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64 > > > > > > On 09/07/2019 09:22, Peng Fan wrote: > > > > arm64 shares some code under

Re: [PATCH v6 00/12] implement KASLR for powerpc/fsl_booke/32

2019-08-28 Thread Jason Yan
On 2019/8/28 12:59, Scott Wood wrote: On Tue, 2019-08-27 at 23:05 -0500, Scott Wood wrote: On Fri, 2019-08-09 at 18:07 +0800, Jason Yan wrote: Freescale Book-E parts expect lowmem to be mapped by fixed TLB entries(TLB1). The TLB1 entries are not suitable to map the kernel directly in a

Re: mmotm 2019-08-27-20-39 uploaded (sound/hda/intel-nhlt.c)

2019-08-28 Thread Randy Dunlap
On 8/28/19 3:59 PM, Randy Dunlap wrote: > On 8/28/19 3:45 PM, Pierre-Louis Bossart wrote: >> >>>>> I just checked with Mark Brown's for-next tree >>>>> 8aceffa09b4b9867153bfe0ff6f40517240cee12 >>>>> and things are fine in i386 mode, see b

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

2019-08-28 Thread Biwen Li
Issue: - # hwclock -w hwclock: RTC_SET_TIME: Invalid argument Why: - Relative commit: 8b9f9d4dc511309918c4f6793bae7387c0c638af, this patch will always check for unwritable registers, it will compare reg with max_register in regmap_writeable. - The pcf85363/pcf85263

[PATCH v2 0/4] KVM: selftests: Introduce VM_MODE_PXXV48_4K

2019-08-28 Thread Peter Xu
v2: - pick r-bs - rebased to master - fix pa width detect, check cpuid(1):edx.PAE(bit 6) - fix arm compilation issue [Drew] - fix indents issues and ways to define macros [Drew] - provide functions for fetching cpu pa/va bits [Drew] This series originates from "[PATCH] KVM: selftests: Detect max

[PATCH v2 4/4] KVM: selftests: Remove duplicate guest mode handling

2019-08-28 Thread Peter Xu
Remove the duplication code in run_test() of dirty_log_test because after some reordering of functions now we can directly use the outcome of vm_create(). Meanwhile, with the new VM_MODE_PXXV48_4K, we can safely revert b442324b58 too where we stick the x86_64 PA width to 39 bits for

[PATCH v2 3/4] KVM: selftests: Introduce VM_MODE_PXXV48_4K

2019-08-28 Thread Peter Xu
The naming VM_MODE_P52V48_4K is explicit but unclear when used on x86_64 machines, because x86_64 machines are having various physical address width rather than some static values. Here's some examples: - Intel Xeon E3-1220: 36 bits - Intel Core i7-8650: 39 bits - AMD EPYC 7251: 48

[PATCH v2 2/4] KVM: selftests: Create VM earlier for dirty log test

2019-08-28 Thread Peter Xu
Since we've just removed the dependency of vm type in previous patch, now we can create the vm much earlier. Note that to move it earlier we used an approximation of number of extra pages but it should be fine. This prepares for the follow up patches to finally remove the duplication of guest

[PATCH v2 1/4] KVM: selftests: Move vm type into _vm_create() internally

2019-08-28 Thread Peter Xu
Rather than passing the vm type from the top level to the end of vm creation, let's simply keep that as an internal of kvm_vm struct and decide the type in _vm_create(). Several reasons for doing this: - The vm type is only decided by physical address width and currently only used in aarch64,

Re: [PATCH 4/4] KVM: selftests: Remove duplicate guest mode handling

2019-08-28 Thread Peter Xu
On Wed, Aug 28, 2019 at 01:46:13PM +0200, Andrew Jones wrote: [...] > > +unsigned int vm_get_page_size(struct kvm_vm *vm) > > +{ > > + return vm->page_size; > > +} > > + > > +unsigned int vm_get_page_shift(struct kvm_vm *vm) > > +{ > > + return vm->page_shift; > > +} > > We could get by

Re: [PATCH 3/4] KVM: selftests: Introduce VM_MODE_PXXV48_4K

2019-08-28 Thread Peter Xu
On Wed, Aug 28, 2019 at 01:41:04PM +0200, Andrew Jones wrote: [...] > > +#define DEBUG printf > > If this is going to be some general thing, then maybe we should do it > like this > > #ifndef NDEBUG > #define dprintf printf > #endif Ok. > > > > + > > /* Minimum allocated guest virtual and

RE: [PATCH v2 08/10] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-08-28 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年8月28日 17:01 > To: Xiaowei Bao > Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; Leo Li ; kis...@ti.com; > lorenzo.pieral...@arm.co; a...@arndb.de; gre...@linuxfoundation.org; M.h. > Lian ;

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-28 Thread Ira Weiny
On Mon, Aug 26, 2019 at 03:55:10PM +1000, Dave Chinner wrote: > On Fri, Aug 23, 2019 at 10:08:36PM -0700, Ira Weiny wrote: > > On Sat, Aug 24, 2019 at 10:11:24AM +1000, Dave Chinner wrote: > > > On Fri, Aug 23, 2019 at 09:04:29AM -0300, Jason Gunthorpe wrote: > > > > > > > IMHO it is wrong to try

Re: [PATCH v6 00/12] implement KASLR for powerpc/fsl_booke/32

2019-08-28 Thread Jason Yan
On 2019/8/28 12:05, Scott Wood wrote: On Fri, 2019-08-09 at 18:07 +0800, Jason Yan wrote: This series implements KASLR for powerpc/fsl_booke/32, as a security feature that deters exploit attempts relying on knowledge of the location of kernel internals. Since CONFIG_RELOCATABLE has already

[PATCH v4] watchdog: orion_wdt: use timer1 as a pretimeout

2019-08-28 Thread Chris Packham
The orion watchdog can either reset the CPU or generate an interrupt. The interrupt would be useful for debugging as it provides panic() output about the watchdog expiry, however if the interrupt is used the watchdog can't reset the CPU in the event of being stuck in a loop with interrupts

Re: linux-next: Tree for Aug 27 (objtool)

2019-08-28 Thread Masami Hiramatsu
Hi Josh, On Wed, 28 Aug 2019 11:34:33 -0500 Josh Poimboeuf wrote: > On Wed, Aug 28, 2019 at 11:13:31AM -0500, Josh Poimboeuf wrote: > > Turns out this patch does break something: > > > > arch/x86/xen/enlighten_pv.o: warning: objtool: xen_cpuid()+0x25: can't > > find jump dest instruction at

[PATCH] um: Rewrite host RNG driver.

2019-08-28 Thread Alexander Neville
The old driver had a bug that would cause it to outright stop working if the host's /dev/random were to block. Instead of trying to track down the cause of said bug, rewriting it from scratch turned out to be a much better option as it came with a few benefits: - The new driver properly

[PATCH v14 08/10] soc: mediatek: cmdq: add polling function

2019-08-28 Thread Bibby Hsieh
add polling function in cmdq helper functions Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu Reviewed-by: Houlong Wei --- drivers/soc/mediatek/mtk-cmdq-helper.c | 30 ++ include/linux/mailbox/mtk-cmdq-mailbox.h | 1 + include/linux/soc/mediatek/mtk-cmdq.h| 32

[PATCH v14 03/10] dt-binding: gce: add binding for gce client reg property

2019-08-28 Thread Bibby Hsieh
cmdq driver provide a function that get the relationship of sub system number from device node for client. add specification for #subsys-cells, mediatek,gce-client-reg. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 16

[PATCH v14 02/10] dt-binding: gce: add gce header file for mt8183

2019-08-28 Thread Bibby Hsieh
Add documentation for the mt8183 gce. Add gce header file defined the gce hardware event, subsys number and constant for mt8183. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 6 +- include/dt-bindings/gce/mt8183-gce.h | 175

[PATCH v14 07/10] soc: mediatek: cmdq: define the instruction struct

2019-08-28 Thread Bibby Hsieh
Define an instruction structure for gce driver to append command. This structure can make the client's code more readability. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu Reviewed-by: Houlong Wei --- drivers/soc/mediatek/mtk-cmdq-helper.c | 77

  1   2   3   4   5   6   7   8   9   10   >