Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3984530imm; Tue, 29 May 2018 18:50:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI94w7UZRgiS0ZOEQLyyajN5J6AiEoHDd5DNOHrt+mCdLacLrG10qiOn0SSxRFDoq9WkX9i X-Received: by 2002:a62:1306:: with SMTP id b6-v6mr797416pfj.58.1527645019403; Tue, 29 May 2018 18:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527645019; cv=none; d=google.com; s=arc-20160816; b=UcVADZRAXZFsv5xa0fmb06oVh+pubBSDv4guv980jMLFAnpWbe8za8+P1FLJ0su803 1Z7iLySs+lGu6UgQCKhXEScMCJ1qlApjVfoc0C/34Je90CppjVtZX2lj8/II69HOCrdq WUVm8LpnvhdzqaltDYLywySGYL/XMGpCGCyHgXUpqHuvYnXQb3CXy1nYzq2x3Ze5JQKJ ZpjwPRmgDo40SL7lCQ1zrf9/XLkgdIRFircVIMtThEYDkTNZrIWqYTbH9vmQwYVCg9ip +vCqcHDKUExeqaZ2OE4q14Rw5pV2Stq+mQlu1vcKYkJztaUlfXDSulIL30yPoQoYE4Ea y6+A== 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:arc-authentication-results; bh=p54TyJN1qX3tGhjgGmex5ZxEFRM+n/i/Du+GQT7pnLc=; b=YXmBs+9PMQppi09R+sNyT0Pwh2Bdoxg69rJ+BsJOxP0vcD1KCRm3EiADElZRyLx4tG 2R8gT1fO1V21OiSgmj03tHgnsBl12iyESO7qK3Gl47jLesOzGdmJm15iy4XOtaRkUV1y o/hPrnanoyYnGNGI397JrD3igK+SP7T3KtVs736XPcXODy/nDFmM0WxRjcEW+g4XkCBY j2Yz4BJ/mnrKMLBP8FQS3XhtAjMj8u+NoDLL7aUzSsD17Iem/QUWdVkOXAiu1W2S69ed IcgpoBydmoiJXSFE/wYvfhhLM7q5AUIZim+3umFBL19F6lsxVk2C342WZIsYqJPsROjg jOzQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be3-v6si32667535plb.474.2018.05.29.18.50.05; Tue, 29 May 2018 18:50:19 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968580AbeE3Btm (ORCPT + 99 others); Tue, 29 May 2018 21:49:42 -0400 Received: from feh.colobox.com ([209.177.154.210]:59578 "EHLO feh.colobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968432AbeE3Btk (ORCPT ); Tue, 29 May 2018 21:49:40 -0400 Received: from feh.colobox.com (localhost [127.0.0.1]) by feh.colobox.com (Postfix) with ESMTP id 012DD6601F8; Wed, 30 May 2018 01:49:40 +0000 (UTC) Received: from [IPv6:2001:470:1f05:22e::5] (linda.snowman.colobox.com [IPv6:2001:470:1f05:22e::5]) by feh.colobox.com (Postfix) with ESMTPSA id 9FFE866018F; Wed, 30 May 2018 01:49:39 +0000 (UTC) Subject: Re: [PATCH V3 1/2] PCI: Try to clean up resources via remove if shutdown doesn't exist To: Sinan Kaya , linux-pci@vger.kernel.org, timur@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, Bjorn Helgaas , open list References: <1527542471-10316-1-git-send-email-okaya@codeaurora.org> From: Ryan Finnie Message-ID: <0bf8bfe6-370d-8794-d205-f3ff51f23f4c@finnie.org> Date: Tue, 29 May 2018 18:49:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1527542471-10316-1-git-send-email-okaya@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/28/2018 02:21 PM, Sinan Kaya wrote: > It is up to a driver to implement shutdown() callback. If shutdown() > callback is not implemented, PCI device can have pending interrupt and > even do DMA transactions while the system is going down. > > If kexec is in use, this can damage the newly booting kexec kernel > or even prevent it from booting altogether. Fallback to calling the > remove() callback if shutdown() isn't implemented for a given driver. > > Signed-off-by: Sinan Kaya > Link: https://bugzilla.kernel.org/show_bug.cgi?id=199779 > Fixes: cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during shutdown") > Cc: stable@vger.kernel.org > Reported-by: Ryan Finnie Tested successfully on DL360 Gen9 and DL380 Gen9. Tested-by: Ryan Finnie