[intel] Display before and after values for both PBS and PBA

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/25/head
Michael Brown 2014-08-20 23:16:01 +01:00
parent c845740b88
commit d461b8ddf2
1 changed files with 7 additions and 2 deletions

View File

@ -287,6 +287,7 @@ static void __attribute__ (( unused )) intel_diag ( struct intel_nic *intel ) {
*/
static int intel_reset ( struct intel_nic *intel ) {
uint32_t pbs;
uint32_t pba;
uint32_t ctrl;
uint32_t status;
@ -295,10 +296,14 @@ static int intel_reset ( struct intel_nic *intel ) {
*/
pbs = readl ( intel->regs + INTEL_PBS );
if ( ( pbs == 0x14 ) || ( pbs == 0x18 ) ) {
DBGC ( intel, "INTEL %p WARNING: applying ICH PBS/PBA errata "
"(found PBS %#08x)\n", intel, pbs );
DBGC ( intel, "INTEL %p WARNING: applying ICH PBS/PBA errata\n",
intel );
pba = readl ( intel->regs + INTEL_PBA );
writel ( 0x08, intel->regs + INTEL_PBA );
writel ( 0x10, intel->regs + INTEL_PBS );
DBGC ( intel, "INTEL %p PBS %#08x->%#08x PBA %#08x->%#08x\n",
intel, pbs, readl ( intel->regs + INTEL_PBS ),
pba, readl ( intel->regs + INTEL_PBA ) );
}
/* Always reset MAC. Required to reset the TX and RX rings. */