Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Reduce diff.



details:   https://anonhg.NetBSD.org/src/rev/343199526fce
branches:  trunk
changeset: 1028071:343199526fce
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:47:14 2021 +0000

description:
Reduce diff.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 8f9cdda598b9 -r 343199526fce sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c        Sun Dec 19 01:47:01 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c        Sun Dec 19 01:47:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_cik.c,v 1.4 2021/12/19 01:47:01 riastradh Exp $ */
+/*     $NetBSD: radeon_cik.c,v 1.5 2021/12/19 01:47:14 riastradh Exp $ */
 
 /*
  * Copyright 2012 Advanced Micro Devices, Inc.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_cik.c,v 1.4 2021/12/19 01:47:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_cik.c,v 1.5 2021/12/19 01:47:14 riastradh Exp $");
 
 #include <linux/firmware.h>
 #include <linux/module.h>
@@ -2020,7 +2020,7 @@
                mc_req_size = BONAIRE_MC_UCODE_SIZE * 4;
                mc2_req_size = BONAIRE_MC2_UCODE_SIZE * 4;
                sdma_req_size = CIK_SDMA_UCODE_SIZE * 4;
-               smc_req_size = ALIGN(BONAIRE_SMC_UCODE_SIZE, 4);
+               smc_req_size = round_up(BONAIRE_SMC_UCODE_SIZE, 4);
                num_fw = 8;
                break;
        case CHIP_HAWAII:
@@ -2036,7 +2036,7 @@
                mc_req_size = HAWAII_MC_UCODE_SIZE * 4;
                mc2_req_size = HAWAII_MC2_UCODE_SIZE * 4;
                sdma_req_size = CIK_SDMA_UCODE_SIZE * 4;
-               smc_req_size = ALIGN(HAWAII_SMC_UCODE_SIZE, 4);
+               smc_req_size = round_up(HAWAII_SMC_UCODE_SIZE, 4);
                num_fw = 8;
                break;
        case CHIP_KAVERI:



Home | Main Index | Thread Index | Old Index