Re: [PATCH net-next v2] net: dsa: mv88e6xxx: extend PTP gettime function to read system clock

2019-08-05 Thread Richard Cochran
On Mon, Aug 05, 2019 at 07:12:40PM +0200, Hubert Feurstein wrote: > It got improved, but you still have the unpredictable latencies caused by the > mdio_done-completion (=> wait_for_completion_timeout) in imx_fec. Yes, that is the important point. Please take a look at other mmi_bus.write() imple

Re: [PATCH v9 04/11] x86/entry/64: Adapt assembly for PIE support

2019-08-05 Thread Borislav Petkov
On Tue, Jul 30, 2019 at 12:12:48PM -0700, Thomas Garnier wrote: > Change the assembly code to use only relative references of symbols for the > kernel to be PIE compatible. > > Position Independent Executable (PIE) support will allow to extend the > KASLR randomization range below 0x80

Re: [PATCH]][next] selftests: nettest: fix spelling mistake: "potocol" -> "protocol"

2019-08-05 Thread David Miller
From: Colin King Date: Mon, 5 Aug 2019 11:52:11 +0100 > From: Colin Ian King > > There is a spelling mistake in an error messgae. Fix it. > > Signed-off-by: Colin Ian King Applied to net-next.

Re: [PATCH v3] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-05 Thread Tyler Hicks
On 2019-08-05 18:44:27, Roberto Sassu wrote: > Commit c78719203fc6 ("KEYS: trusted: allow trusted.ko to initialize w/o a > TPM") allows the trusted module to be loaded even if a TPM is not found, to > avoid module dependency problems. > > However, trusted module initialization can still fail if th

Re: [RFC] net: dsa: mv88e6xxx: ptp: improve phc2sys precision for mv88e6xxx switch in combination with imx6-fec

2019-08-05 Thread Richard Cochran
On Fri, Aug 02, 2019 at 06:32:48PM +0200, Hubert Feurstein wrote: > diff --git a/drivers/net/ethernet/freescale/fec_main.c > b/drivers/net/ethernet/freescale/fec_main.c > index 2f6057e7335d..20f589dc5b8b 100644 > --- a/drivers/net/ethernet/freescale/fec_main.c > +++ b/drivers/net/ethernet/freesca

Re: [RFC PATCH 1/2] dt-bindings: net: macb: Add new property for PS SGMII only

2019-08-05 Thread Andrew Lunn
> Even with the use of this interrupt, the link status actions (link print and > netif ops) will still be required. And also the need for macb_open to > proceed without phydev. Could you please let me know if that is acceptable > to patch or if there's a cleaner way to > report this link status? I

[PATCH] Revert "mwifiex: fix system hang problem after resume"

2019-08-05 Thread Brian Norris
This reverts commit 437322ea2a36d112e20aa7282c869bf924b3a836. This above-mentioned "fix" does not actually do anything to prevent a race condition. It simply papers over it so that the issue doesn't appear. If this is a real problem, it should be explained better than the above commit does, and a

Re: [PATCH 3/3] hugetlbfs: don't retry when pool page allocations start to fail

2019-08-05 Thread Mike Kravetz
On 8/5/19 2:28 AM, Vlastimil Babka wrote: > On 8/3/19 12:39 AM, Mike Kravetz wrote: >> When allocating hugetlbfs pool pages via /proc/sys/vm/nr_hugepages, >> the pages will be interleaved between all nodes of the system. If >> nodes are not equal, it is quite possible for one node to fill up >> be

Re: [PATCH net-next v2] net: dsa: mv88e6xxx: extend PTP gettime function to read system clock

2019-08-05 Thread Hubert Feurstein
Hi Andrew, Am Mo., 5. Aug. 2019 um 15:58 Uhr schrieb Andrew Lunn : > > On Mon, Aug 05, 2019 at 10:26:42AM +0200, Hubert Feurstein wrote: > > From: Hubert Feurstein > > Hi Hubert > > In your RFC patch, there was some interesting numbers. Can you provide > numbers of just this patch? How much of an

Re: [PATCH] iio: adc: max9611: Fix temperature reading in probe

2019-08-05 Thread Jonathan Cameron
On Mon, 5 Aug 2019 17:55:15 +0200 Jacopo Mondi wrote: > The max9611 driver reads the die temperature at probe time to validate > the communication channel. Use the actual read value to perform the test > instead of the read function return value, which was mistakenly used so > far. > > The temp

Re: [PATCH v2 4/8] sched/fair: rework load_balance

2019-08-05 Thread Valentin Schneider
Hi Vincent, Here's another batch of comments, still need to go through some more of it. On 01/08/2019 15:40, Vincent Guittot wrote: > The load_balance algorithm contains some heuristics which have becomes s/becomes/become/ > meaningless since the rework of metrics and the introduction of PELT.

[PATCH] ACPI / CPPC: do not require the _PSD method when using CPPC

2019-08-05 Thread Al Stone
According to the ACPI 6.3 specification, the _PSD method is optional when using CPPC. The underlying assumption appears to be that each CPU can change frequency independently from all other CPUs; _PSD is provided to tell the OS that some processors can NOT do that. However, the acpi_get_psd() fun

Re: [PATCH v2] arm64/prefetch: fix a -Wtype-limits warning

2019-08-05 Thread Will Deacon
On Mon, Aug 05, 2019 at 08:03:10AM -0400, Qian Cai wrote: > > > > On Aug 5, 2019, at 6:00 AM, Will Deacon wrote: > > > > On Fri, Aug 02, 2019 at 08:33:58PM -0400, Qian Cai wrote: > >> The commit d5370f754875 ("arm64: prefetch: add alternative pattern for > >> CPUs without a prefetcher") introdu

[PATCH 3/3] powercap/drivers/idle_inject: Specify the idle state to inject

2019-08-05 Thread Daniel Lezcano
Currently the idle injection framework only allows to inject the deepest idle state available on the system. Give the opportunity to specify which idle state we want to inject by adding a new function helper to set the state and use it when calling play_idle(). Signed-off-by: Daniel Lezcano ---

[PATCH 2/3] cpuidle: play_idle: Specify play_idle with an idle state

2019-08-05 Thread Daniel Lezcano
Currently, the play_idle function does not allow to tell which idle state we want to go. Improve this by passing the idle state as parameter to the function. Signed-off-by: Daniel Lezcano --- drivers/powercap/idle_inject.c | 3 ++- drivers/thermal/intel/intel_powerclamp.c | 4 +++- inc

[PATCH] tools lib traceevent: Fix "robust" test of do_generate_dynamic_list_file

2019-08-05 Thread Steven Rostedt
[ Not sure why I wasn't Cc'd on the original patch (or the one before that) but I guess I need to add tools/lib/traceevent under MAINTAINERs for perhaps tracing? ] From: "Steven Rostedt (VMware)" The tools/lib/traceevent/Makefile had a test added to it to detect a failure of the "nm" when

[PATCH 1/3] cpuidle: play_idle: Make play_idle more flexible

2019-08-05 Thread Daniel Lezcano
The play_idle function has two users, the intel powerclamp and the idle_injection. The idle injection cooling device uses the function via the idle_injection powercap's APIs. Unfortunately, play_idle is currently limited by the idle state depth, by default the deepest idle state is selected. On th

Re: [RFC PATCH 27/40] soundwire: Add Intel resource management algorithm

2019-08-05 Thread Sanyog Kale
On Thu, Jul 25, 2019 at 06:40:19PM -0500, Pierre-Louis Bossart wrote: > This algorithm computes bus parameters like clock frequency, frame > shape and port transport parameters based on active stream(s) running > on the bus. > > This implementation is optimal for Intel platforms. Developers can >

Re: [PATCH 1/3] mm, reclaim: make should_continue_reclaim perform dryrun detection

2019-08-05 Thread Mike Kravetz
On 8/5/19 3:57 AM, Vlastimil Babka wrote: > On 8/5/19 10:42 AM, Vlastimil Babka wrote: >> On 8/3/19 12:39 AM, Mike Kravetz wrote: >>> From: Hillf Danton >>> >>> Address the issue of should_continue_reclaim continuing true too often >>> for __GFP_RETRY_MAYFAIL attempts when !nr_reclaimed and nr_sca

Re: [RFC PATCH 1/2] sys-hypervisor: /sys/hypervisor/type for Hyper-V

2019-08-05 Thread Nuno Das Neves
On 7/29/2019 3:54 PM, Nuno Das Neves wrote: > *From:*Stephen Hemminger > *Sent:* Friday, 26 July 2019 5:43 PM > *To:* Nuno Das Neves ; Nuno Das Neves > ; gre...@linuxfoundation.org > ; Sasha Levin ; > Haiyang Zhang ; KY Srinivasan ; > Michael Kelley > *Cc:* linux-kernel@vger.kernel.org > *Su

Re: [RFC PATCH 28/40] soundwire: intel: handle disabled links

2019-08-05 Thread Sanyog Kale
On Thu, Jul 25, 2019 at 06:40:20PM -0500, Pierre-Louis Bossart wrote: > On most hardware platforms, SoundWire interfaces are pin-muxed with > other interfaces (typically DMIC or I2S) and the status of each link > needs to be checked at boot time. > > For Intel platforms, the BIOS provides a menu t

Re: [PATCH 1/3] mm, reclaim: make should_continue_reclaim perform dryrun detection

2019-08-05 Thread Mike Kravetz
On 8/5/19 1:42 AM, Vlastimil Babka wrote: > On 8/3/19 12:39 AM, Mike Kravetz wrote: >> From: Hillf Danton >> >> Address the issue of should_continue_reclaim continuing true too often >> for __GFP_RETRY_MAYFAIL attempts when !nr_reclaimed and nr_scanned. >> This could happen during hugetlb page all

Re: [PATCH V13 12/12] PCI: tegra: Add Tegra194 PCIe support

2019-08-05 Thread Vidya Sagar
On 8/5/2019 7:31 PM, Lorenzo Pieralisi wrote: On Fri, Aug 02, 2019 at 05:36:43PM +0530, Vidya Sagar wrote: On 7/30/2019 9:19 PM, Lorenzo Pieralisi wrote: On Tue, Jul 23, 2019 at 08:14:08PM +0530, Vidya Sagar wrote: On 7/16/2019 4:52 PM, Lorenzo Pieralisi wrote: On Sat, Jul 13, 2019 at 12:34:3

Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-05 Thread Tyler Hicks
On 2019-08-05 18:51:09, Roberto Sassu wrote: > On 8/5/2019 6:04 PM, Tyler Hicks wrote: > > On 2019-08-05 11:54:19, Mimi Zohar wrote: > > > On Mon, 2019-08-05 at 16:50 +0200, Roberto Sassu wrote: > > > > Regarding Mimi's proposal to avoid the issue by extending the PCR with > > > > zeros, I think it

Re: [PATCH] page flags: prioritize kasan bits over last-cpuid

2019-08-05 Thread Guenter Roeck
On Fri, Aug 02, 2019 at 09:49:02PM -0700, Arnd Bergmann wrote: > ARM64 randdconfig builds regularly run into a build error, especially > when NUMA_BALANCING and SPARSEMEM are enabled but not SPARSEMEM_VMEMMAP: > > #error "KASAN: not enough bits in page flags for tag" > > The last-cpuid bits are

Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-05 Thread Roberto Sassu
On 8/5/2019 6:04 PM, Tyler Hicks wrote: On 2019-08-05 11:54:19, Mimi Zohar wrote: On Mon, 2019-08-05 at 16:50 +0200, Roberto Sassu wrote: Regarding Mimi's proposal to avoid the issue by extending the PCR with zeros, I think it also achieve the goal. Roberto, removing the following code from i

Re: [RFC PATCH 1/2] mmc: sdhci: Manually check card status after reset

2019-08-05 Thread Raul Rangel
On Fri, Aug 02, 2019 at 07:58:20AM +0300, Adrian Hunter wrote: > > You seem not to have answered to my suggestion for a change to sdhci_reinit() > here: > > > https://lore.kernel.org/lkml/fcdf6cc4-2729-abe2-85c8-b0d04901c...@intel.com/ > I thought I answered it here: https://lore.kernel

[PATCH v3] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-05 Thread Roberto Sassu
Commit c78719203fc6 ("KEYS: trusted: allow trusted.ko to initialize w/o a TPM") allows the trusted module to be loaded even if a TPM is not found, to avoid module dependency problems. However, trusted module initialization can still fail if the TPM is inactive or deactivated. tpm_get_random() retu

[PATCH net-next 09/26] net: stmmac: selftests: Add test for VLAN and Double VLAN Filtering

2019-08-05 Thread Jose Abreu
Add a selftest for VLAN and Double VLAN Filtering in stmmac. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.i

[PATCH net-next 12/26] net: stmmac: tc: Do not return a fragment entry

2019-08-05 Thread Jose Abreu
Do not try to return a fragment entry from TC list. Otherwise we may not clean properly allocated entries. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailm

[PATCH net-next 01/26] net: stmmac: xgmac: Fix XGMAC selftests

2019-08-05 Thread Jose Abreu
Fixup the XGMAC selftests by correctly finishing the implementation of set_filter callback. Result: $ ethtool -t enp4s0 The test result is PASS The test extra info: 1. MAC Loopback 0 2. PHY Loopback -95 3. MMC Counters -95 4. EEE

[PATCH net-next 08/26] net: stmmac: Implement VLAN Hash Filtering in XGMAC

2019-08-05 Thread Jose Abreu
Implement the VLAN Hash Filtering feature in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infra

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-05 Thread Suren Baghdasaryan
On Mon, Aug 5, 2019 at 6:31 AM Michal Hocko wrote: > > On Mon 05-08-19 14:13:16, Vlastimil Babka wrote: > > On 8/4/19 11:23 AM, Artem S. Tashkinov wrote: > > > Hello, > > > > > > There's this bug which has been bugging many people for many years > > > already and which is reproducible in less than

[PATCH net-next 10/26] net: stmmac: Implement Safety Features in XGMAC core

2019-08-05 Thread Jose Abreu
XGMAC also supports Safety Features. This patch implements the configuration and handling of this feature in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st.

[PATCH net-next 20/26] net: stmmac: Add a counter for Split Header packets

2019-08-05 Thread Jose Abreu
Add a counter that increments each time a packet with split header is received. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux

[PATCH net-next 13/26] net: stmmac: selftests: Add a selftest for Flexible RX Parser

2019-08-05 Thread Jose Abreu
Add a selftest for the Flexible RX Parser feature. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.o

[PATCH net-next 11/26] net: stmmac: Add Flexible RX Parser support in XGMAC

2019-08-05 Thread Jose Abreu
XGMAC cores also support the Flexible RX Parser feature. Add the support for it in the XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.storm

[PATCH net-next 02/26] net: stmmac: xgmac: Implement MMC counters

2019-08-05 Thread Jose Abreu
Implement the MMC counters feature in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.or

[PATCH net-next 16/26] net: stmmac: xgmac: Correctly return that RX descriptor is not last one

2019-08-05 Thread Jose Abreu
Return the correct value when RX descriptor is not the last one. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lis

[PATCH net-next 18/26] net: stmmac: dwxgmac: Add Flexible PPS support

2019-08-05 Thread Jose Abreu
Add the support for Flexible PPS in XGMAC cores. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.org

[PATCH net-next 14/26] net: stmmac: Get correct timestamp values from XGMAC

2019-08-05 Thread Jose Abreu
TX Timestamp in XGMAC comes from MAC instead of descriptors. Implement this in a new callback. Also, RX Timestamp in XGMAC must be cheked against corruption and we need a barrier to make sure that descriptor fields are read correctly. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Ale

[PATCH net-next 22/26] net: stmmac: selftests: Add tests for SA Insertion/Replacement

2019-08-05 Thread Jose Abreu
Add 4 new tests: - SA Insertion (register based) - SA Insertion (descriptor based) - SA Replacament (register based) - SA Replacement (descriptor based) Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller

[PATCH net-next 19/26] net: stmmac: Add ethtool register dump for XGMAC cores

2019-08-05 Thread Jose Abreu
Add the ethtool interface to dump the register map in XGMAC cores. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@l

[PATCH net-next 21/26] net: stmmac: Add support for SA Insertion/Replacement in XGMAC cores

2019-08-05 Thread Jose Abreu
Add the support for Source Address Insertion and Replacement in XGMAC cores. Two methods are supported: Descriptor based and register based. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kern

[PATCH net-next 06/26] net: stmmac: Implement RSS and enable it in XGMAC core

2019-08-05 Thread Jose Abreu
Implement the RSS functionality and add the corresponding callbacks in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: li

[PATCH net-next 17/26] net: stmmac: Add Split Header support and enable it in XGMAC cores

2019-08-05 Thread Jose Abreu
Add the support for Split Header feature in the RX path and enable it in XGMAC cores. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc:

[PATCH net-next 07/26] net: stmmac: selftests: Add RSS test

2019-08-05 Thread Jose Abreu
Add a test for RSS in the stmmac selftests. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH net-next 00/26] net: stmmac: Misc improvements for XGMAC

2019-08-05 Thread Jose Abreu
[ This series depend on 3caa61c20875 ("net: stmmac: Sync RX Buffer upon allocation") which is already in -net but not -next ] Misc improvements for -next which adds new features in XGMAC cores. More info in commit logs. --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "Davi

[PATCH net-next 25/26] net: stmmac: selftests: Add selftest for VLAN TX Offload

2019-08-05 Thread Jose Abreu
Add 2 new selftests for VLAN Insertion offloading. Tests are for inner and outer VLAN offloading. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormr

[PATCH net-next 15/26] net: stmmac: Prepare to add Split Header support

2019-08-05 Thread Jose Abreu
In order to add Split Header support, stmmac_rx() needs to take into account that packet may be split accross multiple descriptors. Refactor the logic of this function in order to support this scenario. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu C

[PATCH net-next 26/26] net: stmmac: selftests: Return proper error code to userspace

2019-08-05 Thread Jose Abreu
We can do better than just return 1 to userspace. Lets return a proper Linux error code. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com

[PATCH net-next 04/26] net: stmmac: xgmac: Implement set_mtl_tx_queue_weight()

2019-08-05 Thread Jose Abreu
Implement the TX Queue Weight callback. In order for this to be active we also need to set ETS algorithm when configuring Queue. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: l

[PATCH net-next 03/26] net: stmmac: Fix issues when number of Queues >= 4

2019-08-05 Thread Jose Abreu
When queues >= 4 we use different registers but we were not subtracting the offset of 4. Fix this. Found out by Coverity. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-s

[PATCH net-next 23/26] net: stmmac: xgmac: Add EEE support

2019-08-05 Thread Jose Abreu
Add support for EEE in XGMAC cores by implementing the necessary callbacks. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm

[PATCH net-next 24/26] net: stmmac: Add support for VLAN Insertion Offload

2019-08-05 Thread Jose Abreu
Adds the logic to insert a given VLAN ID in a packet. This is offloaded to HW and its descriptor based. For now, only XGMAC implements the necessary callbacks. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin C

[PATCH net-next 05/26] net: stmmac: xgmac: Implement tx_queue_prio()

2019-08-05 Thread Jose Abreu
Implement the TX Queue Priority callback in XGMAC core. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infrad

Re: [RFC PATCH 1/2] Regulator: Core: Add clock-enable to fixed-regulator

2019-08-05 Thread Mark Brown
On Mon, Aug 05, 2019 at 11:07:58AM +, Philippe Schenker wrote: > On Wed, 2019-07-31 at 22:23 +0100, Mark Brown wrote: Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. >

Re: [PATCH v7 0/3] add support for rng-seed

2019-08-05 Thread Hsin-Yi Wang
Ping on the thread. Should the series be proceeded? Thanks

Re: [alsa-devel] [RFC PATCH 23/40] soundwire: stream: fix disable sequence

2019-08-05 Thread Sanyog Kale
On Mon, Aug 05, 2019 at 10:33:25AM -0500, Pierre-Louis Bossart wrote: > > > On 8/5/19 4:56 AM, Sanyog Kale wrote: > > On Thu, Jul 25, 2019 at 06:40:15PM -0500, Pierre-Louis Bossart wrote: > > > When we disable the stream and then call hw_free, two bank switches > > > will be handled and as a resu

[PATCH 4/4] pinctrl: samsung: Fix device node refcount leaks in init code

2019-08-05 Thread Krzysztof Kozlowski
Several functions use for_each_child_of_node() loop with a break to find a matching child node. Although each iteration of for_each_child_of_node puts the previous node, but early exit from loop misses it. This leads to leak of device node. Signed-off-by: Krzysztof Kozlowski --- drivers/pinctr

[PATCH 3/4] pinctrl: samsung: Fix device node refcount leaks in S3C64xx wakeup controller init

2019-08-05 Thread Krzysztof Kozlowski
In s3c64xx_eint_eint0_init() the for_each_child_of_node() loop is used with a break to find a matching child node. Although each iteration of for_each_child_of_node puts the previous node, but early exit from loop misses it. This leads to leak of device node. Signed-off-by: Krzysztof Kozlowski

[PATCH 2/4] pinctrl: samsung: Fix device node refcount leaks in S3C24xx wakeup controller init

2019-08-05 Thread Krzysztof Kozlowski
In s3c24xx_eint_init() the for_each_child_of_node() loop is used with a break to find a matching child node. Although each iteration of for_each_child_of_node puts the previous node, but early exit from loop misses it. This leads to leak of device node. Signed-off-by: Krzysztof Kozlowski --- d

[PATCH 1/4] pinctrl: samsung: Fix device node refcount leaks in Exynos wakeup controller init

2019-08-05 Thread Krzysztof Kozlowski
In exynos_eint_wkup_init() the for_each_child_of_node() loop is used with a break to find a matching child node. Although each iteration of for_each_child_of_node puts the previous node, but early exit from loop misses it. This leads to leak of device node. Signed-off-by: Krzysztof Kozlowski --

Re: [PATCH v3 6/6] virtio-balloon: Add support for providing unused page reports to host

2019-08-05 Thread Alexander Duyck
On Mon, 2019-08-05 at 12:00 -0400, Nitesh Narayan Lal wrote: > On 8/1/19 6:38 PM, Alexander Duyck wrote: > > From: Alexander Duyck > > > > Add support for the page reporting feature provided by virtio-balloon. > > Reporting differs from the regular balloon functionality in that is is > > much les

Re: [PATCH v3 0/8] PM / ACPI: sleep: Additional changes related to suspend-to-idle

2019-08-05 Thread Kai-Heng Feng
at 18:33, Rafael J. Wysocki wrote: Hi All, On top of the "Simplify the suspend-to-idle control flow" patch series posted previously: https://lore.kernel.org/lkml/71085220.z6FKkvYQPX@kreacher/ sanitize the suspend-to-idle flow even further. First off, decouple EC wakeup from the LPS0 _DSM p

Re: [PATCH] MAINTAINERS: Update e-mail address for Andrea Parri

2019-08-05 Thread Andrea Parri
On Mon, Aug 05, 2019 at 08:23:38AM -0700, James Bottomley wrote: > On Mon, 2019-08-05 at 17:15 +0200, Andrea Parri wrote: > > > Why don't you also add an entry in .mailmap as Will did in commit > > > c584b1202f2d ("MAINTAINERS: Update my email address to use > > > @kernel.org")? > > > > I consider

Re: [PATCH v21 16/28] x86/sgx: Add the Linux SGX Enclave Driver

2019-08-05 Thread Sean Christopherson
On Sat, Jul 13, 2019 at 08:07:52PM +0300, Jarkko Sakkinen wrote: > +static unsigned long sgx_get_unmapped_area(struct file *file, > +unsigned long addr, > +unsigned long len, > +u

Applied "regulator: core: Add of_node_put() before return" to the regulator tree

2019-08-05 Thread Mark Brown
The patch regulator: core: Add of_node_put() before return has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH V2 06/10] x86/resctrl: Introduce utility to return pseudo-locked cache portion

2019-08-05 Thread Borislav Petkov
On Tue, Jul 30, 2019 at 10:29:40AM -0700, Reinette Chatre wrote: > To prevent eviction of pseudo-locked memory it is required that no > other resource group uses any portion of a cache that is in use by > a cache pseudo-locked region. > > Introduce a utility that will return a Capacity BitMask (CB

Re: [PATCH v3 00/19] KVM RISC-V Support

2019-08-05 Thread Paolo Bonzini
On 05/08/19 15:42, Anup Patel wrote: > This series adds initial KVM RISC-V support. Currently, we are able to boot > RISC-V 64bit Linux Guests with multiple VCPUs. > > Few key aspects of KVM RISC-V added by this series are: > 1. Minimal possible KVM world-switch which touches only GPRs and few CSR

Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-05 Thread Tyler Hicks
On 2019-08-05 11:54:19, Mimi Zohar wrote: > On Mon, 2019-08-05 at 16:50 +0200, Roberto Sassu wrote: > > Regarding Mimi's proposal to avoid the issue by extending the PCR with > > zeros, I think it also achieve the goal. > > Roberto, removing the following code from init_digests() would be the > e

Re: [PATCH] interconnect: Add pre_aggregate() callback

2019-08-05 Thread Evan Green
On Mon, Aug 5, 2019 at 8:33 AM Georgi Djakov wrote: > > Introduce an optional callback in interconnect provider drivers. It can be > used for implementing actions, that need to be executed before the actual > aggregation of the bandwidth requests has started. > > The benefit of this for now is tha

Re: [PATCH v6 28/57] pcie-gadget-spear: Remove dev_err() usage after platform_get_irq()

2019-08-05 Thread Greg Kroah-Hartman
On Wed, Jul 31, 2019 at 07:16:22AM -0700, Stephen Boyd wrote: > Quoting Arnd Bergmann (2019-07-30 11:29:45) > > On Tue, Jul 30, 2019 at 8:16 PM Stephen Boyd wrote: > > > > > > We don't need dev_err() messages when platform_get_irq() fails now that > > > platform_get_irq() prints an error message i

Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-05 Thread Roberto Sassu
On 8/5/2019 5:54 PM, Mimi Zohar wrote: On Mon, 2019-08-05 at 16:50 +0200, Roberto Sassu wrote: Regarding Mimi's proposal to avoid the issue by extending the PCR with zeros, I think it also achieve the goal. Roberto, removing the following code from init_digests() would be the equivalent to the

Re: [PATCH v3 11/19] RISC-V: KVM: Implement VMID allocator

2019-08-05 Thread Paolo Bonzini
On 05/08/19 15:43, Anup Patel wrote: > + spin_lock(&vmid_lock); > + > + /* > + * We need to re-check the vmid_version here to ensure that if > + * another vcpu already allocated a valid vmid for this vm. > + */ > + if (!kvm_riscv_stage2_vmid_ver_changed(vmid)) { > +

Re: [PATCH v2 1/2] KVM: remove kvm_arch_has_vcpu_debugfs()

2019-08-05 Thread Greg KH
On Mon, Aug 05, 2019 at 05:48:15PM +0200, Paolo Bonzini wrote: > On 05/08/19 17:36, Greg KH wrote: > > On Sat, Aug 03, 2019 at 08:23:25AM +0200, Paolo Bonzini wrote: > >> On 31/07/19 20:55, Greg KH wrote: > >>> There is no need for this function as all arches have to implement > >>> kvm_arch_create

Re: [PATCH v3 6/6] virtio-balloon: Add support for providing unused page reports to host

2019-08-05 Thread Nitesh Narayan Lal
On 8/1/19 6:38 PM, Alexander Duyck wrote: > From: Alexander Duyck > > Add support for the page reporting feature provided by virtio-balloon. > Reporting differs from the regular balloon functionality in that is is > much less durable than a standard memory balloon. Instead of creating a > list o

Re: [PATCH v4 1/2] dt-bindings: Add binding document for NOA1305

2019-08-05 Thread Jonathan Cameron
On Fri, 2 Aug 2019 12:42:27 +0100 Martyn Welch wrote: > Document the ON Semiconductor NOA1305 ambient light sensor devicetree > bindings. > > Signed-off-by: Martyn Welch > Reviewed-by: Rob Herring Applied to the togreg branch of iio.git and pushed out as testing. Thanks, Jonathan > --- >

Re: [PATCH v4 2/2] iio: light: noa1305: Add support for NOA1305

2019-08-05 Thread Jonathan Cameron
On Fri, 2 Aug 2019 12:42:28 +0100 Martyn Welch wrote: > This driver adds the initial support for the ON Semiconductor > NOA1305 Ambient Light Sensor. > > Originally written by Sergei Miroshnichenko. Found here: > > https://github.com/EmcraftSystems/linux-upstream/commit/196d6cf897e632d2cb82d

Re: [PATCH V2 04/10] x86/resctrl: Set cache line size using new utility

2019-08-05 Thread Borislav Petkov
On Tue, Jul 30, 2019 at 10:29:38AM -0700, Reinette Chatre wrote: > In preparation for support of pseudo-locked regions spanning two > cache levels the cache line size computation is moved to a utility. Please write this in active voice: "Move the cache line size computation to a utility function i

Re: [PATCH v3 2/2] mm,thp: Add experimental config option RO_EXEC_FILEMAP_HUGE_FAULT_THP

2019-08-05 Thread William Kucharski
> On Aug 5, 2019, at 7:28 AM, Kirill A. Shutemov wrote: > >> >> Is there different terminology you'd prefer to see me use here to clarify >> this? > > My point is that maybe we should just use ~HPAGE_P?D_MASK in code. The new > HPAGE_P?D_OFFSET doesn't add much for readability in my opinion.

[GIT PULL] Kselftest update for Linux 5.3-rc4

2019-08-05 Thread Shuah Khan
Hi Linus, Please pull the following Kselftest fixes update for Linux 5.3-rc4. This Kselftest update for Linux 5.3-rc4 consists of fix to Kselftest framework to save and restore errno and a fix to livepatch to push and pop dynamic debug config. diff is attached. thanks, -- Shuah --

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-05 Thread Tim Chen
On 8/2/19 8:37 AM, Julien Desfossez wrote: > We tested both Aaron's and Tim's patches and here are our results. > > Test setup: > - 2 1-thread sysbench, one running the cpu benchmark, the other one the > mem benchmark > - both started at the same time > - both are pinned on the same core (2 hard

Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-05 Thread Mimi Zohar
On Mon, 2019-08-05 at 16:50 +0200, Roberto Sassu wrote: > Regarding Mimi's proposal to avoid the issue by extending the PCR with > zeros, I think it also achieve the goal. Roberto, removing the following code from init_digests() would be the equivalent to the prior code, without needing to make a

Re: [PATCHv2] drivers/amba: add reset control to primecell probe

2019-08-05 Thread Rob Herring
On Mon, Aug 5, 2019 at 8:52 AM Dinh Nguyen wrote: > > The primecell controller on some SoCs, i.e. SoCFPGA, is held in reset by > default. Until recently, the DMA controller was brought out of reset by the > bootloader(i.e. U-Boot). But a recent change in U-Boot, the peripherals that > are not used

My Donation to you

2019-08-05 Thread N.Gray
Good day, Hope this message finds you well. My Name is MS N. Gray, $180,000,000 Super Lotto Jackpot Winner on Friday, the 11th of May 2018. I see my Jackpot winning as a gift from God and this is why i opened a foundation to assist other people by making financial donation to them. Note th

[PATCH] iio: adc: max9611: Fix temperature reading in probe

2019-08-05 Thread Jacopo Mondi
The max9611 driver reads the die temperature at probe time to validate the communication channel. Use the actual read value to perform the test instead of the read function return value, which was mistakenly used so far. The temperature reading test was only successful because the 0 return value i

Re: [PATCH RFC tip/core/rcu 14/14] rcu/nohz: Make multi_cpu_stop() enable tick on all online CPUs

2019-08-05 Thread Peter Zijlstra
On Mon, Aug 05, 2019 at 07:54:48AM -0700, Paul E. McKenney wrote: > > Right; so clearly we're not understanding what's happening. That seems > > like a requirement for actually doing a patch. > > Almost but not quite. It is a requirement for a patch *that* *is* > *supposed* *to* *be* *a* *fix*.

Re: [PATCH v2 1/2] KVM: remove kvm_arch_has_vcpu_debugfs()

2019-08-05 Thread Paolo Bonzini
On 03/08/19 09:41, Thomas Gleixner wrote: > On Sat, 3 Aug 2019, Paolo Bonzini wrote: >> On 31/07/19 20:55, Greg KH wrote: >>> There is no need for this function as all arches have to implement >>> kvm_arch_create_vcpu_debugfs() no matter what, so just remove this call >>> as it is pointless. >> >>

Re: [PATCH v2 1/2] KVM: remove kvm_arch_has_vcpu_debugfs()

2019-08-05 Thread Paolo Bonzini
On 05/08/19 17:36, Greg KH wrote: > On Sat, Aug 03, 2019 at 08:23:25AM +0200, Paolo Bonzini wrote: >> On 31/07/19 20:55, Greg KH wrote: >>> There is no need for this function as all arches have to implement >>> kvm_arch_create_vcpu_debugfs() no matter what, so just remove this call >>> as it is poi

Re: [PATCH 1/4] iio: adc: ad7606: Add support for AD7606B ADC

2019-08-05 Thread Jonathan Cameron
On Fri, 2 Aug 2019 13:03:01 +0300 Beniamin Bia wrote: > From: Stefan Popa > > The AD7606B is a 16-bit ADC that supports simultaneous sampling of 8 > channels. It is pin compatible to AD7606, but adds extra modes by > writing to the register map. > > The AD7606B can be configured to work in sof

Re: [PATCH] locking/percpu_rwsem: Rewrite to not use rwsem

2019-08-05 Thread Peter Zijlstra
On Mon, Aug 05, 2019 at 10:58:13PM +0800, Boqun Feng wrote: > On Mon, Aug 05, 2019 at 10:43:18PM +0800, Boqun Feng wrote: > > On Mon, Aug 05, 2019 at 04:02:41PM +0200, Peter Zijlstra wrote: > > [...] > > > > > > static inline void percpu_up_read(struct percpu_rw_semaphore *sem) > > > { > > > +

Re: [PATCH] iio: imu: st_lsm6dsx: make IIO_CHAN_INFO_SCALE shared by type

2019-08-05 Thread Jonathan Cameron
On Mon, 5 Aug 2019 17:04:35 +0200 Lorenzo Bianconi wrote: > > On Thu, 1 Aug 2019 16:39:08 +0200 > > Martin Kepplinger wrote: > > > > > in_accel_x_scale, in_accel_y_scale and in_accel_z_scale are always > > > the same. The scale is still defined to be in "info_mask_separate". > > > > > > Use

Re: [alsa-devel] [RFC PATCH 26/40] soundwire: cadence_master: fix divider setting in clock register

2019-08-05 Thread Pierre-Louis Bossart
@@ -988,9 +989,11 @@ int sdw_cdns_init(struct sdw_cdns *cdns) /* Set clock divider */ divider = (prop->mclk_freq / prop->max_clk_freq) - 1; val = cdns_readl(cdns, CDNS_MCP_CLK_CTRL0); reg read of CLK_CTRL0 can be removed. yes for both comments. Thanks for the review

Re: [alsa-devel] [RFC PATCH 25/40] soundwire: intel: use BIOS information to set clock dividers

2019-08-05 Thread Pierre-Louis Bossart
On 8/5/19 5:28 AM, Sanyog Kale wrote: On Thu, Jul 25, 2019 at 06:40:17PM -0500, Pierre-Louis Bossart wrote: The BIOS provides an Intel-specific property, let's use it to avoid hard-coded clock dividers. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 26 ++

Re: [PATCH v2] arm64/mm: fix variable 'tag' set but not used

2019-08-05 Thread Andrey Konovalov
On Thu, Aug 1, 2019 at 4:47 PM Qian Cai wrote: > > When CONFIG_KASAN_SW_TAGS=n, set_tag() is compiled away. GCC throws a > warning, > > mm/kasan/common.c: In function '__kasan_kmalloc': > mm/kasan/common.c:464:5: warning: variable 'tag' set but not used > [-Wunused-but-set-variable] > u8 tag = 0

Re: [PATCH v2 1/2] KVM: remove kvm_arch_has_vcpu_debugfs()

2019-08-05 Thread Greg KH
On Sat, Aug 03, 2019 at 08:23:25AM +0200, Paolo Bonzini wrote: > On 31/07/19 20:55, Greg KH wrote: > > There is no need for this function as all arches have to implement > > kvm_arch_create_vcpu_debugfs() no matter what, so just remove this call > > as it is pointless. > > > > Cc: Paolo Bonzini >

Re: oom-killer

2019-08-05 Thread Pankaj Suryawanshi
On Mon, Aug 5, 2019 at 5:35 PM Michal Hocko wrote: > > On Mon 05-08-19 13:56:20, Vlastimil Babka wrote: > > On 8/5/19 1:24 PM, Michal Hocko wrote: > > >> [ 727.954355] CPU: 0 PID: 56 Comm: kworker/u8:2 Tainted: P O > > >> 4.14.65 #606 > > > [...] > > >> [ 728.029390] [] (oom_kill_pro

Re: [PATCH v4 4/4] iio: tsl2772: Use regulator_bulk_() APIs

2019-08-05 Thread Jonathan Cameron
On Thu, 1 Aug 2019 15:36:19 +0800 Chuhong Yuan wrote: > Use regulator_bulk_() APIs to shrink driver size. > > Signed-off-by: Chuhong Yuan Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > Changes in v4: > - Ch

Re: [alsa-devel] [RFC PATCH 23/40] soundwire: stream: fix disable sequence

2019-08-05 Thread Pierre-Louis Bossart
On 8/5/19 4:56 AM, Sanyog Kale wrote: On Thu, Jul 25, 2019 at 06:40:15PM -0500, Pierre-Louis Bossart wrote: When we disable the stream and then call hw_free, two bank switches will be handled and as a result we re-enable the stream on hw_free. I didnt quite get why there will be two bank s

<    1   2   3   4   5   6   7   8   9   10   >