Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3487991imm; Fri, 25 May 2018 06:37:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrZ5z7krCkr7cUUvArzgNucaEvtai7y0DQdwX/DY16784XFmVDgd4B4Sr/dTONX0E8gicQL X-Received: by 2002:a63:6f05:: with SMTP id k5-v6mr2108106pgc.62.1527255461871; Fri, 25 May 2018 06:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527255461; cv=none; d=google.com; s=arc-20160816; b=oqJY4lII6WAO3XAxTxZKhl0258b+VDEU/iEsG0OjD0gdt4610dS4xQ7x4mUYi4X+fG AIYT68gOrCWf0ZYYvsKvSVLGUzxFLlfAimA6KKAkc/lA9WEJtOczwDN/rzEPTR4gpWv/ Qlk5Pwd2SeUtvA2/3ysow4rjGcG50EeYmMwF2aaQjBbuZZmEOROZEbn69A6MUFTfsEBW DQ1JsLqhsXbLD66J3jvpRzbfjau7APdjpggyMus80Gj+gcj+Hi7gU65YWdzpLTIr5ifJ 9QjIrQzejH037Mm9frbB4u/vG6+c9MCFvXRiOGhRuWCdYgOBUJhtVypsgmjJ2aKntjtd OzGg== 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=Rf23eCDkGpS1LxvZv89bwdFwVZ96BGO5KfqrCxN8HZU=; b=Cp6LDFOK5Tkubgu0f+DGAMtiMKppds7mo1Bc9OpSHzPVxFeLUDJ6YlDQlhE5RBdt7s nYYJ5eNKqtO7HMksRQKr5dpMBj+7As85riueD7xaFWQ6wLcwGuh0K9krKiwAGtm70oZB O5cO+EmJU2WFa1vAPReybw6yt1NiOzVuA5zrqu8+V/tfVjJcFYHsGGCi8d0qSuzo3Gqn tp419v1WgnwvIlhivCPwU018Z4fCiB6XbPwg94hFZC+ZNE7h69BZonmXQVjA9TkOhF/z pM+VdrjAGmmbkOlmpbYLgUr1pT1E0SzzcMTF450RWTqdTw0/xMgrf4D0S7iOEszZW3VD aw6Q== 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10-v6si18506964pgr.642.2018.05.25.06.37.19; Fri, 25 May 2018 06:37:41 -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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935980AbeEYNfu (ORCPT + 99 others); Fri, 25 May 2018 09:35:50 -0400 Received: from mout01.posteo.de ([185.67.36.141]:36266 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935320AbeEYNfr (ORCPT ); Fri, 25 May 2018 09:35:47 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A945A210DD for ; Fri, 25 May 2018 15:35:45 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 40snM1139Mz9ryp; Fri, 25 May 2018 15:35:41 +0200 (CEST) Subject: Re: [PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd To: Radu Pirea , "devicetree@vger.kernel.org" , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org Cc: mark.rutland@arm.com, robh+dt@kernel.org, lee.jones@linaro.org, gregkh@linuxfoundation.org, jslaby@suse.com, alexandre.belloni@bootlin.com, nicolas.ferre@microchip.com, broonie@kernel.org 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: Richard Genoud Message-ID: Date: Fri, 25 May 2018 15:35:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <391de5c1-45d7-4773-fe57-7f2bc747214b@microchip.com> Content-Type: text/plain; charset=utf-8 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 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 ( 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 >>