Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp422305imm; Thu, 16 Aug 2018 23:49:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyn+RJHyneK0qdJvJAKLdldTUsDJ39zpLMGjKjAoFOrQI94u+uwtXmRPcvV1VNIQoOte3+2 X-Received: by 2002:a62:8d7:: with SMTP id 84-v6mr35593501pfi.172.1534488541219; Thu, 16 Aug 2018 23:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534488541; cv=none; d=google.com; s=arc-20160816; b=1Dr3qKUInrq4r052XgaMA9FX1Yn3Lh/WnJaA7hOfsMO4itLWeW7ZJKSNnz9FvLKpe/ tn+ZWDqQfMFXtZrmwU67bTiSzn5nmDmINmrDQHFEKmUn+KYUAUovVgO1ZE/jS1qjXlba 8J5EXIpOBMxgfng1bNQGRFE4J9+RVdaGJUCy7Qse/poeuhF5llqN8Qt1czmW+89SPXAM zm2RUgQvlLh6fvCQ1iDXrTwM6KxeqHFpkEHRrAI0txI1jZ0SvHKIJNQUjkknOroUAuZE GRRVYurNShdaMoEthcnasbw7YNernE4YEVvFs6GbG2rDKqiPlh0oHfXGe3AQthmHS5ZB Q2hg== 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:dkim-signature :arc-authentication-results; bh=EPzzXmX+2etSRW8Ke2ANFBPT9Wh8WStz2pnojzz9qtY=; b=ndDm4PZH/c8az5zvxwNfy+MZOCazJouS4JWF4/6j79Qn0JFe9TtPPGpVJOjlfAwmY5 UVoNC0Y79/OR4gIsBMxGbW2qfZ9w3tlzFy4h4GmkahjdHhHsR/Wty04bnTRJb1LsXfIM v02lZg+kEiIdTdjOndgIPr1xQGpF6dO2H5bkcVuAu1HbyozGu01lPm8Egkka1rTQjqGb 7TtpfXavVeygjc5GGN3A/DHGYlqP4TzkYlBWoq7zmYK6uXbHtAz1L+DjnaBP4mhvX8C6 +zV+wTJsDcmQ1q5vZWaXsLO0BSN0DEQAGxoD02Rx0krOrb/FFKo0C1euvsFz7/USE1ol hPrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=R8vXYker; 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 e12-v6si1520871pfd.38.2018.08.16.23.48.45; Thu, 16 Aug 2018 23:49:01 -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; dkim=fail header.i=@ffwll.ch header.s=google header.b=R8vXYker; 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 S1726447AbeHQJtv (ORCPT + 99 others); Fri, 17 Aug 2018 05:49:51 -0400 Received: from mail-it0-f54.google.com ([209.85.214.54]:38516 "EHLO mail-it0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbeHQJtv (ORCPT ); Fri, 17 Aug 2018 05:49:51 -0400 Received: by mail-it0-f54.google.com with SMTP id v71-v6so10542525itb.3 for ; Thu, 16 Aug 2018 23:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=EPzzXmX+2etSRW8Ke2ANFBPT9Wh8WStz2pnojzz9qtY=; b=R8vXYkerQOLpj8Yfjpc2p42ZtkRcehTTK3IBnU/aPrLJ+C0ozNaqYmr5mz7vOIAu61 3BtVnE8t5UV+tZ4hLl1gZF6dW2bNzi7W72n4nSBSjQjS6laEDVp6KlE+9mbCuQ/MLjYX YBqE4bqHAl0givKg6UrnAhSVuOfOGTxXSo3xY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=EPzzXmX+2etSRW8Ke2ANFBPT9Wh8WStz2pnojzz9qtY=; b=eFSo53xuds9BsJvS9cyWYQwTAtiMcbdrVXf3TRhV94Fz3aClGAD16QqaobcLjxW3Wy DHxV9nL/HFC3qAvCzF0s3KC6ysny4raKyQ+7aP8lZnDWCGUhYlhgG9UVO34Lq8qb3idf iQ88pbkRDgoAx5EeJRdVP7NxRdfYi/8Y6dFrI6YkaS8lSHeEm8AO9c5rR2JgLZm7wFqn nxYE1WyzC96pbYBsNT/tnUUCd+FCht0ED1sbzB9WMH7AmKHp9WYrE0HZEbauk9Yj5tGE hFgbblt6oI6FJEETet2UiCqpHOHDQ+fl8em9O7ZYyX92ssWF7vbeg/cH6SAn542DFURj RE9w== X-Gm-Message-State: AOUpUlE9UqwPY4IzWqMqspoFnVx5Mh05G+3q8iRSz6+i2ZeJc//4INQ4 zWKlYapYTC/DKtvSeb7eLY0NgbZqyPQbQiNtucWWdA== X-Received: by 2002:a24:6c04:: with SMTP id w4-v6mr3274535itb.4.1534488460600; Thu, 16 Aug 2018 23:47:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:e502:0:0:0:0:0 with HTTP; Thu, 16 Aug 2018 23:47:40 -0700 (PDT) X-Originating-IP: [212.51.149.109] In-Reply-To: References: From: Daniel Vetter Date: Fri, 17 Aug 2018 08:47:40 +0200 X-Google-Sender-Auth: 51DJ6P0-JDEQ5Wt0qkuFLVmMB2E Message-ID: Subject: Re: [git pull] drm for 4.19-rc1 To: John Stultz Cc: Dave Airlie , Linus Torvalds , LKML , dri-devel 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 On Fri, Aug 17, 2018 at 12:22 AM, John Stultz wrote: > On Thu, Aug 16, 2018 at 3:16 PM, Daniel Vetter wrote: >> On Thu, Aug 16, 2018 at 11:21 PM, John Stultz wrote: >>> On Thu, Aug 16, 2018 at 1:46 PM, Daniel Vetter wrote: >>>> You happen to have set drm_fb_overalloc respectively >>>> CONFIG_DRM_FBDEV_OVERALLOC? Was added so that mali blob can pageflip, >>>> would explain what's going on at least. >>> >>> Yep. CONFIG_DRM_FBDEV_OVERALLOC is set to 200. >> >> So ->max_height is indeed the limit (or should be, minus driver bugs) >> for framebuffers. That's enforced in drm_framebuffer_create_internal >> for everything (both ioctl and should also for all internal callers), >> except the cma helpers never made sure this is correct. So I'd call >> this a bugfix. > > Sure. I'm really not sure where the max_height=2048 comes from (and > if its the real limitation or a vendor guessed value - the hikey960 > driver I have uses the same), but yea, the old code wasn't checking > it. So in a way the limit is not entirely correct, since it's enforced for drm_framebuffer, not for the underlying memory object. Assuming you keep alignment correct (which is not exposed to userspace) you can overallocate that and scan the drm_framebuffer over it. But the fbdev helpers don't do that. We also don't have separate limits for fb sizes and max scanout. Though the later is supposed to be filtered in the various mode_valid callbacks, not through max_*. >> Now the question is whether the fbdev page-flipping actually worked on >> older kernels for you or not ... > > It sure seems to work ok with the changes reverted. Any suggestion > on how to check this? No idea. I didn't type a testcase for it, wasn't my feature :-) -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch