All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [patch RFC 0/6] network fixes for link waiting
Date: Thu, 15 Nov 2012 09:52:24 +0800	[thread overview]
Message-ID: <50A44AD8.9000604@redhat.com> (raw)
In-Reply-To: <50A378F0.4030907-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On 11/14/2012 06:56 PM, Harald Hoyer wrote:

> Am 14.11.2012 09:49, schrieb Dave Young:
>> Even with this series we still need add rd.retry=90 to make it work.
>> How about increase the default rd.retry value in dracut?
>>
>> On 11/08/2012 11:40 AM, dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org wrote:
>>
>>> Here is a patch set for some network cleanup and fixes:
>>> 01-network-move-wait-for-if-function-to-net-lib.patch
>>> 02-network-add-function-linkup.patch
>>> 03-network-use-linkup-function.patch
>>> 04-network-wait-for-link-ready-before-use.patch
>>> 05-network-get-ifaces-for-udev-rule-use.patch
>>> 06-network-wait-interface-up-at-early-stage.patch
>>>
>>> Tested kdump with a nic which delay abouth 60s while initializing.
>>>
>>> Please help to review especially for the patch 3/6 which replace some ip link
>>> up with a function linkup.
>>>
>>> --
>>> Thanks a lot
>>> Dave
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe initramfs" in
>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
>>
> 
> wow, which HW is recognized only after 40 seconds?


Hi, It's a Qlogic nic, seel below log, looks like it detected a wrong
firmware, then released it and loaded firmware from flash:

Ethernet using netxen_nic driver for exp., suppressed irrelevant info.
[    6.666842] QLogic/NetXen Network Driver v4.0.80
[    6.727424] netxen_nic 0000:04:00.0: 2MB memory map
[   38.484866] netxen_nic 0000:04:00.0: Incompatibility detected between
driver and firmware version on flash. This configuration is not
recommended. Please update the firmware on flash immediately
dracut-pre-pivot[581]: device node not found
dracut-pre-pivot[581]: cat: /sys/class/net/em1/address: No such file or
directory
dracut-pre-pivot[581]: cat: /sys/class/net/em1/address: No such file or
directory
dracut-pre-pivot[581]: ++ KDUMP_PATH=/var/crash
dracut-pre-pivot[581]: ++ CORE_COLLECTOR=
dracut-pre-pivot[581]: ++ DEFAULT_CORE_COLLECTOR='makedumpfile -c
--message-level 1 -d 31'
dracut-pre-pivot[581]: ++ DEFAULT_ACTION=dump_rootfs
dracut-pre-pivot[581]: +++ date +%d.%m.%y-%T
dracut-pre-pivot[581]: ++ DATEDIR=05.11.12-00:32:36
dracut-pre-pivot[581]: ++ DUMP_INSTRUCTION=
dracut-pre-pivot[581]: ++ SSH_KEY_LOCATION=/root/.ssh/kdump_id_rsa
dracut-pre-pivot[581]: ++ KDUMP_SCRIPT_DIR=/kdumpscripts
dracut-pre-pivot[581]: ++ DD_BLKSIZE=512
dracut-pre-pivot[581]: ++ FINAL_ACTION='reboot -f'
dracut-pre-pivot[581]: ++ DUMP_RETVAL=0
dracut-pre-pivot[581]: ++ conf_file=/etc/kdump.conf
dracut-pre-pivot[581]: ++ KDUMP_PRE=


Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.

kdump:/# dracut-pre-pivot[581]: ++ KDUMP_POST=
dracut-pre-pivot[581]: ++ export
PATH=/usr/sbin:/usr/bin:/sbin:/bin:/kdumpscripts
dracut-pre-pivot[581]: ++ PATH=/usr/sbin:/usr/bin:/sbin:/bin:/kdumpscripts
dracut-pre-pivot[581]: ++ read_kdump_conf
dracut-pre-pivot[581]: ++ '[' '!' -f /etc/kdump.conf ']'
dracut-pre-pivot[581]: ++ read config_opt config_val
dracut-pre-pivot[581]: ++ case "$config_opt" in
dracut-pre-pivot[581]: ++ read config_opt config_val
dracut-pre-pivot[581]: ++ case "$config_opt" in
dracut-pre-pivot[581]: ++ KDUMP_PATH=/
dracut-pre-pivot[581]: ++ read config_opt config_val
dracut-pre-pivot[581]: ++ case "$config_opt" in
dracut-pre-pivot[581]: ++ read config_opt config_val
dracut-pre-pivot[581]: ++ case "$config_opt" in
dracut-pre-pivot[581]: ++ case $config_val in
dracut-pre-pivot[581]: ++ DEFAULT_ACTION='_emergency_shell kdump'
dracut-pre-pivot[581]: ++ read config_opt config_val
dracut-pre-pivot[581]: ++ read config_opt config_val
dracut-pre-pivot[581]: ++ case "$config_opt" in
dracut-pre-pivot[581]: ++ read config_opt config_val
dracut-pre-pivot[581]: ++ case "$config_opt" in
dracut-pre-pivot[581]: ++ read config_opt config_val
dracut-pre-pivot[581]: ++ case "$config_opt" in
dracut-pre-pivot[581]: ++ add_dump_code 'dump_fs
ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs'
dracut-pre-pivot[581]: ++ DUMP_INSTRUCTION='dump_fs
ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs'
dracut-pre-pivot[581]: ++ read config_opt config_val
dracut-pre-pivot[581]: ++ case "$config_opt" in
dracut-pre-pivot[581]: ++ read config_opt config_val
dracut-pre-pivot[581]: ++ '[' -z '' ']'
dracut-pre-pivot[581]: ++ CORE_COLLECTOR='makedumpfile -c
--message-level 1 -d 31'
dracut-pre-pivot[581]: ++ is_ssh_dump_target
dracut-pre-pivot[581]: ++ grep -q '^ssh.*@' /etc/kdump.conf
dracut-pre-pivot[581]: ++ is_raw_dump_target
dracut-pre-pivot[581]: ++ grep -q '^raw' /etc/kdump.conf
dracut-pre-pivot[581]: ++ '[' -z 'dump_fs
ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs' ']'
dracut-pre-pivot[581]: ++ do_kdump_pre
dracut-pre-pivot[581]: ++ '[' -n '' ']'
dracut-pre-pivot[581]: ++ '[' 0 -ne 0 ']'
dracut-pre-pivot[581]: ++ dump_fs
ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs
dracut-pre-pivot[581]: +++ findmnt -k -f -n -r -o TARGET
ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs
dracut-pre-pivot[581]: ++ local _mp=
dracut-pre-pivot[581]: ++ '[' -z '' ']'
dracut-pre-pivot[581]: ++ echo 'kdump: error: Dump target
ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs is not mounted.'
dracut-pre-pivot[581]: ++ return 1
dracut-pre-pivot[581]: ++ DUMP_RETVAL=1
dracut-pre-pivot[581]: ++ do_kdump_post 1
dracut-pre-pivot[581]: ++ '[' -n '' ']'
dracut-pre-pivot[581]: ++ '[' 0 -ne 0 ']'
dracut-pre-pivot[581]: ++ '[' 1 -ne 0 ']'
dracut-pre-pivot[581]: ++ do_default_action
dracut-pre-pivot[581]: ++ wait_for_loginit
dracut-pre-pivot[581]: ++ '[' no = yes ']'
dracut-pre-pivot[581]: ++ return
dracut-pre-pivot[581]: ++ _emergency_shell kdump
dracut-pre-pivot[581]: ++ local _name=kdump
dracut-pre-pivot[581]: ++ '[' -n 1 ']'
dracut-pre-pivot[581]: ++ echo 'PS1="kdump:${PWD}# "'
dracut-pre-pivot[581]: ++ systemctl start dracut-emergency.service
[  101.732446] netxen_nic 0000:04:00.0: loading firmware from flash
[  103.873799] netxen_nic 0000:04:00.0: Gen2 strapping detected
[  106.880731] netxen_nic 0000:04:00.0: using 64-bit dma mask
[  106.888721] netxen_nic: failed card response code:0x10
[  106.894405] netxen_nic 0000:04:00.0: Can't get template size 16843009
[  106.901481] netxen_nic 0000:04:00.0: Failed to setup minidump rcode = -5
[  106.908839] netxen_nic: NX3031 Gigabit Ethernet Board S/N
���������������������������������▒��  Chip rev 0x42
[  106.919726] netxen_nic 0000:04:00.0: firmware v4.0.527 [legacy]
[  106.926689] netxen_nic 0000:04:00.0: using msi-x interrupts
[  106.933163] netxen_nic 0000:04:00.0: eth0: GbE port initialized
[  106.939902] netxen_nic 0000:04:00.1: 2MB memory map
[  106.949661] netxen_nic 0000:04:00.1: using 64-bit dma mask
[  106.965572] systemd-udevd[629]: renamed network interface eth0 to em1
[  106.982471] netxen_nic: failed card response code:0x10
[  106.988124] netxen_nic 0000:04:00.1: Can't get template size 16843009
[  106.995196] netxen_nic 0000:04:00.1: Failed to setup minidump rcode = -5
[  107.002555] netxen_nic 0000:04:00.1: firmware v4.0.527 [legacy]
[  107.009440] netxen_nic 0000:04:00.1: using msi-x interrupts
[  107.015687] netxen_nic 0000:04:00.1: eth0: GbE port initialized
[  107.022569] netxen_nic 0000:04:00.2: 2MB memory map
[  107.030819] netxen_nic 0000:04:00.2: using 64-bit dma mask
[  107.062359] systemd-udevd[633]: renamed network interface eth0 to em2
[  107.075314] netxen_nic: failed card response code:0x10
[  107.081043] netxen_nic 0000:04:00.2: Can't get template size 16843009
[  107.088117] netxen_nic 0000:04:00.2: Failed to setup minidump rcode = -5
[  107.095476] netxen_nic 0000:04:00.2: firmware v4.0.527 [legacy]
[  107.102316] netxen_nic 0000:04:00.2: using msi-x interrupts
[  107.108574] netxen_nic 0000:04:00.2: eth0: GbE port initialized
[  107.115596] netxen_nic 0000:04:00.3: 2MB memory map
[  107.124339] netxen_nic 0000:04:00.3: using 64-bit dma mask
[  107.157705] systemd-udevd[629]: renamed network interface eth0 to em3
[  107.184131] netxen_nic: failed card response code:0x10
[  107.189786] netxen_nic 0000:04:00.3: Can't get template size 16843009
[  107.196853] netxen_nic 0000:04:00.3: Failed to setup minidump rcode = -5
[  107.204205] netxen_nic 0000:04:00.3: firmware v4.0.527 [legacy]
[  107.211062] netxen_nic 0000:04:00.3: using msi-x interrupts
[  107.217311] netxen_nic 0000:04:00.3: eth0: GbE port initialized
[  107.244557] systemd-udevd[629]: renamed network interface eth0 to em4


-- 
Thanks
Dave

      parent reply	other threads:[~2012-11-15  1:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08  3:40 [patch RFC 0/6] network fixes for link waiting dyoung-H+wXaHxf7aLQT0dZR+AlfA
2012-11-08  3:40 ` [patch RFC 1/6] Move wait for if functions to net lib dyoung-H+wXaHxf7aLQT0dZR+AlfA
     [not found]   ` <20121108034317.171739916-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-11-08  9:50     ` Dave Young
2012-11-08  3:40 ` [patch RFC 2/6] Add function linkup dyoung-H+wXaHxf7aLQT0dZR+AlfA
2012-11-08  3:40 ` [patch RFC 3/6] Change to use linkup function in network scripts dyoung-H+wXaHxf7aLQT0dZR+AlfA
2012-11-08  3:40 ` [patch RFC 4/6] Wait for link ready before use the interface dyoung-H+wXaHxf7aLQT0dZR+AlfA
2012-11-08  3:40 ` [patch RFC 5/6] Get ifaces for udev rule use dyoung-H+wXaHxf7aLQT0dZR+AlfA
     [not found]   ` <20121108034317.735680044-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-11-29  8:07     ` Dave Young
2012-11-08  3:40 ` [patch RFC 6/6] Wait for interface up at the early stage dyoung-H+wXaHxf7aLQT0dZR+AlfA
     [not found]   ` <20121108034317.844374819-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-11-29  8:09     ` Dave Young
     [not found] ` <20121108034018.789330224-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-11-14  8:49   ` [patch RFC 0/6] network fixes for link waiting Dave Young
     [not found]     ` <50A35B2E.9050206-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-11-14 10:56       ` Harald Hoyer
     [not found]         ` <50A378F0.4030907-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-11-15  1:52           ` Dave Young [this message]

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=50A44AD8.9000604@redhat.com \
    --to=dyoung-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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.