From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 26 09:00:51 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E1C9106568E; Wed, 26 Aug 2009 09:00:51 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 7AD788FC26; Wed, 26 Aug 2009 09:00:50 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA27703; Wed, 26 Aug 2009 12:00:47 +0300 (EEST) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1] helo=edge.pp.kiev.ua) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1MgEN4-000Na1-6K; Wed, 26 Aug 2009 12:00:46 +0300 Message-ID: <4A94F9BD.70907@freebsd.org> Date: Wed, 26 Aug 2009 12:00:45 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.22 (X11/20090723) MIME-Version: 1.0 To: kindman@amc-os.com References: <4A9412ED.6080309@freebsd.org> <4A94242B.7090806@freebsd.org> <604B96C6CF22447EACE5BD9719DDE1F5@kindman> In-Reply-To: <604B96C6CF22447EACE5BD9719DDE1F5@kindman> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-acpi@freebsd.org Subject: Re: AMD SB700 SMBus controller driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 09:00:51 -0000 on 26/08/2009 01:27 said the following: > Could you please forward me the patch to make it work in polling mode ? I'd > like to test it as I've been trying to make intpm work with a SB400 (which > should be quite the same as yours) but system hangs when I try to force > polling mode (didn't have the specs nor all the differences you just > presented). And btw, I didn't find any implementation using interrupt > neither but I'm ready to test your updated version. [what charset/encoding was your email?] Please see: http://people.freebsd.org/~avg/ga-ma780g-ud3h/intpm.diff The patch is work-in-progress and is not clean for this reason (style violations, experimental hacks) What the patch does: 1. redefine PCI_INTR_SMB_IRQ9 to 2 (bit 1) 2. disable writing to PCIR_INTLINE 3. add PCI id of my hardware 4. attempt to use IRQ mode with interrupt 20 - doesn't work 5. force polling mode - seems to work -- Andriy Gapon