Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 15 Jan 2003 23:15:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 15 Jan 2003 23:15:09 -0500 Received: from samar.sasken.com ([164.164.56.2]:11991 "EHLO samar.sasken.com") by vger.kernel.org with ESMTP id ; Wed, 15 Jan 2003 23:15:08 -0500 Date: Thu, 16 Jan 2003 09:51:43 +0530 (IST) From: Madhavi To: Subject: ioremap_nocache() behavior Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi I am testing the Device driver for a PCI network device on linux-2.4.19 and x86 platform. I have noticed that the system hangs when I do a writel to a PCI MMIO region. I tried ioremap_nocache() instead of ioremap() and the behavior was unpredictable. It hung in a few cases and didn't hang in others. If I did ioremap_nocache() just before calling writel(), writel seems to work fine. I have checked the Base address in PCI configuration space using "lspci -x" command and the driver is getting the correct values. Any guesses why I am getting this problem? It would be very helpful for me even if you can give a very vague idea. One more question - How do I unmap the memory remapped using ioremap_nocache()? Thanks in advance. Madhavi. - 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/