Re: [PATCH v2 1/5] drm/rockchip: vop: get rid of register init table

2017-07-12 Thread Sean Paul
On Wed, Jul 12, 2017 at 10:03:27AM +0800, Mark Yao wrote: > Register init table use un-document define, it is unreadable, > And sometimes we only want to update tiny bits, init table > method is not friendly, it's diffcult to reuse for difference > chips. While I'm happy to see the init_table remo

Re: Dynamic tracepoints in 4.11.8-rt5

2017-07-12 Thread Tom Zanussi
Hi Mathieu, On Wed, 2017-07-12 at 15:56 +, Mathieu Desnoyers wrote: > Hi Tom, > > I notice this commit appears in linux-rt-devel 4.11.8-rt5 > (and it is not in upstream Linux): > > 003100371 tracing: Add support for dynamic tracepoints > > It adds a "bool dynamic" argument to tracepoint_pro

Re: [PATCH RESEND] staging: sm750fb: avoid conflicting vesafb

2017-07-12 Thread Sudip Mukherjee
On Wed, Jul 12, 2017 at 08:06:24AM +0200, Greg Kroah-Hartman wrote: > On Tue, Jul 11, 2017 at 10:03:01PM +0100, Sudip Mukherjee wrote: > > Hi Greg, > > > > On Fri, Jun 30, 2017 at 09:57:43PM +0100, Sudip Mukherjee wrote: > > > From: Teddy Wang > > > > > > > A gentle ping. > > It's in the midd

Re: [GIT PULL] Please pull JSON files for Power9 PMU events

2017-07-12 Thread Sukadev Bhattiprolu
Arnaldo Carvalho de Melo [a...@kernel.org] wrote: > Em Wed, Jul 12, 2017 at 10:09:12PM +1000, Michael Ellerman escreveu: > > Sukadev Bhattiprolu writes: > > > Please pull the JSON files for POWER9 PMU events. > > > > perf vendor events: Add POWER9 PMU events > > > perf vendor events:

[RFC PATCH v2] irqchip: Add support for tango interrupt router

2017-07-12 Thread Mason
128 inputs, 24 outputs (to GIC SPI 0-23) --- There might be a few things wrong with this driver. When I cat /proc/interrupts the interrupt count appears to be bogus (as if level IRQ counts are added to edge IRQ counts). Did I mess something up with the IRQ domains? --- .../interrupt-controller/sig

Re: [PATCH] PM / Domains: defer dev_pm_domain_set() until genpd->attach_dev succeeds if present

2017-07-12 Thread Sudeep Holla
On 12/07/17 14:59, Ulf Hansson wrote: > On 29 June 2017 at 20:00, Sudeep Holla wrote: >> If the genpd->attach_dev or genpd->power_on fails, genpd_dev_pm_attach >> may return -EPROBE_DEFER initially. However genpd_alloc_dev_data sets >> the PM domain for the device unconditionally. >> >> When sub

scripts/get_maintainer.pl misses maintainers sometimes

2017-07-12 Thread Maarten Lankhorst
Hello Joe Perches, I created a script for drm's maintainer-tools that pipes the output of get_maintainer.pl to add the appropriate cc's to the commit message. It also ignores duplicates, so running the script twice on the same commit doesn't add everyone twice. When testing, I found out that so

Re: [PATCH 3/3] rtmutex: remove unnecessary adjust prio

2017-07-12 Thread Peter Zijlstra
On Wed, Jul 12, 2017 at 10:14:49AM -0400, Steven Rostedt wrote: > On Tue, 11 Jul 2017 22:39:24 +0800 > Alex Shi wrote: > > > Any comments for this little change? It's passed on 0day testing. > > I think the problem was that this was a third patch after two > documentation patches. Where, people

[RFC 3/3] net: macb: Use sram for rx buffers

2017-07-12 Thread Alexander Dahl
The default way for the driver is to use system memory for RX/TX DMA buffers and rings. For the AT91SAM9G20 this is SDRAM which is connected through the EBI bus, together with other memories like NAND-Flash or external SRAM. If a memory access to external SRAM using the NWAIT signal takes too long,

[RFC 1/3] net: macb: Add register descriptions

2017-07-12 Thread Alexander Dahl
Analog to the already present long register names for GEM, add those for MACB. Taken from the AT91SAM9G20 complete datasheet. Signed-off-by: Alexander Dahl --- drivers/net/ethernet/cadence/macb.h | 66 ++--- 1 file changed, 33 insertions(+), 33 deletions(-) diff

Re: [PATCH v3 03/16] fpga: mgr: API change to replace fpga load functions with single function

2017-07-12 Thread Alan Tull
On Mon, Jul 10, 2017 at 12:36 PM, Moritz Fischer wrote: >> +struct fpga_image_info *fpga_image_info_alloc(struct device *dev) >> +{ >> + struct fpga_image_info *info; >> + >> + info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL); >> + if (!info) >> + return ERR_PTR

[RFC 2/3] net: macb: Add buffer descriptor names

2017-07-12 Thread Alexander Dahl
Documentation of the EMAC buffer descriptor bitfields. Taken from the AT91SAM9G20 complete datasheet. Signed-off-by: Alexander Dahl --- drivers/net/ethernet/cadence/macb.h | 50 ++--- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/net/ethe

[RFC 0/3] net: macb: Use SRAM on SoC for RX rings and buffers

2017-07-12 Thread Alexander Dahl
Hei hei, this is a small patch series for a problem we encoutered with a board based on an AT91SAM9G20 SoC. I talked about it a few days ago on the #armlinux IRC channel with Alexandre Belloni and Florian Fainelli. The current state of those patches is 'prove of concept', but if this is useful for

Re: v4l2-fwnode: status, plans for merge, any branch to merge against?

2017-07-12 Thread Pavel Machek
Hi! > > > 1) Make sure there will be no regressions, > > > > Well, all I have running recent kernels is N900. If ccp branch works > > for you on N9, that's probably as much testing as we can get. > > > > > 2) clean things up in the omap3isp; which resources are needed and when > > > (e.g. regul

Re: [PATCH v2] fbdev: make get_fb_unmapped_area depends of !MMU

2017-07-12 Thread Bartlomiej Zolnierkiewicz
On Wednesday, July 12, 2017 09:43:07 AM Benjamin Gaignard wrote: > Even if CONFIG_FB_PROVIDE_GET_FB_UNMAPPED_AREA flag is selected > do not compile and use get_fb_unmapped_area() if CONFIG_MMU is > also set. This will avoid mmap errors when compiling multi > architectures at same time. > > Signed-

Re: [PATCH] atyfb: hide unused variable

2017-07-12 Thread Bartlomiej Zolnierkiewicz
On Monday, July 10, 2017 01:12:46 PM Arnd Bergmann wrote: > The vdisplay variable is now only accessed inside of an #ifdef, producing > a harmless warning: > > drivers/video/fbdev/aty/atyfb_base.c: In function 'aty_var_to_crtc': > drivers/video/fbdev/aty/atyfb_base.c:805:19: error: unused variable

Re: [RFC PATCH] x86: enable dead code and data elimination (LTO)

2017-07-12 Thread Andi Kleen
Nicholas Piggin writes: >> >> I think we should aim for gc-sections to be used by default and have LTO >> as a possible option only. > > I agree after it starts getting implemented and debugged by small > system users, we could make it default in the interest of sharing > testing and reducing co

Re: [REGRESSION] Touchpad failure after e7348396c6d5 ("Input: ALPS - fix V8+ protocol handling (73 03 28)")

2017-07-12 Thread Paul Donohue
On Wed, Jul 12, 2017 at 09:16:43AM +0200, Takashi Iwai wrote: > On Tue, 11 Jul 2017 21:58:21 +0200, > Paul Donohue wrote: > > > > On Tue, Jul 11, 2017 at 05:50:07PM +0200, Takashi Iwai wrote: > > > Hi, just joining to the party in the middle, as I'm also facing the > > > same problem on Dell E7270

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-12 Thread Palmer Dabbelt
On Wed, 12 Jul 2017 04:07:51 PDT (-0700), james.ho...@imgtec.com wrote: > On Tue, Jul 11, 2017 at 06:31:29PM -0700, Palmer Dabbelt wrote: >> diff --git a/arch/riscv/include/asm/unistd.h >> b/arch/riscv/include/asm/unistd.h >> new file mode 100644 >> index ..9f250ed007cd >> --- /dev/nul

Re: [PATCH 08/17] tty: New RISC-V SBI console driver

2017-07-12 Thread Palmer Dabbelt
On Wed, 12 Jul 2017 04:04:00 PDT (-0700), m...@ellerman.id.au wrote: > Palmer Dabbelt writes: > >> On Mon, 10 Jul 2017 23:21:07 PDT (-0700), m...@ellerman.id.au wrote: >>> Palmer Dabbelt writes: >>> ... +#ifdef CONFIG_EARLY_PRINTK +static void sbi_console_write(struct console *co,

Re: in:imklog segfault in 4.12+git on most sparc64's

2017-07-12 Thread Linus Torvalds
On Wed, Jul 12, 2017 at 9:09 AM, David Miller wrote: > > Al, please push this to Linus soon. I'll take it directly, Al is currently in Boston without a real computer methinks. Linus

Re: BUG: using __this_cpu_read() in preemptible [00000000] code: mm_percpu_wq/7

2017-07-12 Thread Heiko Carstens
On Wed, Jul 12, 2017 at 10:44:54AM -0500, Christopher Lameter wrote: > On Wed, 7 Jun 2017, Andre Wild wrote: > > > I'm currently seeing the following message running kernel version 4.11.0. > > It looks like it was introduced with the patch > > 4037d452202e34214e8a939fa5621b2b3bbb45b7. > > A 2007

Re: [PATCH v2 17/22] fpga: intel: add fpga region platform driver for FME

2017-07-12 Thread Alan Tull
On Sun, Jun 25, 2017 at 8:52 PM, Wu Hao wrote: Hi Hao, Thanks for using the region patchset. This looks good except for one thing below. > This patch adds fpga region platform driver for Intel FPGA Management > Engine. It register a fpga region with given fpga manager / bridge > device. > > Si

Re: in:imklog segfault in 4.12+git on most sparc64's

2017-07-12 Thread David Miller
From: Meelis Roos Date: Wed, 12 Jul 2017 10:09:50 +0300 (EEST) >> From: Al Viro >> Date: Wed, 12 Jul 2017 04:59:45 +0100 >> >> > Again, my apologies for format of that all - I'm almost completely >> > off-net and while typing an ed script is feasible, context diff is >> > too far over the top.

[PATCH 1/5] arm64: dts: rockchip: Add rk3399 vop and display-subsystem

2017-07-12 Thread Jacob Chen
Add devicetree nodes for rk3399 VOP (Video Output Processors), and the top level display-subsystem root node. Later patches add endpoints (eDP, HDMI, MIPI, etc) that attach to the VOPs' output ports. Signed-off-by: Mark Yao Signed-off-by: Yakir Yang Signed-off-by: Caesar Wang Signed-off-by: Ja

[PATCH 4/5] arm64: dts: rockchip: add rk3399 mipi nodes

2017-07-12 Thread Jacob Chen
Add an mipi node, and also add mipi endpoints to vopb and vopl output port nodes. Signed-off-by: Jacob Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 44 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/bo

[PATCH 5/5] arm64: dts: rockchip: add rk3399 hdmi nodes

2017-07-12 Thread Jacob Chen
Add an hdmi node, and also add hdmi endpoints to vopb and vopl output port nodes. Signed-off-by: Jacob Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 37 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/bo

[PATCH 3/5] arm64: dts: rockchip: add rk3399 edp nodes

2017-07-12 Thread Jacob Chen
Add an edp node, and also add edp endpoints to vopb and vopl output port nodes. Signed-off-by: Yakir Yang Signed-off-by: Caesar Wang Signed-off-by: Jacob Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 48 1 file changed, 48 insertions(+) diff --git a/arch

[PATCH 2/5] arm64: dts: rockchip: add pd_edp node for rk3399

2017-07-12 Thread Jacob Chen
1. add pd node for RK3399 Soc 2. create power domain tree 3. add qos node for domain Signed-off-by: Elaine Zhang Signed-off-by: Caesar Wang Signed-off-by: Jacob Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/rockchi

[PATCH 0/5] arm64: dts: add rk3399 display-related nodes

2017-07-12 Thread Jacob Chen
This series patches add the display-related nodes for rk3399. Tested with kernel base on drm-misc and below patches. https://cgit.freedesktop.org/drm/drm-misc/ "drm: bridge: synopsys/dw-hdmi: Provide default configuration function for HDMI 2.0 PHY" "iommu/rockchip: Enable Rockchip IOMMU on ARM64"

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

2017-07-12 Thread Paul E. McKenney
On Wed, Jul 12, 2017 at 01:54:51PM +0200, Peter Zijlstra wrote: > On Tue, Jul 11, 2017 at 11:09:31AM -0700, Paul E. McKenney wrote: > > On Tue, Jul 11, 2017 at 06:34:22PM +0200, Peter Zijlstra wrote: > > > > But I think we can at the very least do this; it only gets called from > > > kernel/sched/

[PATCH 1/2] ASoC: fix pcm-creation regression

2017-07-12 Thread Johan Hovold
This reverts commit 99b04f4c4051 ("ASoC: add Component level pcm_new/pcm_free"), which started calling the pcm_new callback for every component in a *card* when creating a new pcm, something which does not seem to make any sense. This specifically led to memory leaks in systems with more than one

[PATCH v5 1/1] KVM: trigger uevents when creating or destroying a VM

2017-07-12 Thread Claudio Imbrenda
This patch adds a few lines to the KVM common code to fire a KOBJ_CHANGE uevent whenever a KVM VM is created or destroyed. The event carries five environment variables: CREATED indicates how many times a new VM has been created. It is useful for example to trigger specific actions when the

[PATCH 2/2] Revert "ASoC: ux500: drop platform DAI assignments"

2017-07-12 Thread Johan Hovold
This reverts commit f1013cdeeeb9 ("ASoC: ux500: drop platform DAI assignments"), which seems to have been based on a misunderstanding and prevents the platform driver callbacks from being made (e.g. to preallocate DMA memory). The real culprit for the warnings about attempts to create duplicate pr

[PATCH v5 0/1] KVM: trigger uevents when creating or destroying a VM

2017-07-12 Thread Claudio Imbrenda
This patch adds a few lines to the KVM common code to fire a KOBJ_CHANGE uevent whenever a KVM VM is created or destroyed. The event carries five environment variables: CREATED indicates how many times a new VM has been created. It is useful for example to trigger specific actions when the

Dynamic tracepoints in 4.11.8-rt5

2017-07-12 Thread Mathieu Desnoyers
Hi Tom, I notice this commit appears in linux-rt-devel 4.11.8-rt5 (and it is not in upstream Linux): 003100371 tracing: Add support for dynamic tracepoints It adds a "bool dynamic" argument to tracepoint_probe_unregister. I'm trying to figure out why this change is introduced as a new API "dyna

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

2017-07-12 Thread Paul E. McKenney
On Wed, Jul 12, 2017 at 02:22:49PM +0200, Peter Zijlstra wrote: > On Tue, Jul 11, 2017 at 11:09:31AM -0700, Paul E. McKenney wrote: > > On Tue, Jul 11, 2017 at 06:34:22PM +0200, Peter Zijlstra wrote: > > > Also, RCU_FAST_NO_HZ will make a fairly large difference here.. Paul > > > what's the state o

Re: [PULL REQUEST] i2c for 4.13

2017-07-12 Thread Wolfram Sang
> with much appreciated quality assurance from > > Andy Shevchenko (17): > (Rev.) i2c: designware: Let slave adapter support be optional > (Rev.) i2c: designware: Make HW init functions static > (Rev.) i2c: pca-plat

Re: [PATCH v2] [media] staging/imx: remove confusing IS_ERR_OR_NULL usage

2017-07-12 Thread Philipp Zabel
On Tue, 2017-07-11 at 15:18 +0200, Arnd Bergmann wrote: > While looking at a compiler warning, I noticed the use of > IS_ERR_OR_NULL, which is generally a sign of a bad API design > and should be avoided. > > In this driver, this is fairly easy, we can simply stop storing > error pointers in persi

[PULL REQUEST] i2c for 4.13

2017-07-12 Thread Wolfram Sang
Linus, here is my first pull request this merge window for the I2C subsystem. A little later than usual but we needed to sort out one real build problem and then a few false positives from buildbot. But now everything seems in order. This pull request contains: * i2c core reorganization. One sour

Re: BUG: using __this_cpu_read() in preemptible [00000000] code: mm_percpu_wq/7

2017-07-12 Thread Christopher Lameter
On Wed, 7 Jun 2017, Andre Wild wrote: > I'm currently seeing the following message running kernel version 4.11.0. > It looks like it was introduced with the patch > 4037d452202e34214e8a939fa5621b2b3bbb45b7. A 2007 patch? At that point we did not have __this_cpu_read() nor refresh_cpu_vmstats

Re: [PATCH net 20/20] net/hinic: Add ethtool and stats

2017-07-12 Thread Andrew Lunn
On Wed, Jul 12, 2017 at 10:17:26PM +0800, Aviad Krawczyk wrote: Hi Avaid > + > +static void hinic_tx_timeout(struct net_device *netdev) > +{ > + struct hinic_dev *nic_dev = netdev_priv(netdev); > + > + netif_err(nic_dev, drv, netdev, "Tx timeout\n"); > +} > + > +#ifdef CONFIG_NET_POLL_CON

Re: [PATCHv2 3/6] ASoC: codec: cpcap: new codec

2017-07-12 Thread Takashi Iwai
On Wed, 12 Jul 2017 17:18:43 +0200, Sebastian Reichel wrote: > > +/* Capture Gain Control: 0dB to 31dB in 1dB steps */ > +static DECLARE_TLV_DB_SCALE(mic_gain_tlv, 0, 100, 0); > + > +/* Playback Gain Control: -33dB to 12dB in 3dB steps */ > +static DECLARE_TLV_DB_SCALE(vol_tlv, -3300, 300, 0); Be

Re: [PATCH net 02/20] nic/hinic: Initialize hw device components

2017-07-12 Thread Andrew Lunn
> +/** > + * get_dev_cap - get device capabilities > + * @hwdev: the NIC HW device to get capabilities for > + * > + * Return 0 - Success, negative - Failure > + **/ > +static int get_dev_cap(struct hinic_hwdev *hwdev) > +{ > + struct hinic_pfhwdev *pfhwdev; > + struct hinic_hwif *hwif = hw

Re: Problem with commit bf22ff45bed664aefb5c4e43029057a199b7070c

2017-07-12 Thread Thomas Gleixner
On Mon, 10 Jul 2017, Juergen Gross wrote: > On 07/07/17 19:11, Thomas Gleixner wrote: > > On Fri, 7 Jul 2017, Thomas Gleixner wrote: > > > >> On Fri, 7 Jul 2017, Juergen Gross wrote: > >> > >>> Commit bf22ff45bed664aefb5c4e43029057a199b7070c ("genirq: Avoid > >>> unnecessary low level irq function

[PATCH] phy: cpcap-usb: only build if CPCAP is enabled

2017-07-12 Thread Sebastian Reichel
CPCAP phy can only be used with CPCAP MFD, so let's add a dependency. There is no need to ask for it on e.g. x86 systems. Since nobody complained about compilation errors in a couple of weeks it is safe to ignore the dependency for COMPILE_TEST, though. Also enable CPCAP phy support by default if

Re: [PATCH net 01/20] net/hinic: Initialize hw interface

2017-07-12 Thread Andrew Lunn
> + > +#define HINIC_DRV_NAME "HiNIC" > +#define HINIC_DRV_VERSION"1.0" Hi Aviad Please don't add a driver version. There was a discussion about this recently, how pointless it is. > +/** > + * hinic_init_hwdev - Initialize the NIC HW > + * @hwdev: the NIC HW device that is ret

Re: [PATCH v2 05/22] fpga: mgr: add status for fpga-mgr

2017-07-12 Thread Alan Tull
On Sun, Jun 25, 2017 at 8:52 PM, Wu Hao wrote: Hi Hao, > This patch adds status to fpga-manager data structure, to allow > driver to store full/partial reconfiguration errors and other > status information. > > one sysfs interface created for user space application to read > fpga-manager status.

Re: [PATCH net] net: hns: Bugfix for Tx timeout handling in hns driver

2017-07-12 Thread David Miller
From: Lin Yun Sheng Date: Wed, 12 Jul 2017 19:09:59 +0800 > When hns port type is not debug mode, netif_tx_disable is called > when there is a tx timeout, which requires system reboot to return > to normal state. This patch fix this problem by resetting the net > dev. > > Fixes: b5996f11ea54 ("n

Re: [PATCH] dt-bindings: clock: ti-sci: Fix incorrect usage of headers

2017-07-12 Thread Suman Anna
On 07/11/2017 08:09 PM, Stephen Boyd wrote: > On 07/11, Suman Anna wrote: >> The clock consumer usage description was erroneously referring to >> couple of dt-binding headers that are no longer valid. The definition >> and/or usage of these headers is incorrect and the only file present >> at the m

[PATCHv2 6/6] ARM: dts: omap4-droid4: add soundcard

2017-07-12 Thread Sebastian Reichel
Add sound support to Motorola Droid 4 using simple-soundcard and CPCAP's audio codec. This does not yet correctly represent the whole audio routing, since McBSP3 is also connected to Bluetooth and MDM6600 modem (and probably also 4G modem). These extra DAI links are not yet supported and have not b

[PATCHv2 4/6] ARM: dts: motorola-cpcap-mapphone: add audio-codec

2017-07-12 Thread Sebastian Reichel
Add node for audio-codec to its DT file. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi index 1eb5da1dc8

[PATCHv2 5/6] ARM: dts: motorola-cpcap-mapphone: set initial mode for vaudio

2017-07-12 Thread Sebastian Reichel
Set default mode for vaudio, which may be left in standby mode if the system is booted via kexec from Android. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b

[PATCHv2 2/6] dt-bindings: sound: add motorola,cpcap-audio-codec

2017-07-12 Thread Sebastian Reichel
Motorola CPCAP is a PMIC with audio functionality, that can be found on Motorola Droid 4 and probably a few other phones from Motorola's Droid series. This adds the DT binding for the codec sub-module found inside the PMIC. Acked-by: Rob Herring Signed-off-by: Sebastian Reichel --- .../binding

[PATCHv2 0/6] Motorola Droid 4 Audio Support

2017-07-12 Thread Sebastian Reichel
Hi, This adds audio support to Motorola Droid 4. Tested: - Playing via both DACs using Speaker, Earpiece, Headphone - Recording using internal Mic - Volume Controls Known not to work: - 3.5mm detection support (requires closed source firmware, needs further investigation) - Modem / Bluet

[PATCHv2 1/6] ALSA: pcm: Export soc_dpcm_runtime_update

2017-07-12 Thread Sebastian Reichel
From: Tony Lindgren Some codecs may need to use this from loadable modules. Without this patch compilation for this kind of codec will fail with the following error: ERROR: "soc_dpcm_runtime_update" [sound/soc/codecs/snd-soc-cpcap.ko] undefined! Signed-off-by: Tony Lindgren Signed-off-by: Seba

[PATCHv2 3/6] ASoC: codec: cpcap: new codec

2017-07-12 Thread Sebastian Reichel
Motorola CPCAP is a PMIC with audio functionality, that can be found on Motorola Droid 4 and probably a few other phones from Motorola's Droid series. The driver has been written from scratch using Motorola's Android driver, register dumps from running Android and datasheet for NXP MC13783UG (whic

[RESEND PATCH] hwmon: (applesmc) Avoid buffer overruns

2017-07-12 Thread Guenter Roeck
gcc 7.1 complains that the driver uses sprintf() and thus does not validate the length of output buffers. drivers/hwmon/applesmc.c: In function 'applesmc_show_fan_position': drivers/hwmon/applesmc.c:82:21: warning: '%d' directive writing between 1 and 5 bytes into a region of size 4 Fix t

Re: [PATCH] powerpc/mm: Implemented default_hugepagesz verification for powerpc

2017-07-12 Thread victora
Em 2017-07-05 13:03, victora escreveu: Em 2017-07-05 01:26, Aneesh Kumar K.V escreveu: On Tuesday 04 July 2017 01:35 AM, Victor Aoqui wrote: Implemented default hugepage size verification (default_hugepagesz=) in order to allow allocation of defined number of pages (hugepages=) only for support

Re: [sparc-next] SPARC64: Fix sun4v DMA panic

2017-07-12 Thread David Miller
From: Tushar Dave Date: Tue, 11 Jul 2017 14:34:47 -0700 > 64bit DMA only supported on sun4v equipped with ATU IOMMU HW. > 'Commit b02c2b0bfd7ae ("sparc: remove arch specific dma_supported > implementations")' introduced a code that incorrectly allow > dma_supported() to succeed for 64bit dma mask

Re: [RFC PATCH 2/4] pmbus: Add fan configuration support

2017-07-12 Thread Guenter Roeck
On Wed, Jul 12, 2017 at 04:31:09PM +0930, Andrew Jeffery wrote: > > Indeed. Hence RFC in case I had overlooked something :) Clearly I have. > Not surprising. It isn't exceptionally well documented :-) > > > > > However, the addition of the callbacks was driven by the behaviour of > > > the MAX3

Re: [PATCH net 00/20] Huawei HiNIC Ethernet Driver

2017-07-12 Thread David Miller
The net-next tree is closed: http://vger.kernel.org/~davem/net-next.html Please resubmit this when the net-next tree is open again. Thank you.

Linux 4.9.37

2017-07-12 Thread Greg KH
I'm announcing the release of the 4.9.37 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.37

2017-07-12 Thread Greg KH
diff --git a/Makefile b/Makefile index 4263dca12f07..342e19adbf7f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 36 +SUBLEVEL = 37 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/x86/lib/copy_user_64.S b/arch/x86/lib/copy_user_64.S index d37

[PATCH] hwmon: (applesmc) Avoid buffer overruns

2017-07-12 Thread Guenter Roeck
gcc 7.1 complains that the driver uses sprintf() and thus does not validate the length of output buffers. drivers/hwmon/applesmc.c: In function 'applesmc_show_fan_position': drivers/hwmon/applesmc.c:82:21: warning: '%d' directive writing between 1 and 5 bytes into a region of size 4 Fix t

Re: [PATCH v2 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-07-12 Thread Ulf Hansson
On 12 July 2017 at 16:15, Quentin Schulz wrote: > This adds deepest (Backup+Self-Refresh) PM support to the ATMEL SAMA5D2 > SoC's SDHCI controller. > > When resuming from deepest state, it is required to restore preset > registers as the registers are lost since VDD core has been shut down > when

[PATCH] powerpc/hugetlb: fix page rights verification in gup_hugepte()

2017-07-12 Thread Christophe Leroy
gup_hugepte() checks if pages are present and readable, and when 'write' is set, also checks if the pages are writable. Initially this was done by checking if _PAGE_PRESENT and _PAGE_READ were set. In addition, _PAGE_WRITE was verified for write accesses. The problem is that we have to handle th

Re: Linux 4.11.10

2017-07-12 Thread Greg KH
diff --git a/Makefile b/Makefile index 9db9095e0d7b..64f73757916f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 11 -SUBLEVEL = 9 +SUBLEVEL = 10 EXTRAVERSION = NAME = Fearless Coyote diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index f8a3

Linux 4.11.10

2017-07-12 Thread Greg KH
I'm announcing the release of the 4.11.10 kernel. All users of the 4.11 kernel series must upgrade. The updated 4.11.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.11.y and can be browsed at the normal kernel.org git web browser:

[PATCH] powerpc/time: use get_tb instead of get_vtb in running_clock

2017-07-12 Thread Jia He
Virtual time base(vtb) is a register which increases only in guest. Any exit from guest to host will stop the vtb(saved and restored by kvm). But if there is an IO causes guest exits to host, the guest's watchdog (watchdog_timer_fn -> is_softlockup -> get_timestamp -> running_clock) needs to also i

Linux 4.12.1

2017-07-12 Thread Greg KH
I'm announcing the release of the 4.12.1 kernel. All users of the 4.12 kernel series must upgrade. The updated 4.12.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.12.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.12.1

2017-07-12 Thread Greg KH
diff --git a/Makefile b/Makefile index 283c6236438e..1286f8cc7b5b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 12 -SUBLEVEL = 0 +SUBLEVEL = 1 EXTRAVERSION = NAME = Fearless Coyote diff --git a/arch/powerpc/platforms/powernv/idle.c b/arch/powerpc/platforms/pow

Re: [PATCH net-next 3/4] net-next: mediatek: add support for MediaTek MT7622 SoC

2017-07-12 Thread Andrew Lunn
Hi Sean > static void mtk_phy_link_adjust(struct net_device *dev) > { > struct mtk_mac *mac = netdev_priv(dev); > @@ -269,6 +311,7 @@ static int mtk_phy_connect(struct net_device *dev) > if (!np) > return -ENODEV; > > + mac->ge_mode = 0; > switch (of_get_phy

Re: [RFC][PATCH] slub: Introduce 'alternate' per cpu partial lists

2017-07-12 Thread Christopher Lameter
On Thu, 8 Jun 2017, Laura Abbott wrote: > - Some of this code is redundant and can probably be combined. > - The fast path is very sensitive and it was suggested I leave it alone. The > approach I took means the fastpath cmpxchg always fails before trying the > alternate cmpxchg. From some of my p

Re: [patches] Re: [PATCH 04/17] MAINTAINERS: Add RISC-V

2017-07-12 Thread Jonathan Neuschäfer
On Wed, Jul 12, 2017 at 01:31:17PM +0200, Arnd Bergmann wrote: > On Wed, Jul 12, 2017 at 1:16 PM, James Hogan wrote: > > On Tue, Jul 11, 2017 at 06:31:17PM -0700, Palmer Dabbelt wrote: [...] > >> +RISC-V ARCHITECTURE > >> +M: Palmer Dabbelt > >> +M: Albert Ou > >> +L: patc...@groups.riscv.

Re: [PATCH v3 2/3] drm/panel: Add support for s6e63j0x03 panel driver

2017-07-12 Thread Andrzej Hajda
On 12.07.2017 15:25, Andrzej Hajda wrote: > On 27.06.2017 04:11, Hoegeun Kwon wrote: >> This patch adds MIPI-DSI based S6E63J0X03 AMOLED LCD panel driver >> which uses mipi_dsi bus to communicate with panel. The panel has >> 320×320 resolution in 1.63" physical panel. This panel is used in >> Samsu

Re: [PATCH v2 01/22] docs: fpga: add a document for Intel FPGA driver overview

2017-07-12 Thread Alan Tull
On Sun, Jun 25, 2017 at 8:51 PM, Wu Hao wrote: Hi Hao, > Add a document for Intel FPGA driver overview. > > Signed-off-by: Enno Luebbers > Signed-off-by: Xiao Guangrong > Signed-off-by: Wu Hao > > v2: added FME fpga-mgr/bridge/region platform driver to driver organization. > updated

Re: [PATCH v4 1/3] cpufreq: mediatek: Add support of cpufreq to MT2701/MT7623 SoC

2017-07-12 Thread Matthias Brugger
Hi Eddie, On 07/11/2017 04:49 AM, Eddie Huang wrote: Hi Sean, On Mon, 2017-07-10 at 22:23 +0800, sean.w...@mediatek.com wrote: From: Sean Wang MT2701/MT7623 is a 32-bit ARMv7 based quad-core (4 * Cortex-A7) with single cluster and this hardware is also compatible with the existing driver thr

Re: [PATCH net-next 2/4] net-next: mediatek: add platform data to adapt into various hardware

2017-07-12 Thread Andrew Lunn
> +static int mtk_clk_enable(struct mtk_eth *eth) > +{ > + int clk, ret; > + > + for (clk = 0; clk < MTK_CLK_MAX ; clk++) { > + if (eth->clks[clk]) { > + ret = clk_prepare_enable(eth->clks[clk]); > + if (ret) > +

Re: [RFC][PATCH] slub: Introduce 'alternate' per cpu partial lists

2017-07-12 Thread Christopher Lameter
On Wed, 14 Jun 2017, Joonsoo Kim wrote: > > - Some of this code is redundant and can probably be combined. > > - The fast path is very sensitive and it was suggested I leave it alone. The > > approach I took means the fastpath cmpxchg always fails before trying the > > alternate cmpxchg. From some

Re: [GIT PULL] Please pull JSON files for Power9 PMU events

2017-07-12 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 12, 2017 at 10:09:12PM +1000, Michael Ellerman escreveu: > Sukadev Bhattiprolu writes: > > Please pull the JSON files for POWER9 PMU events. > > perf vendor events: Add POWER9 PMU events > > perf vendor events: Add POWER9 PVRs to mapfile > I think the PVRs need work. >

[PATCH] ARM: shmobile: rcar-gen2: Fix deadlock in regulator quirk

2017-07-12 Thread Geert Uytterhoeven
Simon Horman reported that Koelsch and Lager hang during boot, and bisected this to commit 1c3c5eab171590f8 ("sched/core: Enable might_sleep() and smp_processor_id() checks early"). The da9063/da9210 regulator quirk for R-Car Gen2 boards uses a bus notifier, and unregisters the notifier when it is

Re: [PATCH] ARM: dts: imx: add CX9020 Embedded PC device tree

2017-07-12 Thread Andrew Lunn
On Wed, Jul 12, 2017 at 11:04:08AM +0200, linux-kernel-...@beckhoff.com wrote: > From: Patrick Brünn > > The CX9020 differs from i.MX53 Quick Start Board by: > - use uart2 instead of uart1 > - DVI-D connector instead of VGA > - no audio > - CCAT FPGA connected to emi > - enable rtc > > Signed-of

Re: [PATCH v3 00/10] x86: ORC unwinder (previously undwarf)

2017-07-12 Thread Josh Poimboeuf
On Wed, Jul 12, 2017 at 10:27:10AM +0200, Ingo Molnar wrote: > > Create a new "ORC" unwinder, enabled by CONFIG_ORC_UNWINDER, and plug it > > into the x86 unwinder framework. Objtool is used to generate the ORC > > debuginfo. The ORC debuginfo format is basically a simplified version > > of DWARF

Re: [PATCH v2] integrity: track mtime in addition to i_version for assessment

2017-07-12 Thread Bruce Fields
On Wed, Jul 12, 2017 at 08:20:21AM -0400, Mimi Zohar wrote: > Right, currently the only way of knowing is by looking at the IMA > measurement list to see if modified files are re-measured or, as you > said, by looking at the code. Who's actually using this, and do they do any kind of checks, or do

Re: [PATCH v5 00/16] perf tool: add meta-data header support for pipe-mode

2017-07-12 Thread Jiri Olsa
On Tue, Jul 11, 2017 at 04:52:51PM -0700, David Carrillo-Cisneros wrote: > v5: - Fix buffer leaking and size changes in > perf_event__synthesize_features. > - Remove unnecessary renaming. > - Remove extra tabs in do_write_string. SNIP > > Only patches 14 to 16 have a significant ef

[PATCH net 04/20] net/hinic: Initialize api cmd hw

2017-07-12 Thread Aviad Krawczyk
Update the hardware about api cmd resources and initialize api cmd hw. Signed-off-by: Aviad Krawczyk Sigend-off-by: Zhaochen --- .../net/ethernet/huawei/hinic/hinic_hw_api_cmd.c | 174 - .../net/ethernet/huawei/hinic/hinic_hw_api_cmd.h | 38 + drivers/net/ethernet/h

[PATCH net 05/20] net/hinic: Add management messages

2017-07-12 Thread Aviad Krawczyk
Add the management messages for sending to api cmd and add the asynchronous event handler for the completion of the messages. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- .../net/ethernet/huawei/hinic/hinic_hw_api_cmd.c | 35 ++ .../net/ethernet/huawei/hinic/hinic_hw_api_cmd.h

[PATCH net 07/20] net/hinic: Add aeqs

2017-07-12 Thread Aviad Krawczyk
Handle aeq elements that are accumulated on the aeq by calling the registered handler for the specific event. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/hinic_hw_csr.h | 49 +++ drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c | 456

[PATCH net 11/20] net/hinic: Add wq

2017-07-12 Thread Aviad Krawczyk
Create work queues for use by the queue pairs for Tx and Rx operations. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/Makefile | 4 +- drivers/net/ethernet/huawei/hinic/hinic_hw_io.c | 65 ++- drivers/net/ethernet/huawei/hinic/hinic_hw_io.h

[PATCH net 08/20] net/hinic: Add port management commands

2017-07-12 Thread Aviad Krawczyk
Add the port management commands that are sent as management messages. The port management commands are used for netdev operations. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/Makefile | 4 +- drivers/net/ethernet/huawei/hinic/hinic_dev.h

[PATCH net 10/20] net/hinic: Add logical Txq and Rxq

2017-07-12 Thread Aviad Krawczyk
Create the logical queues of the nic. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/Makefile | 5 +- drivers/net/ethernet/huawei/hinic/hinic_dev.h| 5 + drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c | 133 ++ drivers

[PATCH net 15/20] net/hinic: Add ceqs

2017-07-12 Thread Aviad Krawczyk
Initialize the completion event queues and handle ceq events by calling the registered handlers. Used for the completion event of cmdq commands. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c | 17 ++ drivers/net/ethernet/huawei/hini

[PATCH net 12/20] net/hinic: Add qp resources

2017-07-12 Thread Aviad Krawczyk
Create the resources for queue pair operations: doorbell area, consumer index address and producer index address. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/Makefile | 4 +- drivers/net/ethernet/huawei/hinic/hinic_hw_if.h | 1 + drivers/

[PATCH net 13/20] net/hinic: Set qp context

2017-07-12 Thread Aviad Krawczyk
Update the nic about the resources of the queue pairs. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/Makefile | 5 +- drivers/net/ethernet/huawei/hinic/hinic_common.c | 55 ++ drivers/net/ethernet/huawei/hinic/hinic_common.h | 23

[PATCH net 17/20] net/hinic: Add cmdq completion handler

2017-07-12 Thread Aviad Krawczyk
Add cmdq completion handler for getting a notification about the completion of cmdq commands. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c | 284 +- drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h | 12 + 2 fi

[PATCH net 18/20] net/hinic: Add Rx handler

2017-07-12 Thread Aviad Krawczyk
Set the io resources in the nic and handle rx events by qp operations. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 1 + drivers/net/ethernet/huawei/hinic/hinic_hw_csr.h | 1 + drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c

[PATCH net 03/20] net/hinic: Initialize api cmd resources

2017-07-12 Thread Aviad Krawczyk
Initialize api cmd resources as part of the management initialization. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/Makefile | 4 +- .../net/ethernet/huawei/hinic/hinic_hw_api_cmd.c | 458 + .../net/ethernet/huawei/h

[PATCH net 16/20] net/hinic: Add cmdq commands

2017-07-12 Thread Aviad Krawczyk
Add cmdq commands for setting queue pair contexts in the nic. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/hinic_common.c | 25 ++ drivers/net/ethernet/huawei/hinic/hinic_common.h | 15 ++ drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c | 288

[PATCH net 09/20] net/hinic: Add Rx mode and link event handler

2017-07-12 Thread Aviad Krawczyk
Add port management message for setting Rx mode in the card, used for rx_mode netdev operation. The link event handler is used for getting a notification about the link state. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhaochen --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 17 ++ d

<    1   2   3   4   5   6   7   8   >