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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 17F1FEB64DA for ; Wed, 5 Jul 2023 09:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0UHcZEOOL2e7RIWNU9jtZGzeSvxxTe7dbTwtC1dUnxI=; b=R44rqprZHdLYU4 gtYdA1Hh6nKABs3MUXTP4pTD/D1hB2a4y/LIcSUf0kx9yr74FaDzby5ggV/x7pmJQH9EW4r5IT8vF FFEn5Yp0JzcUwUdDtODOA95OCm8a6vK52ApVlxwdslFIJM1KmAhFUKmiVJatb2RJTQR2Wg8M5lp8i rhmVO/Hxk5TSUyVlxV7yhDaFt9PkzH+phG/WKcClo2ZyDrdSFwb4oanNpEiH3fieFwNWO4tHdsnPP fNlsile9VZSymxxQ2pH6ZIW0xrc2aReeBufkvlbkN/jqXhMd1D0yHRirq4V0Vid1YodcHirzuxAs+ HkluOTplOwuTKNTovmSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qGySG-00FIsJ-2b; Wed, 05 Jul 2023 09:05:45 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qGySB-00FIrc-2r for linux-arm-kernel@lists.infradead.org; Wed, 05 Jul 2023 09:05:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688547939; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FkUdoB9ukiXu+GwQPoh7yLjinOj86HTx0mJIEOcNqHk=; b=XF2Ty5+4s9gCoV8n7LHDoERopxwpo86Ru71klVOgsVxem42AWvqjL4FWU5cuNfpp4ZcgGJ +Gj+zebDnCrm9a2VVpf9BShSfLHI0tEDWaK9b0Hnl350HBR197RlLimghqxXqI77MDnhtg eUCJ2C7y9G03mXz01L0MP9koQZrdso8= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-316-rYgSieapPvSvDOmV-CypCA-1; Wed, 05 Jul 2023 05:05:37 -0400 X-MC-Unique: rYgSieapPvSvDOmV-CypCA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-3fbb0c01e71so37825055e9.0 for ; Wed, 05 Jul 2023 02:05:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688547937; x=1691139937; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FkUdoB9ukiXu+GwQPoh7yLjinOj86HTx0mJIEOcNqHk=; b=FgBr5U3u9k/BkqAchzkUVj4nXHYxDrIKJ65Bsqh5RQmY47bp2Ueox+jokySERgVXRf CSRatKpxmNpnXxMUbsZtQHUC48otUjKlEVMiYAqWc+iEfXh/86zFRy+8TCk4S8tUlRzT wPits8IMZcdV4RYR1bhmO+36H9XZkbULYLnq7QAD8RrPIK+NOp6MC/z7S8Igm7dCHTDu ICzIyY7i0AJ5MtGGGxtUk5w/RcblFBwncevZ2qfS9KPTDWhjCnBMwEJ0pjthtaCIAm0p 4ChxNFHFtNClRNI7xTYBn5GgBYOlQr5XZCwJfqvMgBUyZO3Oqa4jetw0NbYvEkGI4E92 02Lg== X-Gm-Message-State: ABy/qLbVWvGs99eciuuS042nFkLHIdaLvOEzX6h6yD9LWu0mE5HOEUP0 sALcyRcwfFBn0Tch3LpUfbxxlm2kX7bExhnDTMdeT1H3mmWaIWoITo0QSawAxebmOv47LG0qeHX w5otQb7S18VZLffx2kAsECjAksHBTHhQynWc= X-Received: by 2002:a1c:f712:0:b0:3fb:dbd0:a7ea with SMTP id v18-20020a1cf712000000b003fbdbd0a7eamr6291379wmh.37.1688547936822; Wed, 05 Jul 2023 02:05:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlFea/9ghtylfsKDHnVQCxTc0bPKyrA8WH7Zc8b8ay9vM+p1C9BZYAjxS62tSMn7FBeqBkEyEw== X-Received: by 2002:a1c:f712:0:b0:3fb:dbd0:a7ea with SMTP id v18-20020a1cf712000000b003fbdbd0a7eamr6291366wmh.37.1688547936580; Wed, 05 Jul 2023 02:05:36 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id k7-20020a05600c0b4700b003f9b155b148sm1517462wmr.34.2023.07.05.02.05.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 02:05:36 -0700 (PDT) From: Javier Martinez Canillas To: Thomas Zimmermann , maarten.lankhorst@linux.intel.com, mripard@kernel.org Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-fbdev@vger.kernel.org, Thomas Zimmermann , Tomi Valkeinen Subject: Re: [PATCH 08/10] drm/omapdrm: Use GEM mmap for fbdev emulation In-Reply-To: <20230704160133.20261-9-tzimmermann@suse.de> References: <20230704160133.20261-1-tzimmermann@suse.de> <20230704160133.20261-9-tzimmermann@suse.de> Date: Wed, 05 Jul 2023 11:05:35 +0200 Message-ID: <87lefuran4.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230705_020540_016426_304FC618 X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Thomas Zimmermann writes: > The fbdev emulation currently uses fbdev's default mmap code, which > has been written for I/O memory. Provide an mmap that uses GEM's mmap > infrastructure. > > Utilize fine-grained fbdev macros to initialize struct fb_ops. The > macros set the read/write and the draw callbacks for DMA memory. Set > the fb_mmap callback to omapdrm's new mmap helper. Also select the > correct Kconfig token for fbdev's DMA helpers. Note that the DMA > helpers are the same as for system memory. > > Signed-off-by: Thomas Zimmermann > Cc: Tomi Valkeinen > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel