From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F3DDC433B4 for ; Fri, 14 May 2021 07:32:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BF94861263 for ; Fri, 14 May 2021 07:32:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BF94861263 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7C7106EE30; Fri, 14 May 2021 07:32:50 +0000 (UTC) Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by gabe.freedesktop.org (Postfix) with ESMTPS id B64496E17F for ; Fri, 14 May 2021 02:44:09 +0000 (UTC) Received: by mail-pj1-x1031.google.com with SMTP id pi6-20020a17090b1e46b029015cec51d7cdso839332pjb.5 for ; Thu, 13 May 2021 19:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=u1+1zBYB4dMhhgTw7UE0zJNj5s29Axql6Hdjn9huxZ8=; b=t4zrB+icO6Z/YdbsBN4rsvDAlYRPI7DdH+6cdF58Wu6KpfaFzf5ucAhQNrFzkGLLT/ PUAVoG+/hnFcWmoJIqOhM6vKAOJj/kYGZeKrvNqJHfFv1VjzReTPlEaHRKebsLO0xKoS drRmwm/sbruySUCqVQO0lG3p28FbiOpF9RY0P1WiWJR4rm14cYI/JYmNQMOOYx5JbVPC CITkVnHVLsadIDoqrvoD0hXYeLxF0NpiH/zOa593NK2EWshjyB4mfQv+FwHkebLCAyg6 emIx8s5I3r1uoROi7cdtSjLJMDT+vvMBniHrFOXDWbdUDrCF46eI94PmrdlZJVXGaKb0 Gf3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=u1+1zBYB4dMhhgTw7UE0zJNj5s29Axql6Hdjn9huxZ8=; b=Ll/diwCetIZNALqjAxniSK0ugvphtSL1LRP+vMKrYszLhK4TRg+/OTrkUShlsYNKzs zpHntzc9pNmcAGoNESzHJ2zd9gbSIpj5tWs642OggJLVh52Qu1lOW+AZSsEZ7ekCX9N3 1O1nABEMERYkNTeKp5L9O7MhcgN5r1+g2e7Cn6OtJjpVJa/bGE8vhBHs2vRQloRyPR3y NKB07qpcVLzdjOYwumMI75Nh3uHDd/2dZF7S4xltCcZA5PmgglgpG1P0zRkWcOJEwHgW 2GK75fWMef/YP/5li8hDKXaqfhDs9Ay5LTqtJUQtgnTdQuiRVnBC9eamIu8/dy2SrWlt xR4A== X-Gm-Message-State: AOAM530rBXlBXpxsgGS3L5Q5pzPkXtP+t+4C4RsUUXIzGQK+I2TFrNc/ sEy8mShEv05Sv1zP4yxQc7E= X-Google-Smtp-Source: ABdhPJxjAhiPPqYMlC6IrU45AbRm2lxxF8dtiX8KBea3Q4nlbvdKv82nK1titEvLUA5Zl7gz+ekcUg== X-Received: by 2002:a17:902:8ecc:b029:ef:6471:dc08 with SMTP id x12-20020a1709028eccb02900ef6471dc08mr15634544plo.5.1620960249367; Thu, 13 May 2021 19:44:09 -0700 (PDT) Received: from yguoaz-VirtualBox.hz.ali.com ([106.11.30.42]) by smtp.googlemail.com with ESMTPSA id ca6sm8117647pjb.48.2021.05.13.19.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 19:44:09 -0700 (PDT) From: Yiyuan GUO X-Google-Original-From: Yiyuan GUO To: gregkh@linuxfoundation.org Subject: Re: Re: [PATCH] agp: check if ndevs is zero before enabling node Date: Fri, 14 May 2021 10:43:17 +0800 Message-Id: <20210514024317.63649-1-yguoaz@cse.ust.hk> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 14 May 2021 07:32:49 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, yguoaz@cse.ust.hk, yguoaz@gmail.com, keescook@chromium.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Yiyuan GUO I guess it may only happen in theory, but maybe there is no harm in adding a simple check? Thanks.