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

[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

[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:

[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.

[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

[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 |

[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

[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

[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

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

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 =

[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

[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

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

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.

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

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

[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 ---

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

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] >

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): >> >> { >> /* 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

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

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

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

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 >

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 > --- >

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. >

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

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

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

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

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

[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

[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

[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

[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

[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

[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

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,

[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

[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: *

[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

[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

[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

[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: *

[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

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 > > --- > >

[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

[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 ---

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

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

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

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 = >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

[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

[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

[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

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

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 = _regulator_vrm_bypass_ops, > +

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

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. > >

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

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. > >

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
/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 right. I have used the sound-asoc tree from next-20190808 for today. -- Cheers, Stephen Rothwell pgpz4rErB7zke.pgp Description: OpenPGP digital signature

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

[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

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'?

[PATCH net-next 02/12] net: hns3: fix interrupt clearing error for VF

2019-08-08 Thread Huazhong Tan
Currently, VF driver has two kinds of interrupts, reset & CMDQ RX. For revision 0x21, according to the UM, each interrupt should be cleared by write 0 to the corresponding bit, but the implementation writes 0 to the whole register in fact, it will clear other interrupt at the same time, then the

Re: [RFC PATCH v2] mm: slub: print kernel addresses in slub debug messages

2019-08-08 Thread Matthew Wilcox
On Fri, Aug 09, 2019 at 09:08:37AM +0800, miles.c...@mediatek.com wrote: > Possible approaches are: > 1. stop printing kernel addresses > 2. print with %pK, > 3. print with %px. No. The point of obscuring kernel addresses is that if the attacker manages to find a way to get the kernel to spit

Re: [PATCH V2 04/10] cpufreq: powerpc_cbe: Switch to QoS requests instead of cpufreq notifier

2019-08-08 Thread Viresh Kumar
On 23-07-19, 11:44, Viresh Kumar wrote: > The cpufreq core now takes the min/max frequency constraints via QoS > requests and the CPUFREQ_ADJUST notifier shall get removed later on. > > Switch over to using the QoS request for maximum frequency constraint > for ppc_cbe_cpufreq driver. > >

[PATCH net-next 11/12] net: hns3: add handshake with VF for PF reset

2019-08-08 Thread Huazhong Tan
Before PF asserting function reset, it should make sure that all its VFs have been ready, otherwise, it will cause some hardware errors. So this patch adds function hclge_func_reset_sync_vf() to synchronize VF before asserting PF function reset. For new firmware which supports command

[PATCH net-next 08/12] net: hns3: add check for max TX BD num for tso and non-tso case

2019-08-08 Thread Huazhong Tan
From: Yunsheng Lin Hardware supports up to 8 TX BD for non-TSO skb and 63 TX BD for TSO skb. Currently hns3 driver does not check the max BD num that required by a skb before filling desc, which may cause the hardware to issue a RAS error throug PCIe AER. This patch adds the max BD num check

[PATCH net-next 09/12] net: hns3: add function display NCL_CONFIG info

2019-08-08 Thread Huazhong Tan
From: Yufeng Mo This adds a new function hclge_ncl_config_data_print() to print the data of NCL_CONFIG, to make the code more readable. Also, using macro replaces some magic number. Signed-off-by: Yufeng Mo Reviewed-by: Peng Li Signed-off-by: Huazhong Tan ---

[PATCH net-next 03/12] net: hns3: clean up for vlan handling in hns3_fill_desc_vtags

2019-08-08 Thread Huazhong Tan
From: Yunsheng Lin This patch refactors the hns3_fill_desc_vtags function by avoiding passing too many parameters, reducing indent level and some other clean up. This patch also adds the hns3_fill_skb_desc function to fill the first desc of a skb. Signed-off-by: Yunsheng Lin Reviewed-by: Peng

[PATCH net-next 04/12] net: hns3: add input length check for debugfs write function

2019-08-08 Thread Huazhong Tan
From: Yufeng Mo If the input length reaches the maximum value of size_t, the reverse is triggered when 1 is added. In addition, there is no need to have such a large length. Therefore, the input length should be checked and the value should be less than or equal to 1024. Signed-off-by: Yufeng

[PATCH net-next 06/12] net: hns3: add DFX registers information for ethtool -d

2019-08-08 Thread Huazhong Tan
From: Guangbin Huang Now we can use ethtool -d command to dump some registers. However, these registers information is not enough to find out where the problem is. This patch adds DFX registers information after original registers when use ethtool -d commmand to dump registers. Also, using

Re: [PATCH V2 05/10] ACPI: cpufreq: Switch to QoS requests instead of cpufreq notifier

2019-08-08 Thread Viresh Kumar
On 06-08-19, 14:17, Viresh Kumar wrote: > On 06-08-19, 10:01, Rafael J. Wysocki wrote: > > Yes, it does, thanks! > > > > [No need to resend, I'll take it from this message.] > > Forgot to write CPU in caps in print messages, updated now. And here is another version.

[PATCH net-next 07/12] net: hns3: add some statitics info to tx process

2019-08-08 Thread Huazhong Tan
From: Yunsheng Lin This patch adds tx_vlan_err, tx_l4_proto_err, tx_l2l3l4_err and tx_tso_err counter to tx process, in order to better debug the desc filling error. This patch also adds a missing u64_stats_update_* around ring->stats.sw_err_cnt and adds hns3_rl_err to limit the error printing

[PATCH net-next 10/12] net: hns3: refine MAC pause statistics querying function

2019-08-08 Thread Huazhong Tan
From: Yufeng Mo This patch refines the interface for querying MAC pause statistics, and adds structure hns3_mac_stats to keep the count of TX & RX. Signed-off-by: Yufeng Mo Reviewed-by: Peng Li Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 11

[PATCH net-next 00/12] net: hns3: add some bugfixes & optimizations & cleanups for HNS3 driver

2019-08-08 Thread Huazhong Tan
This patch-set includes code optimizations, bugfixes and cleanups for the HNS3 ethernet controller driver. [patch 01/12] fixes a GFP flag error. [patch 02/12] fixes a VF interrupt error. [patch 03/12] adds a cleanup for VLAN handling. [patch 04/12] fixes a bug in debugfs. [patch 05/12]

[PATCH net-next 05/12] net: hns3: modify how pause options is displayed

2019-08-08 Thread Huazhong Tan
From: Yonglong Liu Currently, the pause options of HNS3 shown like this: "RX/TX" is always the same with "RX negotiated/TX negotiated". Because of the driver covered the value of "RX/TX" with the value of "RX negotiated/TX negotiated" after adjust link. This patch records the pause

[PATCH net-next 01/12] net: hns3: fix GFP flag error in hclge_mac_update_stats()

2019-08-08 Thread Huazhong Tan
From: Zhongzhu Liu When CONFIG_DEBUG_ATOMIC_SLEEP on, calling kzalloc with GFP_KERNEL in hclge_mac_update_stats() will get below warning: [ 52.514677] BUG: sleeping function called from invalid context at mm/slab.h:501 [ 52.522051] in_atomic(): 0, irqs_disabled(): 0, pid: 1015, name:

[PATCH net-next 12/12] net: hns3: refine some macro definitions

2019-08-08 Thread Huazhong Tan
From: Guojia Liao Macro arguments should be enclosed in parentheses, in case of expression argument, but parentheses of pure number in macro definition should be removed for simplicity. Signed-off-by: Guojia Liao Signed-off-by: Guangbin Huang Signed-off-by: Huazhong Tan ---

  1   2   3   4   5   6   7   8   9   10   >