Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3521542imm; Fri, 25 May 2018 07:09:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZprwa5UORfQn9rnYzolbO0rJhX7fG5CasFTNH9ffAE6RCWoN3SRHwaunqDbJwpQ1OUHQ4Jt X-Received: by 2002:a62:9696:: with SMTP id s22-v6mr2720111pfk.191.1527257342386; Fri, 25 May 2018 07:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527257342; cv=none; d=google.com; s=arc-20160816; b=mj32ulhVS5XHUkJtviUIeTIdyFZcapp8cSSiYvhfyDVVLI6KmStqnNjRmR34WkO5eb JmGoJT1aWFr+PvvCqjC/ABP3HqfPuVHF27RdqlU4OnlGNDJYd9SWo0j9rsccwqEP2l6E eu3HymSs9tcXqeE/R4Tn4iYF12VdqW45JSa6DIIcLAY7o5zXGDGe90+ysjG2ANuPPVZ2 +OhTtS3kfsczmyOrSXLvTZ0qJQgkKH8JWpCTCjkq+lIwdslnsnK1d5JVzgAbUXh78Iop QlU2EexXE7iFKTg9hT/4RtV47wJTx6jIo3WxAKpIb3OEEEAUzvculNKm20NgWb/kXCXC QIzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=krCOrAlwX4MS+J+xxVTr9G2FJ1H+t7PNdh6ECthDPP0=; b=BXsN+D3UOmbGxpcH9Nf0s8GW6wULi8ieo1AXfqMyOrNS4+ojtuAskZq65akzK5LBq0 1V9+rj192yjoLbKxENmvwQ3ssb8SwIGVCz7vA2ZH8lkPh9kOFTxb80xTI0isJ8h1kf/G jM0EmBHFsgUyOWw+dEYfeJx4Jt8D1E0p9py8FuHdmKjJHJ+uI9UjVsGDy4ChWAQDfa6S UPD2gPiktJEEC+d+G2PKjjj9FP3nB7+y5Ks6iqCg2U+ru4l9eeLN5TCY//mLB+zjPGfz 42WdHCdgQic66wivFNi+KFfpHBw9SYS9/mkYpPcQCkZPTrwcygqHqq4sZh6Bd8nxjVnl 8wtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s88-v6si23379526pfa.339.2018.05.25.07.08.47; Fri, 25 May 2018 07:09:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936202AbeEYOGr (ORCPT + 99 others); Fri, 25 May 2018 10:06:47 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:58242 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934614AbeEYOGp (ORCPT ); Fri, 25 May 2018 10:06:45 -0400 X-IronPort-AV: E=Sophos;i="5.49,440,1520924400"; d="scan'208";a="14347743" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 May 2018 07:06:43 -0700 Received: from [10.145.4.57] (10.10.76.4) by chn-sv-exch06.mchp-main.com (10.10.76.107) with Microsoft SMTP Server id 14.3.352.0; Fri, 25 May 2018 07:06:43 -0700 Subject: Re: [PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd To: Richard Genoud , "devicetree@vger.kernel.org" , , , , CC: , , , , , , , References: <20180511103822.31698-1-radu.pirea@microchip.com> <20180511103822.31698-7-radu.pirea@microchip.com> <4a75568e-a52e-3872-f465-d707372a5c12@sorico.fr> <95a51c6c69bf1a2422f545ac1f06846ebcdb186a.camel@microchip.com> <4d70c73e-9db7-bdff-7414-04a4843acae3@sorico.fr> <391de5c1-45d7-4773-fe57-7f2bc747214b@microchip.com> From: Radu Pirea Message-ID: Date: Fri, 25 May 2018 17:07:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/25/2018 04:35 PM, Richard Genoud wrote: > On 25/05/2018 14:17, Radu Pirea wrote: >> >> >> On 05/15/2018 04:14 PM, Richard Genoud wrote: >>> On 15/05/2018 14:47, Radu Pirea wrote: >>>> On Mon, 2018-05-14 at 12:57 +0200, Richard Genoud wrote: >>>>> After your patch, the DMA is not selected anymore: >>>>> atmel_usart_serial atmel_usart_serial.0.auto: TX channel not >>>>> available, switch to pio >>>>> instead of: >>>>> atmel_usart fffff200.serial: using dma1chan2 for tx DMA transfers >>>>> >>>> Fixed. >>>>> And the kernel doesn't log anymore on the serial console, despite the >>>>> loglevel=8 >>>>> (after reverting this series, the kernel logs reappears on the serial >>>>> console) >>>>> >>>> Which serial are you using as console? >>> fffff200.serial (sam9g35-cm) >>> ( stdout-path = "serial0:115200n8"; in the DTS ) >>> >>> With this series applied, all the kernel log goes on the screen. >>> Without, it goes on the serial debug. >>> >> I tested again with archlinux arm and poky-linux4sam release as distros >> and kernel log goes on the serial debug. Can you give me more details >> like cmdline? > I used kernel 4.17-rc6 > at91_dt_defconfig > at91sam9g35ek.dtb > > Kernel command line: root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs I reproduced your issue. If in cmdline console is not set like this "console=ttyS0,115200", the console goes to the lcd. > ( the one from the DTS ) > > Detailed instructions: > > git checkout v4.17-rc6 > ARCH=arm CROSS_COMPILE=path_to_my_Xchain/arm-linux- LOADADDR=0x20008000 make -j 12 at91_dt_defconfig > ARCH=arm CROSS_COMPILE=path_to_my_Xchain/arm-linux- LOADADDR=0x20008000 make -j 12 uImage at91sam9g35ek.dtb > cp arch/arm/boot/uImage arch/arm/boot/dts/at91sam9g35ek.dtb /tftpboot/ > > From uboot: > tftpboot 0x20007FC0 uImage > tftpboot 0x26400000 at91sam9g35ek.dtb > bootm 0x20007FC0 - 0x26400000 > > [ I see the logs on the serial debug ] > > git am \[PATCH\ v3\ [1-6]* > > ARCH=arm CROSS_COMPILE=path_to_my_Xchain/arm-linux- LOADADDR=0x20008000 make -j 12 uImage at91sam9g35ek.dtb > cp arch/arm/boot/uImage arch/arm/boot/dts/at91sam9g35ek.dtb /tftpboot/ > > From uboot: > tftpboot 0x20007FC0 uImage > tftpboot 0x26400000 at91sam9g35ek.dtb > bootm 0x20007FC0 - 0x26400000 > > [ I don't see the logs on the serial debug anymore ] > > >>>>> (tests done on sam9g35) >>>>> >>>> I will consider the rest of suggestions. >>>>> regards, >>>>> Richard >>> >