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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-08-20 23:16:01 +01:00
parent c845740b88
commit d461b8ddf2

View File

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