Re: [PATCH v6 04/57] clocksource: Remove dev_err() usage after platform_get_irq()

2019-08-08 Thread Daniel Lezcano
On 30/07/2019 20:15, Stephen Boyd wrote: > We don't need dev_err() messages when platform_get_irq() fails now that > platform_get_irq() prints an error message itself when something goes > wrong. Let's remove these prints with a simple semantic patch. > > // > @@ > expression ret; > struct platfo

Re: [PATCH V4 2/2] cpufreq: intel_pstate: Implement QoS supported freq constraints

2019-08-08 Thread Viresh Kumar
On 08-08-19, 23:35, Doug Smythies wrote: > O.K. While I understand the explanations, I still struggle with > this scenario: > > doug@s15:~/temp$ cat /sys/devices/system/cpu/intel_pstate/max_perf_pct > 50<<< Note: 50% = 1.9 GHz in my system) > doug@s15:~/temp$ grep . > /sys/devices/system/cpu

[PATCH v3 2/2] virtio: decrement avail idx with buffer detach for packed ring

2019-08-08 Thread Pankaj Gupta
This patch decrements 'next_avail_idx' count when detaching a buffer from vq for packed ring code. Split ring code already does this in virtqueue_detach_unused_buf_split function. This updates the 'next_avail_idx' to the previous correct index after an unused buffer is detatched from the vq. Signe

[PATCH v3 1/2] virtio_console: free unused buffers with port delete

2019-08-08 Thread Pankaj Gupta
The commit a7a69ec0d8e4 ("virtio_console: free buffers after reset") deferred detaching of unused buffer to virtio device unplug time. This causes unplug/replug of single port in virtio device with an error "Error allocating inbufs\n". As we don't free the unused buffers attached with the port. Re-

[PATCH v3 0/2] virtio_console: fix replug of virtio console port

2019-08-08 Thread Pankaj Gupta
This patch series fixes the issue with unplug/replug of a port in virtio console driver which fails with an error "Error allocating inbufs\n". Patch 1 makes use of 'virtqueue_detach_unused_buf' function to detach the unused buffers during port hotunplug time. Patch 2 updates the next avail index fo

Re: [PATCH] hugetlbfs: fix hugetlb page migration/fault race causing SIGBUS

2019-08-08 Thread Michal Hocko
On Thu 08-08-19 16:39:28, Andrew Morton wrote: > On Thu, 8 Aug 2019 20:53:13 +0200 Michal Hocko wrote: > > > > https://lkml.org/lkml/2019/6/1/165 > > > > > > Ironic to find that commit message in a stable backport. > > > > > > I'm happy to drop the Fixes tag. > > > > No, please do not drop the

Re: [PATCH] mm/oom: Add killed process selection information

2019-08-08 Thread Michal Hocko
[Again, please do not top post - it makes a mess of any longer discussion] On Thu 08-08-19 15:15:12, Edward Chron wrote: > In our experience far more (99.9%+) OOM events are not kernel issues, > they're user task memory issues. > Properly maintained Linux kernel only rarely have issues. > So usefu

RE: [PATCH V4 2/2] cpufreq: intel_pstate: Implement QoS supported freq constraints

2019-08-08 Thread Doug Smythies
On 2019.08.08 19:16 Viresh Kumar wrote: > On 08-08-19, 09:25, Doug Smythies wrote: >> On 2019.08.07 00:06 Viresh Kumar wrote: >> Tested by: Doug Smythies >> Thermald seems to now be working O.K. for all the governors. > > Thanks for testing Doug. > >> I do note that if one sets >> /sys/devices/sy

Linux Foundation Technical Advisory Board Elections -- Call for nominations

2019-08-08 Thread Laura Abbott
Hello everyone, Friendly reminder that the TAB elections are coming soon: The Linux Foundation Technical Advisory Board (TAB) serves as the interface between the kernel development community and the Linux Foundation. The TAB advises the Foundation on kernel-related matters, helps member companies

Re: [PATCH 2/2] ARM: dts: at91: sama5d27_som1_ek: add mmc capabilities for SDMMC0

2019-08-08 Thread Ludovic Desroches
On Thu, Aug 08, 2019 at 03:57:30PM +0300, Adrian Hunter wrote: > On 8/08/19 3:42 PM, Ludovic Desroches wrote: > > On Thu, Aug 08, 2019 at 10:35:43AM +0200, Eugen Hristev - M18282 wrote: > >> From: Eugen Hristev > >> > >> Add mmc capabilities for SDMMC0 for this board. > >> With this enabled, eMMC

RE: [PATCH 2/2] ARM64: dts: Remove unused properties from FSL QSPI nodes

2019-08-08 Thread Pankaj Bansal
Hi Shawn/Leo, Removing the "big-endian" property has caused problems in our UEFI firmware. In UEFI, we use the device tree to detect and use the qspi controller and flashes attached to it. We don't maintain a list of platforms like linux driver. Can you please revert the endianness change from l

Re: [PATCH v6 03/57] hwrng: Remove dev_err() usage after platform_get_irq()

2019-08-08 Thread Herbert Xu
On Tue, Jul 30, 2019 at 11:15:03AM -0700, Stephen Boyd wrote: > We don't need dev_err() messages when platform_get_irq() fails now that > platform_get_irq() prints an error message itself when something goes > wrong. Let's remove these prints with a simple semantic patch. > > // > @@ > expression

Re: linux-next: build warning after merge of the block tree

2019-08-08 Thread Yuehaibing
On 2019/8/9 12:00, Stephen Rothwell wrote: > Hi all, > > After merging the block tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/lightnvm/pblk-read.c: In function 'pblk_submit_read_gc': > drivers/lightnvm/pblk-read.c:421:18: warning: unused variable 'geo'

Re: [RFC PATCH v4 9/9] printk: use a new ringbuffer implementation

2019-08-08 Thread Peter Zijlstra
On Thu, Aug 08, 2019 at 12:07:28PM -0700, Linus Torvalds wrote: > End result: a DRAM buffer can work, but is not "reliable". > Particularly if you turn power on and off, data retention of DRAM is > iffy. But it's possible, at least in theory. > > So I have a patch that implements a "stupid ring b

Re: [RFC PATCH 2/3] perf tools: Add support for "report" for some spe events

2019-08-08 Thread Tan Xiaojun
On 2019/8/9 5:00, Jeremy Linton wrote: > Hi, > > First thanks for posting this! > > I ran this on our DAWN platform and it does what it says. Its a pretty > reasonable start, but I get -1's in the command row rather than "dd" (or > similar) and this also results in [unknown] for the shared obje

GREETING BELOVED ONE,

2019-08-08 Thread Aisha Gaddafi
Dear Friend, I came across your e-mail contact prior a private search whilst in need of your partnership for investment assistance in your country. I am opportune to use this medium to exhibit my legal intentions towards investing to your country under your management. I am fully convinced that yo

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

2019-08-08 Thread Takashi Iwai
On Fri, 09 Aug 2019 04:54:58 +0200, Stephen Rothwell wrote: > > Hi all, > > After merging the sound tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > sound/hda/hdac_bus.c: In function 'snd_hdac_aligned_read': > sound/hda/hdac_bus.c:228:6: error: implicit declaration

[PATCH V5 4/9] vhost: reset invalidate_count in vhost_set_vring_num_addr()

2019-08-08 Thread Jason Wang
The vhost_set_vring_num_addr() could be called in the middle of invalidate_range_start() and invalidate_range_end(). If we don't reset invalidate_count after the un-registering of MMU notifier, the invalidate_cont will run out of sync (e.g never reach zero). This will in fact disable the fast acces

[PATCH V5 3/9] vhost: fix vhost map leak

2019-08-08 Thread Jason Wang
We don't free map during vhost_map_unprefetch(). This means it could be leaked. Fixing by free the map. Reported-by: Michael S. Tsirkin Fixes: 7f466032dc9e ("vhost: access vq metadata through kernel virtual address") Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 4 +--- 1 file changed,

[PATCH V5 6/9] vhost: don't do synchronize_rcu() in vhost_uninit_vq_maps()

2019-08-08 Thread Jason Wang
There's no need for RCU synchronization in vhost_uninit_vq_maps() since we've already serialized with readers (memory accessors). This also avoid the possible userspace DOS through ioctl() because of the possible high latency caused by synchronize_rcu(). Reported-by: Michael S. Tsirkin Fixes: 7f4

[PATCH V5 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-08-08 Thread Jason Wang
We used to use RCU to synchronize MMU notifier with worker. This leads calling synchronize_rcu() in invalidate_range_start(). But on a busy system, there would be many factors that may slow down the synchronize_rcu() which makes it unsuitable to be called in MMU notifier. This path switch to use a

[PATCH V5 2/9] vhost: validate MMU notifier registration

2019-08-08 Thread Jason Wang
The return value of mmu_notifier_register() is not checked in vhost_vring_set_num_addr(). This will cause an out of sync between mm and MMU notifier thus a double free. To solve this, introduce a boolean flag to track whether MMU notifier is registered and only do unregistering when it was true. R

[PATCH V5 1/9] vhost: don't set uaddr for invalid address

2019-08-08 Thread Jason Wang
We should not setup uaddr for the invalid address, otherwise we may try to pin or prefetch mapping of wrong pages. Fixes: 7f466032dc9e ("vhost: access vq metadata through kernel virtual address") Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 3 ++- 1 file changed, 2 insertions(+), 1 dele

[PATCH V5 9/9] vhost: do not return -EAGAIN for non blocking invalidation too early

2019-08-08 Thread Jason Wang
Instead of returning -EAGAIN unconditionally, we'd better do that only we're sure the range is overlapped with the metadata area. Reported-by: Jason Gunthorpe Fixes: 7f466032dc9e ("vhost: access vq metadata through kernel virtual address") Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 3

[PATCH V5 5/9] vhost: mark dirty pages during map uninit

2019-08-08 Thread Jason Wang
We don't mark dirty pages if the map was teared down outside MMU notifier. This will lead untracked dirty pages. Fixing by marking dirty pages during map uninit. Reported-by: Michael S. Tsirkin Fixes: 7f466032dc9e ("vhost: access vq metadata through kernel virtual address") Signed-off-by: Jason W

[PATCH V5 8/9] vhost: correctly set dirty pages in MMU notifiers callback

2019-08-08 Thread Jason Wang
We need make sure there's no reference on the map before trying to mark set dirty pages. Reported-by: Michael S. Tsirkin Fixes: 7f466032dc9e ("vhost: access vq metadata through kernel virtual address") Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 5 ++--- 1 file changed, 2 insertions(+

[PATCH V5 0/9] Fixes for vhost metadata acceleration

2019-08-08 Thread Jason Wang
Hi all: This series try to fix several issues introduced by meta data accelreation series. Please review. Changes from V4: - switch to use spinlock synchronize MMU notifier with accessors Changes from V3: - remove the unnecessary patch Changes from V2: - use seqlck helper to synchronize MMU not

RE: [PATCH V5 2/2] cpufreq: intel_pstate: Implement QoS supported freq constraints

2019-08-08 Thread Doug Smythies
On 2019.08.08 19:23 Viresh Kumar wrote: > --- > V4->V5: > - dev_pm_qos_update_request() can return 1 in case of success, handle > that. O.K. thanks, That fixes the "Fail" messages I was getting with V4. ... Doug

[PATCH net-next v6 1/3] net: phy: modify assignment to OR for dev_flags in phy_attach_direct

2019-08-08 Thread Tao Ren
Modify the assignment to OR when dealing with phydev->dev_flags in phy_attach_direct function, and this is to make sure dev_flags set in driver's probe callback won't be lost. Suggested-by: Andrew Lunn CC: Heiner Kallweit CC: Vladimir Oltean Signed-off-by: Tao Ren Reviewed-by: Andrew Lunn ---

[PATCH net-next v6 2/3] net: phy: add support for clause 37 auto-negotiation

2019-08-08 Thread Tao Ren
From: Heiner Kallweit This patch adds support for clause 37 1000Base-X auto-negotiation. Signed-off-by: Heiner Kallweit Signed-off-by: Tao Ren --- Changes in v6: - add "Signed-off-by: Tao Ren " Changes in v1-v5: - nothing changed. It's given v6 just to align with the version of patch

Re: [PATCH v2 2/4] soundwire: core: add device tree support for slave devices

2019-08-08 Thread Vinod Koul
On 08-08-19, 16:17, Srinivas Kandagatla wrote: > Thanks for taking time to review. > > On 08/08/2019 16:00, Pierre-Louis Bossart wrote: > > > > > @@ -35,6 +36,7 @@ static int sdw_slave_add(struct sdw_bus *bus, > > >   slave->dev.release = sdw_slave_release; > > >   slave->dev.bus = &sdw_b

[PATCH net-next v6 3/3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-08 Thread Tao Ren
The BCM54616S PHY cannot work properly in RGMII->1000Base-KX mode (for example, on Facebook CMM BMC platform), mainly because genphy functions are designed for copper links, and 1000Base-X (clause 37) auto negotiation needs to be handled differently. This patch enables 1000Base-X support for BCM54

[PATCH] KVM: LAPIC: Periodically revaluate appropriate lapic_timer_advance_ns

2019-08-08 Thread Wanpeng Li
From: Wanpeng Li Even if for realtime CPUs, cache line bounces, frequency scaling, presence of higher-priority RT tasks, etc can cause different response. These interferences should be considered and periodically revaluate whether or not the lapic_timer_advance_ns value is the best, do nothing

Re: [PATCH v2] net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context

2019-08-08 Thread David Miller
From: Fuqian Huang Date: Fri, 9 Aug 2019 13:35:39 +0800 > As spin_unlock_irq will enable interrupts. > Function tsi108_stat_carry is called from interrupt handler tsi108_irq. > Interrupts are enabled in interrupt handler. > Use spin_lock_irqsave/spin_unlock_irqrestore instead of spin_(un)lock_ir

Re: [PATCH V4 0/9] Fixes for metadata accelreation

2019-08-08 Thread Jason Wang
On 2019/8/9 下午1:15, David Miller wrote: From: Jason Wang Date: Wed, 7 Aug 2019 03:06:08 -0400 This series try to fix several issues introduced by meta data accelreation series. Please review. ... My impression is that patch #7 will be changed to use spinlocks so there will be a v5. Y

Re: [PATCH v2] team: Add vlan tx offload to hw_enc_features

2019-08-08 Thread David Miller
From: YueHaibing Date: Thu, 8 Aug 2019 14:22:47 +0800 > We should also enable team's vlan tx offload in hw_enc_features, > pass the vlan packets to the slave devices with vlan tci, let the > slave handle vlan tunneling offload implementation. > > Fixes: 3268e5cb494d ("team: Advertise tunneling o

Re: [PATCH] liquidio: Use pcie_flr() instead of reimplementing it

2019-08-08 Thread David Miller
From: Denis Efremov Date: Thu, 8 Aug 2019 07:57:53 +0300 > octeon_mbox_process_cmd() directly writes the PCI_EXP_DEVCTL_BCR_FLR > bit, which bypasses timing requirements imposed by the PCIe spec. > This patch fixes the function to use the pcie_flr() interface instead. > > Signed-off-by: Denis E

[PATCH v2] net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context

2019-08-08 Thread Fuqian Huang
As spin_unlock_irq will enable interrupts. Function tsi108_stat_carry is called from interrupt handler tsi108_irq. Interrupts are enabled in interrupt handler. Use spin_lock_irqsave/spin_unlock_irqrestore instead of spin_(un)lock_irq in IRQ context to avoid this. Signed-off-by: Fuqian Huang --- C

Re: [PATCH net-next] fq_codel: remove set but not used variables 'prev_ecn_mark' and 'prev_drop_count'

2019-08-08 Thread David Miller
From: David Miller Date: Thu, 08 Aug 2019 22:31:36 -0700 (PDT) > From: YueHaibing > Date: Wed, 7 Aug 2019 21:10:55 +0800 > >> Fixes gcc '-Wunused-but-set-variable' warning: >> >> net/sched/sch_fq_codel.c: In function fq_codel_dequeue: >> net/sched/sch_fq_codel.c:288:23: warning: variable prev_

Re: [PATCH net-next] fq_codel: remove set but not used variables 'prev_ecn_mark' and 'prev_drop_count'

2019-08-08 Thread David Miller
From: YueHaibing Date: Wed, 7 Aug 2019 21:10:55 +0800 > Fixes gcc '-Wunused-but-set-variable' warning: > > net/sched/sch_fq_codel.c: In function fq_codel_dequeue: > net/sched/sch_fq_codel.c:288:23: warning: variable prev_ecn_mark set but not > used [-Wunused-but-set-variable] > net/sched/sch_fq

Re: [PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset

2019-08-08 Thread Tao Ren
On 8/8/19 4:03 PM, Andrew Lunn wrote: >> After giving it more thought, I'm thinking about adding ncsi dt node >> with following structure (mac/ncsi similar to mac/mdio/phy): >> >> &mac0 { >> /* MAC properties... */ >> >> use-ncsi; > > This property seems to be specific to Faraday FTGMAC100

Re: [PATCH net-next] net: dsa: sja1105: remove set but not used variables 'tx_vid' and 'rx_vid'

2019-08-08 Thread David Miller
From: YueHaibing Date: Wed, 7 Aug 2019 21:08:56 +0800 > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/dsa/sja1105/sja1105_main.c: In function sja1105_fdb_dump: > drivers/net/dsa/sja1105/sja1105_main.c:1226:14: warning: > variable tx_vid set but not used [-Wunused-but-set-variab

Re: [PATCH net-next v3 00/10] net: stmmac: Improvements for -next

2019-08-08 Thread David Miller
From: Jose Abreu Date: Wed, 7 Aug 2019 10:03:08 +0200 > [ This is just a rebase of v2 into latest -next in order to avoid a merge > conflict ] > > Couple of improvements for -next tree. More info in commit logs. Series applied, thank you.

linux-next: manual merge of the usb tree with the net-next tree

2019-08-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the usb tree got conflicts in: drivers/staging/Kconfig drivers/staging/Makefile between commit: 955315b0dc8c ("qlge: Move drivers/net/ethernet/qlogic/qlge/ to drivers/staging/qlge/") from the net-next tree and commit: 71ed79b0e4be ("USB: Move wusbc

Re: [PATCH] net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context

2019-08-08 Thread David Miller
From: Fuqian Huang Date: Wed, 7 Aug 2019 15:43:00 +0800 > @@ -372,8 +372,9 @@ static void tsi108_stat_carry(struct net_device *dev) > { > struct tsi108_prv_data *data = netdev_priv(dev); > u32 carry1, carry2; > + unsigned long flags; Please preserve reverse christmas tree order

Re: [PATCH V4 0/9] Fixes for metadata accelreation

2019-08-08 Thread David Miller
From: Jason Wang Date: Wed, 7 Aug 2019 03:06:08 -0400 > This series try to fix several issues introduced by meta data > accelreation series. Please review. ... My impression is that patch #7 will be changed to use spinlocks so there will be a v5.

Re: [PATCH v1] Bluetooth: hci_qca: wait for Pre shutdown to command complete event before sending the Power off pulse

2019-08-08 Thread Harish Bandi
Hi Matthias, On 2019-08-08 20:29, Matthias Kaehlcke wrote: On Thu, Aug 08, 2019 at 02:55:53PM +0530, Harish Bandi wrote: When SoC receives pre shut down command, it share the same with other COEX shared clients. So SoC needs a short time after sending VS pre shutdown command before turning off

Re: [PATCH v2 2/4] soundwire: core: add device tree support for slave devices

2019-08-08 Thread Vinod Koul
On 08-08-19, 15:45, Srinivas Kandagatla wrote: > This patch adds support to parsing device tree based > SoundWire slave devices. > > Signed-off-by: Srinivas Kandagatla > --- > drivers/soundwire/bus.c | 2 ++ > drivers/soundwire/bus.h | 1 + > drivers/soundwire/slave.c | 47

Re: [PATCH net-next v5 2/3] net: phy: add support for clause 37 auto-negotiation

2019-08-08 Thread Tao Ren
On 8/8/19 9:58 PM, Vladimir Oltean wrote: > On Fri, 9 Aug 2019 at 02:48, Tao Ren wrote: >> >> From: Heiner Kallweit >> >> This patch adds support for clause 37 1000Base-X auto-negotiation. >> It's compile-tested only as I don't have fiber equipment. >> >> Signed-off-by: Heiner Kallweit >> --- >

Re: [PATCH v2] bonding: Add vlan tx offload to hw_enc_features

2019-08-08 Thread David Miller
From: YueHaibing Date: Wed, 7 Aug 2019 10:19:59 +0800 > As commit 30d8177e8ac7 ("bonding: Always enable vlan tx offload") > said, we should always enable bonding's vlan tx offload, pass the > vlan packets to the slave devices with vlan tci, let them to handle > vlan implementation. > > Now if en

Re: [PATCH v2] net: sched: sch_taprio: fix memleak in error path for sched list parse

2019-08-08 Thread David Miller
From: Ivan Khoronzhuk Date: Wed, 7 Aug 2019 01:45:40 +0300 > In error case, all entries should be freed from the sched list > before deleting it. For simplicity use rcu way. > > Fixes: 5a781ccbd19e46 ("tc: Add support for configuring the taprio scheduler") > Acked-by: Vinicius Costa Gomes > Si

Re: [PATCH v2 1/4] dt-bindings: soundwire: add slave bindings

2019-08-08 Thread Vinod Koul
On 08-08-19, 15:45, Srinivas Kandagatla wrote: > This patch adds bindings for Soundwire Slave devices which includes how > SoundWire enumeration address is represented in SoundWire slave device > tree nodes. > > Signed-off-by: Srinivas Kandagatla > --- > .../devicetree/bindings/soundwire/slave.t

Re: [PATCH net-next v5 2/3] net: phy: add support for clause 37 auto-negotiation

2019-08-08 Thread Vladimir Oltean
On Fri, 9 Aug 2019 at 02:48, Tao Ren wrote: > > From: Heiner Kallweit > > This patch adds support for clause 37 1000Base-X auto-negotiation. > It's compile-tested only as I don't have fiber equipment. > > Signed-off-by: Heiner Kallweit > --- This needs your signed-off-by as well. > drivers/ne

Re: [PATCH v2 0/4] ASoC: codecs: Add WSA881x Smart Speaker amplifier support

2019-08-08 Thread Vinod Koul
On 08-08-19, 15:45, Srinivas Kandagatla wrote: > This patchset adds support to WSA8810/WSA8815 Class-D Smart Speaker > Amplifier which is SoundWire interfaced. > This also adds support to some missing bits in SoundWire bus layer like > Device Tree support and module_sdw_driver macro.

Re: [PATCH net] net: phy: rtl8211f: do a double read to get real time link status

2019-08-08 Thread Yonglong Liu
On 2019/8/9 4:34, Andrew Lunn wrote: > On Thu, Aug 08, 2019 at 10:01:39PM +0200, Heiner Kallweit wrote: >> On 08.08.2019 21:40, Andrew Lunn wrote: @@ -568,6 +568,11 @@ int phy_start_aneg(struct phy_device *phydev) if (err < 0) goto out_unlock; + /* The P

Re: [PATCH v2 1/4] dt-bindings: soundwire: add slave bindings

2019-08-08 Thread Vinod Koul
On 08-08-19, 20:52, Mark Brown wrote: > On Thu, Aug 08, 2019 at 05:48:56PM +0100, Srinivas Kandagatla wrote: > > On 08/08/2019 16:58, Pierre-Louis Bossart wrote: > > > > > +- sdw-instance-id: Should be ('Instance ID') from SoundWire > > > > +  Enumeration Address. Instance ID is for the ca

Re: [PATCH] soundwire: fix regmap dependencies and align with other serial links

2019-08-08 Thread Vinod Koul
On 18-07-19, 18:02, Pierre-Louis Bossart wrote: > The existing code has a mixed select/depend usage which makes no sense. > > config SOUNDWIRE_BUS >tristate >select REGMAP_SOUNDWIRE > > config REGMAP_SOUNDWIRE > tristate > depends on SOUNDWIRE_BUS > > Let's remove

Re: [PATCH v1] Bluetooth: hci_qca: wait for Pre shutdown to command complete event before sending the Power off pulse

2019-08-08 Thread Harish Bandi
Hi Bala, On 2019-08-08 16:25, Balakrishna Godavarthi wrote: Hi Harish, On 2019-08-08 14:55, Harish Bandi wrote: When SoC receives pre shut down command, it share the same with other COEX shared clients. So SoC needs a short time after sending VS pre shutdown command before turning off the regu

Re: [PATCH v3 1/2] PCI: PCIe: ASPM: Introduce pcie_aspm_enabled()

2019-08-08 Thread Bjorn Helgaas
s|PCI: PCIe: ASPM: Introduce pcie_aspm_enabled()|PCI/ASPM: Add pcie_aspm_enabled()| to match previous history. On Thu, Aug 08, 2019 at 11:55:07PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Add a function checking whether or not PCIe ASPM has been enabled for > a given device

[PATCH V15 12/13] phy: tegra: Add PCIe PIPE2UPHY support

2019-08-08 Thread Vidya Sagar
Synopsys DesignWare core based PCIe controllers in Tegra 194 SoC interface with Universal PHY (UPHY) module through a PIPE2UPHY (P2U) module. For each PCIe lane of a controller, there is a P2U unit instantiated at hardware level. This driver provides support for the programming required for each P2

[PATCH V15 13/13] PCI: tegra: Add Tegra194 PCIe support

2019-08-08 Thread Vidya Sagar
Add support for Synopsys DesignWare core IP based PCIe host controller present in Tegra194 SoC. Signed-off-by: Vidya Sagar Acked-by: Thierry Reding --- V15: * Refactored the code to use only tegra_bpmp_transfer() API in .probe() as well as .resume_noirq() path. This is made possible by http:

[PATCH V15 11/13] dt-bindings: PHY: P2U: Add Tegra194 P2U block

2019-08-08 Thread Vidya Sagar
Add support for Tegra194 P2U (PIPE to UPHY) module block which is a glue module instantiated one for each PCIe lane between Synopsys DesignWare core based PCIe IP and Universal PHY block. Signed-off-by: Vidya Sagar Reviewed-by: Rob Herring Acked-by: Thierry Reding Acked-by: Kishon Vijay Abraham

[PATCH V15 03/13] PCI: dwc: Perform dbi regs write lock towards the end

2019-08-08 Thread Vidya Sagar
Some of DesignWare core's DBI registers (a.k.a configuration space registers) are write-protected with a lock without enabling which they are read-only by default. These write-protected registers are implementation specific. Tegra194's BAR-0 register which is at offset 0x10 in the configuration spa

[PATCH V15 05/13] PCI: dwc: Add ext config space capability search API

2019-08-08 Thread Vidya Sagar
Add extended configuration space capability search API using struct dw_pcie * pointer. Signed-off-by: Vidya Sagar Acked-by: Gustavo Pimentel Acked-by: Thierry Reding --- V15: * None V14: * Added a full stop(.) at the end of commit message. V13: * None V12: * None V11: * None V10: * None V

[PATCH V15 10/13] dt-bindings: PCI: tegra: Add device tree support for Tegra194

2019-08-08 Thread Vidya Sagar
Add support for Tegra194 PCIe controllers. These controllers are based on Synopsys DesignWare core IP. Signed-off-by: Vidya Sagar Reviewed-by: Rob Herring Acked-by: Thierry Reding --- V15: * None V14: * None V13: * None V12: * None V11: * None V10: * None V9: * Added Acked-by from Thierry

Re: [PATCH v2 2/2] nvme-pci: Allow PCI bus-level PM to be used if ASPM is disabled

2019-08-08 Thread Bjorn Helgaas
On Thu, Aug 08, 2019 at 10:41:56PM +0200, Rafael J. Wysocki wrote: > On Thu, Aug 8, 2019, 20:39 Bjorn Helgaas wrote: > > On Thu, Aug 08, 2019 at 04:47:45PM +0200, Rafael J. Wysocki wrote: > > > On Thu, Aug 8, 2019 at 3:43 PM Bjorn Helgaas wrote: > > > > On Thu, Aug 08, 2019 at 12:10:06PM +0200, R

[PATCH V15 07/13] dt-bindings: PCI: designware: Add binding for CDM register check

2019-08-08 Thread Vidya Sagar
Add support to enable CDM (Configuration Dependent Module) registers check for any data corruption. CDM registers include standard PCIe configuration space registers, Port Logic registers and iATU and DMA registers. Refer Section S.4 of Synopsys DesignWare Cores PCI Express Controller Databook Vers

[PATCH V15 04/13] PCI: dwc: Move config space capability search API

2019-08-08 Thread Vidya Sagar
Move PCIe config space capability search API to common DesignWare file as this can be used by both host and ep mode codes. Signed-off-by: Vidya Sagar Acked-by: Gustavo Pimentel Reviewed-by: Thierry Reding --- V15: * None V14: * None V13: * None V12: * None V11: * None V10: * None V9: * No

[PATCH V15 08/13] PCI: dwc: Add support to enable CDM register check

2019-08-08 Thread Vidya Sagar
Add support to enable CDM (Configuration Dependent Module) register check for any data corruption based on the device-tree flag 'snps,enable-cdm-check'. Signed-off-by: Vidya Sagar Acked-by: Gustavo Pimentel Reviewed-by: Thierry Reding --- V15: * None V14: * None V13: * None V12: * None V11:

[PATCH V15 09/13] dt-bindings: Add PCIe supports-clkreq property

2019-08-08 Thread Vidya Sagar
Some host controllers need to know the existence of clkreq signal routing to downstream devices to be able to advertise low power features like ASPM L1 substates. Without clkreq signal routing being present, enabling ASPM L1 substates might lead to downstream devices being disconnected from the bus

[PATCH V15 06/13] PCI: dwc: Export dw_pcie_wait_for_link() API

2019-08-08 Thread Vidya Sagar
Export dw_pcie_wait_for_link() API to be able to build drivers using this API as loadable modules (Ex:- Tegra194 PCIe host controller driver). Signed-off-by: Vidya Sagar --- V15: * None V14: * This is a new patch in V14 series. drivers/pci/controller/dwc/pcie-designware.c | 1 + 1 file changed

[PATCH V15 02/13] PCI: Disable MSI for Tegra root ports

2019-08-08 Thread Vidya Sagar
Tegra PCIe rootports don't generate MSI interrupts for PME and AER events. Since PCIe spec (Ref: r4.0 sec 7.7.1.2 and 7.7.2.2) doesn't support using a mix of INTx and MSI/MSI-X, MSI needs to be disabled to avoid root ports service drivers registering their respective ISRs with MSI interrupt and to

[PATCH V15 01/13] PCI: Add #defines for some of PCIe spec r4.0 features

2019-08-08 Thread Vidya Sagar
Add #defines only for the Data Link Feature and Physical Layer 16.0 GT/s features as defined in PCIe spec r4.0, sec 7.7.4 for Data Link Feature and sec 7.7.5 for Physical Layer 16.0 GT/s. Signed-off-by: Vidya Sagar Reviewed-by: Thierry Reding Acked-by: Bjorn Helgaas --- V15: * None V14: * Adde

[PATCH V15 00/13] PCI: tegra: Add Tegra194 PCIe support

2019-08-08 Thread Vidya Sagar
Tegra194 has six PCIe controllers based on Synopsys DesignWare core. There are two Universal PHY (UPHY) blocks with each supporting 12(HSIO: Hisg Speed IO) and 8(NVHS: NVIDIA High Speed) lanes respectively. Controllers:0~4 use UPHY lanes from HSIO brick whereas Controller:5 uses UPHY lanes from NVH

Re: [PATCH 2/2] regulator: qcom-rpmh: Add support for SM8150

2019-08-08 Thread Vinod Koul
On 08-08-19, 20:32, Bjorn Andersson wrote: > On Thu 08 Aug 02:33 PDT 2019, Vinod Koul wrote: > > diff --git a/drivers/regulator/qcom-rpmh-regulator.c > > b/drivers/regulator/qcom-rpmh-regulator.c > [..] > > +static const struct rpmh_vreg_hw_data pmic5_bob = { > > + .regulator_type = VRM, > > +

Re: linux-next: Tree for Aug 8

2019-08-08 Thread Masahiro Yamada
ion > > The intermediate variables __subdir-{y,m} are unneeded. > > Signed-off-by: Masahiro Yamada > > the file modules.builtin starts to miss a lot of entries when building > the kernel tree. Reverting that patch on top of linux-next 20190808 > restores the old beha

Re: [PATCH 1/2] regulator: dt-bindings: Add PM8150x compatibles

2019-08-08 Thread Vinod Koul
On 08-08-19, 20:29, Bjorn Andersson wrote: > On Thu 08 Aug 02:33 PDT 2019, Vinod Koul wrote: > > > Add PM8150, PM8150L and PM8009 compatibles for these PMICs found > > in some Qualcomm platforms. > > > > Signed-off-by: Vinod Koul > > --- > > .../devicetree/bindings/regulator/qcom,rpmh-regulator

[PATCH 1/2] arm64: defconfig: Cleanup the defconfig

2019-08-08 Thread Alistair Francis
Re-run savedefconfig to cleanup the defconfig. Signed-off-by: Alistair Francis --- arch/arm64/configs/defconfig | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0e58ef02880c..b17ed20e17

[PATCH 2/2] arm64: defconfig: Enable sound drivers on Allwinner devices

2019-08-08 Thread Alistair Francis
Enable the sound drivers for Allwinner devices. Signed-off-by: Alistair Francis --- arch/arm64/configs/defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index b17ed20e1754..3dc12c3b9bf8 100644 --- a/arch/arm64/configs/

Re: [EXTERNAL]Re: MIPS Cache Coherency Issue

2019-08-08 Thread Chris Packham
On Tue, 2019-08-06 at 01:43 +, Tommy Jin wrote: > Hi Chris, > > If you're busy with other things, maybe I can give you a hand, so how > can I replicate this issue locally? Thanks for the offer but I'm not sure you'll be able to do much without our specific hardware. > > From your log, I can

Re: linux-next: build warning after merge of the block tree

2019-08-08 Thread Jens Axboe
On 8/8/19 9:00 PM, Stephen Rothwell wrote: > Hi all, > > After merging the block tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/lightnvm/pblk-read.c: In function 'pblk_submit_read_gc': > drivers/lightnvm/pblk-read.c:421:18: warning: unused variable 'geo'

RE: [EXT] Re: i2c: imx: support slave mode for imx I2C driver

2019-08-08 Thread Biwen Li
> > Hi, > > On Thu, Aug 08, 2019 at 11:53:43AM +0800, Biwen Li wrote: > > The patch supports slave mode for imx I2C driver > > > > Signed-off-by: Biwen Li > > --- > > drivers/i2c/busses/i2c-imx.c | 199 > > --- > > 1 file changed, 185 insertions(+), 14 deletions(

linux-next: build warning after merge of the block tree

2019-08-08 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/lightnvm/pblk-read.c: In function 'pblk_submit_read_gc': drivers/lightnvm/pblk-read.c:421:18: warning: unused variable 'geo' [-Wunused-variable] struct nvm_geo *geo = &dev->geo;

[PATCH] fs/ceph: use release_pages() directly

2019-08-08 Thread john . hubbard
From: John Hubbard release_pages() has been available to modules since Oct, 2010, when commit 0be8557bcd34 ("fuse: use release_pages()") added EXPORT_SYMBOL(release_pages). However, this ceph code was still using a workaround. Remove the workaround, and call release_pages() directly. Cc: Jeff L

[PATCH 0/3] x86/mtrr, pat: make PAT independent from MTRR

2019-08-08 Thread Isaku Yamahata
Make PAT(Page Attribute Table) independent from MTRR(Memory Type Range Register). Some environments (mainly virtual ones) support only PAT, but not MTRR because PAT replaces MTRR. It's tricky and no gain to support both MTRR and PAT except compatibility. So some VM technologies don't support MTRR,

[PATCH 2/3] x86/mtrr: split common funcs from generic.c

2019-08-08 Thread Isaku Yamahata
This is a preparation for make PAT(Page Attribute Table) independent from MTRR(Memory Type Range Register). It renames prefix of common functions in mtrr/generic.c from mtrr_ to mtrr_pat_ which are commonly used by both MTRR and PAT and moves out them from mtrr/generic.c to rendezvous.c. Only prefi

[PATCH 3/3] x86/mtrr, pat: make PAT independent from MTRR

2019-08-08 Thread Isaku Yamahata
This patch makes PAT(Page Attribute Table) independent from MTRR(Memory Type Range Register) Some environments (mainly virtual ones) support only PAT, not MTRR. It's tricky and no gain to support both MTRR and PAT at the same time except compatibility because PAT replaces MTRR. So some VM technolog

[PATCH 1/3] x86/mtrr: split common funcs from mtrr.c

2019-08-08 Thread Isaku Yamahata
This is a preparation for make PAT(Page Attribute Table) independent from MTRR(Memory Type Range Register). It renames prefix of common functions in mtrr.c from mtrr_ to mtrr_pat_ which are commonly used by both MTRR and PAT and moves out them from mtrr.c to rendezvous.c. Only prefix rename and mov

Re: [PATCH] ata: ahci: Lookup PCS register offset based on PCI device ID

2019-08-08 Thread Jens Axboe
On 8/8/19 1:24 PM, Stephen Douthit wrote: > Intel moved the PCS register from 0x92 to 0x94 on Denverton for some > reason, so now we get to check the device ID before poking it on reset. > > Signed-off-by: Stephen Douthit > --- > drivers/ata/ahci.c | 42 +++--

linux-next: manual merge of the sound-asoc tree with the sound tree

2019-08-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the sound-asoc tree got a conflict in: sound/soc/sof/intel/hda-dsp.c between commit: 19abfefd4c76 ("ALSA: hda: Direct MMIO accesses") from the sound tree and commits: fd15f2f5e272 ("ASoC: SOF: Intel: hda: Enable jack detection") d06973515f95 ("ASoC:

Re: [PATCH 2/2] regulator: qcom-rpmh: Add support for SM8150

2019-08-08 Thread Bjorn Andersson
On Thu 08 Aug 02:33 PDT 2019, Vinod Koul wrote: > diff --git a/drivers/regulator/qcom-rpmh-regulator.c > b/drivers/regulator/qcom-rpmh-regulator.c [..] > +static const struct rpmh_vreg_hw_data pmic5_bob = { > + .regulator_type = VRM, > + .ops = &rpmh_regulator_vrm_bypass_ops, > + .volt

Re: [PATCH 1/2] regulator: dt-bindings: Add PM8150x compatibles

2019-08-08 Thread Bjorn Andersson
On Thu 08 Aug 02:33 PDT 2019, Vinod Koul wrote: > Add PM8150, PM8150L and PM8009 compatibles for these PMICs found > in some Qualcomm platforms. > > Signed-off-by: Vinod Koul > --- > .../devicetree/bindings/regulator/qcom,rpmh-regulator.txt | 8 +++- > 1 file changed, 7 insertions(+), 1 del

Re: [PATCH 4.19 00/45] 4.19.66-stable review

2019-08-08 Thread Naresh Kamboju
On Fri, 9 Aug 2019 at 00:39, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.66 release. > There are 45 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Resp

RE: [EXT] Re: i2c: imx: support slave mode for imx I2C driver

2019-08-08 Thread Biwen Li
> > The patch supports slave mode for imx I2C driver > > > > Signed-off-by: Biwen Li > > Wow, this is much simpler than the other approach flying around: > > http://patchwork.ozlabs.org/patch/1124048/ > > Can this one be master and slave on the same bus, too? At the same time, the same bus is i

Re: [PATCH 4.14 00/33] 4.14.138-stable review

2019-08-08 Thread Naresh Kamboju
On Fri, 9 Aug 2019 at 00:41, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.138 release. > There are 33 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

linux-next: manual merge of the sound-asoc tree with the sound tree

2019-08-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the sound-asoc tree (yesterday' version) got a conflict in: sound/soc/intel/skylake/skl.c between commit: 19abfefd4c76 ("ALSA: hda: Direct MMIO accesses") from the sound tree and commit: bcc2a2dc3ba8 ("ASoC: Intel: Skylake: Merge skl_sst and skl into

linux-next: build failure after merge of the sound-asoc tree

2019-08-08 Thread Stephen Rothwell
c/sof/intel/hda-dsp.c:390:2: error: #endif without #if #endif ^ Caused by commit c2f16a94a804 ("Merge branch 'topic/hda-bus-ops-cleanup' of https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound into asoc-5.4") Looks like the merge resolution is not quite ri

Re: [PATCH] genirq/affinity: report extra vectors on uneven nodes

2019-08-08 Thread Ming Lei
On Thu, Aug 08, 2019 at 10:32:24AM -0600, Keith Busch wrote: > On Thu, Aug 08, 2019 at 09:04:28AM +0200, Thomas Gleixner wrote: > > On Wed, 7 Aug 2019, Jon Derrick wrote: > > > The current irq spreading algorithm spreads vectors amongst cpus evenly > > > per node. If a node has more cpus than anoth

[PATCH] regulator: core: Add devres versions of regulator_enable/disable

2019-08-08 Thread Chuhong Yuan
I wrote a coccinelle script to detect possible chances of utilizing devm_() APIs to simplify the driver. The script found 147 drivers in total and 22 of them have be patched. Within the 125 left ones, at least 31 of them (24.8%) are hindered from benefiting from devm_() APIs because of lack of a d

linux-next: build failure after merge of the sound tree

2019-08-08 Thread Stephen Rothwell
Hi all, After merging the sound tree, today's linux-next build (arm multi_v7_defconfig) failed like this: sound/hda/hdac_bus.c: In function 'snd_hdac_aligned_read': sound/hda/hdac_bus.c:228:6: error: implicit declaration of function 'readl'; did you mean 'd_real'? [-Werror=implicit-function-decl

  1   2   3   4   5   6   7   8   9   10   >