Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp708981pxm; Fri, 25 Feb 2022 17:55:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYnljGP9r3R2eMY8FgsYX6lIg4RM1g1qsXUyPk0x1bMkJ/osWNkmoCm+8mDF25f9cxyp5Z X-Received: by 2002:a17:902:c10d:b0:14f:f74e:eb97 with SMTP id 13-20020a170902c10d00b0014ff74eeb97mr10039306pli.99.1645840557021; Fri, 25 Feb 2022 17:55:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645840557; cv=none; d=google.com; s=arc-20160816; b=HwQbM5AyuCCABX8l7+a10Ti6vUFfHMrezunF/h3NHrcisKBzAdeDtBXw1QpgLsdp4w yWtvowHLEzG9Xzb3FL1+E+Zj3MAWAF8G2KPtyYzk/f+rA+A/XhkqIeBVSjeOCi2ScD6P MzC6FJMho/VtLbMdGi/I0gFxwaJnkGbmqLDcZd1M4mGj6R2c5PMgAizeYi0bruKf4nl6 uDxvGkrRexyff8g4syTJKx0ePTkmcoqd9+kfTdZLVRhafsyePhKAcPiIoCd0CBrdRjnO MbmIJkE60uOwMtx9KpQqmvnNsXGnSylhcYf4HCqje2n1hdlLn5JFvLUsJG+KJVsGwY3p jD/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2gZbc4TcaCZdLZxV1MMHprMxNzXnHBsUW/ffb0ZS4Zs=; b=u7v3t1QAErgO0mOU9+qb3u5o9aqdEbYpxV7qPL8fAe7AGi0ySO7K7ThCbV0Pnxn1Kf 0s+ErKkLNyNZoAlDiLI4IetjGrP83bkI3VX5dVTGh+yYbHsnBnqE7iFAkN4BT3P+AjMh 0Hh0BZqz7hxjjzuIcwVgMAGyvShQNaxKJjcauQ527USLL/geaYMmZ9NdBag6lVRnSXtN KxFFF1ZfpKzroBQizuzKRSR6KP625VvxXh7QQmnM6LZgakxTeHLcEWo29mFFhSWkNAz8 /jj6ubr+4q6FY9t4/e+EuF+u1GHmwZxlnZn43VYsORh45HEnGV94JKlkHE4iMy+fdBXm FvMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EREBB4Eo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q3-20020a170902c9c300b0014f0b903a8fsi3008232pld.187.2022.02.25.17.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:55:57 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EREBB4Eo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0DB1927D15E; Fri, 25 Feb 2022 17:39:41 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238262AbiBYVUE (ORCPT + 99 others); Fri, 25 Feb 2022 16:20:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236198AbiBYVT6 (ORCPT ); Fri, 25 Feb 2022 16:19:58 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 172EB1F0814 for ; Fri, 25 Feb 2022 13:19:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645823965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2gZbc4TcaCZdLZxV1MMHprMxNzXnHBsUW/ffb0ZS4Zs=; b=EREBB4Eo9FBIcnpei2wTg2zZhBWKo462t3093c4UWltb0k7vqvKnkfza5qDWCj5l5A6HOj MO5O7oi7UWe/WI+RcNKeE7U/ZCWpZawCc7G130OaKmyO8ccBOFHoIkptujJm1ms+Zoq2bw oo9h/DCNtavL6HPhoILHk0dtJAx1PbM= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-240-NIdJtEreMLiroDpcF8606g-1; Fri, 25 Feb 2022 16:19:23 -0500 X-MC-Unique: NIdJtEreMLiroDpcF8606g-1 Received: by mail-ed1-f72.google.com with SMTP id s7-20020a508dc7000000b0040f29ccd65aso2899274edh.1 for ; Fri, 25 Feb 2022 13:19:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=2gZbc4TcaCZdLZxV1MMHprMxNzXnHBsUW/ffb0ZS4Zs=; b=NT8TzkKRfmLs6LsRsM9DdTdFVbmkIC0nMoUvtsb2f7SEzXGjjmzI0Rkwg3xyZT3X/E 3NQHJL5a+lRNYmdLJ59LR3I7cNJlrs0n+SJpY3237uMvnwvQ6wrmSZCFdV8xz8essm3V nxUYZ3tqVgcM108uXcEhjkfc+8Ozi8h91lEhedBh/UjpU+uWGgjw7hswSzzCIgt3m8/t E+4FElPU1La9kzgfhYgdT48JTlh4GcIaKfjwZTZraDcpOuysk36Narzmtd1Cn35HyF18 Fa1+goNdyFUW8iKNdKUPMQsarP9XhV6LleeU5a7rCMNMn94Qm1qwzcb3zvGj0AzVnI3k w9Sw== X-Gm-Message-State: AOAM533LGeKwpCT5O7xOk877pIuVZX1LtWzd/5aqDxJ5kA7ddCuPNN46 f45qdVNx5PvJ3H/FwR/ZqFJWD8MNE+7I2xnx2nNBB3NB12Qgagjs6zZNgT2fGGTGQXZBmER2khi QHI+f84iJyn+lzF7fm2LoYHSs X-Received: by 2002:a05:6402:4245:b0:410:ee7d:8f0b with SMTP id g5-20020a056402424500b00410ee7d8f0bmr8904317edb.295.1645823961564; Fri, 25 Feb 2022 13:19:21 -0800 (PST) X-Received: by 2002:a05:6402:4245:b0:410:ee7d:8f0b with SMTP id g5-20020a056402424500b00410ee7d8f0bmr8904301edb.295.1645823961354; Fri, 25 Feb 2022 13:19:21 -0800 (PST) Received: from ?IPV6:2a0e:5700:4:11:334c:7e36:8d57:40cb? ([2a0e:5700:4:11:334c:7e36:8d57:40cb]) by smtp.gmail.com with ESMTPSA id j21-20020aa7c415000000b004127ac9ddc3sm1866517edq.50.2022.02.25.13.19.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Feb 2022 13:19:20 -0800 (PST) Message-ID: <7ab071a2-4e5e-9aea-6887-d3e4281de607@redhat.com> Date: Fri, 25 Feb 2022 22:19:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH v2 1/3] ata: ahci: Rename board_ahci_mobile Content-Language: en-US To: "Limonciello, Mario" , Christoph Hellwig Cc: Damien Le Moal , "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , open list , "pmenzel@molgen.mpg.de" References: <20220225061113.223920-1-mario.limonciello@amd.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 Hi, On 2/25/22 22:13, Limonciello, Mario wrote: > [AMD Official Use Only] > >>>>>> On Fri, Feb 25, 2022 at 12:11:11AM -0600, Mario Limonciello wrote: >>>>>>> This board definition was originally created for mobile devices to >>>>>>> designate default link power managmeent policy to influence runtime >>>>>>> power consumption. >>>>>>> >>>>>>> As this is interesting for more than just mobile designs, rename the >>>>>>> board to `board_ahci_low_power` to make it clear it is about default >>>>>>> policy. >>>>>> >>>>>> Is there any good reason to not just apply the policy to all devices >>>>>> by default? >>>>> >>>>> That sure would make this all cleaner. >>>>> >>>>> I think Hans knows more of the history here than anyone else. I had >>>>> presumed there was some data loss scenarios with some of the older >>>>> chipsets. >>>> >>>> When I first introduced this change there were reports of crashes and >>>> data corruption caused by setting the policy to min_power, these were >>>> tied to some motherboards and/or to some drives. >>>> >>>> This is the whole reason why I only enabled this on a subset of all the >>>> AHCI chipsets. >>>> >>>> At least on devices with a chipset which is currently marked as >>>> mobile, the motherboard specific issues could be fixed with a BIOS >>>> update. But I doubt that similar BIOS fixes have also been rolled >>>> out to all desktop boards (and have been applied by all users), >>>> and I also don't know about older boards. >>>> >>>> So enabling this on all chipsets is definitely not without risks. >>>> >>> >>> This was before min_power_with_partial and min_power_with_dipm >>> were introduced though right? >> >> The issues where some laptops needed BIOS updates was with fedora >> using min_power_with_dipm as default for mobile chipsets. >> > > Do you know if the drives actually supported slumber and partial? > I wonder if that was the real problem that they were being set when > they shouldn't be.> > I added something for this in 2/2 in the RFC series you can look at. Fedora defaults to ATA_LPM_MED_POWER_WITH_DIPM so patch 2/2 is a no-op on Fedora; and IIRC (it has been a long time) the need for BIOS updates on some mobile devices was with standard Fedora kernels / settings. Regards, Hans > >>> Maybe another way to look at this >>> is to drop the policy min_power, which overall is dangerous. >> >> Maybe, see above. I'm not going to block this if people want >> to give this a try, but it is going to require someone keeping >> a very close look at any issues popping up and we must be >> prepared to roll-back the change if necessary. >> > > Per Paul's suggestion I sent out v3 of this series and then I sent > out a separate RFC series (you're on CC). For this type of > thing if y'all think it makes sense to do.