Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp507496imm; Thu, 6 Sep 2018 06:07:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZr1HsdexwOeTPykGDTZPpZFqrzBneFHhLoNTGhxuFwqpRwOjCfPO9BPnIl+TXFjIck+sbC X-Received: by 2002:a62:b604:: with SMTP id j4-v6mr2670130pff.199.1536239257664; Thu, 06 Sep 2018 06:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536239257; cv=none; d=google.com; s=arc-20160816; b=nk/GpNULobk9aWT6R8XAoAH5KNOaKttWUqsf9QPrG9tZpK2Q97L7+qhZ8FV3YxCL1n dts3RDhAuxO3ES0tkHE7YTTa5JYpe1K2YKUqBORBt38cOEmKw+3ZyT2deuApKUzd1WRm qFsdRik/J9oWYVlldNjbXqenkdkKHRiEPjIzJIhj9/ACGG1Md7Dn17zsKBQouP80Jh8A mDj9JhN6ieqfRCwO4tW5HdcXJMTZYfVnudnHnk3NhFGA2QT8366Mk7dwo2J8X15R30ie +CzAqaiADEz7KesKRClCOx8rLwQ40FZ+NwFjkR7U8FchG5hu8k6wUucRqXoBjjyteVFZ CQ9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=88yF+MicbAPvKtLK5gVWOcBGjNmaMefoHNm0X6xdo4w=; b=gbhFg62cB/4FJCWw4NBUncKk/K5a8AHWx+uzHbaflb+utqvM5cTPC84AuxkMbi/SdQ 8K/w4sQQNQHZvcGsGlwYTPlQCeWMOwbRNo5o10lPddcsgWPNVGOiLcCY3DxmVFehU7J0 33YqxpITDk9atG5wFHQZ8YuYLnFyxLHLq6ZdmK23r6vPqd2buU1zjiWp5AZeZQfbNgU0 3VhIGKy2vGTKw0YVNOubzawclu4wWcdPWnwrm5QaE5UHPxX7AldoabFeKd7BLFse+hEi hi3JpCMklyyG5f4ahxvcxif48mcIXFUDho+PoizjtlyQMvKQARRoHQm8RCGvutM6k26d 0Xvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10-v6si4641825pgs.40.2018.09.06.06.07.21; Thu, 06 Sep 2018 06:07:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728633AbeIFRaK (ORCPT + 99 others); Thu, 6 Sep 2018 13:30:10 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36487 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727790AbeIFRaK (ORCPT ); Thu, 6 Sep 2018 13:30:10 -0400 Received: by mail-wm0-f68.google.com with SMTP id j192-v6so11188377wmj.1 for ; Thu, 06 Sep 2018 05:54:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=88yF+MicbAPvKtLK5gVWOcBGjNmaMefoHNm0X6xdo4w=; b=fgnroWINC32OO6yDCTrxvn4ot0AtwzKXNxAJmU3WPxpPXluVr9kpz2Y7oR5zEn9PsO 8x839QdFwGy/pCck6HpMsc4G+Ywm366SP1V2h+Jy/og60BmMJ9bZ5MeeFIk1MjMuclxG mqQPf/1CXPwFq9x14ZmTc699lbX3UMswSrZwjsEjA0mNpjgeJ4C0fB/16JQsdBj9R+Ah 6bPhXc3sPJfX1tVCleGzjgPuL2iHQjmk5I4swdOC0RNnmPUjHbS455Kzu5mWYLQZMVoM EkXyqdgStk5jo/bVLO/4/sb1ewYrr9ybGcwuGC9cRKLwSlbXhbin8aVO0rrAqny6/P/h +/7A== X-Gm-Message-State: APzg51Des9ox5hrnUvGYoHWwfBoNd/XcuOxN4TmwhMYOXM1MHN0+a8/S 5i2D53ilHzNHSMyQCSTQkINk3Q== X-Received: by 2002:a1c:a8cf:: with SMTP id r198-v6mr2065239wme.133.1536238485477; Thu, 06 Sep 2018 05:54:45 -0700 (PDT) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id y206-v6sm5789183wmg.14.2018.09.06.05.54.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 05:54:44 -0700 (PDT) Subject: Re: [PATCH v3] ata: Disable AHCI ALPM feature for Ampere Computing eMAG SATA To: Suman Tripathi , "axboe@kernel.dk" , "tj@kernel.org" , "linux-ide@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "joe@perches.com" , "arnd@arndb.de" , "gregkh@linuxfoundation.org" Cc: Open Source Submission , Rameshwar Sahu References: <1536208421-24867-1-git-send-email-stripathi@amperecomputing.com> From: Hans de Goede Message-ID: Date: Thu, 6 Sep 2018 14:54:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 06-09-18 14:51, Suman Tripathi wrote: > Hi Hans, > > I ran checkpatch and see no error. I will check my git-send-email Right, the problem is not with the patch, but with your email client mangling the file. git send-email will send the patch for you without damaging it. Regards, Hans > > scripts/checkpatch.pl 0001-ata-Disable-AHCI-ALPM-feature-for-Ampere-Computing-e.patch total: 0 errors, 0 warnings, 39 lines checked > > 0001-ata-Disable-AHCI-ALPM-feature-for-Ampere-Computing-e.patch has no obvious style problems and is ready for submission. > > > With regards, > Suman > > > > -----Original Message----- > From: Hans de Goede > Sent: Thursday, September 6, 2018 12:32 AM > To: Suman Tripathi ; axboe@kernel.dk; tj@kernel.org; linux-ide@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; joe@perches.com; arnd@arndb.de; gregkh@linuxfoundation.org > Cc: Open Source Submission ; Rameshwar Sahu > Subject: Re: [PATCH v3] ata: Disable AHCI ALPM feature for Ampere Computing eMAG SATA > > [NOTICE: This email originated from an external sender. Please be mindful of safe email handling and proprietary information protection practices.] ________________________________________________________________________________________________________________________ > > Hi, > > On 06-09-18 06:33, Suman Tripathi wrote: >> Due to hardware errata, Ampere Computing eMAG SATA can't support AHCI >> ALPM feature. This patch disables the AHCI ALPM feature for eMAG SATA. >> >> Changes for v2: >> >> * Introduce the new ata_port_info object which includes ATA_FLAG_NO_LPM. >> * Include this object for eMAG SATA inside the acpi match table. >> * Retrieve the ata_port_info from the acpi match table. >> >> Changes for v3: >> >> * Fix the indentation and whitespace warnings. >> >> Signed-off-by: Suman Trpathi >> Signed-off-by: Rameshwar Prasad Sahu >> > > Small remark, normally the changelog is put after the Signed-off-by messages like > this: > > """ > Signed-off-by: Suman Trpathi > Signed-off-by: Rameshwar Prasad Sahu > --- > Changes for v3: > * Fix the indentation and whitespace warnings. > > Changes for v2: > > * Introduce the new ata_port_info object which includes ATA_FLAG_NO_LPM. > * Include this object for eMAG SATA inside the acpi match table. > * Retrieve the ata_port_info from the acpi match table. > """ > > This will cause git am to remove it, so that the git history just has your original commit message. > > By itself this would not be a reason to request a new version, but it seems you've copy and pasted the patch from "git format-patch" output into you mail client. I tried to run checkpatch myself to make sure you caught all whitespace issues and I got this: > > [hans@shalem linux]$ scripts/checkpatch.pl ~/\[PATCH\ v3\]\ ata\:\ Disable\ AHCI\ ALPM\ feature\ for\ Ampere\ Computing\ eMAG\ SATA.eml > ERROR: patch seems to be corrupt (line wrapped?) > #177: FILE: drivers/ata/ahci_platform.c:34: > > > ERROR: DOS line endings > #178: FILE: drivers/ata/ahci_platform.c:35: > +static const struct ata_port_info ahci_port_info_nolpm = {^M$ > > ERROR: DOS line endings > #179: FILE: drivers/ata/ahci_platform.c:36: > +^I.flags^I^I= AHCI_FLAG_COMMON | ATA_FLAG_NO_LPM,^M$ > > ERROR: DOS line endings > #180: FILE: drivers/ata/ahci_platform.c:37: > +^I.pio_mask^I= ATA_PIO4,^M$ > > ERROR: DOS line endings > #181: FILE: drivers/ata/ahci_platform.c:38: > +^I.udma_mask^I= ATA_UDMA6,^M$ > > Followed by lots more errors, line 177 of the email is empty, while it should contain a single space. This stripping of whitespace typically is the result of copy pasting or some other processing of the patch. > > Please try to re-send v3 using the "git send-email" command, so that we get a patch which we can actually apply. > > Regards, > > Hans > > > > > >> --- >> drivers/ata/ahci_platform.c | 15 ++++++++++++++- >> 1 file changed, 14 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c >> index 99f9a89..9ba283f 100644 >> --- a/drivers/ata/ahci_platform.c >> +++ b/drivers/ata/ahci_platform.c >> @@ -33,6 +33,13 @@ static const struct ata_port_info ahci_port_info = { >> .port_ops = &ahci_platform_ops, >> }; >> >> +static const struct ata_port_info ahci_port_info_nolpm = { >> + .flags = AHCI_FLAG_COMMON | ATA_FLAG_NO_LPM, >> + .pio_mask = ATA_PIO4, >> + .udma_mask = ATA_UDMA6, >> + .port_ops = &ahci_platform_ops, >> +}; >> + >> static struct scsi_host_template ahci_platform_sht = { >> AHCI_SHT(DRV_NAME), >> }; >> @@ -41,6 +48,7 @@ static int ahci_probe(struct platform_device *pdev) >> { >> struct device *dev = &pdev->dev; >> struct ahci_host_priv *hpriv; >> + const struct ata_port_info *port; >> int rc; >> >> hpriv = ahci_platform_get_resources(pdev); >> @@ -57,7 +65,11 @@ static int ahci_probe(struct platform_device *pdev) >> if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci")) >> hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ; >> >> - rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info, >> + port = acpi_device_get_match_data(dev); >> + if (!port) >> + port = &ahci_port_info; >> + >> + rc = ahci_platform_init_host(pdev, hpriv, port, >> &ahci_platform_sht); >> if (rc) >> goto disable_resources; >> @@ -85,6 +97,7 @@ static const struct of_device_id ahci_of_match[] = { >> MODULE_DEVICE_TABLE(of, ahci_of_match); >> >> static const struct acpi_device_id ahci_acpi_match[] = { >> + { "APMC0D33", (unsigned long)&ahci_port_info_nolpm }, >> { ACPI_DEVICE_CLASS(PCI_CLASS_STORAGE_SATA_AHCI, 0xffffff) }, >> {}, >> }; >> -- >> 2.7.4 >>