Re: [PATCH] kexec: force x86_64 arches to boot kdump kernels on boot cpu

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Tuesday, December 11, 2007 - 8:29 am

Neil Horman <nhorman@tuxdriver.com> writes:


Ok.  I just looked at read_pci_config.  It doesn't do the right thing for
a non-aligned 32bit access.  (Not that I am convinced there is a right
thing we can do).  Please make this read_pci_config_16 instead
and you won't need the shift.

Either that or as I earlier suggested just do a 32bit read from offset 0
and use shifts and masks to get vendor and device fields.

The current code doing a shift where none should be needed (because
we ignore the two low order bits in our read) is totally weird
when looking at it.


You almost got YH's comment.  You need return 2 for the old functions
so we don't try and apply a per chipset fixup for every device in
the system.

I'm actually inclined to remove the return magic and just do something
like:
	static fix_applied;
	if (fix_applied++)
        	return;
In those functions that should be called only once.

Eric

return 2;

Hmm.  I don't think we want this code positioned in the middle of the
nvidia bug checks.

return 2;
return 2;
				vendor = read_pci_config_16(num, slot, func,
							    PCI_VENDOR_ID);

				device = read_pci_config_16(num, slot, func,
							    PCI_DEVICE_ID);
				


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Mon Nov 26, 9:12 pm)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Tue Nov 27, 4:19 am)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Tue Nov 27, 6:28 am)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Tue Nov 27, 7:56 am)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Tue Nov 27, 8:30 am)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Tue Nov 27, 3:38 pm)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Tue Nov 27, 5:15 pm)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Tue Nov 27, 5:43 pm)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Wed Nov 28, 10:36 am)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Wed Nov 28, 12:42 pm)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Thu Nov 29, 7:54 pm)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Fri Dec 7, 11:36 am)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Fri Dec 7, 11:46 am)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Mon Dec 10, 6:08 pm)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Mon Dec 10, 6:17 pm)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Mon Dec 10, 9:48 pm)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Tue Dec 11, 8:29 am)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Tue Dec 11, 11:46 am)
Re: [PATCH] k8: Enable legacy irqs with extended cpu ids, Eric W. Biederman, (Wed Dec 12, 1:43 am)
Re: [PATCH] kexec: force x86_64 arches to boot kdump kerne ..., Eric W. Biederman, (Wed Dec 12, 2:32 pm)