mirror of https://github.com/ipxe/ipxe.git
[intel] Use physical addresses in debug messages
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/171/head
parent
810dc5d6c3
commit
062711f1cf
|
@ -535,9 +535,9 @@ int intel_create_ring ( struct intel_nic *intel, struct intel_ring *ring ) {
|
||||||
dctl |= INTEL_xDCTL_ENABLE;
|
dctl |= INTEL_xDCTL_ENABLE;
|
||||||
writel ( dctl, intel->regs + ring->reg + INTEL_xDCTL );
|
writel ( dctl, intel->regs + ring->reg + INTEL_xDCTL );
|
||||||
|
|
||||||
DBGC ( intel, "INTEL %p ring %05x is at [%08llx,%08llx)\n",
|
DBGC ( intel, "INTEL %p ring %05x is at [%08lx,%08lx)\n",
|
||||||
intel, ring->reg, ( ( unsigned long long ) address ),
|
intel, ring->reg, virt_to_phys ( ring->desc ),
|
||||||
( ( unsigned long long ) address + ring->len ) );
|
( virt_to_phys ( ring->desc ) + ring->len ) );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -599,9 +599,9 @@ void intel_refill_rx ( struct intel_nic *intel ) {
|
||||||
address = map->addr;
|
address = map->addr;
|
||||||
intel->rx.ring.describe ( rx, address, 0 );
|
intel->rx.ring.describe ( rx, address, 0 );
|
||||||
|
|
||||||
DBGC2 ( intel, "INTEL %p RX %d is [%llx,%llx)\n", intel, rx_idx,
|
DBGC2 ( intel, "INTEL %p RX %d is [%lx,%lx)\n",
|
||||||
( ( unsigned long long ) address ),
|
intel, rx_idx, virt_to_phys ( iobuf->data ),
|
||||||
( ( unsigned long long ) address + INTEL_RX_MAX_LEN ) );
|
( virt_to_phys ( iobuf->data ) + INTEL_RX_MAX_LEN ) );
|
||||||
refilled++;
|
refilled++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -795,9 +795,9 @@ int intel_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) {
|
||||||
profile_stop ( &intel_vm_tx_profiler );
|
profile_stop ( &intel_vm_tx_profiler );
|
||||||
profile_exclude ( &intel_vm_tx_profiler );
|
profile_exclude ( &intel_vm_tx_profiler );
|
||||||
|
|
||||||
DBGC2 ( intel, "INTEL %p TX %d is [%llx,%llx)\n", intel, tx_idx,
|
DBGC2 ( intel, "INTEL %p TX %d is [%lx,%lx)\n",
|
||||||
( ( unsigned long long ) address ),
|
intel, tx_idx, virt_to_phys ( iobuf->data ),
|
||||||
( ( unsigned long long ) address + len ) );
|
( virt_to_phys ( iobuf->data ) + len ) );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue