From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Non readable output with XEN 4.4.3 serial console Date: Sun, 27 Sep 2015 15:14:57 +0300 Message-ID: <20150927121457.GA21789@reaktio.net> References: <78f1818ae3f4790ca00b8b998dd55ab8.squirrel@gameframe.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZgAr7-0002dn-OA for xen-devel@lists.xenproject.org; Sun, 27 Sep 2015 12:15:02 +0000 Content-Disposition: inline In-Reply-To: <78f1818ae3f4790ca00b8b998dd55ab8.squirrel@gameframe.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: NiX Cc: xen-users@lists.xen.org, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Sat, Sep 26, 2015 at 08:17:05PM +0300, NiX wrote: > Hi. > Hi, > As I posted about a week ago. I had an issue with an AMD FX-8350/Radeon > 7970/Gigabyte GA-970A-UD3 and still do. After passing through the 7970, it > works just fine on windows 10 for as long as I do not reboot/shutdown that > VM. > > Upon shutting down or rebooting the VM whole system becomes unresponsive. > A full reboot of Dom0 is required in order to get passthrough working > again without a system crash. > > Someone suggested me to purchase a PCI serial card and I did. I can get > linux serial console working without any issue including login via that > console. > Good. > As soon as I enable XEN hvc0 in kernel boot params all I get is VGA > console output though I did not enabled it via XEN boot params. > > > A working one: GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n81". > A non working one: GRUB_CMDLINE_LINUX="console=hvc0" as suggested at > http://wiki.xen.org/wiki/Xen_Serial_Console > Please add "earlyprintk=xen nomodeset" for dom0 linux kernel aswell.. "console=hvc0 earlyprintk=xen nomodeset". > dmesg | grep ttyS > serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A > 00:04: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A > 0000:03:07.0: ttyS1 at I/O 0xc120 (irq = 21) is a 16550A --> Is a PCI > serial card > > GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=4096M,max:8192M dom0_max_vcpus=4 > dom0_vcpus_pin iommu=1 loglvl=all guest_loglvl=all > com1=115200,8n1,0xc120,21 console=com1" > Did you try with "com1=115200,8n1,0xc120,0" ? So giving 0 as the irq. Also try with lower speeds.. like 38400, and even 9600. And dom0_mem should probably have the same value as initial and max. > Wit the above line I only get non-readable output. I tried it pretty much > all way around including different RTS/CTS options and 3 different tools > and the result was always non-readable output > With the correct options it'll work with Xen too. Which program are you using to display/capture the serial console? Thanks, -- Pasi