Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp373601lqp; Tue, 11 Jun 2024 07:08:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWC60o/Fh9+WzHX7hhVwerM4k1IzhGHGVsFOxK/lkDAddRIA0RLYNE0SLBSHjP1E/n17zoCwUlD02RLLEHsrvpuCEa5fHlStFBgHllVtw== X-Google-Smtp-Source: AGHT+IGnaF6MD5Reytrw2cgcWeJnflcizPseSv2lllIgB0dRL0vOyYKkuhd8C9d/F1CY4U7SppMg X-Received: by 2002:a50:f695:0:b0:57c:71ca:f651 with SMTP id 4fb4d7f45d1cf-57c71caf6d2mr6765418a12.20.1718114922735; Tue, 11 Jun 2024 07:08:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718114922; cv=pass; d=google.com; s=arc-20160816; b=bPnVSX6Xcrax4NrZzWotCnnsOEeElwk/LqP9GedpJa/2sWKiv5tAXpiPh1swGx+h7G AuNGKq+1fD2tNfER45f9Rx13RgyONqMy8saAmAFNWLu0+IFfYCbK5DgESdzy1Kz98Lta yAnfo9sgdA8IOQzatVMk9c5pMHWUnV4RRRiVm/YJ1GRSZuESSMBwxmpuMENb1eW5C4El b7gEU1G9I9AJrUVH9iX23KMIJ/G3DT0HTM9Wl74JLhx8Bj2egHHK0355r2Tpd8xXpL6L LBWWtVj5H3U1E4B++WhMOpXSBlkLM4ge98ibs5gP+P+9af6qisXLhzWzdZft9iW/bPpF /7CQ== 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=2s1xYnmwQJbi5EpFf4QRXEmf8HzbGuYpnTJnDeJrGgk=; fh=ym/cNGSoPT0aOGaz48JnV0EbkaR5ho2OdkFi5XQ2r90=; b=HYCjybjPAUF83LkDa7EocxFLOemwZOSQrm6/iIM3O6ZACdUZrsC/6s6hf8D4fdlAL6 biySBz5oNkODDmWaiQPjyx2CctShQdVfstpOAVc4XYwmY2wMxnyHxdXIRubPqxNKtjnb qRh2+zerCFGyFh5cL4yJwwaC+D0+Nat8Uf9lve6Zo/LzRK7qgqGAeSDdk0e0CBYxCRPZ 0mKVocUEaQt7y0JsmTZXyNZBOSflDf6xF4zXzfGTszSKTTWDXaMu0wK2bImJOh8ZJ4nD LFMweiv100im2sH+6G8bxv1s7ougAsm5Bx9Ii6i+VnHkhAVPMP4h44G0w/Ku8wV7n2KJ NpxQ==; 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-210036-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210036-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 4fb4d7f45d1cf-57c736e6bdesi3125786a12.529.2024.06.11.07.08.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:08:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210036-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-210036-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210036-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 CF91F1F23B50 for ; Tue, 11 Jun 2024 14:08:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC91F17D88B; Tue, 11 Jun 2024 14:08:03 +0000 (UTC) Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DF441DDF4; Tue, 11 Jun 2024 14:07:59 +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=1718114883; cv=none; b=dlJyHpIi+D5JoZfz4UpsngodjF3wnkKS/Cq3rYkN6WnIJg/z1n5dGfw6r7g1Vgz4+31sGOM9zsU74/ZpEUYegWlhahq/zIK38Esd8Rrxmh41Xs7U4oJGtc5G01w6QJTtnFWzd+822mBjwA0RfRXZuKlYhRwY/TRP2rNQCY1xEtU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718114883; c=relaxed/simple; bh=v75fYsSUIgFo9A9XwziCLVc5Lj+NmGuKOUWo8pr3H+Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h2xJedNPMBroNVDHTC2RerPG7/Zi7Vjl4x+Lk0maEg2jW2VL4qahr5zev5baow93tLgs7i5UBpkm3vdGpEOZaCbVehP/CP7yDiEbPT2yEEPoEq9tewvA3TcyZ0ZPHfYOx5wtH4LqZEcsay/FGz5EDrY4WqxzKO3+uX+vbfniByo= 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 1sH2AG-00031H-00; Tue, 11 Jun 2024 16:07:56 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 087DAC031A; Tue, 11 Jun 2024 16:03:41 +0200 (CEST) Date: Tue, 11 Jun 2024 16:03:41 +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> <6668503a.050a0220.9ec4a.4777@mx.google.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: <6668503a.050a0220.9ec4a.4777@mx.google.com> On Tue, Jun 11, 2024 at 03:04:36PM +0200, Christian Marangi wrote: > On Tue, Jun 11, 2024 at 02:49:07PM +0200, Thomas Bogendoerfer wrote: > > 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 ? > > > > Ideally this should be backported to stable kernel since it does cause > kernel panic. This is why it's split and it's the first patch of the > series. ok, I'll apply it to mips-fixes then. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]