Re: [PATCH v7] staging: typec: handle vendor defined part and modify drp toggling flow

2018-03-11 Thread 李書帆
Hi Jun, 2018-03-12 13:58 GMT+08:00 Jun Li : > Hi >> -Original Message- >> From: 李書帆 [mailto:leechu...@gmail.com] >> Sent: 2018年3月12日 13:22 >> To: Jun Li >> Cc: Greg Kroah-Hartman ; >> heikki.kroge...@linux.intel.com; li...@roeck-us.net; g...@kroah.com; >> shufan_...@richtek.com; cy_hu...@

Re: [PATCH][rds-next] rds: make functions rds_info_from_znotifier and rds_message_zcopy_from_user static

2018-03-11 Thread santosh.shilim...@oracle.com
On 3/11/18 10:03 AM, Colin King wrote: From: Colin Ian King Functions rds_info_from_znotifier and rds_message_zcopy_from_user are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnins: net/rds/message.c:70:27: warning: symbol 'rds_info_from_zn

Re: [PATCH][rds-next] rds: remove redundant variable 'sg_off'

2018-03-11 Thread santosh.shilim...@oracle.com
On 3/11/18 9:27 AM, Colin King wrote: From: Colin Ian King Variable sg_off is assigned a value but it is never read, hence it is redundant and can be removed. Cleans up clang warning: net/rds/message.c:373:2: warning: Value stored to 'sg_off' is never read Signed-off-by: Colin Ian King ---

Re: [PATCH v4.16-rc4 1/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-11 Thread Thomas Gleixner
On Mon, 12 Mar 2018, Jason Vas Dias wrote: checkpatch.pl still reports: total: 15 errors, 3 warnings, 165 lines checked > +notrace static u64 vread_tsc_raw(void) > +{ > + u64 tsc, last=gtod->raw_cycle_last; > + if( likely( gtod->has_rdtscp ) ) > + tsc = rdtscp((void*)0

[RFC PATCH 1/4] irqchip/gic-v3: add common_aff_lpi field in struct rdists

2018-03-11 Thread Yang Yingliang
Read CommonLPIAff from GICR_TYPER and check whether the values are same in each register. If they are different, prints warning message and set CommonLPIAff to zero. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3.c | 20 include/linux/irqchip/arm-gic-v3.h

[RFC PATCH 4/4] irqchip/gic-v3-its: sync config of LPIs if there are more than one prop_page

2018-03-11 Thread Yang Yingliang
The config of LPIs need to be same in each prop_page. So if one prop_page is modified, other prop_page should be updated too. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-its.c | 39 ++- 1 file changed, 30 insertions(+), 9 deletions(-) diff --

[RFC PATCH 3/4] irqchip/gic-v3-its: change prop_page to per-cpu type to support CommonLPIAff field

2018-03-11 Thread Yang Yingliang
Change prop_page to per-cpu type and add its_cpu_allocate_prop_tables() to allocate LPI property tables. This function is called by each oneline cpu and allocate tables according to the value of CommonLPIAff. The spec defines the field: CommonLPIAff, bits [25:24] The affinity level at which

[RFC PATCH 2/4] irqchip/gic-v3-its: replace alloc_pages() with alloc_pages_node()

2018-03-11 Thread Yang Yingliang
Use alloc_pages_node() to allocate pages on current node. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-its.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index a03e18e..4ebe131 100

[RFC PATCH 0/4] add support for CommonLPIAff field

2018-03-11 Thread Yang Yingliang
This patch set adjust struct rdists to support CommonLPIAff field. This field is described in spec: CommonLPIAff, bits [25:24] The affinity level at which Redistributors share a LPI Configuration table. 00 All Redistributors must share a LPI Configuration table. 01 All Redistributors with the same

Re: [PATCH v4.16-rc4 1/1] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-11 Thread kbuild test robot
Hi Jason, Thank you for the patch! Yet something to improve: [auto build test ERROR on v4.16-rc4] url: https://github.com/0day-ci/linux/commits/Jason-Vas-Dias/x86-vdso-on-Intel-VDSO-should-handle-CLOCK_MONOTONIC_RAW/20180312-141707 config: x86_64-randconfig-x002-201810 (attached as .config)

[PATCH ghak21 V2 1/4] audit: make ANOM_LINK obey audit_enabled and audit_dummy_context

2018-03-11 Thread Richard Guy Briggs
Audit link denied events emit disjointed records when audit is disabled. No records should be emitted when audit is disabled. See: https://github.com/linux-audit/audit-kernel/issues/21 Signed-off-by: Richard Guy Briggs --- kernel/audit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ker

[PATCH ghak21 V2 0/4] audit: address ANOM_LINK excess records

2018-03-11 Thread Richard Guy Briggs
Audit link denied events were being unexpectedly produced in a disjoint way when audit was disabled, and when they were expected, there were duplicate PATH records. This patchset addresses both issues for symlinks and hardlinks. This was introduced with commit b24a30a7305418ff138ff51776fc

Re: [PATCH v4.16-rc4 1/1] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-11 Thread kbuild test robot
Hi Jason, Thank you for the patch! Yet something to improve: [auto build test ERROR on v4.16-rc4] url: https://github.com/0day-ci/linux/commits/Jason-Vas-Dias/x86-vdso-on-Intel-VDSO-should-handle-CLOCK_MONOTONIC_RAW/20180312-141707 config: i386-randconfig-x006-201810 (attached as .config) co

Re: [PATCH] scsi: eata: drop VLA in reorder()

2018-03-11 Thread valdis . kletnieks
On Mon, 12 Mar 2018 14:08:34 +1100, "Tobin C. Harding" said: > removal patch that 768 was a lot of stack space. That comment did, > however say 'deep in some transfer call chain'. I don't know what a > 'transfer call chain' (the transfer bit) is but is there some heuristic > we can use to know h

[PATCH ghak21 V2 2/4] audit: link denied should not directly generate PATH record

2018-03-11 Thread Richard Guy Briggs
Audit link denied events generate duplicate PATH records which disagree in different ways from symlink and hardlink denials. audit_log_link_denied() should not directly generate PATH records. While we're at it, remove the now useless struct path argument. See: https://github.com/linux-audit/audit-

[PATCH ghak21 V2 4/4] audit: add parent of refused symlink to audit_names

2018-03-11 Thread Richard Guy Briggs
Audit link denied events for symlinks were missing the parent PATH record. Add it. Since the full pathname may not be available, reconstruct it from the path in the nameidata supplied. See: https://github.com/linux-audit/audit-kernel/issues/21 Signed-off-by: Richard Guy Briggs --- fs/namei.c

[PATCH ghak21 V2 3/4] audit: add refused symlink to audit_names

2018-03-11 Thread Richard Guy Briggs
Audit link denied events for symlinks had duplicate PATH records rather than just updating the existing PATH record. Update the symlink's PATH record with the current dentry and inode information. See: https://github.com/linux-audit/audit-kernel/issues/21 Signed-off-by: Richard Guy Briggs --- f

Re: [PATCH] device_handler: remove VLAs

2018-03-11 Thread Hannes Reinecke
On 03/09/2018 11:32 PM, Stephen Kitt wrote: > In preparation to enabling -Wvla, remove VLAs and replace them with > fixed-length arrays instead. > > scsi_dh_{alua,emc,rdac} use variable-length array declarations to > store command blocks, with the appropriate size as determined by > COMMAND_SIZE.

Re: [PATCH v2 2/2] riscv/atomic: Strengthen implementations with fences

2018-03-11 Thread Boqun Feng
On Fri, Mar 09, 2018 at 04:21:37PM -0800, Daniel Lustig wrote: > On 3/9/2018 2:57 PM, Palmer Dabbelt wrote: > > On Fri, 09 Mar 2018 13:30:08 PST (-0800), parri.and...@gmail.com wrote: > >> On Fri, Mar 09, 2018 at 10:54:27AM -0800, Palmer Dabbelt wrote: > >>> On Fri, 09 Mar 2018 10:36:44 PST (-0800)

Re: [PATCH v2] staging: vchiq_arm: Clear VLA warning

2018-03-11 Thread Tobin C. Harding
On Mon, Mar 12, 2018 at 06:58:04AM +0100, Stefan Wahren wrote: > Hi Tobin, > > > "Tobin C. Harding" hat am 12. März 2018 um 06:46 > > geschrieben: > > > > > > On Mon, Mar 12, 2018 at 12:37:53PM +1100, Tobin C. Harding wrote: > > > The kernel would like to have all stack VLA usage removed[1].

RE: [PATCH v7] staging: typec: handle vendor defined part and modify drp toggling flow

2018-03-11 Thread Jun Li
Hi > -Original Message- > From: 李書帆 [mailto:leechu...@gmail.com] > Sent: 2018年3月12日 13:22 > To: Jun Li > Cc: Greg Kroah-Hartman ; > heikki.kroge...@linux.intel.com; li...@roeck-us.net; g...@kroah.com; > shufan_...@richtek.com; cy_hu...@richtek.com; > linux-kernel@vger.kernel.org; linux-...

Re: [PATCH v2] staging: vchiq_arm: Clear VLA warning

2018-03-11 Thread Stefan Wahren
Hi Tobin, > "Tobin C. Harding" hat am 12. März 2018 um 06:46 geschrieben: > > > On Mon, Mar 12, 2018 at 12:37:53PM +1100, Tobin C. Harding wrote: > > The kernel would like to have all stack VLA usage removed[1]. The array > > here is fixed (declared with a const variable) but it appears like a

Re: [PATCH V2] ZBOOT: fix stack protector in compressed boot phase

2018-03-11 Thread kbuild test robot
Hi Huacai, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc5 next-20180309] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

Re: [PATCH 0/2] mtd: use put_device() if device_register fail

2018-03-11 Thread Arvind Yadav
On Monday 12 March 2018 01:05 AM, Richard Weinberger wrote: Am Freitag, 9. März 2018, 11:50:47 CET schrieb Arvind Yadav: if device_register() returned an error! Always use put_device() to give up the reference initialized. Arvind Yadav (2): [PATCH 1/2] mtd: use put_device() if device_regis

Re: [PATCH v2] staging: vchiq_arm: Clear VLA warning

2018-03-11 Thread Tobin C. Harding
On Mon, Mar 12, 2018 at 12:37:53PM +1100, Tobin C. Harding wrote: > The kernel would like to have all stack VLA usage removed[1]. The array > here is fixed (declared with a const variable) but it appears like a VLA > to the compiler. Also, currently we are putting 768 bytes on the > stack. This

[PATCH v4.16-rc4 2/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-11 Thread Jason Vas Dias
Currently the VDSO does not handle clock_gettime( CLOCK_MONOTONIC_RAW, &ts ) on Intel / AMD - it calls vdso_fallback_gettime() for this clock, which issues a syscall, having an unacceptably high latency (minimum measurable time or time between measurements) of 300-700ns on 2 2.

Re: smp_mb__after_spinlock requirement too strong?

2018-03-11 Thread Boqun Feng
On Sun, Mar 11, 2018 at 03:55:41PM +0800, 焦晓冬 wrote: > Peter pointed out in this patch https://patchwork.kernel.org/patch/9771921/ > that the spinning-lock used at __schedule() should be RCsc to ensure > visibility of writes prior to __schedule when the task is to be migrated to > another CPU. > >

[PATCH v4.16-rc4 2/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-11 Thread Jason Vas Dias
Currently the VDSO does not handle clock_gettime( CLOCK_MONOTONIC_RAW, &ts ) on Intel / AMD - it calls vdso_fallback_gettime() for this clock, which issues a syscall, having an unacceptably high latency (minimum measurable time or time between measurements) of 300-700ns on 2 2.

Re: [PATCH v2] PM / wakeup: use seq_open() to show wakeup stats

2018-03-11 Thread Ganesh Mahendran
Hello, Rafael: 2018-03-05 16:47 GMT+08:00 Ganesh Mahendran : > single_open() interface requires that the whole output must > fit into a single buffer. This will lead to timeout when > system memory is not in a good situation. > > This patch use seq_open() to show wakeup stats. This method > need o

[PATCH] perf: update perf_cgroup time for ancestor cgroup(s)

2018-03-11 Thread Song Liu
When a perf_event is attached to parent cgroup, it should count events for all children cgroups: parent_group < perf_event \ - child_group < process(es) However, in our tests, we found this perf_event cannot report reliable results. This is because perf_event->cgrp and cpuctx->

Liebe Freunde

2018-03-11 Thread Mr.SHI
Liebe Freunde Ich habe ein Geschäft von $ 65.400.000.00 Million (fünfundsechzig Millionen, vierhunderttausend US-Dollar), die er in unserer Bank hinterlegt hat und gerade lügt, nicht beansprucht zu teilen, sollten Sie interessiert sein. Sollten Sie interessiert sein, wenden Sie sich bitte an me

[PATCH v2 2/3] phy: phy-mtk-tphy: add configurable parameters for slew rate calibrate

2018-03-11 Thread Chunfeng Yun
There are two parameters, ref_clk and coefficient, for U2 slew rate calibrate which may vary on different SoCs, here allow them to be configurable Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/phy-mtk-tphy.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff

[PATCH v2 3/3] dt-bindings: phy-mtk-tphy: add properties for U2 slew rate calibrate

2018-03-11 Thread Chunfeng Yun
Add two properties of ref_clk and coefficient used by U2 slew rate calibrate which may vary on different SoCs Signed-off-by: Chunfeng Yun --- Documentation/devicetree/bindings/phy/phy-mtk-tphy.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/phy-m

[PATCH v2 1/3] phy: phy-mtk-tphy: keep default value of mcu_bus_ck_gate_en

2018-03-11 Thread Chunfeng Yun
The default value of mcu_bus_ck_gate_en is 1, if clear it, will prevent system to enter deep idle mode, so keep its default value and without affecting PCIe function. Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/phy-mtk-tphy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

Re: [PATCH] rcu: exp: Fix "must hold exp_mutex" comments for QS reporting functions

2018-03-11 Thread Boqun Feng
On Fri, Mar 09, 2018 at 12:17:07PM -0800, Paul E. McKenney wrote: > On Fri, Mar 09, 2018 at 02:57:00PM +0800, Boqun Feng wrote: > > On Thu, Mar 08, 2018 at 07:42:55AM -0800, Paul E. McKenney wrote: > > > On Thu, Mar 08, 2018 at 04:30:06PM +0800, Boqun Feng wrote: > > > > On Thu, Mar 08, 2018 at 12:

Re: [PATCH v7] staging: typec: handle vendor defined part and modify drp toggling flow

2018-03-11 Thread 李書帆
Hi Jun, Thank you. 2018-03-12 12:33 GMT+08:00 Jun Li : > Hi, > >> +static irqreturn_t _tcpci_irq(int irq, void *dev_id) { >> + struct tcpci *tcpci = dev_id; >> + >> + return tcpci_irq(tcpci); >> +} >> > ... > >> + err = devm_request_threaded_irq(&client->dev, client->irq, NULL, >> +

Re: [PATCH] rbd: Remove VLA stack usage

2018-03-11 Thread Tobin C. Harding
On Sun, Mar 11, 2018 at 10:02:04PM -0700, Eric Biggers wrote: > On Mon, Mar 12, 2018 at 03:49:40PM +1100, Tobin C. Harding wrote: > > The kernel would like to have all stack VLA usage removed[1]. > > Can you please stop writing this? The Linux kernel isn't sentient; it doesn't > "like" anything.

Re: [PATCH] rbd: Remove VLA stack usage

2018-03-11 Thread Eric Biggers
On Mon, Mar 12, 2018 at 03:49:40PM +1100, Tobin C. Harding wrote: > The kernel would like to have all stack VLA usage removed[1]. Can you please stop writing this? The Linux kernel isn't sentient; it doesn't "like" anything. You need to explain why *you* (and other people) believe these changes

[PATCH v4.16-rc4 1/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-11 Thread Jason Vas Dias
Currently the VDSO does not handle clock_gettime( CLOCK_MONOTONIC_RAW, &ts ) on Intel / AMD - it calls vdso_fallback_gettime() for this clock, which issues a syscall, having an unacceptably high latency (minimum measurable time or time between measurements) of 300-700ns on 2 2.

[PATCH] rbd: Remove VLA saving ack buffer size

2018-03-11 Thread Tobin C. Harding
The kernel would like to have all stack VLA usage removed[1]. Here the array is declared using a variable that is declared using a constant statement but the compiler still emits a warning. We can clear the warning bu using the constant statement directly. The buffer size variable is set to zero

[PATCH] rbd: Remove VLA stack usage

2018-03-11 Thread Tobin C. Harding
The kernel would like to have all stack VLA usage removed[1]. Here the array is declared using a variable that is declared using a constant statement but the compiler still emits a warning. We can clear the warning bu using the constant statement directly. In place of later usage of the size var

Re: [PATCH] mmc: card: Don't show eMMC RPMB and BOOT areas in /proc/partitions

2018-03-11 Thread Harish Jenny K N
On Saturday 10 March 2018 05:29 PM, Linus Walleij wrote: > > But this patch doesn't hide the partition from userspace does it? > > They will still appear in /dev/mmcblk0boot1 etc. > > Just not reported as "real" partitions in /proc/partitions. > > Or do I misunderstand it? > > You are correct. T

Re: [PATCH v4 14/24] fpga: dfl: fme: add partial reconfiguration sub feature support

2018-03-11 Thread Wu Hao
On Sun, Mar 11, 2018 at 01:09:31PM -0700, matthew.gerl...@linux.intel.com wrote: > > > On Mon, 5 Mar 2018, Alan Tull wrote: > > > Hi Hao, > > I do think we should consider different hw implementations with this code > because it does look like most of it is generic. Specifically, I think > we

Re: [PATCH 10/10] dt-bindings: thermal: Remove "cooling-{min|max}-level" properties

2018-03-11 Thread Viresh Kumar
On 09-02-18, 14:28, Viresh Kumar wrote: > The "cooling-min-level" and "cooling-max-level" properties are not > parsed by any part of kernel currently and the max cooling state of a > CPU cooling device is found by referring to the cpufreq table instead. > > Remove the unused bindings. > > Signed-

Re: [PATCH 07/10] ARM: dts: gemini: Remove "cooling-{min|max}-level" for gpio-fan node

2018-03-11 Thread Viresh Kumar
On 09-02-18, 14:28, Viresh Kumar wrote: > The "cooling-min-level" and "cooling-max-level" properties are not > parsed by any part of the kernel currently and the max cooling state of > gpio-fan cooling device is found by referring to the > "gpio-fan,speed-map" instead. > > Remove the unused proper

RE: [PATCH v7] staging: typec: handle vendor defined part and modify drp toggling flow

2018-03-11 Thread Jun Li
Hi, > +static irqreturn_t _tcpci_irq(int irq, void *dev_id) { > + struct tcpci *tcpci = dev_id; > + > + return tcpci_irq(tcpci); > +} > ... > + err = devm_request_threaded_irq(&client->dev, client->irq, NULL, > + _tcpci_irq, >

Re: [PATCH 06/10] ARM64: dts: meson: Remove "cooling-{min|max}-level" for CPU nodes

2018-03-11 Thread Viresh Kumar
On 09-02-18, 10:03, Neil Armstrong wrote: > On 09/02/2018 09:58, Viresh Kumar wrote: > > The "cooling-min-level" and "cooling-max-level" properties are not > > parsed by any part of the kernel currently and the max cooling state of > > a CPU cooling device is found by referring to the cpufreq table

Re: [PATCH V4] thermal: Add cooling device's statistics in sysfs

2018-03-11 Thread Viresh Kumar
On 16-01-18, 15:22, Viresh Kumar wrote: > This extends the sysfs interface for thermal cooling devices and exposes > some pretty useful statistics. These statistics have proven to be quite > useful specially while doing benchmarks related to the task scheduler, > where we want to make sure that not

[PATCH v9] mmc: Export host capabilities to debugfs.

2018-03-11 Thread Harish Jenny K N
This patch exports the host capabilities to debugfs This idea of sharing host capabilities over debugfs came up from Abbas Raza Earlier discussions: https://lkml.org/lkml/2018/3/5/357 https://www.spinics.net/lists/linux-mmc/msg48219.html Signed-off-by: Harish Jenny K N --- Changes in v9 - More

[PATCH] of: unittest: Remove VLA stack usage

2018-03-11 Thread Tobin C. Harding
The kernel would like to have all stack VLA usage removed[1]. This is a test function so the execution speed is not critical. We can allocate memory for this buffer instead of using a VLA. If kmalloc() fails just return. Allocate buffer with kmalloc(). [1]: https://lkml.org/lkml/2018/3/7/621

[PATCH 3/4] ARM: dts: sun8i: a33: Enable PMIC power supplies on A33-OLinuXino

2018-03-11 Thread Chen-Yu Tsai
The A33-OLinuXino has a DC jack wired to the onboard PMIC's ACIN pins. There is also a battery connector, wired to the PMIC's battery charger. Enable the power supplies for both these components. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 8 1 file chan

[PATCH 2/4] ARM: dts: sun8i: a33: Drop sunxi-common-regulators.dtsi for A33-OLinuXino

2018-03-11 Thread Chen-Yu Tsai
None of the common regulators defined in sunxi-common-regulators.dtsi are used for the A33-OLinuXino. Drop the include. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-a33-olinuxino.dts b/arch/

[PATCH 0/4] ARM: dts: sun8i: a33: Improvements for A33-OLinuXino

2018-03-11 Thread Chen-Yu Tsai
Hi, Here are some cleanup and improvements for the A33-OLinuXino device tree. The first two patches drop some unneeded bits. The latter two enable peripherals that we now support. ChenYu Chen-Yu Tsai (4): ARM: dts: sun8i: a33: Drop GPIO pinmux settings for A33-OLinuXino ARM: dts: sun8i: a33:

[PATCH 1/4] ARM: dts: sun8i: a33: Drop GPIO pinmux settings for A33-OLinuXino

2018-03-11 Thread Chen-Yu Tsai
Normal GPIO usage does not need an additional pinmix setting. Exclusive usage of the pin will be guaranteed by the driver. Drop the extra pinmux settings. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 23 +-- 1 file changed, 1 insertion(+), 22 d

[PATCH 4/4] ARM: dts: sun8i: a33: Enable A33 internal audio codec on A33-OLinuXino

2018-03-11 Thread Chen-Yu Tsai
The A33-OLinuXino routes the SoC's headphone output to a headphone jack, and the microphone input to a microphone jack. Power to the microphone is provided by MBIAS. This patch enables the various parts of the codec, and adds widgets and routes for simple-card. HBIAS is connected to the microphon

[PATCH] ARM: dts: sun8i: reference tablet design: Enable PMIC power supplies

2018-03-11 Thread Chen-Yu Tsai
The A23/A33 reference tablet design has a DC barrel tied to the ACIN of the PMIC. And being a tablet, it has a Li-Po battery. Enable both power supplies in the device tree. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi | 8 1 file changed, 8 inser

Re: ivtv: use arch_phys_wc_add() and require PAT disabled

2018-03-11 Thread Nick French
On Sun, Mar 11, 2018 at 11:24:38PM +, Ian Armstrong wrote: > On Sat, 10 Mar 2018 16:57:41 + > "French, Nicholas A." wrote: > > > > > No what if the framebuffer driver is just requested as a > > > > secondary step after firmware loading? > > > > > > Its a possibility. The decoder firmwar

Re: [pci PATCH v4 1/4] pci-iov: Add support for unmanaged SR-IOV

2018-03-11 Thread Alex Williamson
On Thu, 08 Mar 2018 11:02:29 -0800 Alexander Duyck wrote: > From: Alexander Duyck > > This patch is meant to add some basic functionality to support for SR-IOV > on devices when the VFs are not managed by some other entity in the device > other than the kernel. > > A new sysfs value called sri

Re: [RFC PATCH v2 00/12] Rewrite asm-generic/bitops/{atomic,lock}.h and use on arm64

2018-03-11 Thread Masahiro Yamada
Hi Will, 2018-03-01 16:16 GMT+09:00 Masahiro Yamada : > 2018-02-27 0:04 GMT+09:00 Will Deacon : >> Hi everyone, >> >> This is version two of the RFC I previously posted here: >> >> https://www.spinics.net/lists/arm-kernel/msg634719.html >> >> Changes since v1 include: >> >> * Fixed __clear_bi

[PATCH 3.2 000/104] 3.2.101-rc1 review

2018-03-11 Thread Ben Hutchings
This is the start of the stable review cycle for the 3.2.101 release. There are 104 patches in this series, which will be posted as responses to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed Mar 14 12:00:00 UTC 2018. Anything rece

[PATCH 3.2 005/104] ath6kl: fix uninitialized variable in ath6kl_sdio_enable_scatter()

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Andi Kleen commit 527f6570300980251e818e80865b437eefb4e5d3 upstream. gcc 4.8 warns /backup/lsrc/git/linux-lto-2.6/drivers/net/wireless/ath/ath6kl/sdio.c: In function 'ath6kl_sdio_enable_scatt

[PATCH 3.2 004/104] brcm80211: Remove bogus memcpy in ai_detach

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Andi Kleen commit af2c8ffe56133928355d1d51978b35115ffbbc2a upstream. gcc 4.8 warns for this memcpy. While the copy size is correct, the whole copy seems to be a nop because the destination is

[PATCH 3.2 009/104] rtl8192c:dm: Properly initialize local array and set value.

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Han Shen commit 7c8f0db0d024efda38976fc2acf7743f458e1d96 upstream. GCC 4.8 is spitting out uninitialized-variable warnings against "drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c". This pa

[PATCH 3.2 103/104] x86: fix build warnign with 32-bit PAE

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann I ran into a 4.9 build warning in randconfig testing, starting with the KAISER patches: arch/x86/kernel/ldt.c: In function 'alloc_ldt_struct': arch/x86/include/asm/pgtable_types.

[PATCH 3.2 001/104] brcmfmac: work-around gcc 4.7 build issue

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Alexandre Oliva commit 5addc0de28f5e286f9d121112c450807b5a5 upstream. Alexandre Oliva says: "It's an issue brought about by GCC 4.7's partial-inlining, that ends up splitting the udelay

[PATCH 3.2 012/104] usb: renesas_usbhs: fixup __usbhs_for_each_pipe 1st pos

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Kuninori Morimoto commit c2fa3edc58a262dfcb7aea78e24661e90e00098c upstream. __usbhs_for_each_pipe() is the macro which moves around each pipe, but it has a bug which didn't care about 1st pipe

[PATCH 3.2 008/104] rtlwifi: rtl8192de: Fix W=1 build warnings

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit 8925d518663628f769173d3586c66987fdd3ab61 upstream. when this driver is built with "make W=1", the following warning is printed: drivers/net/wireless/rtlwifi/rtl8192de/dm.c

[PATCH 3.2 015/104] gcov: add support for gcc 4.7 gcov format

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Frantisek Hrbata commit 5f41ea0386a53414d688cfcaa321a78310e5f7c1 upstream. The gcov in-memory format changed in gcc 4.7. The biggest change, which requires this special implementation, is tha

[PATCH 3.2 003/104] rtlwifi: rtl8192se: Fix gcc 4.7.x warning

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit f761b6947dde42890beea59b020e1be87491809e upstream. With gcc 4.7.x, the following warning is issued as the routine that sets the array has the possibility of not initializin

[PATCH 3.2 013/104] usb: renesas_usbhs: tidyup original usbhsx_for_each_xxx macro

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Kuninori Morimoto commit 925403f425a4a9c503f2fc295652647b1eb10d82 upstream. Current usbhsx_for_each_xxx macro will read out-of-array's memory after last loop operation. It was not good C langu

Re: [v6-1,15/17] arm64: dts: rockchip: add isp0 node for rk3399

2018-03-11 Thread Shunqian Zheng
Ah, sorry, I used a wrong Message-Id in In-reply-to, please ignore this one. Sorry about that. On 2018年03月12日 11:37, Shunqian Zheng wrote: rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present. Signed-off-by: Shunqian Zheng Signed-off-by: Jacob Chen --- arch/arm64/boot

[PATCH 3.2 095/104] x86/speculation: Fix typo IBRS_ATT, which should be IBRS_ALL

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Darren Kenny commit af189c95a371b59f493dbe0f50c0a09724868881 upstream. Fixes: 117cc7a908c83 ("x86/retpoline: Fill return stack buffer on vmexit") Signed-off-by: Darren Kenny Signed-off-by: Th

[PATCH 3.2 014/104] gcov: move gcov structs definitions to a gcc version specific file

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Frantisek Hrbata commit 8cbce376e3fdf4a21f59365aefbb52eac3c2e312 upstream. Since also the gcov structures(gcov_info, gcov_fn_info, gcov_ctr_info) can change between gcc releases, as shown in g

[PATCH 3.2 016/104] gcov: compile specific gcov implementation based on gcc version

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Frantisek Hrbata commit 17c568d60af5a810208baf116dc174a2005c6c3e upstream. Compile the correct gcov implementation file for the specific gcc version. Signed-off-by: Frantisek Hrbata Cc: Jan

[PATCH 3.2 002/104] Bluetooth: Remove unused hci_le_ltk_reply()

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Syam Sidhardhan commit e10b9969f217c948c5523045f44eba4d3a758ff0 upstream. In this API, we were using sizeof operator for an array given as function argument, which is invalid. However this API

[PATCH 3.2 011/104] Removed unused typedef to avoid "unused local typedef" warnings.

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Han Shen commit 6b13eb1baa17b8746f96bd536d2897ec86e823d9 upstream. Fix warnings about unused local typedefs (reported by gcc 4.8). Signed-off-by: Han Shen (shen...@google.com) Change-Id: I4

[PATCH 3.2 017/104] SELinux: security_load_policy: Silence frame-larger-than warning

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Tim Gardner commit b5495b4217d3fa64deac479db83dbede149af7d8 upstream. Dynamically allocate a couple of the larger stack variables in order to reduce the stack footprint below 1024. gcc-4.8 se

[PATCH 3.2 070/104] kprobes/x86: Blacklist indirect thunk functions for kprobes

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Masami Hiramatsu commit c1804a236894ecc942da7dc6c5abe209e56cba93 upstream. Mark __x86_indirect_thunk_* functions as blacklist for kprobes because those functions can be called from anywhere in

[PATCH char-misc 1/1] Drivers: hv: vmbus: Add hooks for per-CPU IRQ

2018-03-11 Thread Michael Kelley
Add hooks to enable/disable a per-CPU IRQ for VMbus. These hooks are in the architecture independent setup and shutdown paths for Hyper-V. They are being added as staging for upcoming code for Linux guests on Hyper-V on ARM64. The x86/x64 implementation is null because VMbus interrupts on x86/x64

[PATCH 3.2 080/104] x86/cpu/bugs: Make retpoline module warning conditional

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit e383095c7fe8d218e00ec0f83e4b95ed4e627b02 upstream. If sysfs is disabled and RETPOLINE not defined: arch/x86/kernel/cpu/bugs.c:97:13: warning: ‘spectre_v2_bad_module’ de

[PATCH v6-1,15/17] arm64: dts: rockchip: add isp0 node for rk3399

2018-03-11 Thread Shunqian Zheng
rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present. Signed-off-by: Shunqian Zheng Signed-off-by: Jacob Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arc

[PATCH 3.2 093/104] x86/retpoline: Avoid retpolines for built-in __init functions

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit 66f793099a636862a71c59d4a6ba91387b155e0c upstream. There's no point in building init code with retpolines, since it runs before any potentially hostile userspace does. A

[PATCH 3.2 072/104] x86/pti: Document fix wrong index

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: "zhenwei.pi" commit 98f0fceec7f84d80bc053e49e596088573086421 upstream. In section <2. Runtime Cost>, fix wrong index. Signed-off-by: zhenwei.pi Signed-off-by: Thomas Gleixner Cc: dave.han..

[PATCH 3.2 076/104] x86/retpoline: Remove the esp/rsp thunk

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Waiman Long commit 1df37383a8aeabb9b418698f0bcdffea01f4b1b2 upstream. It doesn't make sense to have an indirect call thunk with esp/rsp as retpoline code won't work correctly with the stack po

[PATCH 3.2 057/104] x86/asm: Use register variable to get stack pointer value

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Andrey Ryabinin commit 196bd485ee4f03ce4c690bfcf38138abfcd0a4bc upstream. Currently we use current_stack_pointer() function to get the value of the stack pointer register. Since commit: f5c

[PATCH 3.2 096/104] x86/cpufeatures: Clean up Spectre v2 related CPUID flags

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit 2961298efe1ea1b6fc0d7ee8b76018fa6c0bcef2 upstream. We want to expose the hardware features simply in /proc/cpuinfo as "ibrs", "ibpb" and "stibp". Since AMD has separate

[PATCH 3.2 094/104] x86/spectre: Simplify spectre_v2 command line parsing

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: KarimAllah Ahmed commit 9005c6834c0ffdfe46afa76656bd9276cca864f6 upstream. [dwmw2: Use ARRAY_SIZE] Signed-off-by: KarimAllah Ahmed Signed-off-by: David Woodhouse Signed-off-by: Thomas Gleix

[PATCH 3.2 051/104] x86/alternatives: Make optimize_nops() interrupt safe and synced

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit 66c117d7fa2ae429911e60d84bf31a90b2b96189 upstream. Richard reported the following crash: [0.036000] BUG: unable to handle kernel paging request at 55501e06 [0.0

[PATCH 3.2 048/104] sysfs/cpu: Fix typos in vulnerability documentation

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit 9ecccfaa7cb5249bd31bdceb93fcf5bedb8a24d8 upstream. Fixes: 87590ce6e ("sysfs/cpu: Add vulnerability folder") Signed-off-by: David Woodhouse Signed-off-by: Thomas Gleixne

[PATCH 3.2 058/104] x86/retpoline: Add initial retpoline support

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit 76b043848fd22dbf7f8bf3a1452f8c70d557b860 upstream. Enable the use of -mindirect-branch=thunk-extern in newer GCC, and provide the corresponding thunks. Provide assembler

[PATCH 3.2 077/104] module/retpoline: Warn about missing retpoline in module

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Andi Kleen commit caf7501a1b4ec964190f31f9c3f163de252273b8 upstream. There's a risk that a kernel which has full retpoline mitigations becomes vulnerable when a module gets loaded that hasn't

[PATCH 3.2 104/104] cris: Remove old legacy "-traditional" flag from arch-v10/lib/Makefile

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Paul Gortmaker commit 7b91747d42a1012e3781dd09fa638d113809e3fd upstream. Most of these have been purged years ago. This one silently lived on until commit 69349c2dc01c489eccaa4c472542c08e370c

[PATCH 3.2 102/104] x86/uaccess: Use __uaccess_begin_nospec() and uaccess_try_nospec

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 304ec1b050310548db33063e567123fae8fd0301 upstream. Quoting Linus: I do think that it would be a good idea to very expressly document the fact that it's not that th

[PATCH 3.2 044/104] x86/cpufeatures: Add X86_BUG_SPECTRE_V[12]

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit 99c6fa2511d8a683e61468be91b83f85452115fa upstream. Add the bug bits for spectre v1/2 and force them unconditionally for all cpus. Signed-off-by: David Woodhouse Signed

[PATCH 3.2 045/104] x86/cpu: Merge bugs.c and bugs_64.c

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Borislav Petkov commit 62a67e123e058a67db58bc6a14354dd037bafd0a upstream. Should be easier when following boot paths. It probably is a left over from the x86 unification eons ago. No function

[PATCH 3.2 049/104] x86/alternatives: Guard NOPs optimization

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Borislav Petkov commit 69df353ff305805fc16082d0c5bfa6e20fa8b863 upstream. Take a look at the first instruction byte before optimizing the NOP - there might be something else there already, lik

[PATCH 3.2 055/104] x86/asm: Make asm/alternative.h safe from assembly

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit f005f5d860e0231fe212cfda8c1a3148b99609f4 upstream. asm/alternative.h isn't directly useful from assembly, but it shouldn't break the build. Signed-off-by: Andy Lutomirs

[PATCH 3.2 098/104] nospec: Move array_index_nospec() parameter checking into separate macro

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit 8fa80c503b484ddc1abbd10c7cb2ab81f3824a50 upstream. For architectures providing their own implementation of array_index_mask_nospec() in asm/barrier.h, attempting to use WARN

[PATCH 3.2 042/104] x86/cpu, x86/pti: Do not enable PTI on AMD processors

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Tom Lendacky commit 694d99d40972f12e59a3696effee8a376b79d7c8 upstream. AMD processors are not subject to the types of attacks that the kernel page table isolation feature protects against. Th

[PATCH 3.2 032/104] x86, cpu: Expand cpufeature facility to include cpu bugs

2018-03-11 Thread Ben Hutchings
3.2.101-rc1 review patch. If anyone has any objections, please let me know. -- From: Borislav Petkov commit 65fc985b37dc241c4db7cd32adcbc989193fe3c8 upstream. We add another 32-bit vector at the end of the ->x86_capability bitvector which collects bugs present in CPUs. After a

  1   2   3   4   5   6   >