Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp953697rwl; Thu, 5 Jan 2023 06:54:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXsg8NQE0O9vt0kNg5kP6XqBAMOskPL2irvDFI8GLlF8HjdC3ukTO34T8fGR16yE/huKq8Qw X-Received: by 2002:a17:907:6d12:b0:7c1:79f5:9545 with SMTP id sa18-20020a1709076d1200b007c179f59545mr63290560ejc.42.1672930479955; Thu, 05 Jan 2023 06:54:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672930479; cv=none; d=google.com; s=arc-20160816; b=sEtXjuQxV3t9FP3PsflHSxG1aytYGuYoTX4DufZpi7DNb1oc0iLpq8hJYN5B7CCDuT Vk1SRjub6Tu0kZEF6zidVipihWTzoD23mk36RO6oL0etN6awAAJ9eKfo2s0D0UWS0BAb rupbKegkpYhi8K79mbiew6rtJLjt7GrYSR4aVm3q59nHyhps+MVdISMoBegMWrs7SiXu QBE+GW731i7ISFSnS+JXWSz/P7LiBL8nkvkESo8rbJSLlX0QUnORq9Bua5eOsz5r99kF /YC+LAcBs/92waQPBlOV6HLioIzR55xcjtAxLCL251CyKpuBqiRuNunzq0SeZZ4JhbUg Fklg== 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=yPQLhJfGS4U3xEltVHsl7WvTSNQNkZrTzl5+OBE7NGc=; b=lAN8+3I549TwmGubbgs23FTfmMYgLVtFyAJeWCkwbaBj5iEtzresD8vnh3m3o9TnXr sh37sqcThRZehcyXspM0CaZeGjF0V2RJUTkEjpj5uLVrHHL33fObGwhDCCjIOZFwti4N 8Lx7NGldZXofYQOLB5P+56xNUAHoWkm7ZWJVjyPv/wyf59hWBX+VLyQvh+urU0k8k85S 9+d5ZdrIf0vlgeeUXW/7njPNP8ONtEkzTQDCquQ4D3doH0dcPkP6bnyUD8wI3fZPfgxl /9q851PCS4rM8gStujRKQUXo8gfH+F98bizWEEDbff6mCJUwJKLKmUQ3+FkHiXawsXZ7 T8ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=j+fWJTtY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hu8-20020a170907a08800b0084cd9dba340si7945629ejc.962.2023.01.05.06.54.26; Thu, 05 Jan 2023 06:54:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=j+fWJTtY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231876AbjAEOuw (ORCPT + 55 others); Thu, 5 Jan 2023 09:50:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233954AbjAEOuF (ORCPT ); Thu, 5 Jan 2023 09:50:05 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0BF85A8B5 for ; Thu, 5 Jan 2023 06:50:03 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id z8-20020a05600c220800b003d33b0bda11so2572653wml.0 for ; Thu, 05 Jan 2023 06:50:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=yPQLhJfGS4U3xEltVHsl7WvTSNQNkZrTzl5+OBE7NGc=; b=j+fWJTtYWJmBkURH22XHoXCrWFWpvPBR4u/ZSno2OQUTuv0dZ1MjzTZFJ8qX2tpOSd ytXnc66NNDsgiMVBbnCUMQ5t72DIz/dJPIOwLwnlcvuQwYVd/Kn6D497fPuoyI/ForIK MZir7e4pn9R+Kcfwfg64TaUSIgfAgZfabo5Xs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yPQLhJfGS4U3xEltVHsl7WvTSNQNkZrTzl5+OBE7NGc=; b=Bt+bwqRy8g4dWU1wh8W5lkJ8dbjTNrriUQ01GRd/XKA2y5nI17wEBK8/fwT85Ow14e 2wEUNKeL4Af2msnxdKV4DrbrBGBIxHrMxoBwXrsYj+CXR71QgfNpij58Gz8Kr+z9XfUs Le1Xks/+SlVtNNJvwEGbsRaP3wGfKZtyjhnvoQvwY7v/CsqALEoa3gpdO12uvtpQW9pJ 03Y9w869ssONZtbnwjo/HbuKIpvHR9+l3xRNRw221nM9y/RFKqJ7kgejZsNuf6tg30R4 0cS/YLYMsRRPDpOjLa6a9UA3Fnpqu/XiaCMj8Db7heqsguv89d2kOUsQfMTOE/v9tEoH a8tA== X-Gm-Message-State: AFqh2kqzC8X/yOnfIFNSZHAfSsDQUA1Zj9VakJ702A8r9qmQuhtEwt68 vrpWHH9cTc3zKSfFexDQVT0sKg== X-Received: by 2002:a05:600c:224b:b0:3cf:ae53:b1e0 with SMTP id a11-20020a05600c224b00b003cfae53b1e0mr37245642wmm.9.1672930202353; Thu, 05 Jan 2023 06:50:02 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id z6-20020a05600c0a0600b003d96efd09b7sm3206401wmp.19.2023.01.05.06.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 06:50:01 -0800 (PST) Date: Thu, 5 Jan 2023 15:49:58 +0100 From: Daniel Vetter To: Marijn Suijten Cc: phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Vinod Koul , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Sean Paul , David Airlie , Daniel Vetter , Stephen Boyd , Bjorn Andersson , Jessica Zhang , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Kuogee Hsieh , Jani Nikula , sunliming , Sam Ravnborg , Haowen Bai , Konrad Dybcio , Loic Poulain , Vinod Polimera , Douglas Anderson , Vladimir Lypak , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/8] drm/msm: DSC Electric Boogaloo for sm8[12]50 Message-ID: Mail-Followup-To: Marijn Suijten , phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Vinod Koul , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Sean Paul , David Airlie , Stephen Boyd , Bjorn Andersson , Jessica Zhang , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Kuogee Hsieh , Jani Nikula , sunliming , Sam Ravnborg , Haowen Bai , Konrad Dybcio , Loic Poulain , Vinod Polimera , Douglas Anderson , Vladimir Lypak , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20221221231943.1961117-1-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221221231943.1961117-1-marijn.suijten@somainline.org> X-Operating-System: Linux phenom 5.19.0-2-amd64 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 22, 2022 at 12:19:35AM +0100, Marijn Suijten wrote: > This preliminary Display Stream Compression support package for > (initially tested on) sm8[12]50 is based on comparing DSC behaviour > between downstream and mainline. Some new callbacks are added (for > binding blocks on active CTLs), logic bugs are corrected, zeroed struct > members are now assigned proper values, and RM allocation and hw block > retrieval now hand out (or not) DSC blocks without causing null-pointer > dereferences. > > Unfortunately it is not yet enough to get rid of completely corrupted > display output on the boards I tested here: > - Sony Xperia 1 (sm8150), 1644x3840 or 1096x2560 pixels; > - Sony Xperia 5II (sm8250), 1080x2520, at 60 or 120Hz; > - (can include more Xperia boards if desired) > > Both devices use the DUALPIPE_DSCMERGE topology downstream: dual LM, PP > and DSC, but only a single INTF/encoder/DSI-link. > > Hopefully this spawns some community/upstream interest to help rootcause > our corruption issues (after we open a drm/msm report on GitLab for more > appropriate tracking). > > The Sony Xperia XZ3 (sdm845) was fully tested and validated with this > series to not cause any regressions (and one of the math fixes now > allows us to change slice_count in the panel driver, which would corrupt > previously). > > Changes since v1: > > - Split patch 6 into two separately backportable Fixes: patches; > - Additionally remove num_enc from msm_display_topology in favour of > num_dsc; > - Reorder patches to have all Fixes: at the beginning for easier > picking; > - Fix existing multiline comment while editing it anyway; > - Add missing Signed-off-by to patch 5. Please note that Electric Boogaloo/Boogaloo Boys has been appropriated by US alt-right groups, and so is really not a great thing to put into the cover letter for your patch series. For the next round, please use a meme that isn't tarnished like this. Thanks, Daniel > > v1: https://lore.kernel.org/linux-arm-msm/20221213232207.113607-1-marijn.suijten@somainline.org/T/#u > > Marijn Suijten (8): > drm/msm/dpu: Wire up DSC mask for active CTL configuration > drm/msm/dsi: Use DSC slice(s) packet size to compute word count > drm/msm/dsi: Flip greater-than check for slice_count and > slice_per_intf > drm/msm/dpu: Disallow unallocated resources to be returned > drm/msm/dpu: Reject topologies for which no DSC blocks are available > drm/msm/dpu: Remove num_enc from topology struct in favour of num_dsc > drm/msm/dpu: Implement DSC binding to PP block for CTL V1 > drm/msm/dpu: Add DSC configuration for SM8150 and SM8250 > > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 12 +++++---- > .../drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 1 + > .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 1 + > .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 23 +++++++++++----- > .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 9 +++++++ > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 27 +++++++++++++++++++ > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.h | 4 +++ > drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 14 ++++++++-- > drivers/gpu/drm/msm/dsi/dsi_host.c | 7 ++--- > drivers/gpu/drm/msm/msm_drv.h | 2 -- > 10 files changed, 82 insertions(+), 18 deletions(-) > > -- > 2.39.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch