Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp164408pxb; Wed, 3 Feb 2021 02:23:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJy982ZijJc0fQB8fvawXmF1SNYKkHAxldrZqUfJCye90PRj3b55w4p1CYDylUUJG6F3gx07 X-Received: by 2002:a17:906:36cc:: with SMTP id b12mr380317ejc.323.1612347820625; Wed, 03 Feb 2021 02:23:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612347820; cv=none; d=google.com; s=arc-20160816; b=fZUjxzs0/bir8FOlMjjqAwKbdkMQt1gXamChRGXoqMdLiqPleLSFnbVYPrhb8YGujy /wUaVmD0NuRzZ7HAkAukS9En7T0aTk8gTRKrxk7oceVcn8oDzVGyjosdj6sRZ+Ca8Lfw k0EIBQxkFWh8Ch+miTbIH8TeU1f063WJORGtvrIivYu5QN8JGGsDGNknITj0OD+VTYkl ODdv1WIGtzmZKTaaJ8llLLpb1k7yo86dW4Vewhq/Wz6Dt4RGcmPl4QKbWEmzj+QonlCX eyS26TEAlrbCRvcgdTYiMbA47G9DuGkYjERau2TvDjuxBkQMlC1Eyb18lrgyluVMOiGO vRRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=eBL0k+LpyT56YucoRgczDy054MnouM/8U6cLTD33WLk=; b=wskCvuv/F8cTiRMz/uqBsiat7RNuvPHX3XibfynB5a3aY+jIMFpMeinJiQ+PwsjLPk s2gca3HF1qNB6Cb/pWdRxHq8E5p6LwWlOLg3OBzwCgupC9wRQ0no+gljnaLhu9sblabg UKQ7CEWH9k1gcUexXHnbDF3nCuOdP2UjWJd4eEoRFk0t3z7gWUe/bdrHgC470PYmUIZz OBO7KFJbikk7iyHhD+jzIcSprf/KMB7Gv6JbRWwrWUbG44KocZlZ2wUvKUbVtbT35pdH Q4aLW4Ee7bGbkKj4gsznAjHDM45jSa5L2rv/FfprY8lfHGpo++Q9ziWdWLjmQOpu3SqU dq3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si1007041ejc.561.2021.02.03.02.23.16; Wed, 03 Feb 2021 02:23:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233653AbhBCKUE (ORCPT + 99 others); Wed, 3 Feb 2021 05:20:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233488AbhBCKUA (ORCPT ); Wed, 3 Feb 2021 05:20:00 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5EE2C061573; Wed, 3 Feb 2021 02:19:19 -0800 (PST) Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:b93f:9fae:b276:a89a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id D17DB1F452BC; Wed, 3 Feb 2021 10:19:17 +0000 (GMT) Date: Wed, 3 Feb 2021 11:19:14 +0100 From: Boris Brezillon To: Manivannan Sadhasivam Cc: Miquel Raynal , richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org Subject: Re: [PATCH] mtd: rawnand: Do not check for bad block if bbt is unavailable Message-ID: <20210203111914.1c2f68f6@collabora.com> In-Reply-To: References: <20210130035412.6456-1-manivannan.sadhasivam@linaro.org> <20210201151824.5a9dca4a@xps13> <20210202041614.GA840@work> <20210202091459.0c41a769@xps13> <20210203110522.12f2b326@xps13> Organization: Collabora X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 03 Feb 2021 15:42:02 +0530 Manivannan Sadhasivam wrote: > >> > >> I got more information from the vendor, Telit. The access to the 3rd > >partition is protected by Trustzone and any access in non privileged > >mode (where Linux kernel runs) causes kernel panic and the device > >reboots. Out of curiosity, is it a per-CS-line thing or is this section protected on all CS? > > > >Ok, so this is not a chip feature but more a host constraint. > > > >In this case it would be a good idea to add a host DT property which > >describes the zone to avoid accessing it. Something like: > > > > secure-area/secure-section = ; > > > >From the core perspective, we should parse this property early enough > >and return -EIO when trying to access this area. FWIW, I'm not sure making it part of the core is a good idea, at least not until we have a different platform with a same needs. The controller driver can parse it and return -EACCESS (or -EIO) when this section is accessed.