Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp378666lqp; Tue, 11 Jun 2024 07:15:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSdyBImlJAyeVEDsDjWXfydsKFCWTjCytyDTgd2gmfvcRNHiDPbQnmjawFA4aB/XT9v6zRQXCgMTb/9EadOLJUT04biEaIQba90RFGCA== X-Google-Smtp-Source: AGHT+IGB/LICU6CqPJaiSPqYh4sbgfvFhYn9EP0AGjWnnWmOLOa2JeP/Xp8hy5pxBuiA/06XfX4X X-Received: by 2002:a17:906:e1b:b0:a6d:e0dd:f7 with SMTP id a640c23a62f3a-a6de0dd0399mr669347166b.52.1718115312487; Tue, 11 Jun 2024 07:15:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718115312; cv=pass; d=google.com; s=arc-20160816; b=bNypQ4M0HnD+7YIESf6JlLxDQbshlaGofNWqIZqqs7OHLWHiOwuxltQYcl90dQqhU/ e8vMs9prDpjymMGAValHz9KGPu7MCO5TbwyvGaavUTz3TE/RAotPUHJKcVvMfetabzFR zCgi6GH7NEBdftjeaAD0rl4kuGNao3SKhdsI8yO2m7+0/VeGHQYyCtdOjelmyinQzh/E OTDwA9VU0qGqbZJg5wQaQbMcEdwHB07RFR30+jmkowkUvCmhfkZH2FymfwKEJfbbAClk dGO7xi5192NkHyXCm2a84IVxWThS6+kZ7oi+hxNcP+VG4Y3IG8Gl8BUMwfvXCKkn5vwR XEQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=3VgPl/itaoc5fiTSyiAl8pS7Rls4dGZtxJjICqhCy2U=; fh=ym/cNGSoPT0aOGaz48JnV0EbkaR5ho2OdkFi5XQ2r90=; b=NsigCzJIKA4NnNOQekJyl0a2X5FMH7OthRSCSH+CUVuChsoWdhOJw3U7WX/fja5OM6 +70DmY0HqItM9AIYr25xWxA+3mcHWiaSR+gph7dGQDpB+hV6Xw3LfjAQCmcLtj/cb54C oBg6flfFZ1yhLiDHXPtS6RzAXpPhwh995je30f4EUlQz0YBlzUea3TriqSDxBz6vQ9HC HQw7qYfrKs1b8haaqwE4wDco8JlkrCb9WrWo+zsma4rXflSpNfV11r76agPBZ39lJbnm q2S8NXaV/I+rTg62IYk+bGf9I902yuQk0+7FD72R3yINw5GD/x8p3AUJ2F0ElWjLcw25 00tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-210047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210047-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c807484b7si567046266b.915.2024.06.11.07.15.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:15:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-210047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210047-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2F5171F21CCF for ; Tue, 11 Jun 2024 14:15:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17F2217D8AC; Tue, 11 Jun 2024 14:14:56 +0000 (UTC) Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FC621DDF4; Tue, 11 Jun 2024 14:14:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718115295; cv=none; b=FEK+/ayTHNL/jWlenb0XGcl7u/p9qwv8rbV8hoL9tPx9ZxERBVBoBP/Ckdjg5rQSgQzihEJJKmYYOKirGSibgYeg8I4Wsl8hWDeuduGIPVyXj87Qov/+UBgtQy3XszM/NQsJ48k8v5J7AL8hbk7NfkjqxctXUCayP0D6Hnjjy/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718115295; c=relaxed/simple; bh=wQbEJocG3DYWCV/bbjuTe2rWvWiRPGvtjmOpsxe4i7E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=N9vCELntNBJjYje6Z8dvBIcjgmUKTCo66euCjlRpgxTLmNE1SjW1ZN3wJ2WcpDajJJL7iif+zSxtVShxXhvw46h3qdlW3qqozQDGnFVRMx0lSxfQxuIfHVa9WENzmIxlAylFxbxBKjSGn7q6IBxpL+E3Lm22VtHZKgKT76Wg3Tc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1sH2Gu-00034I-00; Tue, 11 Jun 2024 16:14:48 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 54997C0411; Tue, 11 Jun 2024 16:12:57 +0200 (CEST) Date: Tue, 11 Jun 2024 16:12:57 +0200 From: Thomas Bogendoerfer To: Christian Marangi Cc: Hauke Mehrtens , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , =?iso-8859-1?Q?=C1lvaro_Fern=E1ndez?= Rojas , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 1/5] mips: bmips: BCM6358: make sure CBR is correctly set Message-ID: References: <20240611113538.9004-1-ansuelsmth@gmail.com> <20240611113538.9004-2-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240611113538.9004-2-ansuelsmth@gmail.com> On Tue, Jun 11, 2024 at 01:35:33PM +0200, Christian Marangi wrote: > It was discovered that some device have CBR address set to 0 causing > kernel panic when arch_sync_dma_for_cpu_all is called. > > This was notice in situation where the system is booted from TP1 and > BMIPS_GET_CBR() returns 0 instead of a valid address and > !!(read_c0_brcm_cmt_local() & (1 << 31)); not failing. > > The current check whether RAC flush should be disabled or not are not > enough hence lets check if CBR is a valid address or not. > > Fixes: ab327f8acdf8 ("mips: bmips: BCM6358: disable RAC flush for TP1") > Signed-off-by: Christian Marangi > Acked-by: Florian Fainelli > --- > arch/mips/bmips/setup.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]