Skip to content

Commit

Permalink
[intel] Display before and after values for both PBS and PBA
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Aug 20, 2014
1 parent c845740 commit d461b8d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/drivers/net/intel.c
Expand Up @@ -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;

Expand All @@ -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. */
Expand Down

0 comments on commit d461b8d

Please sign in to comment.