Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11509092rwd; Thu, 22 Jun 2023 14:27:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5IOxaaKtdHpkFPfNzvPDrzyhdzS2Xf+B7xkkIvR/CmquvzyodysfE06d49xJ2UuAppr2RK X-Received: by 2002:a17:903:24e:b0:1ac:859a:5b5a with SMTP id j14-20020a170903024e00b001ac859a5b5amr15229286plh.0.1687469278201; Thu, 22 Jun 2023 14:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687469278; cv=none; d=google.com; s=arc-20160816; b=eoCJ77IkYRsLNMuWu+wnfbdUWQVbUhcgCYlcXCfbjeR4or07ni6rtLbjTISzsC/YbA tPzf2v6XNVViNTgMJ2ad4fyd5OtRfETkMXgV0+A4sALmtxe/WIQXXL5XwLh9VJCPmRKy viG2/EohVLYHmZ7bn2G68tEqCDVWLyiESKDEof6WDYR8WPyWRS20+4xjZQ4rgV8opyLi TnMSe2cYnXiJtYqoeqPma5Wy/4euKeFQfaLb1qhoxGp47PfVUUVel0wynegwCupdYTm8 P49jJS3MveH1EcHPUgO3QranT1HQmb6EIZSaS7sNXn0pKCyCruqvDMAR9IYtBbFIELCu Zr9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=IwkJsKwAwjpP/1VlihEfNOwU87csDyvAKInyPn59BAo=; b=OHp5e1FmsrZU0gyHlkD9S7dH7sgP4In9xdkkwc5dw5qsaJwD4lnMWfmdtdoxfAtNmE TMqR2R4AUAvQzEZ0uHqsWp3Yp6cjK2rxqNX53KgNR5NBbaN1JBdSPxGLtENW0vqyhhy/ St4UsZtYJHukqVnNyV1U31/5ZsZO0bAar6TZJHMrn9kBSJ+3zbs6cmFc1TcJKWtHJxjw 2lsiauRlF9orqNeGd72cN7FEFyVuOFT2HwsJtueycfACUY7ccpg0hcVdYAOIZqkI+6rh HwHqn5DwGpjTm+hHrJ8Sp3UZzGNF7q+01Svb7ucW0QuSf++mqPHydF8NW+dvce2n9RjR fX8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VfzrcJND; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b23-20020a170902d89700b001b69ede5b79si3892662plz.470.2023.06.22.14.27.46; Thu, 22 Jun 2023 14:27:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VfzrcJND; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbjFVUcN (ORCPT + 99 others); Thu, 22 Jun 2023 16:32:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbjFVUcM (ORCPT ); Thu, 22 Jun 2023 16:32:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24DFF1FF0 for ; Thu, 22 Jun 2023 13:32:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A3A8D617AA for ; Thu, 22 Jun 2023 20:32:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B66DEC433C8; Thu, 22 Jun 2023 20:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687465926; bh=UIN7vbEVF4QwHSBcKRVm9rZeEKOWGNBryfxnm2JqxHc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VfzrcJNDTADNxZLzWKciLQRYu+9nq1/G4islfOdNF43uWQdxT0kHF3tQn9mCixHWV xZTEn3AWgWdN4D/DB+CFPlVlwmLV3DRAVex3AkpjMh5zJoxWP6nHE0SW80Qe0Kgza+ ZJP8xwy2+AR/jv9XxjkMYN+jy48KK83wZAW4YLbTPfk5Cl9PpWhFov9dzd6wQ8DHMb i2liKBmsuV0ZGkdNCWEP08f9OnIYIhkDiAsHtFtPqU+mSE3gOFsZ1HhsBVF/y6jdce NeKzNaf3EJQfx8sThzuALfLD5h04GAVz4kw8ZOmCPRR+sGgFdSWInuoElCE5RKW8uj NSfvuvNQVY51g== Date: Thu, 22 Jun 2023 13:32:04 -0700 From: Jakub Kicinski To: Maxim Kochetkov Cc: netdev@vger.kernel.org, Robert Hancock , Radhey Shyam Pandey , "David S. Miller" , Eric Dumazet , Paolo Abeni , Michal Simek , Andre Przywara , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/1] net: axienet: Move reset before 64-bit DMA detection Message-ID: <20230622133204.2ba95c21@kernel.org> In-Reply-To: <20230622192245.116864-1-fido_max@inbox.ru> References: <20230622192245.116864-1-fido_max@inbox.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Jun 2023 22:22:45 +0300 Maxim Kochetkov wrote: > 64-bit DMA detection will fail if axienet was started before (by boot > loader, boot ROM, etc). In this state axienet will not start properly. > XAXIDMA_TX_CDESC_OFFSET + 4 register (MM2S_CURDESC_MSB) is used to detect > 64-bit DMA capability here. But datasheet says: When DMACR.RS is 1 > (axienet is in enabled state), CURDESC_PTR becomes Read Only (RO) and > is used to fetch the first descriptor. So iowrite32()/ioread32() trick > to this register to detect 64-bit DMA will not work. > So move axienet reset before 64-bit DMA detection. > > Fixes: f735c40ed93c ("net: axienet: Autodetect 64-bit DMA capability") > Signed-off-by: Maxim Kochetkov > Reviewed-by: Robert Hancock > Reviewed-by: Radhey Shyam Pandey Quoting documentation: Resending after review ~~~~~~~~~~~~~~~~~~~~~~ Allow at least 24 hours to pass between postings. This will ensure reviewers from all geographical locations have a chance to chime in. Do not wait too long (weeks) between postings either as it will make it harder for reviewers to recall all the context. Make sure you address all the feedback in your new posting. Do not post a new version of the code if the discussion about the previous version is still ongoing, unless directly instructed by a reviewer. See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#resending-after-review