From: "Joe Woodward" Subject: Re: Suspend broken on 3.3? Date: Fri, 30 Mar 2012 12:04:42 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from smtp3.keele.netcentral.co.uk ([212.57.235.197]:57667 "EHLO smtp3.keele.netcentral.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933785Ab2C3LFK (ORCPT ); Fri, 30 Mar 2012 07:05:10 -0400 In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "Raja, Govindraj" Cc: Paul Walmsley , Kevin Hilman , linux-omap@vger.kernel.org, Felipe Balbi , neilb@suse.de -----Original Message----- =46rom: "Raja, Govindraj" To: Joe Woodward Cc: Paul Walmsley , Kevin Hilman , linu= x-omap@vger.kernel.org, Felipe Balbi , neilb@suse.de Date: Fri, 30 Mar 2012 15:45:19 +0530 Subject: Re: Suspend broken on 3.3? > On Fri, Mar 30, 2012 at 2:56 PM, Joe Woodward > wrote: > > ...[snip]... > >> > >> Could you please try attached patch and let me know if this solves > the > >> rx issue as well, > >> without using dma mode. > >> > > > > Right, > > > > I think we've getting closer, but still not quite there... > > > > Firstly, the patch adds an include to "iomap.h" - but this doesn't > exist in stock 3.3. Simply removing this include seemed to allow the > compile to complete > > successfully. >=20 > Sorry I forgot to specify this is needed for latest mainline. >=20 > > > > With this patch applied (and not in DMA mode) I now get the > following: > > =A0- If I leave wake-from-suspend enabled for the serial port then = it > works correctly (i.e. no lost/extra 0x00 characters). > > =A0- If I disable wake-from-suspend for the serial port and go thro= ugh > a suspend cycle (i.e. suspend and then wake), then the serial port > starts to misbehave as > > before. > > =A0- If I then re-enable wake-from-suspend and go through a suspend > cycle it starts to work correctly again. > > > > So the problem is still that if wake-from-suspend is disabled for a > serial port, and a suspend cycle is performed then when woken the > serial port will not function > > correctly if operating in interrupt-mode. >=20 > I tried it on my 3430sdp but strangely I don't see a 0x00 char read > after disabling uart wakeups > and waking up by keypad press. >=20 > Probably as a quick try we can try doing uart_insert_char only if dat= a > was read from rx fifo > (Attached patch) >=20 Sadly the patch makes no difference. I'm suprised you aren't seeing similar effects. I've done more testing, and a simplified test case is as follows: - take a stock 3.3 kernel and apply your patch to allow disabling of wa= ke-from-suspend for the serial ports. - disable wake-from-suspend for the console tty: echo disable > /sys/devices/platform/omap/omap_uart.2/power/wakeup - perform a suspend (you'll need a button or something to wake you now = that the console wont). echo mem > /sys/power/state At this point the console is noticable/painfully slow. No characters ar= e lost, but it's obvious something isn't right! Cheers, Joe > -- > Thanks, > Govindraj.R -- To unsubscribe from this list: send the line "unsubscribe linux-omap" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html