Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3858982pxb; Tue, 7 Sep 2021 09:03:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/N+TrAle83yQkzyMwq/S81d9jOttsrxCFza6opnOK2nm8Q5iz2AwEQQuxnMa3l4GG/ZQ6 X-Received: by 2002:a05:6402:6ce:: with SMTP id n14mr202220edy.194.1631030623547; Tue, 07 Sep 2021 09:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631030623; cv=none; d=google.com; s=arc-20160816; b=ZkqmDHEw53QrWxIB4WPM1KmJaBrY2e1GAemvDUV4hKDjEhZD3YpM7IdPJEgLrFG2bJ fHGxsAscbGSb9gmJ2+iBSND+TKZ25Tz4m9kgOmyEsb5mlUY4cqbJwzTr/0QD//hC4c7L A7kVEpZAob4tlbimu7Nv7gZYoakFo15HjPCWfrJGeuHgWAt+yif7YWRh2TWxmUOHyBSr ZGHnG4vQgqrmgEk9+HFvo2AnFA0AWcQsLO379SDmSPuNS0NUIvNt5SGCD9KEVdNKNK6M FPFyOv6nv0/4ok/rKhHVRnEy/GzkaMTVFqNwsW83M4scCNHDgnQwNFOK0k5+69GgNsLN 9Ybw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=8k+PpuySjlYiKVS0zxkfPVuFX6uonqiTkB/iSpqmQAQ=; b=UYTw0GlR+ZbDAhCMEO7M/cxdxqyPN6U9M46pwofxnh7gJ5tSE0+pKqlKL1P7hUW8LD jK5Cqri/irqH9b+F/VwUWF1/v2ri4Y5ulnVeGiJJdF2/GeAvES+lhqBbmLZowwd9G2Dm SMuflWZAoaeFv7EDHYcHmAHd4/4et9XNfZwuacBnM7Ww2yX58N38glrOflv8M3rjl8wZ EtaVDIFFUdL4Dw153BGe7yRRgbRourF3Y+RpOzX+cqQHHMYE0ElrNypRje2aBCJHTVQ6 X86yuMBMhLcqFCXCXAVXE/P5mJjNoCBBHMSIXcRZnLj5etvmzLYjzNQmJML/sPMlzKdR 0/Sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si11779921ejl.487.2021.09.07.09.03.17; Tue, 07 Sep 2021 09:03:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345076AbhIGPXo (ORCPT + 99 others); Tue, 7 Sep 2021 11:23:44 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:45949 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345019AbhIGPXn (ORCPT ); Tue, 7 Sep 2021 11:23:43 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N5mSj-1n2aSF0CeR-017An7; Tue, 07 Sep 2021 17:22:36 +0200 Received: by mail-wr1-f46.google.com with SMTP id t18so4286991wrb.0; Tue, 07 Sep 2021 08:22:35 -0700 (PDT) X-Gm-Message-State: AOAM531Qj5eAw082QSGq2LSDC9NOTCV/5nBOC8L2hA7BCC+/VXXbLwoT gV1hOIvFb2DS2s0HJpRMedZfa6Pph+Nt8m35YC0= X-Received: by 2002:adf:c10b:: with SMTP id r11mr19521551wre.336.1631028155500; Tue, 07 Sep 2021 08:22:35 -0700 (PDT) MIME-Version: 1.0 References: <20210907102722.47543-1-bert@biot.com> <20210907102722.47543-5-bert@biot.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 7 Sep 2021 17:22:19 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 4/5] ARM: Add basic support for Airoha EN7523 SoC To: Daniel Palmer Cc: Arnd Bergmann , Bert Vermeulen , Russell King , Linus Walleij , Andrew Morton , Geert Uytterhoeven , Anshuman Khandual , Marc Zyngier , Mark Rutland , John Crispin , Ard Biesheuvel , YiFei Zhu , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Mike Rapoport , linux-arm-kernel , Linux Kernel Mailing List , DTML Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:rQn/ggVZMxa0impJfQu8ANKJ9Dp7zg0dW2eal7JvpWIuEul96Ar Xkr3e0hnz1cLDzZGn+sApKVyW1IMpPGEzJq6V5YWxQHyIkkCUtdRSW91FAK//0nFNd1sauu 0cZlJFVgQ9DrCUqAj/EIFb09cqN2HOAbM1p04UFUBphWUYZ/QX7MlI7qn1NG1py4UUqNU+L Ap67sOktLDWI2IZCcclIw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:pyPB3Zm4iTE=:2bqXNR9fPUqGjkg6buYqX4 VhRN3wA7ve8Fed0iN6H2fdosLHYx2IvCcwFbk1TwB4NigdPVZO9czH1gUfcF2ztr795zOOj8s tD9i4ofsEbIiKYTPdQojrf2Z79BLqf4splyTBekMSwJaqZCIUUx5FXpypoGiY3SxaniNW4FY1 11LicF6Ke8O26wmCxWmc8q5zEE2LMinz2q9PWjHW+LnsSvtB5os+JiTwxz+odx9J2G2lpH2zl gzBWR7UxnCgzBkQQdtTkKTpnAz622rXkBIRit5r3bc6Zvyke8kLPMl3drjlL6VJzjNVyuXq5C cRR9MgFnUK7Nzs6dooS5nOvFqTfGfQg9e/vp9Xy1iT2a3Y1ZhW05AaXOzoGUOD+K6j3BgJV/4 Et7Bymb2rt5LlmVnzpNtDNWY9U4bqVNdn+GLC9EHj7j6hZ4VetT/zKAV6r+zDHruIkrj9Y01+ +loiYxtD8wZZTZjNQmjbsi8EFRnuMibGI4dLeD8ZGl2qLdpf/kz3xrU4LRvw66Svn/smQoFUo QICUuDDiFvlj/npZNit+J8I3B1Xm/R+Jwr7nxiH2S7TjPWryN3WBRwUB1u5FZyOmt1tKFJ/nS vSgzbIN6KDPRwCc+0rgqCsWR0DMnsg6qpJTeYISdpvXXSEKiD3i4ILLpAPiAsfgCKqVXCeY14 uBW9Ca6FL3FVIFISQ72wpyQJoLBnxFYGfUMyEvEsjHK2ZrzY8zZXMlhQzmdbdpsfNJNXd6a/3 JpcK21ITUoeFyw7L6ZuuJUBnCZvi/j6dz7KYZQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 7, 2021 at 4:32 PM Daniel Palmer wrote: > On Tue, 7 Sept 2021 at 23:12, Arnd Bergmann wrote: > > > > I think the broken memory controller is still there so somehow I'd > > > need to get the heavy barrier to work in arm64. I haven't yet worked > > > out if that's even possible. > >I think I missed that part of the discussion, or I forgot about it already. > >What is the issue you are referring to here? > > Sorry. I should have put a bit more context. This is for the SSD268G > not the original target of this series. But a similar situation. > The SSD268G (according to the decompiled device tree) is the same > hardware as the MSTAR_V7 chips but with a Cortex A53 instead of the > Cortex A7. > So it probably has the same memory controller as the MSTAR_V7 stuff > and that memory controller is not coherent so it needs the kernel to > make sure memory requests are flushed out to memory before DMA > happens[0]. For arm I fixed that with the heavy mb callback. With > arm64 I have no idea how to fix that. Ok, got it. I do remember the Mstar SoCs having this problem. My feeling is that this should be possible to implement on arm64 as well using an erratum fixup with a configuration option, and possibly dynamic patching to avoid the worst effects when the workaround is built into the kernel but not needed. Whether this is acceptable or not is up to the arm64 architecture maintainers of course. Arnd