Re: Performance regressions in networking & storage benchmarks in Linux kernel 5.8

2020-09-23 Thread Abdul Anshad Azeez
Hello Thomas, Thank you very much for your comments. Since the performance regressions were fixed when we tested version 5.9-rc4, we were not reporting it as an issue and our intention was just to share this as an information only. Thanks, Abdul Anshad A From: Thomas Gleixner Sent: Tuesday,

[PATCH] mt76: mt7615: retry if mt7615_mcu_init returns -EAGAIN

2020-09-23 Thread Chuanhong Guo
mt7615_load_patch in mt7615/mcu.c sometimes fails with: mt7622-wmac 1800.wmac: Failed to get patch semaphore and returns -EAGAIN. But this error is returned all the way up to mt7615_init_work with no actual retrial performed, leaving a broken wireless phy. Wait a bit and retry for up to 10 time

[PATCH] e1000e: Power cycle phy on PM resume

2020-09-23 Thread Kai-Heng Feng
We are seeing the following error after S3 resume: [ 704.746874] e1000e :00:1f.6 eno1: Setting page 0x6020 [ 704.844232] e1000e :00:1f.6 eno1: MDI Write did not complete [ 704.902817] e1000e :00:1f.6 eno1: Setting page 0x6020 [ 704.903075] e1000e :00:1f.6 eno1: reading PHY page

Re: [PATCH 1/1] powerpc/vnic: Extend "failover pending" window

2020-09-23 Thread Lijun Pan
> On Sep 22, 2020, at 11:53 PM, Sukadev Bhattiprolu > wrote: > > > From 547fa5627b63102f3ef80ed3a032d62c88c5 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Thu, 10 Sep 2020 11:18:41 -0700 > Subject: [PATCH 1/1] powerpc/vnic: Extend "failover pending" window > > Commit 5a1

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-23 Thread Pavel Begunkov
On 22/09/2020 12:01, Arnd Bergmann wrote: > On Tue, Sep 22, 2020 at 9:59 AM Pavel Begunkov wrote: >> On 22/09/2020 10:23, Arnd Bergmann wrote: >>> On Tue, Sep 22, 2020 at 8:32 AM Pavel Begunkov >>> wrote: On 22/09/2020 03:58, Andy Lutomirski wrote: > On Mon, Sep 21, 2020 at 5:24 PM Pave

Re: [PATCH net-next 1/2] net: dsa: untag the bridge pvid from rx skbs

2020-09-23 Thread Vladimir Oltean
On Tue, Sep 22, 2020 at 08:11:54PM -0700, Florian Fainelli wrote: > diff --git a/include/net/dsa.h b/include/net/dsa.h > index d16057c5987a..b539241a7533 100644 > --- a/include/net/dsa.h > +++ b/include/net/dsa.h > @@ -301,6 +301,14 @@ struct dsa_switch { >*/ > bool

Re: [PATCH net-next v2 12/16] net: bridge: mcast: install S,G entries automatically based on reports

2020-09-23 Thread Nikolay Aleksandrov
t-IGMPv3-MLDv2-fast-path-part-2/20200922-153321 > base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > 92ec804f3dbf0d986f8e10850bfff14f316d7aaf > config: i386-randconfig-m021-20200923 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 > > If you

[PATCH net-next] tipc: potential memory corruption in tipc_crypto_key_rcv()

2020-09-23 Thread Dan Carpenter
This code uses "skey->keylen" as an memcpy() size and then checks that it is valid on the next line. The other problem is that the check has a potential integer overflow, it's better to use struct_size() for this. Fixes: 23700da29b83 ("tipc: add automatic rekeying for encryption key") Signed-off-

[PATCH net-next 3/9] s390/qeth: clean up string ops in qeth_l3_parse_ipatoe()

2020-09-23 Thread Julian Wiedmann
Indicate the max number of to-be-parsed characters, and avoid copying the address sub-string. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l3_sys.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/drivers/s390/net/qeth_l3_sys.c b/drive

[PATCH net-next 5/9] s390/qeth: tighten ucast IP locking

2020-09-23 Thread Julian Wiedmann
The programming of ucast IPs via qeth_l3_modify_ip() is driven independently from any of our typical locking mechanisms (eg. detaching the netdevice, or holding the conf_mutex). So when we inspect the card state to check whether the required cmd IO should be deferred, there is no protection against

[PATCH net-next 8/9] s390/qeth: consolidate teardown code

2020-09-23 Thread Julian Wiedmann
Clarify which discipline-specific steps are needed to roll back after error in qeth_l?_set_online(), and which are common to roll back from qeth_hardsetup_card(). Some steps (cancelling the RX modeset, draining the TX queues) are only necessary if the netdev was potentially UP before, so move them

[PATCH net-next 1/9] s390/qeth: don't init refcount twice for mcast IPs

2020-09-23 Thread Julian Wiedmann
mcast IP objects are allocated within qeth_l3_add_mcast_rtnl(), with .ref_counter already set to 1 via qeth_l3_init_ipaddr(). Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l3_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/q

[PATCH net-next 6/9] s390/qeth: cancel cmds earlier during teardown

2020-09-23 Thread Julian Wiedmann
Originators of cmd IO typically hold the rtnl or conf_mutex to protect against a concurrent teardown. Since qeth_set_offline() already holds the conf_mutex, the main reason why we still care about cancelling pending cmds is so that they release the rtnl when we need it ourselves. So move this step

[PATCH net-next 9/9] s390/qeth: remove forward declarations in L2 code

2020-09-23 Thread Julian Wiedmann
Shuffle some code around (primarily all the discipline-related stuff) to get rid of all the unnecessary forward declarations. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_l2.h | 7 + drivers/s390/net/qeth_l2_main.c | 378 +++- 2 files changed, 188 i

[PATCH net-next 2/9] s390/qeth: relax locking for ipato config data

2020-09-23 Thread Julian Wiedmann
card->ipato is currently protected by the conf_mutex. But most users also hold the ip_lock - in particular qeth_l3_add_ip(). So slightly expand the sections under ip_lock in a few places (to effectively cover a few error & no-op cases), and then drop the conf_mutex where it's no longer needed. Si

[PATCH net-next 7/9] s390/qeth: consolidate online code

2020-09-23 Thread Julian Wiedmann
Move duplicated code from the disciplines into the core path. Signed-off-by: Julian Wiedmann --- drivers/s390/net/qeth_core.h | 6 + drivers/s390/net/qeth_core_main.c | 41 --- drivers/s390/net/qeth_l2_main.c | 20 +-- drivers/s390/net/qeth_l3_

[PATCH net-next 4/9] s390/qeth: replace deprecated simple_stroul()

2020-09-23 Thread Julian Wiedmann
Convert the remaining occurences in sysfs code to kstrtouint(). While at it move some input parsing out of locked sections, replace an open-coded clamp() and remove some unnecessary run-time checks for ipatoe->mask_bits that are already enforced when creating the object. Signed-off-by: Julian Wie

[PATCH net-next 0/9] s390/qeth: updates 2020-09-23

2020-09-23 Thread Julian Wiedmann
Hi Dave & Jakub, please apply the following patch series for qeth to netdev's net-next tree. This brings all sorts of cleanups. Highlights are more code sharing in the init/teardown paths, and more fine-grained rollback on errors during initialization (instead of a full-blown teardown). Thanks,

Re: [PATCH v7 1/6] net: introduce helper sendpage_ok() in include/linux/net.h

2020-09-23 Thread Christoph Hellwig
On Wed, Aug 19, 2020 at 12:22:05PM +0800, Coly Li wrote: > On 2020/8/19 03:49, Christoph Hellwig wrote: > > On Wed, Aug 19, 2020 at 12:33:37AM +0800, Coly Li wrote: > >> On 2020/8/19 00:24, Christoph Hellwig wrote: > >>> I think we should go for something simple like this instead: > >> > >> This id

Re: [PATCH v7 1/6] net: introduce helper sendpage_ok() in include/linux/net.h

2020-09-23 Thread Coly Li
On 2020/9/23 16:43, Christoph Hellwig wrote: > On Wed, Aug 19, 2020 at 12:22:05PM +0800, Coly Li wrote: >> On 2020/8/19 03:49, Christoph Hellwig wrote: >>> On Wed, Aug 19, 2020 at 12:33:37AM +0800, Coly Li wrote: On 2020/8/19 00:24, Christoph Hellwig wrote: > I think we should go for somet

Re: [PATCH v2] net/ipv4: always honour route mtu during forwarding

2020-09-23 Thread Eric Dumazet
On 9/23/20 6:51 AM, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski > > Documentation/networking/ip-sysctl.txt:46 says: > ip_forward_use_pmtu - BOOLEAN > By default we don't trust protocol path MTUs while forwarding > because they could be easily forged and can lead to unwante

pull-request: can-next 2020-09-23

2020-09-23 Thread Marc Kleine-Budde
BCM72113 (2020-09-21 17:16:17 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git tags/linux-can-next-for-5.10-20200923 for you to fetch changes up to 2c19bb43e5572929f00f186d43e99bfd6d7ee3b2: can: flexcan: add lx2160ar1 support

[PATCH 19/20] can: flexcan: add imx8qm support

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang The Flexcan on i.MX8QM supports CAN FD protocol. Signed-off-by: Joakim Zhang Link: https://lore.kernel.org/r/20190712075926.7357-8-qiangqing.zh...@nxp.com Signed-off-by: Marc Kleine-Budde --- drivers/net/can/flexcan.c | 26 +- 1 file changed, 17 inse

[PATCH 11/20] can: flexcan: disable clocks during stop mode

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang Disable clocks while CAN core is in stop mode. Signed-off-by: Joakim Zhang Tested-by: Sean Nyekjaer Link: https://lore.kernel.org/r/20191210085721.9853-2-qiangqing.zh...@nxp.com Signed-off-by: Marc Kleine-Budde --- drivers/net/can/flexcan.c | 30 ---

[PATCH 03/20] can: flexcan: more register names

2020-09-23 Thread Marc Kleine-Budde
This patch adds some new register names and tries to ensure with a static_assert that the documented offset is correct. Signed-off-by: Marc Kleine-Budde Link: https://lore.kernel.org/r/20200922144429.2613631-4-...@pengutronix.de --- drivers/net/can/flexcan.c | 14 -- 1 file changed,

[PATCH 18/20] can: flexcan: add Transceiver Delay Compensation support

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang The CAN-FD protocol allows the transmission and reception of data at a higher bit rate than the nominal rate used in the arbitration phase when the message's BRS bit is set. The TDC mechanism is effective only during the data phase of FD frames having BRS bit set. It has no ef

[PATCH 17/20] can: flexcan: add CAN FD BRS support

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang This patch adds CAN FD BitRate Switch (BRS) support to driver. Signed-off-by: Joakim Zhang Link: https://lore.kernel.org/r/20190712075926.7357-5-qiangqing.zh...@nxp.com Signed-off-by: Marc Kleine-Budde --- drivers/net/can/flexcan.c | 9 - 1 file changed, 8 insertion

[PATCH 13/20] can: flexcan: flexcan_set_bittiming(): move setup of CAN-2.0 bitiming into separate function

2020-09-23 Thread Marc Kleine-Budde
This is a patch prepares for the CAN-FD support. In a later patch the setup for canfd bittiming will be added, with this patch the change is easier to read. Signed-off-by: Marc Kleine-Budde Link: https://lore.kernel.org/r/20200922144429.2613631-14-...@pengutronix.de --- drivers/net/can/flexcan.c

[PATCH 20/20] can: flexcan: add lx2160ar1 support

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang The Flexcan on lx2160ar1 supports CAN FD protocol. Signed-off-by: Joakim Zhang Link: https://lore.kernel.org/r/20190712075926.7357-9-qiangqing.zh...@nxp.com Signed-off-by: Marc Kleine-Budde --- drivers/net/can/flexcan.c | 8 1 file changed, 8 insertions(+) diff --

[PATCH 09/20] can: flexcan: add correctable errors correction when HW supports ECC

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang commit cdce844865be ("can: flexcan: add vf610 support for FlexCAN") >From above commit by Stefan Agner, the patch just disables non-correctable errors interrupt and freeze mode. It still can correct the correctable errors since ECC enabled by default after reset (MECR[ECCDIS]=0

[PATCH 16/20] can: flexcan: add ISO CAN FD feature support

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang ISO CAN FD is introduced to increase the failture detection capability than non-ISO CAN FD. The non-ISO CAN FD is still supported by FlexCAN so that it can be used mainly during an intermediate phase, for evaluation and development purposes. Therefore, it is strongly recommend

[PATCH 10/20] can: flexcan: flexcan_chip_stop(): add error handling and propagate error value

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang This patch implements error handling and propagates the error value of flexcan_chip_stop(). This function will be called from flexcan_suspend() in an upcoming patch in some SoCs which support LPSR mode. Add a new function flexcan_chip_stop_disable_on_error() that tries to disa

[PATCH 04/20] can: flexcan: struct flexcan_regs: document registers not affected by soft reset

2020-09-23 Thread Marc Kleine-Budde
This patch documents which registers are not affected by a soft reset of the flexcan IP core. Signed-off-by: Marc Kleine-Budde Link: https://lore.kernel.org/r/20200922144429.2613631-5-...@pengutronix.de --- drivers/net/can/flexcan.c | 22 +++--- 1 file changed, 11 insertions(+),

[PATCH 14/20] can: flexcan: use struct canfd_frame for CAN classic frame

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang This patch prepares for CAN FD mode, using struct canfd_frame can both for classic format frame and fd format frame. Signed-off-by: Joakim Zhang Link: https://lore.kernel.org/r/20190712075926.7357-3-qiangqing.zh...@nxp.com Signed-off-by: Marc Kleine-Budde --- drivers/net/ca

[PATCH 06/20] can: flexcan: Ack wakeup interrupt separately

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang As FLEXCAN_ESR_ALL_INT is for all bus errors and state change IRQ sources, strictly speaking FLEXCAN_ESR_WAK_INT does not belong to these. So add wakeup interrupt ack separately to existing ack of the interrupts. Suggested-by: Marc Kleine-Budde Signed-off-by: Joakim Zhang Li

[PATCH 12/20] can: flexcan: add LPSR mode support

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang On the i.MX7D in LPSR mode, the controller will be powered off and the configuration state is lost after system resume. Upcoming i.MX8QM/QXP will also completely power off the domain, the controller state is lost and needs restore, too. So we need to set the pinctrl state again

[PATCH 08/20] can: flexcan: Add check for transceiver maximum bitrate limitation

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang CAN FD can transmit up to 8Mbps, but some transceivers only can support 5Mbps, so add check in driver. Signed-off-by: Joakim Zhang Link: https://lore.kernel.org/r/20191030064245.12923-2-qiangqing.zh...@nxp.com Signed-off-by: Marc Kleine-Budde --- drivers/net/can/flexcan.c |

[PATCH 15/20] can: flexcan: add CAN-FD mode support

2020-09-23 Thread Marc Kleine-Budde
From: Joakim Zhang This patch adds CAN-FD mode support to the driver, it means that payload size can extend up to 64 bytes. Bit timing always set in the CBT register, not in the CTRL1 register any more. This has an extend range of all CAN bit timing variables (PRESDIV, PROPSEG, PSEG1, PSEG2 and

[PATCH 01/20] can: flexcan: sort include files alphabetically

2020-09-23 Thread Marc Kleine-Budde
This patch sorts the include files alphabetically. Signed-off-by: Marc Kleine-Budde Link: https://lore.kernel.org/r/20200922144429.2613631-2-...@pengutronix.de --- drivers/net/can/flexcan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/can/flexcan.c b/driver

[PATCH 02/20] can: flexcan: flexcan_exit_stop_mode(): remove stray empty line

2020-09-23 Thread Marc Kleine-Budde
This patch removes a stray empty line from the flexcan_exit_stop_mode() function. Signed-off-by: Marc Kleine-Budde Link: https://lore.kernel.org/r/20200922144429.2613631-3-...@pengutronix.de --- drivers/net/can/flexcan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/can/flexcan.

[PATCH 07/20] can: flexcan: flexcan_probe(): make regulator xceiver optional

2020-09-23 Thread Marc Kleine-Budde
As the transcevier regulator is optional, this patch switches from devm_regulator_get() to devm_regulator_get_optional(). This gets rid of "using dummy regulator" warning message from the regulator core, if no regulator is available. Signed-off-by: Marc Kleine-Budde Link: https://lore.kernel.org/

[PATCH 05/20] can: flexcan: quirks: get rid of long lines

2020-09-23 Thread Marc Kleine-Budde
This patch reformats the quirks to get rid of long lines. Signed-off-by: Marc Kleine-Budde Link: https://lore.kernel.org/r/20200922144429.2613631-6-...@pengutronix.de --- drivers/net/can/flexcan.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/driv

[PATCH v1 net] net: stmmac: removed enabling eee in EEE set callback

2020-09-23 Thread Voon Weifeng
EEE should be only be enabled during stmmac_mac_link_up() when the link are up and being set up properly. set_eee should only do settings configuration and disabling the eee. Without this fix, turning on EEE using ethtool will return "Operation not supported". This is due to the driver is in a dea

[PATCH 0/4] net: usb: avoid using usb_control_msg() directly

2020-09-23 Thread Himadri Pandya
A recent bug-fix shaded light on possible incorrect use of usb_control_msg() without proper error check. This resulted in introducing new usb core api wrapper functions usb_control_msg_send() and usb_control_msg_recv() by Greg KH. This patch series continue the clean-up using the new functions. Hi

[PATCH 3/4] net: usb: rtl8150: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Himadri Pandya
Many usage of usb_control_msg() do not have proper error check on return value leaving scope for bugs on short reads. New usb_control_msg_recv() and usb_control_msg_send() nicely wraps usb_control_msg() with proper error check. Hence use the wrappers instead of calling usb_control_msg() directly.

[PATCH 2/4] net: sierra_net: use usb_control_msg_recv()

2020-09-23 Thread Himadri Pandya
The new usb api function usb_control_msg_recv() nicely wrapps usb_control_msg() with proper error check. Hence use it instead of directly calling usb_control_msg(). Signed-off-by: Himadri Pandya --- drivers/net/usb/sierra_net.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletion

[PATCH 1/4] net: usbnet: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Himadri Pandya
Potential incorrect use of usb_control_msg() has resulted in new wrapper functions to enforce its correct usage with proper error check. Hence use these new wrapper functions instead of calling usb_control_msg() directly. Signed-off-by: Himadri Pandya --- drivers/net/usb/usbnet.c | 46 --

[PATCH 4/4] net: rndis_host: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Himadri Pandya
The new usb_control_msg_recv() and usb_control_msg_send() nicely wraps usb_control_msg() with proper error check. Hence use the wrappers instead of calling usb_control_msg() directly. Signed-off-by: Himadri Pandya --- drivers/net/usb/rndis_host.c | 44 ++-- 1 file

Re: [PATCH v3 bpf-next 02/11] bpf: Enable bpf_skc_to_* sock casting helper to networking prog type

2020-09-23 Thread Lorenz Bauer
On Tue, 22 Sep 2020 at 19:26, Martin KaFai Lau wrote: > > On Tue, Sep 22, 2020 at 10:46:41AM +0100, Lorenz Bauer wrote: > > On Tue, 22 Sep 2020 at 08:04, Martin KaFai Lau wrote: > > > > > > There is a constant need to add more fields into the bpf_tcp_sock > > > for the bpf programs running at tc,

Re: [PATCH bpf-next v4 11/11] bpf: use a table to drive helper arg type checks

2020-09-23 Thread Lorenz Bauer
On Tue, 22 Sep 2020 at 21:07, Alexei Starovoitov wrote: > > On Tue, Sep 22, 2020 at 09:20:27AM +0100, Lorenz Bauer wrote: > > On Mon, 21 Sep 2020 at 23:23, Alexei Starovoitov > > wrote: > > > > > > On Mon, Sep 21, 2020 at 01:12:27PM +0100, Lorenz Bauer wrote: > > > > +struct bpf_reg_types { > > >

Re: [PATCH v3 bpf-next 01/11] bpf: Move the PTR_TO_BTF_ID check to check_reg_type()

2020-09-23 Thread Lorenz Bauer
On Tue, 22 Sep 2020 at 19:38, Martin KaFai Lau wrote: > > On Tue, Sep 22, 2020 at 10:56:55AM +0100, Lorenz Bauer wrote: > > On Tue, 22 Sep 2020 at 08:04, Martin KaFai Lau wrote: > > > > > > check_reg_type() checks whether a reg can be used as an arg of a > > > func_proto. For PTR_TO_BTF_ID, the

RE: [PATCH net-next 3/9] s390/qeth: clean up string ops in qeth_l3_parse_ipatoe()

2020-09-23 Thread David Laight
From: Julian Wiedmann > Sent: 23 September 2020 09:37 > > Indicate the max number of to-be-parsed characters, and avoid copying > the address sub-string. > > Signed-off-by: Julian Wiedmann > --- > drivers/s390/net/qeth_l3_sys.c | 27 ++- > 1 file changed, 14 insertions(+

Re: RTL8402 stops working after hibernate/resume

2020-09-23 Thread Heiner Kallweit
On 03.09.2020 10:41, Petr Tesarik wrote: > Hi Heiner, > > this issue was on the back-burner for some time, but I've got some > interesting news now. > > On Sat, 18 Jul 2020 14:07:50 +0200 > Heiner Kallweit wrote: > >> [...] >> Maybe the following gives us an idea: >> Please do "ethtool -d " aft

Re: [PATCH] net: mdio: Remove redundant parameter and check

2020-09-23 Thread Heiner Kallweit
On 23.09.2020 12:05, Tang Bin wrote: > In the function ipq8064_mdio_probe(), of_mdiobus_register() might > returned zero, so the direct return can simplify code. Thus remove > redundant parameter and check. > > Signed-off-by: Zhang Shengju > Signed-off-by: Tang Bin > --- > drivers/net/mdio/mdio

[PATCH] net: mdio: Remove redundant parameter and check

2020-09-23 Thread Tang Bin
In the function ipq8064_mdio_probe(), of_mdiobus_register() might returned zero, so the direct return can simplify code. Thus remove redundant parameter and check. Signed-off-by: Zhang Shengju Signed-off-by: Tang Bin --- drivers/net/mdio/mdio-ipq8064.c | 8 ++-- 1 file changed, 2 insertions

Re: [PATCH v3 1/2] Bluetooth: btusb: define HCI packet sizes of USB Alts

2020-09-23 Thread Pali Rohár
Hello! On Monday 14 September 2020 20:18:27 Joseph Hwang wrote: > On Thu, Sep 10, 2020 at 4:18 PM Pali Rohár wrote: > > And this part of code which you write is Realtek specific. > > We currently only have Intel and Realtek platforms to test with. If > making it generic without proper testing pl

Re: [PATCH 4/4] net: rndis_host: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Greg KH
On Wed, Sep 23, 2020 at 02:35:19PM +0530, Himadri Pandya wrote: > The new usb_control_msg_recv() and usb_control_msg_send() nicely wraps > usb_control_msg() with proper error check. Hence use the wrappers > instead of calling usb_control_msg() directly. > > Signed-off-by: Himadri Pandya > --- >

Re: [PATCH 3/4] net: usb: rtl8150: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Oliver Neukum
Am Mittwoch, den 23.09.2020, 14:35 +0530 schrieb Himadri Pandya: Hi, > Many usage of usb_control_msg() do not have proper error check on return > value leaving scope for bugs on short reads. New usb_control_msg_recv() > and usb_control_msg_send() nicely wraps usb_control_msg() with proper > error

Re: [PATCH 0/4] net: usb: avoid using usb_control_msg() directly

2020-09-23 Thread Greg KH
On Wed, Sep 23, 2020 at 02:35:15PM +0530, Himadri Pandya wrote: > A recent bug-fix shaded light on possible incorrect use of > usb_control_msg() without proper error check. This resulted in > introducing new usb core api wrapper functions usb_control_msg_send() > and usb_control_msg_recv() by Greg

Re: [PATCH 1/4] net: usbnet: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Greg KH
On Wed, Sep 23, 2020 at 02:35:16PM +0530, Himadri Pandya wrote: > Potential incorrect use of usb_control_msg() has resulted in new wrapper > functions to enforce its correct usage with proper error check. Hence > use these new wrapper functions instead of calling usb_control_msg() > directly. > >

Re: [PATCH net-next 3/9] s390/qeth: clean up string ops in qeth_l3_parse_ipatoe()

2020-09-23 Thread Julian Wiedmann
On 23.09.20 12:55, David Laight wrote: > From: Julian Wiedmann >> Sent: 23 September 2020 09:37 >> >> Indicate the max number of to-be-parsed characters, and avoid copying >> the address sub-string. >> >> Signed-off-by: Julian Wiedmann >> --- >> drivers/s390/net/qeth_l3_sys.c | 27 ++-

[PATCH net-next] net: mscc: ocelot: always pass skb clone to ocelot_port_add_txtstamp_skb

2020-09-23 Thread Vladimir Oltean
Currently, ocelot switchdev passes the skb directly to the function that enqueues it to the list of skb's awaiting a TX timestamp. Whereas the felix DSA driver first clones the skb, then passes the clone to this queue. This matters because in the case of felix, the common IRQ handler, which is oce

[PATCH net-next] can: mcp25xxfd: fix a leak in mcp25xxfd_ring_free()

2020-09-23 Thread Dan Carpenter
This loop doesn't free the first element of the array. The "i > 0" has to be changed to "i >= 0". Fixes: 55e5b97f003e ("can: mcp25xxfd: add driver for Microchip MCP25xxFD SPI CAN") Signed-off-by: Dan Carpenter --- drivers/net/can/spi/mcp25xxfd/mcp25xxfd-core.c | 2 +- 1 file changed, 1 inserti

Re: [RFC PATCH] bonding: linkdesc can be static

2020-09-23 Thread Jarod Wilson
On Wed, Sep 23, 2020 at 12:15 AM kernel test robot wrote: > > Signed-off-by: kernel test robot > --- > bond_procfs.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/bonding/bond_procfs.c > b/drivers/net/bonding/bond_procfs.c > index 91ece68607b23..9b1b37a

Re: [PATCH] Revert "net: linkwatch: add check for netdevice being present to linkwatch_do_dev"

2020-09-23 Thread Heiner Kallweit
On 18.09.2020 19:58, Saeed Mahameed wrote: > On Tue, 2020-09-01 at 17:02 +0200, Geert Uytterhoeven wrote: >> This reverts commit 124eee3f6955f7aa19b9e6ff5c9b6d37cb3d1e2c. >> >> Inami-san reported that this commit breaks bridge support in a Xen >> environment, and that reverting it fixes this. >> >>

Re: [PATCH net-next] can: mcp25xxfd: fix a leak in mcp25xxfd_ring_free()

2020-09-23 Thread Marc Kleine-Budde
On 9/23/20 1:27 PM, Dan Carpenter wrote: > This loop doesn't free the first element of the array. The "i > 0" has > to be changed to "i >= 0". > > Fixes: 55e5b97f003e ("can: mcp25xxfd: add driver for Microchip MCP25xxFD SPI > CAN") > Signed-off-by: Dan Carpenter Applied to linux-can-next Tnx,

Re: [PATCH] ipvs: adjust the debug order of src and dst

2020-09-23 Thread Andrew Lunn
On Wed, Sep 23, 2020 at 02:06:25PM +0800, yue longguang wrote: > From: ylg > > adjust the debug order of src and dst when tcp state changes Hi Yue You need to explain why you are doing something, not what you are doing, in the commit message. Andrew

Re: [PATCH] e1000e: Power cycle phy on PM resume

2020-09-23 Thread Andrew Lunn
On Wed, Sep 23, 2020 at 03:47:51PM +0800, Kai-Heng Feng wrote: > We are seeing the following error after S3 resume: > [ 704.746874] e1000e :00:1f.6 eno1: Setting page 0x6020 > [ 704.844232] e1000e :00:1f.6 eno1: MDI Write did not complete > [ 704.902817] e1000e :00:1f.6 eno1: Setting

[PATCH v1] dt-binding: can: mcp25xxfd: documentation fixes

2020-09-23 Thread Oleksij Rempel
Apply following fixes: - Use 'interrupts'. (interrupts-extended will automagically be supported by the tools) - *-supply is always a single item. So, drop maxItems=1 - add "additionalProperties: false" flag to detect unneeded properties. Signed-off-by: Oleksij Rempel --- .../devicetree/binding

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-23 Thread Al Viro
On Wed, Sep 23, 2020 at 11:01:34AM +0300, Pavel Begunkov wrote: > > I'm not following why that would be considered a valid option, > > as that clearly breaks existing users that update from a 32-bit > > kernel to a 64-bit one. > > Do you mean users who move 32-bit binaries (without recompiling) t

Re: [Intel-wired-lan] [PATCH] e1000e: Power cycle phy on PM resume

2020-09-23 Thread Paul Menzel
Dear Kai-Heng, Am 23.09.20 um 09:47 schrieb Kai-Heng Feng: We are seeing the following error after S3 resume: [ 704.746874] e1000e :00:1f.6 eno1: Setting page 0x6020 [ 704.844232] e1000e :00:1f.6 eno1: MDI Write did not complete [ 704.902817] e1000e :00:1f.6 eno1: Setting page 0x

Re: [PATCH net-next RFC v5 00/15] Add devlink reload action and limit level options

2020-09-23 Thread Moshe Shemesh
I see no more comments, we reached consensus on API. I will finalize my work and re-send as a feature to net-next. Thanks, Moshe. On 9/18/2020 7:06 PM, Moshe Shemesh wrote: Introduce new options on devlink reload API to enable the user to select the reload action required and contrains lim

[PATCHv2 bpf-next 1/2] bpf: Use --no-fail option if CONFIG_BPF is not enabled

2020-09-23 Thread Jiri Olsa
Currently all the resolve_btfids 'users' are under CONFIG_BPF code, so if we have CONFIG_BPF disabled, resolve_btfids will fail, because there's no data to resolve. Disabling resolve_btfids if there's CONFIG_BPF disabled, so we won't fail such builds. Suggested-by: Andrii Nakryiko Signed-off-by:

[PATCHv2 bpf-next 2/2] tools resolve_btfids: Always force HOSTARCH

2020-09-23 Thread Jiri Olsa
Seth reported problem with cross builds, that fail on resolve_btfids build, because we are trying to build it on cross build arch. Fixing this by always forcing the host arch. Reported-by: Seth Forshee Signed-off-by: Jiri Olsa --- tools/bpf/resolve_btfids/Makefile | 2 ++ 1 file changed, 2 ins

Re: [PATCH 3/4] net: usb: rtl8150: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Himadri Pandya
On Wed, Sep 23, 2020 at 3:52 PM Oliver Neukum wrote: > > Am Mittwoch, den 23.09.2020, 14:35 +0530 schrieb Himadri Pandya: > > Hi, > > > Many usage of usb_control_msg() do not have proper error check on return > > value leaving scope for bugs on short reads. New usb_control_msg_recv() > > and usb_c

Re: [PATCH 1/4] net: usbnet: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Himadri Pandya
On Wed, Sep 23, 2020 at 3:54 PM Greg KH wrote: > > On Wed, Sep 23, 2020 at 02:35:16PM +0530, Himadri Pandya wrote: > > Potential incorrect use of usb_control_msg() has resulted in new wrapper > > functions to enforce its correct usage with proper error check. Hence > > use these new wrapper functi

Re: [PATCH 4/4] net: rndis_host: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Himadri Pandya
On Wed, Sep 23, 2020 at 3:52 PM Greg KH wrote: > > On Wed, Sep 23, 2020 at 02:35:19PM +0530, Himadri Pandya wrote: > > The new usb_control_msg_recv() and usb_control_msg_send() nicely wraps > > usb_control_msg() with proper error check. Hence use the wrappers > > instead of calling usb_control_msg

Re: [PATCH 3/9] iov_iter: refactor rw_copy_check_uvector and import_iovec

2020-09-23 Thread Al Viro
On Wed, Sep 23, 2020 at 08:05:41AM +0200, Christoph Hellwig wrote: > +struct iovec *iovec_from_user(const struct iovec __user *uvec, > + unsigned long nr_segs, unsigned long fast_segs, Hmm... For fast_segs unsigned long had always been ridiculous (4G struct iovec on caller stack fram

Re: [PATCH 3/4] net: usb: rtl8150: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Oliver Neukum
Am Mittwoch, den 23.09.2020, 19:36 +0530 schrieb Himadri Pandya: > On Wed, Sep 23, 2020 at 3:52 PM Oliver Neukum wrote: > > > > Am Mittwoch, den 23.09.2020, 14:35 +0530 schrieb Himadri Pandya: > > GFP_NOIO is used here for a reason. You need to use this helper > > while in contexts of error reco

Re: [PATCH 5/9] fs: remove various compat readv/writev helpers

2020-09-23 Thread Al Viro
On Wed, Sep 23, 2020 at 08:05:43AM +0200, Christoph Hellwig wrote: > COMPAT_SYSCALL_DEFINE3(readv, compat_ulong_t, fd, > - const struct compat_iovec __user *,vec, > + const struct iovec __user *, vec, Um... Will it even compile? > #ifdef __ARCH_WANT_COMPAT_SYS_PREADV64

Re: [PATCH 3/4] net: usb: rtl8150: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Himadri Pandya
On Wed, Sep 23, 2020 at 7:51 PM Oliver Neukum wrote: > > Am Mittwoch, den 23.09.2020, 19:36 +0530 schrieb Himadri Pandya: > > On Wed, Sep 23, 2020 at 3:52 PM Oliver Neukum wrote: > > > > > > Am Mittwoch, den 23.09.2020, 14:35 +0530 schrieb Himadri Pandya: > > > > GFP_NOIO is used here for a reaso

Re: [PATCH 5/9] fs: remove various compat readv/writev helpers

2020-09-23 Thread Christoph Hellwig
On Wed, Sep 23, 2020 at 03:25:49PM +0100, Al Viro wrote: > On Wed, Sep 23, 2020 at 08:05:43AM +0200, Christoph Hellwig wrote: > > COMPAT_SYSCALL_DEFINE3(readv, compat_ulong_t, fd, > > - const struct compat_iovec __user *,vec, > > + const struct iovec __user *, vec, > > Um...

Re: [PATCH v2] net/ipv4: always honour route mtu during forwarding

2020-09-23 Thread David Ahern
On 9/23/20 2:46 AM, Eric Dumazet wrote: >> diff --git a/include/net/ip.h b/include/net/ip.h >> index b09c48d862cc..c2188bebbc54 100644 >> --- a/include/net/ip.h >> +++ b/include/net/ip.h >> @@ -436,12 +436,17 @@ static inline unsigned int >> ip_dst_mtu_maybe_forward(const struct dst_entry *dst, >>

RE: [PATCH 3/9] iov_iter: refactor rw_copy_check_uvector and import_iovec

2020-09-23 Thread David Laight
From: Al Viro > Sent: 23 September 2020 15:17 > > On Wed, Sep 23, 2020 at 08:05:41AM +0200, Christoph Hellwig wrote: > > > +struct iovec *iovec_from_user(const struct iovec __user *uvec, > > + unsigned long nr_segs, unsigned long fast_segs, > > Hmm... For fast_segs unsigned long had a

Re: [PATCH 3/9] iov_iter: refactor rw_copy_check_uvector and import_iovec

2020-09-23 Thread Al Viro
On Wed, Sep 23, 2020 at 03:16:54PM +0100, Al Viro wrote: > On Wed, Sep 23, 2020 at 08:05:41AM +0200, Christoph Hellwig wrote: > > > +struct iovec *iovec_from_user(const struct iovec __user *uvec, > > + unsigned long nr_segs, unsigned long fast_segs, > > Hmm... For fast_segs unsigned lo

[PATCH] net: fec: Keep device numbering consistent with datasheet

2020-09-23 Thread Stefan Riedmueller
From: Christian Hemp Make use of device tree alias for device enumeration to keep the device order consistent with the naming in the datasheet. Otherwise for the i.MX 6UL/ULL the ENET1 interface is enumerated as eth1 and ENET2 as eth0. Signed-off-by: Christian Hemp Signed-off-by: Stefan Riedmu

Re: [PATCH] e1000e: Power cycle phy on PM resume

2020-09-23 Thread Kai-Heng Feng
Hi Andrew, > On Sep 23, 2020, at 20:17, Andrew Lunn wrote: > > On Wed, Sep 23, 2020 at 03:47:51PM +0800, Kai-Heng Feng wrote: >> We are seeing the following error after S3 resume: >> [ 704.746874] e1000e :00:1f.6 eno1: Setting page 0x6020 >> [ 704.844232] e1000e :00:1f.6 eno1: MDI Writ

Re: [Intel-wired-lan] [PATCH] e1000e: Power cycle phy on PM resume

2020-09-23 Thread Kai-Heng Feng
Hi Paul, > On Sep 23, 2020, at 21:28, Paul Menzel wrote: > > Dear Kai-Heng, > > > Am 23.09.20 um 09:47 schrieb Kai-Heng Feng: >> We are seeing the following error after S3 resume: >> [ 704.746874] e1000e :00:1f.6 eno1: Setting page 0x6020 >> [ 704.844232] e1000e :00:1f.6 eno1: MDI Wr

Re: [PATCH 3/4] net: usb: rtl8150: use usb_control_msg_recv() and usb_control_msg_send()

2020-09-23 Thread Petko Manolov
On 20-09-23 12:22:37, Oliver Neukum wrote: > Am Mittwoch, den 23.09.2020, 14:35 +0530 schrieb Himadri Pandya: > > Hi, > > > Many usage of usb_control_msg() do not have proper error check on return > > value leaving scope for bugs on short reads. New usb_control_msg_recv() > > and usb_control_msg_

Re: [PATCH 3/9] iov_iter: refactor rw_copy_check_uvector and import_iovec

2020-09-23 Thread Al Viro
On Wed, Sep 23, 2020 at 02:38:24PM +, David Laight wrote: > From: Al Viro > > Sent: 23 September 2020 15:17 > > > > On Wed, Sep 23, 2020 at 08:05:41AM +0200, Christoph Hellwig wrote: > > > > > +struct iovec *iovec_from_user(const struct iovec __user *uvec, > > > + unsigned long nr_seg

Re: [PATCH 5/9] fs: remove various compat readv/writev helpers

2020-09-23 Thread Al Viro
On Wed, Sep 23, 2020 at 04:32:51PM +0200, Christoph Hellwig wrote: > On Wed, Sep 23, 2020 at 03:25:49PM +0100, Al Viro wrote: > > On Wed, Sep 23, 2020 at 08:05:43AM +0200, Christoph Hellwig wrote: > > > COMPAT_SYSCALL_DEFINE3(readv, compat_ulong_t, fd, > > > - const struct compat_iovec __u

Re: [Intel-wired-lan] [PATCH] e1000e: Power cycle phy on PM resume

2020-09-23 Thread Paul Menzel
Dear Kai-Heng, Am 23.09.20 um 16:46 schrieb Kai-Heng Feng: On Sep 23, 2020, at 21:28, Paul Menzel wrote: Am 23.09.20 um 09:47 schrieb Kai-Heng Feng: We are seeing the following error after S3 resume: [ 704.746874] e1000e :00:1f.6 eno1: Setting page 0x6020 [ 704.844232] e1000e :00

Re: [PATCH 00/14] drop double zeroing

2020-09-23 Thread Mark Brown
On Wed, Sep 23, 2020 at 05:10:33PM +0200, Rolf Reintjes wrote: > On 21.09.20 18:58, Mark Brown wrote: > I do not understand which of the 14 patches you applied. Your mail responds > to the 00/14 mail. As the mail you're replying to says: > > [1/1] spi/topcliff-pch: drop double zeroing > >

Re: [PATCH 00/14] drop double zeroing

2020-09-23 Thread Rolf Reintjes
Hello Mark, On 21.09.20 18:58, Mark Brown wrote: On Sun, 20 Sep 2020 13:26:12 +0200, Julia Lawall wrote: sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thank

Re: [PATCH bpf-next v4 11/11] bpf: use a table to drive helper arg type checks

2020-09-23 Thread Alexei Starovoitov
On Wed, Sep 23, 2020 at 2:45 AM Lorenz Bauer wrote: > > On Tue, 22 Sep 2020 at 21:07, Alexei Starovoitov > wrote: > > > > On Tue, Sep 22, 2020 at 09:20:27AM +0100, Lorenz Bauer wrote: > > > On Mon, 21 Sep 2020 at 23:23, Alexei Starovoitov > > > wrote: > > > > > > > > On Mon, Sep 21, 2020 at 01:1

Re: [PATCH] e1000e: Power cycle phy on PM resume

2020-09-23 Thread Andrew Lunn
On Wed, Sep 23, 2020 at 10:44:10PM +0800, Kai-Heng Feng wrote: > Hi Andrew, > > > On Sep 23, 2020, at 20:17, Andrew Lunn wrote: > > > > On Wed, Sep 23, 2020 at 03:47:51PM +0800, Kai-Heng Feng wrote: > >> We are seeing the following error after S3 resume: > >> [ 704.746874] e1000e :00:1f.6 e

[PATCH net-next v2 2/3] of: add of_mdio_find_device() api

2020-09-23 Thread Ioana Ciornei
From: Russell King Add a helper function which finds the mdio_device structure given a device tree node. This is helpful for finding the PCS device based on a DTS node but managing it as a mdio_device instead of a phy_device. Signed-off-by: Russell King Signed-off-by: Ioana Ciornei --- Changes

[PATCH net-next v2 1/3] net: pcs-lynx: add support for 10GBASER

2020-09-23 Thread Ioana Ciornei
Add support in the Lynx PCS module for the 10GBASE-R mode which is only used to get the link state, since it offers a single fixed speed. Signed-off-by: Ioana Ciornei --- Changes in v2: - none drivers/net/pcs/pcs-lynx.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/pcs/

[PATCH net-next v2 0/3] dpaa2-mac: add PCS support through the Lynx module

2020-09-23 Thread Ioana Ciornei
This patch set aims to add PCS support in the dpaa2-eth driver by leveraging the Lynx PCS module. The first two patches are some missing pieces: the first one adding support for 10GBASER in Lynx PCS while the second one adds a new function - of_mdio_find_device - which is helpful in retrieving the

[PATCH net-next v2 3/3] dpaa2-mac: add PCS support through the Lynx module

2020-09-23 Thread Ioana Ciornei
Include PCS support in the dpaa2-eth driver by integrating it with the new Lynx PCS module. There is not much to talk about in terms of changes needed in the dpaa2-eth driver since the only steps necessary are to find the MDIO device representing the PCS, register it to the Lynx PCS module and then

  1   2   3   4   >