Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1263999pxb; Fri, 21 Jan 2022 13:46:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyw6VcikpdrjsbBiFWldWBpwMUwBnGH/5DxLloVyGmrGsqZPZWsTtVyIie198L0xmZWa0D X-Received: by 2002:a63:5b5c:: with SMTP id l28mr4194821pgm.70.1642801616170; Fri, 21 Jan 2022 13:46:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642801616; cv=none; d=google.com; s=arc-20160816; b=cJNIreoikaT4D1grifK0S3krpbfmxjJqCvo25qvG4AyduPatIqUWjR8fjsSMapoyEL Wqn94DbjvsBahy1GeGZYkHbJP8h89vYD7RR5pz0Vgzrv+rNTxWeh/hKpLoNvUVogQUh9 U7dyTYDqXL+6dgDff35NYNMyX+YsyF0bmWjZiPnG5he7iQvyP6gKc24pqa0aBC/npN21 x3ahIvIazgPa85qXhPurLA/sMDZ5zlqV9pi1gW8YO/SINOPaxMiCqN6Mr6r3/oBygLry UNULV5wH30Pm3VPoDODYQnyW+HqXgtTfrdnYLAGHKGbR5CHZMKEYmyxVb3K4gTPhtacV BgdA== 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:dkim-signature; bh=/S8k15AcpnXJR5sZmK0Rcxc+q7sXlvNu6yj6zSEHGrM=; b=jfrL5oPCxAmQ0JxH+V1IKMes3OM+el8u2cn/NbKlc/P6PQkeRo/txvpmkNQMjfzIjU AZSDaF3hRyNmz8Bx9vzj8Pbwye5uSzJVYkPcEUwOvbzXzGBw3OySGAOWzcNPhK9RILop /5Wdah5N7FFVYyYOZyYt2eC8o7vwUYJKDXGWWKMDvSSBtQd2k7vKsD1wPtoW7/a96QJs TJfOTdLaqkSlCH8DIA3/+iveU+K6U49Cn+H2P+kigP7HyngQuR2ReiOt9/alS9+urJSU SX+h5rCH3/9eE6tPWOhOxUvW1/C4a3oxSkEF16/o2iVvzt5IZAI8ilvLB9ujeGKjnyzY Uyvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=AhbLp7Lr; 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 n6si7058998plk.619.2022.01.21.13.46.44; Fri, 21 Jan 2022 13:46:56 -0800 (PST) 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; dkim=pass header.i=@ffwll.ch header.s=google header.b=AhbLp7Lr; 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 S231786AbiATLlC (ORCPT + 99 others); Thu, 20 Jan 2022 06:41:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbiATLlB (ORCPT ); Thu, 20 Jan 2022 06:41:01 -0500 Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0736FC061574 for ; Thu, 20 Jan 2022 03:41:01 -0800 (PST) Received: by mail-oo1-xc2b.google.com with SMTP id s13-20020a4aa38d000000b002e28c5100cbso2077196ool.12 for ; Thu, 20 Jan 2022 03:41:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/S8k15AcpnXJR5sZmK0Rcxc+q7sXlvNu6yj6zSEHGrM=; b=AhbLp7Lrf/Hbom1/nqt1i9iL8YdYmD1NGte7834RS0WBZ0e4HZSvvgEnRviDNt+ijl +ExPcaeqep414/+Np4/OrvaZ1+CMi4uzmk42JdqTz0HgQELcdKTw5LfsCxPET5H2iwUZ XNMbk0TsUZ/N7jN6oUb1Kh0EfZWT6TrI9Ndwo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/S8k15AcpnXJR5sZmK0Rcxc+q7sXlvNu6yj6zSEHGrM=; b=63jEG3P/oY/e6EG12oYR4c/YwES/P6uuo0VzcJXHoHXWx5pD7/3EyD/udNkE9/AcTH +zIa6KggxwWOn13rGRZldcmzK+ShanOrzDZllDsrWem6xb9+XyHRovs701MSYL6vt0Bo KNcLTCb84FGQCXoPonpqn/ZMrnZgaNgwnv9k5tNfamO8xsku68MSJ/pW48PNIrJHty3F 7dMSpIzvisNkU0akYwnVC7mDGrFBn66TrBxLDsf5nxmb9ZsWMET01peT62d7cE3Sv1s8 RNLQF8IXNnLe5A349TWQArzkRJNJeAtq4Pr/vQ+FGOelxKbahglpgLkSCf3JshgNrlDi 5Mkg== X-Gm-Message-State: AOAM53026sdry91PCvSEkEjzUsrRqoA8d5HJcHwEI1441YcTvJ2atpFX v2UmEKKoROnmJtYUdk45WQuWgR45EVG79zmoqk7Vpw== X-Received: by 2002:a4a:db96:: with SMTP id s22mr23232794oou.66.1642678860411; Thu, 20 Jan 2022 03:41:00 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Vetter Date: Thu, 20 Jan 2022 12:40:49 +0100 Message-ID: Subject: Re: [RFC] How to add hardware rotation, scaling etc to a DRM/KMS driver To: Daniel Palmer Cc: Hans de Goede , dri-devel@lists.freedesktop.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2022 at 12:12 PM Daniel Palmer wrote: > > Hi Daniel, > > On Thu, 20 Jan 2022 at 01:30, Daniel Vetter wrote: > > > I got the feeling that maybe I should just provide an interface to the > > > blitter from userspace and userspace should be doing the rotation. I'd > > > like to do it in the kernel so stuff like SDL1 apps just work but > > > maybe that isn't possible? > > > > panel orientation property is for that stuff: > > fbcon will head this and rotate in sw, > > This is working. On boot I get Tux rotated correctly etc. > > > as should any competent compositor > > in userspace (but some might not, it depends). > > That's the problem I guess. I don't have one. SDL1 apps like prboom > use the fbdev emulation as-is so they render upside down[0]. > I have 16MB of local storage and 128MB of RAM so I don't think I'll > manage to get the standard userland bits onto it. > > I wanted to do the rotation in the kernel so I didn't have to hack up SDL1. Move to drm kms, fix userspace. fbdev never supported this, and I really don't think it's a good idea to add in-kernel rotation to fbdev. -Daniel > > Cheers, > > Daniel > > 0 - https://twitter.com/linux_chenxing/status/1479801511274491909 -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch