Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp344963lqp; Tue, 11 Jun 2024 06:27:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQS0u0L7J9uzq45icg6V6Z1QfVM9TcdzNlBuNE8B+Me9Owol0T1irBajyzCLgHxiG90S10BUFPtwDXYZvytrnCxo5zMMOK0rGp+4+QLw== X-Google-Smtp-Source: AGHT+IFk8AkxvQKQeAHcAsnOKH1Gmz2UNYeC43rXN2f/6qcKkUcJfiVtciS0di98yndZM7rDSQEf X-Received: by 2002:a05:6a00:810:b0:705:ac8a:db0d with SMTP id d2e1a72fcca58-705ac8add78mr2061111b3a.22.1718112438827; Tue, 11 Jun 2024 06:27:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718112438; cv=pass; d=google.com; s=arc-20160816; b=b1egJgXAzAQ1dA2vNg4rh1j6G+KUQLUx1FbIJuMHh57gdrMjvcZHkSy+xU6NueYxPV ZZYm2npiASgNLXAwrd+oue/hHqofSVkTUR/uaR3vt6iCWxqka58wME6NXc2e+nQp4uMr /08t08ET43ixZq46MXOlCDwQGCHBnDUxKkPZ2MoID1zmED84S9ZIsL+FHZu9tOP90eVO 2240sovsavmlYV0HNPveQWJilvYhsytch9CrEHfIYFw9AnwUjfzNjz0GASa49p3c/SBt XOLxGvcKGK3VgGWbSCPltNU8x/HEgIKq3Wv5aO88PczbAQtfiKxbsS+bXDXxTB8LRtbx MzdQ== 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=s0eXBSGkHTS+o2x72MEezS2SiReF8n3GiOP9hD1VeAc=; fh=ym/cNGSoPT0aOGaz48JnV0EbkaR5ho2OdkFi5XQ2r90=; b=hnxLqwrPyx6tbtPBa2UA9joFPtuQuOygMAyvSbCnBXp+V/V9rcDeyaz45MJCQZ6TFZ hBtlV4UzD4TrWFtdsabR6Pmw3+K44n9hfLmQQOgxisJY+5Yy7pVFJaR+Hxjo2uviaAPS /cvS4j0Wz/GhvuwV1lUHkH/Dk0GXBHVg35rndXA/FGbrYUXPZU83KW9Wb7QnoCqVmI3X h/yD4ZBYOUsu1YCBoRDeeOcAxn+jH87+T+f4GgbbNrPMyvzUFNL6lOismzMLD3o2ORcj BaNYnq6kgomRGUV8WI7YY58RvT+7N4E4WX3vR+bbsEnq8jmgFZdr5c+6RmxctDEr9AWb YAUA==; 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-209919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209919-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-7041853231asi5327161b3a.224.2024.06.11.06.27.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 06:27:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-209919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209919-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CE51FB211AD for ; Tue, 11 Jun 2024 13:18:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 955CD17C9E8; Tue, 11 Jun 2024 13:18:00 +0000 (UTC) Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BDDD17BB35; Tue, 11 Jun 2024 13:17:56 +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=1718111880; cv=none; b=CrtpvHRZiuyrC8O0uGIf5jywUhU9OEtsQzNGmgxYwKaWD1mIUTVVEr3cCo35WcEAGmc2Z/byzJ4+AczaCB/K51fieo4ivtJxSkrRi6n7n9KmZ0EZcSHwq4zZ7gDIZBIC9ZjIFY8RadMd7n9NPxBXjpL9d6rSk+qvx+C07vc8JTI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718111880; c=relaxed/simple; bh=CMvPaJMNzqJ2ABA/65OndPTd+VEs+PSjVlrkxkmztoc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HMlDyESiQoGppaN8YRUC0Tz+wAPRSFn3Lkym8lJAzlD3uKGad1qR++p3glj8QRNwfj8x9V7F6xGxc+WrybmvpacZzbcjPdyhGhe2qiOhsLhMr407FsNfUBqEsWznmSr8jb+fSkTJ3FDOsZtZyABRQLECJYVylfmkybMBOQb8w5c= 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 1sH1NZ-0002ZW-00; Tue, 11 Jun 2024 15:17:37 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id DC806C0120; Tue, 11 Jun 2024 14:49:07 +0200 (CEST) Date: Tue, 11 Jun 2024 14:49:07 +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") should I apply it to mips-fixes ? If not could you just ammend it with the following patch, where this is changed again ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]