Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2097533imm; Thu, 2 Aug 2018 06:15:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc3qH5MqrUYU1DomIo3CLJgn1rN1GGGeI4qHOTyaXx+FZHEPoF1d75g5MGo4Pw6IgOVbhqW X-Received: by 2002:a65:665a:: with SMTP id z26-v6mr2683526pgv.193.1533215742080; Thu, 02 Aug 2018 06:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533215742; cv=none; d=google.com; s=arc-20160816; b=z8Fgf9tarRmwLfXMt8gsy9icbWS/4h3zBzuTBq9Rog7VeMjkGH1j17U4N3GT3nBtLD 8QpHCZoDCz4oj9w7F9qrDDTlH/AtfucYmjIA5kgaZvdkcEqZDjU6/9GZW/CufGuLMWEM G7CzEOm3O/Q4acLFO2msqNAMFIVi8ZlFcqSh2bNOtN8N166QcATZ4eRlZHNNlLHhooj1 3zLVuXfUtz2XHAdntiwT3vunlDlN+wP6eh+FOWtuFTkHlU1C45uCIC9IrVHQZv0PUAY+ 6idbGai1YgYXn0Gpg1sYSaPLxl+saR1gxK4wmOGJB/I+DYE8gufRdRXS1jTK5qFn2ZMw 8S8w== 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 :references:in-reply-to:mime-version:arc-authentication-results; bh=mJDtRZqe4BYUjsOgV+F1+77STxVUYWgUL4MNYVTKwb4=; b=fPHe6drrkEO29XShdwayMo7swqb8LhxaUyQ3hveuIJBVRPbA+vATO+AEhWQVQkBfu6 2Evd8B1uMWQ1TxunwdPdDPHWWOFTqLdY3Sw/r/dJ0f+4tY1u0GOVayAwWe/YQr0En5cG G30H7CIAg2gN4IvRnG6ULXee2+bPVbx9l/+wsFKe68p8T024a/ivXfJfBMft0IP4mfsZ 74qlxAgDT4Sh60AfkhyuK01fX9EPzzt0qX26Jf3MKZ0vkfFnpNR+uuiCuWCEVC51XE4S PLI9sXhnmU/MmcW7Q7C0F5XU4oql8xsLi3kPZ6vTejTM5iGHwbgD/5YIikzj1EcVptWj cHHg== 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 s12-v6si1284278plp.371.2018.08.02.06.15.26; Thu, 02 Aug 2018 06:15:42 -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 S1732477AbeHBPFn (ORCPT + 99 others); Thu, 2 Aug 2018 11:05:43 -0400 Received: from smtp05.smtpout.orange.fr ([80.12.242.127]:36117 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732298AbeHBPFn (ORCPT ); Thu, 2 Aug 2018 11:05:43 -0400 Received: from mail-qk0-f173.google.com ([209.85.220.173]) by mwinf5d40 with ME id JDEX1y00J3l49Wx03DEYPd; Thu, 02 Aug 2018 15:14:32 +0200 X-ME-Helo: mail-qk0-f173.google.com X-ME-Auth: bWF4aS5qb3VyZGFuQHdhbmFkb28uZnI= X-ME-Date: Thu, 02 Aug 2018 15:14:32 +0200 X-ME-IP: 209.85.220.173 Received: by mail-qk0-f173.google.com with SMTP id b5-v6so1478277qkg.6 for ; Thu, 02 Aug 2018 06:14:32 -0700 (PDT) X-Gm-Message-State: AOUpUlFf7XHf1mflMk/f8j25hAKoZbzouwkKWChD3A8Y28PXZheJfHh2 5LtdvFxRUf7WBEC8EBBRMlz04d+IxwYHpzRQzEs= X-Received: by 2002:a37:5b47:: with SMTP id p68-v6mr2360912qkb.202.1533215671405; Thu, 02 Aug 2018 06:14:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:278a:0:0:0:0:0 with HTTP; Thu, 2 Aug 2018 06:14:30 -0700 (PDT) In-Reply-To: <36fcadd3-074d-7c11-6ca5-b44aecaa3639@baylibre.com> References: <20180801185128.23440-1-maxi.jourdan@wanadoo.fr> <20180801185128.23440-2-maxi.jourdan@wanadoo.fr> <36fcadd3-074d-7c11-6ca5-b44aecaa3639@baylibre.com> From: Maxime Jourdan Date: Thu, 2 Aug 2018 15:14:30 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] soc: amlogic: add meson-canvas driver To: Neil Armstrong Cc: Maxime Jourdan , Kevin Hilman , linux-amlogic , linux-arm-kernel@lists.infradead.org, linux-kernel@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 Hi Neil, 2018-08-02 10:38 GMT+02:00 Neil Armstrong : > Please switch to the spdx header format here and in the .h. > In the DRM driver these are updated in IRQ context, we should make sure we don't sleep > in interrupt context if IRQ occurs when the VDEC updates it's canvases. > > Could you switch to spin_lock_irqsave() instead ? Will do. > Can you add the endian defines ? > > #define MESON_CANVAS_ENDIAN_SWAP16 0x1 > #define MESON_CANVAS_ENDIAN_SWAP32 0x3 > #define MESON_CANVAS_ENDIAN_SWAP64 0x7 > #define MESON_CANVAS_ENDIAN_SWAP128 0xf > > the SWAP64 is the one used in the VDEC and DRM Overlays. Sure. Maybe I should push the flags (0x1, 0x2, 0x4, 0x8) rather than the combinations? Or both, since the combinations are more likely to be used in practice more than the single flags. > I rebased my DRM Overlay patch on top of this and : > Tested-by: Neil Armstrong > > You can keep this tag on future versions. Thanks!