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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 041F2C63797 for ; Tue, 17 Jan 2023 14:33:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CD7FC10E465; Tue, 17 Jan 2023 14:33:31 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id A6E0F10E465; Tue, 17 Jan 2023 14:33:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3QfDwCtLh51/HmBdOrDTNlWrG1REaIyXbumFMViGP8A=; b=Vsiak0fKVLFW0eLysEgmVX2ugr fyKWMAEY468AP7Ecbyl5MvBbyq3qHSXqEzjQpwX79VNMBJkgkZeDe0VJaalpKx26gFKyqUKSycuIm bXxUQlHni5/s8PXvd4MkAEDImneeT17K3ybPMsPTwNS+dsFvzrjBHc79NHjgZP5hfjNKKLCQiHQUi l8dOquZ82RxdJcq5//HxphsKPltsUXkWOHkfrCCRpBgDpjaSSq6dNy1Ezz5yKh19g+s5uqTOP6QQV 7JNYcOBnmkQwIfCrcRDRuDOkew11Y6i5PXi7SGsNWzJFpl3Zp0s8v44FMVcVoR15Ry8zrLCNB+UyC Darvyk0w==; Received: from [187.56.70.205] (helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1pHn1i-00AgHC-G0; Tue, 17 Jan 2023 15:33:26 +0100 Message-ID: <16d17ee0-bda7-af95-b148-df5ce649336f@igalia.com> Date: Tue, 17 Jan 2023 11:33:20 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 3/3] drm/amdgpu/vcn: Add parameter to force (en/dis)abling indirect SRAM mode Content-Language: en-US To: "Limonciello, Mario" , Alex Deucher , "Liu, Leo" References: <20230116212004.860968-1-gpiccoli@igalia.com> <20230116212004.860968-3-gpiccoli@igalia.com> <968afa8d-d402-311f-cf14-fd2dd27bf385@amd.com> From: "Guilherme G. Piccoli" In-Reply-To: <968afa8d-d402-311f-cf14-fd2dd27bf385@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Lazar, Lijo" , "kernel@gpiccoli.net" , "Pan, Xinhui" , "dri-devel@lists.freedesktop.org" , "Jiang, Sonny" , "amd-gfx@lists.freedesktop.org" , "kernel-dev@igalia.com" , "Deucher, Alexander" , "Zhu, James" , "Koenig, Christian" , Pierre-Loup Griffais Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 16/01/2023 23:33, Limonciello, Mario wrote: > [...] > > For debugging these type of problems, I think an effective debugging > tactic would have been to mask the IP block (amdgpu.ip_block_mask). Thank you, it worked indeed - nice suggestion! Though I see two problems with that: first, I'm not sure what's the impact in the GPU functioning when I disable some IP block. Second, the parameter is a bit hard to figure - we need to clear a bit for the IP block we want to disable, and the doc suggest to read on dmesg to get this information (it seems it changes depending on the HW model), but I couldn't parse the proper bit from dmesg. Needed to instrument the kernel to find the proper bit heh The second part is easy to improve (we can just show this bit in dmesg!), I might do that instead of proposing this parameter, which seems didn't raise much excitement after all heheh Finally, I'm still curious on why Deck was working fine with the indirect SRAM mode disabled (by mistake) in many kernels - was it in practice the same as disabling the VCN IP block? Thanks, Guilherme