From: Wong Vee Khee <vee.khee.wong@linux.intel.com>
To: Vladimir Oltean <olteanv@gmail.com>
Cc: Jakub Kicinski <kuba@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
netdev@vger.kernel.org,
Giuseppe Cavallaro <peppe.cavallaro@st.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Jose Abreu <joabreu@synopsys.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King - ARM Linux admin <linux@armlinux.org.uk>,
Florian Fainelli <f.fainelli@gmail.com>,
Andrew Lunn <andrew@lunn.ch>,
Ong Boon Leong <boon.leong.ong@intel.com>,
Michael Sit Wei Hong <michael.wei.hong.sit@intel.com>,
Vladimir Oltean <vladimir.oltean@nxp.com>
Subject: Re: [RFC PATCH net-next 0/8] Convert xpcs to phylink_pcs_ops
Date: Fri, 28 May 2021 10:15:21 +0800 [thread overview]
Message-ID: <20210528021521.GA20022@linux.intel.com> (raw)
In-Reply-To: <20210527204528.3490126-1-olteanv@gmail.com>
On Thu, May 27, 2021 at 11:45:20PM +0300, Vladimir Oltean wrote:
> From: Vladimir Oltean <vladimir.oltean@nxp.com>
>
> This patch series is COMPLETELY UNTESTED (I don't have stmmac hardware
> with the xpcs) hence the RFC tag. If people from Intel could test this
> it would be great.
>
> Background: the sja1105 DSA driver currently drives a Designware XPCS
> for SGMII and 2500base-X, and it would be nice to reuse some code with
> the xpcs module. This would also help consolidate the phylink_pcs_ops,
> since the only user of that, currently, is the lynx_pcs.
>
> Therefore, this series makes the xpcs expose the same kind of API that
> the lynx_pcs module does.
>
> Note: this patch series must be applied on top of:
> https://patchwork.kernel.org/project/netdevbpf/patch/20210527155959.3270478-1-olteanv@gmail.com/
>
> Vladimir Oltean (8):
> net: pcs: xpcs: delete shim definition for mdio_xpcs_get_ops()
> net: pcs: xpcs: check for supported PHY interface modes in
> phylink_validate
> net: pcs: xpcs: export xpcs_validate
> net: pcs: export xpcs_config_eee
> net: pcs: xpcs: export xpcs_probe
> net: pcs: xpcs: convert to phylink_pcs_ops
> net: pcs: xpcs: use mdiobus_c45_addr in xpcs_{read,write}
> net: pcs: xpcs: convert to mdio_device
>
> drivers/net/ethernet/stmicro/stmmac/common.h | 3 +-
> drivers/net/ethernet/stmicro/stmmac/hwif.h | 14 --
> .../ethernet/stmicro/stmmac/stmmac_ethtool.c | 5 +-
> .../net/ethernet/stmicro/stmmac/stmmac_main.c | 41 +---
> .../net/ethernet/stmicro/stmmac/stmmac_mdio.c | 41 ++--
> drivers/net/pcs/pcs-xpcs.c | 199 +++++++++++-------
> include/linux/pcs/pcs-xpcs.h | 35 +--
> 7 files changed, 162 insertions(+), 176 deletions(-)
I got the following kernel panic after applying [1], and followed by
this patch series.
[1] https://patchwork.kernel.org/project/netdevbpf/patch/20210527155959.3270478-1-olteanv@gmail.com/
[ 10.742057] libphy: stmmac: probed
[ 10.750396] mdio_bus stmmac-1:01: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-1:01, irq=POLL)
[ 10.818222] intel-eth-pci 0000:00:1e.4 (unnamed net_device) (uninitialized): failed to validate link configuration for in-band status
[ 10.830348] intel-eth-pci 0000:00:1e.4 (unnamed net_device) (uninitialized): failed to setup phy (-22)
[ 10.879931] ish-hid {33AECD58-B679-4E54-9BD9-A04D34F0C226}: [hid-ish]: enum_devices_done OK, num_hid_devices=6
[ 10.901311] hid-generic 001F:8087:0AC2.0001: device has no listeners, quitting
[ 10.922498] hid-generic 001F:8087:0AC2.0002: device has no listeners, quitting
[ 10.940073] hid-generic 001F:8087:0AC2.0003: device has no listeners, quitting
[ 10.951878] hid-generic 001F:8087:0AC2.0004: device has no listeners, quitting
[ 10.958230] atkbd serio0: Failed to enable keyboard on isa0060/serio0
[ 10.965799] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input5
[ 10.978620] ------------[ cut here ]------------
[ 10.983295] stmmac-0000:00:1e.4 already disabled
[ 10.987973] WARNING: CPU: 3 PID: 2588 at drivers/clk/clk.c:952 clk_core_disable+0x96/0x1b0
[ 10.989541] hid-generic 001F:8087:0AC3.0005: device has no listeners, quitting
[ 10.996322] Modules linked in: intel_ishtp_hid(+) ax88179_178a dwmac_intel(+) usbnet x86_pkg_temp_thermal stmmac mii kvm_intel dwc3 atkbd mei_wdt udc_core pcs_xpcs libps2 mei_hdcp kvm phylink libphy irqbypass spi_pxa2xx_platform i915(+) wdat_wdt dw_dmac mei_me dw_dmac_core i2c_i801 intel_ish_ipc intel_rapl_msr intel_ishtp pcspkr i2c_smbus mei dwc3_pci thermal tpm_crb tpm_tis tpm_tis_core parport_pc parport tpm i8042 intel_pmc_core sch_fq_codel uhid fuse configfs snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec snd_hda_core snd_pcm snd_timer snd soundcore
[ 11.006487] hid-generic 001F:8087:0AC3.0006: device has no listeners, quitting
[ 11.054376] CPU: 3 PID: 2588 Comm: systemd-udevd Tainted: G U 5.13.0-rc3-intel-lts #68
[ 11.054378] Hardware name: Intel Corporation Tiger Lake Client Platform/TigerLake U DDR4 SODIMM RVP, BIOS TGLIFUI1.R00.3373.AF0.2009230546 09/23/2020
[ 11.084467] RIP: 0010:clk_core_disable+0x96/0x1b0
[ 11.089221] Code: 00 8b 05 45 96 17 01 85 c0 7f 24 48 8b 5b 30 48 85 db 74 a5 8b 43 7c 85 c0 75 93 48 8b 33 48 c7 c7 6e 32 0c 8d e8 b2 5d 52 00 <0f> 0b 5b 5d c3 65 8b 05 76 31 d8 73 89 c0 48 0f a3 05 bc 92 1a 01
[ 11.108121] RSP: 0018:ffffacc50038baa0 EFLAGS: 00010086
[ 11.113400] RAX: 0000000000000000 RBX: ffff9702895e3800 RCX: 0000000000000000
[ 11.120594] RDX: 0000000000000002 RSI: ffffffff8d062d5f RDI: 00000000ffffffff
[ 11.127794] RBP: 0000000000000283 R08: 0000000000000000 R09: ffffacc50038b8d0
[ 11.134995] R10: 0000000000000001 R11: 0000000000000001 R12: ffff9702895e3800
[ 11.142189] R13: 0000000000000006 R14: ffff970282a960c8 R15: ffffacc50038bad0
[ 11.149382] FS: 00007fe7654f6780(0000) GS:ffff970417f80000(0000) knlGS:0000000000000000
[ 11.157536] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 11.163337] CR2: 00007f5e93783000 CR3: 0000000108ca0001 CR4: 0000000000770ee0
[ 11.170530] PKRU: 55555554
[ 11.173275] Call Trace:
[ 11.175755] clk_core_disable_lock+0x1b/0x30
[ 11.180075] intel_eth_pci_probe.cold+0x11d/0x136 [dwmac_intel]
[ 11.186055] pci_device_probe+0xcf/0x150
[ 11.190021] really_probe+0xf5/0x3e0
[ 11.193646] driver_probe_device+0x64/0x150
[ 11.197874] device_driver_attach+0x53/0x60
[ 11.202103] __driver_attach+0x9f/0x150
[ 11.205984] ? device_driver_attach+0x60/0x60
[ 11.210387] ? device_driver_attach+0x60/0x60
[ 11.214789] bus_for_each_dev+0x77/0xc0
[ 11.218670] bus_add_driver+0x184/0x1f0
[ 11.222550] driver_register+0x6c/0xc0
[ 11.226347] ? 0xffffffffc0641000
[ 11.229705] do_one_initcall+0x4a/0x210
[ 11.233585] ? kmem_cache_alloc_trace+0x305/0x4e0
[ 11.238337] do_init_module+0x5c/0x230
[ 11.242127] load_module+0x2894/0x2b70
[ 11.245919] ? __do_sys_finit_module+0xb5/0x120
[ 11.250496] __do_sys_finit_module+0xb5/0x120
[ 11.254899] do_syscall_64+0x42/0x80
[ 11.258517] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 11.263624] RIP: 0033:0x7fe76579bd4d
[ 11.267247] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 03 31 0c 00 f7 d8 64 89 01 48
[ 11.286138] RSP: 002b:00007ffd7aaa2e08 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 11.293772] RAX: ffffffffffffffda RBX: 00005649a8ea6990 RCX: 00007fe76579bd4d
[ 11.300964] RDX: 0000000000000000 RSI: 00007fe76592f1e3 RDI: 0000000000000012
[ 11.308158] RBP: 0000000000020000 R08: 0000000000000000 R09: 0000000000000000
[ 11.315351] R10: 0000000000000012 R11: 0000000000000246 R12: 00007fe76592f1e3
[ 11.322544] R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffd7aaa2fc8
[ 11.329739] ---[ end trace 2cfbe6d1617011ac ]---
[ 11.334825] ------------[ cut here ]------------
HTH,
VK
next prev parent reply other threads:[~2021-05-28 2:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-27 20:45 [RFC PATCH net-next 0/8] Convert xpcs to phylink_pcs_ops Vladimir Oltean
2021-05-27 20:45 ` [RFC PATCH net-next 1/8] net: pcs: xpcs: delete shim definition for mdio_xpcs_get_ops() Vladimir Oltean
2021-05-27 20:45 ` [RFC PATCH net-next 2/8] net: pcs: xpcs: check for supported PHY interface modes in phylink_validate Vladimir Oltean
2021-05-27 20:45 ` [RFC PATCH net-next 3/8] net: pcs: xpcs: export xpcs_validate Vladimir Oltean
2021-05-27 20:45 ` [RFC PATCH net-next 4/8] net: pcs: export xpcs_config_eee Vladimir Oltean
2021-05-27 20:45 ` [RFC PATCH net-next 5/8] net: pcs: xpcs: export xpcs_probe Vladimir Oltean
2021-05-27 20:45 ` [RFC PATCH net-next 6/8] net: pcs: xpcs: convert to phylink_pcs_ops Vladimir Oltean
2021-05-27 20:45 ` [RFC PATCH net-next 7/8] net: pcs: xpcs: use mdiobus_c45_addr in xpcs_{read,write} Vladimir Oltean
2021-05-27 20:45 ` [RFC PATCH net-next 8/8] net: pcs: xpcs: convert to mdio_device Vladimir Oltean
2021-05-28 2:15 ` Wong Vee Khee [this message]
2021-05-28 9:12 ` [RFC PATCH net-next 0/8] Convert xpcs to phylink_pcs_ops Vladimir Oltean
2021-05-31 2:30 ` Wong Vee Khee
2021-05-31 10:07 ` Vladimir Oltean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210528021521.GA20022@linux.intel.com \
--to=vee.khee.wong@linux.intel.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew@lunn.ch \
--cc=boon.leong.ong@intel.com \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=joabreu@synopsys.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mcoquelin.stm32@gmail.com \
--cc=michael.wei.hong.sit@intel.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=peppe.cavallaro@st.com \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.