Palo Alto technology giant Hewlett-Packard Co. today reported a nearly $7 billion loss, writing down a software unit named Autonomy that it acquired just over a year ago, citing accounting irregularities among other reasons, the Wall Street Journal and Reuters report.