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=-7.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 A3E63CA9EAB for ; Fri, 18 Oct 2019 20:52:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 797D2222C5 for ; Fri, 18 Oct 2019 20:52:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=rasmusvillemoes.dk header.i=@rasmusvillemoes.dk header.b="IBXlhzy0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437363AbfJRUwK (ORCPT ); Fri, 18 Oct 2019 16:52:10 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45310 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728567AbfJRUwJ (ORCPT ); Fri, 18 Oct 2019 16:52:09 -0400 Received: by mail-wr1-f65.google.com with SMTP id q13so2609302wrs.12 for ; Fri, 18 Oct 2019 13:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=uGEXsE8/NXoRF+D14w+boPYF50JZvz72YuC6YAN3OA0=; b=IBXlhzy0RGoAwB2ojEYPz7abKSVVtIzYBJwWK4c2HgNYuYnc1H23Y0feBGiRroGP5j JubIc4JzQMtDXZ7uQ2jlmTdmFKQ4Bt4Hz0G5tO902wI3BGWJDjMXjHQyCP4UQrcIkQmy OLOi1qgwk8pQzNaoyvNk5TUdcbynJpX0xd/4U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uGEXsE8/NXoRF+D14w+boPYF50JZvz72YuC6YAN3OA0=; b=b/wh1659mqRBQA+0y+TNKynVsCp0gin3xMAveIZ87+sGvRsfKyqNPrn3UcDtsLLiDa djG0bb+8UV6ylBC3gT5AjzOIOjCD0QlWo5+qO3Sb6/2aHoTmJcrN53F5bky0hg4gqYNx 3PGtoQX58AMgCT5d5Cu/LPB8Qh3tzVzatPqrNUdyLphJ66CogGNz5txcU6A2aMhT5Sgd Xa+RHw7bX24wNG/RuEP/GSr1RXHO+5YkVStr4hFs+aGVqD1W24rAvmdEDPiBcIRMuIYY rawH5p7lg2/KbeyoXN6hmYiYLvgXT7mf3vHdCZMeZGHE/2t1rYfitt+6lcONtsMixn59 XfGg== X-Gm-Message-State: APjAAAVWMgQ9ffKdxvYNB6CceXvLfg6ytI6G+i3RC+opWX5BCoSsrwI8 +x2PHygZ/cJfkR+IyQrj/9t5sA== X-Google-Smtp-Source: APXvYqz0kY5/OxYYxhR/1u58qGdFKWyMZCctPVLRK43Po/wT6eyex+6FLmeTJjDYNDpKlXaZ7a7AbA== X-Received: by 2002:adf:9101:: with SMTP id j1mr8966445wrj.71.1571431925821; Fri, 18 Oct 2019 13:52:05 -0700 (PDT) Received: from [192.168.1.149] (ip-5-186-115-54.cgn.fibianet.dk. [5.186.115.54]) by smtp.gmail.com with ESMTPSA id n15sm8053302wrw.47.2019.10.18.13.52.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2019 13:52:05 -0700 (PDT) Subject: Re: [PATCH 0/7] towards QE support on ARM To: Leo Li , 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" References: <20191018125234.21825-1-linux@rasmusvillemoes.dk> From: Rasmus Villemoes Message-ID: Date: Fri, 18 Oct 2019 22:52:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 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 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 ? 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. >> >> 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. Rasmus