Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3954852rdh; Tue, 28 Nov 2023 08:04:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqwTBa4ycAIt8XSy2wJw2EiIUcZDD7lbU/eGC+hvUoZeuaremsKvyMciSp6/mbKfgEWRJ6 X-Received: by 2002:a17:90b:1d09:b0:281:d84:a97e with SMTP id on9-20020a17090b1d0900b002810d84a97emr22038763pjb.2.1701187469240; Tue, 28 Nov 2023 08:04:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701187469; cv=none; d=google.com; s=arc-20160816; b=VF/XD8hBCF2Iw3yi27o/fG+5bx9v/SeN2yVGEWX09DMagI41U1IUXOZCHoUwo5C7Sc ueg/YZ40bJ9dNWEm1gyIAPbNQ5RGZsMmXaGYsQHoqjGIH6kceGK2WzllNQC3n3ExOjZN T9II5fQNnTG2sA1eAno3VSYSmH/paFDzGvynL+wzITtIAZ7jsd5LrAXSaHMu2Y7tvfqE yVU0nUqjsdHONaqXUKyQFpQXOLl0rkiSZBzHUxVCLUJBQm079/XD1jut/v4T5jAELusi 5OwiqW8GdsyKx3ThttGMOBEiovTrV6Q/6YMLhQ4xiCnDI1gBQvVak8Ee50hQjrYmGXdP jI8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eBET9G2bCaKagPynknSarM0Xj1wEnoFY3gIdPhKqZ3M=; fh=ZvP53582EHdziwXZ4xC+dwqtJPrVef5EooZ01NU2hTU=; b=Pu3j5QFEWUG00ASEpPNhxQ0GzP6SWCWYGb/rv7erdnLFBceV61vcIu0i9xHLZe19f9 nNwtFMlFqxjp1HfjwPahWdk+XCcn4LYIwJnz0zaqOw6p76+Xo/mHUCnhBRo+2+Kj4+3B qg0nfO7hFABSaaJK6jWK6kbgrLW+spqEo74ZrnIVNXzr3COH1eqa8L8O6cJJj8kZpfE1 wcNQDsuQFhYtzGs0z+bIbjlLFZwu7QfGMBNGOReAWQfN0OMcJ4zhpiuZpHk7MTTwMuXE Ip/YQ8AVQkI+Kbn7bc1C7iTcRvOqT8KTmgl8xAvnsWZvkObR3QrbPobR7rCom9A9zSR7 MOOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YrbHLVG3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id t7-20020a17090aba8700b00285fd6f078asi1386232pjr.142.2023.11.28.08.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 08:04:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YrbHLVG3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9F9A28059D82; Tue, 28 Nov 2023 08:04:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344741AbjK1QEH (ORCPT + 99 others); Tue, 28 Nov 2023 11:04:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbjK1QEG (ORCPT ); Tue, 28 Nov 2023 11:04:06 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFAE41BC; Tue, 28 Nov 2023 08:04:12 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ASDdhdK023933; Tue, 28 Nov 2023 16:03:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=eBET9G2bCaKagPynknSarM0Xj1wEnoFY3gIdPhKqZ3M=; b=YrbHLVG3bniSciK9Ii8KPcKTKqc0TCJ6wP8aKMdeUmKI9S0KVckUZ8D1LArJ/DOc4H/i clP9zcoXGMESuuKV7w4+LqH9+b+wbREWtz/nkumoBYMYs78EM0Qw2MXlZcpv5hmBJ9Qr 46UW36oUgM8F7r5YvXkiHharr/45HLHqC75Xt4dc90RkYHfmLwEcq9NhpeoZnQT9Dhwt 2vr9yS2l4HrMw4Ls0dLP2ppafcd+dxm8v+HGSm6gglp9btcZdtkFDlCObrLWfrSF67c8 Y8/evBXuwNb2mFYc5jVUdfclPfVk3YMTqtVkCDb9yTS+knHc+Q9WJ9lyoSJFFnNKOwr4 1A== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3undc5976m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Nov 2023 16:03:45 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3ASG3ikU009014 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Nov 2023 16:03:44 GMT Received: from hu-pkondeti-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 28 Nov 2023 08:03:33 -0800 Date: Tue, 28 Nov 2023 21:33:30 +0530 From: Pavan Kondeti To: Mukesh Ojha CC: Pavan Kondeti , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [Patch v6 10/12] pstore/ram: Add dynamic ramoops region support through commandline Message-ID: <9d8911dd-408a-4d78-b3d1-c5ee23dbf3fc@quicinc.com> References: <1700864395-1479-1-git-send-email-quic_mojha@quicinc.com> <1700864395-1479-11-git-send-email-quic_mojha@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: NJx0-Qc6aJzPGSPq5GgnwW0hoiOg-yyA X-Proofpoint-ORIG-GUID: NJx0-Qc6aJzPGSPq5GgnwW0hoiOg-yyA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-28_18,2023-11-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 spamscore=0 priorityscore=1501 mlxlogscore=914 mlxscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311280128 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 28 Nov 2023 08:04:21 -0800 (PST) On Tue, Nov 28, 2023 at 04:02:33PM +0530, Mukesh Ojha wrote: > > > static int ramoops_pstore_open(struct pstore_info *psi) > > > { > > > @@ -915,14 +965,18 @@ static void __init ramoops_register_dummy(void) > > > /* > > > * Prepare a dummy platform data structure to carry the module > > > - * parameters. If mem_size isn't set, then there are no module > > > - * parameters, and we can skip this. > > > + * parameters. If mem_size isn't set, check for dynamic ramoops > > > + * size and use if it is set. > > > */ > > > - if (!mem_size) > > > + if (!mem_size && !dyn_ramoops_size) > > > return; > > > > If mem_size and dyn_ramoops_size are set, you are taking > > dyn_ramoops_size precedence here. The comment is a bit confusing, pls > > review it once. > > Ideally, both should not be set and there will always be > confusion. > > Do you think, if we use mem_size a single variable both for earlier > and dynamic ramoops where based on dyn_ramoops_size=true/on a boolean > it will take dynamic ramoops path and if not mentioned it will take older > path. > Sounds like a good idea to me. You would need a callback for mem_size module param handling. Because dyn_ramoops can be passed before mem_size parameter. Also, we can't make pstore ram as module i.e decoupling dynamic ramoops from pstore ram module. Thanks, Pavan