Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1253567pxb; Fri, 21 Jan 2022 13:28:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaMw/byLJDBtTQABlZOkiPWvG7djAezfn9gV/dtbw4FCNgDXzyiEfqqS4/6C3BKxsti231 X-Received: by 2002:a17:902:ea0b:b0:14a:f5ba:1e5e with SMTP id s11-20020a170902ea0b00b0014af5ba1e5emr5478350plg.125.1642800520656; Fri, 21 Jan 2022 13:28:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642800520; cv=none; d=google.com; s=arc-20160816; b=BM6PeB6I2ENbeafXR1gzZWlwjxYgBDspAd9KUTyTFTHpibVpI93M8eJkiq//Glh+Yk ZnMDW/Q07jeTN63EGm9LrPHf/8kry7a8bLjIZRkQehdjcMsfsUxKDyTjaEprMeeiGsWQ ns7roD3BrtbJ3q5uoaYkWPxGL3IDGaCsXPWReJ+GKIGtzwyeq7OeUHXT3gNgS0Y9Kxqk DWcub/8YicvoZsNbpa7WnSNYHsNh7z04qH/PfkolpGf0RMh/u5CEqYfxHqDbRUadL8yk 5qXaPBrEZqxr5NQuuW9TlkpMaaOsPtqdQ9e4YEbFau6szz5XCf6fQ3yuekg70FO5wtpC twFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kMjIpt1c5UKX7PMhTqHhaYPV9fI4F7FYowL5GOMYs44=; b=Bj2Q9ZILycPkZitoKT4c4O6pAtbHuv5tQbvKK7Zz0Np87VqNRd/2KTDBA5bYyM9TCb 6fQhqxyYl3rkweykrpVWqlQpE+KjRxDLYr3A/vaMVuxWI4CoV2WvRLnJAXISGVNEwOFZ iin9TH1vA778IC95/KT5Gp5vr47zt/u5mExk7iRzvyaFv6v2owvNO2/6OTdOYn/8z23i EbWu/hCllO+r/VMYD8KwjlfEnO56IBN8TIBurG2/HanLdCjUFMRfHHbzP3UDqcarqlPZ MyCc0PkW21yU+cj/JFlxJCFoSHxHDQtW3tzNJrB0FZoNkJ3YuLzZF3laHTGE6rqTHzUT jsQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=tvhKKbhf; 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 d187si7318341pgc.678.2022.01.21.13.28.28; Fri, 21 Jan 2022 13:28:40 -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=@0x0f.com header.s=google header.b=tvhKKbhf; 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 S229960AbiATLMm (ORCPT + 99 others); Thu, 20 Jan 2022 06:12:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbiATLMk (ORCPT ); Thu, 20 Jan 2022 06:12:40 -0500 Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 903F4C061574 for ; Thu, 20 Jan 2022 03:12:40 -0800 (PST) Received: by mail-ua1-x933.google.com with SMTP id p7so2930223uao.6 for ; Thu, 20 Jan 2022 03:12:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=kMjIpt1c5UKX7PMhTqHhaYPV9fI4F7FYowL5GOMYs44=; b=tvhKKbhfRUYInyIiGIV5u/96f/Zn6BZyUGMKxGENe8EXBb4F2V7wMUCXY5jgTU0YIr KGZiRSDEIYO7pVT7CnUvWo2FhVG83bdHOaLv5KPi+LqPCXz4hiUiqNfv+zYRCjVbUqu6 tUEqPEdRxAaknOe1O78vlXUR483l0JYosJNUQ= 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; bh=kMjIpt1c5UKX7PMhTqHhaYPV9fI4F7FYowL5GOMYs44=; b=uIkaVB2NBZy6FjXrjY6cPcQV9TThNJnTx3fGz+uKiLlMG2VIUJPt1EiSzdV5DoKuW1 Eehb6UfGFuOmO1iZleqjZ+AjQdwCGf7v7KTpFwEePXWU2nj/l5RRog2JJnNyWKCDQtyr lrDsDJITqxmGQZdKbnjZLb7eAhuM3ISfjfKv6lPbEBROklnitSo96BwkySrocI+pWa1A OP7LiN3aasOIbW9qleqe6fFiC1aNllfGgFNIkFmnC32/nPbgDGYJYgEAUcCuXLjk46KF hmOuW+jLz+iv8agDIpfnHTJfBVzuK1ylvAxIly6Z1+dwYqtT54v/nBIqav8YobKLFzDn o1OA== X-Gm-Message-State: AOAM531GE4dCqbJhRAgCY43C0NfoObJsqE3faKxj06v+r6EeOOql7hQz G+fOQ5Tq9GuasDOuYXEgdUgsVwYl7Hu9x3KUgF5cJ3F8hQpDtNRn X-Received: by 2002:ab0:6f90:: with SMTP id f16mr6800254uav.113.1642677159660; Thu, 20 Jan 2022 03:12:39 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Palmer Date: Thu, 20 Jan 2022 20:15:40 +0900 Message-ID: Subject: Re: [RFC] How to add hardware rotation, scaling etc to a DRM/KMS driver To: Daniel Palmer , 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 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. Cheers, Daniel 0 - https://twitter.com/linux_chenxing/status/1479801511274491909