Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422950AbXBHHk0 (ORCPT ); Thu, 8 Feb 2007 02:40:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422954AbXBHHk0 (ORCPT ); Thu, 8 Feb 2007 02:40:26 -0500 Received: from mga05.intel.com ([192.55.52.89]:48160 "EHLO fmsmga101.fm.intel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1422950AbXBHHkY (ORCPT ); Thu, 8 Feb 2007 02:40:24 -0500 X-ExtLoop1: 1 X-IronPort-AV: i="4.13,299,1167638400"; d="scan'208"; a="197222103:sNHT47554332" Subject: [PATCH] ATA convert GSI to irq on ia64 From: "Zhang, Yanmin" To: LKML Cc: linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, Jeff Garzik Content-Type: text/plain; charset=utf-8 Date: Thu, 08 Feb 2007 15:40:22 +0800 Message-Id: <1170920422.15989.354.camel@ymzhang> Mime-Version: 1.0 X-Mailer: Evolution 2.9.2 (2.9.2-2.fc7) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1235 Lines: 39 If an ATA drive uses legacy mode, ata driver will choose 14 and 15 as the fixed irq number. On ia64 platform, such numbers are GSI and should be converted to irq vector. Below patch against kernel 2.6.20 fixes it. Signed-off-by: Zhang Yanmin --- diff -Nraup linux-2.6.20/include/asm-generic/libata-portmap.h linux-2.6.20_fix/include/asm-generic/libata-portmap.h --- linux-2.6.20/include/asm-generic/libata-portmap.h 2007-02-08 15:13:44.000000000 +0800 +++ linux-2.6.20_fix/include/asm-generic/libata-portmap.h 2007-02-08 15:20:13.000000000 +0800 @@ -3,10 +3,20 @@ #define ATA_PRIMARY_CMD 0x1F0 #define ATA_PRIMARY_CTL 0x3F6 +#if defined(__ia64__) +#define ATA_PRIMARY_IRQ(dev) isa_irq_to_vector(14) +#else #define ATA_PRIMARY_IRQ(dev) 14 +#endif + #define ATA_SECONDARY_CMD 0x170 #define ATA_SECONDARY_CTL 0x376 +#if defined(__ia64__) +#define ATA_SECONDARY_IRQ(dev) isa_irq_to_vector(15) +#else #define ATA_SECONDARY_IRQ(dev) 15 +#endif + #endif - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/