Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp460414iob; Wed, 18 May 2022 06:05:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/i86tx0UHJ0uPxJJrYI0VwWUqhJqxAkxj8fRa2EqktaR2dItWzkeQDkN7K5WV9v8nqVly X-Received: by 2002:a05:6a00:84e:b0:510:5fbc:7738 with SMTP id q14-20020a056a00084e00b005105fbc7738mr28087814pfk.86.1652879147833; Wed, 18 May 2022 06:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652879147; cv=none; d=google.com; s=arc-20160816; b=mAWgM17FJf+XGxqMmDXHSQDPkF68zR2SdeZOY7yF4nnIEkLpv68fSYNAnnVfpetAQA MT+vywznQTOKdqcxoiZO33t5PZEN5g/MmSgQqBWr8qtM7nOM3JnfIUigFrq+yA37rneP IJadLpW1fn5YNuVH96hx0yxjw9xZZ3FIdvdADGX4M55hzoD7vmx8dkPu5AZ+Ns/57UgX gW5p8RfEOuD22d7Hq4O8/lg4pBeS4U+lYiCL3rX/bSWjW42AayeeHvghmAK+jpFcIdWl RtBHrylhSFuld5gfQT/J5xLK92ST8QBNVIjJfO8Gj+54NnT7lVshyM/D+gw88Ub/FvnQ vseQ== 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=6rvVpjtewErevwtzxVWgKanKatH+lil9XQiGaNTaboY=; b=sPTikuogHQ8fqfTJrlwIDqItTX0GQMu4fKnaGj1AsVNaWkb0VWpe5NHfZVDCbJi6lX sBNElNYvthTE0xBA5FaGAVbkeRiPw0zvjg53wX6zLz9uBm2NbhhQkIeAd6Z7gbY2y4LN 2djK49D0ru77N9feIT+V15rNOD6qSpPvrlKnfIRpPDmF4jlMpU5NTitXR7TeRiq1XiPg aBhohHPJghl4eyWfVo6SaBJwnoyvfhzswmThoUwAelFQWLfTq/XFksBBv4z+d+KR1z1B Ipt1IgsbUwxKx9Q8Fbv7iQvzINQUjVklg0DjU78aOMn4q0dsUXn8UTXDGxphZ34YkXXV b2SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="ThnAz/oF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c16-20020a63d150000000b003820b4f8361si2737839pgj.182.2022.05.18.06.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 06:05:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="ThnAz/oF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0938D27D; Wed, 18 May 2022 06:00:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237473AbiERNAn (ORCPT + 99 others); Wed, 18 May 2022 09:00:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237425AbiERNAl (ORCPT ); Wed, 18 May 2022 09:00:41 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 512A01A6AE4; Wed, 18 May 2022 06:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=6rvVpjtewErevwtzxVWgKanKatH+lil9XQiGaNTaboY=; b=ThnAz/oFIZap4IArJner1pmcW3 6MJb8LhZ5nlzG/AhKU5YUmwufgHp2bWyyb94yxcxXrUBTN7Cl0dmA2z8CKpyzIK8v7TkyezC8WKNP p4BAlJjvwr25/AOq/K3pzMeuO66nCKb7HsqmmbeQtweeDVpo+my1JeYHtcVeuNXIzNV1wVA5LVb5o 6IoZcDm+xiE6JtFyotUMSu++E2VWulFO3SodIndd8ca0TPhnop8eZO2XeBJR+m96h41AWDR0iv+y0 ELyJaeXYcmM7NBeIeWyQVoyNbNex/DPS2tNs3gXLZ9tQfqQMbbiHixzQycBM9ELWJsqZeII6s0y3p CacIyhmg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nrJHs-002CUG-Vm; Wed, 18 May 2022 13:00:25 +0000 Date: Wed, 18 May 2022 06:00:24 -0700 From: Christoph Hellwig To: Vivek Kumar Cc: corbet@lwn.net, catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, maz@kernel.org, axboe@kernel.dk, rafael@kernel.org, akpm@linux-foundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-block@vger.kernel.org, linux-pm@vger.kernel.org, linux-mm@kvack.org, len.brown@intel.com, pavel@ucw.cz, paulmck@kernel.org, bp@suse.de, keescook@chromium.org, songmuchun@bytedance.com, rdunlap@infradead.org, damien.lemoal@opensource.wdc.com, pasha.tatashin@soleen.com, tabba@google.com, ardb@kernel.org, tsoni@quicinc.com, quic_psodagud@quicinc.com, quic_svaddagi@quicinc.com, Prasanna Kumar Subject: Re: [RFC 2/6] PM: Hibernate: Add option to disable disk offset randomization Message-ID: References: <1652860121-24092-1-git-send-email-quic_vivekuma@quicinc.com> <1652860121-24092-3-git-send-email-quic_vivekuma@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1652860121-24092-3-git-send-email-quic_vivekuma@quicinc.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 18, 2022 at 01:18:37PM +0530, Vivek Kumar wrote: > Add a kernel parameter to disable the disk offset randomization > for SSD devices in which such feature is available at the > firmware level. This is helpful in improving hibernation > resume time. This patch just adds a global variable which is then entirely igored. But the idea of "randomizing" offsets on SSDs sounds like complete BS to start with. The whole job of the SSD is to remap from a random writable block device to difference physical blocks to deal with erases and wear leveling. In other words it really doesn't matter what offset your write to. That being said I could not actually find any code that does this randomization to start with, but that might just be my lack of grep skills.