Re: [PATCH 1/3] ACPI / blacklist: add acpi_match_oemlist() interface

2017-07-18 Thread Kani, Toshimitsu
On Tue, 2017-07-18 at 19:42 +0200, Borislav Petkov wrote: > On Tue, Jul 18, 2017 at 05:24:50PM +, Kani, Toshimitsu wrote: > > Well, a list does not need to be a black-list. > > But this one *is* a blacklist. Right. Hence, acpi_backlisted() still declares the list as 'acpi_blacklist[]'. > >

Re: [PATCH] nvme: Acknowledge completion queue on each iteration

2017-07-18 Thread Sinan Kaya
On 7/18/2017 10:36 AM, Keith Busch wrote: > On Mon, Jul 17, 2017 at 07:07:00PM -0400, ok...@codeaurora.org wrote: >> Maybe, I need to understand the design better. I was curious why completion >> and submission queues were protected by a single lock causing lock >> contention. > Ideally the queues

Re: [PATCH 3/9] blackfin: bf609: allow NULL clock for clk_get_rate

2017-07-18 Thread Masahiro Yamada
2017-07-18 19:17 GMT+09:00 Jonas Gorski : > Make the behaviour of clk_get_rate consistent with common clk's > clk_get_rate by accepting NULL clocks as parameter. Some device > drivers rely on this, and will cause an OOPS otherwise. > > Fixes: 969003152aa9 ("blackfin: bf60x: add clock support") > Cc

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-18 Thread Peter Zijlstra
On Mon, Jul 17, 2017 at 12:48:38PM -0700, Arjan van de Ven wrote: > On 7/17/2017 12:23 PM, Peter Zijlstra wrote: > > Of course, this all assumes a Gaussian distribution to begin with, if we > > get bimodal (or worse) distributions we can still get it wrong. To fix > > that, we'd need to do somethin

Re: [Intel-gfx] [PATCH v2] drm/i915: Explicit the connector name for DP link training result

2017-07-18 Thread Pandiyan, Dhinakaran
On Tue, 2017-07-18 at 17:25 +0300, Paul Kocialkowski wrote: > This adds the connector name when printing a debug message about the DP > link training result. It is useful to figure out what connector is > failing when multiple DP connectors are used. > > Signed-off-by: Paul Kocialkowski > ---

Re: [PATCH net-next 2/5] virtio-net: pack headroom into ctx for mergeable buffer

2017-07-18 Thread Michael S. Tsirkin
On Mon, Jul 17, 2017 at 08:43:58PM +0800, Jason Wang wrote: > Pack headroom into ctx, then during XDP set, we could know the size of > headroom and copy if needed. This is required for avoiding reset on > XDP. Not really when XDP is set - it's when buffers are used. virtio-net: pack headroom into

Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-18 Thread Vivien Didelot
Hi David, David Miller writes: > However, in this particular case, this issue was brought to Vivien's > attention multiple times in the past. > > And I think the direct PHY poking issue is much more important than > these seemingly endless reorganizations of the driver that Vivien is > doing. >

Re: [PATCH v10 2/3] arm/syscalls: Check address limit on user-mode return

2017-07-18 Thread Thomas Garnier
On Tue, Jul 18, 2017 at 10:18 AM, Leonard Crestez wrote: > > On Tue, 2017-07-18 at 09:04 -0700, Thomas Garnier wrote: > > On Tue, Jul 18, 2017 at 7:36 AM, Leonard Crestez > > wrote: > > > > > > On Wed, 2017-06-14 at 18:12 -0700, Thomas Garnier wrote: > > > > > > > > Ensure the address limit is a

Re: [PATCH v3 00/10] constify net attribute_group structures.

2017-07-18 Thread David Miller
From: Arvind Yadav Date: Tue, 18 Jul 2017 15:13:44 +0530 > attribute_group are not supposed to change at runtime. All functions > working with attribute_group provided by work with const > attribute_group. So mark the non-const structs as const. Series applied, thanks.

Re: [PATCH v2] drm/i915: Explicit the connector name for DP link training result

2017-07-18 Thread Manasi Navare
On Tue, Jul 18, 2017 at 05:25:36PM +0300, Paul Kocialkowski wrote: > This adds the connector name when printing a debug message about the DP > link training result. It is useful to figure out what connector is > failing when multiple DP connectors are used. > Thanks for the patch, this does make s

Re: [PATCH 4/4] ARM: dts: keystone-k2g-evm: Add gpio nodes

2017-07-18 Thread Suman Anna
Hi Keerthy, On 07/18/2017 05:57 AM, Keerthy wrote: > keystone-k2g has 2 instances of gpio. The first one has all the 144 GPIOs Please use 66AK2G for keystone-k2g. > functional( 9 banks with 16 gpios = 144). The second instance has > only the GPIO0:GPIO67 functional and rest are marked reserved.

Re: [PATCH v2 2/2] livepatch: add shadow variable sample programs

2017-07-18 Thread Joe Lawrence
On Tue, Jul 18, 2017 at 04:47:45PM +0200, Petr Mladek wrote: > Date: Tue, 18 Jul 2017 16:47:45 +0200 > From: Petr Mladek > To: Joe Lawrence > Cc: live-patch...@vger.kernel.org, linux-kernel@vger.kernel.org, Josh > Poimboeuf , Jessica Yu , Jiri Kosina > , Miroslav Benes > Subject: Re: [PATCH

Re: [PATCH 00/10] percpu: replace percpu area map allocator with bitmap allocator

2017-07-18 Thread Josef Bacik
On Sat, Jul 15, 2017 at 10:23:05PM -0400, Dennis Zhou wrote: > Hi everyone, > > The Linux kernel percpu memory allocator is responsible for managing > percpu memory. It allocates memory from chunks of percpu areas and uses a > simple first-fit area allocator to manage allocations inside each chunk

Re: [PATCH] workqueue: doc change for ST behavior on NUMA systems

2017-07-18 Thread Christoph Hellwig
On Tue, Jul 18, 2017 at 11:12:53AM -0700, Alexei Potashnik wrote: > NUMA rework of workqueue made the combination of max_active of 1 and > WQ_UNBOUND insufficient to guarantee ST behavior system wide. > > alloc_ordered_queue should now be used instead. Eww. And how many existing users might be b

Re: [PATCH net-next 3/5] virtio-net: switch to use new ctx API for small buffer

2017-07-18 Thread Michael S. Tsirkin
what's needed is ability to store the headroom there. virtio-net: switch to use ctx API for small buffers Use ctx API to store headroom for small buffers. Following patches will retrieve this info and use it for XDP. On Mon, Jul 17, 2017 at 08:43:59PM +0800, Jason Wang wrote: > Switch to use ctx

[PATCH v3 0/2] Add support for TI TAS6424 digital amplifier

2017-07-18 Thread Michael Stecklein
Hello all, This two-patch series adds the dt bindings, driver, and other related changes for the TAS6424 digital amplifier. I am upstreaming this driver on behalf of Andreas. Regards, Michael Stecklein Changes since v2: - fixed binding as per Rob Herring's comments on v2 Changes since v1: -

[PATCH v3 2/2] ASoC: add support for TAS6424 digital amplifier

2017-07-18 Thread Michael Stecklein
From: Andreas Dannenberg The Texas Instruments TAS6424 device is a high-efficiency quad-channel Class-D audio power amplifier. Its digital time division multiplexed (TDM) interface enables up to 2 devices to share the same bus, supporting a total of eight channels from one audio serial port. Thi

[PATCH v3 1/2] dt-bindings: sound: add bindings for TAS6424

2017-07-18 Thread Michael Stecklein
Add the bindings for the TAS6424 digital amplifier. Signed-off-by: Michael Stecklein --- .../devicetree/bindings/sound/ti,tas6424.txt | 28 ++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/ti,tas6424.txt diff --git a/Docum

Re: [patch 0/3] Re: tty contention resulting from tty_open_by_device export

2017-07-18 Thread Okash Khawaja
On Tue, Jul 18, 2017 at 03:26:37PM +0300, Dan Carpenter wrote: > > + if (tty) { > > + /* drop kref from tty_driver_lookup_tty() */ > > + tty_kref_put(tty); > > + tty = ERR_PTR(-EBUSY); > > + } else { /* tty_init_dev returns tty with the tty_lock

Re: [PATCH 06/10] percpu: modify base_addr to be region specific

2017-07-18 Thread Josef Bacik
On Sat, Jul 15, 2017 at 10:23:11PM -0400, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > Originally, the first chunk is served by up to three chunks, each given > a region they are responsible for. Despite this, the arithmetic was based > off of the base_addr making it require offsets or

[PATCH 0/2] New bind/unbingd uevents

2017-07-18 Thread Dmitry Torokhov
Hi Greg, I am resending the bind/unbind and devm_sysfs_create_group() patches, as you requested. The new bind/unbind will allow triggering firmware update through udev, and the new sysfs API will cut down on some boilerplate code in drivers. Below is also a patch to systemd to stop dropping the n

[PATCH 1/2] driver core: emit uevents when device is bound to a driver

2017-07-18 Thread Dmitry Torokhov
There are certain touch controllers that may come up in either normal (application) or boot mode, depending on whether firmware/configuration is corrupted when they are powered on. In boot mode the kernel does not create input device instance (because it does not necessarily know the characteristic

[PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-07-18 Thread Dmitry Torokhov
Many drivers create additional driver-specific device attributes when binding to the device and providing managed version of sysfs_create_group() will simplify unbinding and error handling in probe path for such drivers. Without managed version driver writers either have to mix manual and managed

Re: [PATCH 1/3] ACPI / blacklist: add acpi_match_oemlist() interface

2017-07-18 Thread Borislav Petkov
On Tue, Jul 18, 2017 at 06:49:51PM +, Kani, Toshimitsu wrote: > ghes_edac uses this structure as a while-list, so the term backlist is > misleading. So this matching function gets both blacklists and whitelists. No wonder it is confusing. Now I finally understand what you wanna do: you want to

[PATCH] cgroup: Show control files in cgroup2 root after mount

2017-07-18 Thread Waiman Long
It was found that when a cgroup2 filesystem was mounted, control files other than the base cgroup.* ones were not shown in the root directory. They were shown only after some controllers were activated in the root's cgroup.subtree_control file. This was caused by a lack of the kernfs_activate() c

Re: [PATCH] selftests: cpufreq: Check cpuinfo_cur_freq set as expected

2017-07-18 Thread Leonard Crestez
On Thu, 2017-07-13 at 14:25 +0530, Viresh Kumar wrote: > On 12-07-17, 14:29, Leonard Crestez wrote: > > > > This checks that the cpufreq driver actually sets the requested > > frequency. > > > > Signed-off-by: Leonard Crestez > > > > --- > > > > I've been looking at using kselftests for imx. T

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-18 Thread Joe Lawrence
On Tue, Jul 18, 2017 at 03:00:47PM +0200, Petr Mladek wrote: > Date: Tue, 18 Jul 2017 15:00:47 +0200 > From: Petr Mladek > To: Miroslav Benes > Cc: Josh Poimboeuf , Joe Lawrence > , live-patch...@vger.kernel.org, > linux-kernel@vger.kernel.org, Jessica Yu , Jiri Kosina > > Subject: Re: [PAT

Re: [PATCH 06/10] percpu: modify base_addr to be region specific

2017-07-18 Thread Matthew Wilcox
On Tue, Jul 18, 2017 at 03:26:02PM -0400, Josef Bacik wrote: > On Sat, Jul 15, 2017 at 10:23:11PM -0400, Dennis Zhou wrote: > > + map_size_bytes = (ai->reserved_size ?: ai->dyn_size) + > > +pcpu_reserved_offset; > > This confused me for a second, better to be explicit with >

Re: [PATCH] workqueue: doc change for ST behavior on NUMA systems

2017-07-18 Thread Tejun Heo
On Tue, Jul 18, 2017 at 12:18:29PM -0700, Christoph Hellwig wrote: > On Tue, Jul 18, 2017 at 11:12:53AM -0700, Alexei Potashnik wrote: > > NUMA rework of workqueue made the combination of max_active of 1 and > > WQ_UNBOUND insufficient to guarantee ST behavior system wide. > > > > alloc_ordered_qu

[PATCH] ARM: dts: BCM53573: Add Broadcom BCM947189ACDBMR board support

2017-07-18 Thread Florian Fainelli
Adds support for the Broadcom reference board BCM947189ACDMBR which features the following: * 128MB of DRAM * External MoCA support through a Broadcom BCM6802 chip * 1x external Gigabit PHY through the external BCM6802 * 1x USB 2.0 port * 1x PCIE slot * Few configurable buttons and LEDs Signed-of

[PATCH] ARM: dts: BCM53573: Add Broadcom BCM947189ACDBMR board support

2017-07-18 Thread Florian Fainelli
Adds support for the Broadcom reference board BCM947189ACDMBR which features the following: * 128MB of DRAM * External MoCA support through a Broadcom BCM6802 chip * 1x external Gigabit PHY through the external BCM6802 * 1x USB 2.0 port * 1x PCIE slot * Few configurable buttons and LEDs Signed-of

[PATCH] mm/hugetlb: __get_user_pages ignores certain follow_hugetlb_page errors

2017-07-18 Thread daniel . m . jordan
Commit 9a291a7c9428 ("mm/hugetlb: report -EHWPOISON not -EFAULT when FOLL_HWPOISON is specified") causes __get_user_pages to ignore certain errors from follow_hugetlb_page. After such error, __get_user_pages subsequently calls faultin_page on the same VMA and start address that follow_hugetlb_page

Re: [PATCH v6 1/3] clk: nxp: clk-lpc32xx: rename clk_gate_is_enabled()

2017-07-18 Thread Vladimir Zapolskiy
Hello Gabriel, On 07/18/2017 10:53 AM, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > We need to export clk_gate_is_enabled() from clk framework, then first of all let's clarify if you really need to export clk_gate_is_enabled() from the CCF. > to avoid compilation issue we have

Re: [PATCH V6] sched/fair: Remove group imbalance from calculate_imbalance()

2017-07-18 Thread Dietmar Eggemann
Hi Jeffrey, On 13/07/17 20:55, Jeffrey Hugo wrote: > The group_imbalance path in calculate_imbalance() made sense when it was > added back in 2007 with commit 908a7c1b9b80 ("sched: fix improper load > balance across sched domain") because busiest->load_per_task factored into > the amount of imbala

Re: [PATCH net-next 4/5] virtio-net: do not reset during XDP set

2017-07-18 Thread Michael S. Tsirkin
On Mon, Jul 17, 2017 at 08:44:00PM +0800, Jason Wang wrote: > We used to reset during XDP set, the main reason is we need allocate > extra headroom for header adjustment but there's no way to know the > headroom of exist receive buffer. This works buy maybe complex and may > cause the network down

Re: [PATCH] cgroup: Show control files in cgroup2 root after mount

2017-07-18 Thread Tejun Heo
Hello, Waiman. On Tue, Jul 18, 2017 at 03:32:16PM -0400, Waiman Long wrote: > It was found that when a cgroup2 filesystem was mounted, control > files other than the base cgroup.* ones were not shown in the root > directory. They were shown only after some controllers were activated > in the root

Re: [PATCH v5 4/4]: perf/core: complete replace of lists by rb trees for pinned and flexible groups at perf_event_context

2017-07-18 Thread Alexey Budankov
On 18.07.2017 19:55, Alexander Shishkin wrote: > Alexey Budankov writes: > >> I see. Do you personally have some more issues that needs to be addressed? >> My intention is that this patch v5 4/4 addresses all your comments raised in >> the previous reviews. > > I don't know yet, I haven't start

Re: [PATCH v2 0/7] [PATCH v2 0/7] Add support of OV9655 camera

2017-07-18 Thread Sakari Ailus
On Tue, Jul 18, 2017 at 12:53:12PM +, Hugues FRUCHET wrote: > > > On 07/18/2017 02:17 PM, H. Nikolaus Schaller wrote: > > Hi, > > > >> Am 18.07.2017 um 13:59 schrieb Hans Verkuil : > >> > >> On 12/07/17 22:01, Sylwester Nawrocki wrote: > >>> Hi Hugues, > >>> > >>> On 07/03/2017 11:16 AM, Hug

Re: [PATCH v3 0/4] Broadcom STB S2/S3/S5 support for ARM and MIPS

2017-07-18 Thread Florian Fainelli
On 07/06/2017 03:22 PM, Florian Fainelli wrote: > Hi, > > This patch series adds support for S2/S3/S5 suspend/resume states on > ARM and MIPS based Broadcom STB SoCs. > > This was submitted a long time ago by Brian, and I am now picking this > up and trying to get this included with support for o

Re: [PATCH 07/14] proc/kcore: hide a harmless warning

2017-07-18 Thread Arnd Bergmann
On Fri, Jul 14, 2017 at 2:28 PM, Ard Biesheuvel wrote: > On 14 July 2017 at 10:25, Arnd Bergmann wrote: >> gcc warns when MODULES_VADDR/END is defined to the same value as >> VMALLOC_START/VMALLOC_END, e.g. on x86-32: >> >> fs/proc/kcore.c: In function ‘add_modules_range’: >> fs/proc/kcore.c:622:

Re: [PATCH v6 2/3] clk: gate: expose clk_gate_ops::is_enabled

2017-07-18 Thread Vladimir Zapolskiy
On 07/18/2017 10:53 AM, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > This patch exposes clk_gate_ops::is_enabled as functions > that can be directly called and assigned in places like this so > we don't need wrapper functions that do nothing besides forward > the call. > > Signe

Re: [PATCH 07/14] proc/kcore: hide a harmless warning

2017-07-18 Thread Ard Biesheuvel
On 18 July 2017 at 20:53, Arnd Bergmann wrote: > On Fri, Jul 14, 2017 at 2:28 PM, Ard Biesheuvel > wrote: >> On 14 July 2017 at 10:25, Arnd Bergmann wrote: >>> gcc warns when MODULES_VADDR/END is defined to the same value as >>> VMALLOC_START/VMALLOC_END, e.g. on x86-32: >>> >>> fs/proc/kcore.c:

Re: [PATCH 6/9] MIPS: BCM63XX: allow NULL clock for clk_get_rate

2017-07-18 Thread Florian Fainelli
On 07/18/2017 03:17 AM, Jonas Gorski wrote: > Make the behaviour of clk_get_rate consistent with common clk's > clk_get_rate by accepting NULL clocks as parameter. Some device > drivers rely on this, and will cause an OOPS otherwise. > > Fixes: e7300d04bd08 ("MIPS: BCM63xx: Add support for the Bro

Re: [PATCH 1/1] mm/slub.c: add a naive detection of double free or corruption

2017-07-18 Thread Alexander Popov
On 17.07.2017 22:11, Kees Cook wrote: > On Mon, Jul 17, 2017 at 12:01 PM, Alexander Popov > wrote: >> Hello Christopher, >> >> Thanks for your reply. >> >> On 17.07.2017 21:04, Christopher Lameter wrote: >>> On Mon, 17 Jul 2017, Matthew Wilcox wrote: >>> On Mon, Jul 17, 2017 at 07:45:07PM +0

Re: [PATCH v1 00/25] lib, rtc: Print rtc_time via %pt[dt][rv]

2017-07-18 Thread Mark Salyzyn
On 07/18/2017 10:50 AM, Joe Perches wrote: On Thu, 2017-06-08 at 16:47 +0300, Andy Shevchenko wrote: Recently I have noticed too many users of struct rtc_time that printing its content field by field. In this series I introduce %pt[dt][rv] specifier to make life a bit easier. Hey Andy. I just

Re: [PATCH] efifb: allow user to disable write combined mapping.

2017-07-18 Thread Linus Torvalds
On Tue, Jul 18, 2017 at 7:34 AM, Peter Jones wrote: > > Well, that's kind of amazing, given 3c004b4f7eab239e switched us /to/ > using ioremap_wc() for the exact same reason. I'm not against letting > the user force one way or the other if it helps, though it sure would be > nice to know why. It'

Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-18 Thread Andrew Lunn
> I know this looks boring, I do not particularly enjoy it myself, but I > think this is also important. I don't mind fixing the poking function as > well in the near future. It would be great if you do. It could be as simple as using phy_ethtool_get_eee() and phy_ethtool_set_eee(). Andrew

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-18 Thread Kani, Toshimitsu
On Tue, 2017-07-18 at 08:00 +0200, Borislav Petkov wrote: > On Mon, Jul 17, 2017 at 03:59:12PM -0600, Toshi Kani wrote: > > The ghes_edac driver was introduced in 2013 [1], but it has not > > been enabled by any distro yet.  This driver obtains error info > > from firmware interfaces, which are not

Re: [PATCH 1/4] rtc-lib: Add rtc_show_time(const char *prefix_msg)

2017-07-18 Thread Mark Salyzyn
On 07/18/2017 10:52 AM, Alexandre Belloni wrote: Hi, On 18/07/2017 at 10:25:23 -0700, Mark Salyzyn wrote: . . . Apart from using rtc_time_to_tm (and you should probably use rtc_time64_to_tm), none of this is actually related to the RTC subsystem. I feel like you should find another place to pu

Re: [PATCH] cgroup: Show control files in cgroup2 root after mount

2017-07-18 Thread Waiman Long
On 07/18/2017 03:51 PM, Tejun Heo wrote: > Hello, Waiman. > > On Tue, Jul 18, 2017 at 03:32:16PM -0400, Waiman Long wrote: >> It was found that when a cgroup2 filesystem was mounted, control >> files other than the base cgroup.* ones were not shown in the root >> directory. They were shown only af

Re: [PATCH 07/14] proc/kcore: hide a harmless warning

2017-07-18 Thread Arnd Bergmann
On Tue, Jul 18, 2017 at 9:55 PM, Ard Biesheuvel wrote: > On 18 July 2017 at 20:53, Arnd Bergmann wrote: >> On Fri, Jul 14, 2017 at 2:28 PM, Ard Biesheuvel >> wrote: >>> On 14 July 2017 at 10:25, Arnd Bergmann wrote: gcc warns when MODULES_VADDR/END is defined to the same value as VMAL

Re: [PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-07-18 Thread Greg Kroah-Hartman
On Tue, Jul 18, 2017 at 12:30:58PM -0700, Dmitry Torokhov wrote: > --- a/include/linux/sysfs.h > +++ b/include/linux/sysfs.h > @@ -282,6 +282,16 @@ int __compat_only_sysfs_link_entry_to_kobj(struct > kobject *kobj, > struct kobject *target_kobj, >

Re: [PATCH 1/1] mm/slub.c: add a naive detection of double free or corruption

2017-07-18 Thread Kees Cook
On Tue, Jul 18, 2017 at 12:56 PM, Alexander Popov wrote: > On 17.07.2017 22:11, Kees Cook wrote: >> On Mon, Jul 17, 2017 at 12:01 PM, Alexander Popov >> wrote: >>> Hello Christopher, >>> >>> Thanks for your reply. >>> >>> On 17.07.2017 21:04, Christopher Lameter wrote: On Mon, 17 Jul 2017,

Re: [PATCH 0/2] New bind/unbingd uevents

2017-07-18 Thread Greg Kroah-Hartman
On Tue, Jul 18, 2017 at 12:30:56PM -0700, Dmitry Torokhov wrote: > Hi Greg, > > I am resending the bind/unbind and devm_sysfs_create_group() patches, > as you requested. The new bind/unbind will allow triggering firmware > update through udev, and the new sysfs API will cut down on some > boilerpl

Re: [PATCH 07/14] proc/kcore: hide a harmless warning

2017-07-18 Thread Ard Biesheuvel
On 18 July 2017 at 21:01, Arnd Bergmann wrote: > On Tue, Jul 18, 2017 at 9:55 PM, Ard Biesheuvel > wrote: >> On 18 July 2017 at 20:53, Arnd Bergmann wrote: >>> On Fri, Jul 14, 2017 at 2:28 PM, Ard Biesheuvel >>> wrote: On 14 July 2017 at 10:25, Arnd Bergmann wrote: > gcc warns when MO

Re: [PATCH net-next 5/5] virtio-net: switch off offloads on demand if possible on XDP set

2017-07-18 Thread Michael S. Tsirkin
On Mon, Jul 17, 2017 at 08:44:01PM +0800, Jason Wang wrote: > Current XDP implementation want guest offloads feature to be disabled s/want/wants/ > on qemu cli. on the device. > This is inconvenient and means guest can't benefit from > offloads if XDP is not used. This patch tries to address th

Re: [PATCH 1/4] rtc-lib: Add rtc_show_time(const char *prefix_msg)

2017-07-18 Thread Mark Salyzyn
On 07/18/2017 01:00 PM, Mark Salyzyn wrote: On 07/18/2017 10:52 AM, Alexandre Belloni wrote: Hi, On 18/07/2017 at 10:25:23 -0700, Mark Salyzyn wrote: . . . Apart from using rtc_time_to_tm (and you should probably use rtc_time64_to_tm), none of this is actually related to the RTC subsystem. I

[tip:irq/urgent] irqchip/gic/realview: Drop unnecessary static

2017-07-18 Thread tip-bot for Julia Lawall
Commit-ID: 512f9e790897e84d5b802436768508ee4628fc16 Gitweb: http://git.kernel.org/tip/512f9e790897e84d5b802436768508ee4628fc16 Author: Julia Lawall AuthorDate: Sat, 15 Jul 2017 22:07:40 +0200 Committer: Thomas Gleixner CommitDate: Tue, 18 Jul 2017 21:59:22 +0200 irqchip/gic/realview: D

[tip:irq/urgent] irqchip/mips-cpu: Drop unnecessary static

2017-07-18 Thread tip-bot for Julia Lawall
Commit-ID: 82faeffa7e130e2ae43aa681a34c02d56dabd177 Gitweb: http://git.kernel.org/tip/82faeffa7e130e2ae43aa681a34c02d56dabd177 Author: Julia Lawall AuthorDate: Sat, 15 Jul 2017 22:07:41 +0200 Committer: Thomas Gleixner CommitDate: Tue, 18 Jul 2017 21:59:22 +0200 irqchip/mips-cpu: Drop

Re: [PATCH v5 2/5] tick: Add freeze timer events

2017-07-18 Thread dbasehore .
On Mon, Jul 17, 2017 at 11:40 PM, Thomas Gleixner wrote: > On Mon, 17 Jul 2017, dbasehore . wrote: >> On Mon, Jul 17, 2017 at 6:33 PM, Rafael J. Wysocki wrote: >> I could make a patch to try it out. I would probably add a flag to rtc >> timers to indicate whether it wakes the system (default true

[tip:irq/urgent] irqchip/digicolor: Drop unnecessary static

2017-07-18 Thread tip-bot for Julia Lawall
Commit-ID: acc80c39929b9f2ff8b45fcfe103385a3e45c1a7 Gitweb: http://git.kernel.org/tip/acc80c39929b9f2ff8b45fcfe103385a3e45c1a7 Author: Julia Lawall AuthorDate: Sat, 15 Jul 2017 22:07:45 +0200 Committer: Thomas Gleixner CommitDate: Tue, 18 Jul 2017 21:59:23 +0200 irqchip/digicolor: Drop

Re: bug? dwc2: insufficient fifo memory

2017-07-18 Thread John Stultz
On Mon, Jun 5, 2017 at 10:50 AM, John Youn wrote: > On 6/5/2017 5:32 AM, Minas Harutyunyan wrote: >> On 6/2/2017 10:20 PM, John Stultz wrote: >>> On Mon, Apr 17, 2017 at 3:36 PM, John Stultz wrote: On Fri, Feb 24, 2017 at 2:46 PM, John Stultz wrote: > Hey John, > So after th

Re: [PATCH] cgroup: Show control files in cgroup2 root after mount

2017-07-18 Thread Tejun Heo
Hello, On Tue, Jul 18, 2017 at 04:00:45PM -0400, Waiman Long wrote: > From my own debugging, the controller files (e.g. the debug controller) > were indirectly populated by the rebind_subsystems() call. > > [1.628103] css_populate_dir: init subsystem debug ... > [1.654975] cgroup_apply_c

Re: [PATCH 6/8] drm: Allow DSI devices to be registered before the host registers.

2017-07-18 Thread Eric Anholt
Archit Taneja writes: > On 07/15/2017 04:28 AM, Eric Anholt wrote: >> Archit Taneja writes: >> >>> On 06/28/2017 01:28 AM, Eric Anholt wrote: When a mipi_dsi_host is registered, the DT is walked to find any child nodes with compatible strings. Those get registered as DSI devices, >>>

Re: [PATCH net-next 0/5] refine virtio-net XDP

2017-07-18 Thread Michael S. Tsirkin
On Mon, Jul 17, 2017 at 08:43:56PM +0800, Jason Wang wrote: > Hi: > > This series brings two optimizations for virtio-net XDP: > > - avoid reset during XDP set > - turn off offloads on demand I'm glad to see this take shape - this can be extended to optimize virtnet_get_headroom so we don't wast

Re: [PATCH] lib/strscpy: avoid KASAN false positive

2017-07-18 Thread Andrey Ryabinin
On 07/18/2017 08:22 PM, Linus Torvalds wrote: > On Tue, Jul 18, 2017 at 10:15 AM, Andrey Ryabinin > wrote: >> >> + /* >> +* KASAN won't be happy about word-at-a-time >> +* optimistic reads, so let's avoid them. >> +*/ >> + if (IS_ENABLED(CONFIG_KASAN)) >> +

Re: [PATCH 1/3] ACPI / blacklist: add acpi_match_oemlist() interface

2017-07-18 Thread Kani, Toshimitsu
On Tue, 2017-07-18 at 21:32 +0200, Borislav Petkov wrote: > On Tue, Jul 18, 2017 at 06:49:51PM +, Kani, Toshimitsu wrote: > > ghes_edac uses this structure as a while-list, so the term backlist > > is misleading. > > So this matching function gets both blacklists and whitelists. No > wonder it

Re: [PATCH v6 3/3] clk: stm32h7: Add stm32h743 clock driver

2017-07-18 Thread Vladimir Zapolskiy
Hello Gabriel, On 07/18/2017 10:53 AM, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > This patch enables clocks for STM32H743 boards. > > Signed-off-by: Gabriel Fernandez > > for MFD changes: > Acked-by: Lee Jones > > for DT-Bindings > Acked-by: Rob Herring > --- > .../devi

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-18 Thread Joe Lawrence
On Mon, Jul 17, 2017 at 05:29:41PM +0200, Miroslav Benes wrote: > > On Wed, 28 Jun 2017, Joe Lawrence wrote: > > > +Brief API summary > > +- > > + [ ... snip ...] > > +* klp_shadow_detach() - detach and free all <*, num> shadow variables > > + - find and remove any <*, num> refere

Re: [PATCH 07/14] proc/kcore: hide a harmless warning

2017-07-18 Thread Arnd Bergmann
On Tue, Jul 18, 2017 at 10:07 PM, Ard Biesheuvel wrote: > On 18 July 2017 at 21:01, Arnd Bergmann wrote: >> On Tue, Jul 18, 2017 at 9:55 PM, Ard Biesheuvel > > Ah, now it makes sense. I was a bit surprised that > -Wtautological-compare complains about symbolic constants that resolve > to the same

Re: [PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-07-18 Thread Dmitry Torokhov
On Tue, Jul 18, 2017 at 10:03:36PM +0200, Greg Kroah-Hartman wrote: > On Tue, Jul 18, 2017 at 12:30:58PM -0700, Dmitry Torokhov wrote: > > --- a/include/linux/sysfs.h > > +++ b/include/linux/sysfs.h > > @@ -282,6 +282,16 @@ int __compat_only_sysfs_link_entry_to_kobj(struct > > kobject *kobj, > >

Re: [PATCH] lib/strscpy: avoid KASAN false positive

2017-07-18 Thread Linus Torvalds
On Tue, Jul 18, 2017 at 1:15 PM, Andrey Ryabinin wrote: > > No, it does warn about valid users. The report that Dave posted wasn't about > wrong strscpy() usage > it was about reading 8-bytes from 5-bytes source string. It wasn't about > buggy 'count' at all. > So KASAN will warn for perfectly v

[PATCH net-next] net: dsa: unexport dsa_is_port_initialized

2017-07-18 Thread Vivien Didelot
The dsa_is_port_initialized helper is only used by dsa_switch_resume and dsa_switch_suspend, if CONFIG_PM_SLEEP is enabled. Make it static to dsa.c. Signed-off-by: Vivien Didelot --- include/net/dsa.h | 5 - net/dsa/dsa.c | 5 + 2 files changed, 5 insertions(+), 5 deletions(-) diff

Re: [PATCH] cgroup: Show control files in cgroup2 root after mount

2017-07-18 Thread Waiman Long
On 07/18/2017 04:12 PM, Tejun Heo wrote: > Hello, > > On Tue, Jul 18, 2017 at 04:00:45PM -0400, Waiman Long wrote: >> From my own debugging, the controller files (e.g. the debug controller) >> were indirectly populated by the rebind_subsystems() call. >> >> [1.628103] css_populate_dir: init sub

Re: [PATCH] efifb: allow user to disable write combined mapping.

2017-07-18 Thread Dave Airlie
On 19 July 2017 at 05:57, Linus Torvalds wrote: > On Tue, Jul 18, 2017 at 7:34 AM, Peter Jones wrote: >> >> Well, that's kind of amazing, given 3c004b4f7eab239e switched us /to/ >> using ioremap_wc() for the exact same reason. I'm not against letting >> the user force one way or the other if it

[PATCH] qlcnic: remove unnecessary static in qlcnic_dump_fw()

2017-07-18 Thread Gustavo A. R. Silva
Remove unnecessary static on local variable fw_dump_ops. Such variable is initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the object file size. This issue was detected using Coccinelle and the following semantic pat

Re: [PATCH v2] drm/i915: Consistently use enum pipe for PCH transcoders

2017-07-18 Thread Matthias Kaehlcke
Hi Daniel, El Tue, Jul 18, 2017 at 08:39:50AM +0200 Daniel Vetter ha dit: > On Mon, Jul 17, 2017 at 11:14:03AM -0700, Matthias Kaehlcke wrote: > > The current code uses in some instances enum transcoder for PCH > > transcoders and enum pipe in others. This is error prone and clang > > raises warn

Re: [PATCH] cgroup: Show control files in cgroup2 root after mount

2017-07-18 Thread Tejun Heo
Hello, On Tue, Jul 18, 2017 at 04:29:40PM -0400, Waiman Long wrote: > I think the kernfs_activate() call is for the cgroup1 mount of debug kernfs_activate() there is for any files which are created while a controller moves between hierarchies, so, yeah, during boot, this is where the root files f

Re: [PATCH] ASoC: sgtl5000: add AVC configuration controls

2017-07-18 Thread Richard Leitner
On 07/18/2017 03:55 PM, Mark Brown wrote: On Tue, Jun 06, 2017 at 02:04:22PM +0200, Richard Leitner wrote: For the configuration of the automatic volume control block (AVC), which reduces loud signals and amplifies low level signals for easier listening, following controls are added: This doe

Re: [PATCH] oom_reaper: close race without using oom_lock

2017-07-18 Thread Tetsuo Handa
Michal Hocko wrote: > On Tue 18-07-17 23:06:50, Tetsuo Handa wrote: > > Commit e2fe14564d3316d1 ("oom_reaper: close race with exiting task") > > guarded whole OOM reaping operations using oom_lock. But there was no > > need to guard whole operations. We needed to guard only setting of > > MMF_OOM_R

4.12.0: igb: transmit queue 7 timed out

2017-07-18 Thread Justin Piszcz
Hello, Kernel: 4.12.0 Arch: x86_64 What causes this issue? [199141.434449] NETDEV WATCHDOG: eth1 (igb): transmit queue 7 timed out [199141.434501] [ cut here ] [199141.434515] WARNING: CPU: 10 PID: 0 at net/sched/sch_generic.c:316 dev_watchdog+0x212/0x220 [199141.434528]

[PATCH] wireless: airo: remove unnecessary static in writerids()

2017-07-18 Thread Gustavo A. R. Silva
Remove unnecessary static on local function pointer _writer_. Such pointer is initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the object file size. This issue was detected using Coccinelle and the following semantic

[PATCH] rtlwifi: remove useless code

2017-07-18 Thread Gustavo A. R. Silva
Remove useless local variables last_read_point and last_txw_point and the code related. Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c b/dri

Re: [PATCH] liquidio: lio_vf_main: remove unnecessary static in setup_io_queues()

2017-07-18 Thread Felix Manlunas
On Tue, Jul 18, 2017 at 03:50:15PM -0500, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variables cpu_id_modulus and cpu_id. > Such variables are initialized before being used, on every execution > path throughout the function. The static has no benefit and, removing > it reduces

[PATCH v5 1/6] drm/vc4: Avoid using vrefresh==0 mode in DSI htotal math.

2017-07-18 Thread Eric Anholt
The incoming mode might have a missing vrefresh field if it came from drmModeSetCrtc(), which the kernel is supposed to calculate using drm_mode_vrefresh(). We could either use that or the adjusted_mode's original vrefresh value. However, we can maintain a more exact vrefresh value (not just the

[PATCH v5 3/6] drm/vc4: Delay DSI host registration until the panel has probed.

2017-07-18 Thread Eric Anholt
The vc4 driver was unusual in that it was delaying the panel lookup until the attach step, while most DSI hosts will -EPROBE_DEFER until they get a panel. v2: Drop a debug message that slipped in. Signed-off-by: Eric Anholt Reviewed-by: Andrzej Hajda (v1) --- drivers/gpu/drm/vc4/vc4_dsi.c | 38

[PATCH v5 6/6] drm/panel: Add support for the Raspberry Pi 7" Touchscreen.

2017-07-18 Thread Eric Anholt
This driver communicates with the Atmel microcontroller for sequencing the poweron of the TC358762 DSI-DPI bridge and controlling the backlight PWM. v2: Set the same default orientation as the closed source firmware used, which is the best for viewing angle. v3: Rewrite as an i2c client driver

[PATCH v5 2/6] drm/bridge: Add a devm_ allocator for panel bridge.

2017-07-18 Thread Eric Anholt
This will let drivers reduce the error cleanup they need, in particular the "is_panel_bridge" flag. v2: Slight cleanup of remove function by Andrzej Signed-off-by: Eric Anholt Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/bridge/panel.c | 30 ++ include/drm/drm_bri

Re: [PATCH] liquidio: lio_main: remove unnecessary static in setup_io_queues()

2017-07-18 Thread Felix Manlunas
On Tue, Jul 18, 2017 at 03:53:48PM -0500, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variables cpu_id_modulus and cpu_id. > Such variables are initialized before being used, on every execution > path throughout the function. The static has no benefit and, removing > it reduces

[PATCH v5 4/6] drm: Allow DSI devices to be registered before the host registers.

2017-07-18 Thread Eric Anholt
When a mipi_dsi_host is registered, the DT is walked to find any child nodes with compatible strings. Those get registered as DSI devices, and most DSI panel drivers are mipi_dsi_drivers that attach to those nodes. There is one special case currently, the adv7533 bridge, where the bridge probes o

[PATCH v5 5/6] dt-bindings: Document the Raspberry Pi Touchscreen nodes.

2017-07-18 Thread Eric Anholt
This doesn't yet cover input, but the driver does get the display working when the firmware is disabled from talking to our I2C lines. Signed-off-by: Eric Anholt Acked-by: Rob Herring --- .../panel/raspberrypi,7inch-touchscreen.txt| 49 ++ 1 file changed, 49 insertio

Re: [PATCH] cgroup: Show control files in cgroup2 root after mount

2017-07-18 Thread Tejun Heo
On Tue, Jul 18, 2017 at 04:50:10PM -0400, Tejun Heo wrote: > Heh, I'm really confused. If I do the same thing, I get the following > result which makes sense as the files would be activated in > cgroup_apply_cftypes() when the debug controller is registered during > boot. > > # mkdir /cgroup2 >

[PATCH] net: tulip: remove useless code in tulip_init_one()

2017-07-18 Thread Gustavo A. R. Silva
Remove useless local variable multiport_cnt and the code related. Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/dec/tulip/tulip_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/dec/tulip/tulip_core.c b/drivers/net/ethernet/dec/tulip/tulip_core.c ind

Re: [RFC PATCH v12 3/4] Linux Random Number Generator

2017-07-18 Thread Theodore Ts'o
On Tue, Jul 18, 2017 at 04:37:11PM +0200, Stephan Müller wrote: > > > > > I have stated the core concerns I have with random.c in [1]. To remedy > > > these core concerns, major changes to random.c are needed. With the past > > > experience, I would doubt that I get the changes into random.c. > >

[PATCH] net: ethernet: mediatek: remove useless code in mtk_poll_tx()

2017-07-18 Thread Gustavo A. R. Silva
Remove useless local variable _condition_ and the code related. Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/

[PATCH] liquidio: lio_vf_main: remove unnecessary static in setup_io_queues()

2017-07-18 Thread Gustavo A. R. Silva
Remove unnecessary static on local variables cpu_id_modulus and cpu_id. Such variables are initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the object file size. This issue was detected using Coccinelle and the follo

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-18 Thread Mauro Carvalho Chehab
Em Tue, 18 Jul 2017 19:58:54 + "Kani, Toshimitsu" escreveu: > On Tue, 2017-07-18 at 08:00 +0200, Borislav Petkov wrote: > > On Mon, Jul 17, 2017 at 03:59:12PM -0600, Toshi Kani wrote: > > > The ghes_edac driver was introduced in 2013 [1], but it has not > > > been enabled by any distro yet.

Re: [PATCH 0/5] earlycon hang under some conditions

2017-07-18 Thread Doug Anderson
Hi, On Tue, Jul 18, 2017 at 10:51 AM, Brian Norris wrote: > Hi Jeffy, > > On Tue, Jul 18, 2017 at 02:02:53PM +0800, Jeffy Chen wrote: >> I was testing earlycon with 8250 dw serial console. And it hangs in >> these cases: >> 1/ kernel hang when calling early write function after free_initmem: >> a

[PATCH] liquidio: lio_main: remove unnecessary static in setup_io_queues()

2017-07-18 Thread Gustavo A. R. Silva
Remove unnecessary static on local variables cpu_id_modulus and cpu_id. Such variables are initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the object file size. This issue was detected using Coccinelle and the follo

[PATCH v2 0/4] PM / Suspend: Print wall time

2017-07-18 Thread Mark Salyzyn
Helpful for post-mortem analysis to synchronize CLOCK_MONOTONIC kernel logs with CLOCK_REALTIME user space logs. Post-mortem analysis for Battery and Power diagnosis. Improved reporting of suspension times against the rtc wallclock, which is persistent even at the lowest power management states.

<    4   5   6   7   8   9   10   11   12   13   >