lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200707012223.04514.mb@bu3sch.de>
Date:	Sun, 1 Jul 2007 22:23:04 +0200
From:	Michael Buesch <mb@...sch.de>
To:	dhananjay.phadke@...il.com
Cc:	netdev@...r.kernel.org, rob@...xen.com,
	Milan Bag <mbag@...xen.com>, Wen Xiong <wenxiong@...ibm.com>
Subject: Re: RESEND [PATCH 3/3] NetXen: Graceful teardown of interface and hardware upon module unload

On Sunday 01 July 2007 20:56:01 dhananjay.phadke@...il.com wrote:
> These changes allow driver close routine to be called during module unload,
> to clean-up buffers and other software resources, flush queues etc. Also,
> hardware is reset to pristine state. 
> 
> Signed-off-by: Dhananjay Phadke <dhananjay@...xen.com>
> Signed-off-by: Milan Bag <mbag@...xen.com>
> Signed-off-by: Wen Xiong <wenxiong@...ibm.com>
> 


> +			msleep(1);
> +			if (netxen_load_firmware(adapter))
> +				return;
> +			netxen_phantom_init(adapter, NETXEN_NIC_PEG_TUNE);
> +		}
> +
> +		/* clear the register for future unloads/loads */
> +		writel(0, NETXEN_CRB_NORMALIZE(adapter, NETXEN_CAM_RAM(0x1fc)));
> +		printk(KERN_INFO "State: 0x%0x\n",
> +			readl(NETXEN_CRB_NORMALIZE(adapter, CRB_CMDPEG_STATE)));
> +
> +		dma_watchdog_shutdown_request(adapter);
> +		mdelay(100);
> +		i = 100;
> +		while ((dma_watchdog_shutdown_poll_result(adapter) != 1) && i) {
> +			printk(KERN_INFO "dma_watchdog_shutdown_poll still in progress\n");
> +			mdelay(100);
> +			i--;
> +		}

msleep, please.

-- 
Greetings Michael.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ