OSDN Git Service

[IA64-SGI] support variable length nasids in shub2
authorColin Ngam <cngam@sgi.com>
Mon, 25 Apr 2005 20:07:00 +0000 (13:07 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 25 Apr 2005 20:07:00 +0000 (13:07 -0700)
This patch enables our TIO IO chipset to support variable length nasids in
Shub2 chipset.

Signed-off-by: Colin Ngam <cngam@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
include/asm-ia64/sn/addrs.h

index c916bd2..ae0bc99 100644 (file)
  *           the chiplet id is zero.  If we implement TIO-TIO dma, we might need
  *           to insert a chiplet id into this macro.  However, it is our belief
  *           right now that this chiplet id will be ICE, which is also zero.
+ *           Nasid starts on bit 40.
  */
-#define PHYS_TO_TIODMA(x)      ( (((u64)(x) & NASID_MASK) << 2) | NODE_OFFSET(x))
+#define PHYS_TO_TIODMA(x)      ( (((u64)(NASID_GET(x))) << 40) | NODE_OFFSET(x))
 #define PHYS_TO_DMA(x)          ( (((u64)(x) & NASID_MASK) >> 2) | NODE_OFFSET(x))