Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1781427ybg; Sat, 19 Oct 2019 02:22:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqz96keqsxKtQ0q0CBcE3O8pIRsYHzQzItEcc7M2eyBg6vJTuoQeV4yll5+y8wTZhZmVBaTl X-Received: by 2002:a05:6402:8cf:: with SMTP id d15mr13838585edz.225.1571476956838; Sat, 19 Oct 2019 02:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571476956; cv=none; d=google.com; s=arc-20160816; b=Zih9wovtk3k3x1qtMU0mMgJUcXisA+dwKPkuVIi0E8JuGQkj++yKnCQ7vLbqetzKXu IriktokrC7HdbzA8c3rjmYGbNuU6KygqAVd8z79uUtryn0e7Gki6a77dwA/vrhHH5wQ9 zdNUUJ7iMuuFf40AJOeHmFh3M/uYUtMUD4MC3xmalD6QfNA+2q5BjPF+3F4V31Nd906O U3G2Jk1/86tVjNU02psT0KIqvg9hwZG+FkuZrVKcMyXDzbu2WGCvYizTbasfDSc3EQKI mWjb1NywNqn/Fvr8t3fMQaoNQ128ldRSaoOhHT+euGcaZ3wohUCDpvjxIGSO2x0iRsB+ xb/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=HvighmfITJLDYGeaiDUTpHYE/uCdU2psCtkCA9EvB0w=; b=ff/nO0Z/nUcKtEPd0ezeMNqOintvV/wjszDCbyHK4Ed6q2t/0kNnnjolXUKbi3jFHU 9xP+FjpDbz+1jlgJIfM0XuHDB7N7ZpixvdqhC5+5t6H9j4biP5gf3p7cQOUNOTJWiatT 4Jz652w1YfEbYkkWctnOQk6xiZtYA8FU/tfrryskq2VzJZ//0D9MJ95Sd85IUofAVSzK aRNAveG6APq9N1c2h661MYBlOEUx0AH7aXn8Kxjh7HOjfkYhI5D+axMPcsJUYGoynqjj LsIlN+hK6cFaI3XWiDGp9tYvs2gmFgSjT0t1MAg1YDiUiUVZwQxz/W1ZRMUK95+j21Vj svtA== 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=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b50si5935428ede.28.2019.10.19.02.22.13; Sat, 19 Oct 2019 02:22:36 -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=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440111AbfJRVwu (ORCPT + 99 others); Fri, 18 Oct 2019 17:52:50 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:35744 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394243AbfJRVwu (ORCPT ); Fri, 18 Oct 2019 17:52:50 -0400 Received: by mail-ot1-f65.google.com with SMTP id z6so6230865otb.2; Fri, 18 Oct 2019 14:52:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HvighmfITJLDYGeaiDUTpHYE/uCdU2psCtkCA9EvB0w=; b=Nu9Ve2oDpOof/eGiT7OPcea6CzsmSr5ukKTenpPwHxIqyYxY77mROE/qryNg8KG7lj SVZk5Ec3XJ52g0IZPwPY0kAShzwMZ0rkiFTApPvEYWtoHwowr/2a1vmnDOhdORMydEAg j9duL26c36oqVm1NGdhzsnopTIxplJUvlfHGKB+5QS13LePbacEI7q3bEmSQHiOt2z5d 3H/0HOyqT0ERySbxs6SSFRrDaIhdqvnN/Al1ARHCl3puyWvCcMLHP+sbe1XZ/2zHvej7 gYCmR8D/ADcS6PZbo6VXevclq08tcGroaq/gharU/VCBXdUfZRKNPKzt+xYWwT1cAuUD VMEw== X-Gm-Message-State: APjAAAU0nQitoxloGzVeuZikurtHLDZsv6aIMiQE4oj9bt67sjs6AcvG iqzFByg01qa0e57uoLIFgB5zdwFp X-Received: by 2002:a05:6830:4c7:: with SMTP id s7mr9410967otd.3.1571435569212; Fri, 18 Oct 2019 14:52:49 -0700 (PDT) Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com. [209.85.210.44]) by smtp.gmail.com with ESMTPSA id x140sm1736340oix.42.2019.10.18.14.52.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Oct 2019 14:52:48 -0700 (PDT) Received: by mail-ot1-f44.google.com with SMTP id c10so6198418otd.9; Fri, 18 Oct 2019 14:52:48 -0700 (PDT) X-Received: by 2002:a9d:4d0d:: with SMTP id n13mr9769808otf.74.1571435568401; Fri, 18 Oct 2019 14:52:48 -0700 (PDT) MIME-Version: 1.0 References: <20191018125234.21825-1-linux@rasmusvillemoes.dk> In-Reply-To: From: Li Yang Date: Fri, 18 Oct 2019 16:52:37 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/7] towards QE support on ARM To: Rasmus Villemoes Cc: Qiang Zhao , Greg Kroah-Hartman , Jiri Slaby , Timur Tabi , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 3:54 PM Rasmus Villemoes wrote: > > On 18/10/2019 22.16, Leo Li wrote: > > > >> > >> There have been several attempts in the past few years to allow building the > >> QUICC engine drivers for platforms other than PPC. This is (the beginning of) > >> yet another attempt. I hope I can get someone to pick up these relatively > >> trivial patches (I _think_ they shouldn't change functionality at all), and then > >> I'll continue slowly working towards removing the PPC32 dependency for > >> CONFIG_QUICC_ENGINE. > > > > Hi Rasmus, > > > > I don't fully understand the motivation of this work. As far as I know the QUICC ENGINE is only used on PowerPC based SoCs. > > Hm, you're not the Leo Li that participated in this thread > ? Oops, I totally forgot about this discussion which is just three years ago. :) The QE-HDLC on LS1021a is kind of a special case. > > > Can you give an example on how is it used on ARM system? > > LS1021A, for example, which is the one I'm aiming for getting fully > supported in mainline. > > > The forks at https://github.com/qoriq-open-source/linux.git have various > degrees of support (grep for commits saying stuff like "remove PPCisms" > - some versions can be found on > ). Our current kernel is > based on commits from the now-vanished 4.1 branch, and unfortunately at > least the 4.14 branch (LSDK-18.06-V4.14) trivially doesn't build on ARM, > despite the PPC32 dependency having been removed from CONFIG_QUICC_ENGINE. Can you try the 4.14 branch from a newer LSDK release? LS1021a should be supported platform on LSDK. If it is broken, something is wrong. > > >> > >> Tested on an MPC8309-derived board. > > > > MPC8309 is also PPC based. > > True, of course. This is just some first few steps, and I'm not claiming > that this is sufficient to make the QE drivers build on ARM yet. But I > have a customer with both mpc8309-based and ls1021a-based platforms, and > they want to run the same, as-close-to-mainline-as-possible, kernel on > both. So I will take a piecemeal approach, and try to make sure I don't > break the ppc boards in the process (just building and booting one board > is of course not sufficient, but better than nothing). Once I get to > actually build some of the QE drivers for ARM, I'll of course also test > them. Understood. Zhao Qiang also maintains some patches similar to your patchset and I think they are tested on ARM. But the review of these patches from last submission didn't finish. It looks like your patches are better divided but not really verified on ARM. Zhao Qiang's patches are tested but maybe need some final touch for cleaning up. I will let you guys decide what is the best approach to make this upstreamed. Regards, Leo