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] [day] [month] [year] [list]
Date:	Fri, 2 Dec 2011 14:43:37 -0800
From:	"Allan, Bruce W" <bruce.w.allan@...el.com>
To:	Ben Hutchings <bhutchings@...arflare.com>,
	Kumar Gala <galak@...nel.crashing.org>
CC:	"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
	"Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
	"e1000-devel@...ts.sourceforge.net" 
	<e1000-devel@...ts.sourceforge.net>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	Prabhakar <prabhakar@...escale.com>
Subject: RE: [PATCH] e1000e: Fix bug for e1000e interrupt default mode
 select.

>-----Original Message-----
>From: netdev-owner@...r.kernel.org [mailto:netdev-owner@...r.kernel.org] On
>Behalf Of Ben Hutchings
>Sent: Friday, December 02, 2011 9:55 AM
>To: Kumar Gala
>Cc: Kirsher, Jeffrey T; Brandeburg, Jesse; e1000-devel@...ts.sourceforge.net;
>netdev@...r.kernel.org; Prabhakar
>Subject: Re: [PATCH] e1000e: Fix bug for e1000e interrupt default mode select.
>
>On Fri, 2011-12-02 at 01:11 -0600, Kumar Gala wrote:
>> From: Prabhakar <prabhakar@...escale.com>
>>
>> If the kernel config does not have MSI enabled (CONFIG_PCI_MSI) the driver
>> should not default to MSI interrupt mode but legacy interrupt mode.
>
>It is supposed to automatically fall-back to legacy interrupt mode.
>Does that not work?

It should, and that was my argument (discussed internally) when a similar
patch was previously submitted.  Different from the prior patch, this one
also changes the default message generated when the IntMode is specified
for one interface but not all.  However, it's not quite right in that only
a small subset of the devices supported by e1000e have support for MSI-X in
the hardware.  I have another patch queued up internally here at Intel that
changes the default IntMode based on not only kernel support of MSI/MSI-X
but also on feature support in hardware with additional comments for more
clarification.  My patch should be pushed upstream soon.

>
>Also, are there really systems with PCI Express and no MSI support?
>
>Ben.
>
>> Signed-off-by: Jin Qing <b24347@...escale.com>
>> Signed-off-by: Prabhakar <prabhakar@...escale.com>
>> Signed-off-by: Kumar Gala <galak@...nel.crashing.org>
>> ---
>>  drivers/net/ethernet/intel/e1000e/param.c |    5 +++++
>>  1 files changed, 5 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/net/ethernet/intel/e1000e/param.c
>b/drivers/net/ethernet/intel/e1000e/param.c
>> index 20e93b0..18c35c6 100644
>> --- a/drivers/net/ethernet/intel/e1000e/param.c
>> +++ b/drivers/net/ethernet/intel/e1000e/param.c
>> @@ -388,8 +388,13 @@ void __devinit e1000e_check_options(struct e1000_adapter
>*adapter)
>>  		static struct e1000_option opt = {
>>  			.type = range_option,
>>  			.name = "Interrupt Mode",
>> +#ifdef CONFIG_PCI_MSI
>>  			.err  = "defaulting to 2 (MSI-X)",
>>  			.def  = E1000E_INT_MODE_MSIX,
>> +#else
>> +			.err  = "defaulting to 0 (Legacy)",
>> +			.def  = E1000E_INT_MODE_LEGACY,
>> +#endif
>>  			.arg  = { .r = { .min = MIN_INTMODE,
>>  					 .max = MAX_INTMODE } }
>>  		};
>
>--
>Ben Hutchings, Staff Engineer, Solarflare
>Not speaking for my employer; that's the marketing department's job.
>They asked us to note that Solarflare product names are trademarked.
>
>--
>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