Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp298374imm; Thu, 6 Sep 2018 02:38:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYvH5uRmpmLaEbIbjJQrNRZArTdFlwCC9zWywAFYDTRQ9meP0mQpYZB5ZisZkDWVernQvwP X-Received: by 2002:a17:902:8f93:: with SMTP id z19-v6mr1755397plo.263.1536226718613; Thu, 06 Sep 2018 02:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536226718; cv=none; d=google.com; s=arc-20160816; b=M83WCkBEUnTd5qcxuWlphgLDvGdBKx8H+4qAl6V6yauztY18+KRLBUdaNPyCAllg7U qzWxkqxqf50qrhpdmtqg2OMi5wzpVGwvCNXl9V7Me4RUFFfrVhsZIyVAJTwiKFPzOqam NYa6IR/oDHAMW0pGUYcTs/quQd0tNpBp3qJL5v7lmfcTIfpBbvEcGv+R1R9d0KyDllxE OlOIC7xAi8OUEOFQ+6XCkuu8vf6aPx4BnONMnUae/UDSuBOcAPsjDiE2AjH6zK6LkrVK l9P6ttDC+HvOXHXhgM4oCxunu+S4HzflWlQLFNZOlqTSKdxaBspHPx/M26X3DhHfGofF 5B1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=cPkpbt1y3xpEJHmDOYLjFHYmLAbWPO5jmgJSoK49dwI=; b=C5XvRclE/nBpb/1PztoIFXv4wdaekjK/I1KLGIkqSeI3Ot+1YuKzd+k9j5IRB1wFks yC0LNEjuCFtLvNzb8KfNMUd6483ooSSNRbtHzv9XQlkwZCrvB6wnr7VwE4ni4YxHth3z yyUf7F/q31ahzd3eoy9fC3isFs7Jiis/wqepspCHUCHOHiwbs73wW2K4CjXsQwtjVZXf /n/VpJiJKqftgBy/V6ugdpehbZ4LomCIOJP99UKH2INfO3LykVKh12BCMCio3KVDzsq7 fpXAet34PgArz+Ua28lWxeWvP+awT8Lugk3196TxltCa7kxEQ9NSHrQg6s8JnCd7toZ0 mC7g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b23-v6si4589492pgj.571.2018.09.06.02.38.23; Thu, 06 Sep 2018 02:38:38 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727700AbeIFL6B (ORCPT + 99 others); Thu, 6 Sep 2018 07:58:01 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:32986 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726136AbeIFL6B (ORCPT ); Thu, 6 Sep 2018 07:58:01 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 739254021CC1; Thu, 6 Sep 2018 07:23:57 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-66.ams2.redhat.com [10.36.116.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0664E2156889; Thu, 6 Sep 2018 07:23:55 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E8CAE4F968; Thu, 6 Sep 2018 09:23:54 +0200 (CEST) Date: Thu, 6 Sep 2018 09:23:54 +0200 From: Gerd Hoffmann To: Peter Wu Cc: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH] bochs: convert to drm_fb_helper_fbdev_setup/teardown Message-ID: <20180906072354.2vsv67k2a2m43vx5@sirius.home.kraxel.org> References: <20180905144127.5690-1-peter@lekensteyn.nl> <20180905144628.GG4929@phenom.ffwll.local> <20180905150630.GA25979@al> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180905150630.GA25979@al> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 06 Sep 2018 07:23:57 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 06 Sep 2018 07:23:57 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'kraxel@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > You can probably get rid of this one if you're refactoring even more. The > > generic fb_probe implementation (already merged) plus gem-shmem support > > for it (still in flight) from Noralf should be able to pull that off. That > > gives you the fb_mmap implementation, but with 100% generic code instead > > of a driver specific hack like Max did. > > Aside from the warning, I have not observed actual issues. This patch > was prepared on top of v4.18.1 but the new drm_fb_helper_generic_probe > helper is in master (future 4.19). I suppose that it can be done as a > future cleanup. Nice work Noralf on reducing duplication! FYI: qemu kms driver patches go through drm-misc-next, so you can also work against that branch. > > I'll leave merging to Gerd. > > Thanks, I somehow missed a patch. This one does not compile due to > "fb.initialized" still being used in bochs_drv.c. Removal is trivial, > I'll wait for some more feedback and then send a v2 with another patch > prepended. Patch looks good to me (except for the build failure which you've noticed already). cheers, Gerd