Browse Source

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 years ago
parent
commit
d461b8ddf2
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      src/drivers/net/intel.c

+ 7
- 2
src/drivers/net/intel.c View File

287
  */
287
  */
288
 static int intel_reset ( struct intel_nic *intel ) {
288
 static int intel_reset ( struct intel_nic *intel ) {
289
 	uint32_t pbs;
289
 	uint32_t pbs;
290
+	uint32_t pba;
290
 	uint32_t ctrl;
291
 	uint32_t ctrl;
291
 	uint32_t status;
292
 	uint32_t status;
292
 
293
 
295
 	 */
296
 	 */
296
 	pbs = readl ( intel->regs + INTEL_PBS );
297
 	pbs = readl ( intel->regs + INTEL_PBS );
297
 	if ( ( pbs == 0x14 ) || ( pbs == 0x18 ) ) {
298
 	if ( ( pbs == 0x14 ) || ( pbs == 0x18 ) ) {
298
-		DBGC ( intel, "INTEL %p WARNING: applying ICH PBS/PBA errata "
299
-		       "(found PBS %#08x)\n", intel, pbs );
299
+		DBGC ( intel, "INTEL %p WARNING: applying ICH PBS/PBA errata\n",
300
+		       intel );
301
+		pba = readl ( intel->regs + INTEL_PBA );
300
 		writel ( 0x08, intel->regs + INTEL_PBA );
302
 		writel ( 0x08, intel->regs + INTEL_PBA );
301
 		writel ( 0x10, intel->regs + INTEL_PBS );
303
 		writel ( 0x10, intel->regs + INTEL_PBS );
304
+		DBGC ( intel, "INTEL %p PBS %#08x->%#08x PBA %#08x->%#08x\n",
305
+		       intel, pbs, readl ( intel->regs + INTEL_PBS ),
306
+		       pba, readl ( intel->regs + INTEL_PBA ) );
302
 	}
307
 	}
303
 
308
 
304
 	/* Always reset MAC.  Required to reset the TX and RX rings. */
309
 	/* Always reset MAC.  Required to reset the TX and RX rings. */

Loading…
Cancel
Save