Re: [PATCH 1/5] arm64: dts: Add basic DT to support Spreadtrum's SP9860G

2017-02-16 Thread Chunyan Zhang
On 二, 2月 14, 2017 at 03:57:43下午 +, Mark Rutland wrote: > Hi, > > On Tue, Feb 14, 2017 at 05:19:08PM +0800, Chunyan Zhang wrote: > > > + timer { > > + compatible = "arm,armv8-timer"; > > + interrupts = > +| IRQ_TYPE_LEVEL_LOW)>, > > +

Re: [PATCH 3/3] mm, vmscan: Prevent kswapd sleeping prematurely due to mismatched classzone_idx

2017-02-16 Thread Mel Gorman
On Thu, Feb 16, 2017 at 02:23:08PM +0800, Hillf Danton wrote: > On February 15, 2017 5:23 PM Mel Gorman wrote: > > */ > > static int kswapd(void *p) > > { > > - unsigned int alloc_order, reclaim_order, classzone_idx; > > + unsigned int alloc_order, reclaim_order; > > + unsigned int class

[PATCH] net: oki-semi: pch_gbe: use new api ethtool_{get|set}_link_ksettings

2017-02-16 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. As I don't have the hardware, I'd be very pleased if someone may test this patch. Signed-off-by: Philippe Reynes --- .../ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c| 58 +

[PATCH 0/2] powerpc: kretprobe updates

2017-02-16 Thread Naveen N. Rao
I am posting the powerpc bits in the same thread so as to keep these changes together. I am not sure how this should be taken upstream as there are atleast three different trees involved: one for the core kprobes infrastructure, one for powerpc and one for perf. Thanks, Naveen Naveen N. Rao (2):

[PATCH 2/2] perf: powerpc: choose LEP with kretprobes

2017-02-16 Thread Naveen N. Rao
perf now uses an offset from _text/_stext for kretprobes, rather than the actual function name. As such, let's choose the LEP for powerpc ABIv2 so as to ensure the probe gets hit. Signed-off-by: Naveen N. Rao --- tools/perf/arch/powerpc/util/sym-handling.c | 5 + 1 file changed, 1 insertion(

[PATCH 1/2] powerpc: kretprobes: override default function entry offset

2017-02-16 Thread Naveen N. Rao
With ABIv2, we offset 8 bytes into a function to get at the local entry point. Signed-off-by: Naveen N. Rao --- arch/powerpc/kernel/kprobes.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c index fce05a38851c..331751701fe

Re: [PATCH 3/3] mm, vmscan: Prevent kswapd sleeping prematurely due to mismatched classzone_idx

2017-02-16 Thread Hillf Danton
On February 16, 2017 4:11 PM Mel Gorman wrote: > On Thu, Feb 16, 2017 at 02:23:08PM +0800, Hillf Danton wrote: > > On February 15, 2017 5:23 PM Mel Gorman wrote: > > > */ > > > static int kswapd(void *p) > > > { > > > - unsigned int alloc_order, reclaim_order, classzone_idx; > > > + unsigned i

Re: [PATCH 3.16 060/306] [media] dvb-usb: avoid link error with dib3000m{b,c|

2017-02-16 Thread Arnd Bergmann
On Wed, Feb 15, 2017 at 11:41 PM, Ben Hutchings wrote: > 3.16.40-rc1 review patch. If anyone has any objections, please let me know. > > From: Arnd Bergmann > > commit d0fe85e95f56a01a49e4893aa26263e8aee67eef upstream. ... > As this is a rather obscure bug, there is no need for backports. > > Fi

Re: [lkp-robot] [irqdomain] 601b26a867: BUG:kernel_hang_in_boot_stage

2017-02-16 Thread Thomas Gleixner
On Thu, 16 Feb 2017, kernel test robot wrote: > FYI, we noticed the following commit: > > commit: 601b26a867a514b6d43e85a6b0dad937a41feed6 ("irqdomain: Avoid > activating interrupts more than once") > url: > https://github.com/0day-ci/linux/commits/Marc-Zyngier/irqdomain-Avoid-activating-interru

Re: [PATCH 30/37] dt-bindings: PCI: dra7xx: Add dt bindings to enable legacy mode

2017-02-16 Thread Kishon Vijay Abraham I
Hi, On Thursday 19 January 2017 03:16 AM, Rob Herring wrote: > On Thu, Jan 12, 2017 at 03:56:19PM +0530, Kishon Vijay Abraham I wrote: >> Update device tree binding documentation of TI's dra7xx PCI >> controller to include property for enabling legacy mode. >> >> Signed-off-by: Kishon Vijay Abraha

Re: [RT] lockdep munching nr_list_entries like popcorn

2017-02-16 Thread Thomas Gleixner
On Thu, 16 Feb 2017, Mike Galbraith wrote: > 4.9.10-rt6-virgin on 72 core +SMT box. > > Below is 1 line per minute, box idling along daintily nibbling, I fire > up a parallel kbuild loop at 40465, and box gobbles greedily. > > I have entries bumped to 128k, and chain bits to 18 so box will get >

Re: [PATCH V2 2/2] brcmfmac: don't warn user about NVRAM if fallback to platform one succeeds

2017-02-16 Thread Arend Van Spriel
On 16-2-2017 8:26, Rafał Miłecki wrote: > From: Rafał Miłecki > > Failing to load NVRAM file isn't critical if we manage to get platform > one in the fallback path. It means warnings like: > [ 10.801506] brcmfmac :01:00.0: Direct firmware load for > brcm/brcmfmac43602-pcie.txt failed with

Re: [PATCH v3 2/2] sched/rt: Remove unnecessary condition in push_rt_task()

2017-02-16 Thread Juri Lelli
Hi, On 16/02/17 16:15, byungchul.park wrote: > > -Original Message- > > From: Steven Rostedt [mailto:rost...@goodmis.org] > > Sent: Thursday, February 16, 2017 11:46 AM > > To: Byungchul Park > > Cc: pet...@infradead.org; mi...@kernel.org; linux-kernel@vger.kernel.org; > > juri.le...@gmail

Re: swap_cluster_info lockdep splat

2017-02-16 Thread Huang, Ying
Hi, Minchan, Minchan Kim writes: > Hi Huang, > > With changing from bit lock to spinlock of swap_cluster_info, my zram > test failed with below message. It seems nested lock problem so need to > play with lockdep. Sorry, I could not reproduce the warning in my tests. Could you try the patches

Re: [PATCH v2 3/3] [media] dvbsky: MyGica T230C support

2017-02-16 Thread Antti Palosaari
Hello On 02/16/2017 01:31 AM, Stefan Bruens wrote: Hi Antti, first thanks for for the review. Note the t230c_attach is mostly a copy of the t330_attach (which is very similar to the t680c_attach), so any of your comments should probably applied to the other attach functions to have a common cod

Re: [RT] lockdep munching nr_list_entries like popcorn

2017-02-16 Thread Mike Galbraith
On Thu, 2017-02-16 at 09:37 +0100, Thomas Gleixner wrote: > On Thu, 16 Feb 2017, Mike Galbraith wrote: > ... > > swapvec_lock? Oodles of 'em? Nope. > > Well, it's a per cpu lock and the lru_cache_add() variants might be called > from a gazillion of different call chains, but yes, it does not ma

[PATCH v3 2/6] ARM: dts: armada-xp-98dx3236: combine dfx server nodes

2017-02-16 Thread Chris Packham
Rather than having a separate node for the dfx server add a reg property to the parent node. This give some compatibility with the Marvell supplied SDK. As no upstream driver currently exists for this block and support for this SoC is still quite fresh in the kernel it should not be necessary to r

[PATCH v3 1/6] ARM: dts: Fix typo in armada-xp-98dx4251

2017-02-16 Thread Chris Packham
The compatible should be 98dx4251 not 98dx4521. Signed-off-by: Chris Packham --- Notes: Changes in v2: - new Changes in v3: - none arch/arm/boot/dts/armada-xp-98dx4251.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/armada-xp-98dx4251.

[PATCH v3 5/6] ARM: mvebu: Add driver for mv98dx3236-soc-id

2017-02-16 Thread Chris Packham
The DFX server on the 98dx3236 and compatible SoCs has an ID register that provides revision information that the PCI based ID register doesn't have. Use this if it's available. Signed-off-by: Chris Packham --- Notes: Changes in v2: - none Changes in v3: - split from dts changes

[PATCH v3 6/6] ARM: dts: mvebu: Move mv98dx3236 clock bindings

2017-02-16 Thread Chris Packham
Previously the coreclk binding for the 98dx3236 SoC was inherited from the armada-370/xp. This block is present in as much as it is possible to read from the register location without causing any harm. However the actual sampled at reset values are reflected in the DFX block. Moving the binding to

[PATCH v3 4/6] ARM: dts: mvebu: Add binding for mv98dx3236-soc-id

2017-02-16 Thread Chris Packham
The DFX server on the 98dx3236 and compatible SoCs has an ID register. Add documentation and a binding for this. Signed-off-by: Chris Packham --- Notes: Changes in v3: - new, split from driver .../devicetree/bindings/arm/marvell/mv98dx3236-soc-id.txt | 14 ++ arch/arm/boot

[PATCH v2 0/6] Updates for Marvell Switch SoCs

2017-02-16 Thread Chris Packham
Shortly after I posted my last series I got access to a more recent Marvell SDK which had some device tree support for the switch SoCs I'd been wanting. It was still based on an older kernel but it was a huge improvement over what came before. Patch 1/6 is a typo I noticed after my initial series

[PATCH v3 3/6] ARM: dts: Use armada-370-xp as a base for armada-xp-98dx3236

2017-02-16 Thread Chris Packham
The Marvell datasheets refer to the integrated CPU as "Armada-XP". In reality there are a number of differences to the actual Armada-XP so rather than including armada-xp.dtsi and disabling many of the IP blocks. Include armada-370-xp.dtsi and add the required nodes. Signed-off-by: Chris Packham

Re: [PATCH v2 3/3] [media] dvbsky: MyGica T230C support

2017-02-16 Thread Antti Palosaari
On 02/16/2017 10:48 AM, Antti Palosaari wrote: On 02/16/2017 01:31 AM, Stefan Bruens wrote: +/* attach demod */ +memset(&si2168_config, 0, sizeof(si2168_config)); prefer sizeof dst You mean sizeof(struct si2168_config) ? yeah. See chapter 14 from kernel coding style documentation

Re: [PATCH 2/3] usb: dwc3: use BIT() macro where possible

2017-02-16 Thread Felipe Balbi
Hi, Roger Quadros writes: > On 15/02/17 13:44, Felipe Balbi wrote: >> >> Hi, >> >> Roger Quadros writes: >>> To avoid checkpatch warnings with new patches let's >>> start using the BIT() macro wherever possible. >>> >>> Signed-off-by: Roger Quadros >>> --- >>> drivers/usb/dwc3/core.h |

ARM: How to use reserved-memory in devicetree

2017-02-16 Thread Cyberman Wu
I'm using Xilinx Zynq-7000 platform and shared a region of DDR between ARM and FPGA. It seems kernel parameter 'memmap=nn[KMG]$ss[KMG]' doesn't implemented under ARM platform. I'm trying to use reserved-memory node of devicetree, but reserved memory in that way can't be accessed using mmap("/dev/me

Re: [RT] lockdep munching nr_list_entries like popcorn

2017-02-16 Thread Thomas Gleixner
On Thu, 16 Feb 2017, Mike Galbraith wrote: > On Thu, 2017-02-16 at 09:37 +0100, Thomas Gleixner wrote: > > On Thu, 16 Feb 2017, Mike Galbraith wrote: > > > ... > > > swapvec_lock? Oodles of 'em? Nope. > > > > Well, it's a per cpu lock and the lru_cache_add() variants might be called > > from a

[PATCH 0/2] IB/hns: Fine-tuning for two function implementations

2017-02-16 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 16 Feb 2017 09:55:43 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use kmalloc_array() in hns_roce_cmd_use_events() Use kcalloc() in hns_roce_buddy_init() drivers/infiniband/hw/hns/hns_roce_cmd.c

[PATCH 1/2] IB/hns: Use kmalloc_array() in hns_roce_cmd_use_events()

2017-02-16 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 16 Feb 2017 08:50:11 +0100 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle s

Re: [PATCH V6 4/5] LPC: Support the device-tree LPC host on Hip06/Hip07

2017-02-16 Thread zhichang.yuan
Hi, Alex, On 2017/2/15 19:53, Alexander Graf wrote: > > > On 15/02/2017 12:35, zhichang.yuan wrote: >> Hi, Alex, >> >> >> On 2017/2/14 21:29, Alexander Graf wrote: >>> >>> >>> On 13/02/2017 15:39, zhichang.yuan wrote: Hi, Alex, Thanks for your review! John had replied mo

[PATCH 2/2] IB/hns: Use kcalloc() in hns_roce_buddy_init()

2017-02-16 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 16 Feb 2017 09:30:55 +0100 * Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "kcalloc". This issue was detected by using the Coccinelle software.

[PATCH] net: mvneta: make mvneta_eth_tool_ops static

2017-02-16 Thread Jisheng Zhang
The mvneta_eth_tool_ops is only used internally in mvneta driver, so make it static. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mv

Re: [PATCH v4 3/3] PCI: imx6: Add code to support i.MX7D

2017-02-16 Thread Lucas Stach
Am Mittwoch, den 15.02.2017, 11:17 -0600 schrieb Rob Herring: > On Tue, Feb 07, 2017 at 07:50:27AM -0800, Andrey Smirnov wrote: > > Add various bits of code needed to support i.MX7D variant of the IP. > > > > Cc: yurov...@gmail.com > > Cc: Lucas Stach > > Cc: Bjorn Helgaas > > Cc: Rob Herring >

Re: [PATCH V2 2/2] brcmfmac: don't warn user about NVRAM if fallback to platform one succeeds

2017-02-16 Thread Arend Van Spriel
On 16-2-2017 10:04, Rafał Miłecki wrote: > On 2017-02-16 09:38, Arend Van Spriel wrote: >> On 16-2-2017 8:26, Rafał Miłecki wrote: >>> From: Rafał Miłecki >>> >>> Failing to load NVRAM file isn't critical if we manage to get platform >>> one in the fallback path. It means warnings like: >>> [ 10

Re: [PATCH v4 3/3] PCI: imx6: Add code to support i.MX7D

2017-02-16 Thread Lucas Stach
Am Mittwoch, den 15.02.2017, 15:57 -0600 schrieb Bjorn Helgaas: > On Wed, Feb 15, 2017 at 03:26:24PM -0600, Rob Herring wrote: > > On Wed, Feb 15, 2017 at 11:38:50AM -0600, Bjorn Helgaas wrote: > > > On Wed, Feb 15, 2017 at 11:17:00AM -0600, Rob Herring wrote: > > > > On Tue, Feb 07, 2017 at 07:50:

[PATCH 1/4] Documentation: w1_therm: clearly state about binary value for precision

2017-02-16 Thread Mariusz Bialonczyk
Signed-off-by: Mariusz Bialonczyk --- Documentation/w1/slaves/w1_therm | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/w1/slaves/w1_therm b/Documentation/w1/slaves/w1_therm index d1f93af..e10cd91 100644 --- a/Documentation/w1/slaves/w1_therm +++ b/Documentation/w1/slaves/w1_ther

[PATCH 2/4] w1: add missing DS2413 documentation

2017-02-16 Thread Mariusz Bialonczyk
Signed-off-by: Mariusz Bialonczyk --- Documentation/w1/slaves/00-INDEX | 2 ++ Documentation/w1/slaves/w1_ds2413 | 50 +++ 2 files changed, 52 insertions(+) create mode 100644 Documentation/w1/slaves/w1_ds2413 diff --git a/Documentation/w1/slaves/00-INDEX b

[PATCH 4/4] w1: add documentation for w1_ds2438

2017-02-16 Thread Mariusz Bialonczyk
Signed-off-by: Mariusz Bialonczyk --- Documentation/w1/slaves/00-INDEX | 2 ++ Documentation/w1/slaves/w1_ds2438 | 63 +++ 2 files changed, 65 insertions(+) create mode 100644 Documentation/w1/slaves/w1_ds2438 diff --git a/Documentation/w1/slaves/00-INDEX b

[PATCH 3/4] w1: add support for DS2438 Smart Battery Monitor

2017-02-16 Thread Mariusz Bialonczyk
Signed-off-by: Mariusz Bialonczyk --- drivers/w1/slaves/Kconfig | 6 + drivers/w1/slaves/Makefile| 1 + drivers/w1/slaves/w1_ds2438.c | 372 ++ drivers/w1/w1_family.h| 1 + 4 files changed, 380 insertions(+) create mode 100644 drivers

Re: [PATCH 1/2] pwm: loongson1: Add PWM driver for Loongson1 SoC

2017-02-16 Thread Marcin Nowakowski
Hi Yang, On 15.02.2017 14:09, Yang Ling wrote: + tmp = (unsigned long long)clk_get_rate(pc->clk) * period_ns; + do_div(tmp, 10); NSEC_PER_SEC ? + period = tmp; + + tmp = (unsigned long long)period * duty_ns; + do_div(tmp, period_ns); + duty = peri

Re: [PATCH v2 0/6] Move dell-led to drivers/platform/x86

2017-02-16 Thread Michał Kępień
> On Wed, Feb 15, 2017 at 9:54 PM, Michał Kępień wrote: > > Alex, > > > >> I tested the patches with the following setup. Please note I tested > >> the microphone mute led by GUI, as the hotkey does not work on this > >> system. > > > > Thank you for taking the time to test this series, it is appr

Re: [RT] lockdep munching nr_list_entries like popcorn

2017-02-16 Thread Mike Galbraith
On Thu, 2017-02-16 at 10:01 +0100, Thomas Gleixner wrote: > On Thu, 16 Feb 2017, Mike Galbraith wrote: > > > On Thu, 2017-02-16 at 09:37 +0100, Thomas Gleixner wrote: > > > On Thu, 16 Feb 2017, Mike Galbraith wrote: > > > > > ... > > > > swapvec_lock? Oodles of 'em? Nope. > > > > > > Well, it'

Re: drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c:58:6: error: redefinition of 'brcmf_debugfs_init'

2017-02-16 Thread Kalle Valo
(Adding linux-wireless) Randy Dunlap writes: > On 02/07/17 02:02, kbuild test robot wrote: >> Hi Kalle, >> >> FYI, the error/warning still remains. >> >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> master >> head: 8b1b41ee74f9712c355d66dc105bbea663ae0afd >>

Re: [PATCH 3/3] mm, vmscan: Prevent kswapd sleeping prematurely due to mismatched classzone_idx

2017-02-16 Thread Mel Gorman
On Thu, Feb 16, 2017 at 04:21:04PM +0800, Hillf Danton wrote: > > On February 16, 2017 4:11 PM Mel Gorman wrote: > > On Thu, Feb 16, 2017 at 02:23:08PM +0800, Hillf Danton wrote: > > > On February 15, 2017 5:23 PM Mel Gorman wrote: > > > > */ > > > > static int kswapd(void *p) > > > > { > > >

[PATCH] KVM: x86: remove code for lazy FPU handling

2017-02-16 Thread Paolo Bonzini
The FPU is always active now when running KVM. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 3 -- arch/x86/kvm/cpuid.c| 2 - arch/x86/kvm/svm.c | 43 ++- arch/x86/kvm/vmx.c | 112 ++--

Re: [PATCH v2 0/6] Move dell-led to drivers/platform/x86

2017-02-16 Thread Michał Kępień
> > >> 6. Compiled and installed Linux kernel 4.10 rc8 > > >> > > >> -> Microphone mute led does not work > > > > > > This is even more confusing. Between 4.9, which you claim works fine, > > > and 4.10-rc8, which you claim does not work, I can see no changes to > > > either drivers/leds/dell-le

Re: [PATCH] net: mvneta: make mvneta_eth_tool_ops static

2017-02-16 Thread Thomas Petazzoni
Hello, On Thu, 16 Feb 2017 17:07:39 +0800, Jisheng Zhang wrote: > The mvneta_eth_tool_ops is only used internally in mvneta driver, so > make it static. > > Signed-off-by: Jisheng Zhang Acked-by: Thomas Petazzoni Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engin

Re: drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c:58:6: error: redefinition of 'brcmf_debugfs_init'

2017-02-16 Thread Rafał Miłecki
On 02/16/2017 10:31 AM, Kalle Valo wrote: (Adding linux-wireless) Randy Dunlap writes: On 02/07/17 02:02, kbuild test robot wrote: Hi Kalle, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8b1b41ee74f9712c355d

[PATCH] perf: Remove confusing comment

2017-02-16 Thread Peter Zijlstra
Since commit: 321027c1fe77 ("perf/core: Fix concurrent sys_perf_event_open() vs. 'move_group' race") the code looks like (assuming move_group==1): gctx = __perf_event_ctx_lock_double(group_leader, ctx); perf_remove_from_context(group_leader, 0); list_for_each_entry(sibling, &group_leader->

Re: [PATCH V2 2/2] brcmfmac: don't warn user about NVRAM if fallback to platform one succeeds

2017-02-16 Thread Rafał Miłecki
On 2017-02-16 10:18, Arend Van Spriel wrote: On 16-2-2017 10:04, Rafał Miłecki wrote: On 2017-02-16 09:38, Arend Van Spriel wrote: On 16-2-2017 8:26, Rafał Miłecki wrote: From: Rafał Miłecki Failing to load NVRAM file isn't critical if we manage to get platform one in the fallback path. It

Re: [PATCH] reset: fix shared reset triggered_count decrement on error

2017-02-16 Thread Philipp Zabel
On Wed, 2017-02-15 at 19:15 +0100, Jerome Brunet wrote: > For a shared reset, when the reset is successful, the triggered_count is > incremented when trying to call the reset callback, so that another device > sharing the same reset line won't trigger it again. If the reset has not > been triggered

Re: [PATCH v2] reset-socfpga: Fix nr_resets property

2017-02-16 Thread Philipp Zabel
On Wed, 2017-02-15 at 19:10 +0100, Rojhalat Ibrahim wrote: > The SoC-FPGA reset controller driver defines NR_BANKS as 4 and uses that > define > for two unrelated purposes. It is used > 1. as an increment for reset line banks which are 32-bit registers with 4-byte > aligned addresses. > 2. as the

Re: drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c:58:6: error: redefinition of 'brcmf_debugfs_init'

2017-02-16 Thread Arend Van Spriel
On 16-2-2017 10:39, Rafał Miłecki wrote: > On 02/16/2017 10:31 AM, Kalle Valo wrote: >> (Adding linux-wireless) >> >> Randy Dunlap writes: >> >>> On 02/07/17 02:02, kbuild test robot wrote: Hi Kalle, FYI, the error/warning still remains. tree: https://git.kernel.org

Re: [PATCH] ACPI, APEI: Fix BERT resources conflict with ACPI NVS area

2017-02-16 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 12:42:00AM +0100, Rafael J. Wysocki wrote: > On Tuesday, February 14, 2017 10:01:13 AM Huang, Ying wrote: > > From: Huang Ying > > > > It was reported that some firmware will use ACPI NVS area for BERT > > address range. This will cause resources conflict because the ACPI

Re: [PATCH 37/37] ARM: dts: DRA7: Add pcie1 dt node for EP mode

2017-02-16 Thread Kishon Vijay Abraham I
Hi Tony, On Saturday 21 January 2017 12:00 AM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [170112 02:34]: >> Add pcie1 dt node in order for the controller to operate in >> endpoint mode. However since none of the dra7 based boards have >> slots configured to operate in endpoint mode, keep EP

Re: drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c:58:6: error: redefinition of 'brcmf_debugfs_init'

2017-02-16 Thread Kalle Valo
Arend Van Spriel writes: > On 16-2-2017 10:39, Rafał Miłecki wrote: >> On 02/16/2017 10:31 AM, Kalle Valo wrote: >>> (Adding linux-wireless) >>> >>> Randy Dunlap writes: >>> On 02/07/17 02:02, kbuild test robot wrote: > Hi Kalle, > > FYI, the error/warning still remains. > >

[PATCH 1/4] iio: accel: adxl345: Use I2C regmap instead of direct I2C access

2017-02-16 Thread Eva Rachel Retuya
Convert the driver to use regmap instead of I2C-specific functions. This is done in preparation for splitting this driver into core and I2C-specific code as well as introduction of SPI driver. Signed-off-by: Eva Rachel Retuya --- drivers/iio/accel/Kconfig | 1 + drivers/iio/accel/adxl345.c |

[PATCH 2/4] iio: accel: adxl345: Split driver into core and I2C

2017-02-16 Thread Eva Rachel Retuya
Move I2C-specific code into its own file and rely on regmap to access registers. The core code provides access to x, y, z and scale readings. Signed-off-by: Eva Rachel Retuya --- drivers/iio/accel/Kconfig| 8 +- drivers/iio/accel/Makefile | 3 +- drivers/iio/accel/adxl345.c

[PATCH 0/4] iio: accel: adxl345: Split driver into core and I2C then add SPI support

2017-02-16 Thread Eva Rachel Retuya
This patchset modifies the adxl345 to use regmap. In doing so, we can easily introduce SPI support and let regmap handle the rest. Recap of basic features: read_raw for x, y and z axes, scale. After applying this series, driver now supports the SPI protocol and enumeration of device via ACPI. Eva

[PATCH 3/4] iio: accel: adxl345: Add SPI support

2017-02-16 Thread Eva Rachel Retuya
Add SPI driver for initializing spi regmap for the adxl345 core driver. The driver supports the same functionality as I2C namely the x, y, z and scale readings. Signed-off-by: Eva Rachel Retuya --- drivers/iio/accel/Kconfig | 13 +++ drivers/iio/accel/Makefile | 1 + drivers/iio/

[PATCH 4/4] iio: accel: adxl345: Add ACPI support

2017-02-16 Thread Eva Rachel Retuya
Allow probing the adxl345 on both I2C and SPI protocols using ACPI. Signed-off-by: Eva Rachel Retuya --- drivers/iio/accel/adxl345_i2c.c | 9 + drivers/iio/accel/adxl345_spi.c | 9 + 2 files changed, 18 insertions(+) diff --git a/drivers/iio/accel/adxl345_i2c.c b/drivers/iio/acc

Re: [PATCH v2] Staging: comedi: drivers: comedi_test: Add auto-configuration capability

2017-02-16 Thread Ian Abbott
On 15/02/17 06:05, Cheah Kok Cheong wrote: On Mon, Feb 13, 2017 at 11:14:14AM +, Ian Abbott wrote: On 11/02/17 10:37, Cheah Kok Cheong wrote: [snip] +static void __exit comedi_test_exit(void) +{ + comedi_auto_unconfig(ctdev); + + device_destroy(ctcls, MKDEV(0, 0)); + + cl

Re: [PATCH] cpufreq: schedutil: govern how frequently we change frequency with rate_limit

2017-02-16 Thread Viresh Kumar
On 16-02-17, 01:02, Rafael J. Wysocki wrote: > More precisely, while the governor computations are less costly than updating > the CPU state, they are not zero-cost, so do we really want to run them on > every governor callback invocation until the CPU state is updated? > > We may end up running t

[PATCH] trace: Correct comments about list of pages in buffer

2017-02-16 Thread Joel Fernandes
Comments related to list of pages in the ring buffer seem to be incorrect. This patch corrects them. Signed-off-by: Joel Fernandes --- kernel/trace/trace.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index d7449783987

[RFC] perf/sdt: Directly record SDT event with 'perf record'

2017-02-16 Thread Ravi Bangoria
All events from 'perf list', except SDT events, can be directly recorded with 'perf record'. But, the flow is little different for SDT events. Probe point for SDT event needs to be created using 'perf probe' before recording it using 'perf record'. As suggested by Ingo[1], it's better to make this

Re: [PATCH V2 2/2] brcmfmac: don't warn user about NVRAM if fallback to platform one succeeds

2017-02-16 Thread Arend Van Spriel
On 16-2-2017 10:32, Rafał Miłecki wrote: > On 2017-02-16 10:18, Arend Van Spriel wrote: >> On 16-2-2017 10:04, Rafał Miłecki wrote: >>> On 2017-02-16 09:38, Arend Van Spriel wrote: On 16-2-2017 8:26, Rafał Miłecki wrote: > From: Rafał Miłecki > > Failing to load NVRAM file isn't c

Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic

2017-02-16 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 01:36:37PM +0800, Xunlei Pang wrote: > I tried to use qemu to inject SRAO("mce -b 0 0 0xb100 0x5 0x0 > 0x0"), > it works well in 1st kernel, but it doesn't work for 1st kernel after kdump > boots(seems > the cpus remain in 1st kernel don't respond to the simula

Re: [PATCH V2 2/2] brcmfmac: don't warn user about NVRAM if fallback to platform one succeeds

2017-02-16 Thread Rafał Miłecki
On 2017-02-16 09:38, Arend Van Spriel wrote: On 16-2-2017 8:26, Rafał Miłecki wrote: From: Rafał Miłecki Failing to load NVRAM file isn't critical if we manage to get platform one in the fallback path. It means warnings like: [ 10.801506] brcmfmac :01:00.0: Direct firmware load for brcm

Re: [PATCH] ACPI, APEI: Fix BERT resources conflict with ACPI NVS area

2017-02-16 Thread Huang, Ying
Borislav Petkov writes: > On Thu, Feb 16, 2017 at 12:42:00AM +0100, Rafael J. Wysocki wrote: >> On Tuesday, February 14, 2017 10:01:13 AM Huang, Ying wrote: >> > From: Huang Ying >> > >> > It was reported that some firmware will use ACPI NVS area for BERT >> > address range. This will cause re

Re: [PATCH v4 18/36] media: Add i.MX media core driver

2017-02-16 Thread Russell King - ARM Linux
On Wed, Feb 15, 2017 at 06:19:20PM -0800, Steve Longerbeam wrote: > Add the core media driver for i.MX SOC. > > Signed-off-by: Steve Longerbeam Just as I reported on the 30th January: Applying: media: Add i.MX media core driver .git/rebase-apply/patch:614: new blank line at EOF. + .git/rebase-a

Re: [PATCH] drivers: usb-misc: sisusbvga: remove dead code

2017-02-16 Thread Oliver Neukum
Am Dienstag, den 07.02.2017, 22:01 -0600 schrieb Gustavo A. R. Silva: > The condition modex % 16 cannot be true when modex value is equal to > 640 > The condition du & 0xff cannot be true when du value is equal to > 0x1400 >  Sorry for speaking up so late, but this is not a good idea. We lose the

Re: [PATCH v6 1/3] perf: add PERF_RECORD_NAMESPACES to include namespaces related info

2017-02-16 Thread Peter Zijlstra
On Wed, Feb 08, 2017 at 02:01:24PM +0530, Hari Bathini wrote: > With the advert of container technologies like docker, that depend > on namespaces for isolation, there is a need for tracing support for > namespaces. This patch introduces new PERF_RECORD_NAMESPACES event > for tracing based on names

Re: [PATCH v4 23/36] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-02-16 Thread Russell King - ARM Linux
On Wed, Feb 15, 2017 at 06:19:25PM -0800, Steve Longerbeam wrote: > Adds MIPI CSI-2 Receiver subdev driver. This subdev is required > for sensors with a MIPI CSI2 interface. > > Signed-off-by: Steve Longerbeam Just like I reported on the 30th January: .git/rebase-apply/patch:236: trailing white

Re: [PATCH 3/5] reset: Add Altera Arria10 System Resource Reset Controller

2017-02-16 Thread Philipp Zabel
Hi Thor, thank you for the patch. A few comments below: On Wed, 2017-02-15 at 15:50 -0600, thor.tha...@linux.intel.com wrote: > From: Thor Thayer > > This patch adds the reset controller functionality to the Arria10 > System Resource Manager. > > Signed-off-by: Thor Thayer > --- > MAINTAINER

Re: drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c:58:6: error: redefinition of 'brcmf_debugfs_init'

2017-02-16 Thread Arend Van Spriel
On 16-2-2017 11:01, Kalle Valo wrote: > Arend Van Spriel writes: > >> On 16-2-2017 10:39, Rafał Miłecki wrote: >>> On 02/16/2017 10:31 AM, Kalle Valo wrote: (Adding linux-wireless) Randy Dunlap writes: > On 02/07/17 02:02, kbuild test robot wrote: >> Hi Kalle, >>

[patch added to 3.12-stable] ARC: [arcompact] brown paper bag bug in unaligned access delay slot fixup

2017-02-16 Thread Jiri Slaby
From: Vineet Gupta This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit a524c218bc94c705886a0e0fedeee45d1931da32 upstream. Reported-by: Jo-Philipp Wich Fixes: 9aed02feae57bf7 ("ARC: [arcompact] handle unaligned access delay

Re: [PATCH 2/3] usb: dwc3: use BIT() macro where possible

2017-02-16 Thread Roger Quadros
On 16/02/17 10:54, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >> On 15/02/17 13:44, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Roger Quadros writes: To avoid checkpatch warnings with new patches let's start using the BIT() macro wherever possible. Signed-off-by: Roge

[PATCH] ARM: at91: move SoC detection to its own driver

2017-02-16 Thread Alexandre Belloni
To simplify machine init and as the soc_device struct is not used as the parent for on-chip devices anymore, move SoC detection to its own driver. Change in dmesg: - before: DMA: preallocated 256 KiB pool for atomic coherent allocations AT91: Detected SoC family: sama5d2 AT91: Detected SoC: sama5

Re: [PATCH v2 0/6] Move dell-led to drivers/platform/x86

2017-02-16 Thread Alex Hung
On Thu, Feb 16, 2017 at 5:27 PM, Michał Kępień wrote: >> On Wed, Feb 15, 2017 at 9:54 PM, Michał Kępień wrote: >> > Alex, >> > >> >> I tested the patches with the following setup. Please note I tested >> >> the microphone mute led by GUI, as the hotkey does not work on this >> >> system. >> > >>

Re: [PATCH v2 0/4] PTP attribute handling cleanup

2017-02-16 Thread Richard Cochran
On Wed, Feb 15, 2017 at 12:22:15PM -0500, David Miller wrote: > Richard, please review. Ok, I am testing this today or tomorrow. I'll report back as soon as I can. Thanks, Richard

Re: [PATCH v6 1/3] perf: add PERF_RECORD_NAMESPACES to include namespaces related info

2017-02-16 Thread Peter Zijlstra
On Thu, Feb 16, 2017 at 11:28:24AM +0100, Peter Zijlstra wrote: > On Wed, Feb 08, 2017 at 02:01:24PM +0530, Hari Bathini wrote: > > @@ -862,6 +886,18 @@ enum perf_event_type { > > */ > > PERF_RECORD_SWITCH_CPU_WIDE = 15, > > > > + /* > > +* struct { > > +* stru

[PATCH 1/2] acpi: Fix the mapping handle in case of declaring processors using the Device operator

2017-02-16 Thread Dou Liyang
In ACPI spec, we can declare processors using both Processor and Device operator. But now, we just handle the mapping of processors which are declared by Processor operator. It misses the processors declared by Device operator. The patch adds this case of the Device operator. Signed-off-by: Dou

[PATCH 2/2] acpi: Fix the check handle in case of declaring processors using the Device operator

2017-02-16 Thread Dou Liyang
In ACPI spec, we can declare processors using both Processor and Device operator. And before we use the ACPI table, we should check the correctness for all processors in ACPI namespace. But, Currently, the check handle is just include only the processors which are declared by Processor operator. I

Re: [PATCH 4/4] pinctrl: samsung: Remove unused local variable

2017-02-16 Thread Charles Keepax
On Wed, Feb 15, 2017 at 07:43:03PM +0200, Krzysztof Kozlowski wrote: > On Mon, Feb 13, 2017 at 10:11:06AM +, Charles Keepax wrote: > > Signed-off-by: Charles Keepax > > "The local variable drvdata is not used in samsung_gpio_set_direction()"? > > Reviewed-by: Krzysztof Kozlowski > Thanks,

Re: Looking more details and reasons for using orig_add_limit.

2017-02-16 Thread James Morse
Hi Prasad, On 15/02/17 21:12, Sodagudi Prasad wrote: > On 2017-02-15 04:09, James Morse wrote: >> On 15/02/17 05:52, Sodagudi Prasad wrote: >>> that driver is calling set_fs(KERNEL_DS) and then copy_to_user() to user >>> space >>> memory. >> >> Don't do this, its exactly the case PAN+UAO and the

Re: [PATCH] ACPI, APEI: Fix BERT resources conflict with ACPI NVS area

2017-02-16 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 06:24:39PM +0800, Huang, Ying wrote: > The NVS area is excluded when request the resources, because the NVS > area has been marked as busy already. But the whole BERT memory area is > mapped, so we can read from it. So you're saying the NVS area is part of the BERT area an

Re: [PATCH] ARM: at91: move SoC detection to its own driver

2017-02-16 Thread Nicolas Ferre
Le 16/02/2017 à 11:31, Alexandre Belloni a écrit : > To simplify machine init and as the soc_device struct is not used as the > parent for on-chip devices anymore, move SoC detection to its own driver. > > Change in dmesg: > - before: > DMA: preallocated 256 KiB pool for atomic coherent allocatio

[PATCH v9] soc: qcom: Add SoC info driver

2017-02-16 Thread Imran Khan
The SoC info driver provides information such as Chip ID, Chip family, serial number and other such details about Qualcomm SoCs to user space, so that if needed some user space utility(like antutu) can query such information using sysfs interface. Signed-off-by: Imran Khan --- v8 --> v9: - Remo

Re: [PATCH 7/8] mq-deadline: add blk-mq adaptation of the deadline IO scheduler

2017-02-16 Thread Paolo Valente
> Il giorno 17 dic 2016, alle ore 01:12, Jens Axboe ha scritto: > > This is basically identical to deadline-iosched, except it registers > as a MQ capable scheduler. This is still a single queue design. > > Signed-off-by: Jens Axboe ... > + > +static void dd_merged_requests(struct request_queu

[PATCH 2/5] kprobes: convert kprobe_lookup_name() to a function

2017-02-16 Thread Naveen N. Rao
The macro is now pretty long and ugly on powerpc. In the light of further changes needed here, convert it to a __weak variant to be over-ridden with a nicer looking function. Suggested-by: Masami Hiramatsu Signed-off-by: Naveen N. Rao --- arch/powerpc/include/asm/kprobes.h | 53

[PATCH 1/5] powerpc: introduce a new helper to obtain function entry points

2017-02-16 Thread Naveen N. Rao
kprobe_lookup_name() is specific to the kprobe subsystem and may not always return the function entry point (in a subsequent patch for KPROBES_ON_FTRACE). For looking up function entry points, introduce a separate helper and use the same in optprobes.c Signed-off-by: Naveen N. Rao --- arch/power

[PATCH 4/5] powerpc: kprobes: factor out code to emulate instruction into a helper

2017-02-16 Thread Naveen N. Rao
This helper will be used in a subsequent patch to emulate instructions on re-entering the kprobe handler. No functional change. Acked-by: Ananth N Mavinakayanahalli Signed-off-by: Naveen N. Rao --- arch/powerpc/kernel/kprobes.c | 52 ++- 1 file changed, 3

[PATCH 3/5] powerpc: kprobes: fix handling of function offsets on ABIv2

2017-02-16 Thread Naveen N. Rao
commit 239aeba76409 ("perf powerpc: Fix kprobe and kretprobe handling with kallsyms on ppc64le") changed how we use the offset field in struct kprobe on ABIv2. perf now offsets from the GEP (Global entry point) if an offset is specified and otherwise chooses the LEP (Local entry point). Fix the sa

[PATCH 5/5] powerpc: kprobes: emulate instructions on kprobe handler re-entry

2017-02-16 Thread Naveen N. Rao
On kprobe handler re-entry, try to emulate the instruction rather than single stepping always. As a related change, remove the duplicate saving of msr as that is already done in set_current_kprobe() Acked-by: Ananth N Mavinakayanahalli Signed-off-by: Naveen N. Rao --- arch/powerpc/kernel/kprob

Re: [PATCH] powerpc/xmon: Fix an unexpected xmon onoff state change

2017-02-16 Thread Guilherme G. Piccoli
On 16/02/2017 03:09, Michael Ellerman wrote: > Pan Xinhui writes: > >> Once xmon is triggered by sysrq-x, it is enabled always afterwards even >> if it is disabled during boot. This will cause a system reset interrut >> fail to dump. So keep xmon in its original state after exit. >> >> Signed-off

Re: [PATCH v1 1/3] ASoC: zx-96p22: add documentation for zte's aud96p22 controller

2017-02-16 Thread Shawn Guo
On Wed, Feb 15, 2017 at 06:55:08PM +0800, Baoyou Xie wrote: > This patch adds dt-binding documentation for zte's aud96p22 controller. > > Signed-off-by: Baoyou Xie Suggest to replace "documentation" with "bindings doc" in patch subject. > --- > .../devicetree/bindings/sound/zte,zx-96p22.txt

[BUG] 4.10-rc8 - ping spinning?

2017-02-16 Thread lkml
Hello list, Some rtl8192cu bugs of old got me in the habit of running ping in a shelved (i.e. forgotten) xterm, a harmless practice which seemed to prevent the rtl8192cu device from dying. This evening the system started getting very slow and to my surprise I found this in `top`: 5

[PATCH v2 1/3] ASoC: zx-tdm: add bindings doc for zte's tdm controller

2017-02-16 Thread Baoyou Xie
This patch adds dt-binding documentation for zte's tdm controller. Signed-off-by: Baoyou Xie --- .../devicetree/bindings/sound/zte,tdm.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/zte,tdm.txt diff --git a/

[PATCH v2 3/3] ASoC: zx-tdm: add zte's tdm controller driver

2017-02-16 Thread Baoyou Xie
This patch adds tdm controller driver for zte's SoC family. Signed-off-by: Baoyou Xie --- sound/soc/zte/Kconfig | 8 + sound/soc/zte/Makefile | 1 + sound/soc/zte/zx-tdm.c | 461 + 3 files changed, 470 insertions(+) create mode 100644 sound/s

[PATCH v2 2/3] MAINTAINERS: add zte tdm controller driver to ARM ZTE architecture

2017-02-16 Thread Baoyou Xie
Add the zte tdm controller driver as maintained by ARM ZTE architecture maintainers, as they're parts of the core IP. Signed-off-by: Baoyou Xie --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e63063b..1269eb6 100644 --- a/MAINTAINERS +++ b/MA

  1   2   3   4   5   6   7   8   9   >