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: <F169D4F5E1F1974DBFAFABF47F60C10A1753409B@orsmsx507.amr.corp.intel.com>
Date:	Mon, 8 Dec 2008 09:36:53 -0800
From:	"Brandeburg, Jesse" <jesse.brandeburg@...el.com>
To:	David Miller <davem@...emloft.net>,
	"Valdis.Kletnieks@...edu" <Valdis.Kletnieks@...edu>
CC:	"mitake@...stcom.com" <mitake@...stcom.com>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"ktaka@...stcom.com" <ktaka@...stcom.com>,
	"Brandeburg, Jesse" <jesse.brandeburg@...el.com>
Subject: RE: [RFC] New functions to manipulate registers for ethtool

David Miller wrote:
> From: Valdis.Kletnieks@...edu
> Date: Mon, 08 Dec 2008 04:01:43 -0500
> 
>> On Mon, 08 Dec 2008 00:54:31 PST, David Miller said:
>>> From: Hitoshi Mitake <mitake@...stcom.com>
>>> Date: Mon, 8 Dec 2008 17:12:30 +0900
>>> 
>>>> I want to add two new functions to ethtool.
>>>> 
>>>> One is for setting driver's registers on MMIO area like
>>>> --change-eeprom option.
>>> 
>>> You can map the registers into userspace using the bus
>>> level mmap facilities exported to userspace.

one hiccup, Arjan recently added functionality to the kernel that could
disallow this unless a user overrides at boot. [1]

also, there is a .config option that disallows this but I'm just
mentioning it for posterity.

>>> No ethtool support is necessary for this.
>> 
>> Yes, but if Hitoshi wants to tell a user "run this command and send
>> me the output", what's the incantation the user needs to use?
> 

ethregs -s <bus>:<dev>.<fn>

> That's an awful reason to have to two ways of doing the exact same
> thing from userspace.
> 
> Write the tool.  Someone will if it's important enough (in fact
> such code probably exists already).

Hi Hitoshi,
you probably want to download and install our ethregs utility.
http://prdownloads.sf.net/e1000/ethregs-1.1.tar.gz
(this is not a direct link as it seems but gets redirected to a mirror
page, usually)

Please let me know if it doesn't support your device ID.



[1] http://marc.info/?l=linux-kernel&m=122747416512900&w=2


Download attachment "smime.p7s" of type "application/x-pkcs7-signature" (6703 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ