Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4007540pxu; Mon, 12 Oct 2020 07:13:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLQ6dzt3rWB/pyKI2POPRvnjUPvSQINolP4XIknX2BlDyMXVxdISRodnOmw99x40a9EFf6 X-Received: by 2002:a05:6402:3070:: with SMTP id bs16mr14731620edb.371.1602511984073; Mon, 12 Oct 2020 07:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602511984; cv=none; d=google.com; s=arc-20160816; b=hmIS8606Mcub0HbgjHzeRek4x027UCz+OJAuXSYXuw2YW4zGzDg7iTMYNewIDrsRzg nfgQD2ezLHTSQyk2M8GsGUvyXyRZ+bc/kpnce4BisiBGEpOrFvZRJjgcwUuWeugHnizK 1+HhnRsEMD8FiQiWtJvBwPGbSg6DcsarRBbY3Vv0hkjDdgF3cQCisTWTHAygCPL8rWXO ammBcFSfDXlEMpSB6odmql9OcfoCZArX4yuZgyvI1bgDFY8bsp+du+A0Sh4cUd9Red0/ /UbMFCGnEtYCH+8NXEIfF79LKl0RpipdoiO0/alvIhzwXRcNAsFB3FVBpzZ1dkIh5P6U l2hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=q4EC5hEm8KrtPAdtrlfLWYj7biKnJdAbCRH4TVorbTc=; b=Edwwv21Tv82Q4Vrma0jO8ZwG3CAnFq0fhKqCWf1JKY0hiFt6ZGcu72L6Kn+Q5iaWb7 0TaoUNDxRf98NIeH9qXcPrpGOpWKF/FEbIUJOamtWqMV2Uw+KANE9fjD625hlKIlbgXR XAuJm18fB/cGWDYD8XsRFEHaoeBN61q6UDahp7alEI4yM1RzI2sJNDM/YKroI8JDav1C 3sBBK2QRstDP/qdovJlEL+43/wwsZkROdcoPUj9PhhR20taAURjz7y886ZARXm3j5sP3 afbu3/Q2sh66/BVB4lhV3MgxZFzFNFRSlc9ca1xTy8K0MlJknnLFtvtzMicXHwbLk38v Y3iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Xfpm0AW6; 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 s26si2170938edr.329.2020.10.12.07.12.40; Mon, 12 Oct 2020 07:13:04 -0700 (PDT) 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=Xfpm0AW6; 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 S2389202AbgJLOKr (ORCPT + 99 others); Mon, 12 Oct 2020 10:10:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389167AbgJLOKq (ORCPT ); Mon, 12 Oct 2020 10:10:46 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5319BC0613D0 for ; Mon, 12 Oct 2020 07:10:45 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id e2so17688165wme.1 for ; Mon, 12 Oct 2020 07:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=q4EC5hEm8KrtPAdtrlfLWYj7biKnJdAbCRH4TVorbTc=; b=Xfpm0AW6tFAd+5MArS1u7SlBI7k8C9OsfABYl6ok371G0BU5yexElnGPL1lR4UuQyo VyfItlZKYvS8hZIghbXJ6scX085q3jXsTPS/IcCkGwvr5PT+O1JMqxPiAxOkZGcvv9md GF0dVeH1iNqvXVyKYlTzouPTnQgtbGqYdKe98= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=q4EC5hEm8KrtPAdtrlfLWYj7biKnJdAbCRH4TVorbTc=; b=A2AehB8JuBp2PVdRad8mPKfc4OwsM8Q+z1CjAO+//WZ8vLaQXJL67FkXbAgb4XGMBo gJOkuq0Wm4HBXr5IiYfZ43xbhPkMqUrnB6RlnTpaYejFEPA2C7vp8uuyQH3r1jxG+0lS eQPqoFSIK/mNZsj2/1tZCIuAQ2HkftlRRJBhZbYxrssRCqe38vgSeNwey0lXvmkigt0w 2OhBMKijCNJb5DR6AmcrmuVi4LuMFo3uYhXzalmm/5PnHOr9uYrkJvkj+dKQC1iV8sBy nBiQ3Rdsbo59pEhRoLCPCouJCX7TOzg1SSiCaNDZsDfL/dIdHBtrKl3TOY9clCmV8BBR +S+A== X-Gm-Message-State: AOAM530RLaUEg7T5lntrGp5HT1pxBgnA6EMysbQPf0SCDM6IVP2y8mWa t/SGDXhfT0z6ofOhtWPrJwWJ3g== X-Received: by 2002:a1c:4e05:: with SMTP id g5mr11154183wmh.162.1602511843895; Mon, 12 Oct 2020 07:10:43 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id u15sm24674205wrm.77.2020.10.12.07.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2020 07:10:43 -0700 (PDT) Date: Mon, 12 Oct 2020 16:10:41 +0200 From: Daniel Vetter To: Paul Cercueil Cc: Stephen Rothwell , Daniel Vetter , Sam Ravnborg , Intel Graphics , DRI , Linux Kernel Mailing List , linux-next@vger.kernel.org Subject: Re: [PATCH] drm/ingenic: Fix bad revert Message-ID: <20201012141041.GU438822@phenom.ffwll.local> Mail-Followup-To: Paul Cercueil , Stephen Rothwell , Sam Ravnborg , Intel Graphics , DRI , Linux Kernel Mailing List , linux-next@vger.kernel.org References: <20201012152452.432c4867@canb.auug.org.au> <20201012102509.10690-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201012102509.10690-1-paul@crapouillou.net> X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 12, 2020 at 12:25:09PM +0200, Paul Cercueil wrote: > Fix a badly reverted commit. The revert commit was cherry-picked from > drm-misc-next to drm-misc-next-fixes, and in the process some unrelated > code was added. > > Fixes: a3fb64c00d44 "Revert "gpu/drm: ingenic: Add option to mmap GEM buffers cached"" > Signed-off-by: Paul Cercueil Acked-by: Daniel Vetter And yes if you use git cherry-pick it'll do a 3 way merge, and occasionally it's very tricky to resolve that properly. Especially when you're not used to it. What I tend to do to double check cerry-picks is git show both commits, and compare the entire diff line-by-line to make sure I didn't misplace anything. Another trick is to use the raw patch instead of cherry-pick, since that won't do a 3 way merge where you might get confused with other context and fun stuff like that. Cheers, Daniel > --- > drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 16 ---------------- > 1 file changed, 16 deletions(-) > > diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > index 1be1235bd546..a3d1617d7c67 100644 > --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > @@ -440,20 +440,6 @@ void ingenic_drm_plane_config(struct device *dev, > } > } > > -static void ingenic_drm_update_palette(struct ingenic_drm *priv, > - const struct drm_color_lut *lut) > -{ > - unsigned int i; > - > - for (i = 0; i < ARRAY_SIZE(priv->dma_hwdescs->palette); i++) { > - u16 color = drm_color_lut_extract(lut[i].red, 5) << 11 > - | drm_color_lut_extract(lut[i].green, 6) << 5 > - | drm_color_lut_extract(lut[i].blue, 5); > - > - priv->dma_hwdescs->palette[i] = color; > - } > -} > - > static void ingenic_drm_plane_atomic_update(struct drm_plane *plane, > struct drm_plane_state *oldstate) > { > @@ -464,8 +450,6 @@ static void ingenic_drm_plane_atomic_update(struct drm_plane *plane, > dma_addr_t addr; > > if (state && state->fb) { > - crtc_state = state->crtc->state; > - > addr = drm_fb_cma_get_gem_addr(state->fb, state, 0); > width = state->src_w >> 16; > height = state->src_h >> 16; > -- > 2.28.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch