From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5AAD1C433B4 for ; Wed, 5 May 2021 19:28:11 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B8036613C3 for ; Wed, 5 May 2021 19:28:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B8036613C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nOvh8Xt7QJmLqAE0GdT/CM/eTfqheirN7GY/c1OcytI=; b=FqSaEQuFqOT9WbjAR0oGJGmeo 6eUn079v1yeRRQTYCcLYOCo7e+cl2e8BdKUFSXG6yTGvBQxDuiB/Akirvdzj1tds6mIEd08lAgRk1 9TurFJ9YVBycntcazqtlbVC87rIShiPajEDQCOYJtaCOJZuJGvzONTH7i6i6ZHnpnHHe939lfYQ50 Dhje2F/CnsJSoPzNRfEDNgSnDFNoX/FB7EqlBj6WaWZJcS4z9BD9H0ZQFCH487zcHXyF07t9+d9GB I35QobCpSe5RolV5TH6yUFHfBapMx7T8xmWHJHKuRghZQd2en2/llyqsFlDoWxrcqnixHzzeKq1aJ BPl/nI8IQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leNA3-0028OW-2Q; Wed, 05 May 2021 19:26:19 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leNA0-0028OP-Dv for linux-arm-kernel@desiato.infradead.org; Wed, 05 May 2021 19:26:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=XEwMNNDXi/KppCW3JytfH+jQjQHZOFhwz7ZznyF4Arc=; b=gqtHn30bi7HotMWppFjjgOV6lH C2iScfmtCYhx1gNMI+cmj5m2lDQfVgH1E3neo0POat1nXGgQQKdNWs2Y1G13TgKi3Jcmy5SI2H7D3 O6gL2wzgItBZ8wXa4URiLLVtVykkZvoXpaumt/3UZLrMxOqqDS3brCQKIAs/JUKKUtfAolVl1d1L1 R921C/L8/z449Bdjha3G1Of+Gsn11BXD0XqhvbRnSNSkwEKooWUEupRSGieIEuYP8UKIlcgynZLcA gi1v8FqV5x8c0E1RVlpI6v8u/V1ExcXFjY9Z4og9RE5ylFRuxY6HUwbrDbK9AcfPSKwqioeE7IHif V+jGJjZg==; Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leN9x-005COA-5a for linux-arm-kernel@lists.infradead.org; Wed, 05 May 2021 19:26:15 +0000 Received: by mail-wr1-x42b.google.com with SMTP id d11so3049097wrw.8 for ; Wed, 05 May 2021 12:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=XEwMNNDXi/KppCW3JytfH+jQjQHZOFhwz7ZznyF4Arc=; b=vGExAaoe+7u+OuPu2eMXTvSntYE8g1OveBoRD+8uEam2cM5Chntd8SkyQKc6as6w06 ngwka3iFcfvWmFc1d3ToKR0RUkAI/sIeUXOxz8fAphJvGlxFbKdheGH6YwIB31lZkb5P c9WiP73Qi9mnGl8V30NHkrNnfFZanCRUqfwdkPuzQKX+8gBgHftyne09t2O9dvAdZwxm 7FPB2zIF+z7CfOiH8UrtO0tKHNsSBlyqEAjdOkgpMitO/WbjkqwMsjgGrDj3licJV+ih 5eP3A53jQQgLipHlu6u+FpRPEr3cqMuU4qL7Fsn1GHerp/XJExYbWqiHqZr2oMqRR2OQ 0iGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=XEwMNNDXi/KppCW3JytfH+jQjQHZOFhwz7ZznyF4Arc=; b=TlWVqI17hU28TAc/Cii9p2HG9+m/kvR9QNDOpddpmXXi5EaxC374+VXYrrj82CTdDa pIym8Td7iky1RBkZn3GMAnE7tyIXxL4xnlh3m47zmjtniRbeNXEnR7dfddd+dayJWFhG nZ/3gFTg9YSHmMbm/1Ly6uo2BqbX11z/68wh8+deT+c5BE5V7tWy2QvaKLb86HMHsRbl 3gOApVCyMmFk7hSZu5l9s8gf0xLqamQU3hyhX3xUWfpP8VxD+AmydVXB5V3x90+S719b Ia5vyhD4ofAJdexT4v8NfJRlBnZsmUUbzPzElUwmHiCd+LTwJriaL3+1BGhwYuzOF00Z QWLg== X-Gm-Message-State: AOAM5329Qked+ZQdKHRVPYL8kOJ8NpPE7pkAvLBApz6xrSQPb+SGh9lZ Vg0WFTwUznrbq70h0XPPwB8= X-Google-Smtp-Source: ABdhPJywR4NPXpIQk+Z5hW5jQREghxzG3rQOGoqP1zPusKZZU6JelP0j7h6OhQ3KMEAbft9JMad/FA== X-Received: by 2002:a5d:51ce:: with SMTP id n14mr643249wrv.239.1620242769104; Wed, 05 May 2021 12:26:09 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id x8sm295714wru.70.2021.05.05.12.26.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 12:26:08 -0700 (PDT) Date: Wed, 5 May 2021 21:26:06 +0200 From: Corentin Labbe To: Linus Walleij Cc: Hans Ulli Kroll , Linux ARM , linux-kernel Subject: Re: gemini: sl3516: Mainlining of NS 2502 Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_122613_262369_779438C1 X-CRM114-Status: GOOD ( 20.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Le Wed, Apr 07, 2021 at 11:34:29AM +0200, Linus Walleij a =E9crit : > On Tue, Apr 6, 2021 at 2:05 PM Corentin Labbe = wrote: > = > > You could find photos at http://kernel.montjoie.ovh/gemini/ > > There are also photos of another SL3516 SoC based device (a SSI 1328 NA= S), but I fail to setup a serial on it, so I keep it for later. > = > > > For USB try this patch: > > > https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.= git/commit/?h=3Dgemini-usb&id=3Dcbaf6cdf770b90de5f10bfa5112c679f1dffe948 > > > > > > > One of the USB port is now working. > = > Hey nice! :D > = > The USB patch is not very widely tested, so it may need some shaping > up. > = Hello It seems that USB is still a bit buggy, device are detected only if plugged= before boot. I hit a problem on the NS2502, sata drives does not work well: gemini_sata_bridge 46000000.sata: SATA ID 00000e00, PHY ID: 01000100 gemini_sata_bridge 46000000.sata: set up the Gemini IDE/SATA nexus pata_ftide010 63000000.ide: set up Gemini PATA0 pata_ftide010 63000000.ide: device ID 00000500, irq 27, reg [mem 0x63000000= -0x63000fff] pata_ftide010 63000000.ide: SATA0 (master) start gemini_sata_bridge 46000000.sata: SATA0 PHY ready pata_ftide010 63000000.ide: brought 1 bridges online scsi host0: pata_ftide010 ata1: SATA max UDMA/133 irq 27 libphy: Fixed MDIO Bus: probed libphy: GPIO Bitbanged MDIO: probed ata1.00: qc timeout (cmd 0x27) ata1.00: failed to read native max address (err_mask=3D0x4) ata1.00: HPA support seems broken, skipping HPA handling ata1.00: ATA-8: WDC WD10EAVS-00D7B1, 01.01A01, max UDMA/133 ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 0/32) scsi 0:0:0:0: Direct-Access ATA WDC WD10EAVS-00D 1A01 PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't suppor= t DPO or FUA sda: sda1 sd 0:0:0:0: [sda] Attached SCSI disk tun: Universal TUN/TAP device driver, 1.6 gmac-gemini 60000000.ethernet: Ethernet device ID: 0x000, revision 0x1 gemini-ethernet-port 60008000.ethernet-port: probe 60008000.ethernet-port I= D 0 gemini-ethernet-port 60008000.ethernet-port: Old MAC from hw 0x000000000000= 000000000000 gemini-ethernet-port 60008000.ethernet-port: HW ADDR FROM OF 00:1f:1f:8e:65= :e2 gemini-ethernet-port 60008000.ethernet-port (unnamed net_device) (uninitial= ized): RGMII: set GMAC0 and GMAC1 to MII/RGMII mode RTL8211B Gigabit Ethernet gpio-0:01: attached PHY driver (mii_bus:phy_addr= =3Dgpio-0:01, irq=3DPOLL) gemini-ethernet-port 60008000.ethernet-port eth0: irq 31, DMA @ 0x0x6000800= 0, GMAC @ 0x0x6000a000 gemini-ethernet-port 6000c000.ethernet-port: probe 6000c000.ethernet-port I= D 1 gemini-ethernet-port 6000c000.ethernet-port: ethernet address 0x00000000000= 0000000000000 invalid gemini-ethernet-port 6000c000.ethernet-port: using a random ethernet address gemini-ethernet-port 6000c000.ethernet-port (unnamed net_device) (uninitial= ized): PHY init failed rtc-ftrtc010 45000000.rtc: registered as rtc0 rtc-ftrtc010 45000000.rtc: setting system clock to 2021-05-05T18:49:18 UTC = (1620240558) gemini-poweroff 4b000000.power-controller: other power management IRQ gemini-poweroff 4b000000.power-controller: Gemini poweroff driver registered ata1: lost interrupt (Status 0x58) ata1: lost interrupt (Status 0x58) ftwdt010-wdt 41000000.watchdog: FTWDT010 watchdog driver enabled device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redha= t.com sl3516-crypto 62000000.crypto: will run requests pump with realtime priority sl3516-crypto 62000000.crypto: DEBUG: Register ecb(aes) sl3516-crypto 62000000.crypto: Fallback for ecb-aes-sl3516 is ecb(aes-gener= ic) sl3516-crypto 62000000.crypto: SL3516 dev a00 rev 0 random: crng init done sl3516-crypto 62000000.crypto: SL3516 DMA dev 0 rev 1 NET: Registered protocol family 17 Freeing unused kernel memory: 5320K Kernel memory protection not selected by kernel config. Run /init as init process [...] # crypsetup stuff [...] # mount /dev/mapper/backup /mnt/ ata1: lost interrupt (Status 0x50) ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata1.00: failed command: WRITE DMA ata1.00: cmd ca/00:08:00:18:00/00:00:00:00:00/e0 tag 0 dma 4096 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata1.00: status: { DRDY } ata1: soft resetting link ata1.00: configured for UDMA/133 ata1.00: device reported invalid CHS sector 0 ata1: EH complete ata1: lost interrupt (Status 0x50) ata1.00: limiting speed to UDMA/100:PIO4 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata1.00: failed command: WRITE DMA ata1.00: cmd ca/00:08:00:18:00/00:00:00:00:00/e0 tag 0 dma 4096 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata1.00: status: { DRDY } ata1: soft resetting link ata1.00: configured for UDMA/100 ata1.00: device reported invalid CHS sector 0 ata1: EH complete ata1: lost interrupt (Status 0x50) ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata1.00: failed command: WRITE DMA ata1.00: cmd ca/00:08:00:18:00/00:00:00:00:00/e0 tag 0 dma 4096 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata1.00: status: { DRDY } ata1: soft resetting link ata1.00: configured for UDMA/100 ata1.00: device reported invalid CHS sector 0 ata1: EH complete ata1: lost interrupt (Status 0x50) ata1.00: limiting speed to UDMA/33:PIO4 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata1.00: failed command: WRITE DMA ata1.00: cmd ca/00:08:00:18:00/00:00:00:00:00/e0 tag 0 dma 4096 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata1.00: status: { DRDY } ata1: soft resetting link ata1.00: configured for UDMA/33 ata1.00: device reported invalid CHS sector 0 ata1: EH complete ata1: lost interrupt (Status 0x50) ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata1.00: failed command: WRITE DMA ata1.00: cmd ca/00:08:00:18:00/00:00:00:00:00/e0 tag 0 dma 4096 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata1.00: status: { DRDY } ata1: soft resetting link ata1.00: configured for UDMA/33 ata1.00: device reported invalid CHS sector 0 ata1: EH complete ata1: lost interrupt (Status 0x50) ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata1.00: failed command: WRITE DMA ata1.00: cmd ca/00:08:00:18:00/00:00:00:00:00/e0 tag 0 dma 4096 out res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) ata1.00: status: { DRDY } ata1: soft resetting link ata1.00: configured for UDMA/33 ata1.00: device reported invalid CHS sector 0 sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=3D0x00 driverbyte= =3D0x08 cmd_age=3D188s sd 0:0:0:0: [sda] tag#0 Sense Key : 0x5 [current] = sd 0:0:0:0: [sda] tag#0 ASC=3D0x21 ASCQ=3D0x4 = sd 0:0:0:0: [sda] tag#0 CDB: opcode=3D0x2a 2a 00 00 00 18 00 00 00 08 00 blk_update_request: I/O error, dev sda, sector 6144 op 0x1:(WRITE) flags 0x= 800 phys_seg 1 prio class 0 blk_update_request: I/O error, dev sda, sector 6144 op 0x1:(WRITE) flags 0x= 800 phys_seg 1 prio class 0 Buffer I/O error on dev dm-0, logical block 0, lost sync page write EXT4-fs (dm-0): I/O error while writing superblock ata1: EH complete EXT4-fs (dm-0): mount failed It seems a problem soon after driver probe (qc timeout and HPA error). Any idea ? The SATA works well on my other board (SSI1328) having one or two disk does not change the behavour. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel