Feature #8703

pci/npe DDI_CTLOPS_REGSIZE should be 64-bit aware

Added by Robert Mustacchi 18 days ago.

Status:NewStart date:2017-10-04
Priority:NormalDue date:
Assignee:Robert Mustacchi% Done:

100%

Category:driver - device drivers
Target version:-
Difficulty:Medium Tags:

Description

The DDI_CTLOPS_REGSIZE is an argument to ddi_ctlops. It takes an off_t; however, the npe and pci drivers always truncate the value to 32-bit quantities. As we're cleaning up 8702, we should go through and take care of these here as well. One wrinkle is that these values are generally a uint64_t; however, we use an off_t, which is a signed quantity. If we have something in that upper bit, we're unlikely to be able to represent it anyways and do anything useful with it and that we'd need a new DDI interface.


Related issues

Related to illumos gate - Bug #8702: PCI addresses with physaddr > 0xffffffff can't be mapped in New 2017-10-04

History

#1 Updated by Robert Mustacchi 18 days ago

  • Related to Bug #8702: PCI addresses with physaddr > 0xffffffff can't be mapped in added

Also available in: Atom