Re: [PATCH v6 08/11] intel_sgx: in-kernel launch enclave

2017-12-04 Thread Jarkko Sakkinen
On Wed, Nov 29, 2017 at 12:38:52AM +0200, Jarkko Sakkinen wrote: > On Sat, Nov 25, 2017 at 09:29:25PM +0200, Jarkko Sakkinen wrote: > > This commits implements the in-kernel launch enclave. It is wrapped into > > a user space program that reads SIGSTRUCT instances from stdin and > > outputs launch

Add support for lemote-2f YeeLoong laptop (RESEND)

2017-12-04 Thread Jiaxun Yang
Since Ralf havn't appear for a long time, I resend this patch. Btw: Why linux-mips wiki and patchwork down for so long time?

[RESEND PATCH v5 3/6] dt-bindings: display: Add bindings for SGD GKTW70SDAE4SE Panel

2017-12-04 Thread Neil Armstrong
The GKTW70SDAE4SE is an LVDS display panel. Their bindings are modelled on the the LVDS panel bindings. Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- .../bindings/display/panel/sgd,gktw70sdae4se.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 D

[PATCH RESEND v3 2/4] MIPS: Loongson64: lemote-2f move ec_kb3310b.h to include dir and clean up

2017-12-04 Thread Jiaxun Yang
To operate EC from platform driver, this head file need able to be include from anywhere. This patch just move ec_kb3310b.h to include dir and clean up ec_kb3310b.h. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/ec_kb3310b.h | 170 +++ arch/mips/loongson64/

[PATCH RESEND v3 4/4] MIPS: Loongson64: Load platform device during boot

2017-12-04 Thread Jiaxun Yang
This patch just add pdev during boot to load the platform driver Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/platform.c | 27 +++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 arch

[PATCH RESEND v3 3/4] MIPS: Loongson64: Yeeloong add platform driver

2017-12-04 Thread Jiaxun Yang
Yeeloong is a laptop with a MIPS Loongson 2F processor, AMD CS5536 chipset, and KB3310B controller. This yeeloong_laptop module enables access to sensors, battery, video camera switch, external video connector event, and some additional buttons. This driver was orginally from linux-loongson-commu

Re: Use-after-free with deferred driver probing and __initconst

2017-12-04 Thread Greg Kroah-Hartman
On Sun, Dec 03, 2017 at 07:19:53PM +0200, Dan Aloni wrote: > Hi all, > > [[ CC'ed: folks relating to the original __*_refok family of attributes, > deferred probing, Open Firmware maintainer, drivers/base/ maintainer, > kernel harderning, LKML ]] > > It seems that it is possible to cause a use-af

[PATCH RESEND v3 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline

2017-12-04 Thread Jiaxun Yang
Since lemote-2f/marchtype.c need to get cmdline from loongson.h this patch simply copy kernel command line from arcs_cmdline to fix that issue Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/loongson.h | 6 ++ arch/mips/loongson64/common/cmdline.c| 7 +++

Re: WARNING in kmalloc_slab (3)

2017-12-04 Thread Dan Carpenter
On Mon, Dec 04, 2017 at 09:18:05AM +0100, Dmitry Vyukov wrote: > On Mon, Dec 4, 2017 at 9:14 AM, Dan Carpenter > wrote: > > On Sun, Dec 03, 2017 at 12:16:08PM -0800, Eric Biggers wrote: > >> Looks like BLKTRACESETUP doesn't limit the '.buf_nr' parameter, allowing > >> anyone > >> who can open a

Re: [PATCH 3/3] ARM64: dts: meson-axg: add PWM DT info for Meson-Axg SoC

2017-12-04 Thread Jerome Brunet
On Mon, 2017-12-04 at 10:17 +0100, Jerome Brunet wrote: > On Mon, 2017-12-04 at 14:00 +0800, Yixun Lan wrote: > > From: Jian Hu > > > > Add PWM DT info for the Amlogic's Meson-Axg SoC. > > > > Signed-off-by: Jian Hu > > Signed-off-by: Yixun Lan > > --- > > arch/arm64/boot/dts/amlogic/meson-ax

Re: [GIT PULL] hash addresses printed with %p

2017-12-04 Thread Dave Young
On 12/04/17 at 08:36am, Greg Kroah-Hartman wrote: > On Mon, Dec 04, 2017 at 10:02:16AM +0800, Dave Young wrote: > > +#define __ATTR_IRUSR(_name) { > > \ > > + .attr = { .name = __stringify(_name), .mode = S_IRUSR }, \ > > + .show = _name##_

[PATCH net-next V3] tun: add eBPF based queue selection method

2017-12-04 Thread Jason Wang
This patch introduces an eBPF based queue selection method. With this, the policy could be offloaded to userspace completely through a new ioctl TUNSETSTEERINGEBPF. Signed-off-by: Jason Wang --- Changes from V2: - call rtnl during netdev free - switch to use call_rcu() to prevent DOS from userspa

Re: [PATCH v3 1/4] mm: introduce get_user_pages_longterm

2017-12-04 Thread Michal Hocko
On Fri 01-12-17 08:29:53, Dan Williams wrote: > On Fri, Dec 1, 2017 at 8:02 AM, Jason Gunthorpe wrote: > > > > On Fri, Dec 01, 2017 at 11:12:18AM +0100, Michal Hocko wrote: > > > On Thu 30-11-17 12:01:17, Jason Gunthorpe wrote: > > > > On Thu, Nov 30, 2017 at 10:32:42AM -0800, Dan Williams wrote:

Re: [GIT PULL] hash addresses printed with %p

2017-12-04 Thread Greg Kroah-Hartman
On Mon, Dec 04, 2017 at 05:29:28PM +0800, Dave Young wrote: > On 12/04/17 at 08:36am, Greg Kroah-Hartman wrote: > > On Mon, Dec 04, 2017 at 10:02:16AM +0800, Dave Young wrote: > > > +#define __ATTR_IRUSR(_name) { > > > \ > > > + .attr = { .name = __stri

Re: [PATCH] iio: accel: bmc150: Add OF device ID table

2017-12-04 Thread Hans de Goede
Hi, On 04-12-17 10:01, Javier Martinez Canillas wrote: Hi Hans, Thanks a lot for your feedback. On 12/04/2017 09:29 AM, Hans de Goede wrote: Hi, On 01-12-17 12:10, Javier Martinez Canillas wrote: The driver doesn't have a struct of_device_id table but supported devices are registered via De

Re: [PATCH 01/10] staging: ccree: remove inline qualifiers

2017-12-04 Thread Dan Carpenter
On Sun, Dec 03, 2017 at 01:58:12PM +, Gilad Ben-Yossef wrote: > The ccree drivers was marking a lot of big functions in C file as > static inline for no good reason. Remove the inline qualifier from > any but the few truly single line functions. > The compiler is free to ignore inline hints..

[PATCH 1/3] mmc: sdhci-pci-o2micro: Add hardware tuning for eMMC

2017-12-04 Thread LinuxPatchCommit
Dear All, For O2micro/Bayhubtech SD Host DeviceID 8620, eMMC HS200 mode is working at 1.8v and it uses hardware tuning. The hardware tuning only needs to send one tuning command instead of multiple tuning commands with software tuning. Signed-off-by: ernest.zhang --- drivers/mmc/host/sdhci-pc

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

2017-12-04 Thread Lee Jones
On Mon, 04 Dec 2017, Stephen Rothwell wrote: > Hi Lee, > > After merging the mfd tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/staging/rts5208/sd.o: In function `.sd_power_off_card3v3': > (.text+0x5760): multiple definition of `.sd_power_off_card3v3' > dri

RE: [PATCH] Support TrackStick of Thinkpad L570

2017-12-04 Thread Masaki Ota
Hi, Pali, It does not work in my test result. BTW, other some functions also use both of "struct psmouse" and "struct alps_data" argument. I just followed it. Best Regards, Masaki Ota -Original Message- From: Pali Rohár [mailto:pali.ro...@gmail.com] Sent: Monday, December 04, 2017 6:12

Re: [PATCH 00/10] staging: ccree: cleanups & fixes

2017-12-04 Thread Dan Carpenter
Looks good. Thanks! regards, dan carpenter

Re: [PATCH v2 1/3] media: V3s: Add support for Allwinner CSI.

2017-12-04 Thread Yong
Hi Maxime, I just noticed that you are using the second iteration? Have you received my third iteration? On Sat, 25 Nov 2017 17:02:33 +0100 Maxime Ripard wrote: > On Thu, Nov 23, 2017 at 09:14:44AM +0800, Yong wrote: > > > On Wed, Nov 22, 2017 at 09:33:06AM +0800, Yong wrote: > > > > > On Thu,

Re: [PATCH] iio: accel: bmc150: Add OF device ID table

2017-12-04 Thread Hans de Goede
Hi, On 04-12-17 10:44, Jonathan Cameron wrote: On Mon, 4 Dec 2017 09:29:38 +0100 Hans de Goede wrote: Hi, On 01-12-17 12:10, Javier Martinez Canillas wrote: The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assu

Re: [PATCH v6 03/17] mfd: madera: Add common support for Cirrus Logic Madera codecs

2017-12-04 Thread Richard Fitzgerald
On 02/12/17 12:10, Linus Walleij wrote: On Wed, Nov 29, 2017 at 12:36 PM, Richard Fitzgerald wrote: On 29/11/17 10:18, Linus Walleij wrote: On Thu, Nov 23, 2017 at 6:13 PM, Richard Fitzgerald wrote: +config MFD_MADERA_I2C + bool "Cirrus Logic Madera codecs with I2C" + select MF

[PATCH] tracing: Fix trace_preempt_{on,off} for !CONFIG_DEBUG_PREEMPT builds

2017-12-04 Thread Patrick Bellasi
The new preempt enable/disable events introduced by: d59158162 tracing: Add support for preempt and irq enable/disable events are defined only for CONFIG_DEBUG_PREEMPT kernels when the CONFIG_PREEMPTIRQ_EVENTS support, introduced by the above patch, is enabled. These events are generated within

Re: Difficulties for compilation without extra optimisation

2017-12-04 Thread Steven Rostedt
On Mon, 4 Dec 2017 10:00:54 +0100 SF Markus Elfring wrote: > > Why would you compile the kernel without optimization? > > Can another reason be occasionally still relevant? No. > > Will the compilation be a bit quicker when extra data processing > could be omitted? Why would you care more

Re: [GIT PULL] hash addresses printed with %p

2017-12-04 Thread Ard Biesheuvel
On 4 December 2017 at 09:34, Greg Kroah-Hartman wrote: > On Mon, Dec 04, 2017 at 05:29:28PM +0800, Dave Young wrote: >> On 12/04/17 at 08:36am, Greg Kroah-Hartman wrote: >> > On Mon, Dec 04, 2017 at 10:02:16AM +0800, Dave Young wrote: >> > > +#define __ATTR_IRUSR(_name) {

[GIT PULL v2] Immutable branch between MFD, Memstick, Misc and MMC due for the v4.16 merge window

2017-12-04 Thread Lee Jones
All, This pull-request v2 contains a fix-up symbol clash when built for PPC. (Thanks to Stephen Rothwell for the patch) The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) are available in the git repository at: git://git

Re: [PATCH] Support TrackStick of Thinkpad L570

2017-12-04 Thread Pali Rohár
On Monday 04 December 2017 09:40:04 Masaki Ota wrote: > Hi, Pali, > > It does not work in my test result. Hm.. that is strange, we have dangling pointers in struct alps_data? Otherwise I have no idea why does not work. > BTW, other some functions also use both of "struct psmouse" and "struct >

[GIT PULL v2] Immutable branch between MFD, Memstick, Misc and MMC due for the v4.16 merge window

2017-12-04 Thread Lee Jones
All, This pull-request v2 contains a fix-up symbol clash when built for PPC. (Thanks to Stephen Rothwell for the patch) The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) are available in the git repository at: git://git

Re: [PATCH 1/3] dt-bindings: Add optional nvmem MAC address bindings to ti,wlink-st

2017-12-04 Thread Sergei Shtylyov
Hello! On 12/4/2017 6:21 AM, David Lechner wrote: This adds optional nvmem consumer properties to the ti,wlink-st device tree bindings to allow specifying the Bluetooth MAC address. Signed-off-by: David Lechner --- Documentation/devicetree/bindings/net/ti,wilink-st.txt | 4 1 file cha

Re: [PATCH] sched/rt: Do not pull from current CPU if only one cpu to pull

2017-12-04 Thread Steven Rostedt
On Mon, 4 Dec 2017 10:07:57 +0100 Juri Lelli wrote: > On 04/12/17 03:09, Steven Rostedt wrote: > > On Mon, 4 Dec 2017 08:45:17 +0100 > > Juri Lelli wrote: > > > > > Right. I was wondering however if for the truly UP case we shouldn't be > > > initiating/queueing callbacks (pull/push) at all?

Re: Difficulties for compilation without extra optimisation

2017-12-04 Thread SF Markus Elfring
>> Can the software areas distinguished where such special handling matters? > > No idea. I would like to point another example out. > That's something you are going to have to figure out on your own. How do you think about information from an other clarification request for the topic “caif: U

[PATCH v2 3/6] arm64/bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-04 Thread Hendrik Brueckner
Correct the broken uapi for the BPF_PROG_TYPE_PERF_EVENT program type by exporting the user_pt_regs structure instead of the pt_regs structure that is in-kernel only. Signed-off-by: Hendrik Brueckner Reviewed-by: Thomas Richter Acked-by: Alexei Starovoitov Cc: Will Deacon Cc: Mark Rutland Cc:

[PATCH v2 0/6] bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-04 Thread Hendrik Brueckner
Perf tool bpf selftests revealed a broken uapi for s390 and arm64. With the BPF_PROG_TYPE_PERF_EVENT program type the bpf_perf_event structure exports the pt_regs structure for all architectures. This fails for s390 and arm64 because pt_regs are not part of the user api and kept in-kernel only. T

Re: [PATCH 2/2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2017-12-04 Thread Mika Westerberg
On Sat, Dec 02, 2017 at 12:19:27PM +, Jonathan Cameron wrote: > On Wed, 29 Nov 2017 22:31:12 + > Jeremy Cline wrote: > > > Some BOSC0200 acpi_device-s describe two accelerometers in a single ACPI > > device. Check for a companion device and handle a second i2c_client > > if it is present.

[PATCH v2 6/6] perf s390: add regs_query_register_offset()

2017-12-04 Thread Hendrik Brueckner
The regs_query_register_offset() helper function converts register name like "%r0" to an offset of a register in user_pt_regs It is required by the BPF prologue generator. The user_pt_regs structure was recently added to "asm/ptrace.h". Hence, update tools/perf/check-headers.sh to keep the header

Re: netfilter: xt_bpf: Fix XT_BPF_MODE_FD_PINNED mode of 'xt_bpf_info_v1'

2017-12-04 Thread Daniel Borkmann
On 12/02/2017 07:48 PM, Al Viro wrote: > On Fri, Dec 01, 2017 at 09:47:00PM +0100, Daniel Borkmann wrote: >>> Might want to replace security_path_mknod() with something saner, while we >>> are >>> at it. >>> >>> Objections? >> >> No, thanks for looking into this, and sorry for this fugly hack! :(

[PATCH v2 4/6] s390/uapi: correct whitespace & coding style in asm/ptrace.h

2017-12-04 Thread Hendrik Brueckner
Correct whitespace and coding style issues in the s390 asm/ptrace.h uapi header file. This is preparatory work to copy it to the tools/ directory for inclusion by selftests and perf. Signed-off-by: Hendrik Brueckner --- arch/s390/include/uapi/asm/ptrace.h | 118 -

Re: [PATCH] arm64: dts: rockchip: add rk3399 DSI0 reset

2017-12-04 Thread Heiko Stuebner
Am Mittwoch, 29. November 2017, 15:35:41 CET schrieb Brian Norris: > We've documented this one already, but we didn't add it to the DTSI yet. > > Suggested-by: Nickey Yang > Signed-off-by: Brian Norris applied for 4.16 Thanks Heiko

[PATCH v2 5/6] selftests/bpf: sync kernel headers and introduce arch support in Makefile

2017-12-04 Thread Hendrik Brueckner
Synchronize the uapi kernel header files which solves the broken uapi export of pt_regs. Because of arch-specific uapi headers, extended the include path in the Makefile. With this change, the test_verifier program compiles and runs successfully on s390. Signed-off-by: Hendrik Brueckner Reviewe

[PATCH v2 2/6] s390/bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-04 Thread Hendrik Brueckner
To mitigate and correct the broken uapi for the BPF_PROG_TYPE_PERF_EVENT program type, introduce a user_pt_regs structure (similar to arm64) that exports parts from the beginnig of the pt_regs structure. The export must start with the beginning of the pt_regs structure because to correctly calcula

[PATCH v2 1/6] bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-04 Thread Hendrik Brueckner
Commit 0515e5999a466dfe ("bpf: introduce BPF_PROG_TYPE_PERF_EVENT program type") introduced the bpf_perf_event_data structure which exports the pt_regs structure. This is OK for multiple architectures but fail for s390 and arm64 which do not export pt_regs. Programs using them, for example, the b

Re: [GIT PULL] hash addresses printed with %p

2017-12-04 Thread Greg Kroah-Hartman
On Mon, Dec 04, 2017 at 09:48:37AM +, Ard Biesheuvel wrote: > On 4 December 2017 at 09:34, Greg Kroah-Hartman > wrote: > > On Mon, Dec 04, 2017 at 05:29:28PM +0800, Dave Young wrote: > >> On 12/04/17 at 08:36am, Greg Kroah-Hartman wrote: > >> > On Mon, Dec 04, 2017 at 10:02:16AM +0800, Dave Yo

RE: linux-next: manual merge of the staging tree with the staging.current tree

2017-12-04 Thread Jonathan Cameron
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > Sent: 04 December 2017 09:10 > To: Stephen Rothwell > Cc: Linux-Next Mailing List ; Linux Kernel Mailing > List ; Xingyu Chen ; > Jonathan Cameron ; Martin Blumenstingl > > Subject: Re: linux-next: manual merge of the stagin

Re: [PATCH] arm64: dts: rockchip: add mipi_dsi1 support for rk3399

2017-12-04 Thread Heiko Stuebner
Am Mittwoch, 29. November 2017, 17:11:27 CET schrieb Brian Norris: > From: Nickey Yang > > This patch adds the information for the secondary MIPI DSI controller, > e.g., interrupts, grf, clocks, ports and so on. Mirrors the existing > definition for dsi0. > > Signed-off-by: Nickey Yang > Signed

Re: Make SSB a menuconfig to ease disabling it all

2017-12-04 Thread Kalle Valo
Vincent Legoll writes: > The following patch makes it easier to disable all SSB config > options without entering the submenu. It will also enable one > to see that en-disabled state from the outside menu. > > This is only intended to change menuconfig UI, not change > the config dependencies. S

Re: [GIT PULL] hash addresses printed with %p

2017-12-04 Thread Ard Biesheuvel
On 4 December 2017 at 09:59, Greg Kroah-Hartman wrote: > On Mon, Dec 04, 2017 at 09:48:37AM +, Ard Biesheuvel wrote: >> On 4 December 2017 at 09:34, Greg Kroah-Hartman >> wrote: >> > On Mon, Dec 04, 2017 at 05:29:28PM +0800, Dave Young wrote: >> >> On 12/04/17 at 08:36am, Greg Kroah-Hartman w

Re: PROBLEM: Asus C201 video mode problems on HDMI hotplug (regression)

2017-12-04 Thread Jose Abreu
On 03-12-2017 05:20, Nick Bowler wrote: > > Your patch changes things. With this applied on top of 4.15-rc1 > it is failing 100% of the time instead of only half of the time. Ok, it was a long shot anyway. > > I brought the original test equipment back to the setup so I can > see the video and p

Re: [PATCH 4/6] staging: pi433: Rename enum optionOnOff in rf69_enum.h

2017-12-04 Thread Simon Sandström
On Sun, Dec 03, 2017 at 06:49:40PM +0200, Marcus Wolf wrote: > > Hi Simon, Hi, > > thanks for your effort. > > I have two questions: > * According to my practical experiance, enums were always written in lower > case. Does kernel style guide ask for upper case for enums? Yes. From Documentation

[PATCH] ARM64: dts: meson-gxm: fix q200 interrupt number

2017-12-04 Thread Jerome Brunet
Correct the interrupt number assigned to the Realtek PHY in the q200 Fixes: b94d22d94ad2 ("ARM64: dts: meson-gx: add external PHY interrupt on some platforms") Reported-by: Martin Blumenstingl Signed-off-by: Jerome Brunet --- This change depends on the related series from Martin [0] Thanks f

Re: [PATCH v4] arm64: dts: rockchip: update mipi cells for RK3399

2017-12-04 Thread Heiko Stuebner
Am Mittwoch, 29. November 2017, 10:47:55 CET schrieb Brian Norris: > From: Nickey Yang > > We might include additional ports in derivative device trees, so the > 'port' node should have an address, and the parent 'ports' node needs > /#{addres,size}-cells. > > v4: > * keep #{address,size}-cells

[PATCH 2/3] mmc: sdhci-pci-o2micro: Add eMMC HS200 support

2017-12-04 Thread LinuxPatchCommit
Dear all, Add register definition for eMMC HS200 mode. Add hardware tuning for eMMC HS200 mode. Signed-off-by: ernest.zhang --- drivers/mmc/host/sdhci-pci-o2micro.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci-o2micro.h b/drivers/mmc/host/sdhci-pci-o2micro.

Re: [PATCH 1/3] dt-bindings: Add optional nvmem MAC address bindings to ti,wlink-st

2017-12-04 Thread Sergei Shtylyov
On 12/4/2017 12:54 PM, Sergei Shtylyov wrote: This adds optional nvmem consumer properties to the ti,wlink-st device tree bindings to allow specifying the Bluetooth MAC address. Signed-off-by: David Lechner ---   Documentation/devicetree/bindings/net/ti,wilink-st.txt | 4   1 file changed,

[PATCH 3/3] mmc: sdhci: Modify sdhci o2 quirk for eMMC HS200 tuning case

2017-12-04 Thread LinuxPatchCommit
Dear all, Don't clear transfer mode register in sdhci_set_transfer_mode(). In sdhci_set_transfer_mode(), clear transfer mode quirk2 will clear SD host transfer mode register for non-data commands. This quirk is used for the bug of O2micro/Bayhubtech devices. In eMMC HS200 tuning case, the tunin

Re: [GIT PULL] hash addresses printed with %p

2017-12-04 Thread Greg Kroah-Hartman
On Mon, Dec 04, 2017 at 10:03:19AM +, Ard Biesheuvel wrote: > On 4 December 2017 at 09:59, Greg Kroah-Hartman > wrote: > > On Mon, Dec 04, 2017 at 09:48:37AM +, Ard Biesheuvel wrote: > >> On 4 December 2017 at 09:34, Greg Kroah-Hartman > >> wrote: > >> > On Mon, Dec 04, 2017 at 05:29:28PM

Re: [Bridge] [PATCH net-next] bridge: ebtables: Avoid resetting limit rule state

2017-12-04 Thread Pablo Neira Ayuso
On Mon, Dec 04, 2017 at 06:20:06AM +0100, Linus Lüssing wrote: > On Mon, Dec 04, 2017 at 05:53:35AM +0100, Linus Lüssing wrote: > > And so, no I do not have this patch. I looked at it now, but it > > does not seem to have any relation with .matchinfo, does it? > > Relation between .usersize and .c

Re: [PATCH 4/6] staging: pi433: Rename enum optionOnOff in rf69_enum.h

2017-12-04 Thread Dan Carpenter
On Sun, Dec 03, 2017 at 04:17:24PM +0100, Simon Sandström wrote: > Renames the enum optionOnOff and its values optionOn, optionOff to enum > option_on_off and OPTION_ON, OPTION_OFF. Fixes checkpatch.pl warnings: > "Avoid CamelCase: , , ". > > Signed-off-by: Simon Sandström > --- > drivers/stagin

Re: Difficulties for compilation without extra optimisation

2017-12-04 Thread SF Markus Elfring
>> Will the compilation be a bit quicker when extra data processing >> could be omitted? > > Why would you care more about the time it takes to compile the kernel, > than the time it takes for executing it? I am also interested in the evolution of compilation time frames. > Benchmarks are all a

Re: [PATCH] leaking_addresses: add support for 32-bit kernel addresses

2017-12-04 Thread kaiwan . billimoria
On Mon, 2017-12-04 at 19:21 +1100, Tobin C. Harding wrote: > On Mon, Dec 04, 2017 at 10:51:53AM +0530, Kaiwan N Billimoria wrote: > > > --- > > diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl > > index 9906dcf8b807..260b52e456f1 100755 > > --- a/scripts/leaking_addresses.pl

[RFC PATCH v2 2/8] sched/deadline: move cpu frequency selection triggering points

2017-12-04 Thread Juri Lelli
From: Juri Lelli Since SCHED_DEADLINE doesn't track utilization signal (but reserves a fraction of CPU bandwidth to tasks admitted to the system), there is no point in evaluating frequency changes during each tick event. Move frequency selection triggering points to where running_bw changes. Co

[RFC PATCH v2 0/8] SCHED_DEADLINE freq/cpu invariance and OPP selection

2017-12-04 Thread Juri Lelli
Hi, v2 of the RFC set implementing frequency/cpu invariance and OPP selection for SCHED_DEADLINE [1]. The set is based on mainline as of today (ae64f9bd1d36). Patches high level description: o [01-02]/08 add the necessary links to start accounting DEADLINE contribution to OPP sele

Re: [PATCH 5/6] staging: pi433: Rename enum dataMode in rf69_enum.h

2017-12-04 Thread Dan Carpenter
On Sun, Dec 03, 2017 at 04:17:25PM +0100, Simon Sandström wrote: > Renames enum dataMode and its values packet, continuous, continuousNoSync > to enum data_mode and PACKET, CONTINUOUS, CONTINUOUS_NO_SYNC. Fixes > checkpatch.pl warnings: "Avoid CamelCase: , ". These names are too generic. Delete t

Re: [PATCH] iio: accel: bmc150: Add OF device ID table

2017-12-04 Thread Javier Martinez Canillas
Hello Jonathan, On 12/04/2017 10:44 AM, Jonathan Cameron wrote: > On Mon, 4 Dec 2017 09:29:38 +0100 > Hans de Goede wrote: > >> Hi, >> >> On 01-12-17 12:10, Javier Martinez Canillas wrote: >>> The driver doesn't have a struct of_device_id table but supported devices >>> are registered via Device

[RFC PATCH v2 8/8] sched/deadline: make bandwidth enforcement scale-invariant

2017-12-04 Thread Juri Lelli
From: Juri Lelli Apply frequency and cpu scale-invariance correction factor to bandwidth enforcement (similar to what we already do to fair utilization tracking). Each delta_exec gets scaled considering current frequency and maximum cpu capacity; which means that the reservation runtime paramete

[RFC PATCH v2 4/8] sched/cpufreq_schedutil: split utilization signals

2017-12-04 Thread Juri Lelli
From: Juri Lelli To be able to treat utilization signals of different scheduling classes in different ways (e.g., CFS signal might be stale while DEADLINE signal is never stale by design) we need to split sugov_cpu::util signal in two: util_cfs and util_dl. This patch does that by also changing

[RFC PATCH v2 7/8] sched/sched.h: move arch_scale_{freq,cpu}_capacity outside CONFIG_SMP

2017-12-04 Thread Juri Lelli
From: Juri Lelli Currently, frequency and cpu capacity scaling is only performed on CONFIG_SMP systems (as CFS PELT signals are only present for such systems). However, other scheduling classes want to do freq/cpu scaling, and for !CONFIG_SMP configurations as well. arch_scale_freq_capacity is u

[RFC PATCH v2 6/8] sched/sched.h: remove sd arch_scale_freq_capacity parameter

2017-12-04 Thread Juri Lelli
From: Juri Lelli sd parameter is never used in arch_scale_freq_capacity (and it's hard to see where information coming from scheduling domains might help doing frequency invariance scaling). Remove it; also in anticipation of moving arch_scale_freq_capacity outside CONFIG_SMP. Signed-off-by: Ju

[RFC PATCH v2 5/8] sched/cpufreq_schedutil: always consider all CPUs when deciding next freq

2017-12-04 Thread Juri Lelli
From: Juri Lelli No assumption can be made upon the rate at which frequency updates get triggered, as there are scheduling policies (like SCHED_DEADLINE) which don't trigger them so frequently. Remove such assumption from the code, by always considering SCHED_DEADLINE utilization signal as not s

[RFC PATCH v2 3/8] sched/cpufreq_schedutil: make worker kthread be SCHED_DEADLINE

2017-12-04 Thread Juri Lelli
From: Juri Lelli Worker kthread needs to be able to change frequency for all other threads. Make it special, just under STOP class. Signed-off-by: Juri Lelli Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Rafael J. Wysocki Cc: Viresh Kumar Cc: Luca Abeni Cc: Claudio Scordino --- Changes from RFC

[RFC PATCH v2 1/8] sched/cpufreq_schedutil: make use of DEADLINE utilization signal

2017-12-04 Thread Juri Lelli
From: Juri Lelli SCHED_DEADLINE tracks active utilization signal with a per dl_rq variable named running_bw. Make use of that to drive cpu frequency selection: add up FAIR and DEADLINE contribution to get the required CPU capacity to handle both requirements (while RT still selects max frequency

BUG: KASAN: global-out-of-bounds in cppc_get_perf_caps+0xf3/0x3b0

2017-12-04 Thread Du, Changbin
Hi Cherian, Your patch 'ACPI / CPPC: Make CPPC ACPI driver aware of PCC subspace IDs' introduced a out-of-bounds BUG in kernel. The code need to check cpu_pcc_subspace_idx before use it since it can be -1. Thanks. [ 15.113449] == [

Re: [PATCH] irqchip/gic-v3: Fix the driver probe() fail due to disabled GICC entry

2017-12-04 Thread Marc Zyngier
On 03/12/17 23:21, Shanker Donthineni wrote: > As per MADT specification, it's perfectly valid firmware can pass > MADT table to OS with disabled GICC entries. ARM64-SMP code skips > those cpu cores to bring online. However the current GICv3 driver > probe bails out in this case on systems where re

Re: [PATCH 2/2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2017-12-04 Thread Hans de Goede
Hi, On 04-12-17 10:58, Mika Westerberg wrote: On Sat, Dec 02, 2017 at 12:19:27PM +, Jonathan Cameron wrote: On Wed, 29 Nov 2017 22:31:12 + Jeremy Cline wrote: Some BOSC0200 acpi_device-s describe two accelerometers in a single ACPI device. Check for a companion device and handle a se

Re: [PATCH] netfilter: nfnetlink_cthelper: Add missing permission checks

2017-12-04 Thread Pablo Neira Ayuso
On Sun, Dec 03, 2017 at 12:12:45PM -0800, Kevin Cernekee wrote: > The capability check in nfnetlink_rcv() verifies that the caller > has CAP_NET_ADMIN in the namespace that "owns" the netlink socket. > However, nfnl_cthelper_list is shared by all net namespaces on the > system. Right, we need per-

Re: [PATCH] sched/rt: Do not pull from current CPU if only one cpu to pull

2017-12-04 Thread Daniel Wagner
Hi Steven, On 12/02/2017 07:04 PM, Steven Rostedt wrote: > Daniel Wagner reported a crash on the beaglebone black. This is a > single CPU architecture, and does not have a functional: > arch_send_call_function_single_ipi() and can crash if that is called. > > As it only has one CPU, it shouldn't

Re: [PATCH 6/6] staging: pi433: Rename enum modShaping in rf69_enum.h

2017-12-04 Thread Dan Carpenter
On Sun, Dec 03, 2017 at 04:17:26PM +0100, Simon Sandström wrote: > diff --git a/drivers/staging/pi433/pi433_if.h > b/drivers/staging/pi433/pi433_if.h > index 34ff0d4807bd..bcfe29840889 100644 > --- a/drivers/staging/pi433/pi433_if.h > +++ b/drivers/staging/pi433/pi433_if.h > @@ -63,7 +63,7 @@ stru

[PATCH v4 0/4] Teach phylib hard-resetting devices

2017-12-04 Thread Geert Uytterhoeven
Hi David, Andrew, Florian, Simon, Magnus, This patch series adds optional PHY reset support to phylib. The first two patches are destined for David's net-next tree. They add core PHY reset code, and update a driver that currently uses its own reset code. The last two patches are destined

[PATCH v4 4/4] arm64: dts: renesas: ulcb: Add EthernetAVB PHY reset

2017-12-04 Thread Geert Uytterhoeven
Describe the GPIO used to reset the Ethernet PHY for EthernetAVB. This allows the driver to reset the PHY during probe and after system resume. On ULCB, the enable pin of the regulator providing PHY power is always pulled high, but the driver may still need to reset the PHY if this wasn't done by

[PATCH v4 2/4] macb: Kill PHY reset code

2017-12-04 Thread Geert Uytterhoeven
From: Sergei Shtylyov With the phylib now being aware of the "reset-gpios" PHY node property, there should be no need to frob the PHY reset in this driver anymore... Signed-off-by: Sergei Shtylyov Acked-by: Nicolas Ferre Reviewed-by: Florian Fainelli Signed-off-by: Geert Uytterhoeven --- v4:

Re: i8k_smm_func() takes enormous of time to execute

2017-12-04 Thread Pali Rohár
On Friday 24 November 2017 13:28:59 Oleksandr Natalenko wrote: > On pátek 24. listopadu 2017 12:25:43 CET Pali Rohár wrote: > > On Friday 24 November 2017 12:17:30 Oleksandr Natalenko wrote: > > > > There are two patches waiting to be tested in > > > > https://bugzilla.kernel.org/show_bug.cgi?id=19

[PATCH v4 3/4] arm64: dts: renesas: salvator-common: Add EthernetAVB PHY reset

2017-12-04 Thread Geert Uytterhoeven
Describe the GPIO used to reset the Ethernet PHY for EthernetAVB. This allows the driver to reset the PHY during probe and after system resume. This fixes Ethernet operation after resume from s2ram on Salvator-XS, where the enable pin of the regulator providing PHY power is connected to PRESETn, a

[PATCH v4 1/4] phylib: Add device reset GPIO support

2017-12-04 Thread Geert Uytterhoeven
From: Sergei Shtylyov The PHY devices sometimes do have their reset signal (maybe even power supply?) tied to some GPIO and sometimes it also does happen that a boot loader does not leave it deasserted. So far this issue has been attacked from (as I believe) a wrong angle: by teaching the MAC dri

Re: [PATCH] drm/i915: Mark expected switch fall-throughs

2017-12-04 Thread Joonas Lahtinen
On Mon, 2017-11-27 at 16:17 -0600, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. I have to say I'm totally not sold on regexps matching comment contents. Was something more explicit ever considered? Like:

Re: [PATCH 4/6] staging: pi433: Rename enum optionOnOff in rf69_enum.h

2017-12-04 Thread Dan Carpenter
On Mon, Dec 04, 2017 at 01:17:37PM +0300, Dan Carpenter wrote: > Perhaps choose different function names if you want? You could do it > as several patches: > > patch 1: change types to bool > patch 2: sed -e '/ == optionOn//' > patch 3: split the functions into two functions > patch 4: delete opt

Re: [PATCH] KVM: x86: MMU: make array audit_point_name static

2017-12-04 Thread David Hildenbrand
On 30.11.2017 13:04, Colin King wrote: > From: Colin Ian King > > The array audit_point_name is local to the source and does not need to > be in global scope, so make it static. > > Cleans up sparse warning: > arch/x86/kvm/mmu_audit.c:22:12: warning: symbol 'audit_point_name' was > not declared.

Re: [PATCH] PM / runtime: Drop children check from __pm_runtime_set_status()

2017-12-04 Thread Ulf Hansson
On 1 December 2017 at 12:03, Yoshihiro Shimoda wrote: > Hi, > >> From: Ulf Hansson, Sent: Friday, December 1, 2017 6:22 PM >> >> + Kishon >> >> On 30 November 2017 at 13:51, Yoshihiro Shimoda >> wrote: >> > Hi, >> > >> >> From: Ulf Hansson, Sent: Wednesday, November 29, 2017 6:59 PM >> >> >> >> O

Re: [PATCH 2/2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2017-12-04 Thread Mika Westerberg
On Mon, Dec 04, 2017 at 11:29:31AM +0100, Hans de Goede wrote: > i2c_new_secondary_device() is for a different purpose, this is for when > a single i2c device listens on multiple addresses and the driver wants > separate i2c_client-s to use to talk to each address. > > In this case there are 2 sep

[PATCH V2] block, bfq: remove batches of confusing ifdefs

2017-12-04 Thread Paolo Valente
Commit a33801e8b473 ("block, bfq: move debug blkio stats behind CONFIG_DEBUG_BLK_CGROUP") introduced two batches of confusing ifdefs: one reported in [1], plus a similar one in another function. This commit removes both batches, in the way suggested in [1]. [1] https://www.spinics.net/lists/linux-

Re: [PATCH/RFC] DT: leds: Fix 'label' property description and add 'colour' property

2017-12-04 Thread Pavel Machek
Hi! > Label property was imposed a uniqueness requirement, which was erroneous, > since ePAPR defines it to "a human readable string describing a device". > > Also the binding description misleadingly suggested direct usage of label > for LED class device name, whereas it should only define a LED

[PATCH] staging: lustre: Fix sparse, using plain integer as NULL pointer in lov_object_fiemap()

2017-12-04 Thread Andrii Vladyka
Change 0 to NULL in lov_object_fiemap() in order to fix warning produced by sparse Signed-off-by: Andrii Vladyka Signed-off-by: Andreas Dilger --- diff --git a/drivers/staging/lustre/lustre/lov/lov_object.c b/drivers/staging/lustre/lustre/lov/lov_object.c index 105b707..897cf2c 100644 --- a/

Re: KASAN: slab-out-of-bounds Read in strcmp

2017-12-04 Thread Tetsuo Handa
James Morris wrote: > On Sun, 3 Dec 2017, Tetsuo Handa wrote: > > > Tetsuo Handa wrote: > > > which will allow strcmp() to trigger out of bound read when "size" is > > > larger than strlen(initial_sid_to_string[i]). > > > > Oops. "smaller" than. > > > > > > > > Thus, I guess the simplest fix is

Re: [PATCH V7 0/2] clk: qcom: spmi_pmic clock divider support

2017-12-04 Thread Tirupathi Reddy T
Hi Stephen, I have addressed the comments given on previous patch versions. Could you please review the patch series ? Thanks Tirupathi On 11/21/2017 2:41 PM, Tirupathi Reddy wrote: The SPMI_PMIC clock divider driver configures the clkdiv modules present on Qualcomm Technologies, Inc. SPMI

[patch v13 0/4] JTAG driver introduction

2017-12-04 Thread Oleksandr Shamray
When a need raise up to use JTAG interface for system's devices programming or CPU debugging, usually the user layer application implements jtag protocol by bit-bang or using a proprietary connection to vendor hardware. This method can be slow and not generic. We propose to implement general JTA

[patch v13 4/4] Documentation: jtag: Add ABI documentation

2017-12-04 Thread Oleksandr Shamray
Added document that describe the ABI for JTAG class drivrer Signed-off-by: Oleksandr Shamray Acked-by: Arnd Bergmann --- v12->v13 v11->v12 Tobias Klauser - rename /Documentation/ABI/testing/jatg-dev -> jtag-dev - Typo: s/interfase/interface v10->v11 v9->v10 Fixes added by Oleksandr: - change jt

[patch v13 3/4] Documentation: jtag: Add bindings for Aspeed SoC 24xx and 25xx families JTAG master driver

2017-12-04 Thread Oleksandr Shamray
It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Oleksandr Shamray Signed-off-by: Jiri Pirko Acked-by: Rob Herring --- v12->v13 v11->v12 v10->v11 v9->v10 v8->v9 v7->v8 Comments pointed by pointed by Joel Stanley - Change

Re: KASAN: slab-out-of-bounds Read in strcmp

2017-12-04 Thread Tetsuo Handa
Tetsuo Handa wrote: > James Morris wrote: > > On Sun, 3 Dec 2017, Tetsuo Handa wrote: > > > > > Tetsuo Handa wrote: > > > > which will allow strcmp() to trigger out of bound read when "size" is > > > > larger than strlen(initial_sid_to_string[i]). > > > > > > Oops. "smaller" than. > > > > > > >

[patch v13 1/4] drivers: jtag: Add JTAG core driver

2017-12-04 Thread Oleksandr Shamray
Initial patch for JTAG driver JTAG class driver provide infrastructure to support hardware/software JTAG platform drivers. It provide user layer API interface for flashing and debugging external devices which equipped with JTAG interface using standard transactions. Driver exposes set of IOCTL to

[patch v13 2/4] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver

2017-12-04 Thread Oleksandr Shamray
Driver adds support of Aspeed 2500/2400 series SOC JTAG master controller. Driver implements the following jtag ops: - freq_get; - freq_set; - status_get; - idle; - xfer; It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Ole

Re: [PATCH v2] mmap.2: MAP_FIXED updated documentation

2017-12-04 Thread Cyril Hrubis
Hi! I know that we are not touching the rest of the existing description for MAP_FIXED however the second sentence in the manual page says that "addr must be a multiple of the page size." Which however is misleading as this is not enough on some architectures. Code in the wild seems to (mis)use SHM

[no subject]

2017-12-04 Thread Adrian Gillian Bayford
£1.5 Million Has Been Granted To You As A Donation Visit www.bbc.co.uk/news/uk-england-19254228 Sendname Address Phone for more info

<    5   6   7   8   9   10   11   12   13   >