[PATCH] sched/fair: Fix wake_affine() for !NUMA_BALANCING

2017-08-01 Thread Peter Zijlstra
On Tue, Jun 27, 2017 at 10:55:58AM -0400, Rik van Riel wrote: > On Tue, 2017-06-27 at 07:39 +0200, Peter Zijlstra wrote: > > If LLC < NUMA or !NUMA_BALANCING we have a region that needs to do > > _something_. > > Agreed. I will fix this. Given that this is a bit > of a corner case, Ok, so it t

Re: [PATCH v3 2/2] clk: meson: gxbb: Add sd_emmc clk0 clocks

2017-08-01 Thread Neil Armstrong
On 07/31/2017 01:56 PM, Jerome Brunet wrote: > Input source 0 of the mmc controllers is not directly xtal, as currently > described in DT. Each controller is fed by a composite clock (the usual > mux, divider and gate). The muxes inputs are the xtal (default) and the > fclk_div clocks. These parent

[PATCH v4] KVM: async_pf: make rcu irq exit if not triggered from idle task

2017-08-01 Thread Wanpeng Li
From: Wanpeng Li WARNING: CPU: 5 PID: 1242 at kernel/rcu/tree_plugin.h:323 rcu_note_context_switch+0x207/0x6b0 CPU: 5 PID: 1242 Comm: unity-settings- Not tainted 4.13.0-rc2+ #1 RIP: 0010:rcu_note_context_switch+0x207/0x6b0 Call Trace: __schedule+0xda/0xba0 ? kvm_async_pf_task_wait+0x1b2/

Re: [PATCH v4] KVM: async_pf: make rcu irq exit if not triggered from idle task

2017-08-01 Thread Paolo Bonzini
On 01/08/2017 14:20, Wanpeng Li wrote: > From: Wanpeng Li > > WARNING: CPU: 5 PID: 1242 at kernel/rcu/tree_plugin.h:323 > rcu_note_context_switch+0x207/0x6b0 > CPU: 5 PID: 1242 Comm: unity-settings- Not tainted 4.13.0-rc2+ #1 > RIP: 0010:rcu_note_context_switch+0x207/0x6b0 > Call Trace: >

Re: [PATCH v2] [BUGFIX] gpio: reject invalid gpio before getting gpio_desc

2017-08-01 Thread Masami Hiramatsu
On Tue, 1 Aug 2017 14:10:03 +0300 Andy Shevchenko wrote: > On Mon, Jul 31, 2017 at 4:57 AM, Masami Hiramatsu wrote: > > Check user-given gpio number and reject it before > > calling gpio_to_desc() because gpio_to_desc() is > > for kernel driver and it expects given gpio number > > is valid (mean

Re: [PATCH] HID: Add quirk for Lenovo Yoga 910 with ITE Chips

2017-08-01 Thread Patrick
Sorry for the late response. I can confirm that the ITE8186 hub successfully reports input data on the latest linux-next release with the linked patch applied and no quirks added. On Mon, Jul 17, 2017 at 12:58:14PM -0700, Srinivas Pandruvada wrote: > On Sat, 2017-07-15 at 14:27 +0200, Patrick Ped

Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio sample sizes

2017-08-01 Thread Srinivas Kandagatla
On 01/08/17 09:42, Arnaud Pouliquen wrote: Hello Srinivas, On 08/01/2017 12:49 AM, srinivas.kandaga...@linaro.org wrote: From: Srinivas Kandagatla ADV7533 only supports audio samples word width from 16-24 bits. This patch restricts the audio sample sizes to the supported ones, so that sound

Re: [PATCH 0/2] mm, oom: do not grant oom victims full memory reserves access

2017-08-01 Thread Roman Gushchin
On Tue, Aug 01, 2017 at 02:16:44PM +0200, Michal Hocko wrote: > On Thu 27-07-17 11:03:55, Michal Hocko wrote: > > Hi, > > this is a part of a larger series I posted back in Oct last year [1]. I > > have dropped patch 3 because it was incorrect and patch 4 is not > > applicable without it. > > > >

[tip:timers/urgent] timers: Fix overflow in get_next_timer_interrupt

2017-08-01 Thread tip-bot for Matija Glavinic Pecotic
Commit-ID: 34f41c0316ed52b0b44542491d89278efdaa70e4 Gitweb: http://git.kernel.org/tip/34f41c0316ed52b0b44542491d89278efdaa70e4 Author: Matija Glavinic Pecotic AuthorDate: Tue, 1 Aug 2017 09:11:52 +0200 Committer: Thomas Gleixner CommitDate: Tue, 1 Aug 2017 14:20:53 +0200 timers: Fix ov

Re: [PATCH 3/3] mm/sched: memdelay: memory health interface for systems and workloads

2017-08-01 Thread Johannes Weiner
On Tue, Aug 01, 2017 at 09:57:28AM +0200, Peter Zijlstra wrote: > On Mon, Jul 31, 2017 at 02:41:42PM -0400, Johannes Weiner wrote: > > On Mon, Jul 31, 2017 at 10:31:11AM +0200, Peter Zijlstra wrote: > > > > So could you start by describing what actual statistics we need? Because > > > as is the sc

Re: [PATCH] video/mbx: constify fb_fix_screeninfo and fb_var_screeninfo structures

2017-08-01 Thread Bartlomiej Zolnierkiewicz
On Friday, July 07, 2017 08:09:56 PM Gustavo A. R. Silva wrote: > These structures are only used to copy into other structures, > so declare them as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position

Re: [PATCH] drivers: cpuidle: Disable preemption before get_lppaca function call in pseries_idle_probe function

2017-08-01 Thread Victor Aoqui
Em 2017-07-20 18:21, Benjamin Herrenschmidt escreveu: On Thu, 2017-07-20 at 14:57 -0300, Victor Aoqui wrote: When CONFIG_PREEMPT=y, the following warning shows up: BUG: using smp_processor_id() in preemptible [] code: swapper/0/1 caller is pseries_processor_idle_init+0x58/0x21c This

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-08-01 Thread Michal Hocko
On Mon 31-07-17 19:58:30, Gerald Schaefer wrote: > On Mon, 31 Jul 2017 17:53:50 +0200 > Michal Hocko wrote: > > > On Mon 31-07-17 17:04:59, Gerald Schaefer wrote: [...] > > > Well, it still looks like we cannot do w/o splitting up add_memory(): > > > 1) (only) set up section map during our initia

[PATCH] X.509: Recognize the legacy OID 1.3.14.3.2.29 (sha1WithRSASignature)

2017-08-01 Thread Carlo Caione
From: Carlo Caione sha1WithRSASignature is a deprecated equivalent of sha1WithRSAEncryption. It originates from the NIST Open Systems Environment (OSE) Implementor's Workshop (OIW). It is supported for compatibility with Microsoft's certificate APIs and tools, particularly makecert.exe, which de

Re: [PATCH 0/2] mm, oom: do not grant oom victims full memory reserves access

2017-08-01 Thread Michal Hocko
On Tue 01-08-17 13:23:44, Roman Gushchin wrote: > On Tue, Aug 01, 2017 at 02:16:44PM +0200, Michal Hocko wrote: > > On Thu 27-07-17 11:03:55, Michal Hocko wrote: > > > Hi, > > > this is a part of a larger series I posted back in Oct last year [1]. I > > > have dropped patch 3 because it was incorre

Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio sample sizes

2017-08-01 Thread Mark Brown
On Tue, Aug 01, 2017 at 01:24:03PM +0100, Srinivas Kandagatla wrote: > On 01/08/17 09:42, Arnaud Pouliquen wrote: > > On 08/01/2017 12:49 AM, srinivas.kandaga...@linaro.org wrote: > > I already used ADV7513 and i did not observe this limitation. > > I had a look to ADV7533 data-sheet. it should s

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-08-01 Thread Boris Brezillon
On Tue, 1 Aug 2017 14:00:05 +0200 Arnd Bergmann wrote: > On Mon, Jul 31, 2017 at 11:15 PM, Boris Brezillon > wrote: > > Hi Arnd, > > > > Le Mon, 31 Jul 2017 22:16:42 +0200, > > Arnd Bergmann a écrit : > > > >> On Mon, Jul 31, 2017 at 6:24 PM, Boris Brezillon > >> wrote: > >> > Add core inf

Re: BUG: NULL pointer dereference at ib_uverbs_comp_handler+0x20

2017-08-01 Thread Potnuri Bharat Teja
On Tuesday, August 08/01/17, 2017 at 16:38:08 +0530, Matan Barak wrote: > On Fri, Jul 28, 2017 at 8:38 PM, Logan Gunthorpe wrote: > > Hi, > > > > My system has been failing with recent kernels (4.12.x and 4.13-rc2) > > with a NULL pointer dereference at the stack trace given at the end of > > this

Re: [PATCH v2 net-next 2/3] net: dsa: lan9303: define LAN9303_NUM_PORTS 3

2017-08-01 Thread Egil Hjelmeland
On 01. aug. 2017 13:49, Juergen Borleis wrote: Hi Egil, On Tuesday 01 August 2017 13:14:38 Egil Hjelmeland wrote: Will be used instead of '3' in upcomming patches. +#define LAN9303_NUM_PORTS 3 + Maybe we should put this macro into a shared location because in "net/dsa/tag_lan9303.c" there i

Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

2017-08-01 Thread Matthias Brugger
On 07/25/2017 04:10 AM, Guochun Mao wrote: Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor" for nor flash node's compatible strings. Reviewed-by: Matthias Brugger Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt|2 ++ 1 file changed, 2 insertions(+

Re: [PATCH] video/chips: constify fb_fix_screeninfo and fb_var_screeninfo structures

2017-08-01 Thread Bartlomiej Zolnierkiewicz
On Friday, July 07, 2017 08:15:52 PM Gustavo A. R. Silva wrote: > These structures are only used to copy into other structures, > so declare them as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position

Re: [PATCH] staging/ccree: Declare compiled out fuctions static inline

2017-08-01 Thread Gilad Ben-Yossef
On Mon, Jul 31, 2017 at 12:17 PM, RishabhHardas wrote: > From: RishabhHardas > > Sparse was giving out a warning for symbols 'cc_set_ree_fips_status' and > 'fips_handler' > that they were not declared and need to be made static. This patch makes both > the symbols > static inline, to remove the

Re: [PATCH v4 1/5] treewide: Consolidate Apple DMI checks

2017-08-01 Thread Andy Shevchenko
On Tue, 2017-08-01 at 14:10 +0200, Lukas Wunner wrote: > We're about to amend ACPI bus scan with DMI checks whether we're > running > on a Mac to support Apple device properties in AML.  The DMI checks > are > performed for every single device, adding overhead for everything x86 > that isn't Apple,

Re: [PATCH] platform/x86: intel-hid: Wake up Dell Latitude 7275 from suspend-to-idle

2017-08-01 Thread Andy Shevchenko
On Tue, Aug 1, 2017 at 2:56 PM, Rafael J. Wysocki wrote: > On Tue, Aug 1, 2017 at 1:21 AM, Andy Shevchenko > wrote: >> On Tue, Aug 1, 2017 at 12:46 AM, Rafael J. Wysocki >> wrote: >>> On Friday, July 28, 2017 02:06:36 AM Rafael J. Wysocki wrote: >>> Please note that this change is requisite fo

Re: Possible race in loop.ko

2017-08-01 Thread Ming Lei
On Fri, Jul 28, 2017 at 11:55 PM, Anton Volkov wrote: > Hello. > While searching for races in Linux kernel I've come across > drivers/block/loop.ko module. Here is the question that I came up with while > analyzing results. Lines are given using the info from Linux v4.12. > > In loop_init function

Re: [PATCH v2] vmalloc: show more detail info in vmallocinfo for clarify

2017-08-01 Thread Yisheng Xie
Hi Michael, Thanks for comment! On 2017/8/1 19:00, Michael Ellerman wrote: > Yisheng Xie writes: > >> When ioremap a 67112960 bytes vm_area with the vmallocinfo: >> [..] >> 0xec79b000-0xec7fa000 389120 ftl_add_mtd+0x4d0/0x754 pages=94 vmalloc >> 0xec80-0xecbe1000 4067328 kbox_proc_mem_wr

[RFC PATCH v2 0/6] mm, memory_hotplug: allocate memmap from hotadded memory

2017-08-01 Thread Michal Hocko
Hi, this is a second version of the RFC previously posted [1]. It is still an RFC and the main reason for the repost is that I've done some changes and review should be easier this way. The biggest difference is that users of the memory hotplug can opt-in for this new feature. This is mainly becaus

[PATCH 1/6] mm, memory_hotplug: cleanup memory offline path

2017-08-01 Thread Michal Hocko
From: Michal Hocko check_pages_isolated_cb currently accounts the whole pfn range as being offlined if test_pages_isolated suceeds on the range. This is based on the assumption that all pages in the range are freed which is currently the case in most cases but it won't be with later changes. I ha

[PATCH 2/6] mm, arch: unify vmemmap_populate altmap handling

2017-08-01 Thread Michal Hocko
From: Michal Hocko vmem_altmap allows vmemmap_populate to allocate memmap (struct page array) from an alternative allocator rather than bootmem resp. kmalloc. Only x86 currently supports altmap handling, most likely because only nvdim code uses this mechanism currently and the code depends on ZON

[PATCH 3/6] mm, memory_hotplug: provide a more generic restrictions for memory hotplug

2017-08-01 Thread Michal Hocko
From: Michal Hocko arch_add_memory, __add_pages take a want_memblock which controls whether the newly added memory should get the sysfs memblock user API (e.g. ZONE_DEVICE users do not want/need this interface). Some callers even want to control where do we allocate the memmap from by configuring

[PATCH 4/6] mm, memory_hotplug: allocate memmap from the added memory range for sparse-vmemmap

2017-08-01 Thread Michal Hocko
From: Michal Hocko Physical memory hotadd has to allocate a memmap (struct page array) for the newly added memory section. kmalloc is currantly used for those allocations. This has some disadvantages a) an existing memory is consumed for that purpose (~2MB per 128MB memory section) and b) if the

[PATCH 6/6] mm, sparse: rename kmalloc_section_memmap, __kfree_section_memmap

2017-08-01 Thread Michal Hocko
From: Michal Hocko Both functions will use altmap rather than kmalloc for sparsemem-vmemmap so rename them to alloc_section_memmap/free_section_memmap which better reflect the functionality. Signed-off-by: Michal Hocko --- mm/sparse.c | 16 1 file changed, 8 insertions(+), 8 d

Re: linux-next: Tree for Aug 1

2017-08-01 Thread Sergey Senozhatsky
Hello, seems that commit 979990c6284814617 ("tty: improve tty_insert_flip_char() fast path") panics my kernel. in particular, this part @@ -26,7 +27,7 @@ static inline int tty_insert_flip_char(struct tty_port *port, *char_buf_ptr(tb, tb->used++) = ch; return 1;

[PATCH 5/6] mm, sparse: complain about implicit altmap usage in vmemmap_populate

2017-08-01 Thread Michal Hocko
From: Michal Hocko All current users of the altmap are in the memory hotplug code and they use __vmemmap_populate explicitly (via __sparse_mem_map_populate). Complain if somebody uses vmemmap_populate with altmap registered because that could be an unexpected usage. Also call __vmemmap_populate w

Re: [PATCH v4 1/5] treewide: Consolidate Apple DMI checks

2017-08-01 Thread Andy Shevchenko
On Tue, 2017-08-01 at 15:35 +0300, Andy Shevchenko wrote: > On Tue, 2017-08-01 at 14:10 +0200, Lukas Wunner wrote: > > We're about to amend ACPI bus scan with DMI checks whether we're > > running > > on a Mac to support Apple device properties in AML.  The DMI checks > > are > > performed for every

Re: [PATCH 0/2] mm, oom: do not grant oom victims full memory reserves access

2017-08-01 Thread Roman Gushchin
On Tue, Aug 01, 2017 at 02:29:05PM +0200, Michal Hocko wrote: > On Tue 01-08-17 13:23:44, Roman Gushchin wrote: > > On Tue, Aug 01, 2017 at 02:16:44PM +0200, Michal Hocko wrote: > > > On Thu 27-07-17 11:03:55, Michal Hocko wrote: > > > > Hi, > > > > this is a part of a larger series I posted back i

[tip:locking/core] futex: Allow for compiling out PI support

2017-08-01 Thread tip-bot for Nicolas Pitre
Commit-ID: bc2eecd7ecce40af43b6eb3d256b6076257df846 Gitweb: http://git.kernel.org/tip/bc2eecd7ecce40af43b6eb3d256b6076257df846 Author: Nicolas Pitre AuthorDate: Tue, 1 Aug 2017 00:31:32 -0400 Committer: Thomas Gleixner CommitDate: Tue, 1 Aug 2017 14:36:35 +0200 futex: Allow for compili

[PATCH RESEND] mailbox: pcc: Drop uninformative output during boot

2017-08-01 Thread Punit Agrawal
When booting on an ACPI enabled system that does not provide the Platform Communications Channel Table (PCCT), the pcc mailbox driver prints - [0.484261] PCCT header not found. during probe before returning -ENODEV. This message clutters the bootlog and doesn't provide any useful information

Re: [PATCH v5 2/2] arm64: dts: Add Mediatek SoC MT2712 and evaluation board dts and Makefile

2017-08-01 Thread Matthias Brugger
On 08/01/2017 10:51 AM, Yingjoe Chen wrote: On Fri, 2017-07-28 at 19:37 +0800, YT Shen wrote: diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi new file mode 100644 index 000..1e135af --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt2712e

Re: [PATCH] video: xilinxfb: constify fb_fix_screeninfo and fb_var_screeninfo structures

2017-08-01 Thread Bartlomiej Zolnierkiewicz
On Friday, July 07, 2017 08:24:16 PM Gustavo A. R. Silva wrote: > These structures are only used to copy into other structures, > so declare them as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position

Yes I am an attorney. - Re: [DNG] Identity of OP (Software written by contractors and the 'work for hire') concept

2017-08-01 Thread nisus
Yes I am a licensed attorney. No I am not going to give you my registration number nor am I going to show you my bar card. I'm sure you will keep on libeling me... All my legal analysis has been correct however, you might ponder why that is so... Rick Moen and Adam Borowski: I am a licensed

Re: [PATCH] video: cobalt_lcdfb: constify fb_fix_screeninfo structure

2017-08-01 Thread Bartlomiej Zolnierkiewicz
On Friday, July 07, 2017 08:30:23 PM Gustavo A. R. Silva wrote: > This structure is only used to copy into other structures, > so declare it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; >

Re: [PATCH 1/6] dt-bindings: ti,edma: Add 66AK2G specific information

2017-08-01 Thread Peter Ujfalusi
On 2017-08-01 07:41, Lokesh Vutla wrote: Update ti,edma binding documentation to reflect 66AK2G specific properties. Signed-off-by: Lokesh Vutla --- Documentation/devicetree/bindings/dma/ti-edma.txt | 95 +-- 1 file changed, 90 insertions(+), 5 deletions(-) diff --git a/

Re: [RFC][PATCH v3]: documentation,atomic: Add new documents

2017-08-01 Thread Peter Zijlstra
On Tue, Aug 01, 2017 at 01:17:13PM +0100, Will Deacon wrote: > Also, wouldn't this problem also arise if your atomics were built using a > spinlock where unlock had release semantics? I'm hoping none of our spnilock based atomics have weak ordering. Spinlock based atomics are a little crazy to be

Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio sample sizes

2017-08-01 Thread Srinivas Kandagatla
On 01/08/17 13:28, Mark Brown wrote: On Tue, Aug 01, 2017 at 01:24:03PM +0100, Srinivas Kandagatla wrote: On 01/08/17 09:42, Arnaud Pouliquen wrote: On 08/01/2017 12:49 AM, srinivas.kandaga...@linaro.org wrote: I already used ADV7513 and i did not observe this limitation. I had a look t

Re: [PATCH 0/2] mm, oom: do not grant oom victims full memory reserves access

2017-08-01 Thread Michal Hocko
On Tue 01-08-17 13:42:38, Roman Gushchin wrote: > On Tue, Aug 01, 2017 at 02:29:05PM +0200, Michal Hocko wrote: > > On Tue 01-08-17 13:23:44, Roman Gushchin wrote: > > > On Tue, Aug 01, 2017 at 02:16:44PM +0200, Michal Hocko wrote: > > > > On Thu 27-07-17 11:03:55, Michal Hocko wrote: > > > > > Hi,

[PATCH v2] printk: Add boottime and real timestamps

2017-08-01 Thread Prarit Bhargava
printk.time=1/CONFIG_PRINTK_TIME=1 adds a unmodified local hardware clock timestamp to printk messages. The local hardware clock loses time each day making it difficult to determine exactly when an issue has occurred in the kernel log, and making it difficult to determine how kernel and hardware i

Re: [PATCH v2 5/5] ACPI/IORT: Add IORT named component memory address limits

2017-08-01 Thread Hanjun Guo
On 2017/8/1 19:21, Lorenzo Pieralisi wrote: On Tue, Aug 01, 2017 at 06:20:43PM +0800, Hanjun Guo wrote: Hi Lorenzo, On 2017/7/31 23:23, Lorenzo Pieralisi wrote: IORT named components provide firmware configuration describing how many address bits a given device is capable of generating to addr

Re: [PATCH v5] vfat: Deduplicate hex2bin()

2017-08-01 Thread Andy Shevchenko
On Tue, 2017-08-01 at 05:54 +0900, OGAWA Hirofumi wrote: > Andy Shevchenko writes: > > > > + > > > +   *(wchar_t *)op = uc[0] << 8 | > > > uc[1]; > > > + > > > +   op += 2; > > > > This had been in the original patch 6 years ago and had bee

Re: [PATCH] drivers/video/fbdev/omap/lcd_mipid.c: add const to lcd_panel structure

2017-08-01 Thread Bartlomiej Zolnierkiewicz
On Friday, July 14, 2017 02:44:06 PM Bhumika Goyal wrote: > Make lcd_panel structure const as it is only copied to some object. > As the only usage of this structure is a copy operation, so it can be > made const. > > Signed-off-by: Bhumika Goyal Patch queued for 4.14, thanks. Best regards, --

Re: [PATCH] tracing: Fix trace_pipe_raw read panic

2017-08-01 Thread Chunyu Hu
A gentle ping. Any comment on this? Maybe have better solution for this? On 25 July 2017 at 04:24, Steven Rostedt wrote: > > Hi Chunyu, > > Thanks for the patch. I'm currently traveling, and will have little > time to test it. Hopefully I can get to it sometime this week. > > -- Steve > > > On Mo

Re: [PATCH v7 01/15] MAINTAINERS: Add RISC-V

2017-08-01 Thread Andy Shevchenko
On Mon, 2017-07-31 at 17:59 -0700, Palmer Dabbelt wrote: > From: Jonathan Neuschäfer > > RISC-V needs a MAINTAINERS entry. Let's add one. > Have you checked this by a brand new script (*) from Linus?  (*) parse-maintainers.pl > Signed-off-by: Jonathan Neuschäfer > Signed-off-by: Palmer Dabbe

Re: [PATCH v7 02/15] lib: Add shared copies of some GCC library routines

2017-08-01 Thread Andy Shevchenko
On Mon, 2017-07-31 at 17:59 -0700, Palmer Dabbelt wrote: > Many ports (m32r, microblaze, mips, parisc, score, and sparc) use > functionally identical copies of various GCC library routine files, > which came up as we were submitting the RISC-V port (which also uses > some of these). > > This patch

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

2017-08-01 Thread Zi Yan
Hi Stephen, I found two possible fixes. 1. This uses C++ zero initializer, GCC is OK with it. I tested with GCC 4.9.3 (has the initialization bug) and GCC 6.4.0. --- a/include/linux/swapops.h~a +++ a/include/linux/swapops.h @@ -217,7 +217,7 @@ static inline swp_entry_t pmd_to_swp_ent static in

Re: [PATCH v4 0/5] Apple SPI properties

2017-08-01 Thread Rafael J. Wysocki
On Tue, Aug 1, 2017 at 2:10 PM, Lukas Wunner wrote: > Retrieve device properties on Macs with an Apple-specific _DSM and > use them in lieu of _CRS data upon SPI slave initialization > in preparation of supporting the SPI keyboard on 2015+ MacBooks, v4. > > Please refer to the cover letter of v1 f

Re: [PATCH 04/11] fbdev: da8xx-fb: Drop unnecessary static

2017-08-01 Thread Bartlomiej Zolnierkiewicz
On Saturday, July 15, 2017 10:07:39 PM Julia Lawall wrote: > Drop static on a local variable, when the variable is initialized before > any possible use. Thus, the static has no benefit. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @bad e

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-08-01 Thread Arnd Bergmann
On Tue, Aug 1, 2017 at 2:29 PM, Boris Brezillon wrote: > On Tue, 1 Aug 2017 14:00:05 +0200 > Arnd Bergmann wrote: >> Another argument for a combined bus would be devices that >> can be attached to either i2c and i3c, depending on the host >> capabilities. > > Hm, that's already the case, isn't i

Re: [PATCH v4 1/5] treewide: Consolidate Apple DMI checks

2017-08-01 Thread Mika Westerberg
On Tue, Aug 01, 2017 at 02:10:41PM +0200, Lukas Wunner wrote: > We're about to amend ACPI bus scan with DMI checks whether we're running > on a Mac to support Apple device properties in AML. The DMI checks are > performed for every single device, adding overhead for everything x86 > that isn't App

Re: [PATCH v3 06/15] commoncap: Refactor to remove bprm_secureexec hook

2017-08-01 Thread Andy Lutomirski
On Mon, Jul 31, 2017 at 3:43 PM, Kees Cook wrote: > On Wed, Jul 19, 2017 at 9:53 PM, Andy Lutomirski wrote: >> On Tue, Jul 18, 2017 at 6:10 PM, Andy Lutomirski wrote: >>> On Tue, Jul 18, 2017 at 3:25 PM, Kees Cook wrote: The commoncap implementation of the bprm_secureexec hook is the only

[PATCH 00/13] Allwinner H3 DE2 basical support

2017-08-01 Thread Icenowy Zheng
Allwinner H3 features a "Display Engine 2.0", which needs some support to be present in the DRM driver. This patchset is now a basical version, which dropped some features I used to submitted: - TVE support (not so high priority now) - Multi-pipeline support (also not so high priority now due to n

Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio sample sizes

2017-08-01 Thread Mark Brown
On Tue, Aug 01, 2017 at 01:52:35PM +0100, Srinivas Kandagatla wrote: > On 01/08/17 13:28, Mark Brown wrote: > > > And it's a false indication that we are supporting 32bit samples. > > > Which am not very happy with. > > This is what the sample_bits field in the DAI structure is for.ya. > But sti

[PATCH 03/13] drm: sun4i: add support for H3's TCON

2017-08-01 Thread Icenowy Zheng
From: Icenowy Zheng Allwinner H3 has two special TCONs without channel 0. Add support for this kind of TCON. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 + drivers/gpu/drm/sun4i/sun4i_tcon.c | 43 +++--- drivers/gpu/drm/sun4i/sun4i_

Re: linux-next: Tree for Aug 1

2017-08-01 Thread Arnd Bergmann
On Tue, Aug 1, 2017 at 2:42 PM, Sergey Senozhatsky wrote: > Hello, > > > seems that commit 979990c6284814617 ("tty: improve tty_insert_flip_char() > fast path") panics my kernel. > > in particular, this part Looking into it now, sorry for the breakage. Arnd

Re: [PATCH] pinctrl: st: constify gpio_chip structure

2017-08-01 Thread Linus Walleij
On Tue, Jul 11, 2017 at 8:15 PM, Gustavo A. R. Silva wrote: > This structure is only used to copy into other structure, so declare > it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; > @@ >

Re: [PATCH -mm] fault-inject: avoid unwanted data race to task->fail_nth

2017-08-01 Thread Lu Fengqi
On Fri, Jul 14, 2017 at 01:14:52AM +0900, Akinobu Mita wrote: >The fault-inject-make-fail-nth-read-write-interface-symmetric.patch in >-mm tree allows users to set task->fail_nth for non current task by procfs. >On the other hand, the current task's fail_nth is decreased to zero in >fault-injection

Re: [PATCH] ASoC: max98090 - Expose HP out enable.

2017-08-01 Thread Mark Brown
On Mon, Jul 24, 2017 at 11:05:25AM +0200, Enric Balletbo i Serra wrote: > From: Hsin-Yu Chao > > Expose the headphone output enables to user space. This will allow > userspace to ensure that there is stable output before the headphones > are turned on, avoiding a pop on insertion. If the user n

Re: [PATCH v4 05/15] selinux: Refactor to remove bprm_secureexec hook

2017-08-01 Thread Andy Lutomirski
On Mon, Jul 31, 2017 at 4:51 PM, Kees Cook wrote: > The SELinux bprm_secureexec hook can be merged with the bprm_set_creds > hook since it's dealing with the same information, and all of the details > are finalized during the first call to the bprm_set_creds hook via > prepare_binprm() (subsequent

Re: [RFC PATCH v2] membarrier: expedited private command

2017-08-01 Thread Paul E. McKenney
On Tue, Aug 01, 2017 at 12:22:03PM +0200, Peter Zijlstra wrote: [ . . . ] > As to scheduler IPIs, those are limited to the CPUs the user is limited > to and are rate limited by the wakeup-latency of the tasks. After all, > all the time a task is runnable but not running, wakeups are no-ops. Can'

[PATCH v3 3/3] drm/bridge/synopsys: dsi: explicitly request exclusive reset control

2017-08-01 Thread Philippe CORNU
Based on patch "Convert drivers to explicit reset API" from Philipp Zabel Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting reset lines") started to transition the reset control request API calls to explicitly state whether the driver needs exclusive or shared reset control

Re: [PATCH] video: bfin-lq035q1-fb: constify dev_pm_ops

2017-08-01 Thread Bartlomiej Zolnierkiewicz
On Sunday, July 16, 2017 08:19:06 PM Gustavo A. R. Silva wrote: > This dev_pm_ops structure is only stored in the pm field of a > device_driver structure. This field is declared const, so > dev_pm_ops structures that have this property can be declared > as const also. > > Signed-off-by: Gustavo A.

Re: [PATCH 1/2] pinctrl: zynq: Fix kernel doc warnings

2017-08-01 Thread Linus Walleij
On Thu, Jul 13, 2017 at 11:12 AM, Michal Simek wrote: > From: Nava kishore Manne > > This patch fixes the kernel doc warnings in the driver. > > Signed-off-by: Nava kishore Manne > Signed-off-by: Michal Simek Patch applied. Yours, Linus Walleij

[PATCH v2] misc: Return error on error path

2017-08-01 Thread Anton Vasilyev
If ibmasm_event_buffer_init() or ibmasm_heartbeat_init() fails, then ibmasm_init_one() release all resources and return 0 on error path. The patch adds corresponding error for fails. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Anton Vasilyev --- v2: change ibma

[PATCH v3 2/3] drm/bridge/synopsys: dsi: Register list clean up

2017-08-01 Thread Philippe CORNU
This patch cleans up the Synopsys mipi dsi register list: - rename registers according to the Synopsys documentation (1.30 & 1.31) - fix typos - re-order registers for a better coherency Signed-off-by: Philippe CORNU Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/synopsys/dw-mipi-ds

[PATCH v3 1/3] drm/bridge/synopsys: dsi: Constify funcs structures

2017-08-01 Thread Philippe CORNU
Constify dw_mipi_dsi_bridge_funcs as these functions are not supposed to change at runtime. Signed-off-by: Philippe CORNU Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/sy

Re: [PATCH 2/2] pinctrl: zynq: Fix warnings in the driver

2017-08-01 Thread Linus Walleij
On Thu, Jul 13, 2017 at 11:12 AM, Michal Simek wrote: > From: Nava kishore Manne > > This patch fixes the below warning > --> Prefer 'unsigned int' to bare use of 'unsigned'. > --> line over 80 characters. > --> Prefer 'unsigned int **' to bare use of 'unsigned **'. > > S

Re: [PATCH v2 net-next 2/3] net: dsa: lan9303: define LAN9303_NUM_PORTS 3

2017-08-01 Thread Andrew Lunn
On Tue, Aug 01, 2017 at 02:31:44PM +0200, Egil Hjelmeland wrote: > On 01. aug. 2017 13:49, Juergen Borleis wrote: > >Hi Egil, > > > >On Tuesday 01 August 2017 13:14:38 Egil Hjelmeland wrote: > >>Will be used instead of '3' in upcomming patches. > >> > >> > >>+#define LAN9303_NUM_PORTS 3 > >>+ > > >

Re: linux-next: Tree for Aug 1

2017-08-01 Thread Arnd Bergmann
On Tue, Aug 1, 2017 at 3:20 PM, Arnd Bergmann wrote: > On Tue, Aug 1, 2017 at 2:42 PM, Sergey Senozhatsky > wrote: >> Hello, >> >> >> seems that commit 979990c6284814617 ("tty: improve tty_insert_flip_char() >> fast path") panics my kernel. >> >> in particular, this part > > Looking into it now,

Re: [PATCH v2] misc: Return error on error path

2017-08-01 Thread Andy Shevchenko
On Tue, Aug 1, 2017 at 4:25 PM, Anton Vasilyev wrote: > If ibmasm_event_buffer_init() or ibmasm_heartbeat_init() fails, > then ibmasm_init_one() release all resources and return 0 on error path. > > The patch adds corresponding error for fails. > > Found by Linux Driver Verification project (linux

Re: [PATCH v7 05/15] irqchip: New RISC-V PLIC Driver

2017-08-01 Thread Andy Shevchenko
On Mon, 2017-07-31 at 17:59 -0700, Palmer Dabbelt wrote: > This patch adds a driver for the Platform Level Interrupt Controller > (PLIC) specified as part of the RISC-V supervisor level ISA manual. > The PLIC connocts global interrupt sources to the local interrupt > controller on each hart.  A PLI

[PATCH v3 0/3] drm/bridge/synopsys: dsi: Various cleanups

2017-08-01 Thread Philippe CORNU
Version 3: - Add devm_reset_control_get_optional_exclusive (Philipp Zabel). Version 2: - Put back Synopsys mipi dsi unused registers. - Add devm_reset_control_get_exclusive to follow explicit reset API. - Add a missing commit message & reviewed-by. Version 1: - Initial commit The purpose of this

Re: [tpmdd-devel] tpm: read burstcount from TPM_STS in one 32-bit transaction

2017-08-01 Thread Jarkko Sakkinen
On Tue, Jul 25, 2017 at 08:17:58PM +0200, Michal Suchánek wrote: > On Tue, 25 Jul 2017 10:36:11 -0700 > James Bottomley wrote: > > > On Tue, 2017-07-25 at 15:04 +0200, Michal Suchánek wrote: > > > Hello, > > > > > > in commit 9754d45e9970 ("tpm: read burstcount from TPM_STS in one > > > 32-bit t

Re: [PATCH v3 0/3] drm/bridge/synopsys: dsi: Various cleanups

2017-08-01 Thread Philippe CORNU
Hi Archit, The 2 first patches have been reviewed by Laurent. The 3rd one has been "acked" by Philipp. Do not hesitate to send me any comments so I can take them into account before my holidays (end of next week)... Many thanks for your support, Philippe :-) On 08/01/2017 03:23 PM, Philippe

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-08-01 Thread Boris Brezillon
On Tue, 1 Aug 2017 15:11:44 +0200 Arnd Bergmann wrote: > On Tue, Aug 1, 2017 at 2:29 PM, Boris Brezillon > wrote: > > On Tue, 1 Aug 2017 14:00:05 +0200 > > Arnd Bergmann wrote: > > >> Another argument for a combined bus would be devices that > >> can be attached to either i2c and i3c, depend

[PATCH 04/13] drm: sun4i: add compatible for H3 display engine

2017-08-01 Thread Icenowy Zheng
Add a compatible string for H3 display engine in sun4i_drv code. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c index fd99fe8a4df7..02c80bb7b385 100644 -

[PATCH 06/13] clk: sunxi-ng: export CLK_PLL_DE for H3

2017-08-01 Thread Icenowy Zheng
The CLK_PLL_DE is needed to be referenced in device tree for H3, for both forcing the parent of PLL_DE. So export it to the device tree binding header. Signed-off-by: Icenowy Zheng --- drivers/clk/sunxi-ng/ccu-sun8i-h3.h | 3 +-- include/dt-bindings/clock/sun8i-h3-ccu.h | 2 ++ 2 files cha

[PATCH 05/13] clk: sunxi-ng: allow CLK_DE to set CLK_PLL_DE for H3

2017-08-01 Thread Icenowy Zheng
Allwinner H3 features a PLL named CLK_PLL_DE, and a mod clock for the "Display Engine 2.0" named CLK_DE. As the name indicated, the CLK_PLL_DE is a PLL for CLK_DE. Only CLK_DE and CLK_TVE have a parent of CLK_PLL_DE, and CLK_TVE is also one part of the display clocks. So allow CLK_DE to set CLK_P

[PATCH 07/13] ARM: sun8i: h3: add display engine pipeline barebone

2017-08-01 Thread Icenowy Zheng
As we have already the support for the DE2 on Allwinner H3, add the display engine pipeline device tree nodes to its DTSI file. The H5 pipeline has some differences and will be enabled later. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-h3.dtsi | 170

[PATCH 08/13] [NOT FOR REVIEW NOW] drm: bridge: Enable polling hpd event in dw_hdmi

2017-08-01 Thread Icenowy Zheng
From: Jernej Skrabec Some custom phys don't support hpd interrupts. Add support for polling such events. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.

[PATCH 09/13] [NOT FOR REVIEW NOW] drm: bridge: Add a pre_init function for the dw_hdmi driver

2017-08-01 Thread Icenowy Zheng
From: Jernej Skrabec Some platform glues of DesignWare HDMI controller require some initialization to be performed before probing the main HDMI controller. Add a pre_init function for this kind of work. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +++ inclu

Re: [PATCH v4 4/5] ACPI / scan: Recognize Apple SPI and I2C slaves

2017-08-01 Thread Mika Westerberg
On Tue, Aug 01, 2017 at 02:10:41PM +0200, Lukas Wunner wrote: > SPI and I2C slaves are enumerated by their respective parents rather > than the ACPI core. They are recognized by presence of _CRS resources, > which however are missing on Macs. Check for presence of device > properties instead. >

Re: [PATCH] fbdev: uvesafb: remove DRIVER_ATTR() usage

2017-08-01 Thread Bartlomiej Zolnierkiewicz
On Wednesday, July 19, 2017 02:51:19 PM Greg KH wrote: > From: Greg Kroah-Hartman > > It's better to be explicit and use the DRIVER_ATTR_RW() macro when > defining a driver's sysfs file. Bonus is this fixes up a checkpatch.pl > warning. > > This is part of a series to drop DRIVER_ATTR() from th

Re: [RFC][PATCH v3]: documentation,atomic: Add new documents

2017-08-01 Thread Paul E. McKenney
On Tue, Aug 01, 2017 at 11:01:21AM +0200, Peter Zijlstra wrote: > On Mon, Jul 31, 2017 at 10:43:45AM -0700, Paul E. McKenney wrote: > > > Why wouldn't the following have ACQUIRE semantics? > > > > atomic_inc(&var); > > smp_mb__after_atomic(); > > > > Is the issue that there is no actual

[PATCH 0/3] Refactor GHES to better support non-APEI systems

2017-08-01 Thread Punit Agrawal
Hi, The small series re-factors the GHES driver initialisation to move memory allocation and checks from driver init to device probe. The net effect is to improve the situation for systems that do not support APEI. The patches are organised as - * Unify estatus pool creation and expansion into g

Re: [PATCH v2 1/3] kvm: svm: Add support for additional SVM NPF error codes

2017-08-01 Thread Brijesh Singh
On 07/31/2017 03:05 PM, Paolo Bonzini wrote: There can be different cases where an L0->L2 shadow nested page table is marked read only, in particular when a page is read only in L1's nested page tables. If such a page is accessed by L2 while walking page tables it will cause a nested page fa

[PATCH 1/3] GHES: Expand the estatus pool in ghes_estatus_pool_init()

2017-08-01 Thread Punit Agrawal
During the GHES driver initialisation, a pool of memory is created by calling ghes_estatus_pool_init() which is then immediately expanded by making a call to ghes_estatus_pool_expand(). Re-factor the code so that on successful creation of the pool, ghes_estatus_pool_init() expands the initialised

[PATCH 2/3] GHES: Move memory initialisation to ghes_probe()

2017-08-01 Thread Punit Agrawal
During the driver init, the ghes driver initialises some data structures which are only used if a GHES platform device is probed. Similarly, the init function also checks for support for firmware first mode. Create a function, ghes_common_init(), that performs the initialisations and checks that a

[PATCH 3/3] ACPI / APEI: HEST: Don't set hest_disable if table not found

2017-08-01 Thread Punit Agrawal
During initialisation, the driver sets hest_disable to 1 if the HEST table is not found. This value is checked during the GHES driver initialisation and in turn leads to a message such as - [3.460067] GHES: HEST is not enabled! being output in the bootlog. The message appears even on systems

Re: [PATCH v7 06/15] tty: New RISC-V SBI console driver

2017-08-01 Thread Andy Shevchenko
On Mon, 2017-07-31 at 18:00 -0700, Palmer Dabbelt wrote: > The RISC-V ISA defines a simple console that is availiable via SBI > calls > on all systems.  This patch adds a driver for this console interface > that can act as both a target for early printk and as the system > console. > +#include >

Re: [RFC][PATCH 1/5] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-01 Thread Benjamin Herrenschmidt
On Tue, 2017-08-01 at 11:31 +0100, Will Deacon wrote: > Looks like that's what's currently relied upon: > > /* Clearing is done after a TLB flush, which also provides a barrier. */ > > It also provides barrier semantics on arm/arm64. In reality, I suspect > all archs have to provide some order

[PATCH 10/13] [NOT FOR REVIEW NOW] clk: sunxi: Add CLK_SET_RATE_PARENT flag for H3 HDMI clock

2017-08-01 Thread Icenowy Zheng
From: Jernej Skrabec When setting the HDMI clock of H3, the PLL_VIDEO clock needs to be set. Add CLK_SET_RATE_PARENT flag for H3 HDMI clock. Signed-off-by: Jernej Skrabec Signed-off-by: Icenowy Zheng --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

<    1   2   3   4   5   6   7   8   9   10   >