From owner-cvs-all@FreeBSD.ORG Mon Dec 22 18:08:19 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC13A16A4CE; Mon, 22 Dec 2003 18:08:19 -0800 (PST) Received: from mail-old.asahi-net.or.jp (juran.asahi-net.or.jp [202.224.39.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDB2E43D45; Mon, 22 Dec 2003 18:08:15 -0800 (PST) (envelope-from ie9t-sbgk@asahi-net.or.jp) Received: from mailr1.asahi-net.or.jp (mailr1.asahi-net.or.jp [202.224.39.211]) by mail-old.asahi-net.or.jp (Postfix) with ESMTP id 673D7FE2C; Tue, 23 Dec 2003 11:08:14 +0900 (JST) Received: from vaio.siva.itami.jp (hccd37dd9db.bai.ne.jp [211.125.217.219]) by mailr1.asahi-net.or.jp (8.11.7/3.7W) with ESMTP id hBN28EL20194; Tue, 23 Dec 2003 11:08:14 +0900 (JST) Date: Tue, 23 Dec 2003 11:14:48 +0900 To: Nate Lawson , Takeshi Shibagaki References: <20031222151901.96F8C16A56B@hub.freebsd.org> <20031222094416.X88639@root.org> From: ie9t-sbgk Content-Type: text/plain; format=flowed; charset=iso-2022-jp MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <20031222094416.X88639@root.org> User-Agent: Opera7.23/Linux M2 build 516 cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/dev/usb ohci.c ohci_pci.c ohcivar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2003 02:08:19 -0000 Hi Nate-san. On Mon, 22 Dec 2003 09:46:54 -0800 (PST), Nate Lawson wrote: > On Mon, 22 Dec 2003, Takeshi Shibagaki wrote: >> Modified files: >> sys/dev/usb ohci.c ohci_pci.c ohcivar.h >> Log: >> Enable support for DEVICE_SUSPEND, DEVICE_RESUME and DEVICE_SHUTDOWN >> methods for USB devices in the same way of uhci driver. But this change >> is not complete because some ohci controlers are not initialized completely. >> So "kernel: usb0: 1 scheduling overruns" interrupt will generate many times. >> >> This change will be same one in PR kern/60099. >> >> Discussed on [bsd-nomads:16737] - [bsd-nomads:16746]. >> >> Revision Changes Path >> 1.140 +2 -12 src/sys/dev/usb/ohci.c >> 1.38 +40 -0 src/sys/dev/usb/ohci_pci.c >> 1.36 +3 -0 src/sys/dev/usb/ohcivar.h > > Also, > > Lots of input from: Anish Mistry > > Now any chance of getting you to look at uhci(4)? It has similar > suspend/resume problems. I don't understand you well, but do you ask me whether looking at "man 4 uhci" or uhci driver source(uchci.c...)? If you are talking about uchi driver source, I have been look, and I'm using VAIO Z505D,Z505V/BP, there is no problem. these machine have uhci(Intel 82371AB/EB (PIIX4) USB controller). Please tell me an example in the case of uhci, ohci problem. > Perhaps Linux has some clues to the best > approach. I have researched linux 2.6.0 drivers. Maybe my Libretto L1 don't work well at resume process in linux, also Victor InterLink MP-XP7210 (ume@freebsd.org's machine). In japanese some laptop machines, OHCI registers are clear almostly at suspend/resume process. I had caught up re-init process added OHCI register write code step by step, and I know it is necessary about 50% OHCI register init codes of ohci_init() at suspend/resume. So I think it is better holding in common between boot init codes and resume init one. Is it wrong? Takeshi Shibagaki ie9t-sbgk@asahi-net.or.jp