Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp725081yba; Sat, 13 Apr 2019 11:58:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqygutWFpnYWTTdVOzb3bXE5uP9Ee8AxWcdnQbeiz4JCNstJpTZBZZlzUoVqHoAqAkgm1jm/ X-Received: by 2002:a63:2c3:: with SMTP id 186mr59351429pgc.161.1555181936750; Sat, 13 Apr 2019 11:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555181936; cv=none; d=google.com; s=arc-20160816; b=fwD81xtNGmazFlgD8SCF5Nm+Am5VPj1qW3gupMNjrmVdcgioxGPjQ0YqAUkcJJKGLB pqHUJs0hRHo7AMS1y+7lQOoGsGgrDgSGCa1CxJ8tF6dCoN1/8jDa8wvA4nvbP2zHvkLN 4R2mpAAHYglYg/SHTDZ1/ORD1A0CIwfD2ysNkflYOi7z8NGYKPDI+6+XwWNiQnm5BXxF LIMSDhLg6s/V0XbPDjjUEhYAdqR6IgpvUteHf2m5p3rp+d2u7gTfM6uYo7luHFRom02h TkBmXXfT5tBrFpSXqSJ5zkUh9XxAFqiLJzfLPAPrdFq07Dq5d4bCJTw/3LDAZ46izQsH Ii5Q== 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=DQHcegHBAiV8zHcLT/lGk4WkOU3KlLgjryH7RgoHvYc=; b=ADdT/rxVr7CVboakGjtxoDwKrIfIhWnAG5J6aC8na8Sab2U+2OfIxN8aV8P8Xs9mzl ZeOVPgwV9Q/mXPwt71SQ307JVp1jhgwYStrPD5+p3GMSwQWlL8KBaHIULVQU3xnpbxlv /j/TvNCTrUj4807WShbnB6Zzuq5+BEGM94eSJze/bzi22H4eHNUIGA20U4DxYiMrRdPg uihHiOM7mcizr/XqC0mSxWz9W31aIirDO2Ee1ftfPQqrj4xGvp73i3BPVGIneh2/jTfJ GXv/I0n0mHVkKjyga5nz464CNdmablaYpUpuGuwu822VQyyb/gF+4VZE71bKGy6XNlIv LGSA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si40961554pgl.335.2019.04.13.11.58.26; Sat, 13 Apr 2019 11:58:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbfDMSyn (ORCPT + 99 others); Sat, 13 Apr 2019 14:54:43 -0400 Received: from smtp11.smtpout.orange.fr ([80.12.242.133]:33312 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727074AbfDMSyn (ORCPT ); Sat, 13 Apr 2019 14:54:43 -0400 Received: from mail-qt1-f172.google.com ([209.85.160.172]) by mwinf5d22 with ME id zuue1z00F3jUGuh03uufPd; Sat, 13 Apr 2019 20:54:39 +0200 X-ME-Helo: mail-qt1-f172.google.com X-ME-Auth: bWF4aS5qb3VyZGFuQHdhbmFkb28uZnI= X-ME-Date: Sat, 13 Apr 2019 20:54:39 +0200 X-ME-IP: 209.85.160.172 Received: by mail-qt1-f172.google.com with SMTP id k14so15034509qtb.0 for ; Sat, 13 Apr 2019 11:54:39 -0700 (PDT) X-Gm-Message-State: APjAAAVl8O85BJn4tm3UnnuWD/457EETJ6lcM8QD8FiqcYtuvGF2vLga Pr1fc/HRO+avFTGeS1Ax6oduF9YkEPF/9usTcd8= X-Received: by 2002:ac8:38f5:: with SMTP id g50mr51218724qtc.119.1555181678353; Sat, 13 Apr 2019 11:54:38 -0700 (PDT) MIME-Version: 1.0 References: <20190413171532.25967-1-martin.blumenstingl@googlemail.com> In-Reply-To: <20190413171532.25967-1-martin.blumenstingl@googlemail.com> From: Maxime Jourdan Date: Sat, 13 Apr 2019 20:54:27 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/3] 32-bit Meson: add the canvas module To: Martin Blumenstingl Cc: linux-amlogic , Kevin Hilman , mjourdan@baylibre.com, Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.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 Hi Martin, On Sat, Apr 13, 2019 at 7:15 PM Martin Blumenstingl wrote: > > This adds the canvas module on Meson8, Meson8b and Meson8m2. The canvas > IP is used by the video decoder hardware as well as the VPU (video > output) hardware. > > Neither the VPU nor the video decoder driver support the 32-bit SoCs > yet. However, we can still add the canvas module to have it available > once these drivers gain support for the older SoCs. > > I have tested this on my Meson8m2 board by hacking the VPU driver to > not re-initialize the VPU (and to use the configuration set by u-boot). > With that hack I could get some image out of the CVBS connector. No > changes to the canvas driver were required. > > Due to lack of hardware I could not test Meson8, but I'm following (as > always) what the Amlogic 3.10 vendor kernel uses. > Meson8b is also not tested because u-boot of my EC-100 doesn't have > video output enabled (so I couldn't use the same hack I used on my > Meson8m2 board). > > This series meant to be applied on top of "Meson8b: add support for the > RTC on EC-100 and Odroid-C1" from [0] > > The series looks good to me, however I wonder if we should maybe add a new compatible ? The canvas IP before the GX* generation does not handle what Amlogic calls "endianness", the field that allows doing some byte-switching to get proper NV12/NV21. So the following defines are unusable: #define MESON_CANVAS_ENDIAN_SWAP16 0x1 #define MESON_CANVAS_ENDIAN_SWAP32 0x3 #define MESON_CANVAS_ENDIAN_SWAP64 0x7 #define MESON_CANVAS_ENDIAN_SWAP128 0xf It wouldn't change much functionally, but we could have e.g a warning if a m8 canvas user tries to set endianness even though it does nothing. Maxime > [0] https://patchwork.kernel.org/cover/10899509/ > > > Martin Blumenstingl (3): > ARM: dts: meson8: add the canvas module > ARM: dts: meson8m2: update the offset of the canvas module > ARM: dts: meson8b: add the canvas module > > arch/arm/boot/dts/meson8.dtsi | 21 +++++++++++++++++++++ > arch/arm/boot/dts/meson8b.dtsi | 21 +++++++++++++++++++++ > arch/arm/boot/dts/meson8m2.dtsi | 10 ++++++++++ > 3 files changed, 52 insertions(+) > > -- > 2.21.0 > > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic