Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760059AbaGPMML (ORCPT ); Wed, 16 Jul 2014 08:12:11 -0400 Received: from www.linutronix.de ([62.245.132.108]:55756 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759324AbaGPMMF (ORCPT ); Wed, 16 Jul 2014 08:12:05 -0400 Message-ID: <53C66C0D.5060501@linutronix.de> Date: Wed, 16 Jul 2014 14:11:57 +0200 From: Sebastian Andrzej Siewior User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 MIME-Version: 1.0 To: Tony Lindgren CC: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Felipe Balbi , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH 6/6] tty: serial: Add 8250-core based omap driver References: <1404928177-26554-1-git-send-email-bigeasy@linutronix.de> <1404928177-26554-7-git-send-email-bigeasy@linutronix.de> <20140710070948.GH28884@atomide.com> <53BEB5AF.7010604@linutronix.de> <20140711064151.GJ28884@atomide.com> In-Reply-To: <20140711064151.GJ28884@atomide.com> X-Enigmail-Version: 1.6+git0.20140323 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/11/2014 08:41 AM, Tony Lindgren wrote: >> I tried this with am335x-evm, dra7-evm and beaglebone (omap5-uevm and >> am335x-evmsk didn't want to boot a kernel and omap4-blaze didn't even >> want to show MLO/U-boot) with the same result. > > None of these SoCs support off-idle with mainline kernel so testing > with those is not enough :) Best to use some omap3 based device for > testing this. > > So far I have verified that beagleboard xm, n900, and omap3730-evm > all hit off-idle with v3.16-rc4. Unfortunately I don't have access to any of those devices. >> I had network up and configured. Was that okay? I also tried >> "ifconfig eth0 down; sleep 10; ifconfig eth0 up" to see if it works. > > That's fine for GPMC connected devices, devices with Ethernet on > EHCI won't idle properly AFAIK. am33xx has proper ethernet (cpsw IP core on SoC and not something behind USB). >> That core_pwrdm shows only up on dra7. However with both drivers (mine >> and the current omap serial) the UART went down after three secs (as >> expected) and didn't accept any characters while writing on the >> console. If I wrote something on it via network (like echo a > >> /dev/ttyO0) it came back and was working as long as I kept it busy. The >> thing is that RX does not wake it up. Any idea? > > If the RX pin does not wake it up, you need to configure the > pinctrl-single entry for it, and configure that pin as a wake-up > interrupt. See the interrupts-extended entry in omap3-beagle-xm.dts. This does not help. Checking the manual, there is not something like PIN_OFF_WAKEUPENABLE for am33xx. There is just INPUT/OUTPUT, pull up/down + enabled/disabled and the mux_mode. For the interrupt, the HW referenced as omap3_pmx_core touches some bits in the pinmux register which do not exists on am33xx. So I have nothing on HW around that could test wakeup scenario. >> Also, while it was I checked the core_pwrdm and I had ON:1 and OFF:0. >> So something is not right. >> Since Dra7 has some things missing I tried it on am335x with the same >> behavior. Should it work here? > > Yes only omap3 currently has the pieces needed for off-idle in the > mainline kernel. > Good to know. >> puh. So after staring a while at your backtrace I realized that >> shutdown & startup callbacks are not overwritten properly. Well, thanks >> for that. Anyway, even serial8250_do_startup() has >> pm_runtime_get_sync() before first register access so I have no idea >> where this is coming from. > > Maybe because the console is enabled for that port? Maybe. But I would expect to explode around the console code. Anyway I fixed it up and prepare next batch. > > Regards, > > Tony Sebastian -- 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/